1 2008-05-05 Borut Razem <borut.razem AT siol.net>
3 * support/regression/Makefile.in,
4 support/regression/fwk/lib/testfwk.c,
5 support/regression/ports/ds390/spec.mk,
6 support/regression/ports/hc08/spec.mk,
7 support/regression/ports/mcs51-common/spec.mk,
8 support/regression/ports/pic14/spec.mk,
9 support/regression/ports/pic16/spec.mk,
10 support/regression/ports/ucz80/spec.mk,
11 support/regression/ports/z80/spec.mk:
12 added INC_DIR and LIBDIR paths
13 * src/ds390/gen.c: removed duplicated selicolon
15 2008-05-04 Borut Razem <borut.razem AT siol.net>
17 * support/regression/Makefile.in,
18 support/regression/fwk/lib/testfwk.c,
19 support/regression/ports/ds390/spec.mk,
20 support/regression/ports/hc08/spec.mk,
21 support/regression/ports/mcs51-common/spec.mk,
22 support/regression/ports/mcs51-large/spec.mk,
23 support/regression/ports/mcs51-medium/spec.mk,
24 support/regression/ports/mcs51-small/spec.mk,
25 support/regression/ports/mcs51-stack-auto/spec.mk,
26 support/regression/ports/mcs51-xstack-auto/spec.mk,
27 support/regression/ports/pic14/spec.mk,
28 support/regression/ports/pic16/spec.mk,
29 support/regression/ports/ucz80/spec.mk:
30 added possibility to define the sdcc binary directory SDCC_BIN_PATH
31 used to run regeression tests
33 2008-05-01 Raphael Neider <rneider AT web.de>
35 * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
36 supported devices and instructions to add new ones
38 2008-05-01 Raphael Neider <rneider AT web.de>
40 * device/include/pic16/adc.h,
41 device/lib/pic16/libio/adc/adcbusy.c,
42 device/lib/pic16/libio/adc/adcopen.c,
43 device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
44 18f2455 style ADC devices, based on patch #1776197
45 * device/lib/pic16/libio/adc/adcclose.c,
46 device/lib/pic16/libio/adc/adcconv.c,
47 device/lib/pic16/libio/adc/adcread.c: cosmetic changes
48 * device/include/pic16/{pic18f2331.h,pic18f2431.h},
49 device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
50 * device/include/pic16/pic18f4431.h,
51 device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
52 * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
54 2008-05-01 Raphael Neider <rneider AT web.de>
56 * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
57 moved xinst flag into pic16_options_t
58 * src/pic16/device.c (default_device, pic16_list_devices,
59 pic16_find_device): removed references to sfrrange
60 * src/pic16/gen.c (genFunction),
61 src/pic16/glue.c (pic16initialComments),
62 src/pic16/main.c (pic16_optionsTable),
63 src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
65 * device/include/pic16/pic16devices.txt: removed sfrrange lines
67 2008-04-29 Raphael Neider <rneider AT web.de>
69 * src/pic16/devices.inc,
70 device/include/pic16/pic16devices.txt: replaced compiled-in list
71 of devices with a variant parsed at runtime
72 * src/pic16/device.c: added support for parsing pic16devices.txt,
74 * src/pic16/device.h: removed (now) unused fields from PIC_device
75 * src/pic16/main.c: removed #pragma maxram,
76 (_pic16_initPaths): removed bogus generation of search paths,
77 setup the port proper only after the search paths (for
78 pic16devices.txt) are set up,
79 (_pic16_finaliseOptions): moved processor dependant code here
80 from _pic16_initPaths(), clean up
81 * src/pic16/ralloc.c (pic16_init_stack),
83 * src/pic16/pcode.c: clean up
84 * device/include/Makefile.in,
85 support/scripts/sdcc.nsi: also install/package pic16devices.txt
86 * support/scripts/inc2h-pic16.pl: updated instructions
88 2008-04-29 Raphael Neider <rneider AT web.de>
90 * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
91 pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
92 device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
93 pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
94 added missing family members and 18f2480/2580/4480/4580 family
95 * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
96 * device/include/pic16/pic18f2525.h: use 18f4620.h
97 * device/include/pic16/pic18f6680.h: use 18f8680.h
98 * device/include/pic16/pic18fregs.h,
99 device/lib/pic16/pics.all,
100 src/pic16/devices.inc: add new devices
101 * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
102 * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
103 * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
104 * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
105 prevent attempting to build the libio for some new devices
107 2008-04-29 Raphael Neider <rneider AT web.de>
109 * debugger/mcs51/Makefile.in: fixed paths to sources
111 2008-04-25 Borut Razem <borut.razem AT siol.net>
113 * as/link/lklibr.c: moved from as/link/z80/lklibr.c
114 * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
115 * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
116 * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
117 as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
118 as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
119 as/link/z80/linkz80.dsp: lklibr.c moved
120 * doc/INSTALL.txt: binary archives in bz2 format
121 * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
123 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
125 * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
126 * support/regression/tests/bug1856409.c: new, added
128 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
131 * src/mcs51/peep.c: Use werror for error messages.
132 * src/SDCCicode.c (geniCodeConditional),
133 * src/SDCCsymt.c (structElemType): fixed bug 1839321
134 * src/z80/Makefile.bcc,
135 * src/z80/z80.dsp: added src/z80/peep.c/h
136 * support/regression/tests/bug1839321.c: new, added
138 2008-04-20 Raphael Neider <rneider AT web.de>
140 * device/include/pic16/pic18f2455.h: added bitfields for port C
142 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
144 * src/z80/peep.c: Use werror for error messages.
146 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
148 * src/z80/peep.h (declaration of notUsed()),
149 * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
151 * src/z80/z80.h (added dependency on peep.h),
152 * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
155 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
157 * src/SDCCpeeph.c (added support for notUsed()),
158 * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
160 * src/port.h (removed dependency on mcs51/peep.h, added declaration
161 for notUsed()): Implemented generic (that is not port-specific) part
164 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
166 * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
167 * device/lib/libsdcc.lib,
168 * device/lib/Makefile.in,
169 * support/regression/ports/mcs51-xstack-auto/spec.mk,
170 * device/lib/calloc.c: renamed to _calloc.c
171 * device/lib/free.c: renamed to _free.c
172 * device/lib/malloc.c: renamed to _malloc.c
173 * device/lib/realloc.c: renamed to _realloc.c
174 * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
175 genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
176 * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
177 genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
178 * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
179 ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
180 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
181 genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
183 * src/mcs51/gen.c: throughout cosmetic changes for syncing both
184 * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
185 * support/regression/tests/bug1509084.c: new, added
187 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
189 * device/include/mcs51/cc2510fx.h: added _XPAGE
190 * device/include/mcs51/compiler.h: cosmetic changes
192 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
194 * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
197 2008-03-31 Borut Razem <borut.razem AT siol.net>
199 * support/cpp2 renamed to support/cpp
200 * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
201 support/cpp2/libiberty/splay-tree.c,
202 support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
203 support/cpp2/libcpp/directives.c,
204 support/cpp2/libcpp/include/cpplib.h,
205 support/cpp2/libcpp/include/symtab.h,
206 support/cpp2/libcpp/include/line-map.h,
207 support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
208 support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
209 support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
210 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
211 support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
212 release version 4.3.0
213 * configure.in, configure, Makefile.in, Makefile.bcc:
214 adapted for moved cpp2
216 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
218 * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
219 thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
221 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
223 * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
225 * support/regression/tests/bug1717943.c: new, added
227 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
229 * src/z80/gen.c (assignResultValue): Reverted reversal of order of
230 bytewise return value assignments introduced in last commit.
232 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
234 * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
235 genMult, genJumpTab):
236 Use 16-bit instructions for addition in some additional cases,
237 implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
239 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
241 * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
242 Implemented RFE #1921450, changed some debug messages.
244 2008-03-30 Borut Razem <borut.razem AT siol.net>
246 * Small Device C Compiler 2.8.0 released
247 * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
248 * support/scripts/sdcc.nsi: added finish page; this version
249 was used for 2.8.0 release
250 * doc/knownbugs.html: removed; magically generated by the build
251 process using gen_known_bugs.pl from now on
253 2008-03-23 Borut Razem <borut.razem AT siol.net>
255 * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
256 and reverted it, since it was already fixed by Raphael ;-)
257 * doc/knownbugs.html: updated for RC2
259 2008-03-22 Raphael Neider <rneider AT web.de>
261 * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
264 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
266 * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
267 * support/regression/tests/bug1839277.c: added related testBug1839299
269 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
271 * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
272 * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
274 * src/mcs51/gen.c: throughout only output hex constants
275 * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
276 * support/regression/tests/bug1839277.c: new, added
278 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
280 * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
281 compilation warning about nested comments.
283 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
285 * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
286 * support/regression/tests/bug1921073.c: new, added
288 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
290 * src/z80/SDCCpeeph.c.c (callFuncByName):
291 Commented function parameters.
293 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
295 * src/z80/ralloc.c (packRegsForAccUse2):
296 disabled a broken accumulator packing optimization (fixed #1292721).
297 * support/regression/tests/bug-1292721: Regression test for #1292721.
299 2008-03-16 Raphael Neider <rneider AT web.de>
301 * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
302 fixed code bloat regression using a variant of patch #1915618
304 2008-03-16 Borut Razem <borut.razem AT siol.net>
306 * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
307 icon, changed startup menu for release distribution, code cleaning,
308 create url files instead links in startup menu
310 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
312 * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
313 * support/regression/tests/bug1579949.c: new, added
315 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
317 * device/lib/printf_fast.c: fixed bug 1255403
319 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
321 * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
322 * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
324 2008-03-14 Borut Razem <borut.razem AT siol.net>
326 * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
328 * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
329 is correctly displayed
330 * as/link/z80/lkmain.c: usage line commented out
332 2008-03-13 Borut Razem <borut.razem AT siol.net>
334 * doc/sdccman.lyx: corrected to be able to convert to PDF,
335 updated the list pf supported pic14 devices
337 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
339 * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
341 2008-03-12 Borut Razem <borut.razem AT siol.net>
343 * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
344 fixed documentation request #1718191
345 * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
346 * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
349 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
351 * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
352 * support/regression/tests/bug1505811.c: new, added
354 2008-03-09 Raphael Neider <rneider AT web.de>
356 * device/include/pic16/pic18f2620.h,
357 * device/include/pic16/pic18f4620.h,
358 * device/lib/pic16/libdev/pic18f2620.c,
359 * device/lib/pic16/libdev/pic18f4525.c,
360 * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
361 family to consistently use pic18f4620.[ch], fixes #1832562
363 2008-03-09 Borut Razem <borut.razem AT siol.net>
365 * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
366 changed sdcc version to 2.8.0
367 * knownbugs.html: regenerated
368 * support/scripts/gen_known_bugs.pl: added number of open bugs
370 2008-03-09 Raphael Neider <rneider AT web.de>
372 * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
373 (genOr): read volatile operand even if the result is known,
375 (genOr,genXor): removed unused legacy code,
376 (genDummyRead): use pic16_mov2w_volatile()
378 2008-03-08 Borut Razem <borut.razem AT siol.net>
380 * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
381 cons w. --model-large
382 * support/regression/staticinit.c: added regression test for bug
385 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
387 * src/ds390/gen.c (pushSide, genPcall),
388 * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
389 * src/mcs51/gen.c: cosmetic changes
390 * support/regression/fwk/include/testfwk.h: added macro reentrant
391 * support/regression/tests/bug1908493.c: new, added
393 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
395 * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
397 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
399 * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
400 * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
401 already set in ds390/main.c and mcs51/main.c
403 2008-03-07 Raphael Neider <rneider AT web.de>
405 * src/regression/init0.c: new test for initialized arrays of function
407 * src/regression/Makefile: made a bit more flexible, added init0.c
408 * src/pic/glue.c (emitIvals): hacky fix for initializing from function
409 pointers, closes #1427663
411 2008-03-05 Borut Razem <borut.razem AT siol.net>
413 * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
414 SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
416 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
418 * support/librarian/sdcclib.c:Added feature request 1908061:
419 Synchronise sdcclib commands with ar.
421 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
423 * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
424 and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
425 SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
426 * device/include/mcs51/compiler.h: removed umlauts, added double
429 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
431 * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
432 * support/regression/tests/bug1536762.c: new, added
434 * src/SDCCutil.h: added getBuildDate()
435 * src/SDCCmain.c (printVersionInfo),
436 * src/SDCCglue.c (initialComments): use getBuildDate() instead of
438 * src/*/ralloc.c: removed IS_OP_RUONLY macro
439 * src/ds390/ralloc.c (packRegisters),
440 * src/mcs51/ralloc.c (packRegisters),
441 * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
443 * support/regression/tests/bug1618050.c: new, added
444 * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
445 * support/regression/fwk/include/testfwk.h,
446 * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
449 2008-03-04 Raphael Neider <rneider AT web.de>
451 * src/pic/gen.c: removed unused prototypes, prevent internal errors
452 on accessing OP_SYM_TYPE(op)
453 * src/pic/gen.h: removed unused prototype of genMinusDec()
454 * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
455 fix #1876953 (invalid subtraction code), removed unused code
457 2008-03-03 Raphael Neider <rneider AT web.de>
461 * src/pic/genarith.c,
463 * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
464 AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
466 2008-03-03 Raphael Neider <rneider AT web.de>
468 * src/pic/device.c (find_device): search user-specified paths first
469 for pic14devices.txt, fixes #1900827
471 2008-03-02 Borut Razem <borut.razem AT siol.net>
473 * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
474 AddToPath and RemoveFromPath
476 2008-03-01 Borut Razem <borut.razem AT siol.net>
478 * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
479 work correctly, added debugging support if -DSDCC.DEBUG command line
482 2008-02-28 Borut Razem <borut.razem AT siol.net>
484 * doc/sdccman.lyx: cosmetic changes
486 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
488 * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
489 * doc/sdccman.lyx: fixed unmeant removal of spaces
491 2008-02-27 Borut Razem <borut.razem AT siol.net>
493 * support/scripts/sdcc.nsi: corrected installation directory for
494 current user installation mode
495 * doc/README.txt: added Philipp Klaus Krause to the developers list
497 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
499 * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
501 (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
502 genCodePointerGet, genGenPointerGet): cleanup aop before generating
503 ifxJump to fix bug 1838000
504 * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
505 * support/regression/tests/bug1838000.c: new, added
506 * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
508 2008-02-26 Borut Razem <borut.razem AT siol.net>
510 * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
512 * support/scripts/sdcc.nsi: added MULTIUSER page,
513 NSIS upgraded to version 2.35
515 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
517 * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
518 * support/regression/tests/bug1565152.c: new, added
520 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
522 * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
523 * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
524 * support/regression/tests/bug1670148.c: new, added
526 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
528 * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
530 2008-02-24 Borut Razem <borut.razem AT siol.net>
532 * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
533 is ineffective for unsigned char parameter
535 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
537 * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
538 * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
539 * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
540 * support/Util/MySystem.c (my_system): output errorcode when verbose
542 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
544 * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
547 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
549 * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
552 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
554 * src/SDCCast.c (createIvalStruct): fixed bug 1466761
556 2008-02-21 Borut Razem <borut.razem AT siol.net>
558 * support/regression/Makefile.in,
559 support/regression/ports/ds390/spec.mk,
560 support/regression/ports/hc08/spec.mk,
561 support/regression/ports/mcs51-common/spec.mk,
562 support/regression/ports/pic14/spec.mk,
563 support/regression/ports/pic16/spec.mk,
564 support/regression/ports/ucz80/spec.mk,
565 support/regression/ports/xa51/spec.mk:
566 added CFLAGS when compiling timeout
568 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
570 * support/regression/tests/bugs-1596270-1736867.c: Regression test for
573 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
575 * src/SDCClrange.c (findPrevUse): fixed bug 1888147
576 * support/regression/tests/bug1888147.c: new, added
578 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
580 * src/z80/gen.c: fixed bugs #1596270, #1736867
582 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
584 * src/z80/gen.c: fixed bug in register pair loading when swapping register
585 contents, mostly fixes #1596270
587 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
590 * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
591 peepholes, fixes #1806565
593 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
595 * src/SDCCpeeph.c (operandBaseName): added check for @Ri
596 * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
597 fixes bug 1739475, thanks Robert Larice
598 (rule 271): new, added
600 2008-02-18 Borut Razem <borut.razem AT siol.net>
602 * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
604 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
606 * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
608 2008-02-17 Raphael Neider <rneider AT web.de>
610 * src/pic16/genarith.c,
613 * src/pic16/genutils.c: removed unused legacy code,
614 removed unused fields from struct asmop and struct _G
616 2008-02-17 Raphael Neider <rneider AT web.de>
618 * src/pic16/gen.c (AccRsh): cosmetic changes,
619 (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
620 genRightShiftLiteral): fixed to work with SFRs as result by
621 assigning only once to result,
622 removed a lot of unused/excluded code fragments
624 2008-02-17 Raphael Neider <rneider AT web.de>
626 * device/include/pic/pic16f88.h,
627 * device/include/pic/pic16f886.h,
628 * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
630 2008-02-17 Borut Razem <borut.razem AT siol.net>
632 * src/z80/peeph.def: applied patch
633 #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
634 * src/z80/gen.c, src/z80/peeph.def: applied patch
635 #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
636 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
637 sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
638 sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
639 sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
640 enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
642 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
644 * as/link/mcs51/aslink.dsp: removed SDK define
645 * as/link/z80/clean.mk: brought in sync with other ports
646 * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
647 * as/hc08/Makefile.bcc,
648 * as/mcs51/Makefile.bcc,
649 * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
650 * src/z80/main.c (_setValues): use the now capitalized -Z,
651 (z80_port, gbz80_port): generate debug information when asked
653 2008-02-16 Borut Razem <borut.razem AT siol.net>
655 * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
656 as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
657 as/z80/Makefile.in. as/z80/Makefile.bcc:
658 applied patch #1893393: patch for as-z80 and link-z80 to generate
659 cdb, thanks to Armin Diehl
660 * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
661 as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
662 asnoice.c moved to as/asxxsrc/asnoice.c
663 * src/z80/peeph-gbz80.def: applied patch
664 #1880235: Z80 return peephole, thanks to Philipp Krause
666 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
669 * doc/sdccman.lyx: bumped version to 2.7.5
670 * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
672 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
674 * device/include/pic16/stdlib.h,
675 * device/lib/pic16/libc/stdlib/ltoa.c,
676 * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
678 2008-02-13 Borut Razem <borut.razem AT siol.net>
680 * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
681 * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
682 src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
683 src/SDCCopt.c, src/SDCCval.c:
684 fixed bug #1890273: SDCC Warning 154 shows wrong filename
686 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
688 * src/SDCCsymt.c (compareType): fixed bug 1309013
690 2008-02-09 Borut Razem <borut.razem AT siol.net>
692 * src/SDCCval.c, src/SDCCval.h:
693 code cleaning, added function constChrVal()
694 * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
695 call constChrVal() instead constVal()
697 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
699 * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
702 * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
703 * support/regression/tests/absolute.c: added TestStruct TestVar (see also
706 2008-02-01 Raphael Neider <rneider AT web.de>
708 * device/include/pic/pic16f886.h,
709 * device/include/pic/pic16f887.h: added RA6 and RA7
711 2008-01-24 Raphael Neider <rneider AT web.de>
713 * device/include/pic/pic16f88.h: added RA6 and RA7
714 * device/lib/pic/libdev/disabled_pic16f886.c,
715 * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
717 * src/pic16/devices.inc,
718 * device/include/pic16/pic18f2423.h,
719 * device/include/pic16/pic18f2523.h,
720 * device/include/pic16/pic18fregs.h,
721 * device/lib/pic16/pics.all
722 * device/lib/pic16/libdev/pic18f2423.c,
723 * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
724 * device/lib/pic16/libio/i2c.ignore,
725 * device/lib/pic16/libio/usart.ignore,
726 * device/lib/pic16/libio/adc.ignore: ignore new devices
728 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
730 * src/SDCCast.c (createRMW): fixed bug 1582651
732 2008-01-20 Borut Razem <borut.razem AT siol.net>
734 * src/SDCCcse.c: partially fixed enhancement request
735 #1793872 - multiply by -1 not collapsed
736 * support/regression/tests/arithcsi.c: added regression test
738 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
740 * as/mcs51/asx8051.dsp: removed define SDK
741 * as/mcs51/i51mch.c (machine): fixed bug 1865114
742 * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
744 * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
745 cosmetic changes, brought more in sync, changed old K&R to ANSI
747 2008-01-13 Borut Razem <borut.razem AT siol.net>
749 * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
750 * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
752 2007-12-30 Borut Razem <borut.razem AT siol.net>
754 * src/pic16/gen.c: fixed implementation of bitwise operations for
756 * support/regression/tests/bitwise.c: added test cases
758 2007-12-29 Borut Razem <borut.razem AT siol.net>
760 * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
761 * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
762 src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
763 * support/Util/dbuf_string.[ch]: added function dbuf_getline()
764 * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
765 src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
766 src/pic16/pcode.[ch]: added const qualifier
767 * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
768 as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
769 as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
770 as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
771 * as/asxxsrc/aslex.c: use dbuf_getline()
772 * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
773 as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
774 as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
775 as/z80/asm.h, as/z80/z80adr.c:
776 changed type of ib and ip to const char *
778 2007-12-28 Borut Razem <borut.razem AT siol.net>
780 * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
781 introduced (readlin) - long lines are turuncated
782 * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
783 as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
784 as/z80/Makefile.in: moved aslex.c to asxxsrc
785 * as/hc08/aslex.c, as/z80/aslex.c: deleted
786 * as/hc08/asmain.c, as/mcs51/asmain.c:
787 added missing initialization of a_addr field
788 * support/regression/tests/long_asm_line.c: added regtest for long
791 2007-12-22 Borut Razem <borut.razem AT siol.net>
793 * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
795 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
797 * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
799 2007-12-16 Borut Razem <borut.razem AT siol.net>
801 * device/include/pic16/stdbool.h: removed, since already exists in
802 device/include/; this also fixes bitopcse.c regression test for pic16
804 * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
805 * src/pic16/glue.c: fixed bug #1851855: generic static pointer
806 dereference doesn't work; covered by regression test bug1399290
808 2007-12-05 Borut Razem <borut.razem AT siol.net>
810 * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
813 2007-12-01 Borut Razem <borut.razem AT siol.net>
815 * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
816 corrected handling of the highest_valid_address
818 2007-11-17 Raphael Neider <rneider AT web.de>
820 * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
821 * src/pic/glue.c (picglue): emit .file if --debug is given
823 2007-11-17 Raphael Neider <rneider AT web.de>
825 * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
826 care when left or right operand resides in result, fixes #1830220
828 2007-11-17 Borut Razem <borut.razem AT siol.net>
830 * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
831 #983491 - "Merge duplicate strings function is ineffective"
832 * support/regression/tests/bug-983491.c: regtest disabled
833 * as/asxxsrc: created
834 as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
835 as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
836 as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
837 as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
838 as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
839 as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
840 as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
841 as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
842 as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
843 as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
844 as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
845 as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
846 created as/asxxsrc directory, assym.c and strcpi.c moved into it
848 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
850 * device/include/stdarg.h: added and removed some casts
851 * src/SDCCsymt.c (compareType): Fully check types between generic and
852 non-generic pointers, also accept ptr-ptr to void-ptr assignments
854 2007-11-13 Borut Razem <borut.razem AT siol.net>
856 * support/regression/tests/bug-1817005.c:
857 added regtest for bug #1817005 - as-z80 chokes on long labels
859 2007-11-12 Borut Razem <borut.razem AT siol.net>
861 * as\z80\asmain.c, as\z80\asm.h, as\z80\assym.c, as\z80\asdata.c,
862 as\z80\asout.c, as\z80\aslist.c:
863 fixed bug #1817005 - as-z80 chokes on long labels
865 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
868 * as/z80/asmain.c: cosmetic changes
871 * as/z80/alloc.h: removed
873 * as/mcs51/assym.c: replaced alloc.h with stdlib.h
874 * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
875 * as/link/hc08/Makefile.in,
876 * as/link/mcs51/Makefile.in,
877 * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
879 * as/link/mcs51/lkarea.c,
880 * as/link/mcs51/lkmain.c: cosmetic changes
881 * as/link/hc08/lklibr.c,
882 * as/link/z80/lklibr.c,
883 * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
884 used cygwin_conv_to_full_posix_path,
885 added warnings, cosmetic changes, brought more in sync
886 changed old K&R into ANSI function declarations
887 * as/link/z80/lklibr.c (loadAdb): added
888 * as/link/z80/lkmain.c: removed -- option from usage text
890 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
892 * src/mcs51/gen.c (outBitC): optimized for no result
894 2007-10-31 Borut Razem <borut.razem AT siol.net>
896 * src/SDCCsymt.c: fixed (hopeful properly) bug
897 #1805702 - order of extern matters
898 * support/regression/tests/bug-1805702.c: enabled regtest for bug
901 2007-10-29 Borut Razem <borut.razem AT siol.net>
903 * src/SDCCsymt.c: reverted bad fixed of bug #1805702
904 - order of extern matters
905 * support/regression/tests/bug-1805702.c: disabled regtest for bug
908 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
910 * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
911 24bitMode, portIsDS390
912 * src/mcs51/gen.c (genOr): optimized for RFE 1750727
913 * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
914 (notVolatileVariable): also check sloc names,
915 (callFuncByName): moved ftab[] out of function and sorted it by use
917 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
919 * device/include/stdarg.h: fixed bug in va_start macro for --xstack
920 * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
921 aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
922 * src/SDCCicode.c (geniCodeCast): fixed bug 880197
923 * support/regression/tests/bug-880197.c: new, added
925 2007-10-28 Borut Razem <borut.razem AT siol.net>
927 * support/regression/Makefile.in,
928 support/regression/ports/mcs51-large/spec.mk,
929 support/regression/ports/mcs51-xstack-auto/spec.mk,
930 support/regression/ports/mcs51-stack-auto/spec.mk,
931 support/regression/ports/mcs51-medium/spec.mk,
932 support/regression/ports/mcs51-common/spec.mk,
933 support/regression/ports/mcs51-common/*,
934 support/regression/ports/mcs51-small/*:
935 mcs51 renamed to mcs51-common, created mcs51-small
936 * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
937 * support/regression/tests/bug-1805702.c: added regtest for bug
940 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
942 * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
943 added new rules 265 - 270
944 * support/regression/tests/bug1721024.c:new, added
945 * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
946 introduced new test-mcs51 to run all mcs51 tests
948 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
950 * support/regression/tests/bug1816470.c: new, added
952 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
954 * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
955 propagate for *,+,- with float, fixed bug 1816470
956 (decorateType): cast to resultTypeProp instead of resultType
958 2007-10-19 Borut Razem <borut.razem AT siol.net>
960 * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
961 function is ineffective" for pic16 tareget
962 * support/scripts/listerr.c: corrected include path
963 * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
966 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
968 * support/regression/tests/using.c: new, added
969 * support/regression/tests/vaargs.c: fixed and enabled test
971 2007-10-18 Borut Razem <borut.razem AT siol.net>
973 * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
975 * support/regression/tests/bug-983491.c: added regtest for bug #983491
977 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
979 * doc/sdccman.lyx: documented option --Werror
980 * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
981 RegBankUsed[] earlier
983 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
985 * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
989 * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
991 * src/SDCCast.c (decorateType): improved optimization of tri-op
992 * src/SDCCerr.c (vwerror, setWError),
994 * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
995 warnings as errors, thanks Stas Sergeev for PATCH 1813211
997 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
999 * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1000 * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1001 * support/regression/tests/bug-223113.c,
1002 * support/regression/tests/bug-426632.c,
1003 * support/regression/tests/bug-468811.c,
1004 * support/regression/tests/bug-477835.c,
1005 * support/regression/tests/bug-478094.c,
1006 * support/regression/tests/bug-499644.c,
1007 * support/regression/tests/bug-524209.c,
1008 * support/regression/tests/bug-524211.c,
1009 * support/regression/tests/packcast.c,
1010 * support/regression/tests/structidx.c: added empty tests
1011 * support/regression/tests/bug-607243.c: enabled test
1013 2007-10-06 Borut Razem <borut.razem AT siol.net>
1015 * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1016 support of universal binaries on Mac OS X
1018 2007-10-02 Borut Razem <borut.razem AT siol.net>
1020 * src/SDCCval.h: unified double2ul macro for all platforms
1021 * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1022 * support/regression/tests/bitwise.c: added regtest for bug #1777758
1024 2007-09-30 Borut Razem <borut.razem AT siol.net>
1026 * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1028 * sdcc_vc_in.h: enabled warnings
1029 * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1030 unsigned type, result still unsigned
1031 * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1033 2007-09-28 Raphael Neider <rneider AT web.de>
1035 * src/pic/device.c (find_device): prevent buffer underflow error
1036 * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1037 the just destroyed list entry
1039 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1041 * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1044 2007-09-18 Borut Razem <borut.razem AT siol.net>
1046 * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1047 applied to unsigned type, result still unsigned
1049 2007-09-17 Borut Razem <borut.razem AT siol.net>
1051 * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1052 src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1053 src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1054 src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1055 src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1056 src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1057 src/z80/gen.c, src/z80/ralloc.c:
1058 fixed bug #1739860 - sdcc does not work correctly on some platforms
1060 introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1062 2007-09-17 Raphael Neider <rneider AT web.de>
1064 * src/pic16/device.c: reverted to previous version
1065 * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1067 2007-09-16 Raphael Neider <rneider AT web.de>
1069 * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1070 as this raises a ton of gpasm warnings, just emit a second label
1071 * src/pic16/devices.inc,
1072 * device/lib/pic16/pics.all,
1073 * device/lib/pic16/libdev/pic18f2585.c,
1074 * device/lib/pic16/libdev/pic18f2680.c,
1075 * device/lib/pic16/libdev/pic18f2682.c,
1076 * device/lib/pic16/libdev/pic18f2685.c,
1077 * device/lib/pic16/libdev/pic18f4585.c,
1078 * device/lib/pic16/libdev/pic18f4680.c,
1079 * device/lib/pic16/libdev/pic18f4682.c,
1080 * device/lib/pic16/libdev/pic18f4685.c,
1081 * device/include/pic16/pic18f2585.h,
1082 * device/include/pic16/pic18f2680.h,
1083 * device/include/pic16/pic18f2682.h,
1084 * device/include/pic16/pic18f2685.h,
1085 * device/include/pic16/pic18f4585.h,
1086 * device/include/pic16/pic18f4680.h,
1087 * device/include/pic16/pic18f4682.h,
1088 * device/include/pic16/pic18f4685.h,
1089 * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1090 18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1091 patch contributed by Anton Strobl, applied with changes
1093 2007-09-16 Raphael Neider <rneider AT web.de>
1095 * device/include/pic16/pic18f2431.h,
1096 * device/include/pic16/pic18f25j10.h,
1097 * device/include/pic16/pic18f4431.h,
1098 * device/include/pic16/pic18f45j10.h: adopted common include style
1099 * device/include/pic16/pic18f1320.h,
1100 * device/include/pic16/pic18f2320.h,
1101 * device/include/pic16/pic18f2525.h,
1102 * device/include/pic16/pic18f4320.h,
1103 * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1104 * device/include/pic16/pic18fregs.h: prepared for automatic include
1105 file selection by having DEVICE.h for every DEVICE
1106 * device/lib/pic16/libdev/pic18f2320.c,
1107 * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1109 * device/lib/pic16/configure.in,
1110 * device/lib/pic16/configure: use rm -rf instead of rmdir
1111 * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1112 * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1114 2007-09-09 Borut Razem <borut.razem AT siol.net>
1116 * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1117 distingush between i386 and ppc Mac OS X versions
1119 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1121 * src/mcs51/gen.c (genReceive): fixed bug 1788177
1122 * support/regression/tests/bug1788177.c: new, added
1124 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1126 * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1127 * device/include/mcs51/lint.h added keyword __naked
1129 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1133 * src/SDCCmem.h: removed maxRegBank
1134 * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1135 RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1136 * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1137 * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1138 name and behaviour to handle banked functions
1139 (scan4op): and use it to fix bug 1786213
1141 2007-09-03 Raphael Neider <rneider AT web.de>
1143 * device/include/pic16/pic18f248.h,
1144 * device/include/pic16/pic18f258.h,
1145 * device/include/pic16/pic18f448.h,
1146 * device/lib/pic16/libdev/pic18f248.c,
1147 * device/lib/pic16/libdev/pic18f258.c,
1148 * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1149 added T0CONbits, fixes #1786891
1151 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1153 * src/ds390/gen.c (genFarPointerSet),
1154 * src/hc08/ralloc.c (packRegisters),
1155 * src/mcs51/ralloc.c (packRegisters),
1156 * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1158 * src/SDCCicode.h: POINTER_SET can be true for literals too
1159 * support/regression/tests/bug1750318.c: new, added
1161 2007-08-23 Borut Razem <borut.razem AT siol.net>
1163 * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1164 library versions without the completition functionality
1166 2007-08-22 Raphael Neider <rneider AT web.de>
1168 * device/include/pic16/pic18f1220.h,
1169 * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1171 2007-08-12 Borut Razem <borut.razem AT siol.net>
1173 * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1175 2007-08-11 Borut Razem <borut.razem AT siol.net>
1177 * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1178 src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1179 support/Util/SDCCerr.[ch] moved to src
1180 * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1181 as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1182 device/examples/ds390/tinitalk/tinitalk.dsp,
1183 device/examples/serialcomm/windows/serialcomm.dsp,
1184 support/librarian/librarian.dsp:
1185 removed linking of unused odbc32.lib and odbccp32.lib
1186 * support/scripts/winres.h:
1187 added for compilation with Visual C++ 2005 Express Edition
1189 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1191 * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1194 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1196 * sdccconf_in.h: update the endian test so that SPARC Solaris
1197 does not throw syntax errors
1199 2007-08-06 Borut Razem <borut.razem AT siol.net>
1201 * doc/sdccman.lyx: removed two index entries which prevented the
1202 generation of sdcc doc archive
1204 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1206 * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1207 instead of lyx 1.5.0.
1209 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1211 * device/include/hc08/mc68hc908apxx.h: new header contributed by
1212 Lucas Loizaga, with minor modifications. Thanks!
1214 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1216 * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1219 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1221 * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1222 src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1225 2007-07-22 Borut Razem <borut.razem AT siol.net>
1227 * configure.in, configure: re-introduced .version
1228 * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1229 the version reverted to 2.7.0
1231 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1234 * doc/sdccman.lyx: bumped version to 2.7.3
1235 * device/include/mcs51/compiler.h: fixed elif->else
1236 * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1237 * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1238 (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1239 enable accuse for bit operands
1240 * src/SDCCmain.c (printVersionInfo),
1241 * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1242 environment descriptor
1243 * src/SDCCutil.h: added getBuildEnvironment
1244 * src/SDCCglue.c (initialComments): use getBuildEnvironment
1245 * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1246 * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1247 * support/regression/tests/bug1348008.c,
1248 * support/regression/tests/bug1496419.c,
1249 * support/regression/tests/bug1503067.c,
1250 * support/regression/tests/preproc.c: added empty tests
1252 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1254 * support/regression/tests/bug1678803.c: new, added
1256 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1259 * as/link/hc08/lkihx.c,
1260 * as/link/hc08/lkrloc.c,
1261 * as/link/mcs51/lkihx.c,
1262 * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1263 ihxExtendedLinearAddress
1264 * as/link/mcs51/lkrloc.c (relr),
1265 * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1266 acall/ajmp, see bug 830513
1268 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1270 * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1271 (cseBBlock): remember aggr2ptr has been used
1272 * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1273 (geniCodeAssign): fixed bug 868103
1274 * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1275 added operandSize prototype
1276 * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1277 (genDataPointerSet): use max of size of right and result,
1278 (gencjne): added parameter useCarry for optimization,
1279 (genCmpEq): use carry if appropriate,
1280 (genXor): check if operand already in carry
1281 * support/regression/tests/bug-868103.c: enabled test
1283 2007-07-12 Raphael Neider <rneider AT web.de>
1285 * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1287 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1289 * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1290 from Robert Larice, thanks
1291 * support/regression/tests/bitopcse.c,
1292 * support/regression/tests/bitvars.c,
1293 * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1294 * support/regression/tests/bug-927659.c: enabled test for z80
1295 * support/regression/tests/bug1738367.c: added extra tests by Frieder
1296 * support/regression/tests/bug1745717.c: new, added
1297 * support/regression/tests/literalop.c,
1298 * support/regression/tests/nullstring.c: removed storage definitions that
1299 are now in testfwk.h
1301 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1303 * device/include/stdbool.h: do not define __bool_true_false_are_defined
1304 and bool for targets that do not fully support it.
1305 * support/regression/tests/bug1546986.c,
1306 * support/regression/tests/bug1723128.c,
1307 * support/regression/tests/bug1734654.c,
1308 * support/regression/tests/bug1738367.c,
1309 * support/regression/tests/constantRange.c: only use bool if allowed
1311 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1313 * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1314 Larice, also handle function pointers
1315 * support/regression/tests/bug1749275.c: new, added
1317 2007-07-03 Borut Razem <borut.razem AT siol.net>
1319 * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1320 src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1321 #1746528: SDCC should ignore ':' in inline assembler comments
1322 * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1324 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1326 * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1327 * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1329 2007-06-29 Borut Razem <borut.razem AT siol.net>
1331 * src/SDCCmain.c: fixed bug
1332 #1744746: SDCC #4867: broken option --xram-size
1334 2007-06-28 Borut Razem <borut.razem AT siol.net>
1336 * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1337 find out the endianess of host machine for ucsim
1339 2007-06-27 Borut Razem <borut.razem AT siol.net>
1341 * support/regression/generate-cases.py: corrected the file name
1343 * configure.in, configure, sdccconf_in.h: find out the endianess of
1345 * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1348 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1350 * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1352 2007-06-26 Borut Razem <borut.razem AT siol.net>
1354 * support/regression/generate-cases.py: display warning if function
1355 list is empty; implemented more flexible rule for detection of
1356 testing functions, allowing return type 'void' in the same line as
1357 the function name in the function definition
1358 * support/regression/tests/bug-1654060.c: corrected test
1359 * support/librarian/sdcclib.c: fixed warning:
1360 format '%s' expects type 'char *', but argument 2 has type 'int'
1362 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1364 * support/librarian/sdcclib.c: Added feature Requests [1510635]
1365 Multiple infiles for sdcclib.
1367 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1369 * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1372 2007-06-18 Borut Razem <borut.razem AT siol.net>
1374 * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1375 how to handle comments, so they have to be removed by the
1376 preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1377 * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1378 src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1379 support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1380 table driven option hadling
1382 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1384 * src/SDCCast.c (decorateType),
1385 * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1386 iCode to ast level to fix bug 1738367
1387 * support/regression/tests/bug1738367.c: new, added
1389 2007-06-15 Raphael Neider <rneider AT web.de>
1391 * src/pic16/devices.inc,
1392 * device/lib/pic16/pics.all,
1393 * device/include/pic16/pic18fregs.h,
1394 * device/include/pic16/pic18f[24][45]20.h,
1395 * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1396 18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1397 * device/lib/pic16/Makefile.in: faster cleanup
1399 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1401 * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1403 2007-06-13 Raphael Neider <rneider AT web.de>
1405 * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1407 2007-06-12 Raphael Neider <rneider AT web.de>
1409 * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1410 suppress bit defines if NO_BIT_DEFINES is #define'd
1411 * device/include/pic/pic*.h: recreated all headers to include
1412 conditional bit defines
1413 * device/include/pic/pic16f886.h,
1414 * device/include/pic/pic16f887.h: fixed based on newer .inc file
1415 * device/include/pic/recreate.sh: script to recreate the complete
1416 device library files based on the currently supported devices
1418 2007-06-12 Borut Razem <borut.razem AT siol.net>
1420 * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1421 support/regression/Makefile.in, support/scripts/build.mak,
1422 support/scripts/Makefile.snapshot:
1423 use new svn URL scheme
1424 * doc/sdccman.lyx: SDCC Wiki moved to
1425 http://sdcc.wiki.sourceforge.net/
1427 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1429 * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1430 * support/regression/tests/bug1734654.c: added
1432 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1434 * src/SDCCast.c (decorateType): optimized '?' for equal operands
1435 * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1436 with literal operands
1438 2007-06-10 Borut Razem <borut.razem AT siol.net>
1440 * as/link/z80/lklibr.c: fixed mingw build warning
1441 lklibr.c:575: warning: implicit declaration of function 'tolower'
1442 * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1443 src/z80/main.c: move target specific options from src/SDCCmain.c
1444 to src/<target>/main.c
1446 2007-06-09 Borut Razem <borut.razem AT siol.net>
1448 * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1449 removed unused swap_sense; removed outBitCLong, replaced with outBitC
1450 * support/regression/tests/bug-1294691.c: added
1452 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1454 * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1455 can also be static, fixes bug 1733438
1456 * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1457 have absolute address too
1458 (computeType): added optimization for 'cond ? true : false'
1459 * support/regression/tests/absolute.c: added test for static absolute var
1461 2007-06-08 Raphael Neider <rneider AT web.de>
1463 * src/regression/Makefile: suppress parallel builds, allow easy
1464 switching between pic14/pic16 ports
1465 * src/regression/picregs.h: added pic14/16 header file switch
1466 * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1467 inline.c,nestfor.c,string1.c}: include "picregs.h"
1469 2007-06-07 Borut Razem <borut.razem AT siol.net>
1471 * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1472 permanent solution to suppress GCC 4.2.0 c++ warning:
1473 deprecated conversion from string constant to `char *'
1474 use 'const char *' where ever required
1475 * support/regression/generate-cases.py: implemented more flexible rule
1476 for detection of testing functions, allowing white-spaces surrounding
1477 the function name and the 'void' parameter.
1478 * support/regression/tests/constantRange.c,
1479 support/regression/tests/scott-compare3.c: fixed failing regression
1480 tests, uncovered by implementation of more flexible rule for detection
1481 of testing functions
1483 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1485 * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1487 2007-06-04 Borut Razem <borut.razem AT siol.net>
1489 * configure.in, configure, config_vc.awk: sdcc version number is now
1490 stored in configure.in; removed .version
1491 * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1492 doc/INSTALL.txt: version bumped to 2.7.2
1493 * sim/ucsim/configure.in, sim/ucsim/configure:
1494 use "read" to read from .version
1496 2007-06-03 Borut Razem <borut.razem AT siol.net>
1498 * */Makefile.in: removed annoying warning:
1499 Makefile:xx: Makefile.dep: No such file or directory
1501 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1503 * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1504 (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1505 * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1506 * src/SDCCast.c (resultTypePropagate): propagate for '!',
1507 (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1508 bugfix: only use newBoolLink for bit result type
1509 * src/SDCCicode.c (geniCodeLogic): added param tree,
1510 bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1511 (geniCodeLogicAndOr): use IS_BIT,
1512 (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1513 (ast2iCode): added tree param to geniCodeLogic for comparisons
1514 * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1515 * support/regression/tests/bug1723128.c: added test NotZero
1517 2007-06-01 Borut Razem <borut.razem AT siol.net>
1519 * SDCPP synchronized with GCC CPP release version 4.2.0,
1520 currently the latest release:
1521 * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1522 support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1523 support/cpp2/cppdefault.h, support/cpp2/except.h,
1524 support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1525 support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1526 support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1527 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1528 support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1529 support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1530 support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1531 support/cpp2/opts.h, support/cpp2/output.h,
1532 support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1533 support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1534 support/cpp2/system.h, support/cpp2/version.c,
1535 support/cpp2/Makefile.in: modified
1536 * support/cpp2/opts-common.c: added
1537 * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1538 * device/lib/pic16/libdev/pic18f[24]5j10.c:
1539 search for included source file in local directory
1540 * sim/ucsim/configure, sim/ucsim/configure.in:
1541 temporary solution to suppress GCC 4.2.0 c++ warning:
1542 deprecated conversion from string constant to `char *'
1544 2007-06-01 Raphael Neider <rneider AT web.de>
1546 * device/lib/pic/libdev/pic12f683.c,
1547 * device/include/pic/pic12f683.h: added GPIO bits
1549 2007-06-01 Raphael Neider <rneider AT web.de>
1551 * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1552 quotation marks, clarified role of PIC14 vs. PIC16 ports
1553 * src/pic16/devices.inc,
1554 * device/include/pic16/pic18fregs.h,
1555 * device/include/pic16/pic18f[24][45]j10.h,
1556 * device/lib/pic16/pics.all,
1557 * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1558 18f24j10, 18f25j10, 18f44j10, and 18f45j10
1559 * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1560 for new devices as they are not yet supported by gputils
1562 2007-05-31 Borut Razem <borut.razem AT siol.net>
1564 * Small Device C Compiler 2.7.0 released
1565 * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1566 changed sdcc version to 2.7.1
1567 * support/scripts/sdcc.nsi: added How to create WIN32 release
1570 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1572 * doc/sdccman.lyx: documented initialization and allocation of absolute
1573 variables, bit parameter passing, the need for function pointers to be
1574 reentrant and alpha quality support of inline and retrict
1576 2007-05-26 Borut Razem <borut.razem AT siol.net>
1578 * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1579 support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1580 * docs/knownbugs.html: updated
1582 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1584 * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1586 * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1588 (gencjneshort): optimized when left is AOP_DIR
1589 * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1590 initializing unions in a struct/array
1591 * support/regression/fwk/include/testfwk.h: added defines for data, near
1592 and far for host and z80
1593 * support/regression/tests/bug1723128.c: new, added
1595 2007-05-22 Borut Razem <borut.razem AT siol.net>
1597 * doc/knownbugs.html: updated
1599 2007-05-21 Raphael Neider <rneider AT web.de>
1601 * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1602 error message instead
1603 * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1605 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1607 * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1609 2007-05-21 Raphael Neider <rneider AT web.de>
1611 * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1613 * src/regression/gpsim_assert.h,
1614 * src/regression/Makefile,
1615 * src/regression/pcodeopt.c: regression test for the above fix
1617 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1619 * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1620 jumps to self, fixed bug 1717281
1622 2007-05-10 Borut Razem <borut.razem AT siol.net>
1624 * support/scripts/gen_known_bugs.pl: cosmetic fix
1625 * doc/knownbugs.html: generated by gen_known_bugs.pl
1627 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1629 * src/SDCCast.c (createFunction): also generate non-inlined version of
1630 function for functions declared as "static inline"
1631 * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1632 function can be inlined after non-inlined version generated.
1634 2007-05-10 Borut Razem <borut.razem AT siol.net>
1636 * support/scripts/gen_known_bugs.pl: added script
1637 which generates knownbugs.html
1639 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1641 * doc/knownbugs.html: updated for release 2.7.0
1643 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1645 * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1647 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1649 * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1650 (throughout): updated generating comments
1651 * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1652 (throughout): updated generating comments
1653 * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1654 rule instead of at the second, or it might skip lines when removing the
1656 * support/regression/tests/bug1714204.c: changed test to foo
1658 2007-05-08 Borut Razem <borut.razem AT siol.net>
1660 * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1661 thanks to SDCC Distributed Compile Farm members,
1662 added Z80 and GBZ80 command line options
1663 * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1665 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1667 * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1668 * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1669 * support/regression/tests/longlit.c: modified to be tested at all and
1670 to pass the actual test
1672 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1674 * device/include/mcs51/uPSD33xx.h: Added.
1676 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1678 * device/lib/_gptrput.c,
1679 * device/lib/_gptrget.c: removed old code,
1681 * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1682 * support/regression/tests/bug1714204.c: new, added
1684 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1686 * support/regression/tests/regtrack.c: test was never executed
1687 because of the regression test being picky about white spaces.
1688 * device/lib/mcs51/crtclear.asm: added comment
1690 2007-05-06 Raphael Neider <rneider AT web.de>
1692 * device/lib/pic/Makefile.rules,
1693 * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1694 made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1696 2007-05-06 Raphael Neider <rneider AT web.de>
1698 * src/pic16/device.h,
1700 * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1701 _pic16_setDefaultOptions): removed/reordered command-line args
1702 * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1703 devices, regrouped command line args, environment variables),
1704 clarified sone points, added sections on how to add devices to the
1707 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
1709 * src/z80/peeph.def: fixed bug in rule 2
1711 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
1713 * src/port.h: added TARGET_MCS51_LIKE
1714 * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
1715 take advantage of it too
1716 * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
1717 (shiftR2Left2Result): Optimized: don't check shifting by 0
1718 * src/z80/peeph-z80.def,
1719 * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
1720 modifications, see patch 1700823
1721 * src/mcs51/peep.c (): fixed bug 1712928
1722 * support/regression/tests/bug1712928.c: new, added
1724 2007-05-05 Borut Razem <borut.razem AT siol.net>
1726 * device/lib/pic16/Makefile.common.in,
1727 device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
1728 removed bash dependencies
1730 2007-05-01 Borut Razem <borut.razem AT siol.net>
1733 fixed bug #1710507: --i-code-in-asm makes compile fail
1734 all iCode comments are now one liners
1735 * src/mcs51/gen.c: fixed memory leak
1737 2007-05-01 Raphael Neider <rneider AT web.de>
1739 * device/lib/pic/libdev/*.c
1740 * device/include/pic/*.h: regenerated all device libs from updated
1742 * support/scripts/inc2h.pl: documented usage, now uses strict to
1745 2007-04-30 Borut Razem <borut.razem AT siol.net>
1748 fixed bug #1669175: Problem with space in output paths
1749 documented how to use paths with spaces for Windows users
1751 2007-04-29 Borut Razem <borut.razem AT siol.net>
1753 * Fixed svn:eol-style and svn:keywords properties
1754 * src/SDCCval.c: fixed bug
1755 #1592871: Segfault with "large" const arrays of characters
1756 replaced recursion with iteration
1757 * Removed svn:executable property from non-executable files
1759 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
1761 * src/mcs51/gen.c (genRet): fixed bug 1707003
1763 2007-04-27 Raphael Neider <rneider AT web.de>
1765 * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
1766 createReachingDefinitions,assignValnums,pic16_destructDF,
1767 pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
1768 prevent NULL pointer dereferences
1769 * device/lib/pic/libdev/pic16f886.c,
1770 * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
1771 prevent building them, gputils do not really support them yet
1773 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1775 * device/lib/_ltoa.c: 36 bytes less __data mem. This really
1776 helps printf_small. 32 bytes more __idata mem.
1778 2007-04-27 Raphael Neider <rneider AT web.de>
1780 * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
1781 return early when pb or pb->pcHead is NULL (patch #1708427)
1782 * src/regression/empty.c,
1783 * src/regression/Makefile: added test with empty functions
1784 * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
1786 2007-04-27 Borut Razem <borut.razem AT siol.net>
1788 * src/SDCCast.c: fixed feature request
1789 #1547512: Redundant strings linked when using sizeof("abc")
1791 2007-04-23 Borut Razem <borut.razem AT siol.net>
1793 * doc/sdccman.lyx, src/SDCCmain.c:
1794 peep-hole comments are generated only if --fverbose-asm option is
1795 specified and --no-peep-comments is not, as proposed by Frieder.
1796 * support/regression/Makefile.in: compile regression tests with
1797 --fverbose-asm option so one can "grep" whether a new (or an old)
1798 peephole is (still) applied; requested by Frieder.
1800 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1802 * device/include/pic/pic16f886.h,
1803 * device/include/pic/pic16f887.h,
1804 * device/lib/pic/libdev/pic16f886.c,
1805 * device/lib/pic/libdev/pic16f887.c,
1806 * device/include/pic/pic14devices.txt,
1807 * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
1809 2007-04-23 Kevin Buettner <kevin AT buettner.to>
1811 * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
1814 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1816 * device/lib/_memset.c: assembler version for mcs51
1818 2007-04-22 Borut Razem <borut.razem AT siol.net>
1820 * support/scripts/listerr.c: program to create the list of errors and
1821 warnings list from - added
1822 * doc/sdccman.lyx: removed the note
1823 "For list of warnings and corresponding codes, see err_warn.txt"
1824 * src/SDCCsymt.c: fixed bug #1699804:
1825 Bug with some uses of sizeof(static local array) (MCS51)
1826 * support/regression/tests/bug-1699804.c: added
1828 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
1830 * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
1831 (main): added option -i,
1832 (asmbl, case S_INCL): use search_path_fopen,
1833 mostly from patch 1579668 by Peter Miller, thanks
1834 * src/z80/main.c: fixed typo --callee-saves-bc
1835 * device/include/mcs51/compiler.h: added sfrword for Tasking
1837 2007-04-20 Borut Razem <borut.razem AT siol.net>
1839 * src/z80/main.c: replaced reserved keyword asm with asmblr
1841 2007-04-19 Borut Razem <borut.razem AT siol.net>
1843 * src/port.h: use const pointers to strings
1844 * src/SDCCargs.h: declared getStringArg() and getIntArg()
1845 * src/pic16/main.c: include SDCCargs.h
1846 * src/SDCCglobl.h: code_seg and const_seg are not pointers to
1847 const char, since the strings are dynamically allocated
1848 * src/SDCCmain.c: options.code_seg and options.const_seg are
1849 dynamically allocated; check port specific command line options
1850 before the general ones
1851 * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
1853 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
1855 * device/include/ds400rom.h,
1856 * device/lib/ds390/lcd390.c,
1857 * device/lib/ds390/memcpyx.c,
1858 * device/lib/ds390/rtc390.c,
1859 * device/lib/ds400/ds400rom.c,
1860 * device/lib/ds400/memcpyx.c,
1861 * device/lib/hc08/_ret.c: more replacements of keywords with their
1862 double underscore equivalents
1863 * device/lib/ds390/Makefile.in,
1864 * device/lib/ds400/Makefile.in,
1865 * device/lib/gbz80/Makefile.in,
1866 * device/lib/hc08/Makefile.in,
1867 * device/lib/mcs51/Makefile.in,
1868 * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
1870 2007-04-17 Borut Razem <borut.razem AT siol.net>
1872 * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
1873 src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
1874 fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
1875 to --fverbose-asm, to be gcc'ish
1877 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
1879 * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
1881 2007-04-17 Borut Razem <borut.razem AT siol.net>
1883 * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
1884 * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
1885 device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
1886 with their double underscore equivalent
1888 2007-04-14 Borut Razem <borut.razem AT siol.net>
1890 * doc/sdccman.lyx: some additional "freeware" replaced with "free open
1893 2007-04-13 Borut Razem <borut.razem AT siol.net>
1895 * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
1897 * device/examples/serialcomm/windows/serial.[ch],
1898 device/examples/serialcomm/windows/test_serialcomm.cpp:
1899 updated by Bela Torok
1900 * device/examples/serialcomm/windows/serialcomm.dsw,
1901 device/examples/serialcomm/windows/serialcomm.dsp: added
1903 2007-04-13 Jan Waclawek <wek AT efton.sk>
1905 * doc/sdccman.lyx: additions and changes at various places
1906 (submitted as #1697136).
1907 (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
1909 2007-04-10 Borut Razem <borut.razem AT siol.net>
1911 * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
1912 LyX file format changed to 245
1913 * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
1914 "FreeWare" replaced with "free open source"
1916 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
1918 * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
1920 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
1922 * device/include/pic16/pic18fregs.h,
1924 * device/lib/_decdptr.c,
1925 * device/lib/_divsint.c,
1926 * device/lib/_divslong.c,
1927 * device/lib/_divuint.c,
1928 * device/lib/_divulong.c,
1929 * device/lib/_fs2schar.c,
1930 * device/lib/_fs2sint.c,
1931 * device/lib/_fs2slong.c,
1932 * device/lib/_fs2uchar.c,
1933 * device/lib/_fs2uint.c,
1934 * device/lib/_fs2ulong.c,
1935 * device/lib/_fsadd.c,
1936 * device/lib/_fscmp.c,
1937 * device/lib/_fsdiv.c,
1938 * device/lib/_fseq.c,
1939 * device/lib/_fsget1arg.c,
1940 * device/lib/_fsget2args.c,
1941 * device/lib/_fsgt.c,
1942 * device/lib/_fslt.c,
1943 * device/lib/_fsmul.c,
1944 * device/lib/_fsneq.c,
1945 * device/lib/_fsnormalize.c,
1946 * device/lib/_fsreturnval.c,
1947 * device/lib/_fsrshift.c,
1948 * device/lib/_fssub.c,
1949 * device/lib/_fsswapargs.c,
1950 * device/lib/_gptrget.c,
1951 * device/lib/_gptrgetc.c,
1952 * device/lib/_gptrput.c,
1953 * device/lib/_logexpf.c,
1954 * device/lib/_modsint.c,
1955 * device/lib/_modslong.c,
1956 * device/lib/_moduint.c,
1957 * device/lib/_modulong.c,
1958 * device/lib/_mulint.c,
1959 * device/lib/_mullong.c,
1960 * device/lib/_schar2fs.c,
1961 * device/lib/_ser.c,
1962 * device/lib/_setjmp.c,
1963 * device/lib/_sint2fs.c,
1964 * device/lib/_slong2fs.c,
1965 * device/lib/_spx.c,
1966 * device/lib/_uchar2fs.c,
1967 * device/lib/_uint2fs.c,
1968 * device/lib/_ulong2fs.c,
1969 * device/lib/asincosf.c,
1970 * device/lib/atanf.c,
1971 * device/lib/calloc.c,
1972 * device/lib/ds390/tinibios.c,
1973 * device/lib/ds400/tinibios.c,
1974 * device/lib/expf.c,
1975 * device/lib/free.c,
1976 * device/lib/hc08/_mulint.c,
1977 * device/lib/logf.c,
1978 * device/lib/malloc.c,
1979 * device/lib/printf_fast.c,
1980 * device/lib/printf_tiny.c,
1981 * device/lib/printfl.c,
1982 * device/lib/realloc.c,
1983 * device/lib/ser_ir.c,
1984 * device/lib/serial.c,
1985 * support/regression/tests/libmullong.c: replaced all special keywords
1986 with their double underscore equivalent
1987 * support/regression/ports/mcs51-xstack-auto/spec.mk,
1988 * device/lib/Makefile.in: compile libs with --std-c99 instead of
1990 * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
1991 (genRet): if the bit-symbol is ruonly it already is in the carry
1992 * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
1993 * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
1994 * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
1995 type UCHAR if dest is not bit
1997 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
1999 * device/include/math.h,
2000 * device/lib/cotf.c,
2001 * device/lib/expf.c,
2002 * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2004 2007-04-01 Borut Razem <borut.razem AT siol.net>
2006 * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2007 fixed bug #1692042: input buffer overflow...scanner uses REJECT
2008 * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2009 gcc_unreachable() called internal_error()...
2011 2007-03-30 Raphael Neider <rneider AT web.de>
2013 * src/pic/ralloc.c (isData): suppress garbage debug output
2015 2007-03-28 Borut Razem <borut.razem AT siol.net>
2018 "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2019 is developed, built and used worldwide, and the word "night" doesn't
2022 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2024 * device/include/mcs51/C8051F360.h: new, added
2025 * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2027 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2029 * src/SDCC.y (declaration_specifiers, function_specifier),
2030 * support/Util/SDCCerr.c,
2031 * support/Util/SDCCerr.h,
2033 * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2035 * src/SDCCmem.c (deallocParms),
2036 * src/SDCCast.c: support for function inlining, not quite complete
2037 * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2038 'restrict' qualifier
2040 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2042 * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2043 (saveRBank, unsaveRBank): don't save bits,
2044 (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2045 * support/regression/tests/bug1535242.c: new, added
2046 * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2047 thanks Alexey Shamrin <shamrin AT gmail.com>,
2048 made assert.h header ANSI compliant (added a check for NDEBUG macro,
2049 removed header guard)
2051 * sdcc.spec: bumped version to 2.6.5
2052 * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2054 2007-03-22 Borut Razem <borut.razem AT siol.net>
2056 * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2057 fixed bug #1653671: sdcdb integration into ddd is broken
2059 2007-03-22 Raphael Neider <rneider AT web.de>
2061 * src/pic/gen.c (popGetExternal): augmented to also create references
2062 to external variables (not only labels),
2063 (genCall): comment on plan to reduce PAGESEL overhead,
2064 (genFunction, genEndFunction): also save/restore FSR around interrupt
2065 handling code, removed lots of unused code
2066 (genDivOneByte): release acquired temp register
2067 * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2069 * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2070 for registers that need to be saved during interrupts (FSR, STATUS,
2071 PCLATH; W needs special handling), currently only FSR is used
2073 2007-03-22 Raphael Neider <rneider AT web.de>
2075 * device/include/pic/pic14devices.txt: 16f688 has only one config word
2077 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2079 * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2081 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2083 * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2085 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2087 * as/link/aslink.h: added LKOBJEXT
2088 * as/link/hc08/link_hc08.dsp,
2089 * as/link/hc08/Makefile.bcc,
2090 * as/link/hc08/Makefile.in,
2091 * as/link/mcs51/aslink.dsp,
2092 * as/link/mcs51/Makefile.bcc,
2093 * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2094 * as/link/hc08/lkaomf51.c, as/link/mcs51/lkaomf51.c,
2095 * as/link/lkaomf51.c: merged and moved
2096 * as/link/hc08/lkdata.c, as/link/mcs51/lkdata.c,
2097 * as/link/z80/lkdata.c,
2098 * as/link/lkdata.c: merged and moved
2099 * as/link/hc08/lkmain.c,
2100 * as/link/mcs51/lkmain.c: cosmetic changes
2101 * as/link/z80/lkeval.c, as/link/lkeval.c: merged
2102 * as/link/lklex.c: use LKOBJEXT
2103 * as/link/z80/lklist.c, as/link/lklist.c: merged,
2104 ANSI-fied functions, removed bubble-sorts
2105 * as/link/z80/lksym.c as/link/lksym.c: merged,
2107 * as/link/z80/linkgbz80.dsp,
2108 * as/link/z80/linkz80.dsp,
2109 * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2110 moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2111 * as/link/z80/lkhead.c,
2112 * as/link/z80/lklex.c: deleted
2113 * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2114 * as/link/z80/lkmain.c: added copyfile()
2116 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2118 * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2120 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2122 * device/lib/_strlen.c: assembler version for mcs51
2124 2007-03-13 Raphael Neider <rneider AT web.de>
2126 * device/include/pic16/pic18f2221.h,
2127 * device/include/pic16/pic18f2321.h,
2128 * device/include/pic16/pic18f2331.h,
2129 * device/include/pic16/pic18f4221.h,
2130 * device/include/pic16/pic18f4321.h,
2131 * device/include/pic16/pic18f4331.h: fixed config byte location names
2132 * support/scripts/inc2h-pic16.pl: removed debug output, emit
2133 consistently named config byte locations
2135 2007-03-13 Borut Razem <borut.razem AT siol.net>
2137 * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2138 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2139 sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2140 as/link/z80/Makefile.in, as/z80/Makefile.in:
2143 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2145 * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2146 * device/lib/printf_large.c: pointer was converted to generic
2147 pointer for mcs51 models other than model-small (Maarten noticed)
2149 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2151 * device/include/mcs51/ADuC84x.h: Added.
2153 2007-03-10 Borut Razem <borut.razem AT siol.net>
2155 * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2156 fixed RFE #1624219: double backslashes in filenames;
2157 functions hexEscape(), octalEscape() and copyStr() moved from
2158 SDCCval.c to SDCCutil.c and made them glovbally available
2160 2007-03-09 Borut Razem <borut.razem AT siol.net>
2162 * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2163 src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2164 1673361: Missaligned comments in output files
2166 2007-03-09 Raphael Neider <rneider AT web.de>
2168 * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2170 2007-03-09 Raphael Neider <rneider AT web.de>
2174 * src/pic/ralloc.c: suppress undesired debug output
2175 * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2177 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2179 * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2181 2007-03-07 Borut Razem <borut.razem AT siol.net>
2183 * device/lib/pic16/libdev/pic18f[24][34]31.c:
2184 search include files in the current directory
2186 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2188 * src/SDCCglue.c (emitMaps, glue),
2189 * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2191 * support/regression/tests/absolute.c: added xdata test
2193 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2195 * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2196 added condition to macro, fixes bug 1666080
2198 2007-03-02 Raphael Neider <rneider AT web.de>
2200 * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2202 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2204 * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2205 be cleared. Unconditionally set __XPAGE
2206 * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2208 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2213 * src/mcs51/rtrack.c,
2215 * doc/sdccman.lyx: added --no-gen-comments
2216 * src/mcs51/peeph.def: added 192.b, disabled 185
2218 2007-02-25 Raphael Neider <rneider AT web.de>
2220 * src/pic16/gen.c (genCast): fixed typo
2221 * device/lib/pic16/Makefile.subdir: only install existing files
2222 * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2224 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2226 * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2227 * device/lib/mcs51/crtclear.asm,
2228 * device/lib/mcs51/crtxclear.asm: renumbered labels
2229 * device/lib/mcs51/Makefile.in: added crtcall.asm
2230 * doc/sdccman.lyx: documented mcs51 crt* library startup code
2231 * src/mcs51/gen.c (movc): removed,
2232 (aopGet, genPlusBits): clear a after loading the carry (possibly from
2234 (toCarry, genSend, genRet): added function toCarry,
2235 (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2236 (assignBit, genAssign, genCast): added function assignBit
2237 * src/mcs51/Makefile.bcc: added rtrack.c
2238 * src/mcs51/ralloc.h: made valueKnown a bitfield
2239 * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2240 fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2241 disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2242 * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2243 * src/z80/gen.c: added AOP_IS_PAIRPTR,
2244 (_pop): only pop valid pairs, see gencjneshort,
2245 (gencjneshort): return pair that still needs to be popped, restructured,
2246 (gencjne, genCmpEq): call _pop
2248 2007-02-23 Raphael Neider <rneider AT web.de>
2250 * device/include/pic/pic14devices.txt: 16f684 has only one config word
2252 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2254 * device/include/mcs51/P89LPC925.h: Added.
2256 2007-02-18 Raphael Neider <rneider AT web.de>
2258 * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2260 2007-02-17 Borut Razem <borut.razem AT siol.net>
2262 * support/cpp2/directives.c, support/cpp2/version.c:
2263 synchronized with GCC CPP 4.1.2
2265 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2267 * src/mcs51/rtrack.h,
2268 * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2269 by checking the strings passed by emitcode() to the assembler.
2270 Feel free to change. This in part addresses RFE #482179.
2271 Set environment variable SDCC_RTRACK to enable.
2272 * src/mcs51/gen.c: inserted hooks
2273 * src/mcs51/ralloc.h: added two members to struct regs
2274 * support/regression/tests/regtrack.c: added
2276 2007-02-14 Borut Razem <borut.razem AT siol.net>
2278 * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2279 * Makefile.in: applied patch from Makefile related part of
2280 #1469393: Compiler does not initialize static data
2282 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2284 * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2285 for better fix of bug 1273984, compiles pic16 rand.c
2287 2007-02-12 Borut Razem <borut.razem AT siol.net>
2289 * src/pic16/main.c: fixed pic16 standard library directory bug
2291 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2293 * src/hc08/gen.c (genSwap): fix swap regression test
2295 2007-02-10 Borut Razem <borut.razem AT siol.net>
2297 * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2299 * support/regression/tests/bug-1654060.c: added regression test for
2302 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2304 * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2305 bit moves in return statement
2307 2007-02-09 Borut Razem <borut.razem AT siol.net>
2309 * src/SDCC.y: fixed bug #1654060 typedef within function causes
2312 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2314 * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2315 * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2317 2007-02-07 Raphael Neider <rneider AT web.de>
2319 * src/pic16/devices.inc,
2320 * device/include/pic16/pic18fregs.h,
2321 * device/include/pic16/pic18f[24][34]31.h,
2322 * device/lib/pic16/libdev/pic18f[24][34]31.c,
2323 * device/lib/pic16/pics.all: added 18f[24][34]31 family
2324 * device/lib/pic16/libio/i2c.ignore: do not build i2c
2326 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2328 * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2329 can this have lived here for so many years?
2330 * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2331 fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2332 * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2334 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2336 * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2337 appended by loop induction must be at the very end of the eBBlock
2339 2007-02-05 Kevin Vigor
2341 * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2343 2007-02-05 Borut Razem <borut.razem AT siol.net>
2345 * support/regression/fwk/lib/timeout.c: native WIN32 port,
2346 implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2348 2007-02-03 Borut Razem <borut.razem AT siol.net>
2350 * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2351 applied patch #1646602 option to set default signedness of char to
2352 unsigned, added -funsigned-char command line option,
2353 thanks to Gunther Jehle
2354 * device/lib/Makefile.in: added the -f option to rm so it doesn't
2355 prompt for file deletion a few hundred times (especially the
2356 subversion files, which have ro permissions so it asks for
2357 confirmation), thanks to Simon McAuliffe;
2358 added {} + option to find in order to remove multiple files from a
2361 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2363 * device/include/mcs51/SST89x5xRDx.h: Added.
2365 2007-02-02 Raphael Neider <rneider AT web.de>
2367 * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2368 * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2370 2007-02-01 Raphael Neider <rneider AT web.de>
2372 * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2375 2007-01-31 Borut Razem <borut.razem AT siol.net>
2377 * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2378 if compiled with GCC. Thanks to Raphael Neider
2380 2007-01-31 Raphael Neider <rneider AT web.de>
2382 * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2383 operand names, handles name and (name + n) for all n,
2384 (sameBank): restructured, also check bank allocation policy,
2385 * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2386 (pic14_operandsAllocatedInSameBank): check whether to operands
2387 will be allocated into the same bank (i.e., section) to reduce
2388 BANKSEL overhead, queried from pcode.c:sameBank,
2389 (pic14printLocals): reintroduced clustering registers into a single
2390 section: all compiler generated symbols will now reside in one
2391 bank (per file), reducing BANKSEL overhead and code size,
2392 (showAllMemmaps): use local dbuf where possible
2394 2007-01-29 Raphael Neider <rneider AT web.de>
2396 * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2397 (call_libraryfunc): retrieve/create symbol and mark as used,
2398 (genFunction): mark defined functions as non-extern and add again
2399 to code memmap for later output
2400 * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2401 (pic14printLocals): reworked for new symbol emission,
2402 (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2403 showAllMemmaps): reworked symbol output using dbufs, added handling
2404 of string literals (still incomplete),
2405 (picglue): removed symbol emission, moved into showAllMemmaps,
2406 (emitSymbolSet): new workhorse for symbol output,
2407 (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2409 2007-01-29 Borut Razem <borut.razem AT siol.net>
2411 * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2412 component contains the extension separator.
2414 2007-01-28 Borut Razem <borut.razem AT siol.net>
2416 * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2418 * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2419 src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2420 src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2421 src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2422 src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2423 src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2424 src/z80/gen.c, support/Util/MySystem.c:
2425 accept slash and backslash as directory separator on WIN32 and
2428 2007-01-28 Raphael Neider <rneider AT web.de>
2430 * src/pic16/devices.inc,
2431 * device/include/pic16/pic18f[24][23]21.h,
2432 * device/include/pic16/pic18fregs.h,
2433 * device/lib/pic16/libdev/pic18f[24][23]21.c,
2434 * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2435 * device/lib/pic16/libio/adc.ignore,
2436 * device/lib/pic16/libio/i2c.ignore,
2437 * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2438 family, as gputils do not yet support the devices
2439 * device/lib/pic16/Makefile.subdir: ignore errors on install
2440 * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2441 headers and libraries from gputils .inc files
2443 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2445 * doc/sdccman.lyx: add printf_fast_f precision limitation note
2447 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2449 * doc/sdccman.lyx: add printf benchmarks
2451 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2453 * device/lib/printf_fast.c: fix %c, char promoted to int
2454 * device/lib/printf_tiny.c: fix %c, char promoted to int
2456 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2458 * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2460 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2462 * support/regression/tests/swap.c: 64 bit hosts failed
2463 * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2465 2007-01-25 Raphael Neider <rneider AT web.de>
2467 * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2468 based on absolute register address, patch by Alex Blond
2470 2007-01-22 Raphael Neider <rneider AT web.de>
2472 * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2473 emitted, do not emit them again...
2475 2007-01-22 Raphael Neider <rneider AT web.de>
2477 * src/regression/bank1.c, src/regression/compare6.c,
2478 src/regression/add.c: cosmetic changes
2479 * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2480 * src/pic/gen.c: fixed global zero and one,
2481 (aopForSym): removed unued code,
2482 (aopGet): assert aop is defined, check and use `index' of
2483 pCodeImmd operands (fixes #1630908),
2484 * src/pic/pcode.c (get_op): added output of generic pointer tag,
2485 (register_reassign): prevent accidental register unification,
2486 (ReuseReg): cosmetic changes (also above)
2487 * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2488 pic14emitStaticSeg): do not emit initialized data,
2489 (printIval*): replaced with working versions,
2490 (pic14createInterruptVect,picglue): use idata for initialized data,
2491 now init data should work in all modules (not only main()),
2492 * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2494 2007-01-21 Borut Razem <borut.razem AT siol.net>
2496 * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2497 use -fPIC or -fpic if they are supported and not ignored
2498 * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2499 * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2501 2007-01-20 Borut Razem <borut.razem AT siol.net>
2503 * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2504 implemented RFE #1470316: allow "$" in variable names
2506 2007-01-20 Raphael Neider <rneider AT web.de>
2508 * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2510 2007-01-20 Raphael Neider <rneider AT web.de>
2512 * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2513 * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2514 * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2515 * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2516 applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2517 * device/lib/pic/libdev/pic*.c,
2518 * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2519 * device/lib/pic/libdev/Makefile.in: show progress
2521 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2523 * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2524 * support/scripts/sdcc_cygwin_mingw32,
2525 * support/scripts/sdcc_mingw32,
2526 * support/scripts/build.mak: replaced --datadir by --datarootdir for
2527 conformance with autoconf 2.6
2529 2007-01-19 Raphael Neider <rneider AT web.de>
2531 * src/pic/device.c (register_map): fixed list construction
2532 * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2533 (genMod): removed case for genModbits,
2534 (genModbits): removed as now unused/unimplemented
2535 * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2537 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2539 * support/regression/tests/swap.c: added in response to #1638622
2540 * doc/sdccman.lyx: synced version, minor changes
2542 2007-01-18 Borut Razem <borut.razem AT siol.net>
2544 * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2545 thanks to Gunther Jehle
2546 * src/asm.c: don't die if the file drfined in #line couldn't be opened
2547 * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2548 src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2549 use filename in lineno instead.
2550 * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2551 print the file name in ast_print()
2553 2007-01-18 Borut Razem <borut.razem AT siol.net>
2555 * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2557 * src/SDCC.lex: stringLiteral() returns const char pointer,
2558 EOF detection in stringLiteral(), fixed asmbuf memory leak,
2559 fixed column counting
2560 * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2561 accept const char pointer as parameter
2562 * src/SDCCdwarf2.c: corrected buffer size
2564 2007-01-17 Borut Razem <borut.razem AT siol.net>
2566 * support/Util/dbuf_string.c: fixed for amd64
2568 2007-01-15 Borut Razem <borut.razem AT siol.net>
2570 * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2571 removed terminal symbol ELIPSIS, since it was never generated by the
2572 lexer and it was wrongly used in parameter_identifier_list rule
2574 2007-01-15 Raphael Neider <rneider AT web.de>
2576 * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2577 code page and data banking description
2578 * src/pic/genarith.c,
2579 * src/pic/gen.h: removed bit arithmetic functions,
2580 updated exit(1) to exit(EXIT_FAILURE)
2581 * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2582 * device/include/pic16/pic18f2455.h,
2583 * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2584 TRISD and TRISE, fixed/added some bit names
2585 * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2586 * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2587 updated pic18f2455.{c,h} instead of duplicating them
2589 2007-01-14 Borut Razem <borut.razem AT siol.net>
2591 * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2592 Cannot debug files that contain spaces in the path name
2593 by converting spaces in asm file name to underscores
2595 2007-01-13 Borut Razem <borut.razem AT siol.net>
2597 * doc/sdccman.lyx: fixed format errors
2599 2007-01-10 Borut Razem <borut.razem AT siol.net>
2601 * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2602 codeseg/constseg #pragma fail
2603 * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2604 * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2605 suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2606 suppoprt/cpp2/sdcpp.[ch]: house cleaning
2608 2007-01-09 Borut Razem <borut.razem AT siol.net>
2610 * get rid of diagnistic.[ch], pretty-print.[ch],
2611 c-pretty-print.[ch], ... used just for error, warning, ...
2613 * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2614 suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2615 suppoprt/cpp2/pretty-print.[ch]:
2617 * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2618 suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2619 suppoprt/cpp2/sdcpp.dsp:
2622 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2624 * device/lib/printf_large.c (output_float): removed recursion,
2625 use smaller buffer on stack for mcs51,
2626 fixed bug printing 1.96
2627 * support/regression/tests/snprintf.c: added test
2629 2007-01-07 Borut Razem <borut.razem AT siol.net>
2631 * use dynamic memory buffers instead temporary files
2632 * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2634 * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2635 src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2636 src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2637 src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2638 src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2639 src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2640 src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2641 src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2642 src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2643 src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2644 src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2645 support/Util/dbuf.c, support/Util/dbuf.h:
2647 * .version, sdcc.spec: bumped version to 2.6.4
2649 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2651 * src/port.h: added TARGET_Z80_LIKE macro
2652 * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2653 output PSEG location if --xram-loc or --xstack-loc was used
2654 * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2656 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2658 * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2659 * as/as_z80.dsp, as/z80/as_z80.dsp,
2660 * as/asx8051.dsp, as/mcs51/asx8051.dsp,
2661 * sdcc.dsw: moved project files into subdir
2662 * as/hc08/as_hc08.dsp,
2663 * as/hc08/Makefile.bcc,
2664 * as/hc08/Makefile.in,
2665 * as/mcs51/Makefile.bcc,
2666 * as/mcs51/Makefile.in,
2667 * as/z80/Makefile.bcc,
2668 * as/z80/Makefile.in,
2669 * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2672 * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2675 * as/mcs51/asmain.c,
2677 * as/z80/assym.c: removed include "strcmpi.h"
2678 * as/hc08/strcmpi.c,
2679 * as/hc08/strcmpi.h,
2680 * as/mcs51/strcmpi.c,
2681 * as/mcs51/strcmpi.h,
2682 * support/Util/strcmpi.c,
2683 * support/Util/strcmpi.h: removed files
2684 * as/strcmpi.c: added as_strncmpi()
2686 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2688 * sdcc.dsw: Added some dependencies on project config.dsp
2690 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2692 * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2693 with [di]ram_start to fix a regresion
2695 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2697 * configure.in: added missing mcs51 in status output
2698 * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2700 * debugger/mcs51/clean.mk (distclean): remove config.h
2701 * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2702 * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2703 options.h, s-options-h and options.c
2704 * support/cpp2/clean.mk: unused, removed
2705 * Makefile.common.in,
2708 * as/hc08/Makefile.in,
2710 * as/mcs51/Makefile.in,
2711 * as/mcs51/clean.mk,
2714 * as/z80/Makefile.in,
2716 * as/link/Makefile.in,
2717 * as/link/hc08/Makefile.in,
2718 * as/link/hc08/clean.mk,
2719 * as/link/mcs51/Makefile.in,
2720 * as/link/mcs51/clean.mk,
2721 * as/link/z80/Makefile.in,
2722 * as/link/z80/clean.mk,
2723 * as/link/z80/conf.mk,
2724 * debugger/mcs51/Makefile.in,
2725 * debugger/mcs51/clean.mk,
2726 * device/include/Makefile.in,
2727 * device/lib/Makefile.in,
2728 * device/lib/mcs51/Makefile.in,
2729 * device/lib/pic/Makefile.in,
2730 * device/lib/pic/Makefile.common.in,
2731 * device/lib/pic/Makefile.subdir,
2732 * device/lib/pic/Makefile.rules,
2733 * device/lib/pic16/libio/Makefile.in,
2734 * device/lib/pic16/Makefile.subdir,
2735 * device/lib/pic16/libdev/Makefile.in,
2736 * device/lib/pic16/Makefile.rules,
2737 * device/lib/pic16/Makefile.common.in,
2738 * sim/ucsim/avr.src/Makefile.in,
2739 * sim/ucsim/main_in.mk,
2740 * sim/ucsim/cmd.src/Makefile.in,
2741 * sim/ucsim/doc/Makefile.in,
2742 * sim/ucsim/gui.src/Makefile.in,
2743 * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
2744 * sim/ucsim/gui.src/serio.src/Makefile.in,
2745 * sim/ucsim/hc08.src/Makefile.in,
2746 * sim/ucsim/libltdl/Makefile.in,
2747 * sim/ucsim/s51.src/Makefile.in,
2748 * sim/ucsim/sim.src/Makefile.in,
2749 * sim/ucsim/sim.src/conf.mk,
2750 * sim/ucsim/xa.src/Makefile.in,
2751 * sim/ucsim/z80.src/Makefile.in,
2755 * support/cpp2/Makefile.in,
2756 * support/librarian/Makefile.in,
2757 * support/librarian/clean.mk,
2758 * support/makebin/Makefile.in,
2759 * support/makebin/clean.mk,
2760 * support/packihx/Makefile.in,
2761 * support/regression/Makefile.in,
2762 * support/regression/ports/ds390/spec.mk,
2763 * support/regression/ports/gbz80/spec.mk,
2764 * support/regression/ports/hc08/spec.mk,
2765 * support/regression/ports/mcs51/spec.mk,
2766 * support/regression/ports/mcs51-large/spec.mk,
2767 * support/regression/ports/mcs51-medium/spec.mk,
2768 * support/regression/ports/mcs51-xstack-auto/spec.mk,
2769 * support/regression/ports/pic14/spec.mk,
2770 * support/regression/ports/pic16/spec.mk,
2771 * support/regression/ports/mcs51-stack-auto/spec.mk,
2772 * support/regression/ports/ucz80/spec.mk,
2773 * support/regression/ports/xa51/spec.mk,
2774 * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
2775 adding a slash after $(top_builddir) and/or adding @datarootdir@
2777 * debugger/mcs51/configure.in,
2778 * device/lib/pic/configure.in,
2779 * device/lib/pic16/configure.in,
2780 * sim/ucsim/configure.in,
2781 * support/cpp2/configure.in,
2782 * support/packihx/configure.in: changed AC_PREREQ to 2.60
2784 * debugger/mcs51/configure,
2785 * device/lib/pic/configure,
2786 * device/lib/pic16/configure,
2787 * sim/ucsim/configure,
2788 * support/cpp2/configure,
2789 * support/packihx/configure: generated with autoconf 2.60
2791 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
2793 * as/link/hc08/lkihx.c (newArea),
2794 * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
2796 2007-01-02 Borut Razem <borut.razem AT siol.net>
2798 * doc/sdccman.lyx: documented #pragma sdcc_hash
2799 * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
2801 * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
2803 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
2805 * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
2806 empty 'while'-loop to work correctly, see regression test 'while.c'
2807 * support/regression/tests/while.c: added
2809 2007-01-01 Borut Razem <borut.razem AT siol.net>
2811 * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
2812 support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
2813 support/cpp2/libcpp/sdcpp.c:
2814 sdcpp specific pragma/directive/option handling moved to sdcpp.c
2815 * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
2816 * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
2818 2006-12-31 Borut Razem <borut.razem AT siol.net>
2820 * SDCPP synchronized with GCC CPP release version 4.1.1,
2821 currently the latest release:
2822 * support/cpp2/libcpp, support/cpp2/libcpp/include,
2823 support/cpp2/libcpp/include/cpp-id-data.h
2824 support/cpp2/libiberty/fopen_unlocked.c
2825 support/cpp2/libiberty/md5.c
2827 support/cpp2/opt-functions.awk
2828 support/cpp2/opt-gather.awk
2829 support/cpp2/optc-gen.awk
2830 support/cpp2/opth-gen.awk:
2832 * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
2833 support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2834 support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
2835 support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
2836 support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
2837 support/cpp2/diagnostic.h, support/cpp2/except.h,
2838 support/cpp2/hwint.h, support/cpp2/input.h,
2839 support/cpp2/intl.h, support/cpp2/move-if-change,
2840 support/cpp2/opts.c, support/cpp2/opts.h,
2841 support/cpp2/output.h, support/cpp2/prefix.c,
2842 support/cpp2/prefix.h, support/cpp2/pretty-print.c,
2843 support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
2844 support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
2845 support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
2846 support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
2847 support/cpp2/version.c:
2849 * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
2850 support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
2851 support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
2852 support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
2853 support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
2854 support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2855 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
2856 support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
2857 support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
2858 support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
2859 support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
2861 * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
2862 support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
2863 support/cpp2/cpphash.c, support/cpp2/cpphash.h,
2864 support/cpp2/cppinit.c, support/cpp2/cpplex.c,
2865 support/cpp2/cpplib.c, support/cpp2/cpplib.h,
2866 support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
2867 support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
2868 support/cpp2/hashtab.h, support/cpp2/hashtable.c,
2869 support/cpp2/hashtable.h, support/cpp2/line-map.c,
2870 support/cpp2/line-map.h, support/cpp2/mkdeps.c,
2871 support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
2872 support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
2873 support/cpp2/system.h:
2876 2006-12-31 Borut Razem <borut.razem AT siol.net>
2878 * configure.in, configure: fixed bug #1538756: configure dies if bison
2879 and flex are not installed, 2nd try
2881 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2883 * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
2884 400.x for better code in RFE 899102
2886 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
2888 * src/SDCCpeeph.c (deadMove),
2890 * src/mcs51/peep.h: renamed 'op' by 'reg'
2891 * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
2892 (scan4op): small change for removeDeadMove(), added support for
2893 'callee saves' and/or PACLL function calls,
2894 (removeDeadMove): added, removes superflous 'mov r%1,%2',
2895 (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
2896 left in new dispatcher mcs51DeadMove()
2897 (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
2899 * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
2901 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2903 * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
2904 support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
2906 2006-12-30 Borut Razem <borut.razem AT siol.net>
2908 * support/cpp2/spacs.h: deleted from svn
2909 * configure.in, configure: fixed bug #1538756: configure dies if bison
2910 and flex are not installed
2912 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
2914 * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
2915 with this z80 passes printf float test when enabled
2916 * support/regression/tests/bug1057979.c: typo disabled ds390 float test
2918 2006-12-28 Borut Razem <borut.razem AT siol.net>
2920 * support/cpp2/config.in, support/cpp2/configure.in,
2921 support/cpp2/configure, support/cpp2/Makefile.in:
2922 fix for the solaris build
2924 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2926 * src/SDCC.y (type_specifier2, pointer),
2928 * src/SDCCsymt.c (mergeSpec, checkSClass),
2929 * support/Util/SDCCerr.c,
2930 * support/Util/SDCCerr.h: Parse and validate the restrict keyword
2931 * support/valdiag/valdiag.py: Allow test cases to specify
2932 required language standard
2933 * support/valdiag/tests/restrict.c: New file to test restrict keyword
2934 * support/valdiag/tests/tentdecl.c: Supress empty source file error
2936 2006-12-27 Borut Razem <borut.razem AT siol.net>
2938 * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
2939 * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
2941 * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
2943 * support/cpp2/libiberty/Makefile.bcc: updated
2944 * src/pic16/main.c: fixed #pragma udata handling
2945 * src/mcs51/mcs51.dsp: added peep.[ch] to the project
2947 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
2949 * src/SDCCpeeph.c: made labelHashEntry global,
2950 made pcDistance, FBYNAME static,
2951 (pcDistance): made static, use isComment and isLabel,
2953 (getLabelRef): added, extracted from labelRefCount(),
2954 (labelRefCount): use new getLabelRef(),
2955 (callFuncByName): made static, added deadMove,
2956 use isComment and isLabel,
2957 (newPeepRule): made static, set isLabel,
2958 (isLabelDefinition): added parameter isPeepRule to allow '%' in
2959 labels from peephole rules,
2960 (buildLabelRefCountHash): speed up by running isLabelDefinition() only
2961 when isComment or isLabel is set
2962 * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
2963 added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
2965 * src/mcs51/peep.h: added
2966 * src/mcs51/peep.c: added, implements mcs51DeadMove()
2967 * src/port.h: added peep->deadMove to port structure
2968 * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
2969 * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
2970 deadMove, finally removed no. 1 and 2
2977 * src/hc08/gen.c: mark lines with isComment or isLabel
2978 * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
2980 * sdcc.spec: bumped version to 2.6.3
2982 2006-12-26 Borut Razem <borut.razem AT siol.net>
2984 * support/cpp2/Makefile.in: added dependency on options.h
2985 * configure: regenerated
2986 * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
2987 * support/cpp2/Makefile.in: added vasprintf.c
2989 2006-12-25 Borut Razem <borut.razem AT siol.net>
2991 * SDCPP synchronized with GCC CPP release version 3.4.6,
2992 the latest release before 4.x:
2993 * support/cpp2/Makefile.in, support/cpp2/config.h,
2994 support/cpp2/configure, support/cpp2/configure.in,
2995 support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
2996 support/cpp2/cpperror.c, support/cpp2/cppexp.c,
2997 support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
2998 support/cpp2/cpphash.h, support/cpp2/cppinit.c,
2999 support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3000 support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3001 support/cpp2/cpptrad.c, support/cpp2/except.h,
3002 support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3003 support/cpp2/hwint.h, support/cpp2/intl.h,
3004 support/cpp2/line-map.c, support/cpp2/line-map.h,
3005 support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3006 support/cpp2/output.h, support/cpp2/prefix.c,
3007 support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3008 support/cpp2/system.h, support/cpp2/version.c:
3010 * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3011 support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3012 support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3013 support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3014 support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3015 support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3016 support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3017 support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3018 support/cpp2/move-if-change, support/cpp2/opts.c,
3019 support/cpp2/opts.h, support/cpp2/opts.sh,
3020 support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3021 support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3022 support/cpp2/win32, support/cpp2/win32/dirent.c,
3023 support/cpp2/win32/dirent.h:
3025 * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3026 * support/cpp2/sdcpp.h: renamed from sdcc.h
3027 * sdcppinit.c: deleted
3029 2006-12-23 Borut Razem <borut.razem AT siol.net>
3031 * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3032 support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3033 preproc.c: an other try to fix bug #982435: introduced
3034 -pedantic-parse-number command line option and pedantic_parse_number
3037 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3039 * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3041 (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3042 corrected overlayed areax addresses, warn about memory overlaps
3043 * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3052 * src/port.h: added xabs_name and iabs_name
3053 * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3054 (glue, emitMaps): create and emit maps d_abs and i_abs
3055 * src/SDCCglue.h: cosmetic changes
3056 * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3058 * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3059 (allocDefault): put absolute, initialized globals in them
3060 * support/regression/tests/absolute.c: added absolute bdata test
3061 * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3063 2006-12-20 Borut Razem <borut.razem AT siol.net>
3065 * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3066 * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3067 added regression test for bug #982435
3069 2006-12-18 Borut Razem <borut.razem AT siol.net>
3071 * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3072 * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3073 small cosmetic changes
3074 * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3075 * support/regression/tests/bug-1351710.c: added regression test
3077 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3079 * doc/sdccman.lyx: added the long missed iCode table
3080 "<where is figure II?>", added links to wiki
3082 2006-12-17 Borut Razem <borut.razem AT siol.net>
3084 * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3085 src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3086 support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3087 unified table driven pragma handling, pragma argument type checking
3088 * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3089 current one - version 1.1.3
3090 * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3092 2006-12-13 Raphael Neider <rneider AT web.de>
3094 * src/pic/device.h: removed AssignedMemory structure and macros
3095 * src/pic/device.c: removed global finalMapping (linker assigns
3097 (register_map): add SFRs to remembered memRanges
3098 (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3099 assignFixedRegisters,assignRelocatableRegisters): removed,
3100 (setMaxRAM,validAddress): adapted accordingly,
3101 (pic14_hasSharebank,pic14_getSharedStack): only report and use
3102 reasonably sized sharebanks,
3103 * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3104 (allDefsOutOfRange): removed unused code,
3105 * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3107 * src/pic/pcode.c (register_reassign): removed recursion warning,
3108 fired far too often,
3109 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3110 to use existing pic14_stringInSet() to avoid duplicate symbols,
3111 tidied up the code a bit,
3112 (pic14printLocals): added in symmetry to printExterns, replaces
3113 writeUsedRegs more or less,
3114 (picglue): call new pic14_printLocals(),
3115 * device/include/pic/pic*.h: removed #pragma memmap directives,
3116 information gathered from include/pic/pic14devices.txt
3117 * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3119 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3121 * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3123 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3125 * device/include/mcs51/cc2430.h: fixed missing ';'
3127 2006-12-10 Raphael Neider <rneider AT web.de>
3129 * device/lib/pic16/libc/stdio/vfprintf.c,
3130 * device/lib/pic16/libc/stdio/printf_small.c,
3131 * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3132 char arguments, as char varargs are cast to int by the caller,
3133 hopefully fixes #1604915 (other device libraries are still affected)
3135 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3137 * src/mcs51/ralloc.c (packRegsForAssign),
3138 * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3140 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3142 * device/include/malloc.h: removed init_dynamic_memory
3143 * device/lib/malloc.c: made init_dynamic_memory static and automatically
3144 call it once from malloc. Also use _sdcc_heap[] from _heap.c
3145 * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3146 * device/lib/libsdcc.lib,
3147 * device/lib/Makefile.in,
3148 * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3149 * doc/sdccman.lyx: documented use of new _heap.c
3150 * support/regression/tests/malloc.c: removed init_dynamic_memory
3151 * src/cdbFile.c(spacesToUnderscores): new function,
3152 (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3154 * device/include/tinibios.h: removed defines for putchar and getchar
3155 * device/lib/ds390/Makefile.in: added putchar.c
3156 * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3158 2006-12-09 Borut Razem <borut.razem AT siol.net>
3160 * support/cpp2/sdcc.h: prevent multiple inclusion
3161 * support/cpp2/options.h: deleted
3163 2006-12-08 Borut Razem <borut.razem AT siol.net>
3165 * support/cpp2/sdcc.h: removed x*alloc() macros
3166 * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3167 * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3168 support/cpp2/sdcpp.sdc: x*alloc files added to the project
3169 * support/cpp2/system.h: moved #include "sdcc.h"
3170 * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3171 support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3173 * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3174 -funsigned-char options
3175 * support/cpp2/sdcppmain.c: fixed bug 1611411
3177 2006-12-07 Borut Razem <borut.razem AT siol.net>
3179 * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3182 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3184 * src/SDCCsymt.c (addDecl): fixed bug 1609244
3185 * src/SDCCmain.c (linkEdit): fixed bug 1609279
3187 * .version: bumped to 2.6.2 because a) it's been a while
3188 b) the linker sources have moved c) the preprocessor is upgraded
3190 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3192 * support/regression/tests/snprintf.c: some checks
3193 * lib/src/printf_large.c: %bc: read char instead of int from stack
3195 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3197 * device/include/mcs51/cc2430.h: inserted _XPAGE
3199 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3201 * device/include/mcs51/cc2430.h: added
3203 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3205 * device/include/asm/default/features.h,
3206 * device/include/asm/ds390/features.h,
3207 * device/include/mcs51/at89s53.h,
3208 * device/include/ser.h,
3209 * device/include/ser_ir.h,
3210 * device/include/serial.h: changed keywords to double underscore variants,
3211 fixes bug 1590261 some more, thanks Steven Borley
3213 2006-12-01 Raphael Neider <rneider AT web.de>
3215 * src/pic/pcode.c (register_reassign): do not crash on recursive code
3216 but emit warning (recursion is not supported for pic14)
3218 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3220 * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3221 * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3223 2006-11-30 Raphael Neider <rneider AT web.de>
3225 * src/pic/device.c (dump_sfr): always emit symbols
3226 * src/pic/glue.c (pic14printPublics): fixed typo
3228 2006-11-30 Raphael Neider <rneider AT web.de>
3230 * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3231 (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3232 (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3233 pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3234 a sharebank, use a non-shared bank for the stack if none available
3235 * src/pic/device.h (struct memRange): added linked list next field,
3236 added prototypes for above functions
3237 * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3238 (typeRegWithIdx): accept fixed and unfixed stack registers
3239 * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3240 the stack, handle shared and banked stack (except for WSAVE),
3241 (insertBankSel): removed useless optimization (will never fire),
3242 (FixRegisterBanking): added optimization for devices with only one
3243 possibly aliased bank of memory, like 16f84
3244 * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3245 devices have no SHAREBANK in the linker script
3246 * device/include/pic/pic14devices.txt: documented memmap
3247 * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3249 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3251 * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3252 storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3253 genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3254 genhc08Code): switched most of the D (debug) macros to DD (detailed
3255 debug) macros to better control clutter in the generated .asm file.
3256 * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3257 genRightShift): fixed bug with non-constant bit shift stored to
3258 a volatile result (SF Open Discussion forum thread #1616749).
3259 Single byte case is not yet optimized.
3261 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3263 * device/include/asm/mcs51/features.h,
3264 * device/include/malloc.h,
3265 * device/include/stdio.h: changed keywords to double underscore variants,
3268 2006-11-27 Borut Razem <borut.razem AT siol.net>
3270 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3271 support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3272 support/cpp2/output.h, support/cpp2/cppinit.c,
3273 support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3274 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3275 support/cpp2/cppdefault.c, support/cpp2/system.h,
3276 support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3277 support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3278 support/cpp2/prefix.c, support/cpp2/except.h,
3279 support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3280 support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3281 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3282 support/cpp2/version.c, support/cpp2/cppmain.c,
3283 support/cpp2/version.h, support/cpp2/hashtable.c,
3284 support/cpp2/cpperror.c:
3285 synchronized with GCC CPP release version 3.3.6,
3286 the latest where cppmain.c still exists.
3287 * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3288 support/cpp2/sdcppinit.c: added
3290 2006-11-27 Borut Razem <borut.razem AT siol.net>
3292 * support/cpp2/cpplex.c:
3293 fixed _asm ... _endasm handling bug, introduce with GCC CPP
3295 * support/cpp2/cpplib.c: removed definitions of unused variables
3297 2006-11-26 Borut Razem <borut.razem AT siol.net>
3299 * support/cpp2/libiberty.h: commented out x*alloc() declarations
3300 since they are redefined by macros in support/cpp2/sdcc.h
3301 * support/cpp2/sdcc.h: x*alloc macro redefinition
3303 2006-11-25 Borut Razem <borut.razem AT siol.net>
3305 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3306 support/cpp2/configure, support/cpp2/Makefile.in,
3307 support/cpp2/cppfiles.c, support/cpp2/output.h,
3308 support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3309 support/cpp2/config.h, support/cpp2/cpplib.h,
3310 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3311 support/cpp2/cppdefault.c, support/cpp2/config.in,
3312 support/cpp2/system.h, support/cpp2/cpplex.c,
3313 support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3314 support/cpp2/cppdefault.h, support/cpp2/prefix.c
3315 support/cpp2/hwint.h, support/cpp2/mbchar.h,
3316 support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3317 support/cpp2/configure.in, support/cpp2/intl.h,
3318 support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3319 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3320 support/cpp2/version.c, support/cpp2/cppmain.c,
3321 support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3322 support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3323 support/cpp2/cpperror.c,
3324 support/cpp2/libiberty/safe-ctype.c,
3325 support/cpp2/libiberty/safe-ctype.h,
3326 support/cpp2/libiberty/splay-tree.c,
3327 support/cpp2/libiberty/obstack.c,
3328 support/cpp2/libiberty/lbasename.c,
3329 support/cpp2/libiberty/splay-tree.h,
3330 support/cpp2/libiberty/obstack.h:
3331 synchronized with GCC CPP release version 3.2.3,
3332 the latest before integration of cpp into gcc
3333 * support/cpp2/except.h, support/cpp2/line-map.c,
3334 support/cpp2/line-map.h,
3335 support/cpp2/libiberty/hex.c,
3336 support/cpp2/libiberty/concat.c,
3337 support/cpp2/libiberty/filenames.h: added
3338 * support/cpp2/intl.c: deleted
3340 2006-11-24 Borut Razem <borut.razem AT siol.net>
3342 * src/SDCC.y: enabled compilation of empty source file
3343 * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3344 "ISO C forbids an empty source file"
3345 * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3346 if all the code is ifdefed out.
3348 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3350 * src/hc08/gen.c (genPcall): fix for bug #1601032
3352 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3354 * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3355 * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3356 * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3357 * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3358 * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3359 * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3360 * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3361 * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3362 * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3363 * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3364 * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3365 * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3366 * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3367 * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3368 * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3369 Renamed to all upper case as per the standard set by SiLabs
3371 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3373 * device/include/mcs51/C8051F520.h: new, added
3374 * device/include/mcs51/compiler.h: added link about predefined macros
3376 2006-11-23 Raphael Neider <rneider AT web.de>
3378 * src/regression/Makefile: add -L path to fresh library
3379 * src/regression/simulate: emphasize FAILED output
3380 * src/regression/create_stc: output _failures from gpsim
3381 * src/regression/compare4.c,
3382 * src/regression/rotate6.c: fixed char literals,
3383 all compile, all run =8-D
3385 * src/pic/pcode.h: added isPCASMDIR macro
3386 * src/pic/gen.c (genAnd): fixed bit offset
3387 * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3388 packBits): unified register numbering schemes,
3389 (newReg): do not insert stack registers into hash table,
3390 (initStack): unpinned pseudo stack, simplified,
3391 (typeRegWithIdx): fixed retrieval of stack registers,
3392 * src/pic/pcode.c (addpCodeComment,sameBank): added,
3393 (pCodeReplace): removed invalid assertion,
3394 (insertPCodeInstruction): fixed newly added labels,
3395 (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3396 FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3397 DumpFlow): removed unsed (broken?) code,
3398 (insertBankSel): prevent STATUS from being BANKSELed,
3399 (FixRegisterBanking): rewritten from scratch, implemented generic
3400 optimizations (suppress BANKSELs to same register and to registers
3401 present in all banks),
3402 (AnalyzeBanking): update flow after BANKSELection
3404 * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3405 sharebank, let linker place it, mark STKxx symbols as emitted
3407 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3409 * src/regression/arrays.c,
3410 * src/regression/bank1.c,
3411 * src/regression/bool2.c,
3412 * src/regression/compare7.c,
3413 * src/regression/compare8.c,
3414 * src/regression/compare9.c,
3415 * src/regression/compare10.c,
3416 * src/regression/configword.c,
3417 * src/regression/for.c,
3418 * src/regression/mult1.c,
3419 * src/regression/pointer1.c,
3420 * src/regression/rotate6.c,
3421 * src/regression/string1.c,
3422 * src/regression/struct1.c,
3423 * src/regression/Makefile: make PIC14 regression tests run again
3424 (3 fail, 6 won't compile)
3426 2006-11-21 Raphael Neider <rneider AT web.de>
3428 * device/include/pic16/pic18f4550.h,
3429 * device/include/pic16/pic18f4455.h,
3430 * device/lib/pic16/libdev/pic18f4550.c,
3431 * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3432 * configure.in: removed superfluous closing bracket
3434 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3436 * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3439 2006-11-21 Raphael Neider <rneider AT web.de>
3441 * src/pic/device.{c,h}: added pic14_getPIC()
3442 * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3443 (genAnd): added PIC code for one case, fixes #1597044
3444 * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3445 SFRs that are present in all banks (e.g., STATUS)
3447 2006-11-20 Raphael Neider <rneider AT web.de>
3449 * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3450 INCFSZ/INCFSZW and declared them as changing Z bit,
3451 (insertPCodeInstruction): correctly invert the above instructions,
3453 (DoBankSelect): don't panic on po_immediates
3455 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3458 * as/link/mcs51/lkihx.c (newArea),
3459 * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3460 * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3462 2006-11-11 Raphael Neider <rneider AT web.de>
3464 * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3465 bitfield symbols, fixes #1579535 (once more...).
3467 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3469 * support/regression/generate-cases.py,
3470 * support/regression/fwk/include/testfwk.h,
3471 * support/regression/fwk/lib/testfwk.c: used code pointers,
3472 (about 50kByte less code generated for mcs51)
3474 2006-11-06 Borut Razem <borut.razem AT siol.net>
3476 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3477 debugger/mcs51/configure: fixed failed check because the function
3478 rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3479 who submitted the patch for gpsim.
3480 * debugger/mcs51/configure.in: removed the result message
3481 * debugger/mcs51/Makefile.in: fixed the config.status warning
3482 "... seems to ignore the --datarootdir setting"
3484 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3486 * device/include/mcs51/c8051f020.h,
3487 * device/include/mcs51/c8051f040.h,
3488 * device/include/mcs51/c8051f060.h,
3489 * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3490 * src/z80/gen.c (gencjneshort),
3491 * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3493 2006-10-31 Borut Razem <borut.razem AT siol.net>
3495 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3496 debugger/mcs51/configure: get readline version
3498 2006-10-30 Borut Razem <borut.razem AT siol.net>
3500 * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3501 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3502 debugger/mcs51/configure: locate readline even when cross compiling
3503 * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3505 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3507 * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3510 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3512 * device/include/malloc.h,
3513 * device/lib/calloc.c,
3514 * device/lib/free.c,
3515 * device/lib/malloc.c,
3516 * device/lib/realloc.c: moved definition of struct into sources
3517 * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3519 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3521 * as/asx8051.dsp: corrected output directories
3522 * as/link/hc08: new directory for hc08 linker
3523 * as/hc08/aslink.h, as/link/aslink.h,
3524 * as/hc08/aslink.mak, as/link/hc08/aslink.mak,
3525 * as/hc08/clean.mk, as/link/hc08/clean.mk,
3526 * as/hc08/link_hc08.dsp, as/link/hc08/link_hc08.dsp,
3527 * as/hc08/lkaomf51.c, as/link/hc08/lkaomf51.c,
3528 * as/hc08/lkarea.c, as/link/hc08/lkarea.c,
3529 * as/hc08/lkdata.c, as/link/hc08/lkdata.c,
3530 * as/hc08/lkelf.c, as/link/hc08/lkelf.c,
3531 * as/hc08/lkihx.c, as/link/hc08/lkihx.c,
3532 * as/hc08/lklibr.c, as/link/hc08/lklibr.c,
3533 * as/hc08/lkmain.c, as/link/hc08/lkmain.c,
3534 * as/hc08/lkmem.c, as/link/hc08/lkmem.c,
3535 * as/hc08/lkrloc.c, as/link/hc08/lkrloc.c,
3536 * as/hc08/lks19.c, as/link/hc08/lks19.c,
3537 * as/hc08/Makefile.aslink, as/link/hc08/Makefile.aslink,
3538 * as/hc08/Makefile.bcc, as/link/hc08/Makefile.bcc,
3539 * as/hc08/Makefile.in, as/link/hc08/Makefile.in,
3540 * as/link/hc08/conf.mk,
3544 * sdcc.dsw: moved hc08 linker to as/link/hc08
3545 * as/hc08/lkeval.c, as/link/mcs51/lkeval.c, as/link/lkeval.c,
3546 * as/hc08/lkhead.c, as/link/mcs51/lkhead.c, as/link/lkhead.c,
3547 * as/hc08/lklex.c, as/link/mcs51/lklex.c, as/link/lklex.c,
3548 * as/hc08/lklist.c, as/link/mcs51/lklist.c, as/link/lklist.c,
3549 * as/hc08/lknoice.c, as/link/mcs51/lknoice.c, as/link/lknoice.c,
3550 * as/hc08/lksym.c, as/link/mcs51/lksym.c, as/link/lksym.c,
3551 * as/link/mcs51/aslink.dsp,
3552 * as/link/mcs51/Makefile.in: factored out the common files
3553 * as/hc08/lkstore.c: deleted, use the one already in as/link/
3554 * as/clean.mk: extra cleaning common files
3555 * as/link/mcs51/strcmpi.c, as/strcmpi.c: moved
3556 * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3557 * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3559 2006-10-29 Raphael Neider <rneider AT web.de>
3561 * src/pic/ralloc.c (newReg): create aliases for registers with
3562 multiple names to fix #1579535 and #1584001,
3563 (regWithIdx,dirregWithName): resolve aliases on lookup
3564 * src/pic/pcode.c (DoBankSelect): die with error message on failing
3566 * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3567 to prevent build errors on small devices
3569 2006-10-28 Raphael Neider <rneider AT web.de>
3571 * src/pic/gen.c (genFunction,genCall): drop "same code page"
3572 assumption within interrupt handlers, fixes #1584940
3573 * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3574 "emitted" to avoid emitting them again in udata
3576 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3578 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3581 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3583 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3584 Initialize uart only if SM0 and SM1 are zero. Also, use flag to turn
3585 on/off CR to CRLF conversion.
3587 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3589 * doc/sdccman.lyx: updated IRQ section
3591 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3593 * device/lib/serial_io.c: removed
3594 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3595 replacements for serial_io.c
3597 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3599 * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3601 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3603 * device/lib/serial_io.c: Default putchar() and getchar() for
3604 mcs51 uses serial port.
3606 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3608 * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3610 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3612 * support/regression/ports/mcs51/support.c: smaller
3613 _sdcc_external_startup()
3614 * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3616 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3618 * device/lib/gbz80/crt0.s,
3619 * device/lib/gbz80/crt0_rle.s,
3620 * device/lib/gbz80/div.s,
3621 * device/lib/gbz80/fstubs.s,
3622 * device/lib/gbz80/heap.s,
3623 * device/lib/gbz80/mul.s,
3624 * device/lib/gbz80/putchar.s,
3625 * device/lib/gbz80/stubs.s,
3626 * device/lib/z80/crt0.s,
3627 * device/lib/z80/crt0_rle.s,
3628 * device/lib/z80/div.s,
3629 * device/lib/z80/fstubs.s,
3630 * device/lib/z80/heap.s,
3631 * device/lib/z80/mul.s,
3632 * device/lib/z80/putchar.s,
3633 * device/lib/z80/stubs.s: reverted, I was mistaken
3635 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3637 * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3638 * support/regression/ports/mcs51/support.c: removed race
3639 condition on TI in _putchar allowing to use serial port mode 0
3641 2006-10-20 Borut Razem <borut.razem AT siol.net>
3643 * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3645 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3647 * device/lib/gbz80/crt0.s,
3648 * device/lib/gbz80/crt0_rle.s,
3649 * device/lib/gbz80/div.s,
3650 * device/lib/gbz80/fstubs.s,
3651 * device/lib/gbz80/heap.s,
3652 * device/lib/gbz80/mul.s,
3653 * device/lib/gbz80/putchar.s,
3654 * device/lib/gbz80/stubs.s,
3655 * device/lib/z80/crt0.s,
3656 * device/lib/z80/crt0_rle.s,
3657 * device/lib/z80/div.s,
3658 * device/lib/z80/fstubs.s,
3659 * device/lib/z80/heap.s,
3660 * device/lib/z80/mul.s,
3661 * device/lib/z80/putchar.s,
3662 * device/lib/z80/stubs.s: removed all leading underscores from area names
3664 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3666 * support/regression/ports/mcs51/support.c: use highest baudrate so the
3667 regression tests are not waiting in the simulator for simulated
3668 transmission of debug output
3670 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3672 * device/lib/printf_large.c: slightly smaller
3673 * doc/sdccman.lyx: do not use spaces within html links
3675 2006-10-16 Borut Razem <borut.razem AT siol.net>
3677 * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3678 debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3679 debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3680 debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3681 debugger/mcs51/configure:
3682 [ 1185668 ] add gnu readline support to sdcdb - enabled
3684 2006-10-16 Raphael Neider <rneider AT web.de>
3686 * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3687 fixes #1577882, removes close to all banking optimizations
3689 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3691 * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3692 variables in code memory
3693 * support/regression/tests/absolute.c: added test for this
3695 2006-10-15 Raphael Neider <rneider AT web.de>
3697 * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3699 (BankSelect): emit BANKSEL before touching linker-placed regs,
3702 2006-10-10 Raphael Neider <rneider AT web.de>
3704 * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
3705 * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
3706 * src/pic/main.c (_pic14_parseOptions),
3707 * src/pic/main.h: mostly reverted to previous state, now use results
3708 from SDCCmain.c's argument parsing
3710 2006-10-10 Borut Razem <borut.razem AT siol.net>
3712 * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
3713 debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
3714 [ 1185668 ] add gnu readline support to sdcdb -
3715 prepared for READLINE, not enabled yet,
3716 thanks to <tal.bav AT gmail.com>
3718 2006-10-10 Raphael Neider <rneider AT web.de>
3720 * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
3721 * src/pic16/devices.inc,
3722 * device/include/pic16 (pic18f[24]620.h),
3723 * device/include/pic18fregs.h,
3724 * device/lib/pic16/pics.all,
3725 * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
3726 18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
3727 Gary Plumbridge and Anton Strobl
3729 2006-10-10 Raphael Neider <rneider AT web.de>
3731 * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
3732 --stack-siz=NUM options to configure the argument passing stack
3733 * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
3734 * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
3735 (pic14_getSharebankSize): obey --stack-siz=NUM,
3736 (pic14_getSharebankAddress): obey --stack-loc=NUM
3738 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3740 * doc/sdccman.lyx: added to the manual
3741 * doc/figures/ddd_example.png: added (neither pdflatex nor
3742 most browsers seem to like the .eps file)
3744 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
3746 * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
3747 to /tmp and /var/tmp acc. LSB
3748 * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
3750 * support/regression/tests/onebyte.c: added test
3752 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3754 * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
3756 2006-10-05 Borut Razem <borut.razem AT siol.net>
3758 * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
3760 - sdcc.dsw: changed property eol-style to CRLF
3761 - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
3763 2006-10-04 Raphael Neider <rneider AT web.de>
3765 * device/include/pic/{pic16f84.h,pic16f84a.h},
3766 * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
3767 from patch #1522504, thanks to Robas Teodor
3769 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
3771 * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
3774 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
3776 * src/pic16/glue.c (pic16emitMaps),
3777 * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
3778 * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
3779 * device/lib/pic16/libc/string/memcpypgm2ram.c,
3780 * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
3782 * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
3783 * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
3785 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3787 * support/librarian/sdcclib.c: Added option -l.
3788 * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
3790 * device/lib/make51lib.bat: added. Allows building mcs51 libraries easily
3791 using Windows command prompt.
3793 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3795 * device/lib/libsdcc.lib: added module rand
3796 * src/ds390/ralloc.c (rematStr),
3797 * src/hc08/ralloc.c (rematStr),
3798 * src/mcs51/ralloc.c (rematStr),
3799 * src/z80/ralloc.c (rematStr): made output more consistent
3800 * src/mcs51/gen.c: cosmetic changes
3802 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
3804 * src/port.h: added mem.cabs_name to PORT
3811 * src/z80/main.c: added cabs_name initializers
3812 * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
3814 (emitMaps): emit absolutes in code memory into cabs_name
3816 * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
3817 * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
3818 * support/regression/fwk/include/testfwk.h: added define for at
3819 * support/regression/tests/absolute.c: added, new
3821 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
3823 * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
3824 optimizations, see also patch 887161 by Stas Sergeev
3825 * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
3826 to be necessary anymore,
3827 (102, 103, 104, 127): renamed all occurances of bp to _bp
3829 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
3831 * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
3832 thanks Weston T. Schmidt for patch 1555221
3833 * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
3834 * src/SDCCicode.c(geniCodeMultiply): small optimization
3836 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3838 * device/include/stdlib.h: added rand prototypes
3839 * device/lib/rand.c: new, added
3840 * device/lib/Makefile.in: added rand.c
3841 * src/z80/peeph.def,
3842 * src/z80/peeph-gbz80.def,
3843 * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
3845 2006-09-20 Raphael Neider <rneider AT web.de>
3847 * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
3849 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
3851 * as/link/aslink.h: cosmetic changes
3852 * as/link/mcs51/Makefile.in,
3853 * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
3855 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
3858 * as/link/mcs51/aslink.h,
3859 * as/link/z80/aslink.h: merged and moved to as/link/
3860 * as/link/lkstore.c,
3861 * as/link/mcs51/lkstore.c: moved to as/link/
3862 * as/link/clean.mk: remove *.o
3863 * as/link/mcs51/alloc.h: deleted
3864 * as/link/mcs51/lkarea.c: added lnksect prototype
3865 * as/link/mcs51/lkdata.c,
3866 * as/link/mcs51/lklex.c,
3867 * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
3868 * as/link/mcs51/lkmem.c,
3869 * as/link/mcs51/lknoice.c: removed include strcmpi.h
3870 * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
3871 * as/link/mcs51/aslink.dsp,
3872 * as/link/mcs51/Makefile.aslink,
3873 * as/link/mcs51/Makefile.bcc,
3874 * as/link/mcs51/Makefile.in: updated for moved files
3875 * as/link/z80/lkarea.c,
3876 * as/link/z80/lkhead.c,
3877 * as/link/z80/lklex.c,
3878 * as/link/z80/lklibr.c,
3879 * as/link/z80/lklist.c,
3880 * as/link/z80/lkmain.c,
3881 * as/link/z80/lkrloc.c,
3882 * as/link/z80/lksym.c: synced with mcs51
3883 * as/link/z80/lkdata.c,
3884 * as/link/z80/lkeval.c,
3885 * as/link/z80/lkihx.c,
3886 * as/link/z80/lks19.c: cosmetic changes
3887 * as/link/z80/Makefile.in,
3888 * as/link/z80/linkgbz80.dsp,
3889 * as/link/z80/linkz80.dsp: updated for moved files
3891 2006-09-16 Borut Razem <borut.razem AT siol.net>
3893 * debugger/mcs51/sdcdb.c: partially fixed
3894 [ 1203664 ] sdcdb fails to open files w. two "." periods
3895 * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
3896 debugger/mcs51/symtab.h: fixed indenting
3897 * configure.in, configure: up to date with latest Maarten's changes
3899 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
3902 as/aslink.dsp, as/link/mcs51/aslink.dsp,
3903 as/link/mcs51/aslink.h, as/mcs51/aslink.h,
3904 as/link/mcs51/aslink.mak, as/mcs51/aslink.mak,
3905 as/link/mcs51/lkaomf51.c, as/mcs51/lkaomf51.c,
3906 as/link/mcs51/lkarea.c, as/mcs51/lkarea.c,
3907 as/link/mcs51/lkdata.c, as/mcs51/lkdata.c,
3908 as/link/mcs51/lkeval.c, as/mcs51/lkeval.c,
3909 as/link/mcs51/lkhead.c, as/mcs51/lkhead.c,
3910 as/link/mcs51/lkihx.c, as/mcs51/lkihx.c,
3911 as/link/mcs51/lklex.c, as/mcs51/lklex.c,
3912 as/link/mcs51/lklibr.c, as/mcs51/lklibr.c,
3913 as/link/mcs51/lklist.c, as/mcs51/lklist.c,
3914 as/link/mcs51/lkmain.c, as/mcs51/lkmain.c,
3915 as/link/mcs51/lkmem.c, as/mcs51/lkmem.c,
3916 as/link/mcs51/lknoice.c, as/mcs51/lknoice.c,
3917 as/link/mcs51/lkrloc.c, as/mcs51/lkrloc.c,
3918 as/link/mcs51/lks19.c, as/mcs51/lks19.c,
3919 as/link/mcs51/lkstore.c, as/mcs51/lkstore.c,
3920 as/link/mcs51/lksym.c, as/mcs51/lksym.c,
3921 as/link/mcs51/Makefile.aslink, as/mcs51/Makefile.aslink,
3922 as/link/mcs51/alloc.h,
3923 as/link/mcs51/clean.mk,
3924 as/link/mcs51/conf.mk,
3925 as/link/mcs51/Makefile.bcc,
3926 as/link/mcs51/Makefile.in,
3927 as/link/mcs51/readme.390,
3928 as/link/mcs51/strcmpi.c,
3929 as/link/mcs51/strcmpi.h,
3931 as/mcs51/Makefile.bcc,
3932 as/mcs51/Makefile.in,
3935 sdcc.dsw: moved mcs51 linker to as/link/mcs51
3937 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
3940 * as/link/Makefile.in,
3941 * as/link/z80/linkgbz80.dsp,
3942 * as/link/z80/linkz80.dsp,
3949 * link/z80/aslink.h,
3950 * link/z80/clean.mk,
3952 * link/z80/linkgbz80.dsp,
3953 * link/z80/linkz80.dsp,
3954 * link/z80/lkarea.c,
3955 * link/z80/lkdata.c,
3956 * link/z80/lkeval.c,
3959 * link/z80/lkhead.c,
3962 * link/z80/lklibr.c,
3963 * link/z80/lklist.c,
3964 * link/z80/lkmain.c,
3965 * link/z80/lkrloc.c,
3968 * link/z80/Makefile.in,
3970 * sdcc.dsw: moved link/ to as/link/
3972 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
3974 * as/mcs51/i51mch.c (machine): fixed warning
3976 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3978 * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
3980 2006-09-09 Borut Razem <borut.razem AT siol.net>
3982 * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
3983 sdcdb WIN32 native port
3984 * src/clean.mk: fixed
3986 2006-09-08 Borut Razem <borut.razem AT siol.net>
3988 * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
3990 2006-09-08 Raphael Neider <rneider AT web.de>
3992 * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
3993 * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
3994 to gplink to disable processor mismatch warning and to allow
3995 the use of devices with only aliased (shared) memory banks,
3996 (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
3998 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4000 * doc/sdccman.lyx: Some re-formating plus example on using
4001 #pragma preproc_asm +/-
4003 2006-09-07 Borut Razem <borut.razem AT siol.net>
4005 * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4008 2006-09-06 Borut Razem <borut.razem AT siol.net>
4010 * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4011 line at sdcc.nsi:153
4012 * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4014 2006-09-05 Borut Razem <borut.razem AT siol.net>
4016 * configure.in, configure: support for winsock2
4017 * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4018 debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4019 debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4020 debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4021 debugger/mcs51/symtab.h: sdcdb WIN32 native port
4023 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4025 * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4027 * support/regression/tests/bug1551947.c: new, added
4028 * src/SDCCsymt.h: strings are char* not byte*
4030 2006-09-05 Raphael Neider <rneider AT web.de>
4032 * device/lib/pic16/libdev/pic18f4550.c,
4033 device/include/pic16/pic18f4550.h: added PORTD/TRISD
4034 declarations/definitions from patch #1520949
4036 2006-09-05 Raphael Neider <rneider AT web.de>
4038 * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4039 byte-aligned bitfields, fixes #1539278
4041 2006-09-05 Raphael Neider <rneider AT web.de>
4043 * src/pic/gen.c (genReceive): skip unreferenced arguments,
4046 2006-09-04 Borut Razem <borut.razem AT siol.net>
4048 * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4049 * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4050 -mno-cygwin is a part of the compiler name
4051 * support/scripts/sdcc_mingw32: don't disable ucsim
4053 2006-09-03 Borut Razem <borut.razem AT siol.net>
4055 * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4056 * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4058 2006-09-03 Raphael Neider <rneider AT web.de>
4061 * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4062 indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4065 2006-09-01 Borut Razem <borut.razem AT siol.net>
4067 * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4068 to make ppc-osx happy
4070 2006-08-31 Borut Razem <borut.razem AT siol.net>
4072 * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4073 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4074 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4075 * support/regression/ports/ds390/spec.mk,
4076 support/regression/ports/mcs51/spec.mk,
4077 support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4078 To run regression tests in mingw environment:
4079 make DEV_NULL=NUL CC=gcc
4081 2006-08-30 Borut Razem <borut.razem AT siol.net>
4083 * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4084 sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4085 sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4086 sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4087 sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4088 sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4089 sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4090 sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4091 sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4092 sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4093 sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4094 sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4095 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4096 sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4097 sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4098 sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4099 sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4100 sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4101 sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4102 sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4103 sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4104 sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4105 sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4106 sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4107 sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4108 sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4109 sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4110 sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4111 sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4112 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4113 sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4114 sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4115 sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4116 sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4117 sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4118 sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4119 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4120 sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4121 sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4122 ucsim WIN32 native port
4124 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4126 * doc/sdccman.lyx: added note on dynamic memory heap initialization
4128 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4130 * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4131 * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4133 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4135 * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4136 * support/regression/tests/bug1546986.c: new, added
4137 * as/mcs51/.cvsignore,
4138 * debugger/mcs51/.cvsignore,
4139 * src/.cvsignore: deleted
4141 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4143 * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4146 2006-08-20 Borut Razem <borut.razem AT siol.net>
4148 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4149 removed cl_listen_console::match(), cl_console::match(),
4150 restructured cl_commander::proc_input()
4152 2006-08-16 Borut Razem <borut.razem AT siol.net>
4154 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4155 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4156 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4158 2006-08-14 Borut Razem <borut.razem AT siol.net>
4160 * support/regression/Makefile.in,
4161 support/regression/ports/pic14/gpsim.cmd,
4162 support/regression/ports/pic14/spec.mk,
4163 support/regression/ports/pic14/support.c:
4164 added pic14 regression test
4166 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4168 * as/doc/asxhtm.html: documented changed ABS behaviour
4169 * as/doc/README: fixed some typos
4171 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4173 * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4176 2006-08-12 Borut Razem <borut.razem AT siol.net>
4178 * support/regression/fwk/include/testfwk.h,
4179 support/regression/fwk/lib/testfwk.c,
4180 support/regression/generate-cases.py,
4181 support/regression/Makefile.in:
4182 regression test framework does not depend on function pointers and
4185 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4187 * device/include/stddef.h: c temporary hack to fix bug 1518273
4189 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4191 * device/include/mcs51/cc2510fx.h: added
4192 * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4195 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4197 * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4198 * as/z80/Makefile.in: added strcmpi.c
4199 * as/z80/z80adr.c: added upper case registers and lower case conditionals
4200 * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4202 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4204 * device/lib/gbz80/asm_strings.s,
4205 * device/lib/gbz80/crt0_rle.s,
4206 * device/lib/gbz80/div.s,
4207 * device/lib/gbz80/mul.s,
4208 * device/lib/gbz80/shift.s,
4209 * device/lib/z80/asm_strings.s,
4210 * device/lib/z80/crt0_rle.s,
4211 * device/lib/z80/div.s,
4212 * device/lib/z80/mul.s,
4213 * device/lib/z80/shift.s: changed to all lower case menmonics except the
4214 flags which are all upper case
4216 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4218 * as/z80/asm.h: made CASE_SENSITIVE 1
4219 * link/z80/aslink.h: made CASE_SENSITIVE 1
4220 * src/z80/gen.c (throughout): made all conditionals upper case
4221 * support/regression/tests/bug1503067.c: new
4223 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4225 * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4226 (shiftIntoPair): added case 2 for PAIR_IY,
4227 (setupToPreserveCarry): replaced parameters with iCode and check if
4228 PAIR_DE is in use to fix bug 1399290,
4229 (genPlus, genMinus): updated call to setupToPreserveCarry
4230 * support/regression/tests/bug1399290.c: new
4232 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4234 * device/lib/Makefile.in (Z80SOURCES): enabled float support
4235 * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4236 * src/ds390/gen.c (shiftRLong),
4237 * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4238 * src/mcs51/gen.c (sameReg): changed to sameByte,
4239 (xch_a_aopGet): new,
4240 (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4241 shiftRLong): fixed bug 1533966
4242 * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4243 genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4244 * support/regression/Makefile.in: disabled z80, enabled ucz80
4245 * support/regression/tests/float_trans.c: enabled test for z80 and host
4246 * support/regression/tests/shifts2.c: new, for testing bug 1533966
4248 2006-08-01 Borut Razem <borut.razem AT siol.net>
4250 * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4251 comparison is always false due to limited range of data type
4252 on PPC64 machine (openpower-linux1) where "char = unsigned char"
4254 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4256 * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4257 * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4258 * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4259 * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4261 2006-07-31 Borut Razem <borut.razem AT siol.net>
4263 * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4264 sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4265 sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4266 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4267 sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4268 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4269 sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4270 sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4271 enable ucsim mingw compilation. Serial port is disabled,
4272 since it uses termios.h API, which is not available on native
4275 2006-07-31 Borut Razem <borut.razem AT siol.net>
4277 * Small Device C Compiler 2.6.0 released
4278 * support/scripts/sdcc.nsi: added FULL_DOC option
4279 * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4281 2006-07-28 Borut Razem <borut.razem AT siol.net>
4283 * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4284 * doc/INSTALL.txt: updated
4286 2006-07-27 Borut Razem <borut.razem AT siol.net>
4288 * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4289 device/lib/pic/libdev/Makefile.in: fixed bug
4290 [ 1438354 ] pic libsdcc: distclean doesn't work
4291 * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4292 device/lib/pic16/libio/Makefile.in: fixed bug
4293 [ 1438344 ] pic16 lib: clean doesn't work properly
4294 * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4296 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4298 * device/lib/pic/libsdcc/fsdiv.c,
4299 * device/lib/pic/libsdcc/fsmul.c,
4300 * device/lib/pic16/libsdcc/float/fsdiv.c,
4301 * device/lib/pic16/libsdcc/float/fsmul.c,
4302 * device/lib/_fsdiv.c,
4303 * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4304 * support/regression/tests/bug1520966.c: added
4305 * doc/knownbugs.html: removed [ 1520966 ] from the list
4307 2006-07-25 Borut Razem <borut.razem AT siol.net>
4309 * configure.in, configure, sdccconf_in.h: fixed bug
4310 [ 1519095 ] regression test onebyte.c fails on ppc64 host
4311 * doc/knownbugs.html: removed [ 1519095 ] from the list
4313 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4315 * doc/knownbugs.html: added, contains list of known bugs at release
4316 * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4318 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4320 * device/include/mcs51/compiler.h: added SFRX for xdata based special
4321 function registers and corrected defaults with additional warning
4322 * device/lib/malloc.c: cosmetic changes
4323 * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4324 * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4325 (fillGaps): and used it
4327 2006-07-20 Raphael Neider <rneider AT web.de>
4329 * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4330 output unless SDCCPICDEBUG is set
4331 * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4332 output if SILENT is set
4334 2006-07-11 Borut Razem <borut.razem AT siol.net>
4336 * doc/README.txt: updated
4338 2006-07-10 Borut Razem <borut.razem AT siol.net>
4340 * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4341 device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4342 in WIN32 installation
4343 * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4346 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4348 * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4349 * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4351 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4353 * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4355 2006-07-06 Borut Razem <borut.razem AT siol.net>
4357 * support/regression/tests/bitfields.c:
4358 fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4359 * support/regression/tests/constantRange.c:
4360 fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4362 2006-07-04 Borut Razem <borut.razem AT siol.net>
4364 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4366 src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4367 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4368 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4369 reverted changes from 2006-07-03
4370 * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4371 * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4372 added CPPFLAGS, used by the host port
4374 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4376 * support/regression/valdiag/tests/switch.c,
4377 * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4378 * support/regression/tests/libmullong.c: fixed for host
4379 * support/regression/ports/host/spec.mk: disable all warnings for host,
4380 SDCC runs with --less-pedantic too
4382 2006-07-03 Borut Razem <borut.razem AT siol.net>
4384 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4386 * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4387 * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4388 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4389 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4391 * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4392 sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4393 sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4394 sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4396 2006-07-02 Raphael Neider <rneider AT web.de>
4398 * src/pic16/devices.inc,
4399 * device/include/pic16/pic18fregs.h,
4400 * device/include/pic16/pic18f4550.h,
4401 * device/lib/pic16/pics.all,
4402 * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4404 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4406 * as/hc08/lkaomf51.c (OutputName),
4407 * as/mcs51/lkaomf51.c (OutputName),
4408 * as/z80/asmain.c (asmbl),
4409 * src/ds390/main.c (asmLineNodeFromLineNode),
4410 * src/hc08/ralloc.c (hc08_assignRegisters),
4411 * src/mcs51/main.c (asmLineNodeFromLineNode),
4412 * src/xa51/ralloc.c (checkRegMask),
4413 * src/xa51/gen.c (emitcode),
4414 * src/z80/gen.c (_emit2),
4415 * src/SDCCast.c (searchLitOp),
4417 * support/packihx/packihx.c,
4418 * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4419 * src/ds390/gen.c (aopPutUsesAcc),
4420 * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4421 * support/regression/tests/libmullong.c (mullong_wrapper),
4422 * src/SDCCsymt.c (powof2),
4424 * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4425 * src/SDCCsymt.h: added TYPE_TARGET_*
4426 * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4427 * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4428 SDCCast because 1) header problems 2) this is the right place
4429 * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4430 * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4433 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4435 * src/SDCCicode.h: removed buggy semicolon in unused macro
4436 * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4437 search for previous definiton of auto symbols too,
4438 (findPrevUse): fixed logic of emitWarnings
4440 2006-06-26 Raphael Neider <rneider AT web.de>
4442 * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4443 PCLATH and PCLATU on interrupts, potentially fixes #1505141
4445 2006-06-25 Raphael Neider <rneider AT web.de>
4447 * device/lib/pic/libm: NEW, added math library functions
4448 * device/lib/pic/libsdcc: NEW; added float support functions
4449 * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4450 * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4451 NEW, added math related headers
4452 * device/include/asm/pic/features.h: NEW
4453 * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4454 (popGet): allow larger offsets for AOP_PCODE,
4455 (genDataPointerSet): handle literals explicitly, more debug output,
4456 (genAssign): fixed for float using aopLiteral ;-)
4457 * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4458 GOTO initialisation routine
4459 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4460 flag on registers, fixes #1469043 (local variables do not work)
4461 * src/pic/main.c (_pic14_do_link),
4462 * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4465 2006-06-25 Borut Razem <borut.razem AT siol.net>
4467 * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4468 characters printed (not including the trailing '\0' used to end
4469 output to strings). Problem detected in regression test bug-927659.c.
4470 NOTE: printf() family functions should return int instead
4472 * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4473 specifier are printed as themselves
4474 * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4475 support flags, width and precision specifiers
4477 2006-06-24 Borut Razem <borut.razem AT siol.net>
4479 * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4480 to the list of sdcc tagrets not supporting bit type
4481 * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4482 testfor pic16 due to bug:
4483 [ 1511794 ] pic16: regression test bug-895992.c fails
4485 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4487 * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4488 * src/SDCCglue.c (initPointer), fixed bug 1496419
4489 * support/regression/tests/bug1496419.c: new, added
4491 2006-06-22 Borut Razem <borut.razem AT siol.net>
4493 * support/regression/ports/pic16/support.c: use gpsim usart module from
4494 libgpsim_modules library
4496 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4498 * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4501 2006-06-19 Raphael Neider <rneider AT web.de>
4503 * src/pic/glue.h,src/pic16/glue.h: added prototypes
4504 * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4505 pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4506 (pic14printExterns,pic14printPublics,pic16printPublics,
4507 pic16_printExterns): use new functions to emit symbols
4508 (picglue,pic16glue): emit publics before emitting externs
4509 * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4510 locally defined functions to avoid bug #1443651
4511 * support/regression/tests/bug-716242.c: removed pic16 workaround
4512 * support/regression/ports/pic16/spec.mk: ignore errors during build
4514 2006-06-19 Raphael Neider <rneider AT web.de>
4516 * src/pic/glue.h: added pic14aopLiteral prototype
4517 * src/pic/glue.c (pic14aopLiteral): return unsigned int
4518 * src/pic/gen.c: removed stdint.h dependency
4519 (aopGet): use Safe_strdup()
4520 (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4521 (genDataPointerSet): use pic14aopLiteral()
4522 * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4523 for pic16; thanks to Bernhard and Maarten
4525 2006-06-18 Borut Razem <borut.razem AT siol.net>
4527 * support/regression/tests/structflexarray.c: flexible array members
4528 not supported by gcc < 3
4529 * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4531 * src/pic/gen.c: don't include [p]strdin.h on solaris
4532 * support/Util/pstdint.h: addad svn attributes
4533 * support/regression/tests/constantRange.c,
4534 support/regression/tests/rotate.c: include inttypes.h instead
4535 stdint.h on solaris, addad svn attributes
4537 2006-06-18 Raphael Neider <rneider AT web.de>
4539 * src/SDCCsymt.c (initCSupport): change return type of divschar to
4541 * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4542 (pic16_genMinusBits): simplified sign-extension
4543 (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4544 pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4545 adjusted to correctly handle mixed-signed operands, disabled
4546 now unused multiplciation routines
4547 * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4548 (assignResultValue): added argument denoting the size of the result
4549 as returned by the function (fixes upcasts in assigning from
4550 function calls: char foo(); int i = foo();)
4551 (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4552 function result to assignResultValue
4553 (genMult): disabled inlined multiplication code
4554 (genDiv): augmented to also handle the modulus operator, fixed to
4555 handle mixed-signed operands correctly
4556 (genMod): simply call genDiv, disabled unused code
4557 (genAssign): fixed missing (sign-)extension on result
4558 * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4559 valid char operands, allow signed operands for native code, added
4560 division and modulo operator handling
4561 * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4563 As a consequence, onebyte.c (if split into two files) and muldiv.c
4564 pass regression tests.
4566 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4568 * doc/Makefile.in: two runs of makeindex seem needed to get
4569 correct page references in the index of sdccman.pdf
4570 * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4572 2006-06-17 Borut Razem <borut.razem AT siol.net>
4574 * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4576 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4578 * doc/sdccman.lyx: updated, added (porting source code, debugging),
4579 mentioned ec2drv and paulmon
4581 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4583 * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4584 consecutive abs areas
4585 (find_empty_space, allocate_space): added map to handle codemap or
4587 (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4588 absolute idata and xdata
4589 * as/mcs51/lkmem.c (summary2): updated legend
4591 2006-06-16 Raphael Neider <rneider AT web.de>
4593 * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4595 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4597 * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4599 * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4601 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4603 * src/port.h (struct PORT): added field gp_tags, to hold the tag
4604 value of generic pointers,
4614 src/z80/main.c: PORT structure, added elements for gp_tags field,
4615 * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4616 fields in the PORT structure of each port,
4617 * src/SDCCast.c (decorateType): allow processing of generic pointers
4618 for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4621 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4627 * src/pic16/pcode.c,
4629 * src/pic/pcoderegs.c,
4632 * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4633 bug 1504689 on minGW
4635 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4637 * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4639 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4641 * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4643 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4645 * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4648 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4650 * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4651 to a char variable. Fixed bug #1504211
4652 * device/include/pic16/adc.h,
4653 device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4654 and fixed bug #1364390
4656 2006-06-10 Borut Razem <borut.razem AT siol.net>
4658 * CVSROOT: removed the CVS left-over
4660 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4662 * as/hc08/asmain.c (asexit),
4663 * as/hc08/lkmain.c (lkexit),
4664 * as/mcs51/asmain.c (asexit),
4665 * as/mcs51/lkmain.c (lkexit),
4666 * src/SDCCglue.c (DEFSETFUNC),
4667 * src/SDCCmain.c (linkEdit, assemble),
4668 * support/librarian/sdcclib.c (AddRel),
4669 replaced unlink() by standard C remove()
4670 * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4671 * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4672 gatherImplicitVariables): new, added to fix bug 608752,
4673 (createFunction): added gatherImplicitVariables()
4674 * src/SDCCast.h: added createRMW prototype
4675 * src/SDCCsymt.h (struct symbol): added infertype
4676 * support/regression/tests/bug608752.c: new, added
4678 2006-06-10 Raphael Neider <rneider AT web.de>
4680 * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4681 multibyte dummy reads (fixes #1503234)
4683 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4685 * device/include/mcs51/compiler.h: new, added header file to enable
4686 creating common sfr definition header files for different compilers
4688 2006-06-05 Raphael Neider <rneider AT web.de>
4690 * src/pic16/{pcode.h,genarith.c}:
4691 introduced pCodeOp combining any two pCodeOps (previously only
4692 two register operands could be combined), removed pcop2 from
4693 pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4694 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4695 * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4696 rewritten to use new PO_TWO_OPS
4697 * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4698 * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4699 (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4700 (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4701 (pic16_get_op): embraced return arg to allow #define return(x),
4702 added new case for combined opcodes
4703 (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
4704 (pic16_pCode2str,pic16_getRegFrompCodeOp,
4705 pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
4707 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
4709 * src/SDCCval.c (checkConstantRange): added
4710 * src/SDCCval.h: added checkConstantRange
4711 * support/Util/SDCCerr.c,
4712 * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
4713 W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
4714 * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
4715 * src/SDCCast.c (decorateType): added checkConstantRange,
4716 added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
4717 can be emitted with the correct always true/false warning,
4718 added optimization for double '!';
4719 result of decorateType() must be assigned back to the tree, because
4720 decorateType() can change the tree
4721 * src/SDCCicode.c (geniCodeLogic),
4722 (geniCodeAssign): replaced new checkConstantRange, added warnings,
4723 (checkConstantRange): removed, it was only a fragment which never
4725 * src/SDCCsymt.c (computeType): fixed promotion for
4726 "-1 < (unsigned bit) b"
4727 * src/pic/ralloc.c (packRegsForAssign),
4728 * src/pic16/ralloc.c (packRegsForAssign),
4729 * src/hc08/ralloc.c (packRegsForAssign),
4730 * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
4732 * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
4733 * support/regression/tests/constantRange.c: added
4734 * support/valdiag/tests/constantRange.c: added
4735 * support/valdiag/valdiag.py: added -DPORT_HOST=1
4737 2006-06-02 Borut Razem <borut.razem AT siol.net>
4739 * support/regression/ports/pic16/support.c: increase stack size
4741 * support/regression/Makefile.in: sort tests by name so that the
4742 resutlts can be compared on different machines / platforms
4744 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4746 * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
4747 * src/ds390/gen.c (emitLabel): new, added,
4748 (genDjnz): fixed stack overflow bug,
4749 (throughout): cosmetic changes to sync with mcs51/gen.c,
4750 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
4751 * src/mcs51/gen.c (genEndFunction): small optimization,
4752 (throughout): cosmetic changes to sync with ds390/gen.c
4754 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
4756 * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
4757 (_print_format): fixed printing pointers
4758 * src/mcs51/gen.c (emitLabel, movb): new, added,
4759 (genAssign): small optimization,
4760 (genDjnz): fixed stack overflow bug,
4761 (throughout): replaced sprintf with SNPRINTF,
4762 replaced mcs51_regWithIdx with REG_WITH_INDEX,
4763 replaced emitcode("mov", "b,...") with MOVB(...),
4764 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
4765 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4766 * src/mcs51/peeph.def: added rules 140 and 264
4767 * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
4768 so they may get optimized into registers
4770 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
4772 * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
4773 immediately when encountered,
4774 (printUsage): always use stderr even on windows
4776 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
4778 * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4779 (processParms): fixed bug #1247551
4780 * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
4781 parseCmdLine, main): print '--version' to stdout,
4782 print 'help' to stdout if --help is given,
4783 print 'help' to stderr and exit with EXIT_FAILURE if no or bad
4784 arguments are given; fixed --help
4786 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
4788 * src/SDCCcse.c (findPointerSet): fixed bug #1493710
4789 * support/regression/tests/bug-1493710.c: added
4791 2006-05-27 Borut Razem <borut.razem AT siol.net>
4793 * support/regression/fwk/lib/testfwk.c: define array in _printn() as
4795 * support/regression/ports/pic16/support.c: increase stack size
4796 from default 64 bytes to 128 bytes
4797 * support/regression/tests/staticinit.c,
4798 support/regression/tests/float.c: regression tests fully enabled
4799 for pic16 port by putting the initialized data arrays into the code
4801 * support/regression/ports/pic16/spec.mk: don't link default libraries.
4802 This was changed by mistake in the previous version.
4804 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
4806 * src/pic16/gen.c (genFunction, genEndFunction): some
4807 beautifications, fixed bug with falsely restoring FSR2 in large
4808 stack model, thanks to Beau E. Cox for reporting the bug
4810 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4812 * debugger/mcs51/break.c,
4813 * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
4814 use %p to print pointers, made address variables unsigned
4815 * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
4816 * debugger/mcs51/symtab.c (parseSymbol): must return something
4817 * src/mcs51/gen.c (aopForSym): small optimization,
4818 moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
4819 (freeAsmop): added missing break,
4820 (aopPut): removed parameter bvolatile, determine it inside the function,
4821 (saveRegisters, unsaveRegisters): small optimization,
4822 (genIpush): removed pointless check,
4823 (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
4824 replaced sprintf with SNPRINTF,
4825 replaced strcpy with strncpyz,
4826 updated aopPut calls,
4827 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
4828 * src/mcs51/ralloc.h: added declarations mcs51_ptrRegReq and mcs51_nRegs
4830 2006-05-24 Borut Razem <borut.razem AT siol.net>
4832 * support/regression/tests/bug-221100.c: fixed xdata problem caused by
4833 modification of test for the pic16 port, put the array to the code
4834 memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
4836 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4838 * src/pic/gen.c: MSC 6 does not have <stdint.h>. Use pstdint.h instead.
4839 * support/Util/pstdint.h: added
4841 2006-05-22 Borut Razem <borut.razem AT siol.net>
4843 * src/regression/Makefile: removed bool2.c test, added -q linker option
4844 * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
4845 src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
4846 src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
4847 src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
4848 src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
4849 src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
4850 src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
4851 src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
4852 define SUPPORT_BIT_TYPES 0, removed unused bit variables
4854 2006-05-22 Raphael Neider <rneider AT web.de>
4856 * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
4857 bug #1492360 (problematic due to generic pointers, see code)
4859 2006-05-22 Borut Razem <borut.razem AT siol.net>
4861 * support/regression/ports/pic16/specs.mk: removed stack size linker
4863 * support/regression/tests/array.c,
4864 support/regression/tests/bitopcse.c,
4865 support/regression/tests/bug-908454.c,
4866 support/regression/tests/malloc.c: modified for pic16 regression test
4867 * support/regression/tests/bitfields.c:
4868 pic16 - excluded bitfileds of size > 8
4869 * support/regression/tests/bp.c: pic16 - reduced data size
4870 * support/regression/tests/bug-221100.c: pic16 - reduced data size
4871 * support/regression/tests/bug-460010.c:
4872 pic16 - used the absolute address the fits in memory
4873 * support/regression/tests/bug-716242.c:
4874 bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
4875 * support/regression/tests/float.c:
4876 pic16 - excluded - data size too big
4877 * support/regression/tests/onebyte.c:
4878 pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
4879 * support/regression/tests/shifts.c:
4880 pic16 - function names probably have to differ in first X characters
4882 * support/regression/tests/staticinit.c:
4883 pic16 - excluded some tests due error: no target memory available for
4886 2006-05-22 Borut Razem <borut.razem AT siol.net>
4888 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4889 second try. Thanks Stas Sergeev once more.
4891 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4893 * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4894 (genLeftShift, genRightShift): fixed bug 1491627
4895 * src/hc08/peeph.def (rules 7, 8.x): added
4896 * support/regression/tests/shifts.c (ShiftLeftByParam,
4897 ShiftRightByParam, testShiftByParam): added to test variable shifting
4899 2006-05-20 Raphael Neider <rneider AT web.de>
4901 * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
4902 * src/pic16/ralloc.c (newReg): use correct name in hashtable,
4903 (allocReg): add only new registers to dynAllocRegs,
4904 (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
4905 #1489055, #1445850, and probably #1483693
4907 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
4909 * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4910 bug in for-loop that didn't emit the last of CONFIG and ID registers
4912 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
4914 * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
4916 * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
4917 1489016, 1434401 and 1490124
4918 * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
4919 1489016, 1434401 and 1490124
4921 2006-05-17 Borut Razem <borut.razem AT siol.net>
4923 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
4926 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4928 * device/include/mcs51/P89c51RD2.h,
4929 * device/include/mcs51/P89LPC901.h,
4930 * device/include/mcs51/P89LPC922.h,
4931 * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
4933 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4935 * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
4936 to fix missing stack pragma in compiled binary object file,
4938 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
4940 * support/packihx/configure.in,
4941 * support/packihx/configure: removed warning, autoconf >= 2.5x can
4942 determine sizeof basic types even while cross compiling
4944 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
4946 * src/avr/gen.c (aopop),
4947 * src/ds390/gen.c (aopOp),
4948 * src/hc08/gen.c (aopOp),
4949 * src/mcs51/gen.c (aopop),
4950 * src/pic16/gen.c (pic16_aopOp),
4951 * src/pic/gen.c (aopOp),
4952 * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
4953 if size of operand is smaller than spill location
4955 2006-05-12 Borut Razem <borut.razem AT siol.net>
4957 * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
4958 have to have CR/LF line endings even if they are checked out on *nix
4959 or on WIN32 in cygwin binmode
4961 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
4963 * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
4964 * device/include/ds80c390.h: added sfr16 definitions
4968 * src/ds390/ralloc.c,
4969 * src/ds390/ralloc.h: changes all over the place to sync with mcs51
4970 fixing several bugs and adding sfr16/sfr32, reentrant bit params,
4971 bit returning functions
4972 * support/regression/tests/sfr16.c: enabled test on ds390
4974 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4976 * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
4977 * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
4979 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
4981 * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
4982 * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
4983 (cl_address_space constructor): removed expensive initialization,
4984 (cl_address_space::get_cell): extended for late initialization,
4985 (cl_address_space::*): use late initialization,
4986 (cl_address_decoder::activate): removed expensive initialization,
4987 This reduced regression test running time by 25%
4989 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
4997 * support/packihx/Makefile.in,
4998 * support/packihx/clean.mk,
4999 * support/packihx/Makefile.bcc,
5000 * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5002 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5004 * src/SDCCval.c (valNot): fix for regression test failure
5005 of not.c on big endian hosts
5007 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5009 * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5011 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5013 * device/lib/mcs51/Makefile.in: changed string comparison operator
5014 to = for POSIX compliance; == is bash extension
5016 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5018 * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5021 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5023 * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5024 allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5025 * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5026 * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5027 bug report #1478657,
5029 2006-05-05 Borut Razem <borut.razem AT siol.net>
5031 * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5034 2006-05-02 Borut Razem <borut.razem AT siol.net>
5036 * doc/Makefile.in: removed *.ind dependency since there is no rule to
5037 create *.ind, which made make to fail if invoked with -j 2
5039 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5041 * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5042 Hubert Sack for patch 1479782
5044 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5046 * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5048 2006-05-01 Raphael Neider <rneider AT web.de>
5050 * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5051 (create_pic): store only prefix-free device name,
5052 (init_pic): check for device names with "16" prefix,
5054 * src/pic/device.h (struct PIC_device),
5055 * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5057 * device/include/pic/pic12f{635,675,629,683}.h,
5058 * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5059 * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5060 * device/include/pic/pic16f505.h,
5061 * device/lib/pic/libdev/pic16f505.c: removed
5062 * device/include/pic/pic14devices.txt: added support for pic12f
5063 devices, removed unsupported non 16-bit devices
5064 [above changes provided by patch from Zik Saleeba]
5065 * src/pic/*, src/pic16/*, device/include/pic16/*,
5066 device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5068 2006-05-01 Borut Razem <borut.razem AT siol.net>
5070 * configure.in, configure, doc/Makefile.in:
5071 sync with nightly build makefile - latex, dvipdf and dvips
5074 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5076 * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5077 in the library source
5079 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5081 * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5083 2006-04-28 Raphael Neider <rneider AT web.de>
5085 * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5086 * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5087 (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5088 * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5090 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5092 * device/lib/pic/libdev/Makefile.in,
5093 * device/lib/hc08/Makefile.in,
5094 * device/lib/gbz80/Makefile.in,
5095 * device/lib/z80/Makefile.in,
5096 * device/lib/ds390/Makefile.in,
5097 * device/lib/ds400/Makefile.in: added srcdir to include search path,
5098 thanks to Borut for the bug report
5100 * configure: always create doc/Makefile independent from --enable-doc
5101 * Makefile.in: always install from directory doc independent from
5103 * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5105 * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5106 * doc/Makefile.in: install *.txt if present
5107 * device/include/Makefile.in (install): added installation of pic/*.inc
5108 and pic/*.txt files again, they were erroneously removed
5110 2006-04-28 Raphael Neider <rneider AT web.de>
5112 * src/pic/{gen.c,main.h,pcode.c},
5113 * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5114 concerning signedness with casts
5116 2006-04-28 Raphael Neider <rneider AT web.de>
5118 * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5119 definition of an interrupt handler,
5120 * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5121 interrupt handler stuff from picglue() to separate routine,
5122 (picglue): enabled definition of intr handlers in files w/o main()
5124 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5126 * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5127 compilation with MSVC 2005 Express Edition (VC8)
5129 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5131 * device/lib/Makefile: fixed build of gbz80 lib
5133 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5135 * support/regression/tests/bug-460010.c,
5136 * support/regression/tests/bug-524691.c,
5137 * support/regression/tests/bug-716242.c: removed conditional defines
5138 that are already in testfwk.h
5140 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5142 * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5143 (AccAXRsh1): added, shift right by 1,
5144 (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5146 * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5148 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5150 * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5151 remove cast to same type
5152 * src/SDCCast.c (decorateType): fix for RFE 1475742,
5153 optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5155 * link/z80/Makefile: removed, they have moved to
5158 * configure.in: replaced duplicate message about ucsim by missing sdcpp
5159 * install-sh: fix bug #1204398 by setting umask 0022
5160 * device/lib/Makefile: separate build of z80 and gbz80 lib
5162 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5164 Enabled VPATH feature: changed nearly all Makefiles (149 files).
5165 See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5167 One basic decision: e.g. src/clean.mk includes further files. In order
5168 to make this work there are two solutions:
5169 - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5170 run configure on them. This way they can use
5171 'include $(srcdir)/port-clean.mk'
5172 - always include clean.mk by the Makefile at the same level. To avoid
5173 that `make clean` tries to include and build Makefile.dep the
5174 MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5175 implemented, because now even `make uninstall` doesn't create
5176 Makefile.in. clean.mk could be eliminated by pasting it in
5179 * debugger/mcs51/Makefile.in: build own objects from library sources
5180 (SLIB, SDCC) in current directory
5182 * configure, configure.in: renamed --disable-device-lib-build in
5183 --disable-device-lib; added --enable-doc, the required tools are
5184 searched by configure; added result message; the toolchain for the
5185 belonging ports are now only built, if the port is enabled.
5187 * support/regression/*: all output is written in directory gen, because
5188 the fwk and ports directories don't livet in the build tree using vpath
5190 * doc/sdccman.lyx: renamed --disable-device-lib-build to
5191 --disable-device-lib, added --enable-doc, added section VPATH
5193 * sim/ucsim/configure.in,
5194 * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5195 z80 are enabled by default
5197 2006-04-24 Raphael Neider <rneider AT web.de>
5199 * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5200 to config word, "pic14_"-prefixed some extern functions
5201 (pic14_emitConfigWord): emit __config directive(s) if assignment to
5202 config word has been found
5203 * src/pic/device.h: added prototypes
5204 * src/pic/pcode.c: added "pic14_"-prefix where needed
5205 * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5207 * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5209 (pic14emitRegularMap): ignore config words,
5210 (pic14createInterruptVect): moved generating __config directives away
5211 (picglue): have __config directives emitted
5213 2006-04-24 Borut Razem <borut.razem AT siol.net>
5215 * doc/Makefile: sync with nightly build makefile
5217 2006-04-24 Raphael Neider <rneider AT web.de>
5219 * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5220 registers that have not been assigned proper liveranges,
5221 fixes #1469504 and #1474602,
5222 (pCodeRegOptimizeRegUsage): fixed typo in comment
5224 2006-04-24 Borut Razem <borut.razem AT siol.net>
5226 * device/examples/main8051.c: deleted - it was removed from CVS
5227 24.mar.2000 and after that modified 18.feb.2001, so it reappered
5228 after the transition to Subversion
5229 * src/SDCCalloc.h: deleted - it was removed from CVS
5230 3.feb.2001 and after that modified 18.feb.2001, so it reappered
5231 after the transition to Subversion
5232 * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5233 sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5234 sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5235 sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5237 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5239 * as/asx8051.dsp: added mcs51/strcmpi.h
5240 * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5241 * as/hc08/aslink.h: updated lnksect prototype
5243 * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5245 * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5246 (newdot): handle A_ABS
5248 * as/mcs51/asout.c (outarea): output address
5249 * as/hc08/lkaomf51.c,
5250 * as/mcs51/lkaomf51.c: disabled unused array UsageType
5252 * as/mcs51/i51pst.c,
5253 * as/z80/z80pst.c: "ABS" is not A_OVR
5254 * as/hc08/lkarea.c (newarea): read a_addr,
5255 (lnkarea): added codemap array, sort absolute areas to the front,
5256 combine all GSINITx/GSFINAL,
5257 (find_empty_space, allocate_space): new functions,
5258 (lnksect): return next address, handle absolute sections
5259 * as/mcs51/lkarea.c (newarea): read a_addr,
5260 lnksect2 prototype changed,
5261 (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5262 (find_empty_space, allocate_space): new, factored out of lnksect2,
5263 (lnksect2): return next address, handle absolute sections
5265 * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5266 * as/hc08/lklibr.c (addfile, fndsym),
5267 * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5268 index out of range and detect both '\' and '/'
5269 * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5270 * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5271 regression tests (ds390 cannot return bool yet)
5272 * doc/sdccman.lyx: changed version number, document changed --no-peep,
5273 document critical interrupts on z80, document changed SDCC define
5274 * src/asm.c (_asxxxx_mapping): fixed .org directive,
5275 (_a390_mapping): added .org directive
5276 * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5277 (genMultOneByte): fixed warnings
5278 * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5280 * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5281 * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5282 (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5283 * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5284 * src/pic16/main.c: removed newReg prototype
5285 * src/pic16/pcode.c,
5286 * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5288 * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5290 * src/pic16/ralloc.c
5291 * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5293 * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5294 from short to PIC_OPTYPE
5295 * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5296 * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5297 optype from short to PIC_OPTYPE
5298 * src/port.h: made int_size unsigned to fix warnings
5299 * src/SDCC.y: fixed warning on MSVC
5300 * src/SDCCicode.c (getArraySizePtr): return unsigned int
5301 * src/SDCCopt.c (convertToFcall): fixed warnings
5302 * src/SDCCsymt.h: removed double prototype for genSymName
5303 * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5304 offset int to fix warnings
5306 2006-04-22 Borut Razem <borut.razem AT siol.net>
5308 * doc/sdccman.lyx, */Makefile, */Makefile.in:
5309 references to CVS replaced with Subversion
5311 2006-04-21 Borut Razem <borut.razem AT siol.net>
5313 * doc/sdccman.lyx, */Makefile, */Makefile.in:
5314 references to CVS replaced with Subversion
5316 2006-04-19 Borut Razem <borut.razem AT siol.net>
5318 * src/version.awk: adapted for svn
5319 * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5320 sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5321 sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5322 /binutils-avr/etc/*.vi, *.jin: removed all properties
5323 support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5325 2006-04-19 Borut Razem <borut.razem AT siol.net>
5327 * CVS to Subversion migration completed
5329 2006-04-18 Borut Razem <borut.razem AT siol.net>
5331 * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
5332 ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
5334 2006-04-17 Borut Razem <borut.razem AT siol.net>
5336 * device/include/Makefile.in: added pic/*.inc to the installation
5338 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5340 * support/regression/collate-results.py: fixed output in case of
5342 * support/regression/generate-cases.py: fixed splitting of pathnames
5344 * as/hc08/lklibr.c (addfile),
5345 * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5347 2006-04-11 Raphael Neider <rneider AT web.de>
5349 * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5350 * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5351 * src/pic16/pcode.c (assignValnums): fixed #1460578
5353 2006-04-11 Raphael Neider <rneider AT web.de>
5355 * device/lib/pic/libdev/*.c,
5356 * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5357 fixes #1468739, enables compilation in --std-c99 mode
5358 * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5360 2006-04-11 Raphael Neider <rneider AT web.de>
5362 * src/pic/device.c (find_device): removed debug output
5363 (list_valid_pics): enabled verbose listing of supported devices
5364 * device/include/stdbool.h: define bool as char for pic14/16 as well
5366 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5368 * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5370 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5372 * .version: bumped version to 2.5.6
5373 * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5375 2006-04-06 Raphael Neider <rneider AT web.de>
5377 * .version: bumped version to 2.5.6 (pic14 ABI changed)
5378 * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5379 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5380 pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5381 pic14_constructAbsMap
5382 (pic14printPublics): declare absolute global symbols as global
5383 (pic14createInterruptVect),
5384 * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5385 (newReg): assume new registers unused, use correct name in
5386 hashtable (reg->name instead of name), more debugLog output
5387 * src/pic/device.h (PIC_device): added fields for verbose output
5388 * src/pic/device.c: moved device definition to pic14devices.txt,
5389 added routines for runtime parsing of pic14devices.txt,
5390 added support for second config word
5391 * src/pic/main.c (_process_pragma): removed #pragma maxram,
5392 (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5393 (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5394 (_pic14_parseOptions): moved pCodeInitRegisters here
5395 (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5396 * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5397 (pCodeInitRegisters): rewrapped comments, perpared new approach to
5398 handling the pseudo stack
5399 * device/lib/Makefile.in: ignore failures in objects-pic16,
5400 * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5401 * device/lib/pic/NEWS: document new dependency on picXXX.lib
5402 * device/lib/pic/Makefile.subdir,
5403 * device/lib/pic16/Makefile.subdir: improved clean rules
5404 * device/lib/pic/libdev/: NEW, pic14 device libraries
5405 * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5406 * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5407 * device/include/Makefile.in: create subdir and install pic14 headers
5408 * device/include/pic/p16f_common.inc: removed unused declarations
5409 * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5410 PICs from inc2h.pl v1.6,
5411 replaced BIT_AT macros with struct declarations
5412 * device/include/pic/pic14devices.txt: definition of supported devices,
5413 all above improvements contributed by Zik Saleeba, thanks
5414 * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5415 * support/scripts/sdcc.nsi: also install pic14 device libraries and
5418 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5420 * device/include/mcs51/c8051f410.h: added interrupt numbers,
5421 * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5422 thanks to Charles Olds
5424 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5426 * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5428 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5430 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5431 * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5432 * support/regression/bug1464657.c: added, new test
5434 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5436 * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5439 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5441 * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5442 --no-peep and --peep-file <file> are used don't use default rules but
5445 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5447 * src/mcs51/gen.c (genCall): fixed bug 1457608
5449 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5451 * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5452 changes seem to cause (trigger?) problems with the build system.
5454 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5456 * src/SDCCpeeph.c (operandsLiteral): new, added,
5457 (callFuncByName): inserted operandsLiteral
5458 * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5460 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5462 * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5463 * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5465 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5467 * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5468 implemented patch 1120823 Thanks to Willy De la Court (normal
5469 interrupts need an interrupt number now if they are made critical),
5470 and enabled nesting of critical functions though not for gbz80
5471 (genCritical, genEndCritical): added functions
5472 (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5473 * src/z80/mappings.i: added "ei" to all mappings
5475 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5477 * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5478 submitted by the Debian SDCC maintainer Aurelien Jarno:
5479 "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5480 archive with gcc 4.1 on mips and wrote the patch"
5482 2006-03-16 Raphael Neider <rneider AT web.de>
5484 * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5485 the left operand is shorter than the result (c* = lit-c* + int),
5487 * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5490 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5492 * src/.version: increased version number to 2.5.5
5493 * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5494 linking is done manually in pic16 port's _linkEdit,
5495 * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5496 PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5497 * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5498 allocate asmop as AOP_ACC,
5499 (aopForRemat): added parameter 'bool result' in function declaration,
5500 (pic16_aopGet): return AOP_ACC when accessing WREG,
5501 (pic16_popGetTempReg): minor modification,
5502 (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5503 'pic16_allocWithIdx',
5504 (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5505 calling function in absolute addresses,
5506 (genAssign): take into account AOP_ACC asmop,
5507 * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5508 * src/pic16/pcoderegs.c: some debug functions and lines added,
5509 * src/pic16/ralloc.c (decodeRegType): added but commented out,
5510 * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5512 * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5513 call to allocReg, not by manually allocating a new one,
5514 (pic16_assignRegisters): now before going through the register
5515 allocating functions mark all registers as free. This eliminates some
5516 side effects resulting from peephole parser done earlier in the backbone
5518 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5520 * src/SDCCicode.c (geniCodeLogic),
5521 * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5523 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5525 * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5526 (genSend): bugfix, do not allocate and free twice,
5527 (shiftRLong): handle partially overlapping aops
5528 * support/regression/tests/bitopcse.c: fixed warning redefined idata
5530 2006-03-08 Borut Razem <borut.razem AT siol.net>
5532 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5535 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5537 * support/regression/tests/bug1409955.c: new, added
5538 * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5539 * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5540 (aopForSym, aopOp): increment asmop.allocated if reused,
5541 (freeAsmop): decrement asmop.allocated and check for zero instead of
5543 (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5544 (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5545 genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5546 genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5547 genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5548 genSignedRightShift, genRightShift, genDataPointerGet,
5549 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5550 genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5551 in reverse order from allocation,
5552 (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5553 added swappedLR to keep track
5554 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5555 pdata & code for GCC, z80, gbz80 & hc08
5556 * support/regression/tests/zeropad.c: moved defines to testfwk.h
5558 2006-03-08 Raphael Neider <rneider AT web.de>
5560 * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5562 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5564 * device/include/mcs51/c8051f410.h: new SiLabs mcu
5565 * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5566 * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5568 2006-03-06 Borut Razem <borut.razem AT siol.net>
5570 * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5571 made the linker quiet
5573 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5575 * src/pic16/gen.c (genPcall): fixed bug #1443644
5576 * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5577 which dumps before the function entry point a data byte which represents
5578 the number of the local variables used by the specified function, added
5579 'xinst' for initial support for Extended Instruction Support,
5580 * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5581 (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5582 port->fun_prefix anymore (may change later),
5583 (genFunction, genEndFunction): do not store/restore local registers for
5584 _main (this should take care the --main-return command line option in
5586 (genOr): removed some legacy pic-port instructions,
5587 * src/pic16/genarith.c (genAddLit): re-enabled old code because
5588 performing operations with SFR's causes data to be written more than
5589 once to each SFR. Perhaps SFRs should be handled in special cases...
5590 * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5592 * src/pic16/main.c (_process_pragma): stack bound checking did not take
5593 into account for stack starting position,
5594 (struct OPTIONS pic16_optionsTable): added command line argument
5595 --extended or -y for Extended Instruction Support,
5596 * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5597 (deassignLRs): *** perhaps the most important change, old 'for' code
5598 (commented out for reference), didn't account for some registers which
5599 were left marked 'not free' after a pointer operation. The change
5600 reduces register usage a lot in some cases
5602 2006-03-04 Borut Razem <borut.razem AT siol.net>
5604 * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5606 * support/regression/tests/bug-524697.c: decreased array size for
5607 mcs51 to fit into the internal RAM
5608 * support/regression/Makefile.in: a little bit more verbose
5610 2006-03-03 Borut Razem <borut.razem AT siol.net>
5612 * support/regression/fwk/lib/testfwk.c,
5613 support/regression/fwk/include/testfwk.h: introduced function
5614 _prints(), nonrecursive _printn(), call _initEmu() from main()
5615 * support/regression/ports/gbz80/support.asm,
5616 support/regression/ports/ucz80/support.asm,
5617 support/regression/ports/z80/support.asm,
5618 support/regression/ports/ds390/support.c,
5619 support/regression/ports/hc08/support.c,
5620 support/regression/ports/host/support.c,
5621 support/regression/ports/mcs51/support.c,
5622 support/regression/ports/xa51/support.c: added empty _initEmu()
5624 * support/regression/ports/pic16/gpsim.cmd,
5625 support/regression/ports/pic16/spec.mk,
5626 support/regression/ports/pic16/support.c,
5627 support/regression/Makefile.in: added pic16 regression test
5629 2006-03-01 Raphael Neider <rneider AT web.de>
5631 * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5632 genConstPointerGet): use safe way of generating MOVFF to cover
5633 literals as well as registers, fixes bug #1440527
5634 * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5636 (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5637 more correctly, fixes bug #1232186
5638 (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5639 * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5640 gplink guess the correct processor in more cases, applied patch
5641 from Till Riedel attached to and fixing bug #1436552
5643 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5645 * support/regression/tests/array.c: added, contains check for #1434401
5646 * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5648 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5650 * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5651 * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5652 * device/include/mcs51/c8051f326.h,
5653 * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5654 * device/include/mcs51/c8051f000.h,
5655 * device/include/mcs51/c8051f018.h,
5656 * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5657 PCON_IDLE,PCON_STOP and added sfr16 definitions
5659 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5661 * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5662 genGetWord): fixed bug 1409955
5664 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5666 * device/include/hc08/mc68hc908gp32.h,
5667 * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5669 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5671 * src/SDCCast.c (constExprValue): return NULL if not a value
5672 * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5673 * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5674 * support/regression/tests/bitfields.c: enabled signed bitfield for all
5676 2006-02-13 Borut Razem <borut.razem AT siol.net>
5678 * src/regression/ptrarg.c: added, fails due to bug #1430967
5679 * src/regression/Makefile: ptrarg.c added, ...
5681 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5683 * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5684 * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5686 2006-02-11 Borut Razem <borut.razem AT siol.net>
5688 * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5689 print "Processor: xxx" message to stdout only if --verbose
5691 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5693 * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5694 * support/regression/tests/bug1426356.c: added
5695 * support/regression/tests/bitfields.c: removed 2 tests
5697 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5699 * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5700 * device/include/mcs51/c8051f330.h,
5701 * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5702 PCON_IDLE,PCON_STOP and added sfr16 definitions
5703 * device/lib/_divsint.c,
5704 * device/lib/_divuint.c,
5705 * device/lib/_divulong.c,
5706 * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
5707 register bank bug for small stackauto
5709 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5711 * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
5713 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
5715 * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
5716 * all.dsp: corrected several bin paths
5717 * device/include/mcs51/c8051f120.h,
5718 * device/include/mcs51/c8051f300.h,
5719 * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
5720 to PCON_IDLE,PCON_STOP
5721 * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
5722 * device/lib/printf_large.c (output_float): fixed bug 1388703
5723 * support/regression/tests/bug1057979.c: added test for bug 1388703
5725 2006-02-08 Raphael Neider <rneider AT web.de>
5727 * src/pic/pcode.c (pciTRIS): fixed typo,
5728 (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
5729 (LinkFlow): fixed handling of flows that end in a call,
5730 (ReuseReg): perform safety check earlier
5731 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
5732 to work with flows at the beginning of a pBlock,
5733 fixes #1426557 (Symbol not previously defined),
5734 (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
5736 (RemoveUnusedRegisters): update register usage info
5737 * src/pic/ralloc.c (newReg): prevent duplicate registers from being
5738 created, reuse existing ones instead
5739 * src/pic/gen.c (genPcall): fixed #1424719
5741 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
5743 * link/z80/lkmain.c,
5745 * link/z80/lkdata.c,
5746 * link/z80/aslink.h: fixed build on current cygwin:
5747 replaced getline() by lk_getline()
5749 2006-02-01 Borut Razem <borut.razem AT siol.net>
5751 * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
5752 src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
5753 src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
5754 src/regression/bool1.c, src/regression/bool2.c,
5755 src/regression/bool3.c, src/regression/call1.c,
5756 src/regression/compare.c, src/regression/compare10.c,
5757 src/regression/compare2.c, src/regression/compare3.c,
5758 src/regression/compare4.c, src/regression/compare5.c,
5759 src/regression/compare6.c, src/regression/compare7.c,
5760 src/regression/compare8.c, src/regression/compare9.c,
5761 src/regression/configword.c, src/regression/for.c,
5762 src/regression/inline.c, src/regression/mult1.c,
5763 src/regression/nestfor.c, src/regression/or1.c,
5764 src/regression/pointer1.c, src/regression/ptrfunc.c,
5765 src/regression/rotate1.c, src/regression/rotate2.c,
5766 src/regression/rotate3.c, src/regression/rotate4.c,
5767 src/regression/rotate5.c, src/regression/rotate6.c,
5768 src/regression/rotate7.c, src/regression/string1.c,
5769 src/regression/struct1.c, src/regression/sub.c,
5770 src/regression/sub2.c, src/regression/switch1.c,
5771 src/regression/while.c, src/regression/xor.c,
5772 src/regression/create_stc, src/regression/simulate,
5773 src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
5775 * src/regression/gpsim_assert.h: added
5777 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
5779 * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
5780 ((void (code *) (void)) 0) ();
5789 * as/mcs51/aslink.h,
5791 * as/mcs51/asmain.c,
5792 * as/mcs51/lkdata.c,
5794 * as/mcs51/lkmain.c,
5797 * as/z80/asmain.c: fixed build on current cygwin:
5798 replaced getline() by as_getline()
5800 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
5802 * src/SDCC.y: fixed bug #716242, exchanged pointer and function
5803 declarator in the symbol chain
5805 * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
5806 parameter list for function pointers
5807 * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
5808 * support/regression/tests/bug-716242.c: added
5810 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
5812 * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
5814 * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
5816 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
5818 * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
5819 inifinitely recurseable, added static
5820 * support/regression/tests/bug-1408066.c: added
5822 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
5825 * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
5826 renamed, added possibility to create "postLoopLbl"-labels
5827 * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
5828 newiTempLoopHeaderLabel
5829 * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
5830 isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
5831 addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
5832 hasNonPtrUse, loopInvariants, addressTaken, findInduction,
5833 findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
5834 (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
5835 (basicInduction): fixed bug #136564, made static,
5836 (loopInduction): changed parameter of basicInduction, made static,
5837 (addPostLoopBlock): added
5838 * src/SDCCloop.h: removed backEdges, pregion, pinduction,
5839 loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
5841 * support/regression/tests/bug-136564.c: added
5842 * support/regression/ports/mcs51-xstack-auto/spec.mk: added
5843 --std-sdcc99 to LIBSDCCFLAGS
5845 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
5847 * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
5849 * support/regression/tests/bug-1406131.c: added
5851 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
5853 * src/SDCCast.c (decorateType): fix promotion of unary minus
5854 * src/SDCCsymt.c (computeType): beautified
5855 * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
5856 (valUnaryPM, valComplement): fix sign and promotion,
5857 (valNot): ANSI: result type is int (SDCC: unsigned char)
5858 * support/regression/tests/uminus.c: speedup by removing superflous
5860 * support/regression/tests/onebyte.c: added promotion and signedness
5861 tests for unary minus
5862 * support/regressions/tests/bug-477927.c: disable warning about
5863 uninitialized variables
5864 * support/regression/tests/not.c: added
5866 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
5868 * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
5869 * src/mcs51/gen.c (gen51Code): show final register usage after
5870 fillGaps in asm with --i-code-in-asm
5871 * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
5872 markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
5873 incUsed, rliveClear, adjustIChain): made static,
5874 (setFromRange): excluded because it's unused,
5875 (findPrevUseSym, markWholeLoop): added,
5876 (findPrevUse): rewritten; fixes bug 895992; now a complete search
5877 through all branches of predecessors enables sdcc to emit the warning
5878 W_LOCAL_NOINIT, marking of outermost loop was incomplete,
5879 (rlivePoint): made static, added parameter emitWarnings which is only
5880 true during the first run out of two,
5881 (findRecursiveSucc, findRecursivePred): removed,
5882 (computeLiveRanges): made static, added parameter emitWarnings,
5883 (dumpIcRlive): added for debugging only
5884 * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
5885 removed prototype of setFromRange()
5886 * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
5887 in call of computeLiveRanges()
5888 * support/regression/tests/bug-895992.c: added
5889 * support/regression/tests/bug-971834.c: added
5890 * support/valdiag/tests/bug-895992.c: added
5891 * support/valdiag/tests/bug-971834.c: added
5893 2005-12-18 Raphael Neider <rneider AT web.de>
5895 * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
5896 (genUnpackBits): improved code for direct operands,
5897 (genPackBits): improved code for literal assignment to bitfields
5898 and for direct destination operands (no FSR indirection),
5899 prevented redundant AND, fixes #1362800,
5900 (AccLsh): added parameter to disable masking of the result
5901 * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
5902 skip instructions with side-effects (like incfsz),
5903 (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
5904 * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
5905 * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
5908 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
5910 * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
5911 volatile variables as spill location
5913 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
5915 * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
5917 * support/regression/tests/bug-1376320.c: added
5919 2005-12-08 Raphael Neider <rneider AT web.de>
5921 * src/pic/device.c: renamed is_shared to pic14_is_shared
5922 * src/pic/gen.c (genIfx): re-enabled handling of sbits
5923 * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
5924 (is_valid_identifier): added for above workaround
5926 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
5928 * device/lib/Makefile.in: fixed to enable port-specific-objects
5929 * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
5930 char, thanks Hubert Sack
5931 * doc/sdccman.lyx: documented --xstack-loc,
5932 elaborated a bit more on interrupts and pitfalls,
5933 removed "setjmp/longjmp unsupported",
5934 documented some unsupported C99 features
5935 * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
5936 * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
5937 if, thanks Hubert Sack
5938 * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
5939 * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
5941 * support/regression/get_ticks.py: new, get cpu cycles and code size, so
5942 regression tests can report resource usage (rfe 700441)
5943 * support/regression/collate-results.py: report resource usage
5944 * support/regression/ports/ds390/spec.mk,
5945 * support/regression/ports/hc08/spec.mk,
5946 * support/regression/ports/mcs51/spec.mk,
5947 * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
5948 * support/regression/ports/ds390/uCsim.cmd,
5949 * support/regression/ports/hc08/uCsim.cmd,
5950 * support/regression/ports/mcs51/uCsim.cmd,
5951 * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
5952 * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
5953 library, use the default one
5954 * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
5955 building the library
5957 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
5959 * config.dsp: added dependency on .version and configure_vc.awk
5960 * device/include/setjmp.h: updated for --stack-auto and --xstack
5961 * device/include/mcs51/at89c51snd1c.h: corrected line endings
5962 * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
5963 * device/lib/_setjmp.c: updated for --stack-auto and --xstack
5964 * device/lib/libsdcc.lib: added _setjmp
5965 * src/SDCCast.c (createIvalCharPtr): fixed warnings,
5966 (decorateType): fixed bug 1372851,
5967 (optimizeGetHbit): fixed warning
5968 * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
5969 array initialisation
5970 * support/regression/tests/bug1057979.c: added test for bug 1358192
5971 * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
5973 2005-12-03 Borut Razem <borut.razem AT siol.net>
5975 * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
5976 command since the NSIS was upgraded to version 2.11 on CF x86-linux2
5978 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
5980 * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
5981 createIval): implement symbol independant "flexible array member",
5982 (createIvalCharPtr): implemented flexible array initialisation with a
5984 * src/SDCCsymt.c (copyStruct): removed,
5985 (getSize): fixed misleading comment,
5986 (getAllocSize): removed, the additional allocation size is now in
5987 sym->flexArrayLength,
5988 (checkStructFlexArray): new, syntax checks for flexible array members,
5989 (compStructSize): added syntax checks for "flexible array members"
5990 (copyStruct): removed,
5991 (copyLinkChain): removed inefficient fix for bug 770487
5992 * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
5993 * src/SDCCsymt.h: added structdef.b_flexArrayMember and
5994 symbol->flexArrayLength
5996 * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
5997 E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
5998 * support/regression/tests/structflexarray.c: added
5999 * support/valdiag/tests/structflexiblearray.c: added
6001 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6003 * src/SDCCast.c (decorateType): fixed bug 1368489
6004 * support/Util/SDCCerr.c,
6005 * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6007 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6009 * device/include/mcs51/at89c51snd1c.h: added file submitted by
6010 Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6012 2005-11-27 Borut Razem <borut.razem AT siol.net>
6014 * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6015 support/cpp2/mkdeps.h: added command line option
6016 -obj-ext=<extension> to SDCPP to define object file externion, used
6017 for generation of make dependencies (-M)
6018 * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6020 2005-11-26 Borut Razem <borut.razem AT siol.net>
6022 * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6023 added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6024 added pic and pic16 libraries
6026 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6028 * device/include/float.h: Corrected typo in prototype of __fsgt
6030 2005-11-25 Borut Razem <borut.razem AT siol.net>
6032 * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6033 added creation of model-mcs51-stack-auto libraries
6035 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6037 * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6039 * src/SDCCast.c (createIvalArray): removed obsolete comment
6041 2005-11-24 Borut Razem <borut.razem AT siol.net>
6043 * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6044 added missing device/lib/mcs51/crt*.asm sources
6046 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6048 * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6050 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6052 * device/lib/_fs2schar.c,
6053 * device/lib/_fs2sint.c,
6054 * device/lib/_fs2slong.c: optimized inline asm
6056 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6058 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6059 Better handling of floats between -1.0 and 0.0.
6061 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6063 * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6064 (the missing "if"s prohibited removal of redundant labels)
6066 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6068 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6069 Properly convert floats between -1.0 and 0.0 to long, int, and char
6070 types (max integer value of negative floats tends to zero).
6071 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6072 Removed changes made so to work properly with floats between
6073 -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6076 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6078 * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6079 * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6080 (genCast) cosmetic change
6081 * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6082 * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6084 * support/regression/tests/bitfields (testSignedBitfields): added
6086 2005-11-18 Borut Razem <borut.razem AT siol.net>
6088 * sdcc/device/lib/Makefile.in: remove all unnecessary files
6089 * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6090 introduced SILENT option to make building of pic16 libraries less
6092 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6094 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6095 Now they work properly with floats between -1.0 and 0.0
6096 * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6098 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6100 * src/SDCCicode.c (printOperand): added missing else
6102 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6104 * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6105 reformatted for better readability
6106 * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6109 2005-11-17 Borut Razem <borut.razem AT siol.net>
6111 * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6112 introduced SILENT option to make building of pic16 libraries less
6113 verbose - used for nightly snapshot build
6114 * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6115 available on Win32 platforms.
6116 * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6117 medium, large, pic and pic16
6119 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6121 * device/lib/printf_large.c: Temporary patch for bug 1358192:
6122 printf("%f"...) sets fraction to zero.
6124 2005-11-16 Raphael Neider <rneider AT web.de>
6126 * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6128 * src/pic/gen.c (genIfx): implemented for CARRY bit
6129 * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6130 to generic pointers, fixes #1357332,
6131 (pic16_movLit2f): NEW,
6132 (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6134 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6136 * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6138 2005-11-11 Raphael Neider <rneider AT web.de>
6140 * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6141 * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6142 compute pointer's type from operand,
6143 (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6144 improved single bit reads, fixes bug #1353379
6146 2005-11-09 Borut Razem <borut.razem AT siol.net>
6148 * support/scripts/sdcc.nsi: added lib/pic to the package
6150 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6152 * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6154 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6156 * support/regression/tests/bug1348008.c: added
6157 * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6158 * support/regression/tests/bug1337835.c: updated comment
6160 2005-11-06 Borut Razem <borut.razem AT siol.net>
6162 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6163 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6164 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6165 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6166 sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6167 dynamic construction of cl_error_class and derivates - 2.nd try
6169 2005-11-05 Borut Razem <borut.razem AT siol.net>
6171 * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6172 bug, which caused Bus Errors on sparc solaris
6174 2005-11-04 Borut Razem <borut.razem AT siol.net>
6176 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6177 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6178 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6179 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6180 sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6181 and derivates to resolve the initialization problem on OSX
6183 2005-11-02 Borut Razem <borut.razem AT siol.net>
6185 * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6186 corrected typo - #include <winsock2.h>
6188 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6190 * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6191 (_asxxxx_mapping): added org directive for future enhancements
6193 2005-11-01 Borut Razem <borut.razem AT siol.net>
6195 * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6196 enabled sockets on WIN32
6197 * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6199 2005-10-31 Borut Razem <borut.razem AT siol.net>
6201 * support/regression/generate-cases.py: escape backslashes in {testcase}:
6202 WIN32 backslash path delimiters should be escaped when used in C strings
6203 * support/regression/tests/bitfields.c: exclude failing assertions for
6204 __CYGWIN32__ and __MINGW32__ hosts
6206 2005-10-30 Borut Razem <borut.razem AT siol.net>
6208 * src/SDCCutil.c: corrected double comparison typo
6210 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6212 * device/lib/medium/Makefile: added for new memory model medium
6213 * device/include/asm/mcs51/features.h: updated for medium/pdata
6214 * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6215 added Multiply & Accumulate sbit's and MAC0_PAGE define
6216 * device/include/mcs51/c8051f300.h: added sfr16 definitions
6217 * device/include/mcs51/c8051f310.h: added sfr16 definitions
6218 * device/lib/_mullong.c: update for medium model
6219 * device/lib/incl.mk: added medium model
6220 * doc/sdccman.lyx: documented medium model
6221 * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6222 * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6223 * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6224 * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6225 (allocParms): set SCLS and OCLS to pdata for medium model
6226 * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6228 (powof2): return <0 if not power of 2
6229 * src/avr/gen.c (genBitWise): use updated powof2
6230 * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6231 (shiftR2Left2Result): small optimization in setup, save acc when storing,
6232 (shiftLLeftOrResult): use B if necessary
6233 * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6234 * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6235 * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6236 * support/regression/Makefile.in: added test-mcs51-medium
6237 * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6239 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6241 * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6243 * device/lib/time.c (mktime): fixed bug 1334315
6245 2005-10-28 Raphael Neider <rneider AT web.de>
6247 * device/include/pic/p16f_common.inc: added common declarations
6248 * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6250 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6252 * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6253 (aopPutUsesAcc): added to predict accumulator use,
6254 (assignResultValue): save acc if necessary,
6255 (genMinusDec): store result if indirectly addressed,
6256 (genDivOneByte): save acc if necessary,
6257 (movLeft2Result): bugfix if left already in acc,
6258 (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6259 attention to accumulator use (esp. pdata),
6260 (genReceive): receive pdata correctly
6261 * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6262 * src/SDCCicode.h: added isOperandInPagedSpace prototype
6264 2005-10-27 Raphael Neider <rneider AT web.de>
6266 * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6268 2005-10-27 Raphael Neider <rneider AT web.de>
6270 * .version: changed version to 2.5.4
6271 * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6272 * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6273 (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6274 arithmetics support routines
6275 * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6276 * device/lib/Makefile.in: also create installdir for pic
6278 * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6280 * src/pic/device.c (dump_sfr): rewritten to delegate register
6281 placement to the linker (use `extern sym' rather than sym EQU addr),
6282 (validAddress): fixed to check last specified address
6283 * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6284 (popGetLit): truncate literal value to 8 bit,
6285 (popGet): moved assert to more appropriate place
6286 (popGetExternal): create pCode operand from and mark the according
6287 symbol as being `extern'
6288 (popGetAddr): added sanity check on immediate's offset, provide
6289 GPOINTER tag on demand
6290 (aopPut): fixed for immediates,
6291 (mov2w_op): move operand's address or contents to WREG (depending on
6292 operand type), safer variant of mov2w,
6293 (movwf,call_libraryfunc): NEW, handy abbreviations,
6294 (get_argument_pcop,get_return_val_pcop,pass_argument,
6295 get_returnvalue): interface for accessing function parameters and
6297 (assignResultValuei,genRet): use new parameter/return value interface
6298 (pic14_getDataSize): back to old version handling generic pointers,
6299 (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6300 provided implementation and/or fixed old one,
6301 (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6302 calls, removed legacy 8051 reference code
6303 (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6304 (loadSignToC): NEW, move the operands sign bit to CARRY,
6305 (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6306 genRightShiftSigned, accepts negative shift counts,
6307 (setup_fsr): load FSR and adjust IRP (indirect memory access),
6308 (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6309 generic pointers, __data pointers and __code pointers,
6310 (genUnpackBits,genPackBits): rewritten to work with generic pointers
6311 and signed bitfields, limit bitfields to 8 bit,
6312 (genDataPointerGet): fixed number of bytes read,
6313 (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6314 (genPointerGet,genPointerSet): fixed handling of __code pointers,
6315 pointers to constant data are no longer assumed to point to __code
6316 space, removed invalid pointer types,
6317 (bitpatternFromVal): retrieve the PICs representation of an integer
6319 (genDataPointerSet): fixed assigning to po_immediate operands,
6320 (genGenPointerSet): implemented as library call,
6321 (genIfx): fixed incorrect condition,
6322 (genAddrOf): limit generic pointers' addresses to 2 bytes,
6323 provide GPOINTER tag according to destination's storage class,
6324 (genCast): added code to handle casting to generic pointers, added
6325 sign-/zero extension of the result
6326 (aop_isLitLike,op_isLitLike): fixed handling of immediates
6327 * src/pic/gen.h: added macros to access IRP bit in STATUS register
6328 * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6330 * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6331 address/register resides in the shared banks
6332 (emitSymbolToFile): improved to handle global and `pinned' symbols,
6333 put all variables into separate sections (have the linker arrange
6335 (picglue): put init code and interrupt handlers in separate sections
6336 * src/pic/main.c: added port specific options table, modified to PORT
6337 structure to make GPOINTERs 3 byte, added pic14_options
6338 (_pic14_do_link): private linking routine (update paths to libraries,
6339 add libsdcc.lib by default)
6340 * src/pic/main.h: declare pic14_options
6341 * src/pic/pcode.c: fixed instructions i/o relations,
6342 (RegCond): reverted to correct version,
6343 (newpCodeOpLit): truncate literals to 8 bit,
6344 (genericPrint): added debug output,
6345 (getRegFromInstruction): fixed for various operand types, simplified
6346 (BuildFlow): fixed broken handling of isntructions with labels
6347 (LinkFlow): start at last instruction in flow (skip trailing comments),
6348 pass the flow on to the next instruction after CALL
6349 (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6350 (insertPCodeInstruction): fixed inserting after a skip instruction,
6351 (DoBankSelect): fixed for labeled instructions
6352 (OptimizepBlock): honor --nopeep switch
6353 (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6354 * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6355 * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6356 (pCodeOptime2pCodes): allow disabling this optimization via
6357 --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6358 but is still buggy), started implementation of a dataflow based
6359 pCode optimization (CSE + dead code elimination)
6360 (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6361 * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6362 names are independant of the stack location and therefore portable across
6365 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6367 * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6368 (selectSpil): fixed bug 1337835 by not spilling bit variables
6369 * support/regression/tests/bug1337835.c: added test for this bug
6370 * src/mcs51/peeph.def: restart after rule 3.c,
6371 addded rules 263.x to optimize loading constants
6373 2005-10-26 Raphael Neider <rneider AT web.de>
6375 * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6376 * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6377 (genAssign): emit warning when casting literals to generic pointer
6378 type, also applies when taking the address of a fixed variable,
6379 (genCast): improved casting to generic pointers
6380 * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6381 extern variables, added verbose error message
6382 * device/include/pic16/{string.h,errno.h}: added #pragma library c
6384 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6386 * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6387 carry must be complemented too
6388 * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6389 could be emitted by genMinus
6390 * src/SDCCval.c (constVal): fixed bug 1305065
6392 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6394 * src/SDCCast.c (addCast): added promotion for bit variables
6395 (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6396 promotion casts + optimisation
6397 (optimizeGetWord): fix warning 'i' might be used uninitialized
6398 * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6399 * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6401 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6403 * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6404 all chars are promoted to int; promotion should be handled in SDCCast.c
6406 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6408 * device/lib/_strcmp.c: Fixed bug 1326457
6410 2005-10-11 Raphael Neider <rneider AT web.de>
6412 * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6413 * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6415 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6417 * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6418 * support/regression/tests/sfr16.c: added test for the sfr32 bug
6420 2005-10-04 Raphael Neider <rneider AT web.de>
6422 * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6423 device/lib/pic16/pics.all: added pic18f1320
6424 * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6426 2005-09-30 Raphael Neider <rneider AT web.de>
6428 * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6429 * src/pic16/devices.inc: NEW, provides device descriptions
6430 * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6432 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6434 * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6437 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6439 * doc/sdccman.lyx: updated Highest Order Bit documentation,
6440 documented Any Order Bit, Higher Order Byte and Higher Order Word
6441 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6442 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6443 (optimizeGetAbit): new, to get any bit, not only the high bit,
6444 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6445 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6446 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6447 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6448 RIGHT_OP: also try GETBYTE, GETWORD optimization,
6449 GETABIT, GETBYTE, GETWORD: decorate them,
6450 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6451 (ast_print): added GETABIT, GETBYTE, GETWORD
6452 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6453 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6454 (geniCodeBinary): new generic binary icode,
6455 (ast2iCode): added GETABIT, GETBYTE, GETWORD
6456 * src/port.h: updated comment for PORT.hasExtBitOp
6457 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6458 (genGetByte): new, to get a single byte,
6459 (genGetWord): new, to get a word from a long,
6460 (gen51Code): added GETABIT, GETBYTE, GETWORD
6461 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6463 2005-09-23 Raphael Neider <rneider AT web.de>
6465 * configure.in, configure: have device/lib/pic configured
6466 * device/lib/Makefile.in: added model-pic14
6467 * device/lib/clean.mk: added pic/ to clean rule
6468 * device/lib/pic: added rudimentary pic14 library providing support
6469 functions for multiplication/division/generic pointer access
6470 * src/SDCCopt.c (convilong): mark support functions as extern
6471 for pic14 port as well
6472 * src/pic/gen.c (genMult): added assertions,
6473 (genpic14Code): emit warning on unhandled iCodes
6474 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6475 * src/pic/pcode.c (pCodeOpCopy),
6476 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6477 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6478 SFR_REGISTER}), made safe for future extensions
6479 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6480 instructions even if preceeded by SKIP instructions (also remove
6481 them); removed unused code
6482 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6483 prevents leaving parts of the structure uninitialized after copying
6485 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6487 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6489 * support/regression/tests/addsub.c: added test for the bug
6491 2005-09-21 Raphael Neider <rneider AT web.de>
6493 * device/include/pic16/pic18f1220.h,
6494 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6495 * device/lib/pic16/Makefile.rules: added missing opening paren
6496 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6497 are provided in genutils.c,
6498 (genUminusFloat,genUminus,genCmpEq): added asserts on different
6499 operand/result sizes,
6500 (genCmp): assert on NULL pointers first, then check deref'ed values
6501 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6504 2005-09-18 Raphael Neider <rneider AT web.de>
6506 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6507 as these are now unused,
6508 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6509 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6510 local, avoids uninitialized pointer dereference on r->name
6511 * src/pic16/ralloc.c (newReg): fixed indentation
6513 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6515 * src/SDCCval.c (constVal): fixed bug 730366
6516 * support/Util/SDCCerr.c,
6517 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6519 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6521 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6523 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6525 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6527 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6529 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6530 (hex2dec): made hex_digit unsigned char, removed ascii dependance
6531 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6532 (hex2dec): made hex_digit unsigned char, removed ascii dependance
6533 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6534 * packihx/packihx.c (hexDigit): made c unsigned char
6535 * as/mcs51/lklibr.c (fndsym),
6536 * link/z80/lkgb.c (gb),
6537 * link/z80/lklibr.c (fndsym),
6538 * link/z80/lkrloc.c (relr),
6539 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6540 * src/SDCC.lex (checkCurrFile, process_pragma),
6541 * src/SDCCglue.c (spacesToUnderscores),
6542 * src/SDCCmain.c (setParseWithComma, processFile),
6543 * src/asm.c (tvsprintf, printCLine),
6544 * src/avr/gen.c (emitcode, aopPut),
6545 * src/ds390/gen.c (emitcode),
6546 * src/hc08/gen.c (emitcode, emitinline),
6547 * src/mcs51/gen.c (emitcode, genInline),
6548 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6550 * src/pic/ralloc.c (debugLog),
6551 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6553 * src/pic16/ralloc.c (debugLog),
6554 * src/z80/main.c (_process_pragma):
6555 made all ctype.h function calls safe
6556 * src/SDCCopt.c: include math.h for fabs
6557 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6558 and used them throughout the code to make ctype.h function calls safe
6559 * src/ds390/main.c (asmLineNodeFromLineNode),
6560 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6561 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6563 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6564 (newpCodeAsmDir): made ctype.h function calls safe
6565 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6566 pic16_emitcode): made lbp unsigned char*
6567 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6568 (pic16_newpCodeAsmDir): made ctype.h function calls safe
6569 * src/xa51/gen.c (emitcode),
6570 * src/z80/gen.c (_emit2): made lbp unsigned char*
6571 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6574 2005-09-05 Raphael Neider <rneider AT web.de>
6576 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6577 access bank splitpoint
6579 2005-09-05 Raphael Neider <rneider AT web.de>
6581 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6583 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6585 * .version: changed to version 2.5.3
6586 * doc/sdccman.lyx: changed version to 2.5.3,
6587 documented --codeseg and --constseg and pragma codeseg and constseg,
6588 documented bit parameters (reentrant) and bit returning
6589 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6590 currFunc->recvSize, but is this ok for all ports?
6591 (ast2iCode): result of ~ on unsigned char must be cast to int for
6593 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6594 function pointers in bit space
6595 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6596 (processFuncArgs): call port.reg_parm() with reentrancy info
6604 * src/z80/main.c: port.reg_parm prototype extended with
6605 "bool reentrant" parameter
6606 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6607 options.stackAuto for allocating bit register parameters
6608 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6609 (genSend): set BitBankUsed if it is,
6610 (selectRegBank): factored out of genCall for use in genPcall,
6611 (genCall): removed redundant dtype assignmen, use selectRegBank,
6612 (genPcall): handle returning in Carry properly, save in F0 if needed,
6613 (genReceive): handle bit register parameters
6614 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6615 (mcs51_assignRegisters): enable bit registers for all reentrant
6616 functions and don't set BitBankUsed unconditionally
6617 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6618 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6619 * support/regression/tests/funptrs.c: added tests for BOOL and for return
6621 2005-08-27 Borut Razem <borut.razem AT siol.net>
6623 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6624 ppc-osx (Darwin) does not support -u option. It seems that it is
6625 supported only on Linux - GNU cp
6627 2005-08-25 Borut Razem <borut.razem AT siol.net>
6629 * sim/ucsim/gui.src/serio.src/Makefile.in,
6630 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6631 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6632 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6633 install and strip, since the strip at /usr/ccs/bin should be used
6636 2005-08-24 Borut Razem <borut.razem AT siol.net>
6638 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6640 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6642 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6645 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6647 * as/mcs51/aslink.h: completed lkrloc.c prototypes
6648 * as/mcs51/lkmain.c (link_main): fixed warning
6649 * device/include/stdbool.h: ds390 has no advanced bit support yet
6650 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6651 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6652 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6653 and updated their macros
6654 * src/SDCCval.c (constVal): updated comment for renamed b_long
6656 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6658 * as/mcs51/asdata.c: changed ctype['['] to BINOP
6659 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6660 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6661 (oprio): set priority for '['
6662 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6664 * as/mcs51/asm.h: added defines R_BIT and S_BIT
6665 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6666 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6667 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6668 added overlayable BIT_BANK area
6669 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6670 (summary2): explain 'T' in legenda
6671 * as/mcs51/lkrloc.c: replaced old K&R style,
6672 (relr): added R_BIT processing,
6673 (errmsg): added "Bit-addressable relocation error",
6674 (adb_bit): added for converting from byte- to bit-addressable space,
6675 (adb_24_bit): added for converting from byte- to bit-addressable space
6676 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6677 used in reentrant functions now even as return value
6678 * device/lib/_gptrput.c (_gptrput): removed obsolete code
6679 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6680 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6681 * src/SDCCglobl.h: added indicator BitBankUsed
6682 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6683 the bit registers b0-b7
6684 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6685 (geniCodeCast): fixed bug 1263853,
6686 (geniCodeLogicAndOr): put result in bool or char,
6687 (geniCodeReceive): added parameter func for accessing the return type,
6688 (geniCodeFunctionBody): pass func to geniCodeReceive
6689 * src/SDCCmain.c: added indicator BitBankUsed
6690 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6691 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6692 (checkSClass): don't put automatic bool/bit on stack,
6693 (checkFunction): removed check on function cannot return bit
6694 * src/SDCCsymt.h: added newBoolLink prototype
6695 * src/mcs51/gen.c (rb1regs): added bit registers,
6696 (movc): created for assigning to carry,
6697 (pushReg, popReg): created for pushing registers,
6698 (sameRegs): check both AOP_REG and AOP_CRY types,
6699 (aopOp): handle bit registers,
6700 (aopPut): optimization no self-assign,
6701 (saveRegisters): push reg->base (bits) only once for bit registers,
6703 (unsaveRegisters): pop reg->base only once and use popReg,
6704 (assignResultValue): added parameter func and return in carry for bits,
6705 (genIpush): optimization no reload in A if not changed,
6706 (genSend): bit parameters in reentrant functions are passed in bit
6707 registers by first assigning to bits in B, then save registers and
6709 (genCall): handle returning in Carry properly, save it in F0 if needed,
6710 (genPcall): updated assignResultValue call, this is not safe yet for bit
6711 returning function !!!
6712 (genFunction): don't generate equ's for bit registers and use pushReg,
6713 (genEndFunction): take care of bit returning functions and use popReg,
6714 (genRet): return bit in Carry,
6715 (genIfx): optimize bit registers and other directly addressable bits,
6716 (genReceive): updated assignResultValue call
6717 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
6718 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
6719 registers when using stack-auto
6720 * src/mcs51/ralloc.c (_G): added allBitregs,
6721 (regs8051): added the bit registers,
6722 (createStackSpil): use macro IS_BIT,
6723 (getRegBit): added to allocate a bit register, else spill,
6724 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
6725 (updateRegUsage): factored out to ease stepping while debugging,
6726 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
6727 also allocate bit registers,
6728 (fillGaps): handle bit registers,
6729 (findAllBitregs): added to create bit vector with all bit registers,
6730 (mcs51_allBitregs): returns this bit vector,
6731 (mcs51_assignRegisters): when using stack-auto use bit registers for
6732 passing parameters and creating local variables
6733 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
6735 2005-08-22 Borut Razem <borut.razem AT siol.net>
6737 * device/lib/Makefile.in: replaced find option -or with -o
6738 to make it run on solaris
6740 2005-08-22 Raphael Neider <rneider AT web.de>
6742 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
6743 fixes #1265442 (crash on Solaris)
6745 2005-08-20 Borut Razem <borut.razem AT siol.net>
6747 * configure, configure.in: added tests for libsocket and libnsl libraries,
6748 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
6749 from support/regression/Makefile.in
6750 * support/regression/Makefile.in: added
6751 * device/lib/pic16/Makefile.common.in: force make to use bash shell
6752 * sim/ucsim/libtool: regenerated on sparc-solaris
6753 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6754 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
6755 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
6756 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
6757 sparc-solaris, which doesn't use GNU ld linker
6758 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
6759 * as/Makefile: find on sparc-solaris does not support -maxdepth option
6761 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
6763 * src/mcs51/peeph.def: updated comments
6765 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6767 * device/lib/_gptrget.c,
6768 * device/lib/_gptrput.c: slightly shorter
6769 * doc/sdccman.lyx: incremented version
6770 * src/mcs51/peeph.def: moved peephole comments to the line of first
6771 change to better keep line correlation, reanimated 186.e
6772 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
6774 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6776 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
6777 David Saxton with quotes around file name.
6779 2005-08-15 Borut Razem <borut.razem AT siol.net>
6781 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
6782 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
6783 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
6784 make tests run on x86_64 platform
6786 2005-08-13 Raphael Neider <rneider AT web.de>
6788 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
6789 as it might be executed DURING a build (parallel make is wonderful)
6791 2005-08-13 Raphael Neider <rneider AT web.de>
6793 * device/lib/Makefile.in (port-specific-objects-pic16):
6794 revert to cp $(PORT)/bin/*.* $(PORTDIR)
6795 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
6797 * device/lib/pic16/Makefile.rules: build subdirs before creating
6798 the library, removed builddir rule, create $(builddir) early in
6799 recurse rule, use empty recurse rule for leaf directories
6800 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
6801 mkdir errors (race condition), removed duplicate suffix "hex"
6803 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
6804 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
6805 prevents mkdir -p from aborting on Alpha
6807 2005-08-12 Raphael Neider <rneider AT web.de>
6809 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
6810 db-statements in order to allow for arrays of pointers in code
6811 sections to be placed without interspersed 0-padding, fixes
6813 * (emitStatistics): fixed division by zero for pic18f1220
6814 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
6815 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
6816 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
6817 * (pic16_pCodeConstString): keep track of already emitted string
6818 literals to prevent "duplicate definitions of symbol _str_NR"
6819 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
6821 * device/lib/Makefile.in: ignore failing PIC16 library builds
6822 * device/lib/pic16/Makefile: do not build if gputils are missing
6823 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
6825 2005-08-10 Raphael Neider <rneider AT web.de>
6827 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
6830 2005-08-10 Raphael Neider <rneider AT web.de>
6832 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
6833 Rokas' patch to add the new fixed point type "__fixed16x16"
6834 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
6835 functions for __fixed16x16 arithmetics
6836 * device/lib/pic16: reimplemented the build system to support
6837 a separate build directory, better handling of libio (create
6838 the library in a separate subdir for each architecture) and
6839 easier configuration (centralized in Makefile.common)
6841 2005-08-07 Raphael Neider <rneider AT web.de>
6843 * src/pic16/gen.c (genrshTwo): fixed sign extension
6844 * src/pic16/device.c: added pic18f2320, 4220 and 4320
6845 * device/include/pic16/pic18f2220.h: changed some bit definitions,
6847 * device/include/pic16/pic18f4220.h: NEW, header for
6848 pic18f4220 and pic18f4320
6849 * device/include/pic16/pic18fregs.h: added new devices,
6850 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
6851 * device/include/pic16/signal.h: resolved name clashes
6852 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
6853 to also allow testing for interrupt enable bits, added
6854 comments on how to use the macros
6855 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
6856 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
6857 register definitions for the devices
6858 * device/lib/pic16/pics.all: added new devices
6859 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
6861 * device/lib/pic16/libc/stdlib/memfree: do not count
6862 the block header as free memory
6863 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
6864 simplified and added missing end-of-blocklist-marker
6865 (reported by Peter Onion, fixes #1252814)
6866 * (_mergeHeapBlock): fixed loop condition
6867 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
6868 len==0, restructured code
6869 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
6870 up a bit, reduced bitfield accesses, prevent endless loops
6871 in case of heap corruption
6872 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
6873 "unreferenced arguments/must return a value" warnings
6874 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
6875 replaced BAUDREG with SPBRG
6876 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
6877 device/lib/pic16/debug/gstack/gstack.c: replaced
6878 _naked, _asm, _endasm with __naked, __asm, __endasm
6880 2005-08-05 Raphael Neider <rneider AT web.de>
6882 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
6883 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
6885 2005-08-05 Borut Razem <borut.razem AT siol.net>
6887 * device/lib/Makefile.in: added missing ';'
6888 * configure: removed ^M characters
6890 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6892 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
6893 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
6896 2005-08-04 Borut Razem <borut.razem AT siol.net>
6898 * configure.in: pic16 libraries build 2nd try - enable running
6899 configure in device/lib/pic16
6900 * configure: regenerated from configure.in
6901 * device/lib/Makefile.in: create $(PORT)/bin directory
6903 2005-08-03 Raphael Neider <rneider AT web.de>
6905 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
6906 to get/set values via pointers
6907 * (genUnpackBits,genPackBits): changed detection of
6908 ptr->bitfield vs. sym.bitfield, fixed access via generic
6909 pointers, removed dead (wrong) code for multibyte bitfields
6910 * (genNearPointerGet, genGenPointerGet): removed useless code,
6911 fixed bitfield detection, fixes #1250594
6912 * (genNearPointerSet): removed useless code
6913 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
6914 and introduced macro pic16_emitpcode that conditionally emits
6915 the origin of the following pCode (useful for debugging SDCC)
6916 * src/pic16/pcode.c: changed (and disabled) some debug outputs
6917 * (createDefmap): fixed handling of LFSR for --optimize-df
6919 2005-08-02 Borut Razem <borut.razem AT siol.net>
6921 * device/lib/Makefile.in: pic16 libraries build enabled since
6922 gputils-0.13.2 are now localy installed at sourceforge's compile farm
6924 2005-08-02 Raphael Neider <rneider AT web.de>
6926 * src/pic16/gen.c (genPackBits): removed deprecated warning
6927 * (genGenPointerSet): fixed bitfield detection
6929 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6931 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
6933 2005-07-31 Raphael Neider <rneider AT web.de>
6935 * device/lib/pic16/libdev/pic18f458.c,
6936 device/include/pic16/pic18f458.h: added missing T0CONbits
6938 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6940 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
6942 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
6944 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
6946 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6948 * device/include/mcs51/at89c51ed2.h: added.
6950 2005-07-23 Raphael Neider <rneider AT web.de>
6952 * src/pic/gen.h: added emitpcode macro for debugging
6953 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
6954 and replace by macro adding debug information on demand
6955 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
6956 * (gencjne): tried to fix; replaced with correct (slower) code
6957 * (gen{Unp,P}ackBits): fixed single bit access
6958 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
6959 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
6960 previous instruction
6961 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
6962 register has to be handled with care (forbidding movement
6963 of assignments/uses, removing assignments completely, ...)
6964 * (pCodeOptime2pCodes): make use of regIsSpecial
6965 * added lots of debugging output (commented out)
6966 * src/pic/rallloc.c (deassignLRs): prevent operand registers
6967 from being reused as result UNLESS it is known to work
6969 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
6971 * support/Util/dbuf.h: include <stddef.h> for size_t
6972 * .version: changed to version 2.5.2
6974 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6976 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
6978 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6980 * src/hc08/gen.c (genMinus): fixed bug #1241835,
6981 (genModOneByte): removed needless psha/pula
6983 2005-07-22 Raphael Neider <rneider AT web.de>
6985 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
6986 have PIC14 handled like PIC16, fixes broken pic14 linker calls
6987 * src/pic/gen.c (resolveIfx): do not "invent" labels
6988 * (genSkipc): changed to positive logic
6989 * (genSkipCond): removed as no longer needed
6990 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
6992 * (genLeftShift): check operands are in different registers
6993 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
6994 INCF does not update CARRY...
6995 * src/pic/main.c: fixed _linkCmd
6996 * src/pic/pcode.c (unlinkpCode): added inactive code
6997 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
6998 alive (do not assign result and operand overlapping registers)
7000 2005-07-22 Raphael Neider <rneider AT web.de>
7002 * src/pic/device.c (dump_sfr): replaced register declaration with
7003 call to emitSymbolToFile() to avoid duplicate symbols
7004 * (assignRelocatableRegisters): do not declare external symbols
7005 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7006 right (take size of type, not etype)
7007 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7008 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7009 * (packRegsForAccUse): disabled assignment of WREG as
7010 the result reg to prevent occurence of just fixed #1235003,
7012 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7013 symbols (avoids duplicate symbols in .asm file)
7014 * (pic14emitRegularMap): use emitSymbolToFile()
7015 * src/pic/gen.c (aopOp): fixed spillLocation handling
7016 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7017 * (genDataPointerSet): removed unneccessary variables/output
7019 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7021 * as/mcs51/lkarea.c: enlarged codemap for banked memory
7022 * device/lib/mcs51/crtbank.asm: added # to 0x0F
7024 2005-07-21 Raphael Neider <rneider AT web.de>
7026 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7027 architecture cannot handle them efficiently, fixes bug #1235003
7028 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7029 check for empty sets before using them (fixes bug #1232190)
7031 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7033 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7034 (lnksect2): generate warnings for memory overlap
7035 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7036 constseg to set the name of these segments so you can instruct the linker
7037 to place them in banks
7038 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7039 * src/SDCCglobl.h: added MODEL_HUGE to enum,
7040 added code_seg and const_seg to options
7041 * src/SDCCglue.c (emitMaps): use options.const_seg,
7042 (createInterruptVect): put interrupt vectors in segment HOME,
7043 (glue): put HOME before static segment and put the main glue in HOME,
7044 (glue): use options.code_seg
7045 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7046 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7047 these segments so you can instruct the linker to place them in banks
7048 (linkEdit): use code_loc for HOME segment which should be the first
7049 segment in code memory now
7050 * src/SDCCmem.c: fixed more stuff like bug 1238386
7051 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7052 (changePointer): don't change function pointers to code pointers for
7054 (compareType): added exceptional check for banked function pointers
7055 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7056 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7057 after static in code memory
7058 * src/mcs51/gen.c: added aopLiteralLong prototype,
7059 (aopForSym): use getSize for functions,
7060 (genCall): generate banked calls over one trampoline __sdcc_banked_call
7061 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7062 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7064 (genPcall): use call for literal function pointers and generate banked
7065 calls over the one trampoline so there's only one place for the user to
7066 modify according to his/hers hardware,
7067 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7068 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7069 * src/mcs51/main.c: added keyword banked,
7070 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7071 * support/Util/SDCCerr.c,
7072 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7073 needed for passing the bank and address to the trampoline
7074 * device/lib/mcs51/crtbank.asm: added for bankswitching
7075 * device/lib/mcs51/Makefile: added crtbank
7077 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7079 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7080 for fields at offset 0 of a struct or union as reported
7081 on 2005-07-07 in the developer mailing list.
7083 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7085 * src/SDCCmem.c: fixed bug 1238386
7087 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7089 * src/mcs51/peeph.def: added labelrefcounting for peepholes
7090 (patch #1144962), added peephole 300, enabled 259.x
7091 * doc/sdccman.lyx: removed screenshot and provided link instead
7093 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7095 * doc/sdccman.lyx: added section about debugging with ddd
7096 * doc/figures/ddd_example.eps: screenshot of debugging session
7098 2005-07-04 Raphael Neider <rneider AT web.de>
7100 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7101 like CODE pointers, fixes #1115683
7102 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7103 call, fixes bugs #1232211, #1228110,
7104 fixed wrong casts to pCodeFlow from pCodeInstructions
7106 2005-07-04 Raphael Neider <rneider AT web.de>
7108 * src/pic/gen.c (popGet): changed assert to allow for
7110 * (popGetAddr): changed signature to provide
7111 an additional index, patched all call sites
7112 * (genCmpEq): handle literal-like operands correctly
7113 * (genAddrOf): added sanity checks on __code/__data pointers
7114 * (genAssign): added handling of symbols from __code section
7115 * (gencjne): do not generate code for comparisons whose result
7116 is neither stored nor used, fixes bug #1171114
7117 * (AccLsh, AccRsh): operate on operand instead of WREG
7118 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7119 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7121 * rewrote complete shift-by-literal logic, commented unused
7123 * (genConstPointerGet): get multiple bytes (if result size > 1),
7124 fixed handling of non-immediate addresses
7125 * (genPointerGet): handle CODE pointers like CONST pointers
7126 * (genpic14Code): insert C-SRC lines as Cource-pCodes
7127 * ({aop,op}_isLitLike): NEW, single place to decide whether an
7128 operand is to be treated as a literal or not
7129 * (mov2w,genPcall,genCmpEq),
7130 src/pic/genarith.c: use aop_isLitLike() to decide between
7131 literal/register contents
7132 * (addSign): added missing offset
7133 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7134 only emit comment in debug-mode,
7135 use {aop,op}_isLitLike throughout the file
7136 * src/pic/glue.c: fix initializers for pointers (work in progress)
7137 * src/pic/pcode.c (get_op): honor index on _const symbols
7138 * ({reset,dump}pCodeStatistics): NEW, estimate code size
7139 * (dumppBlock): added pCode size estimation
7140 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7141 check for IS_SYMOP before OP_SYMBOL'ing
7142 * fixed indentation, compacted switch-statements
7143 * (allocReg): find free register and allocate it instead of
7144 allocating new registers all the time
7145 * (deassignLRs): prevent POINTER_GET's from being assigned the same
7146 registers as its operands (necessary only for multibyte GETs)
7148 2005-07-01 Raphael Neider <rneider AT web.de>
7150 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7151 debugging .asm-output macros FENTRY + FEXIT
7152 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7154 * (emitpComment): NEW, printf to pCode
7155 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7157 * (popGetAddr): NEW, variant of popGet to access an immediates
7158 high(er) bytes instead of the n'th byte of memory they reference,
7159 replaced popGet with popGetAddr where neccessary
7160 * (genDataPointerGet): reactivated and fixed implementation
7161 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7163 * (genDataPointerSet): fixed multibyte assignments
7164 * (genpic14Code): fixed --i-code-in-asm handling
7165 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7166 * (genPlus): fixed index-out-of-bounds error
7167 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7168 * src/pic/ralloc.c: added debugging output macro FENTRY2
7169 * (spillThis): fixed indentation, enbraced for-body for clarity
7170 * (rematStr): commented out as now unused
7171 * (regTypeNum): commented out special spill case (overwrites
7173 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7175 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7177 * doc/sdccman.lyx: documented sfr16/sfr32,
7178 added example for using storage class with function pointers
7179 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7181 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7183 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7184 * device/lib/_itoa.c,
7185 * device/lib/_ltoa.c: optimized codesize
7186 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7187 but don't know how to suppress the double warning.
7188 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7189 * support/Util/SDCCerr.c,
7190 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7192 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7194 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7195 fixed old K&R prototypes
7196 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7197 * device/lib/_gptrget.c,
7198 * device/lib/_gptrgetc.c,
7199 * device/lib/_gptrput.c: changed versions for new memory indicator values,
7200 also new versions for small generic pointers and banked generic pointers
7201 * src/port.h: added const_name
7202 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7203 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7204 * src/SDCCcse.c (findPrevIc): check all associative operators
7205 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7206 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7207 * src/SDCCmem.c: updated comments,
7208 set far-space to 0 for pdata, results in optimized code
7209 * src/SDCCmem.h: added macro CONST_NAME
7210 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7211 moving the info into the highest bits, see also gptrget/gptrput
7212 * src/src.dsp: added sdcc.ico to project files
7213 * src/avr/gen.c (genCast): fixed bug 0x%d
7214 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7215 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7216 relation between ptr_type and DCL_TYPE,
7217 (genCast): fixed bug 0x%d
7218 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7219 (CODE)" for const_name
7220 * src/hc08/gen.c (genCast): fixed bug 0x%d
7221 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7222 (hc08_port): added "CONST (CODE)" for const_name
7223 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7224 (aopForRemat, adjustArithmeticResult): disconnected direct relation
7225 between ptr_type and DCL_TYPE,
7226 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7227 operand* and took AOP() inside function so sfr-ness can be checked,
7228 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7230 (genFunction, genEndFunction): optimized stack setup,
7231 (genMinus): optimized for literals with ending zeroes (in bytes),
7232 (genCast): fixed bug 0x%d
7233 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7234 (mcs51_port): added "CONST (CODE)" for const_name
7235 * src/mcs51/peeph.def: made rule 226 more generic
7236 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7237 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7238 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7239 * src/z80/main.c (z80_port): added NULL for const_name,
7240 (gbz80_port): added NULL for const_name
7241 * support/regression/tests/bug663539.c,
7242 * support/regression/tests/sfr16.c: new tests
7244 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7246 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7248 2005-06-24 Raphael Neider <rneider AT web.de>
7250 * device/lib/pic16/libdev/pic18f[68][567]20.c:
7252 * device/include/pic16/signal.h: added USBIF
7255 2005-06-24 Raphael Neider <rneider AT web.de>
7257 * device/lib/pic16/libdev/pic18f2455.c,
7258 device/include/pic16/pic18f2455.h: NEW
7259 * device/include/pic16/pic18fregs.h,
7260 device/lib/pic16/pics.all,
7261 src/pic16/device.c: added 18f2455
7262 * device/lib/pic16/libdev/pic18f[68][567]20.c,
7263 device/include/pic16/{pic18f[68][567].h,usart.h}:
7264 replaced MULTIPLE_USARTS define with more relaible
7265 compatibility sfrs (for USART access)
7267 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7269 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7270 and the output asm file line is printed on two lines.
7272 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7274 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7275 BGT, BLE, BHI, and BLS instructions
7276 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7278 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7279 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7281 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7283 2005-06-15 Raphael Neider <rneider AT web.de>
7285 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7286 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7287 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7288 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7289 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7291 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7293 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7294 Marcel Telka in bug #1215704
7296 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7298 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7299 located in shared memory bank.
7301 2005-05-31 Raphael Neider <rneider AT web.de>
7303 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7304 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7305 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7307 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7309 * device/lib/_strncpy.c: fixed the fix
7311 2005-05-26 Raphael Neider <rneider AT web.de>
7313 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7314 initializers with \0, bug #1208187
7315 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7316 intializers with \0, bug #1208187
7318 2005-05-26 Raphael Neider <rneider AT web.de>
7320 * src/pic16/glue.c (pic16_printIvalChar): fixed string
7321 initializers with \0, bug #1208187
7322 * src/pic16/main.c (_process_pragma): added sanity checks
7323 for stack position and size, emit warnings when appropriate
7325 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7327 * device/lib/_strncpy.c: fixed not filling with \0
7329 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7331 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7333 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7334 compound_statement),
7336 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7338 2005-05-24 Raphael Neider <rneider AT web.de>
7340 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7342 2005-05-24 Raphael Neider <rneider AT web.de>
7344 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7345 TRISE definitions, closes bug #1162453
7347 2005-05-22 Raphael Neider <rneider AT web.de>
7349 * src/pic16/main.c (_process_pragma): check for missing
7350 arguments to pragmas code and udata
7351 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7352 consistency fixes to match other headers (thanks to Jim Paris)
7353 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7355 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7357 * src/SDCCicode.c (isOperandEqual): fixed missing ;
7359 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7361 * support/regression/tests/bug1198642.c: new test
7362 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7363 * src/SDCCcse.c (findPrevIc): added comment, please have a look
7364 * support/scripts/resource.h,
7365 * support/scripts/resource.rc,
7366 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7367 * support/scripts/sdcc.ico: added 32x32 icon
7369 2005-05-18 Raphael Neider <rneider AT web.de>
7371 * device/lib/pic16/libdev/pic18f*.c,
7372 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7373 keywords to "__sfr" and "__at (X)"
7374 * device/include/pic16/pic18fregs.h: added pic18f4520
7375 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7376 #1203088 (MPLAB compatibility)
7378 2005-05-17 Raphael Neider <rneider AT web.de>
7380 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7381 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7382 * device/lib/pic16/pics.all: added new devices
7383 * src/pic16/device.c: added support for pic18f4520
7385 2005-05-16 Raphael Neider <rneider AT web.de>
7386 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7387 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7388 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7389 convenience function for bit access
7391 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7393 * device/lib/printf_large.c: fixed bug 1193299
7394 * support/regression/tests/bug1057979.c: added test %3.3s
7396 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7398 * device/include/mcs51/8051.h,
7399 * device/include/mcs51/8052.h: made parseable with lint
7400 * device/include/mcs51/lint.h: added include file for (sp)lint
7401 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7402 * doc/cdbfileformat.lyx,
7403 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7405 2005-05-14 Raphael Neider <rneider AT web.de>
7407 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7408 * device/lib/pic16/libc/stdlib/itoa.c (new)
7409 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7410 * device/lib/pic16/libio/Makefile: exclude subdir according to
7411 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7412 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7413 * src/pic16/gen.c (genFunction): prevent annoying warning
7414 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7416 * support/cpp2/cppmain.c (cpp_output_string): new
7417 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7420 2005-05-13 Borut Razem <borut.razem AT siol.net>
7422 * src/SDCCmain.c (linkEdit): fixed bug 1195202
7424 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7426 * .version: changed to version 2.5.1; back to bleeding edge development
7428 2005-05-11 Borut Razem <borut.razem AT siol.net>
7430 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7431 generate PDF version 1.3 documents
7433 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7435 * .version: changed to version 2.5.0
7437 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7439 * doc/sdccman.lyx: updated weblinks, index and smaller updates
7441 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7443 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7444 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7445 well as many smaller updates.
7446 * .version: changed to version 2.5.0-pre1
7448 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7450 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7452 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7454 * support/regression/tests/bug1185672.c: added
7455 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7457 * src/mcs51/gen.c (genCall): added comments, made it look safer
7458 * src/mcs51/gen.c (genEndFunction): simplified
7460 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7462 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7464 2005-04-14 Borut Razem <borut.razem AT siol.net>
7466 * fixed bug 1045046 - SIGSEGV with really simple code?:
7467 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7468 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7470 2005-04-14 Borut Razem <borut.razem AT siol.net>
7472 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7473 src/pic16/device.h: temporarily disabled experimental #inline pragma
7476 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7478 * device/include/z80/stdio.h,
7479 * device/include/z80/string.h: removed these highly incomplete files so
7480 SDCC can use the default ones in device/include/
7482 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7484 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7486 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7489 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7491 * device/include/malloc.h: removed redundant __reentrant prototypes
7492 * device/lib/_mullong.c: added working xstack variant in asm (C version
7493 doesn't pass regression tests)
7494 * device/lib/bpx.c: used __data and made bpx char for mcs51
7495 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7496 (createFunction): fixed bug with xstackPtr
7497 * src/SDCCcse.c: corrected comments
7498 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7499 (killDeadCode, eBBlockFromiCode): removed unused code
7500 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7502 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7503 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7504 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7505 (genModOneByte): fixed warning in MSVC
7506 * src/mcs51/main.c (): added comments
7507 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7509 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7511 * src/SDCCmain.c (linkEdit): oops, changed one line too many
7513 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7515 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7517 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7519 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7520 characters arrays of larger size than the declared one.
7522 2005-04-10 Borut Razem <borut.razem AT siol.net>
7524 * src/pic/gen.c (genInline),
7525 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7526 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7527 (findNextInstruction), (findPrevInstruction),
7528 (findInstructionUsingLabel),
7529 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7530 * src/pic/pcode.c (findLabel): added missing '\n'
7531 * src/src.dsp: added SDCCdwarf2.c to the project
7533 2005-04-09 Borut Razem <borut.razem AT siol.net>
7535 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7537 2005-04-08 Raphael Neider <rneider AT web.de>
7539 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7540 into the chain after a given one) and mergeDefmapSymbols (combine
7541 defmap entries for each symbol per pcode)
7542 * (createDefmap): have defmap entries merged in the end
7543 * (defmapReplaceSymRef): split defmap entries covering two accesses to
7544 a symbol before replacing one access type's symbol, merge symbols in
7545 the end (replacement symbol might already have an entry)
7546 * (assignValnums): keep reference to written WREG intact
7548 2005-04-08 Raphael Neider <rneider AT web.de>
7550 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7553 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7555 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7558 2005-04-07 Raphael Neider <rneider AT web.de>
7560 * device/include/pic16/usart.h: added compatibility defines for
7561 devices with more than one USART
7562 * device/include/pic16/pic18f[68][567]20.h: activated above defines
7564 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7566 * device/lib/Makefile.in: updated for port specific include
7568 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7570 * support/regression/ports/mcs51/spec.mk: added mcs51 include
7572 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7574 * device/include/8051.h,
7575 * device/include/8052.h,
7576 * device/include/at89S8252.h,
7577 * device/include/at89c55.h,
7578 * device/include/at89x051.h,
7579 * device/include/at89x51.h,
7580 * device/include/at89x52.h,
7581 * device/include/mcs51reg.h,
7582 * device/include/reg51.h,
7583 * device/include/reg764.h,
7584 * device/include/regc515c.h,
7585 * device/include/sab80515.h: (re)moved these 12 files
7586 * device/include/mcs51/8051.h,
7587 * device/include/mcs51/8052.h,
7588 * device/include/mcs51/at89S8252.h,
7589 * device/include/mcs51/at89c55.h,
7590 * device/include/mcs51/at89x051.h,
7591 * device/include/mcs51/at89x51.h,
7592 * device/include/mcs51/at89x52.h,
7593 * device/include/mcs51/mcs51reg.h,
7594 * device/include/mcs51/reg51.h,
7595 * device/include/mcs51/reg764.h,
7596 * device/include/mcs51/regc515c.h,
7597 * device/include/mcs51/sab80515.h: and added them here
7599 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7601 * device/include/stdarg.h: changed SDCC specific keywords to double
7603 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7605 * device/include/hc08/mc68hc908gp32.h,
7606 * device/include/hc08/mc68hc908jb8.h,
7607 * device/include/hc08/mc68hc908jkjl.h,
7608 * device/include/hc08/mc68hc908qy.h: fixed comments
7609 * device/include/mcs51/README: updated
7610 * device/include/mcs51/c8051f120.h: added PINRSF
7611 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7612 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7613 amidst code. Also inline is not supported.
7615 2005-04-06 Raphael Neider <rneider AT web.de>
7617 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7618 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7619 callers stack/frame pointers
7621 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7623 * device/include/pic16/usart.h: added, missing in previous commit,
7624 * device/include/pic16/adc.h: fixed typo,
7625 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7627 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7629 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7630 uninitialized because a bug appears with gplink
7631 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7632 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7633 complains for unrecognised option
7635 2005-04-05 Raphael Neider <rneider AT web.de>
7637 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7638 structs as well (using memcpy)
7639 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7640 on ISRs (GOTO has no label)
7641 * src/pic16/device.h: added OF_OPTIMIZE_DF
7642 * src/pic16/main.c: added compiler switch --optimize-df to enable the
7643 new data flow analysis/optimization
7644 * src/pic16/pcode.c: added (prototypes for and implementation of)
7645 dataflow analysis functions, fixed pCodeInstructions' inCond and
7646 outCond values, made RCALL a branch instruction
7647 * (pic16_unlinkpCode): keep C line if possible
7648 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7649 C line moved if possible
7650 * (pic16_getRegFrompCodeOp): NEW, improved version of...
7651 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7652 to use new pic16_getRegFrompCodeOp (works for more SFRs)
7653 * (pic16_BuildFlow): fixed skip instructions with label (did not start
7655 * (pic16_getJumptabpCode): NEW, needed in...
7656 * (LinkFlow): fixed handling of jumptables, calls and conditional
7658 * (pic16_InsertCommentAfter): NEW
7659 * (pic16_pCodeReplace): made verbose and flow preserving
7660 * (AnalyzeFlow): added call to data flow analysis
7661 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7662 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7663 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7665 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7667 * src/SDCCast.c (decorateType): fixed bug #1105626
7669 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7671 * device/include/asm/pic16/features.h,
7672 * pic18f*.h headers,
7673 * device/include/pic16/adc.h,
7674 * device/include/pic16/delay.h,
7675 * device/include/pic16/i2c.h,
7676 * device/include/pic16/malloc.h,
7677 * device/include/pic16/stdio.h,
7678 * device/include/pic16/stdlib.h,
7679 * device/include/pic16/string.h,
7680 * device/lib/pic16/libc/stdio/printf_tiny.c,
7681 * device/lib/pic16/libc/stdio/printf_small.c,
7682 * device/lib/pic16/libc/stdio/strmgpsim.c,
7683 * device/lib/pic16/libc/stdio/strmmssp.c,
7684 * device/lib/pic16/libc/stdio/strmusart.c,
7685 * device/lib/pic16/libc/stdio/vfprintf.c,
7686 * device/lib/pic16/libc/stdlib/ltoa.c,
7687 * device/lib/pic16/libc/stdlib/putchar.c,
7688 * device/lib/pic16/libc/stdlib/x_ftoa.c,
7689 * device/lib/pic16/libc/stdlib/memchrpgm.c,
7690 * device/lib/pic16/libc/stdlib/memchrram.c,
7691 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7692 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7693 * device/lib/pic16/libio/adc/adcbusy.c,
7694 * device/lib/pic16/libio/adc/adcread.c,
7695 * device/lib/pic16/libio/adc/adcsetch.c,
7696 * device/lib/pic16/libio/usart/ubaud.c,
7697 * device/lib/pic16/libio/usart/ubusy.c,
7698 * device/lib/pic16/libio/usart/udrdy.c,
7699 * device/lib/pic16/libio/usart/uopen.c,
7700 * device/lib/pic16/libio/usart/uputc.c,
7701 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7702 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7703 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
7704 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
7705 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
7706 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
7707 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
7708 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
7709 specific keywords to double underlined form,
7710 * device/lib/pic16/libc/Makefile.rules,
7711 * device/lib/pic16/libsdcc/Makefile.rules,
7712 * device/lib/pic16/libm/Makefile,
7713 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
7714 to compile with C standard set in Makefile.common
7715 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
7716 rand.c and crc.c in compilation process,
7717 * device/lib/pic16/libsdcc/int/divuint.c,
7718 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
7719 `c' from signed to unsigned,
7720 * device/lib/pic16/startup/crt0.c,
7721 * device/lib/pic16/startup/crt0i.c,
7722 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
7723 keywords to double underlined form, bug fixes in _do_cinit function
7724 which prevented the correct initialization of the .idata segment,
7725 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
7726 core to enter a infinite loop
7727 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
7729 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7731 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
7733 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7735 * device/include/Makefile.in: add support for hc08 subdirectory
7736 * device/include/hc08/: new subdirectory
7737 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
7738 Lucas Loizaga, thanks!
7739 * device/include/hc08/mc68hc908qy.h,
7740 * device/include/hc08/mc68hc908gp32.h,
7741 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
7742 their own directory. Changed internal macro names to use the compiler
7743 reserved namespace. Changed SDCC specific keywords to double
7745 * device/include/math.h,
7746 * device/include/malloc.h,
7747 * device/include/stdarg.h,
7748 * device/include/stdbool.h
7749 * device/include/string.h,
7750 * device/include/tinibios.h,
7751 * device/include/ds400rom.h,
7752 * device/include/8051.h,
7753 * device/include/8052.h,
7754 * device/include/80c51xa.h,
7755 * device/include/at89c55.h,
7756 * device/include/at89S8252.h,
7757 * device/include/at89x51.h,
7758 * device/include/at89x52.h,
7759 * device/include/ds80c390.h,
7760 * device/include/reg764.h,
7761 * device/include/regc515c.h,
7762 * device/include/sab80515.h,
7763 * device/include/mcs51/c8051f000.h,
7764 * device/include/mcs51/c8051f018.h,
7765 * device/include/mcs51/c8051f020.h,
7766 * device/include/mcs51/c8051f040.h,
7767 * device/include/mcs51/c8051f060.h,
7768 * device/include/mcs51/c8051f120.h,
7769 * device/include/mcs51/c8051f300.h,
7770 * device/include/mcs51/c8051f310.h,
7771 * device/include/mcs51/c8051f320.h,
7772 * device/include/mcs51/c8051f330.h,
7773 * device/include/mcs51/c8051f350.h,
7774 * device/include/z180.h: Changed SDCC specific keywords to double
7777 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
7779 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
7781 * (pic16_assignConfigWordValue): disable testing of configuration
7782 register value with config mask,
7783 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
7784 function with port->fun_prefix,
7785 * (genFunction): when generating a naked interrupt function never
7786 create an absolute segment placed in interrupt vector address, place
7787 the actual interrupt function at IVA instead, when an interrupt
7788 function is generated with unspecified interrupt then do not create
7789 the absolute section,
7790 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
7791 code for generating a call to generic pointer get/put function with
7792 a call to function pic16_callGenericPointer(),
7793 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
7794 the call to the generic pointer get/put functions with prefixing the
7795 function name with port->fun_prefix,
7796 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
7797 * src/pic16/main.c (_process_pragma): prefix function with
7799 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
7800 calling assembler, old 18Fxxxx macro is deprecated,
7801 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
7802 PC_ASMDIR in while condition,
7803 * (findInstruction): add PC_ASMDIR in while condition,
7804 * (buildCallTree): prefix main with port->fun_prefix,
7805 * (pic16_pCode2str): fixed bug that didn't emit the memory access
7806 identifier for variable with banked access in instructions BTFSS,
7807 BTFSC, BCF, BSF, BTG
7808 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
7809 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
7810 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
7811 perform optimization when enviroment variable NO_REG_OPT is set,
7812 * (insideLRBlock): NEW, return 1 if register is inside an
7813 INF_LOCALREGS block,
7814 * (RemoveRegFromLRBlock): remove a register that is completely
7815 eliminated by register optimization, but it is still left in local
7816 register store/restore in/from stack block,
7817 * (Remove2pcodes): after removing register, check to see if it
7818 should be removed from local register store/restore in/from stack
7820 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
7821 DUMMY_READ_VOLATILE,
7823 * device/include/pic16/adc.h: minor prototype modifications and
7825 * device/include/pic16/malloc.h: added GPL notice various
7827 * device/include/pic16/stdint.h: NEW, standard header for ints
7828 * device/include/pic16/delay.h: NEW, header for delay functions,
7829 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
7831 * device/include/pic16/signal.h: NEW, header providing helper macros
7832 for implementing signal handlers,
7833 * device/include/pic16/stdio.h: added prototypes for functions,
7834 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
7835 prototypes for stdin and stdout, added macro PUTCHAR to
7836 automatically implement putchar function prototype,
7837 * device/include/pic16/usart.h: modified and updated USART library,
7838 * device/lib/pic16/libio/adc/,
7839 * device/lib/pic16/libio/i2c: some modifications to improve library
7841 * device/lib/pic16/libc/stdio/: modifications for the new printf*
7842 family of functions,
7843 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
7844 family of functions and other sources,
7845 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
7846 of the PIC18Fxx[28] devices,
7847 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
7848 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
7849 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
7850 _do_cinit function, because the previous failed when local variables
7851 where not placed in the same memory bank,
7852 * device/lib/pic16/libsdcc/char/: various modifications to improve
7853 library performance,
7854 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
7855 information on the new functions of the c library and more...
7857 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7859 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
7861 2005-03-26 Raphael Neider <rneider AT web.de>
7863 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
7864 if condition == CARRY)
7865 * (genCmp): adapted to new genSkipc semantics
7866 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
7867 on rIfx (genCmp was broken)
7869 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7871 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
7872 * src/z80/main.c (_keywords[]),
7873 * src/SDCCglobal.h (struct options),
7875 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
7876 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
7877 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
7878 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
7879 always available in leading double underscore form. The C99 support is
7880 mostly missing, but it's a start.
7881 * support/regression/tests/bug-227710.c: fixed nonconforming use of
7882 reserved identifier "__data".
7884 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
7886 * src/mcs51/peeph.def: fixed bug 1170013
7888 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
7890 * device/include/mcs51reg.h: fixed bug 842007
7892 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7894 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
7897 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7899 * src/port.h (struct PORT),
7900 * src/avr/ralloc.c (avr_assignRegisters),
7902 * src/ds390/ralloc.c (ds390_assignRegisters),
7904 * src/hc08/ralloc.c (hc08_assignRegisters),
7906 * src/mcs51/ralloc.c (mcs51_assignRegisters),
7908 * src/pic/ralloc.c (pic14_assignRegisters),
7910 * src/pic16/ralloc.c (pic16_assignRegisters),
7912 * src/xa51/ralloc.c (xa51_assignRegisters),
7914 * src/z80/ralloc.c (z80_assignRegisters),
7916 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
7917 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
7919 * src/SDCCdflow.c (computeDataFlow),
7921 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
7923 * src/SDCCcflow.c (*),
7925 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
7926 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
7927 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
7928 immedDom() returning wrong block; probably fixes bug #1160833)
7930 2005-03-20 Borut Razem <borut.razem AT siol.net>
7932 * support/scripts/inc2h.pl: WIN32 port
7934 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
7936 * device/lib/makefile.in: added abs.c and labs.c
7938 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
7940 * device/include/stdint.h: added
7941 * device/lib/abs.c: added
7942 * device/lib/labs.c: added
7943 * device/include/stdlib.h: added abs() and labs() prototypes
7944 * device/lib/libsdcc.lib: added abs and labs
7945 * device/include/float.h,
7946 * device/lib/_fsmul.c,
7947 * device/lib/printf_fast.c,
7948 * device/lib/printf_tiny.c: updated comments
7950 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7952 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
7955 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7957 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
7958 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
7960 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
7962 * device/lib/printf_large.c: removed inline assembly for portability and
7963 readability. Use printf_fast if speed or size are more important.
7964 * src/pic16/gen.c: removed conditions around use of DEBUGpc
7965 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
7967 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
7969 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
7970 prevent compiler warning
7972 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
7974 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
7975 moved to level 0 and declared as static. Also they are explicit
7976 placed in access bank. This was necessery because some times they
7977 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
7978 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
7979 optimizations. Currently only compare to unsigned char is implemented,
7980 * src/pic16/gen.c: added fReturnIdx array,
7981 * (struct resolvedIfx) is moved to gen.h and made public,
7982 * (struct _G): added sregsAlloc and sregsAllocSet fields,
7983 * (aopForSym): added an optimization to directly store in stack of
7984 the operand of a SEND iCode,
7985 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
7986 but as registers instead (AOP_REG) using the fReturnIdx array,
7987 * (pic16_freeAsmop): remove the freed register from the
7988 _G.sregsAlloc field,
7989 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
7990 a compare of 'WREG',
7991 * (pic16_popGetTempRegCond): changed function prototype, now
7992 function takes also a bitVector argument v which holds the current
7993 set of registers that are allocated for stack access by aopForSym,
7994 registers allocated in aopForSym for accessing stack symbols are not
7995 any more part of the functions usedRegs field,
7996 * (genCall): some times aopOp is called for a stack variable to be
7997 send, aopForSym might perform the push, if this is true make sure
7998 that genCall doesn't push the variable twice by testing _G.resDirect,
7999 * (genFunction): changed testing for unspecified interrupt number
8000 from 256 to INTNO_UNSPEC,
8001 * modified selection scheme of frame pointer generation. Previously
8002 if function did use local registers a frame pointer was generated,
8003 now a frame pointer is generated only if function has arguments
8004 (that need PLUSW2 register access), or has stack arguments, or the
8005 compiler is not instructed to omit the frame pointer,
8006 * (genEndFunction): before restoring local registers that were saved
8007 in the function preamble, also restore the registers that *might*
8008 have been allocated for stack access,
8009 * (genRet): removed some old comments,
8010 * (genCmp, the active (RN's) version): added a call to the
8011 pic16_genCmp_special function to perform the compare with a more
8012 robust and optimized way,
8013 * (genInline): a feature has been added in inline code generation,
8014 which allows a wildcard variable substitution when writing inline
8015 assembly. Code is incomplete and experimental therefore undocumented,
8016 * (genCast): changed order of aopOp for result and right to allow
8017 aopForSym to directly load the result if possible,
8018 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8019 perform an optimized compare on some selected special occasions,
8020 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8021 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8022 generate an IVT any more,
8023 * src/pic16/main.c (pic16_optionsTable): added command line option
8025 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8026 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8028 * src/pic16/NOTES: Raphael Neider added in list of active developers
8029 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8030 jumptable_end to prevent bug #,
8031 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8032 inCond and outCond fields,
8033 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8034 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8035 turn off register spilling,
8036 * (packRegsForOneUse): synced with other ports' versions although it
8037 is not used currently,
8038 * (pic16_packRegisters): added an optimization while reading
8039 structure bitfields, some registers may be saved (malloc code is
8040 decreased by 80 bytes)
8042 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8044 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8045 left is a bitfield, if yes, then don't optimize assignment. Perhaps
8046 this can be optimized more?
8048 2005-03-10 Raphael Neider <rneider AT web.de>
8050 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8051 genNearPointerGet): (hopefully) fixed access to bitfields via
8052 pointers (p->bitN = x; and x = p->bitN; failed)
8054 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8056 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8058 2005-03-09 Raphael Neider <rneider AT web.de>
8060 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8062 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8064 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8065 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8066 (regTypeNum): set REG_BIT type if necessary
8067 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8068 * support/regression/tests/critical.c: check bug 1144613
8070 2005-03-02 Raphael Neider <rneider AT web.de>
8072 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8074 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8076 * src/avr/ralloc.c (serialRegAssign),
8077 * src/ds390/ralloc.c (serialRegAssign),
8078 * src/hc08/ralloc.c (serialRegAssign),
8079 * src/mcs51/ralloc.c (serialRegAssign),
8080 * src/pic/ralloc.c (serialRegAssign),
8081 * src/pic16/ralloc.c (serialRegAssign),
8082 * src/xa51/ralloc.c (serialRegAssign),
8083 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8085 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8087 * src/SDCCast.c (decorateType): fixed bug 1124787
8089 2005-02-20 Hubert Sack <sack AT digiplan.de>
8090 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8092 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8095 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8097 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8098 to keep the correct label reference count when adding/removing references
8099 to labels. A peephole file using this is appended to patch #1144962.
8101 2005-02-14 Raphael Neider <rneider AT web.de>
8103 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8104 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8105 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8106 retrievals of result operand's value on assignment
8108 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8110 * device/include/pic16/string.h: modified prototype for memccpy()
8111 to memccpy(void *, void *, char, size_t)
8112 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8113 check whether to omit frame pointer or not,
8114 * (genInline): convert all occurences of "\n" to LF in inline
8115 assembler blocks, this helps formatting the inline text,
8116 * (pic16_loadFSR0): modified prototype,
8117 * (genNearPointerGet, genNearPointerSet): reorganization of code,
8118 removed some 8051 legacy code,
8119 * (genPackBits): enabled handling bitfields exceeding one byte in size,
8120 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8121 before allocating temporary registers in functions,
8123 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8125 * support/regression/tests/bitvars.c: corrected the "fix"
8127 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8129 * support/regression/tests/bitvars.c,
8130 * support/regression/tests/bitwise.c,
8131 * support/regression/tests/rotate.c: "fixed" problems on Alpha
8133 2005-02-10 Raphael Neider <rneider AT web.de>
8135 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8136 different size for Alpha
8137 * src/pic16/gen.c (genCmpEq) : improved compare with 0
8139 2005-02-09 Raphael Neider <rneider AT web.de>
8141 * src/SDCC.lex(doPragma) : save and restore warning options as well
8142 (also added new stack plus clone- and copyAndFreeSDCCERRG())
8143 * have #pragma less_pedantic set the errorlevel to WARNING
8145 * (cloneOptimize) : fixed wrong malloc's size
8146 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8147 facilitate correct handling of #pragma (save|restore)
8149 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8151 * src/mcs51/gen.c: removed non-standard C nameless struct/union
8153 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8155 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8157 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8159 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8161 2005-02-02 Raphael Neider <rneider AT web.de>
8163 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8164 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8165 * (pic16_storeForReturn): fixed to allow returning function pointers
8166 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8167 * device/include/pic16/{stddef.h,stdbool.h}: added
8169 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8171 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8173 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8175 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8176 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8177 appeared to be required
8179 2005-01-31 Borut Razem <borut.razem AT siol.net>
8181 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8182 include/mcs51 and include/z80 directories to the package
8184 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8186 * src/hc08/gen.c (genFunction): fixed bug #1112752
8188 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8190 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8192 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8194 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8196 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8198 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8200 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8202 * device/include/c8051fxxx.h: removed these 6 files
8203 * device/include/mcs51/c8051fxxx.h: added these 11 new files
8205 2005-01-26 Raphael Neider <rneider AT web.de>
8207 * src/pic16/gen.c (genAssign): fixed assignment from longs
8208 in codespace (were cut to three bytes)
8209 * (genDummyRead): implemented (except for CODESPACE...),
8211 * src/pic16/glue.c (emitStatistics): beautified
8212 * device/lib/pic16/libm/Makefile: added include path
8214 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8216 * src/z80/gen.c (aopPut): fixed bug #1103902
8218 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8220 * device/lib/expf.c: fixed bug #1095792
8222 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8224 * device/lib/pic16/libm: added Math library sources
8226 2005-01-24 Raphael Neider <rneider AT web.de>
8228 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8229 to enable upcast to pCodeOpReg2 (there is no type tag to
8230 differenciate the two and pic16_popGet2p cast into PCOR2)
8231 * src/pic16/main.c (_process_pragma): fixed another malloc bug
8232 (sizeof(sectNames) changed to sizeof(sectName))
8233 Both patches fix segfaults under MinGW.
8235 2005-01-23 Raphael Neider <rneider AT web.de>
8237 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8238 Safe_[mc]?alloc()'ed variables
8239 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8240 of (byte sized) temporaries (assign them to WREG for now)
8241 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8242 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8243 this might fix SIGSEGVs on MinGW...
8244 * src/SDCCopt.c (killDeadCode): restored original behaviour
8245 (volatile operands might get thrown away though)
8247 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8249 * src/pic16/gen.c: fixed bug #1106975,
8250 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8251 pointer update, INTCON is saved, global interrupts are disabled and
8252 restored after updateing TOS.
8253 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8254 * added function attribute 'shadowregs' to take advantage of shadow
8256 * added function attribute 'wparam' as an alternative to the wparam
8258 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8259 user declares a non-ISR function as 'shadowregs',
8260 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8262 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8264 * .version: bumped version number to 2.4.8
8265 * device/lib/pic16/pics.all: list of PIC18F devices supported by
8267 * device/lib/pic16/libio/i2c/: I2C module support library,
8268 * device/include/pic16/i2c.h: I2C support library header,
8269 * device/lib/pic16/libc/stdio/: standard IO support sources,
8270 * (printf_small.c): printf_small() source, supports float print,
8271 * (printf_tiny.c): printf_tiny() source, does not support floats,
8272 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8273 enable global optimizations for entire library source, other
8274 Makefiles in the source tree are also modified to reflect this,
8275 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8277 * doc/sdccman.lyx: updated to reflect new changes,
8278 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8279 sym->onStack if-case,
8280 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8281 sbit, idata, _idata, xdata, _xdata,
8282 * added pragma library, to link an external library, (see doc),
8283 * removed command line options, --pomit-config-words, --pomit-ivt,
8284 --pleave-reset-vector,
8285 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8286 when calling assembler to reflect memory model used, also define
8287 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8288 reflect stack model used,
8289 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8290 on stack return NULL,
8292 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8294 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8295 of the operands is volatile. Fixes #1020220
8297 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8299 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8300 * (OptimizeRegUsage): make sure that there is really no other flow where
8301 the first pCode is used
8303 2005-01-22 Raphael Neider <rneider AT web.de>
8305 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8306 to fix #1106967 (pCode->seq are not set up correctly)
8308 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8310 * src/SDCCglue.c (glue): make sure code area is declared before the
8311 static initialization area.
8313 2005-01-21 Raphael Neider <rneider AT web.de>
8315 * device/lib/Makefile.in: fixed test for pic16 install dir
8316 * device/lib/pic16/*/Makefile*: modified compile flags to enable
8318 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8319 added --optimize-goto compiler switch and pragma wparam documentation
8320 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8321 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8322 and PRODH closing bug #1071770 (peephole optimizer)
8324 2005-01-19 Raphael Neider <rneider AT web.de>
8326 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8327 cmdLine buffers (used when calling sdcpp...) are large enough
8328 (MAX_PATH=256 truncates arguments leading to system halts when
8330 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8331 * (genUminus): rewritten to for efficiency
8332 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8333 used uninitialized in some cases)
8334 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8335 copy the third byte from the int -- now assumes 0x80 (data memory)
8336 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8337 operands (genAddLit expects the iCode's operands to swapped as
8338 well), fixed leftover bytes (crashed for short left operands)
8339 * (pic16_genMinusDec): performance improvements, removed false
8341 * (pic16_genMinus): fixed to cope with differently sized operands
8342 * src/pic16/glue.c (pic16_glue): added new banksel optimization
8344 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8345 * src/pic16/graph.[ch]: implementation of directed graphs, used by
8346 new banksel optimization
8347 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8348 analysis for temporary registers (segfaults...)
8349 * src/pic16/peeph.def: added rule
8351 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8353 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8354 which converts a float number to its ASCII representation
8355 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8356 functions to convert the fractional and integer part of a float to ASCII,
8357 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8358 realloc.c): added _MALLOC_SPEC to explicit place variables in data
8360 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8362 * device/include/pic16/adc.h: added GPL info,
8363 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8364 a pCodeOp as tested operand,
8365 * (genNearPointerGet): optimized bit testing, does not use
8366 intermediate register for bit value, test directly instead with
8367 BTFSS, BTFSC, works only for single bits,
8368 * (genpic16Code): dump the name of the iCode in the asm,
8369 * src/pic16/ralloc.c (decodeOp): removed static declaration and
8370 renamed to pic16_decodeOp,
8371 * (serialRegAssign): do not allocate a temporary register for iCode
8372 sequences that test a single bit for 1/0
8374 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8376 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8377 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8378 access stack and frame pointers. They are initially assigned to
8379 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8380 accessing SFRs. Updated all occurences of modification of stack or
8381 frame pointer in gen.c and pcode.c,
8382 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8383 assigning of a literal value to pointers,
8384 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8385 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8388 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8390 * doc/sdccman.lyx: update documentation about stack pragma, added
8391 some info for stack memory models
8393 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8395 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8397 2005-01-08 Raphael Neider <rneider AT web.de>
8399 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8400 udata sections to fix bug #1097823
8402 2005-01-05 Raphael Neider <rneider AT web.de>
8404 * src/pic16/gen.c (genGenericShift): added handling of differently
8405 sized left operand and result
8407 2005-01-04 Raphael Neider <rneider AT web.de>
8409 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8410 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8411 to hold the condition bit)
8412 * added new version of genCmp (old code available via #define)
8413 * added new version of genShiftLeft/genShiftRight in a generic
8414 way, now supports shifting by negative values
8415 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8416 shiftCount (expected by genGenericShift)
8417 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8418 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8420 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8421 is an invalid literal too...)
8423 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8425 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8426 from Raphael Neider,
8427 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8428 for 8-bit literals. This fixes some literal operands which are sign
8429 extended to 16-bits ints when instruction needs only 8-bits.
8431 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8433 * device/lib/logf.c: added mcs51 assembly version
8434 * device/lib/expf.c: added mcs51 assembly version
8435 * device/lib/_logexpf.c: new shared asm code for expf and logf
8436 * device/include/math.h: add defines for assembly math library
8437 * device/lib/Makefile.in: build new _logexpf.c
8438 * device/lib/libfloat.lib: use new _logexpf.c
8440 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8443 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8444 device types which have less than 0x7f registers.
8446 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8448 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8450 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8452 * device/lib/printf_fast.c: only build on supported arch.
8453 * device/lib/printf_tiny.c: only build on supported arch.
8454 * device/lib/printf_fast_f.c: only build if asm float lib
8455 * device/lib/_fsget1arg.c: only build if asm float lib
8456 * device/lib/_fsget2args.c: only build if asm float lib
8457 * device/lib/_fsnormalize.c: only build if asm float lib
8458 * device/lib/_fsreturnval.c: only build if asm float lib
8459 * device/lib/_fsrshift.c: only build if asm float lib
8460 * device/lib/_fsswapargs.c: only build if asm float lib
8461 * device/include/stdio.h: don't provide print_fast,
8462 print_fast_f, print_tiny prototypes if --xstack used
8464 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8466 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8467 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8470 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8472 * device/lib/printf_fast_f.c: same as printf_fast, but
8473 with floating point enabled
8474 * device/lib/printf_fast.c: minor tweaks
8475 * device/include/stdio.h: add printf_fast_f
8477 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8479 * src/SDCCmain.c: make --float-reent default for mcs51
8480 * device/lib/_fsadd.c: added mcs51 assembly version
8481 * device/lib/_fssub.c: added mcs51 assembly version
8482 * device/lib/_fsmul.c: added mcs51 assembly version
8483 * device/lib/_fsdiv.c: added mcs51 assembly version
8484 * device/lib/_fseq.c: added mcs51 assembly version
8485 * device/lib/_fsneq.c: added mcs51 assembly version
8486 * device/lib/_fsgt.c: added mcs51 assembly version
8487 * device/lib/_fslt.c: added mcs51 assembly version
8488 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8489 * device/lib/Makefile.in: add _fscmp to build
8490 * device/lib/libfloat.lib: add _fscmp to build
8492 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8494 * device/lib/_fs2slong.c: added mcs51 assembly version
8495 * device/lib/_fs2sint.c: added mcs51 assembly version
8496 * device/lib/_fs2schar.c: added mcs51 assembly version
8497 * device/lib/_fs2ulong.c: added mcs51 assembly version
8498 * device/lib/_fs2uint.c: added mcs51 assembly version
8499 * device/lib/_fs2uchar.c: added mcs51 assembly version
8500 * device/lib/_slong2fs.c: added mcs51 assembly version
8501 * device/lib/_sint2fs.c: added mcs51 assembly version
8502 * device/lib/_schar2fs.c: added mcs51 assembly version
8503 * device/lib/_ulong2fs.c: added mcs51 assembly version
8504 * device/lib/_uint2fs.c: added mcs51 assembly version
8505 * device/lib/_uchar2fs.c: added mcs51 assembly version
8506 * device/include/float.h: added #define to select asm vs c
8508 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8510 * device/lib/printf_fast.c: improvements to float output
8511 * device/include/float.h: add defines for assembly float library
8512 * device/lib/_fsget1arg.c: receive 1 float arg
8513 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8514 * device/lib/_fsnormalize.c: normalize a float
8515 * device/lib/_fsreturnval.c: return float, various helper routines
8516 * device/lib/_fsrshift.c: right shift a float's mantissa
8517 * device/lib/_fsswapargs.c: swap 2 floats
8518 * device/lib/Makefile.in: build these 6 new files for mcs51
8519 * device/lib/libfloat.lib: add these 6 files to the library
8521 2004-12-26 Borut Razem <borut.razem AT siol.net>
8523 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8526 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8528 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8529 and fully reentrant and register bank neutral.
8530 * device/lib/printf_fast.c: added float (not enabled by default),
8531 added compact/slower integer (also not enabled by default),
8532 improved size/speed of fast integer code, other minor changes
8533 * device/include/stdio.h, device/lib/Makefile.in,
8534 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8536 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8538 * src/pic16/pcode.c: declaring variables other than at the start of a
8539 block is not supported in C by VC6.
8541 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8543 * applied a previous patch from Raphael Neider that wasn't included
8544 in the previous commits, which fixes infinite loops within jumptable
8546 * made some fixes that previous patches introduced
8548 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8550 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8551 that fixes an issue with AOP_PCODE asmop's offset,
8552 * (pic16_popCopyReg): update instance field too,
8553 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8554 function of pic port,
8555 * (genCmp, genAnd, genAssign),
8556 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8558 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8560 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8561 variables initial values to idata section,
8562 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8563 variables in some functions. This utilizes parmBytes field of iCode
8564 structure to hold the offset of the variable in stack. (might be
8565 able to use the stack field too?)
8566 * applied patch from Raphael Neider # ### , # ###
8567 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8568 variable initial values in idata section,
8569 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8570 for static variables with initial value
8571 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8572 applied fix in while loop from Raphael Neider.
8574 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8576 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8577 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8578 * src/ds390/ralloc.c (serialRegAssign): spill bits
8579 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8580 * support/Util/SDCCerr.c,
8581 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8582 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8583 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8585 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8587 * device/include/sdcc-lib.h: inserted LGPL, added includes
8588 asm/ds390/features.h and asm/mcs51/features.h
8589 * device/include/asm/default/features.h,
8590 * device/include/asm/gbz80/features.h,
8591 * device/include/asm/z80/features.h: added empty _AUTOMEM
8593 * device/include/asm/ds390/features.h,
8594 * device/include/asm/mcs51/features.h: added files with defines for
8595 _AUTOMEM and _STATMEM indicating automatic and static storage class
8596 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8597 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8598 * src/SDCCicode.c (geniCodeCast),
8599 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8600 * src/SDCCloop.c (loopInduction): removed unused variable lr
8601 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8602 to convertToFcall to include char modulo (RFE 1065037), added check
8603 if left operand is unsigned and use abs of literal value
8604 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8605 as it doesn't work after conversion from peephole.def to peephole.rul
8606 * src/mcs51/gen.c (toBoolean): added check for size,
8607 (genModOneByte): optimized code for signed char modulo a literal
8608 power of 2 (thanks to Hubert Sack),
8609 (genRRC): removed unnecessary "clr c",
8610 (genRLC): replaced "add a,acc" with cheaper "rlc a"
8611 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8613 swapped rules 256.c and 256.d,
8614 extended 256.d by using new multiple checks (thanks Erik),
8615 added rules 256.e and 256.f,
8616 updated rule 261.a and 261.b to new generated code
8617 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8619 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8621 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8622 induction related bugs, including first part of bug #1074377
8624 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8626 * applied patch from bug-report #1076292,
8627 * applied patches for genAnd and Goto-optimizations for Raphael
8629 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8630 dump a less iCode information,
8631 * src/pic16/device.h (pic16_options_t): added field debgen,
8632 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8633 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8634 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8636 * (various functions): added macros FENTRY and FENTRY2 to functions,
8637 to emit function prologue,
8638 * (various functions): fixed indentation,
8639 * (genNearPointerGet): fixed loading of FSR0,
8640 * (genPackBits): applied patch from Raphael Neider to fix updating
8641 of FSR0 and touching only the modified bits,
8642 * src/pic16/genarith.c (various functions): added macros FENTRY to
8643 emit function prologue in comments,
8644 * src/pic16/pcode.h: added functions debugf2, debugf3,
8645 * src/pic16/ralloc.c: partial fix for packForPush caused
8648 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8650 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8651 <stsp AT users.sourceforge.net> with reversed byte order
8652 * support/regression/tests/rotate.c: added (ds390 skips some tests)
8654 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8656 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8658 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8659 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8661 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8663 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8665 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8667 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8669 (setFromConditionArgs): friendly operand parser for peephole rules,
8670 (operandBaseName, operandsNotRelated): new peephole condition
8671 "operandsNotRelated" -- similar to "operandsNotSame", but takes
8672 architecture specific register naming into account, handles n-way
8673 comparisons, and supports quoted literals
8674 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8676 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8678 * src/mcs51/peeph.def: fixed bug #1076940
8680 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8682 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8684 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8686 Adding support for replacing ljmps with sjmps in jumptables
8687 generated for switch statements. For now you need to set the
8688 environment variable SDCC_SJMP_JUMPTABLE to enable this.
8689 Now 4 algorithms for mcs51 jumptable generation are used:
8690 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8691 addresses loaded pc-relative for up to 112 cases and stack-pushing
8692 target addresses loaded with offset from dptr for up to 256 cases.
8694 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8695 * src/mcs51/main.c: adapted constants for switch table generation
8696 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8698 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8700 * device/lib/printf_large.c (_print_format): fixed bug 1073386
8701 * support/regression/tests/bug1057979.c: added test for bug 1073386
8703 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8705 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
8708 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
8710 * src/pic16/device.h,
8711 * src/pic16/genarith.c,
8714 * src/pic16/pcode.c: applied patches #1068154 and #1070213
8716 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
8718 Large cummulative patch for pic16 port.
8719 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
8720 to call when a stack overflow occurs,
8721 * (malloc.h): added CVS Id tag,
8722 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
8724 * added libc directory. The current version of LibC contains string
8725 functions, ctype functions and macros and some functions of the
8726 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
8727 be extensively tested in the future. Standard disclaimer here.
8728 Library is not automatically build yet. But one can build it by
8729 invoking 'make' inside the libc directory.
8730 * added ADC library under libio. Preliminary version yet.
8732 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
8733 * src/pic16/gen.c (aopForRemat): asmop size is filled by
8734 aopForRemat() now and not by pic16_aopOp(),
8735 * (pic16_popGetTempReg): removed warning messgae when allocating
8736 temporary registers, its a buggy feature and will be removed,
8737 * (pic16_popGet): set register instance field in AOP_CRY,
8738 * (pic16_outBitC): fixed for results in size greater than 1,
8739 * (genUminusFloat): fixed for pic16, ported code from mcs51,
8740 * (pic16_storeForReturn): optimized return of 0,
8741 * (genCmp): experimental code for new genCmp which uses PIC18's
8742 special compare&skip instructions. Initial tests fail some times
8743 with variables grater than 1 byte in size, so new code is disabled,
8744 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
8746 * (genCast): began a fix to optimize the casting of a bit to another
8747 bit, now assigning a bitfield to another bitfield will fail, sorry,
8748 * src/pic16/main.c: disabled the use of lr-support feature,
8749 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
8750 * added some function prototypes, added function _debugf prototype,
8751 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
8752 bits with offset (case PO_GPR_BIT),
8753 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
8755 * (isBankInstruction): modified to return 0 for no banking instruction,
8756 and 1 for banking instruction,
8757 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
8758 caused stop processing pCodes after a inline assembly block,
8759 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
8760 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
8761 registers when it shouldn't,
8762 * src/pic16/ralloc.c (allocReg): add preliminary support for
8763 supporting a limited set of temporary registers,
8765 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8767 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
8768 genDataPointerSet): ensure assignments always copy in MSB to LSB
8770 (loadRegFromAop): recognize CLRH optimization,
8771 (genFunction): optimize RECEIVE iCodes in reentrant functions
8773 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8775 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
8776 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
8778 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
8779 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
8780 contiguous with data
8782 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8784 * device/lib/_gptrget.c (_gptrget),
8785 * device/lib/_gptrgetc.c (_gptrgetc),
8786 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
8787 instead of sjmp to ret
8788 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
8789 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
8791 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
8793 * .version: bumped version to 2.4.7
8794 * device/lib/_gptrget.c (_gptrget): is now _naked
8795 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
8796 * device/lib/_gptrput.c (_gptrput): is now _naked
8797 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
8798 (createFunction): fixed xstack
8799 * src/SDCCglue.c (emitMaps): set allocation required for bit area
8800 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
8802 (geniCodeCritical): store original interrupt state in an iTemp bit
8803 var unless stack-auto
8804 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
8805 * src/SDCCmain.c (setIncludePath): added include/target to search path
8806 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
8807 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
8809 (processFuncArgs): put bit vars in bit area
8810 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
8811 unsaveRBank): fixed xstack,
8812 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
8813 (genFunction, genEndFunction): fixed xstack,
8814 (genAssign): optimization don't walk backwards through mem
8815 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
8816 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
8817 * support/regression/Makefile: also make library (for stack-auto) when
8818 making "all" and added "test-mcs51-xstack-auto"
8819 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
8820 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
8821 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
8822 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
8823 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
8824 make-library by MAKE_LIBRARY
8825 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
8826 regression tests for xstack
8827 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
8828 * support/regression/tests/critical.c: test for critical on mcs51
8830 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8832 * support/regression/ports/ucz80/spec.mk: use include and lib files from
8833 built version of sdcc instead of installed version
8835 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
8837 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
8838 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
8840 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
8841 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
8842 WARNING: remove device/lib/build/z80/printf.o by hand when
8843 updating from previous build!
8844 * device/lib/z80/printf.c: updated comment
8845 * support/regression/tests/bug1057979.c: test all ports now
8846 * support/regression/tests/bug1065458.c: file added
8848 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8850 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
8851 *_start and *_end symbols for static functions
8853 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
8855 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
8856 and search crt0.o in all library paths,
8857 (setIncludePath): proper handling of --nostdinc,
8858 (setLibPath): proper handling of --nostdlib
8859 * support/regression/Makefile,
8860 * support/regression/ports/ds390/spec.mk,
8861 * support/regression/ports/gbz80/spec.mk,
8862 * support/regression/ports/hc08/spec.mk,
8863 * support/regression/ports/mcs51/spec.mk,
8864 * support/regression/ports/mcs51-large/spec.mk,
8865 * support/regression/ports/mcs51-stack-auto/spec.mk,
8866 * support/regression/ports/z80/spec.mk: use include and lib files from
8867 built version of sdcc instead of installed version
8868 * doc/sdccman.lyx: fixed typo in --nostdinc
8870 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
8875 * src/pic/gen.c : added support to generate code for struct bit fields.
8877 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
8879 * as/xa51/xa_version.h,
8880 * device/include/errno.h,
8881 * device/include/regc515c.h,
8882 * device/lib/_itoa.c,
8883 * device/lib/_ltoa.c,
8884 * device/lib/ser_ir_cts_rts.c,
8885 * sim/ucsim/xa.src/glob.cc,
8886 * sim/ucsim/xa.src/inst_gen.cc,
8887 * sim/ucsim/xa.src/xa_bit.cc,
8888 * sim/ucsim/xa.src/xa_sfr.cc,
8889 * sim/ucsim/z80.src/inst_dd.cc,
8890 * sim/ucsim/z80.src/inst_fdcb.cc,
8891 * support/scripts/keil2sdcc.pl,
8892 * src/pic16/pic16.dsp,
8893 * src/pic16/pic16a.dsp: corrected cvs line endings
8894 * device/lib/printf_large.c: fixed bug 1057979
8895 * src/pic16/gen.c: fixed non-C standard code
8896 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
8897 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
8898 * support/regression/ports/mcs51/support.c: reload T1 asap
8899 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
8900 pdata use and clear idata startup behaviour
8901 * support/regression/tests/bug1057979.c: added
8903 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
8905 * device/examples/ds390/ow390/ad26.h,
8906 * device/examples/ds390/ow390/cnt1d.h,
8907 * device/examples/ds390/ow390/crcutil.c,
8908 * device/examples/ds390/ow390/ownet.h,
8909 * device/examples/ds390/ow390/owsesu.c,
8910 * device/examples/ds390/ow390/swt12.h,
8911 * device/examples/ds390/ow390/swtoper.c,
8912 * device/examples/ds390/ow390/temp10.h,
8913 * device/examples/ds390/ow390/thermodl.c,
8914 * device/examples/ds390/tinitalk/tinitalk.dsp,
8915 * device/examples/ds390/tinitalk/tinitalk.dsw,
8916 * device/examples/mcs51/clock/hw.h,
8917 * device/examples/mcs51/simple2/go.bat,
8918 * device/examples/serialcomm/windows/serial.h,
8919 * device/examples/xa51/dummy.c,
8920 * device/examples/xa51/hello.c,
8921 * device/include/80c51xa.h,
8922 * device/include/at89x051.h: corrected cvs line endings
8924 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
8926 * src/pic16/main.c (options): added command line --gstack, to trace
8927 stack over/under flows,
8928 * added pragma 'wparam' to allow passing first byte of function
8929 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
8930 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
8931 call to __gstack_test function and sets up the symbol as extern,
8932 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
8933 * popaop): added call to pic16_testStackOverflow,
8934 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
8936 * (genCall, genPcall): now all parameters are passed via stack
8937 except in functions that are pass to wparam pragma in which WREG is
8939 * (genPcall): REENTRANT flag is checked to see if variable prototype
8940 contains reentrant keyword, don't call a non-reentrant function, via
8941 a reentrant function pointer or vice versa, functions are never
8943 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
8945 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
8946 SIGSEGV when accessing a NULL register stucture,
8947 * (pic16_printGPointerType): modified to handle UPPER modifier for
8948 function initializers, changed prototype of function to simpler one,
8949 * (pic16_printIvalFuncPtr): check to see if function is already
8950 added in externs list,
8951 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
8952 optimized a move from W to SFR with a move to the same register
8954 * device/lib/pic16/debug: NEW directory, contains debug features
8955 which are enabled when linking with libdebug.lib, currently command
8956 line option --gstack enables stack pointer tracing for over/under
8957 flow, corresponding sources are in debug/gstack
8959 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
8961 * doc/sdccman.lyx: updated SDCC version,
8962 * (PIC16 port): update list of command line options,
8963 * src/pic16/device.h (structure pic16_options_t): added field gstack
8964 to enable stack overflow tracing on push/pops,
8965 * src/pic16/device.c (statistics structure): added statistics
8967 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
8968 pic16_dump_int_registers): increase statistics counters for each
8969 * variable which is encountered
8970 * (pic16_dump_usection): emit each .udata variable to its own udata
8972 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
8973 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
8974 parameters via stack, otherwise use old scheme,
8975 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
8976 assembler output file,
8977 * src/pic16/main.c: added command line options --gstack to enable
8978 push/pop tracing for stack overflow,
8979 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
8980 instructions): added size of each instruction,
8981 * (pic16_countInstruction): estimate size of instructions in
8982 the_pFile list, inline assembly blocks are not counted,
8983 * (pic16_FixRegisterBanking): trace previous register usage, when
8984 banksel optimizations is greater than 0, don't emit a redudant
8987 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
8989 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
8990 * src/pic16/ralloc.c : applied same fix for pic16.
8991 * src/pic/gen.c : tidied it up a little.
8993 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8995 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
8996 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
8998 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9000 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9002 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9004 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9005 non-reentrant function __modsint in the interrupt function (thus
9006 corrupting math operations during serial I/O)
9007 * device/lib/ser_ir.c: as above, changed buffersize
9008 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9010 * doc/Makefile: added option -t for rsync
9012 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9014 * src/SDCCast.h (struct ast),
9015 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9017 2004-10-20 Borut Razem <borut.razem AT siol.net>
9019 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9022 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9024 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9026 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9027 support functions to replace long sequences of MOVFF's from access
9028 bank registers to stack and vice versa,
9029 * src/pic16/device.h: added new field opt_flags, where optimization
9030 flags can be set to enable certain features,
9031 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9032 * pBlock, (genFunction, genEndFunction): surroung loop for
9033 saving/loading used registers in stack with PC_INFO pCodes,
9034 INF_LREGS. Code in between can then be optimized by pCode optimizer
9035 to support function calls,
9036 * (genDataPointerSet): fixed bug which loaded float fields in
9037 structures with corrupt data,
9038 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9039 in a standard way debug info on stderr. Feature used for developing
9041 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9042 obsolete chunks of code,
9043 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9044 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9045 * pic16/src/pcode.c (pic16_newpCodeInfo,
9046 * (pic16_newpCodeOpLocalRegs),
9047 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9049 * (pic16_pCodeConstString): printing of the initial value of a
9050 symbol as a comment is inhibited since parsing was already done by
9051 copyStr and output is corrupt,
9052 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9054 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9056 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9058 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9060 * as/mcs51/lkarea.c: removed old K&R style,
9061 (lnksect): changed check on boundary error,
9062 (lnksect2): changed check on boundary error,
9063 (lnksect2): extend XSTK to end of page if size = 1
9064 * as/mcs51/lkmain.c: removed old K&R style,
9065 (Areas51): create l_IRAM symbol
9066 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9067 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9068 model-mcs51-stack-auto, added model-mcs51-xstack-auto
9069 * device/lib/_mullong.c: added version to be compiled with xstack
9070 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9071 * device/lib/mcs51/crtxclear.asm: clear pdata as well
9072 * device/lib/mcs51/crtxstack.asm: fixed comment
9073 * src/SDCCglue.c: maxInterrupts defaults to 0,
9074 (emitMaps): added pdata,
9075 (createInterruptVect): (re)moved default,
9076 (glue): added pdata,
9077 (glue): moved __start__xstack to XSTK with default size 1
9078 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9079 and options.float_rent when options.stackAuto is set,
9080 (linkEdit): only write XDATA_NAME if provided on command line
9082 * src/SDCCmem.c: added pdata
9083 * src/port.h: added pdata_name to PORT
9084 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9085 (saveRegisters, unsaveRegisters): removed usage of B,
9086 (genMinus): fixed accumulator clash,
9087 (genJumpTab): added comment, this needs another look
9088 * src/mcs51/gen.c: added check for "B in use" paranoia,
9089 added pushB() and popB()
9090 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9099 * src/z80/main.c: (reset_regparms) made void parameter explicit and
9100 added PSEG (PAG,XDATA) or NULL to port specifier
9101 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9102 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9103 (_mcs51_genInitStartup): removed __start__xstack equ,
9104 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9105 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9106 * src/z80/gen.c (_rleAppend): fixed warnings
9107 * support/regression/tests/zeropad.c: added pdata test
9108 * .version: bumped to 2.4.6
9110 2004-10-17 Borut Razem <borut.razem AT siol.net>
9112 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9113 as a part of nightly build
9115 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9117 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9118 WREG holds the first byte function parameters,
9119 * (aopForSym): take special case for symbols which are in FARSPACE
9120 but in CODESPACE too,
9121 * (assignResultValue): modified to take into account _G.useWreg,
9122 * (genCall): don't use wreg for parameter passing when function is
9123 declared as reentrant, too, added optimization INCF to stack
9124 pointer when stack parameter count is 1,
9125 * (genFunction, genEndFunction): refurnished and fixed to not using
9126 wreg for passing parameters when function has varargs or is
9127 reentrant, fixed bug with symbol name compare for generating
9128 functions in absolute address,
9129 * (pic16_storeForReturn): refurnished,
9130 * (genCmp): began writing a new version of the function, not ready
9131 yet, therefore it is disabled,
9132 * (genAssign): do not read code memory when assigning a function to
9134 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9135 array of characters, not pointer,
9136 * (pic16initialComments): in debug mode emit an .ident directive for
9138 * (_process_pragma): emit a new warning type (internal to pic16)
9139 when setting stack to default length, emit a similar warning when
9140 placing a function at absolute address and address is not word aligned
9141 * (_pic16_parseOptions): added 'return TRUE' statement,
9142 * (_pic16_linkEdit): if compiling a source, then add the source's
9143 file object, first in the list of objects to link,
9145 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9147 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9148 * src/pic/main.c : removed VC warning.
9149 * src/pic/gen.c : changed comment.
9151 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9153 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9154 reference to a deprecated symbol _GPTRREG was causing failure to
9155 link. Thanks G. M. Gallant for the info.
9157 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9159 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9160 comments for Bugs item #954788.
9162 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9164 * src/pic16/device.c (pic16_dump_gsection,
9165 * pic16_groupRegistersInSection): handle symbols declared to be in
9166 access bank differently,
9167 * src/pic16/gen.c (struct _G): added field resDirect,
9168 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9169 send values read from stack directly to result and don't allocate
9171 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9173 * (pic16_sameRegsOfs): NEW,
9174 * (freeAsmop): if _G.resDirect is set then do not mark registers as
9175 free because they were not allocated from temporary pool,
9176 * pic16_popRegFromString): workaround to fix a problem with
9177 allocating variables twice or never,
9178 * (genGenPointerGet): using PRODL instead of FSR0H,
9179 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9181 * (genAssign): take advantage of the _G.resDirect flag,
9182 * (genCast): around line 11844, use mov2f instead of directly
9183 MOVFF'ing between operands to account for literal values,
9184 * src/pic16/genutils.c: some new debug functions for gpsim have been
9186 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9187 float with integer part only,
9188 * src/pic16/main.c (_process_pragma): handle pragma udata access to
9189 place variables in access bank
9190 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9191 updated sources to reflect recent changes in gen.c
9193 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9195 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9196 sources that searched for headers in installation path, now the
9197 device/include/pic16 is used,
9198 * src/pic16/glue.c (pic16glue),
9199 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9200 .line directives if not in debug mode, this suppresses assembler's
9201 warnings for ignored directives
9203 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9205 * src/port.h: made reset_regparms prototype void parameter explicit.
9206 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9207 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9208 * doc/sdccman.lyx: documented warning disabling and how to use
9209 printf_large to make it print floats.
9210 * device/include/stdbool.h: NEW
9211 * device/lib/_atof.c,
9212 * device/lib/_divuint.c,
9213 * device/lib/_divulong.c,
9214 * device/lib/expf.c,
9215 * device/lib/printf_large.c,
9216 * device/lib/sincosf.c,
9217 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9218 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9219 a completely reentrant lib.
9221 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9223 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9224 * device/include/pic16/stdio.h: fixed bug with colon
9226 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9228 * device/include/pic16/stdio.h,
9229 * device/include/pic16/stdlib.h,
9230 * device/include/pic16/math.h: NEW
9231 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9232 declared as _naked to reduce overhead
9233 * device/lib/Makefile.in (target port-specific-objects-pic16):
9234 changed * to *.* so to ignore the CVS directory,
9235 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9236 stacked variables back in stack,
9237 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9240 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9242 * .version: bumped version number to 2.4.5
9243 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9244 * support/Util/SDCCerr.c (messages structure): added entry for
9247 Large cumulative patch for pic16 port and libraries.
9248 * device/include/pic16/sdcc-lib.h,
9249 * device/include/pic16/stdarg.h,
9250 * device/include/asm/pic16/features.h,
9251 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9252 * device/include/pic16/float.h: changes reentrant keyword with
9253 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9254 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9255 updated target build-libraries to include objects from gptr,
9256 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9257 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9258 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9259 all function headings,
9260 * src/SDCCmain.c: added global parameter userIncDirsSet,
9261 * (parseCmdLine): when option -I is encountered add directory to
9263 * src/version.awk: added space between control and long,
9264 * src/pic16/NOTES: added some notes for the port,
9265 * src/pic16/gen.c: added prototype for mov2fp function,
9266 * (fReturnpic16[]): properly named return value registers,
9267 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9268 * (aopForSym): added code to handle symbols with onStack flag set,
9269 symbols onStack are allocated PTRSIZE bytes,
9270 * (aopFreeAsmop): handles special case where asmops are stack objects,
9271 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9272 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9273 added argument lock to trace flaws in allocating temporary registers
9274 when developing port,
9275 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9276 * (pic16_popRegFromString): reenabled allocating a direct register
9278 * (assignResultValue): various beautifications,
9279 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9280 referenced function argument,
9281 * (genIpush): reenabled to allow stacked arguments, handles only
9282 ic->parmPush iCodes,
9283 * (genCall, genPcall): major changes to allow for variable argument
9284 functions, fixed a bug with falsely restoring stack pointer after
9285 returning from call,
9286 * (genFunction): pending code for critical function,
9287 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9288 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9289 * (genNearPointerGet): fixed bug with indirect reading, was always
9291 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9293 * (genAddrOf): rewrote code to take address of a stacked function parameter
9294 * (genCast): fixed casting to generic pointer type,
9295 * src/pic16/gen.h: added AOP_STA,
9296 * (struct asmop): added field stk,
9297 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9298 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9299 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9300 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9301 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9302 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9304 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9306 * (pic16_port structure): generic pointer size is set to 3,
9307 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9308 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9310 * src/pic16/ralloc.c (allocReg): prevent allocating register when
9311 operand is an iTemp,
9313 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9315 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9316 * debugger/mcs51/simi.c: addapt new syntax of s51
9318 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9320 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9321 * src/pic16/pcode.c: commented out some calls to free() in order to
9324 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9327 * src/SDCCicode.c (isiCodeInFunctionCall),
9328 * src/avr/ralloc.c (selectSpil),
9329 * src/pic/ralloc.c (selectSpil),
9330 * src/pic16/ralloc.c (selectSpil),
9331 * src/ds390/ralloc.c (selectSpil),
9332 * src/hc08/ralloc.c (selectSpil),
9333 * src/xa51/ralloc.c (selectSpil),
9334 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9335 stack in the middle of a function call sequence (fixes bug #1020268)
9336 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9337 costs associated with the minimum switch case.
9339 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9341 * src/SDCC.lex: fixed bug #1030549
9343 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9345 * src/SDCCcse.h (struct cseDef),
9346 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9347 over a function call if the CSE is derived from a symbol whose
9348 address has been taken (fixes bug #1029883)
9349 * support/regression/tests/bug-1029883: a new regression test for
9352 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9354 * src/hc08/gen.c (emitinline): fixed bug #1029778
9355 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9356 to a cast object is no longer a syntax error ("fixes" bug #1030006,
9357 and starts toward RFE #905167)
9359 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9361 * src/pic16/gen.c (mov2f): New function to move an operand to
9362 another without considering if it is a literal or a register,
9363 * (pic16_sameRegs): don't check if they are both AOP_REG,
9364 * (AccRsh): removed andmask=0 lines,
9365 * (genLeftShift): duplicated to be improved in future versions,
9366 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9367 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9368 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9369 * (pic16initMnemonics): added initialization for POC_INFSNZW,
9370 * (insertBankSwitch): fixed inserting banksel directives algorithm
9371 for instructions that follow a skip instruction, this fixes a report
9372 for broken subtraction code generation,
9373 * src/pic16/ralloc.c (deassignLRs): do not free register if current
9374 iCode is a left op, just in case result and right share the same
9377 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9380 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9382 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9383 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9384 on 2004-09-12; it was buggy
9386 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9388 * src/SDCCsymt.h: removed RESULT_CHECK
9393 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9395 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9397 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9398 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9399 configuration values no more rejected by compiler, they are assigned
9400 to configuration registers with a warning message instead,
9401 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9402 the for-loop so last conf register is emitted too,
9403 * (_pic16_initPaths): link library libsdcc.lib by default,
9404 * (_hasNativeMulFor): modified test for multiplication according to
9405 Raphael Neider's remarks. Integer multiplication is also done with
9407 * device/include/pic16/pic18fregs.h: corrected type error in while
9408 testing and including 18f6720 header file
9410 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9412 * src/pic16/device.h (pic16_options): removed field use_crt,
9413 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9414 until an optimization to handle single bits is added,
9415 * (pic16_loadFSR0): moved before genUnpackBits,
9416 * (genAnd): some white lines removed,
9417 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9418 leave_reset flags in pic16_options when using crt modules,
9420 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9422 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9423 for bugs 898889 & 979599. Also used some safer print instructions.
9425 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9427 * src/pic16/device.h (pic16_options_t): added field use_crt,
9429 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9430 catch a probable future bug,
9431 * src/pic16/gen.c: aopIdx function commented out,
9432 * (genAssign): commented out old code which used aopIdx,
9433 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9434 code, added if conditionals to take into account the --use-crt
9435 command line options,
9436 * src/pic16/main.c (pic16_optionsTable): added new command line
9437 options, --use-crt= and --no-crt,
9438 * (_pic16_linkEdit): now the proper crt object is added in the
9439 linker command line except than when --no-crt is specified,
9440 * src/pic16/pcode.c,
9441 * src/pic16/pcode.h: added some structures and functions for a new
9442 optimization scheme to compansate for instruction overhead between
9443 same iCodes, this scheme is currently under development and is not
9445 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9447 * device/lib/pic16/startup/crt0i.c,
9448 * device/lib/pic16/startup/crt0iz.c: added global char variable
9449 __uflags to force the generation of an idata section
9451 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9454 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9455 * doc/sdccman.lyx: updated sdcc version to 2.4.4
9457 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9459 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9460 Frieder) and clarified the default code optimization mode
9462 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9464 * src/SDCC.lex (doPragma, process_pragma),
9465 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9466 "opt_code_size", and "opt_code_balanced"
9467 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9468 regrouped options by category, added support for category headers
9469 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9470 and "--opt-code-size"
9471 * doc/sdccman.lyx: documented these new options and pragmas
9472 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9473 preference into account
9475 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9477 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9478 geniCodePreDec): Fixed bug 904237 by generating a warning
9480 * src/SDCCerr.c: added warning W_SIZEOF_VOID
9482 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9484 * src/pic/device.c : When no max ram set validate full memory range.
9486 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9488 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9490 * device/lib/_gptrget.c,
9491 * device/lib/_gptrput.c: updated comment
9492 * device/lib/calloc.c,
9493 * device/lib/free.c,
9494 * device/lib/malloc.c,
9495 * device/lib/realloc.c: added LGPL, made them reentrant-safe
9496 * src/SDCCcse.c (cseBBlock),
9497 * src/SDCCicode.c (printOperand, geniCodeArray),
9498 * src/SDCCicode.h (struct operand): fixed bug 868103
9499 * support/regression/tests/bug-868103.c: added
9500 * src/SDCCast.c (searchLitOp),
9501 * src/SDCCcse.h (struct cseDef),
9502 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9503 * src/SDCCicode.h (struct operand),
9504 * src/SDCCsymt.h (struct sym_link),
9505 * src/avr/gen.c (hasInc),
9506 * src/ds390/gen.c (hasInc),
9507 * src/hc08/gen.c (genPlusIncr, hasInc),
9508 * src/mcs51/gen.c (hasInc),
9509 * src/pic16/glue.c (pic16_printIvalChar),
9510 * src/pic16/ralloc.c (regWithIdx),
9511 * src/xa51/gen.c (hasInc) : removed warnings
9512 * src/SDCCast.c (createBlock): added comment ???
9513 * src/hc08/ralloc.c: updated comments
9515 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9517 * doc/sdccman.lyx: updated section on switch statements, added
9518 section about semaphore locking
9519 * doc/Makefile: added option -info for latex2html
9520 * device/lib/_gptrget.c,
9521 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9523 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9527 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9528 maxram is less than 0x100.
9530 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9532 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9534 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9545 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9546 a jump table is the best form for a switch statement, including
9547 automatic insertion of missing cases to make the case range
9548 continuous. Developed in collaboration with Frieder Ferlemann.
9550 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9552 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9553 accumulator result if it needs sign extension
9555 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9557 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9559 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9561 * device/lib/gbz80/printf.c,
9562 * device/lib/z80/printf.c: removed define for NULL
9564 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9566 * as/xa51/xa_link.c,
9567 * device/examples/ds390/ow390/ad26.c,
9568 * device/examples/ds390/ow390/cnt1d.c,
9569 * device/examples/ds390/ow390/counter.c,
9570 * device/examples/ds390/ow390/ds2480.h,
9571 * device/examples/ds390/ow390/ds2480ut.c,
9572 * device/examples/ds390/ow390/findtype.c,
9573 * device/examples/ds390/ow390/gethumd.c,
9574 * device/examples/ds390/ow390/owllu.c,
9575 * device/examples/ds390/ow390/ownetu.c,
9576 * device/examples/ds390/ow390/swt12.c,
9577 * device/examples/ds390/ow390/swtloop.c,
9578 * device/examples/ds390/ow390/temp.c,
9579 * device/examples/ds390/ow390/temp10.c,
9580 * device/examples/ds390/ow390/thermo21.c,
9581 * device/examples/ds390/ow390/tinilnk.c,
9582 * device/examples/ds390/ow390/tstfind.c,
9583 * device/examples/serialcomm/windows/serial.cpp,
9584 * device/examples/serialcomm/windows/test_serialcomm.cpp,
9585 * device/include/reg51.h: fixed line endings for cvs
9587 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9589 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9590 packRegsForAccUse, packRegisters): new accumulator register
9592 * support/regression/ports/hc08/support.c (_putchar): suppress
9593 warning of unused variable
9594 * src/SDCCicode.c: added SWAP entry to codeTable
9596 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9598 * device/lib/sprintf.c: forgot to add this file before previous commit
9600 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9602 * src/pic16/gen.c (genPackBits): added operand right in function
9603 parameters, load result directly if p_type is POINTER (that is
9604 called by genNearPointerSet)
9605 * (genUnPackBits): added operand left in function parameters,
9606 * (genNearPointerGet, genNearPointerSet): prevent the loading of
9607 FSR0 if accessing bitfields,
9609 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9611 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9612 _print_format; updated printf, sprintf, vsprintf
9613 * device/include/asm/default/features.h: corrected comment/define
9614 * device/lib/Makefile.in: added sprintf.c
9615 * device/lib/libsdcc.lib: added sprintf module
9616 * device/lib/printf_large.c,
9617 * device/lib/vprintf.c,
9618 * device/lib/sprintf.c: totally refactored printf_large and vprintf
9620 * support/regression/Makefile: changed ALL_PORTS into a usefull default
9621 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9622 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9624 * support/regression/tests/zeropad.c: define idata as data for hc08
9626 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9628 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9629 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9630 labels are referenced at least once (even if a reference is not found)
9631 * src/hc08/gen.c (emitcode): set isComment flag for comments
9632 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9633 loads), rules 6a..6b (optimize jumps to return)
9635 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9637 * device/lib/acosf.c (acosf),
9638 * device/lib/asinf.c (asinf),
9639 * device/lib/atanf.c (atanf),
9640 * device/lib/ceilf.c (ceilf),
9641 * device/lib/cosf.c (cosf),
9642 * device/lib/coshf.c (coshf),
9643 * device/lib/cotf.c (cotf),
9644 * device/lib/fabsf.c (fabsf),
9645 * device/lib/floorf.c (floorf),
9646 * device/lib/log10f.c (log10f),
9647 * device/lib/logf.c (logf),
9648 * device/lib/sinf.c (sinf),
9649 * device/lib/sinhf.c (sinhf),
9650 * device/lib/sqrtf.c (sqrtf),
9651 * device/lib/tanf.c (tanf),
9652 * device/lib/tanhf.c (tanhf),
9653 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9654 replaced all instances of "reentrant" in the library functions
9655 defined in math.h with this macro.
9656 * support/regression/tests/float_trans.c: reenabled test for hc08
9658 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9660 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9663 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9665 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9666 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9667 multi-byte volatile operands are used
9668 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9669 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9670 initialization to area GSINIT0 so that it would always precede
9671 any static initializers in GSINIT
9672 * support/regression/tests/zeropad.c: fixed idata define for hc08
9673 * support/regression/tests/bug-927659.c,
9674 * support/regression/tests/float_trans.c: disabled tests for hc08
9675 pending missing library routines
9676 * .version: increased version number to 2.4.4 - hc08 port now passes
9680 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9682 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9683 * Makefile.common.in,
9685 * as/hc08/Makefile.in,
9686 * as/mcs51/Makefile.in,
9687 * as/z80/Makefile.in,
9688 * debugger/mcs51/Makefile.in,
9689 * device/include/Makefile.in,
9690 * device/lib/Makefile.in,
9693 * link/z80/Makefile.in,
9694 * packihx/Makefile.in,
9695 * sim/ucsim/main_in.mk,
9696 * sim/ucsim/avr.src/Makefile.in,
9697 * sim/ucsim/doc/Makefile.in,
9698 * sim/ucsim/gui.src/serio.src/Makefile.in,
9699 * sim/ucsim/hc08.src/Makefile.in,
9700 * sim/ucsim/s51.src/Makefile.in,
9701 * sim/ucsim/xa.src/Makefile.in,
9702 * sim/ucsim/z80.src/Makefile.in,
9704 * support/cpp2/Makefile.in,
9705 * support/librarian/Makefile,
9706 * support/makebin/Makefile: added DESTDIR to the install path proposed
9707 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
9708 * doc/sdccman.lyx: added DESTDIR documentation
9710 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
9712 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
9713 instruction for interrupt handlers, use fast returns when returning
9714 from high priority interrupts
9716 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9718 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
9720 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
9721 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
9722 bugs, ported much of Bernhard's code from mcs51
9723 * src/mcs51/gen.c (genSend),
9724 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
9725 than one when calling a reentrant function
9726 * device/lib/_mullong.c: defined an alternate struct layout for big
9729 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9731 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
9734 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9736 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
9737 are sane and complete before asking the port its prefered parameter
9738 passing method (fixes bug #1017633)
9739 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
9742 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9744 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
9745 problem in bitfields >= 8 bits.
9747 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9749 * src/SDCCsymt.c: undid changes that were not meant to be committed
9751 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9753 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
9755 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
9757 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
9758 copied and wrong bit got inverted
9760 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9762 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
9763 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
9764 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
9765 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
9766 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
9767 assignments to bitfields at known addresses
9768 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
9769 reads from bitfields at known addresses
9770 * src/hc08/ralloc.c (packRegisters),
9771 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
9772 genhc08Code): optimize pointer get values used as conditionals
9773 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
9776 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9778 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
9779 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
9780 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
9783 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9785 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
9787 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9789 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
9792 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
9794 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
9796 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9798 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
9801 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
9803 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
9805 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9807 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
9808 cases use more compact code.
9810 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
9812 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
9814 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9816 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
9818 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9821 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
9822 parameter of changePointer() from symbol* to sym_link*
9823 * src/SDCCast.c (decorateType): call changePointer() for CAST op
9824 * src/SDCCsymt.c (compareType): void* type is castable to other
9825 pointers, but not necesarily an exact match.
9826 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
9827 is no longer blindly treated as an exact match.
9828 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
9830 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
9832 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
9834 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
9839 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
9841 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
9845 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
9847 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9849 * src/mcs51/gen.c (emitcode): fixed bug #992819
9851 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
9853 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
9854 there's no need to make it worse
9856 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9858 * src/mcs51/ralloc.c (deassignLR),
9859 * src/ds390/ralloc.c (deassignLR),
9860 * src/hc08/ralloc.c (deassignLR),
9861 * src/z80/ralloc.c (deassignLR),
9862 * src/pic/ralloc.c (deassignLR),
9863 * src/pic16/ralloc.c (deassignLR),
9864 * src/avr/ralloc.c (deassignLR),
9865 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
9866 rlivePoint): fixed another part of bug #971834
9868 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9870 * src/z80/main.c: enabled "critical" keyword
9871 * src/z80/mappings.i,
9872 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
9873 functions (fixes bug #979646)
9874 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
9876 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9878 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
9881 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
9883 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
9884 doesn't disable too much optimizations
9886 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9888 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
9890 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
9892 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
9894 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
9896 * src/pic/gen.c tidied up tabs
9897 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
9898 * src/pic/main.c tidied up tabs
9899 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
9900 * src/pic/pcoderegs.c tidied up tabs
9901 * src/pic/ralloc.c tidied up tabs
9903 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
9905 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
9906 to S_FIXED for pic16 port and when symbol is not in level 0,
9907 allocate for S_REGISTER storage class and pic16 port, too,
9908 * src/pic16/device.h: prototype for checkSym,
9909 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
9910 * (pic16_assignConfigWordValue): test the value and the mask to
9911 validate that the value is suitable for the configuration word,
9912 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
9913 collect extern declared symbols, don't emit symbol twice, check
9914 first if symbol is in publics set first,
9915 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
9916 * added command line '--fstack' which enables an experimental
9917 feature for stack access, too buggy to be used yet...
9918 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
9919 * (pic16_allocDirReg): when register has storage class S_REGISTER
9920 allocate in pic16_dynAccessRegs,
9921 * device/include/pic16/pic18f????.h: modified configuration word
9922 naming convention, words started as CONFIG0H but should be CONFIG1H
9924 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
9926 * device/include/mcs51reg.h: fixed bug 970993
9928 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
9930 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
9931 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
9932 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
9933 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
9934 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
9935 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
9936 error/warning numbers,
9937 added function setWarningDisabled()
9938 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
9939 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
9940 _memcmp.c _memmove.c calloc.c realloc.c free.c
9941 * support/regression/tests/malloc.c: added tests for new functionality
9942 * support/regression/tests/zeropad.c: added tests for truncated initializers
9943 and initialized char arrays starting with '\x0'
9944 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
9946 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
9948 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
9950 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9952 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
9953 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
9954 peephole 177.e. Thanks to anonymous
9956 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
9958 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
9959 function isn't used in the source but referenced as a
9960 variable initializer then declare it as extern in .asm file
9962 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
9964 * .version: increased version number to 2.4.3
9966 Adding version extension according to ChangeLog CVS revision
9967 * src/Makefile.in (target all): added dependency 'version.h'
9968 * (rule version.h): added rule to create version.h from ChangeLog,
9969 * (rule dep): added dependency version.h,
9970 * src/version.awk: AWK script to create version.h
9971 * src/SDCCdwarf2.c (dwWriteModule),
9972 * src/SDCCglue.c (initialComments),
9973 * src/SDCCmain.c (printVersionInfo): modified to write after
9974 version string the version extension number,
9975 * src/SDCCutil.c: included "version.h"
9976 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
9978 * src/SDCCutil.h: added prototype for getBuildNumber
9980 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
9981 includeDirsSet, too,
9982 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
9983 const char [] is found in function prototype...
9985 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
9986 moving to WREG with source is already in WREG,
9987 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
9988 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
9989 * (aopForSym): stack'ed symbols are partially supported, added
9990 if-clause to support symbols in FARSPACE,
9991 * (sameRegs): added test for AOP_ACC to see if registers are same,
9992 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
9993 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
9994 * (pic16_popRegFromString): will not allocate a new register if it
9995 doesn't find one by name, bug may have introduced...
9996 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
9997 * (genIpush): revived to use pic16 port's stack,
9998 * (genAddrOf): added incomplete case for stack'ed operand,
9999 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10000 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10001 can handle multibyte operands,
10002 * src/pic16/glue.c (pic16_printIval*): some debug info added,
10003 * (pic16initialComments): added message for MPLAB compatibility
10005 * src/pic16/main.h: prototype for pic16_mplab_comp,
10006 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10007 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10008 * (_pic16_linkEdit): NEW, handles link stage, transferred here
10009 because of increased complexity of procedure,
10010 * (_process_pragma): stack pragma changed to format 'stack pos len',
10011 emit symbol '_stack_end' to conform with gplink,
10012 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10013 to search for register,
10014 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10016 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10017 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10018 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10019 case for PO_GPR_REGISTER,
10020 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10021 dies, the new era is ahead !...
10022 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10023 pic16_dynInternalRegs,
10024 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10025 * (pic16_allocDirReg): minor optimizations and bug fixes,
10026 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10028 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10029 load stack and frame pointer with address of 'stack_end' symbol
10031 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10033 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10034 without source code but only variable initializers
10036 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10038 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10039 external are not declared as extern to reduce overhead while linking
10041 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10043 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10045 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10047 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10048 Yee Keat for the patch
10049 * src/SDCCast.c (decorateType): fixed bug #979599
10050 * src/ds390/gen.h: removed local fReturnSizeDS390
10051 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10052 * src/ds390/gen.c (genAnd, genOr, genXor),
10053 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10055 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10057 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10058 add relFilesSet to $3, manipulate $2 to handle linking of object
10059 files without source files in command line,
10060 * device/include/pic16 (all headers): added ID location macros,
10061 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10062 entries for ID location bytes,
10063 * (pic16_assignIdByteValue): NEW,
10064 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10065 added field dumpcalltree to pic16_options_t,
10066 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10067 is used instead of pic16_Gstack_base_addr, check if (ifx) before
10068 emitting rFalseIfx label after check_carry label,
10069 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10070 pic16_emitDIRegs), NEW
10071 * (pic16glue): dump .calltree file when option --calltree found,
10072 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10073 * (_pic16_genAssemblerPreamble): emit ID locations after
10074 configuration registers,
10075 * (pic16_linkCmd): modifications of the link command,
10076 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10077 * (pic16_pCodeInitRegisters): don't init stack registers,
10078 * (pic16_findPrevInstruction): fixed bug,
10079 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10080 bug with immediate registers,
10081 * (buildCallTree): traces stack push and pop,
10082 * (pct2): dump also stack usage for each function,
10083 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10084 * (pic16_allocDirReg): various modifications,
10085 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10088 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10090 * src/pic16/pcode.c: removed buggy double colon
10092 2004-07-01 Borut Razem <borut.razem AT siol.net>
10094 * support/scripts/sdcc.nsi: added include/pic16 to setup
10096 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10098 * device/lib/Makefile.in: fixed bug in target objects-pic16,
10099 * device/lib/pic16/Makefile: prefixed with dash (-) command under
10101 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10102 specific command line arguments. Also added sample lkr script
10103 for placing a variable at a specific memory bank.
10104 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10105 at a specific memory bank,
10106 * (pic16_dump_isection): fixed bug which caused string literals to
10107 be omitted when dumping idata section,
10108 * (pic16_groupRegistersInSection): added code to handle registers
10109 in specific memory banks,
10110 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10111 public, all references are renamed too,
10112 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10114 * (pic16_storeForReturn): added case to handle when dest is WREG,
10115 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10116 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10117 pic16_rel_udata, check to see if that register is marked as being
10118 a member of a specific memory bank,
10119 * (pic16_printIvalCharPtr): added code to add string literals either
10120 to code or the idata sections,
10121 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10122 also accept the 'udata' pragma,
10123 * src/pic16/main.h: new structure types sectName and sectSym
10124 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10125 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10126 * (pic16_findPrevInstruction): fixed, it returned nothing,
10127 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10128 instruction combinations,
10129 * (pic16_FixRegisterBanking): heavily reorganised,
10130 * (pic16_AnalyzeBanking): if generating banksel directives is
10131 disabled, then don't call FixRegisterBanking at all,
10132 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10133 completely removed,
10134 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10136 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10138 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10139 Phuah Yee Keat <yk.phuah AT nestac.com>
10141 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10143 * src/pic16/glue.c (pic16createInterruptVect): function now emits
10144 correctly the IVT even if it is relocated to some other location
10146 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10148 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10149 * device/include/pic16/pic18f2220.h: NEW,
10150 * device/lib/pic16/libdev/pic18f2220.c: NEW,
10151 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10152 * src/pic16/device.c (struct Pics16): added info for 18f2220,
10153 * src/pic16/device.h (struct pic16_options): added ivt_loc and
10154 nodefaultlibs, ivt_loc is the location of the interrupt vector
10155 table, and nodefaultlibs signs that default libraries should not be
10156 linked in link stage,
10157 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10158 according to --ivt-loc argument,
10159 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10160 when pragma stack is found,
10162 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10164 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10165 256 (range check), 257 (do while), 258.a-f (bit banging
10166 f.e. on 3-wire SPI bus)
10168 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10170 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10171 variables used exclusively within a loop
10173 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10175 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10177 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10179 * src/SDCClrange.c (computeClash): fixed bug #971834
10181 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10183 * src/mcs51/gen.c (genCmp): fixed bug #975903
10184 * src/hc08/gen.c (operandsEqu),
10185 * src/ds390/gen.c (operandsEqu),
10186 * src/z80/gen.c (operandsEqu),
10187 * src/pic/gen.c (operandsEqu),
10188 * src/pic16/gen.c (operandsEqu),
10189 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10190 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10192 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10194 * src/SDCCcse.c (cseBBlock): fixed bug #966963
10196 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10198 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10199 default case in switch statement,
10200 * glue.c (pic16_initPointer): expr is initialised via decoarteType
10201 to eliminate problem with initialisation of pointers, but problem
10203 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10204 * (emitStaticSegment): removed various lines emitting debug info,
10205 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10206 added processor registers for utilizing EEPROM,
10207 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10208 configurable and set 8
10210 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10212 * .version: increased version number to 2.4.2,
10214 Cumulative patch for pic16 port
10215 * src/pic16/device.c: changed scheme to dump initial values for
10216 variables in idata segment, all print_idata* functions were removed,
10217 now the pic16_printIval* will be called,
10218 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10219 * _pic16_printPointerType, pic16_printPointerType,
10220 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10221 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10222 NEW, similar to the respective functions in SDCCglue.c,
10223 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10224 way, emitting hex bytes,
10225 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10227 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10229 * src/avr/ralloc.c (serialRegAssign),
10230 * src/xa51/ralloc.c (serialRegAssign),
10231 * src/pic/ralloc.c (serialRegAssign),
10232 * src/pic16/ralloc.c (serialRegAssign),
10233 * src/hc08/ralloc.c (serialRegAssign),
10234 * src/z80/ralloc.c (serialRegAssign),
10235 * src/ds390/ralloc.c (serialRegAssign),
10236 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10238 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10240 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10241 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10243 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10245 Cumulative patch for pic16 port:
10246 * src/pic16/device.h (typedef PIC16_device) modified fields for
10247 defining microcontrollers,
10248 * src/pic16/device.c: added new info for all devices in Pics16 array,
10249 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10250 to be optimised out by the pCode optimiser,
10251 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10252 specially, bug reported by G.M. Gallant,
10253 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10254 as force'd so that cannot be optimised out by pCode optimiser,
10255 * src/pic16/pcode.c,
10256 * src/pic16/pcodepeeph.c,
10257 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10258 they are disabled by default, but can be enabled explicit with
10259 command argument --denable-peeps, for testing,
10260 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10261 --pomit-ivt in COMPILE_FLAGS
10263 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10265 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10266 compilation on MSVC
10268 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10270 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10272 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10274 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10275 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10277 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10279 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10280 would only assign 0x300001 register.
10282 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10284 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10285 in COMPILE_FLAGS. Thanks to G. Gallant for report.
10287 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10289 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10291 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10292 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10293 added peephole 254 (left shift), 255 (jump table)
10295 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10297 * device/lib/Makefile.in: removed comment line with model-pic16,
10298 * (target port-specific-objects-pic16): the libraries and objects
10299 are copied to the build directory form the device/lib/pic16/bin
10302 Cumulative patch concerning pic16 port:
10303 * library directory has been re-organized,
10304 * added support for PIC18F1220,
10305 * added headers and library sources for chips 18f1220,18f6520,
10306 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10308 * configuration registers setting has changed, now each supported
10309 device has a complete description of the registers it uses,
10310 * all initialisations are moved to idata sections, these section
10311 can be absolute or relocatable,
10312 * fixed initialisation of codespace variables,
10313 * fixed warning about PCLATU and gpsim,
10314 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10315 * (genAssign): use table reads when assigning from variables in codespace,
10316 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10317 char/int variables placed in codespace,
10318 * (pic16_emitConfigRegs): NEW, emits a list with configuration
10319 registers set in .asm file, no need for --pomit-config-words anymore,
10320 * (pic16glue): some 8051 legacy segments are commented out
10321 (to be removed completely),
10322 * added support for alternative assembler and linker with --asm=
10323 and --link= command line arguments,
10324 * peepholes are disabled automatically in the port, no need to
10325 specify on command line,
10326 * port supports natively char/int/long multiplication, but converts
10327 all divisions to support functions,
10328 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10329 to the file set in variable $2,
10330 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10331 strings in ASCII format and not in hex,
10332 * ralloc.c (serialRegAssign): added a triplet of conditional calls
10333 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10334 allocate proper register if iCodes aren't temporary,
10336 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10338 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10340 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10342 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10345 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10347 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10348 computed address is reused
10349 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10350 multi-byte bitfields
10352 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10354 * src/z80/gen.c: (genArrayInit): must check for pointers too
10356 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10358 * support/regression/tests/zeropad.c: never meant to commit the
10359 nestedstruct test: removed, added check for GCC version
10361 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10363 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10364 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10365 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10366 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10367 bugs 928906 and 954082 half-empty initializers
10369 * src/SDCCsymt.c (getAllocSize): added for above fix
10370 * src/z80/gen.c (genArrayInit): fixed bug 741044
10371 * support/regression/tests/zeropad.c: added tests
10373 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10375 * src/pic16/device.c (pic16_dump_section): corrected bug which
10376 caused some symbols of the libraries to be misplaced
10378 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10380 * src/pic16/glue.c,
10381 * src/pic16/ralloc.h,
10382 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10383 to fix conflict with pic port
10385 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10387 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10388 externs configuration variables,
10389 * src/pic16/ralloc.h,
10390 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10391 prototype in header, commented out some debug messages
10393 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10395 * src/pic16/glue.c,
10396 * src/pic16/main.c,
10397 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10398 for gpasm COFF object generation. Thanks to D. Hawkins for
10401 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10403 * src/ds390/main.c,
10404 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10405 Brock for spotting this)
10406 * src/ds390/gen.c (genEndFunction),
10407 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10408 interrupt handler and critical. Disable push/pop optimizations when
10409 peephole optimizations disabled.
10411 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10413 Updated pic16 library sources and headers.
10414 * device/lib/pic16/pic18f*/ ,
10415 * device/include/pic16/*.h: modified to handle structured SFR
10418 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10420 * src/port.h (PORT structure): added hook initPaths, now each
10421 port can declare its own default search paths,
10422 which can been seen with the --print-search-dirs option,
10423 see pic16 port for example,
10424 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10425 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10426 * (doPrintSearchDirs): NEW, replaces in a central manner the
10427 printing of search dirs which was split in set*Paths functions,
10428 * (main): added call to port->initPaths and doPrintSearchDirs,
10430 * src/ds390/main.c,
10433 * src/izt/tlcs900h.c,
10434 * src/mcs51/main.c,
10436 * src/pic16/main.c: modified port structures to reflect addition of
10439 * src/pic16/device.c (regCompare): registers are finally sorted by name,
10440 * (pic16_dump_section): for registers in same address reserve memory once,
10441 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10443 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10444 result is greater in size than right or left,
10445 * (pic16_genUMult8X8_8): there are some cases where the result can
10446 be 16 bits size, so handle these,
10447 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10448 * (pic16_outBitC): modified to emit pcodes,
10449 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10451 * (genDivOneByte): implemented algorithm to divide 8-bits,
10452 * (genCmp): uncommented goto, but issues still exist,
10453 * (genAnd): fixed a bug with variables >8bits,
10454 * (genPackBits): optimization added that uses BCF/BSF to change a
10456 * (genAssign): fixed bug when assigning floating point literals,
10457 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10458 __sdcc_gsinit_startup label,
10459 * src/pic16/main.c (_pic16_init): removed search directory
10461 * (_pic16_initPaths): NEW, used to initialise search directories,
10462 * (_hasNativeMulFor): support functions for all except char/int
10463 multiplication, and char division,
10464 * (PIC16_port struct): modified entry for native mul support,
10465 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10467 * (buildCallTree): call to register_usage is ifdef'ed out,
10469 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10471 * device/include/string.h: applied Stas Sergeev's patch to make this
10472 header file compatible with the preprocessor -Wundef option
10473 * src/SDCCmain.c (main): abort compilation if preprocessor reports
10474 failure (fixes bug #941458)
10476 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10478 * src/SDCCopt.c (killDeadCode): fixed bug #907733
10479 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10480 that the variable, not the function, should be static
10481 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10482 to be consistent with non-literal case
10484 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10486 * src/SDCCast.c (isConformingBody): fixed bug #949967
10487 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10488 convilong): fixed bug #952086
10490 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10492 * src/SDCCmem.c (allocVariables): fixed bug #955321
10494 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10496 * src/hc08/main.c (_hc08_genAssemblerEnd),
10497 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10498 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10499 completely eliminated the use of a temporary file
10500 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10501 when more than one file linked
10502 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10504 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10506 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10507 which fixes bug #543481
10508 * support/regression/tests/bug-751703.c: fixed comments left from a
10509 cut and paste error
10510 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10511 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10512 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10514 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10515 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10516 are now changed to underscores in moduleName
10518 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10520 * as/mcs51/lkmem.c: better fix for bug #954173
10522 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10523 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10525 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10526 * device/include/c8051f000.h,
10527 * device/include/c8051f120.h,
10528 * device/include/c8051f300.h,
10529 * device/include/c8051f310.h,
10530 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10531 PWM16) and detab'ed
10533 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10535 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10536 and mailing lists, doc'ed --no-peep-comments, removed reference
10537 to knoppix (newest version has no LyX/LaTeX), other minor changes
10538 * src/SDCCglue.c (glue): save 2 bytes stack space with
10539 option --main-return. The ljmp could probably be avoided too
10541 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10543 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10545 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10547 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10548 * src/SDCCopt.c (isLocalWithoutDef),
10549 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10550 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10551 (credit to Maarten Brock for patch #949363, on which this is based)
10552 * support/regression/tests/bug-751703.c: some test cases of extern used
10553 within inner scopes.
10555 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10557 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10559 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10561 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10562 dwWriteLabel): fix to create valid debugger symbols even when
10563 the module name has non-alphanumeric symbols in it
10564 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10565 when a variable's allocation has been optimized away
10568 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10570 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10572 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10573 * src/mcs51/main.c,
10574 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10575 * src/ds390/main.c,
10576 * src/z80/gen.c (z80_emitDebuggerSymbol),
10578 * src/pic/gen.c (pic14_emitDebuggerSymbol),
10580 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10581 * src/pic16/main.c,
10582 * src/avr/gen.c (avr_emitDebuggerSymbol),
10584 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10586 * src/SDCCdebug.c (emitDebuggerSymbol),
10588 * src/port.h: added a debugger struct to the port struct. Added a
10589 callback for defining debugger symbols
10591 * src/SDCCast.c (createLabel),
10592 * src/SDCC.y (labeled_statement): mark all compiler generated labels
10595 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10596 iCode back to the ast for the function
10598 * src/hc08/ralloc.c (hc08_assignRegisters),
10599 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10600 unneeded fields from the regs struct.
10601 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10602 pushReg() & pullReg() functions instead of emitcode()
10604 * src/hc08/gen.c (genLabel, genhc08Code),
10605 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10607 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10610 * src/hc08/gen.c (genEndFunction, genhc08Code),
10612 * src/mcs51/gen.c (genEndFunction, gen51Code),
10614 * src/ds390/gen.c (genEndFunction, gen390Code),
10616 * src/z80/gen.c (genEndFunction, genZ80Code),
10619 * src/pic/gen.c (genEndFunction, genpic14Code),
10621 * src/pic16/gen.c (genEndFunction, genpic16Code),
10623 * src/avr/gen.c (genEndFunction, genAVRCode),
10625 * src/xa51/gen.c (genEndFunction, genXA51Code),
10627 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10628 specific code to cdbFile.c and out of the backend code generators
10630 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10631 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10632 starting address is now 0
10635 * as/hc08/m08pst.c,
10636 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10637 assembler directive for DWARF support
10638 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10642 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10644 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10646 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10647 and inappropriate peephole optimization in jump tables
10649 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10651 * as/hc08/m08pst.c,
10652 * src/SDCCglue.c: sdccopt works for the hc08 port now
10654 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10656 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10658 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10660 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10662 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10664 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10668 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10669 comments from the peephole optimizer replacement rules
10670 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10672 * src/SDCCcse.c (updateSpillLocation),
10673 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10675 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10676 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10677 objects far pointers
10679 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10681 * src/SDCCsymt.h: a missing part of my last change
10682 * src/pic/ralloc.c (regTypeNum),
10683 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10685 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10688 * src/SDCCicode.c (aggrToPtrDclType),
10689 * src/SDCCptropt.h,
10690 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10691 ptrPseudoSymConvert),
10692 * src/pic/ralloc.c (regTypeNum),
10693 * src/pic16/ralloc.c (regTypeNum),
10694 * src/hc08/ralloc.c (regTypeNum),
10695 * src/ds390/ralloc.c (regTypeNum),
10696 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10697 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10699 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10701 * link/z80/lkmain.c (afile),
10702 * as/hc08/lkmain.c (afile),
10703 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
10704 prevent a pointer problem when a filename has no directory and
10705 no extension specified.
10707 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10709 * link/z80/lkmain.c (afile): allow periods in directory names
10710 * link/z80/lkmain.c (afile),
10711 * as/mcs51/lkmain.c (afile),
10712 * as/hc08/lkmain.c (afile): allow linker script file to have an
10713 extension other than ".lnk"
10714 * link/z80/lklex.c (getfid),
10715 * link/z80/lkmain.c (parse),
10716 * as/mcs51/lklex.c (getfid),
10717 * as/mcs51/lkmain.c (parse),
10718 * as/hc08/lklex.c (getfid),
10719 * as/hc08/lkmain.c (parse): Support comments in the linker script
10720 file on lines by themselves and after filenames
10722 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10724 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
10726 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10728 * src/z80/peeph-z80.def: removed some peephole rules that don't
10729 work with multibyte arithmetic (fixed bug #937126)
10730 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
10731 to registers and not global variables
10732 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
10733 geniCodePreInc, geniCodePostDec, geniCodePreDec,
10734 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
10735 checking for assignments not internally generated (fixed bug #931895)
10736 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
10737 structure member (fixed bug #930072)
10739 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10741 * src/SDCCmain.c (linkEdit),
10742 * src/hc08/main.c (_hc08_parseOptions),
10743 * as/hc08/Makefile.in,
10744 * as/hc08/aslink.h,
10746 * as/hc08/m08pst.c,
10747 * as/hc08/lkrloc.c (relr, rele),
10748 * as/hc08/lkarea.c (lnkarea)
10749 * as/hc08/lkmain.c (afile, parse),
10750 * as/hc08/lkelf.c: support for ELF output
10751 * as/hc08/lks19.c (s19),
10752 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
10754 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10756 * as/mcs51/lkihx.c: Fixed bug #899105.
10758 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10760 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
10761 .dsp files from Unix to DOS.
10763 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10765 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
10766 function pointers; we have been compliant for several months now.
10767 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
10768 change that was accidently commented out
10769 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
10770 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
10773 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10775 * src/hc08/gen.c: output of all of the internal debugging information
10776 is now controlled by the D() macro; it is disabled by default
10778 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10780 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
10781 harder to keep the same registers during a CAST iCode
10782 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
10783 long via int can be done in a single cast, if the signedness is
10785 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
10786 putchar() in tinibios.c in ds390's library
10788 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10790 * src/SDCCast.c (decorateType): fixed bug #898889,
10791 cast result of a literal complement too
10792 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
10793 fixed check for bitfields
10795 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
10797 * src/SDCCicode.c (geniCodeLogic): made it static,
10798 (geniCodeLogicAndOr): added in order to fix bug #905492,
10799 (ast2iCode): fixed bug #905492
10800 * support/regression/tests/bug-905492.c: added
10801 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
10802 (processParms): fixed bug #927659: don't copy parms, this will clear
10804 * support/regression/tests/bug-927659.c: added
10806 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
10808 * src/SDCCast.c (addCast): don't cast float to char
10809 * device/lib/libsdcc.lib: added _memmove
10811 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
10813 * device/lib/large/Makefile: fixed parallel execution by
10814 replacing `make` by `$(MAKE)`
10816 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10818 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
10819 offsets (fixes bug #923936)
10821 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
10823 * device/lib/small/Makefile: fixed parallel execution by
10824 replacing `make` by `$(MAKE)`
10826 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10828 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
10830 2004-03-23 Scott Dattalo <scott AT dattalo.com>
10832 * src/pic/gen.c (genCpl): multi-byte complements were not working.
10833 * src/regression/Makefile: Regression test was not running.
10835 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
10837 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
10838 complement if possible
10839 * src/SDCCval.c (valComplement),
10840 * src/SDCCicode.c (operandOperation): fixed complement of literal
10841 * support/regression/tests/onebyte.c (testComplement): added
10843 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
10845 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
10846 return an optimized tree; actually replace actParm with the new tree
10847 * src/SDCCast.h: added some parantheses to remove side effects
10848 * support/regression/tests/bug-920866.c
10850 2004-03-21 Scott Dattalo <scott AT dattalo.com>
10851 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
10852 Bit operands were not being handled properly in the pic14 port.
10853 (now src/regression/add.c passes again).
10855 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10857 * src/SDCC.y (labeled_statement): case and default no longer require
10858 a following statement (RFE #893037)
10860 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10862 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
10863 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
10864 disabled (fixes bug #916294)
10865 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
10866 "mov a,acc"; patch provided by Lenny Story
10867 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
10869 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10871 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
10873 * src/ds390/gen.c (genFunction, genEndFunction),
10874 * src/ds390/ralloc.c (ds390_assignRegisters),
10875 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
10876 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
10877 pushed if there are parameters passed on the stack. Also, a cleaner
10878 way to decide if r0/r1 should be pushed/popped. (Together they fix
10881 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10884 * device/lib/mcs51/crtpagesfr.asm,
10885 * device/lib/mcs51/crtxinit.asm,
10886 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
10887 to avoid confusion with Si Lab's SFRPAGE register.
10889 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10891 * src/SDCCglue.c (emitMaps): allow public sfr variables
10892 * src/SDCCglue.c (initialComments): include compiler build date
10893 with compiler version and put the timestamp of the generated
10894 assembly file on a serperate line to be less confusing.
10895 * src/port.h: added genInitStartup hook
10897 * src/ds390/main.c,
10900 * src/pic16/main.c,
10902 * src/z80/main.c: genInitStartup initialize as NULL (default to
10903 historical behaviour)
10904 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
10905 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
10906 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
10907 library instead of hard coding it into the compiler.
10908 * support/regression/ports/mcs51-stack-auto/spec.mk,
10909 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
10910 * device/lib/mcs51/Makefile,
10911 * device/lib/small/Makefile,
10912 * device/lib/large/Makefile,
10913 * device/lib/mcs51/crtpagesfr.asm,
10914 * device/lib/mcs51/crtstart.asm,
10915 * device/lib/mcs51/crtxclear.asm,
10916 * device/lib/mcs51/crtxinit.asm,
10917 * device/lib/mcs51/crtclear.asm,
10918 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
10919 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
10920 and into user configurable files.
10921 * device/lib/clean.mk: clean mcs51 directory too
10922 * support/regression/tests/longlit.c: added static to T1 declaration
10923 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
10924 accesses in the initialization code
10926 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10928 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
10929 OSCTRIMVAL as noted in bug #916008
10931 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10933 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
10934 in loops with multiple exits (reported as incorrect registers
10935 used by Martin Helmling in Sdcc-user list)
10937 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10939 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
10940 made ds390 register extensions look less like error messages
10942 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10944 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
10945 reported by Adam Wozniak in Sdcc-user list
10947 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
10949 * src/SDCCast.c (decorateType): fixed with bug and promotion in
10950 arithmetic optimizations, added debug output
10952 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
10954 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
10955 * sdcc.spec: updated and split sdcc into 3 rpms
10956 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
10957 needed for literals of LEFT_OP and '+'
10958 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
10959 introduced RESULT_TYPE_NOPROM
10960 (geniCodeMultiply): fixed logic for decision if mul is optimized to
10962 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
10963 limited promotion to int only for '*'
10964 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
10966 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
10968 * src/pic16/gen.c (genSkip),
10969 (genc16bit2lit), (gencjneshort): commented out
10970 (is_LitOp): new helper function, checks operand type
10971 (genCmpEq): rewritten
10973 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
10975 * support/regression/tests/bug-908454.c: added
10977 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
10979 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
10980 * src/SDCCicode.c (usualBinaryConversions): op needs int type
10981 (geniCodeCast): cosmetic, don't preserve bit storage class
10982 (geniCodeLeftShift): added promotion
10983 (geniCodeLogic): fixed regression
10984 * src/SDCCsymt.c (computeTypeOr): accept bits too
10985 (compareType): 2nd part of fix for bug #908454, needed for bitfields
10987 2004-03-07 Borut Razem <borut.razem AT siol.net>
10989 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
10991 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
10993 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
10994 version of pic16_genPackRegisters which does not check if ic is a
10996 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
10997 function cause string1.c regression test fails
10999 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11001 * sim/ucsim/configure.in,
11002 * sim/ucsim/configure,
11003 * sim/ucsim/doc/Makefile.in: use docdir
11004 * src/SDCC.y: fixed sbit atrributes
11005 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11006 * src/SDCCast.c (decorateType): |^& need special promotion handling
11008 * src/SDCCsymt.h: moved definition of RESULT_TYPE
11009 * src/SDCCsymt.h (computeType),
11010 * src/SDCCicode.c: computeType() needs op
11011 * src/SDCCsymt.c (checkTypeSanity),
11012 * doc/sddman.lyx: "plain" bitfields are unsigned
11013 * src/SDCCsymt.c (computeTypeOr): added
11014 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11016 * src/SDCCval.c (val*): computeType() needs op
11017 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11018 * support/regression/tests/onebyte.c: added tests for |^&
11020 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11022 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11023 for writing icode into asm output.
11025 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11027 * src/pic16/device.c: added some debug lines enabled
11028 with macro DEBUG_CHECK,
11029 * src/pic16/genarith.c: more debug in genPlus,
11030 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11031 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11032 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11033 * (aopForSym): onStack symbols are re-placed in data memspace,
11034 and onStack flag is cleared,
11035 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11036 copy temporary pcodeop,
11037 * (genPcall): added warning for not updating PCLATU,
11038 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11039 always true for pic16 port,
11040 * (genMultOneWord): NEW, supports integer multiplication,
11041 * (genMult): modified to call genMultOneWord,
11042 * (ifxForOp): added warning when return NULL,
11043 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11044 flag is set before call to operandFromSymbol for implicit
11046 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11047 options.intlong_rent are set by default,
11048 * (_hasNativeMulFor): modified to allow port generation of integer
11050 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11051 set regtype to REG_SFR for all registers, restricting seting the
11052 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11054 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11056 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11057 more than 500 times in the regression tests
11059 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11061 * support/Util/SDCCerr.h,
11062 * support/Util/SDCCerr.c,
11063 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11065 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11066 for symbol conflicts.
11067 * support/valdiags/tests/enum.c,
11068 * support/valdiags/tests/tentdecl.c,
11069 * support/valdiags/tests/struct.c: expect possible error messages
11070 referring to original symbol definitions.
11071 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11073 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11075 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11077 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11079 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11081 * src/pic16/ralloc.c (newReg): fixed bug #908929
11083 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11085 * src/ds390/gen.c: added missing #include "main.h"
11087 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11089 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11090 checking if symbol is already in set,
11091 * src/pic16/device.h: prototype for checkAddSym,
11092 * src/pic16/gen.c: (_G): added entry interruptvector,
11093 * (assignResultValue): removed some commented out lines,
11094 * (genFunction): check for ISR via sym->type, absolute section for
11095 interrupt code is created via a new pBlock, the goto instruction is
11096 placed now correctly at the interrupt vector position, changed all
11097 references from ivec to _G.interruptvector,
11098 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11099 is the interrupt is a high priority one, same for return from ISR,
11100 * src/pic16/glue.c: changed all calls of addSetHead for publics and
11101 externs to calls of checkAddSym,
11102 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11103 pic16_pcode_verbose flag is set,
11104 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11105 * src/pic16/pcoderegs.c: message about how many registers are saved
11106 will only be emitted if pic16_pcode_verbose flag is set,
11108 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11110 * src/ds390/ralloc.h,
11111 * src/ds390/ralloc.c (ds390_regWithIdx),
11112 * src/ds390/gen.c (emitcode),
11113 * src/ds390/main.h,
11114 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11115 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11116 ds390operandCompare, getRegsRead, getRegsWritten,
11117 initializeAsmLineNode): customized instruction size calculation for
11118 ds390, started basis for some register optimizations
11119 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11120 corresponding assembly output
11121 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11122 missing push/pop of r0/r1. Optimized push/pops
11124 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11126 * src/mcs51/main.c (instructionSize): fixed ACALL size
11127 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11129 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11131 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11132 the sorting of rlist with NULL elements
11133 * (print_idataType, print_idata): NEW to create idata sections
11134 * src/pic16/device.h: idataSymSet new variable
11135 * src/pic16/gen.c (genFunction): fixed some bugs in string
11136 comparing, improved the absolute section creation for ISRs,
11137 added FSR0L/FSR0H in registers that are saved in an ISR,
11138 * (genInline): fixed the processing of inline snippets,
11139 now they undergo no process by the peephole optimizer
11140 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11141 are placed in idataSymSet,
11142 * (pic16emitStaticSeg): extern symbols are added in externs,
11143 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11144 switching when aboslute variables are placed in access bank memory
11145 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11146 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11147 commented out with #if,
11148 * (pic16_packRegisters): reintroduce the check for CAST because some
11149 symbols are not correctly handled,
11150 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11151 pCodeInstruction instead of pCode,
11152 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11153 pCodeAsmDir definition,
11154 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11155 directive, then the argument directive is emitted without the leading
11156 tab, hack for inline labels which must be in the first column,
11157 * (compareLabel,pic16_findNextInstruction),
11158 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11159 * (insertBankSwitch): modified for the new pCodeAsmDir,
11161 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11162 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11164 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11166 * (pushSide): commented out with #if,
11167 * (assignResultValue): fixed some typos in saving
11169 * (genPcall): FIXED and sync'ed with genCall,
11170 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11171 * (genNearPointerGet): fixed to handle some more cases,
11172 implementation scheme via table reads,
11173 * (genConstPointerGet): modified to access code memory correct,
11174 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11175 and improved to handle some cases
11176 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11177 instead of "RETLW" for init data
11178 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11179 not IN_DIRSPACE, work around to reduce bank switching when aboslute
11180 variables are placed in access bank memory (<0x80 and >=0xf80),
11181 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11182 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11183 TBLWT_POSTDEC,TBLWT_PREINC
11184 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11185 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11187 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11188 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11189 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11190 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11192 2004-02-29 Borut Razem <borut.razem AT siol.net>
11194 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11195 support/Util/findme.h, support/Util/system.h: enhance binary relative
11196 search for lib and include by using findProgramPath()
11198 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11201 * src/SDCCpeeph.c (pcDistance),
11203 * src/mcs51/ralloc.h,
11204 * src/mcs51/ralloc.c (mcs51_regWithIdx),
11205 * src/mcs51/main.h,
11206 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11207 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11208 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11209 size calculation port specific, started basis for some register
11211 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11212 missing push/pop of r0/r1. Optimized push/pops
11213 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11214 * device/lib/_modsint.c (_modsint),
11215 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11216 and stack version so regression tests pass
11218 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11220 * src/Makefile.in (dep): include SLIBOBJS in dependency check
11221 * src/SDCCast.c (decorateType): catch another small optimization
11223 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11224 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11225 modified to finally use computeType() all over SDCC,
11226 see Feature Request #877103
11227 * src/SDCCval.h: cosmetic
11228 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11229 valCompare(); regression tested in muldiv.c
11230 * support/regression/tests/muldiv.c (testMod): mod sign follows
11233 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11235 * src/SDCCast.c (decorateType): fixed bug #902362
11236 * doc/INSTALL.txt: fixed install instructions for win32
11238 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11240 * device/include/Makefile.in (install): fixed by replacing spaces
11243 * doc/INSTALL.txt: updated for release
11244 * doc/sdccman.lyx: added warning for --xstack being buggy
11246 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11248 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
11249 to eliminate build warnings.
11250 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11252 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11253 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11255 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11256 removed -penable-stack, added comment for stack pragma, added
11257 warning for not initializing the stack/frame registers, removed
11258 comment at interrupts section
11260 Stack is made permanent, there is no ability to disable stack usage.
11261 * src/pic16/device.h,
11262 * src/pic16/device.c: removed all references to USE_STACK macro,
11263 * src/pic16/device.c (pic16_dump_section): when no elements in
11264 rlist, free rlist before return,
11265 * (pic16_dump_int_registers): NEW, internal registers are a new set
11266 of general purpose registers reused by each function,
11267 * (checkAddReg): returns 1 if registers is added to set,
11268 * (pic16_groupRegistersInSection): when a registers is of type
11269 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11270 * src/pic16/device.h: memRange and Assigned Memory are deleted,
11271 SRCASECMP macro is moved here from device.c
11272 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11273 PO_PCLATU, PO_PRODL, PO_PRODH,
11274 * (pic16_pCodeOpType, genMinus,
11275 changed compares to "a" register, with AOP_ACC,
11276 * (pic16_genPlus): fixed some bugs and indented properly,
11277 * (pic16_addSign): changed size to size+offset in the MOVWF
11279 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11280 multiply 8-bit operand by literal, result is 8-bit,
11281 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11282 multiply 2 8-bit operand, result is 8-bit,
11283 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11285 * src/pic16/gen.c: changed accUse to contain WREG only,
11286 * (pic16_emitcomment): renamed to pic16_emitpcomment,
11287 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11288 true, do not use immediate addressing any more unless sym is a
11289 pointer in codespace,
11290 * (aopForRemat): do not use immediate addressing when symbol not in
11291 codespace and when symbol's address is requested,
11292 * (aopOp): for-loop in if(sym->accUse) is modified for the new
11294 * (aopGet): added case for AOP_ACC and don't return "accumulator
11295 bug" but WREG instead,
11296 * (popGetTempReg): pushes contents of temporary register in stack,
11297 * (popReleaseTempReg): pops contents of temporary register from
11298 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11299 * (pic16_popGet): separated case AOP_ACC to return register WREG
11300 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11301 or PO_IMMEDIATE and initializes their instance/offset appropriately,
11302 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11303 the use of immediate pointers to certain cases only.
11305 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11306 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11307 * (assignResultValue, genCall, genRet): modified to use the new
11308 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11309 genPcall is still broken,
11310 * (genFunction): added code to create 'A' type pBlocks when
11311 interrupt functions are generated, code not extensively tested yet,
11312 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11313 * (genEndFunction): modified so ISRs pop stored registers from stack,
11314 * (genMultOneByte): cleanup,
11315 * (AccRsh): added flag andmask, to and result with appropriate mask,
11316 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11317 * (genDataPointerGet): fixed and reenabled its use,
11318 * (genNearDataPointerGet): bugs fixed,
11319 * (genDataPointerSet): bugs fixed,
11320 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11321 pic16_DumpSymbol, pic16_DumpOp,
11322 * src/pic16/genutils.h: function prototypes for the above functions,
11323 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11325 * (pic16emitRegularMap): many many many improvements, but needs a
11327 * src/pic16/main.c: enable_stack in pic16_options is removed,
11328 * (_pic16_parseOptions): removed command line options -penable-stack,
11329 * (_process_pragma): emit stack symbol only when stack pragma is
11331 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11332 redirected to FSR0L/FSR0H pair,
11333 * (pic16_get_op, pic16_get_op2): modifications and improvements,
11334 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11335 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11337 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11338 * (dumpPicOptype): NEW,
11339 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11340 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11341 with movff instruction,
11342 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11343 added pic16_int_regs, some packRegsFor* functions are commented out,
11344 because produce errors,
11345 * src/pic16/NOTES: minor modifications
11347 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11349 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11350 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11352 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11353 * as/mcs51/lkaomf51.c: fixed bug #895763
11355 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11357 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11359 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11361 * doc/sdccman.lyx: added details about the HC08 storage classes and
11362 interrupts, fixed the register usage info for z80 & gbz80
11364 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11366 * doc/sdccman.lyx: added more pic16 port documentation
11367 * device/include/pic16/: added header pic18fregs.h
11369 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11371 * doc/sdccman.lyx: added Vangelis' contribution
11373 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11375 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11376 extend to the next CALL or PCALL, not just to the next CALL.
11378 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11380 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11382 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11384 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11385 bug #895752 and a better fix for bug #716790
11387 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11389 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11391 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11393 * doc/sdccman.lyx: minor changes, minor changed
11395 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11397 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11398 which can't handle SDCC_NEWONEBYTEOPS,
11399 (geniCodeMultiply): removed conversion from mult to shift for pic14
11402 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11405 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11406 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11407 thus fixing bug #895406
11409 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11411 * device/lib/_modsint.c,
11412 * device/lib/_modslong.c: sign follows divisor only
11413 * src/hc08/gen.c (genMultOneByte): if result size is 1,
11414 signs or signedness can be ignored
11415 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11416 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11417 added optimization for IFX,
11418 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11420 reenabled optimization for IFX, which was removed on 2004-01-11
11421 * src/SDCCast.h: added return type IFX
11422 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11423 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11424 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11425 SDCC_OLDONEBYTEOPS selects the old behaviour
11426 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11427 changed again and commented promotion rule
11428 * src/SDCCval.c (valDiv): promotion no longer necessary
11429 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11430 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11432 * support/regression/tests/onebyte.c: added
11434 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11436 * gen.c (genInline): reverted to old code for assemnling inline
11437 code because of bug reported James Chadd
11439 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11441 * ralloc.h: missing declarations from previous patch,
11442 seems that patch for ralloc.h was never applied, fixed
11444 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11445 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11449 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11450 indirect addressing. Marked FSR0 as deprecated
11451 * gen.c (pointerCode): commented out, not needed now
11452 (pic16_popGet2p): new MOVFF helper function
11453 (genGenPointerGet),
11454 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11455 (shiftRLong): removed duplicate debugging info
11457 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11459 * src/ds390/gen.c (genNearPointerGet),
11460 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11461 optimization with bits, but not bitfields.
11462 * src/ds390/ralloc.c (packRegisters),
11463 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11465 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11467 * src/SDCCcse.c (algebraicOpts): copy operands before modification
11469 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11472 * src/SDCCicode.c (operandFromSymbol),
11473 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11474 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11475 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11476 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11477 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11478 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11480 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11481 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11482 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11483 * src/SDCCsymt.c (newSymbol),
11484 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11487 * src/SDCCval.c (newiList): fixed bug #885705
11489 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11491 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11492 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11494 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11496 * device/include/c8051f120.h,
11497 * device/include/c8051f300.h,
11498 * device/include/c8051f310.h: added/updated header files for Silicon
11499 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11500 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11501 in new section Submitting patches
11503 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11505 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11506 genFarPointerGet, genCodePointerGet, genGenPointerGet,
11507 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11509 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11510 genFarPointerGet, genCodePointerGet, genGenPointerGet,
11511 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11513 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11514 genFarPointerGet, genCodePointerGet, genGenPointerGet,
11515 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11517 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11518 genFarPointerGet, genCodePointerGet, genGenPointerGet,
11519 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11520 genGenPointerSet): fixed bug #892400
11521 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11522 to eliminate build warnings.
11523 * src/SDCCast.c (processParms),
11524 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11526 * support/valdiag/valdiag.py: added GCC to the list of defines active
11527 when compiling with gcc
11529 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11531 * support/Util/SDCCerr.h,
11532 * support/Util/SDCCerr.c,
11533 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11534 with an incomplete type (fixed bug #883734)
11535 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11537 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11539 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11541 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11543 * src/SDCCast.c (decorateType),
11544 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11545 function pointer implementation
11546 * support/regression/tests/funptrs.c: added tests to verify both forms
11547 of function pointers work correctly. Added tests to verify parameters
11548 are passed in the correct order.
11550 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
11552 * device.c (regCompare): registers are sorted by ascending
11553 address and increasing size,
11554 * main.c (_pic16_finaliseOptions): removed the declaration
11555 of compiler macro MCU. Now a macro of the format pic18fxxxx
11556 will be defined from the command line
11558 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11559 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11561 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11562 PCOP_RLCF was overwritten!
11563 * gen.c (genSkip): commented out calls to pic16_emitcode,
11564 * (genCmpEQ): fixed "long" compares, only high word did get compared,
11566 * (genRRC): added debugging info,
11567 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11568 overwritten while shifting,
11569 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11570 overwritten while shifting,
11573 * (shiftLLeftOrResult),
11574 * (shiftRLeftOrResult),
11576 * (shiftLLong): Implemented with pic16_emitpcode
11577 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11578 * (genLeftShift): Fixed bug, operand for shift by variable always
11579 was "and"ed with 0x0f,
11580 * (genLeftShiftLiteral),
11582 * (genRightShiftLiteral): added debugging info,
11583 * (genrshFour): added comment,
11584 * (genRightShift): determined signedness from operand "left"
11585 instead of "result"
11587 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11589 * src/SDCCicode.c (geniCodeParms),
11590 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11591 function pointers, fixed function pointer bugs #861242 and #861896
11593 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11595 * device/include/c8051f000.h,
11596 * device/include/c8051f120.h,
11597 * device/include/c8051f300.h: added header files for Silicon
11598 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11600 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11602 * src/SDCCast.c (processParams): added new type flow and restructured
11603 (gatherAutoInit): added new type flow
11604 (addCast): cosmetic changes
11605 (getLeftResultType): added new type flow for array indices, patch
11606 provided by Stas, see FR #877103
11607 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11608 array index patch by Stas
11609 * src/SDCCast.h: added prototype getResultTypeFromType()
11611 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11612 * src/pic/glue.c (pic14emitStaticSeg),
11613 * src/pic16/glue.c (pic16emitStaticSeg),
11614 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11615 for initialization of symbols
11616 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11617 * support/Util/SDCCerr.h:
11618 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11619 * .version: bumped version number to 2.3.8
11620 * device/include/Makefile.in (install),
11621 * doc/Makefile (install): changed to 'rm `find ...`' construct to
11624 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11626 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11627 Slade Rich fixed an optimization bug
11628 * src/pic/pcodepeep.c,
11629 * src/pic/pcoderegs.c
11630 * doc/Makefile (install): added test for directory
11632 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11634 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11635 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11636 * src/pic/ralloc.c (getRegPtr, getRegGpr),
11637 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11638 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11639 * as/mcs51/asexpr.c (term),
11640 * as/hc08/asexpr.c (term): fixed bug #887146
11642 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11644 * src/z80/gen.c (genMult): handle single byte result product
11645 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11646 DUMMY_READ_VOLATILE (fixed bug #886367)
11648 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11650 * support/regression/tests/libmullong.c: fixed logic, on little endian
11651 hosts we ended without a mullong_wrapper()
11653 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11655 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11656 virus/worm forged address usage.
11658 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11660 Fixed promotion, it should be done on AST level:
11661 * src/SDCCast.c (addCast): added promotion to int
11662 (decorateType): updated call to upCast()
11663 * src/SDCCicode.c (geniCodeLeftShift): removed call to
11664 usualUnaryConversions()
11666 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
11668 * support/regression/tests/literalop.c (mulWrapper): Added a
11669 wrapper to remove integer overflow warnings.
11671 * support/regression/tests/float_trans.c: Made work on host.
11673 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11676 * support/regression/generate-cases.py (main): Changed from inline
11679 * doc/Makefile (install): Changed to depth first to get rid of
11680 missing directory install warning.
11682 * as/Makefile (install-doc): Made work on Mac.
11684 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11686 * src/SDCCast.c: added an additional type flow in decorateType() of
11687 opposite direction, see feature request #860006; it's enabled at runtime
11688 by setting the environment variable SDCC_NEWTYPEFLOW
11689 * src/SDCCast.h: changed prototype of decorateType()
11690 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11691 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11692 'char' to 'int' can be omitted, if both operands are 'unsigned char';
11693 see feature request #877103
11694 * src/SDCCval.c: updated call of decorateType()
11695 (valBitwise): fixed bug #882876
11696 (valMinus): added promotion
11697 (valLogicAndOr): result is unsigned
11698 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11699 * src/SDCCsymt.c (computeType),
11700 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11701 must not cause an unsigned operation
11702 * src/pic/glue (pic14emitRegularMap),
11703 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
11705 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
11707 * src/pic/pcode.c (PCodeID): commented out left over debug code
11709 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
11711 * support/valdiag/tests/overflow.c: added shift tests
11712 * src/pic/device.c,
11719 * src/pic/pcodepeep.c,
11720 * src/pic/pcoderegs.c,
11721 * src/pic/ralloc.c,
11722 * src/pic/ralloc.h: applied patch from Slade Rich;
11723 added support for multiple code pages and multiple RAM banks on the
11724 PIC 14 port. The ASM files now no longer simply assume all the
11725 code / RAM are in the same page / bank. This means the linker can
11726 safely allocate code/RAM of separate ASM files to different pages/banks.
11727 * doc/sdccman.lyx: added Slade's tips
11728 * src/mcs51/peeph.def: fixed bug #880768
11730 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11732 * src/hc08/ralloc.c (rematStr): fixed bug #879282
11733 * src/SDCCast.c (decorateType): fixed bug #880197
11735 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
11737 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
11740 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
11741 strtof is not part of C89 and isn't included with Mac OS X.
11743 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11745 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
11746 shiftL2Left2Result): fixed bug #879326
11747 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
11748 (genMultOneByte): fixed bug in signed vs unsigned multiplication
11749 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
11750 address fetch for clr instruction
11751 * device/lib/hc08/_mulint.c: created optimized assembly version
11752 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
11754 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11756 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
11757 proposed in FR #877103
11759 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
11761 * src/SDCCval.c (cheapestVal): added missing checks
11762 * src/SDCCicode.c (usualBinaryConversions): fixed condition
11763 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
11765 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
11767 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
11770 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
11772 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
11773 loaded with the linker search paths (-L arguments) and the libraries
11774 to be linked with the current source (-l arguments). Changes
11775 currently will affect only the pic16 port.
11776 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
11777 include path the port specific paths and port specific libraries,
11778 * gplink command now contains the $3 argument,
11779 * src/pic16/device.h,
11780 * src/pic16/device.c,: structure PIC_device is made public and
11781 renamed to PIC16_device, the same for variable Pics which is renamed
11782 to Pics16. Updated all references to them.
11783 * src/pic16/glue.c (pic16glue): corrected bug with code
11784 initialization which bypassed the variable initializations block.
11786 * device/lib/pic16/Makefile.rules: removed --penable-stack from
11787 COMPILE_FLAGS and added the --nostdinc option
11789 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11791 * device/include/mc68hc908jb8.h: Register defs for another member
11792 of the hc08 family. Contributed by Bjorn Bringert - thanks!
11794 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
11796 Documenting changes from previous commits.
11797 * configure.in (version 1.56),
11798 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
11799 when generating output files to configure the pic16 library,
11800 but now I've commented it out, since gputils aren't installed in the
11801 SF compile farm, so library won't compile
11803 * device/lib/Makefile.in (version 1.56): initially I've added in
11804 target 'all' the prerequestive 'model-pic16' so it compiled the
11805 pic16 library, but now I've commented it out for the same reasons
11807 * added targets 'model-pic16' and 'objects-pic16' to compile the
11809 * added target 'port-specific-objects-pic16' to handle the
11810 generated libraries and copy them into the build/ directory
11811 * added target 'clean-intermediate-pic16' to clean intermediate
11812 files into pic16 directory
11813 * in target 'installdirs' added line to create directory pic16 in
11814 the installation path
11816 * device/include/Makefile.in (version 1.11): in target 'install'
11817 added lines to copy all header files to installation path,
11818 * in target 'installdirs' added line create directory for pic16
11819 headers in the installation path
11821 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
11823 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
11826 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11829 * device/lib/configure.in,
11830 * device/lib/configure: fixed for autoconf 2.57
11832 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11834 * src/z80/main.c (_parseOptions): fixed the portmode= command line
11835 option so that it actually works. Made it specific to the z80, since
11836 the gbz80 doesn't have these kinds of I/O ports.
11838 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11840 * device/include/z180.h,
11841 * device/lib/_memcpy.c,
11842 * device/lib/_memmove.c,
11843 * device/lib/_mulint.c,
11844 * device/lib/ser_ir.c,
11845 * device/lib/ser_ir_cts_rts.c,
11846 * device/lib/_strcmp.c,
11847 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
11848 * src/z80/main.c (_process_pragma): add support for pragmas bank and
11849 portmode; added deprecation warning for bank= and protmode= forms.
11850 Also, guard against buffer overflow.
11851 * src/z80/gen.c (aopGet): generate better code for sfr banked read
11853 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11855 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
11856 changed interrupt vector table generation to only emit declared vectors.
11857 * device/include/Makefile.in: added missing backslash
11858 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
11860 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11862 Mainly changes to support compilation of the device libraries
11863 * src/pic16/device.c: stack is allocated via symbol and not
11864 via literal number. The symbol is placed in the corresponding
11865 position of the data ram
11866 * (pic16_dump_section): relocatable and absolute uninitialized
11867 data are now emitted in sorted order to reduce section naming,
11868 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
11869 weren't marked as being in the access bank,
11871 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
11873 Added portion of GNU PIC Library under the directory
11874 device/include/pic16 and device/lib/pic16. These files
11875 contain the declarations of SFRs for the PIC18Fxx2 devices.
11876 The directory is initialized via configure from toplevel.
11878 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
11880 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
11881 the spilllocations to be compared correctly
11883 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11885 * src/SDCCast.c (decorateType): fixed bug introduced today
11887 2004-01-12 Borut Razem <borut.razem AT siol.net>
11889 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
11890 doc/sdccman.lyx: upper case pragmas are deprecated
11892 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11894 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
11895 in simpler and even better code
11897 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11899 * src/SDCCicode.c (operandOperation): fixed bug #874819
11900 * src/SDCCast.c (decorateType): fixed
11901 char foo (unsigned long ul) { return ul > 0; }
11903 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11905 * doc/sdccman.lyx: Moved and added some sections, small changes
11906 all over. Telling LaTeX to be less strict with word spacing
11907 to better keep the right margin. Changed some notes about
11908 maintainance of the ports in section 3.2.1 - is it OK like this?
11910 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
11912 SDCC source changes:
11913 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
11914 convilong): modified to inform the pic16 port that builtin functions
11917 PIC16 PORT specific changes:
11918 * src/pic16/device.c pic16_dump_equates() added,
11919 processor registers declared internally by the port are emitted in
11920 the translation as equates,
11921 * src/pic16/gen.c: inline code is passed unprocessed to the
11923 * (pic16_popGetLit2): fnuction modified to take second operand as
11924 pCodeOp pointer and not as literal,
11925 * (popRegFromIdx): prefixed with pic16_,
11926 * (pic16_popCombine2): modified to receive already allocated pCode
11928 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
11929 * (genFunction): initializes local stack frame and pushes on stack
11930 all the registers used by this function,
11931 * (genEndFunction): restores all registers from stack and restores
11933 * src/pic16/glue.c (pic16emitRegularMap): various changes and
11935 * (pic16glue): changed the program startup sequence,
11936 * added new dbName code 'A' for functions placed in absolute section
11937 * src/pic16/main.c: added function attribute _naked,
11938 * added pragma 'code' to place a fnuction at an absolute address,
11939 * added command line arguments --debug-ralloc and --pcode-verbose,
11940 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
11941 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
11942 * (pic16_newpCodeOpLit2): modified to take the second operand as
11944 * (pic16_printpBlock): modified to emit each function in a separate
11946 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
11947 UPPER for immediate operands,
11948 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
11950 * src/pic16/peeph.def: all peepholes with movff are commented out,
11951 because there is a problem in the pcode peep optimizer,
11952 * src/pic16/ralloc.c: the register allocator can now reuse local
11953 function symbols for another function. This saves register usage.
11954 * src/pic16/ralloc.h: added flag isLocal in structure regs,
11956 Added file src/pic16/NOTES with information about program writing on
11957 the current port version.
11959 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11961 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
11962 and peephole 252 (array access)
11964 2004-01-09 Borut Razem <borut.razem AT siol.net>
11966 * src/SDCCmain.c : fixed #872250: -l command line defined library
11967 files are scanned before standard library files
11969 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11971 * src/SDCCast.c (decorateType): fixed bug #874046
11973 2004-01-09 Borut Razem <borut.razem AT siol.net>
11975 * support/scripts/sdcc.nsi: remove previous installation
11977 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11979 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
11980 bytes for last interrupt vector (mcs51)
11981 * sdcc.spec: fixed typo
11983 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11985 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
11986 gen51Code): more efficient parameter receive for --model-large
11989 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11991 * src/ds390/main.c,
11992 * src/z80/main.c: added missed needLinkerScript flags (more than
11993 one port structure defined in these file)
11994 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
11997 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
11999 * src/SDCCmain.c: removed various references to DEFAULT_PORT
12000 * src/port.h: added flag needLinkerScript in port->linker
12001 structure to inform whether to create a .lnk file or not,
12003 * src/ds390/main.c,
12005 * src/mcs51/main.c,
12007 * src/pic16/main.c,
12009 * src/z80/main.c: changed appropriately to configure
12010 needLinkerScript flag
12012 * src/pic16/gen.c (genAddrOf): fixed bug #863624
12013 * src/pic/glue.c: added variable udata_section_name to
12014 override default uninitialized data segment definition for
12015 devices only with SHAREBANK memory (reported from Erik Epetrich)
12016 * (pic14emitOverlay): modified to emit a commented overlay segment
12017 directive when no overlay data exist
12018 * (picglue): modified to emit uninitialized data segment
12019 according to udata_section_name
12020 * src/pic/main.c (_pic14_parseOptions): added command line
12021 options --udata-section-name=[name] to override default
12022 udata definition name
12023 * modified _linkCmd and _asmCmd to include compiler passed
12024 arguments via -W option
12025 * src/pic16/main.c: added $l in _asmCmd, changed extension for
12026 object file from '.rel' to '.o' in port->linker structure,
12027 changed size of fptr from 2 to 3 in port structure
12029 2004-01-07 Borut Razem <borut.razem AT siol.net>
12031 * support/scripts/sdcc.nsi: update PATH
12032 * support/scripts/sdcc.ico: craeted
12034 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12036 * device/include/Makefile.in: fix install
12037 * doc/Makefile: fix install
12039 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12041 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12043 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12044 how the function variable allocation summary is displayed; also
12045 include information about variables allocated to the overlay
12048 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12050 * as/mcs51/lkmain.c: Help about -Y option
12051 * as/mcs51/lkarea.c: Fixed gcc warnings
12053 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12055 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12057 * support/valdiag/tests/overflow.c: added
12058 * src/SDCCast.c (decorateType),
12059 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12060 LEFT_OP (left shift)
12062 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12064 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12065 (default behaviour).
12067 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12069 A python script to validate compiler diagnostic messages. It can be
12070 used to verify that sdcc complains about bad c source code and
12071 gives a good location of the error.
12072 * support/valdiag/Makefile,
12073 * support/valdiag/valdiag.py,
12074 * support/valdiag/tests/*
12076 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12078 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12079 * src/SDCCsymt.c (newEnumType),
12081 * support/Util/SDCCerr.c,
12082 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12084 * support/regression/tests/enum.c: added test for enum values that
12085 require at least 2 bytes of storage.
12087 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12089 * src/common.h: added ifndef/define/endif macros
12090 around the header file.
12091 Bug reported from Jesus Calvino-Fraga
12093 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12095 * sdcc.spec: updated
12096 * device/include/Makefile.in: don't install CVS directories
12097 * device/lib/Makefile.in: added removal of CVS directories after install
12098 * doc/Makefile: fixed install, added local_icons
12099 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12100 * src/mcs51/gen.c (genRightShift): fixed bug #870788
12101 * src/ds390/gen.c (genRightShift): fixed bug #870788
12102 * src/SDCCast.c (decorateType): fixed bug #870781
12104 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12106 PIC16 port related changes:
12107 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12108 added variable stackPos,
12110 * gen.c: genCall, assignResultValue: added support for
12111 pushing/retrieving function parameters to/from stack,
12112 genFunction,genEndFunction: setup stack frame for the
12113 generated function,
12114 genAddrOf: will be changed according to bug 863624
12116 * added files genutils.c and genutils.h which contain gen*
12117 debugged and optimised functions extracted from gen.c
12119 * glue.c: added variable 'externs' which holds extern symbols,
12120 pic16emitRegularMap: is modified to properly handle relocatable
12121 symbols under the new scheme,
12122 pic16createInterruptVect: is modified
12123 pic16printPublics: is modified to emit 'global' assembler directives,
12124 added pic16_printExterns to print extern symbols,
12125 pic16glue: initializes stack/frame pointer in the beginning of
12126 the assembly output. Temporary hack, will be corrected later,
12127 because gplink yet does not support stack and SDCC does not
12128 yet support a type of crt0.o object to create the final binary.
12130 * Removed many lines that contain 8051 legacy code.
12131 * The code is finally placed under a 'code' directive.
12132 * Added port specific options.
12134 * _process_pragma: simplified since now we do not need *special*
12135 include file to define SFR registers. But a separate header
12136 will be needed. This will be developed later.
12137 * _pic16_parseOptions: added, parses port specific options:
12138 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12139 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12140 --preplace-udata-with=
12142 * _pic16_setDefaultOptions: modified to initialize section names,
12143 but hack is temporarly out of order since it needs improvement.
12144 * _pic16_genAssemblerPreamble: configuration words are emitted by
12145 their address instead of their name. This part is incomplete and
12146 supports only the 18Fxx2 devices. Other devices will emit an error
12147 during assembly since they do not contain the same set of config
12149 * _pic16_genIVT: is modified,
12151 * pcode.c: added definitions for some hardware registers that are needed
12153 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12154 All PCI entries are updated. Now LFSR is supported.
12155 * Removed pic16_pciTRIS is mentioned by mdubuc in source
12156 * added pic16_newpCodeOpLit2 to support instructions with
12157 two literal arguments
12158 * pic16_pCode2str: corrected code that emits assembler instructions
12159 with two literal operands and those that have an access bit modifier
12160 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12161 this fixes a bug which caused some labels to be lost, when an
12162 assembler directive was added, i.e. banksel,
12163 * pic16_FixRegisterBanking: improved logic that causes the insertion
12165 * InlineFunction: functions that are called once, are not any more
12166 inlined. This can be a port option in the future,
12168 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12170 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12171 hold the corresponding uninitialized symbols,
12172 * pic16_allocProcessorRegister: registers have explicit marked the
12174 * pic16_allocInternalRegister: registers are explicit marked as
12176 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12177 processing list, so bit registers were lost,
12180 * ralloc.h: added field 'accessBank' and original symbol operand
12181 in register definition,
12182 * removed the field isMapped from register definition,
12184 ** Several functions have been removed from various sources:
12185 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12186 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12187 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12188 pic16_assignRelocatableRegisters
12190 ** others have been introduced:
12191 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12192 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12194 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12196 * support/scripts/inc2h.pl: changed definition of BIT_AT
12197 to emit 'sbit at' instead of 'bit at'. This was a request.
12199 PIC16 port related preliminary changes:
12200 * gen.c: prefixed function popRegFromString with
12201 pic16_ and all references to it corrected
12202 * pcode.c: all pic16_pc_* hardware registers prefixed
12203 with underscore (_),
12204 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12205 * ralloc.c: newReg(): when register is REG_SFR then
12206 set address to rIdx,
12207 pic16_allocProcessorRegister(): marks register wasUsed=0
12208 pic16_writeUsedRegs(): added a call to assign processor
12209 registers via pic16_assignFixedRegisters
12211 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12213 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12214 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12215 variables in unused register banks. Also the SSEG is placed
12216 wherever there is enough space for it, and IDATA can be anywhere
12217 in internal RAM. For now compile using -Wl-Y[stack_size].
12218 The mem file is different for this option as well, since it
12219 makes no sense of talking about DSEG lenght.
12221 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12223 * src/SDCClrange.c: fixed bug 869095 that caused segfault
12224 in certain cases, e.g. when ROM assignment, patch provided
12225 from Albert den Haan.
12227 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12229 Many signedness and type propagation fixes:
12230 * src/SDCCicode.c: made geniCodeCast() static
12231 replaced SPEC_ by IS_ (cosmetic)
12232 (operandOperation): fixed div and mod operation
12233 (usualBinaryConversions): added support for promotion of char
12234 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12235 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12236 (geniCodeAdd): an array index will stay unsigned, even if promoted
12238 (geniCodeArray): ditto
12239 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12240 * src/SDCCsymt.c (computeType): added more support for char;
12241 promotion of char is selectable by promoteCharToInt, fixed signedness
12243 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12244 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12245 * src/SDCCval (val*): replaced signedness calculation by
12247 rearranged if-branches (cosmetic)
12248 (valShift): added warning W_SHIFT_CHANGED
12249 (valCompare): fixed problem with different types
12250 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12251 * support/regression/tests/literalop.c: added many cases
12252 * support/regression/tests/ast_constant_folding.c: changed finally to
12254 * .version: new year, new version: 2.3.7
12255 * src/SDCCmain.c (main): applied patch #866468
12256 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12257 provided by Scott Bronson
12258 * doc/sdccman.lyx: updated documentation for sdcdb
12259 updated and added chapter tips
12261 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12263 * src/SDCCsymt.h: missing from yesterday's commits
12265 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12267 * src/SDCC.y (struct_or_union_specifier),
12268 * support/Util/SDCCerr.c,
12269 * support/Util/SDCCerr.h: verify that struct & union tags are used
12272 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12274 * src/SDCCglobl.h: missing from yesterday's commits
12276 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12278 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12279 sft_attributes, struct_declaration, parameter_declaration,
12280 type_name, start_block, declaration_list),
12281 * src/SDCC.lex (check_type): support redefinition of typedef names
12283 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12285 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12286 aligned xdata arrays. Erik helped me with the if clause.
12288 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12290 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12293 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12296 * src/SDCCast.c (newAst_),
12298 * src/SDCCicode.c (ast2iCode, newiCode),
12300 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12301 expr, statement, expression_statement, selection_statement,
12302 iteration_statement, expr_opt, jump_statement): foundation for tracking
12304 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12307 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12309 * support/Util/SDCCerr.c,
12311 * src/SDCCast.c (createCase, createDefault, decorateType),
12312 * src/SDCClabel.c (labelUnreach),
12313 * src/SDCC.y (labeled_statement, jump_statement): More improvements
12315 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12316 (with thanks to Stas Sergeev)
12317 * device/include/time.h,
12318 * device/lib/time.c (CheckTime): suppress unreachable code warning
12320 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12322 * src/SDCCast.c (createIvalCharPtr),
12323 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12325 * support/regression/tests/nullstring.c: tests for these two bugs
12327 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12329 * support/Util/SDCCerr.h,
12330 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12331 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12332 about storage class and 'at' used inside struct or union
12333 * src/SDCCBBlock.c (iCodeFromeBBlock),
12334 * src/SDCCcse.c (ifxOptimize),
12335 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12336 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12337 printIval, emitStaticSeg, emitOverlay),
12338 * src/SDCClabel.c (deleteIfx),
12339 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12340 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12341 gatherAutoInit, processParms),
12342 * support/Util/SDCCerr.h,
12343 * support/Util/SDCCerr.c (werrorfl): Support for better error location
12344 reporting for post-parse errors.
12346 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12348 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12349 implicit casts via union; they don't work on big endian systems
12350 (possible fix for bug #861138)
12352 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12354 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12355 * src/mcs51/main.c: fixed the fix for bug #737001
12357 2003-12-15 Borut Razem <borut.razem AT siol.net>
12359 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12361 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12363 * support/makebin/makebin.c: put output in binary mode
12365 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12367 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12368 xdata and data memory on startup. Set the environment variable
12369 SDCC_NOGENRAMCLEAR to disable this.
12370 * src/mcs51/peephole.def,
12371 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12372 (allows non-interrupt and interrupt code to safely compete for a resource
12373 without the non-interrupt code having to disable interrupts)
12375 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12377 * src/SDCCicode.c (geniCodeAdd),
12378 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12379 with valFromType if type might be a pointer and host is big endian).
12380 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12381 types, not just integer types.
12382 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12383 multiply defined with mismatching "at" address.
12385 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12387 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12388 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12389 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12390 with embedded nulls (fixed bug #753752)
12392 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12394 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12395 Apparently this did not see much testing (endless loop)
12397 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12399 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12401 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12403 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12404 gracefully handle NULL memmap pointers
12406 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12408 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12409 instead of deleting the iCode when an operand is volatile
12410 * src/z80/gen.c (genDummyRead),
12411 * src/mcs51/gen.c (genDummyRead),
12412 * src/ds390/gen.c (genDummyRead),
12413 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12415 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12416 * src/SDCC.y: fixed bug #850420
12418 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12420 Applied z80 i/o port patch from Peter Townson and fixed some operators
12421 to better handle operands in A register.
12422 * device/include/z180.h
12428 * src/z80/peeph-z80.def
12429 * src/z80/peeph.def
12432 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12434 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12436 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12438 * device/lib/hc08/_mullong.c: Removed extra #endif
12440 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12442 * sim/ucsim/hc08.src/inst.cc,
12443 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12444 carries from x to h
12445 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12446 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12447 * device/include/stdarg.h: fixed varargs for hc08
12448 * device/lib/Makefile.in,
12449 * device/lib/hc08/Makefile,
12450 * device/lib/hc08/_mulint.c,
12451 * device/lib/hc08/_mullong.c: fixed some endian problems
12453 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12455 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12456 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12457 * device/lib/_gptrget.c,
12458 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12460 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12462 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12463 * src/SDCCast.c (astErrors): fixed bug #846007
12464 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12466 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12468 * src/SDCCast.c (decorateType): disabled a transformation I added in
12469 revision 1.188 (access to fields of a structure at an absolute address);
12470 it breaks with bitfields, extern declarations, and gcse analysis.
12471 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12472 could be assigned through a pointer, so don't complain.
12473 * src/SDCCast.c (astErrors),
12475 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12477 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12479 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12480 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12481 output of __config directives, since gpasm now supports them
12482 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12483 pre-processor macro, i.e. -DMCU=p18f452
12484 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12485 and modified to handle 'cast' icode similarly to '=' icode
12486 * src/pic16/device.h (typedef struct PIC_device): added field
12487 'extMIface' to indicate that chip has external memory interface
12488 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12489 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12492 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12494 * src/SDCC.y (pointer): fixed bug #846006
12495 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12496 * src/SDCCast.c (decorateType): fixed bug #846009
12497 * src/ds390/peeph.def,
12498 * src/ds390/gen.c (genAnd, genOr),
12499 * src/mcs51/peeph.def,
12500 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12502 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12504 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12511 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12515 * src/SDCCbitv.c: added function to free a bitvector
12516 * src/SDCClrange.h,
12517 * src/SDCClrange.c: added function to recompute the liveranges
12518 * src/avr/ralloc.c,
12519 * src/ds390/ralloc.c,
12520 * src/hc08/ralloc.c,
12521 * src/mcs51/ralloc.c,
12522 * src/pic/ralloc.c,
12523 * src/pic16/ralloc.c,
12524 * src/xa51/ralloc.c,
12525 * src/z80/ralloc.c: recompute the liveranges after register packing
12527 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12529 * src/SDCCloop.c (newInduction): fixed bug #845630
12531 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12533 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12534 inadvertantly left behind from my 2003-11-12 change
12536 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12538 Updated headers I neglected to commit yesterday.
12539 * src/SDCClrange.h,
12542 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12544 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12545 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12546 * src/SDCCopt.c (eBBlockFromiCode),
12547 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12548 the creation of the key hash table from the sequencing so it can be used
12549 earlier (for some GCSE bug fixes still pending)
12551 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12553 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12554 * support/regression/tests/addsub.c: testing genPlus shortcut
12556 2003-11-15 Borut Razem <borut.razem AT siol.net>
12558 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12560 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12562 * src/SDCCcse.c (cseBBlock): fixed bug #527779
12563 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12564 ordering is immaterial.
12565 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12567 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12569 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12570 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12571 (SIGSEV) of bug #840381
12572 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12573 unlink new file before rename if new and old filenames are the same)
12575 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12577 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12578 uninitialized variables) for the mcs51. Set environment variable
12579 SDCC_GENRAMCLEAR to test.
12580 xdata initialization slightly shorter
12582 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12585 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12586 #838241 & 780691 (basicly the same bug)
12587 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12588 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12590 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12592 * src/SDCCmain.c (linkEdit): "fix" #834252
12594 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12596 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12598 * src/SDCC.y: fixed bug #819403
12600 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12602 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12603 the reentrant attribute.
12604 * src/hc08/gen.c (genPackBits): added missing stack readjustment
12605 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12607 * src/SDCCast.c (decorateType): fixed bug with storage class not being
12608 updated during pointer dereference; f.e. ~(((char *)1)*) was being
12609 erroneously reduced to a literal.
12610 * src/hc08/ralloc.c (packRegisters, rematStr),
12611 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12614 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12616 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12617 * doc/sdccman.lyx: changed from 'article' to 'book'
12618 * doc/Makefile: readded test_suite_spec and cdbfileformat
12620 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12622 * device/include/stdlib.h: include malloc.h to comply with ANSI
12623 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12625 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12627 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12628 * doc/clean.mk: also remove *.out files
12629 * doc/sdccman.lyx: some additions, larger top/bottom margins
12631 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12633 * src/SDCC.y: fixed bug #837365
12634 * support/regression/tests/bitopcse.c
12635 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12636 a symbol (might be valop instead)
12637 * device/lib/Makefile.in: added errno.c to HC08SOURCES
12638 * device/lib/clean.mk: added hc08 to the cleaning list
12640 2003-11-04 Borut Razem <borut.razem AT siol.net>
12642 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12644 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12645 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12646 malloc is declared in standard stdlib.h
12648 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12650 * device/lib/hc08/Makefile: need to clean .rel not .o files
12651 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12653 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12657 * src/mcs51/main.c,
12658 * src/ds390/main.c,
12662 * src/pic16/main.c,
12663 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12664 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12665 tests (which uses the port's oclsExpense function)
12671 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12673 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12675 * src/SDCCcse.c (ifxOptimize),
12676 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12677 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12678 deleting the IFX iCode.
12679 * src/hc08/ralloc.c: reduced unneeded slocs
12680 * src/hc08/gen.c: fixed bug in asmopToBoolean
12682 2003-11-04 Borut Razem <borut.razem AT siol.net>
12684 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12685 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12686 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12687 transferred to configure
12689 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12691 Use headers defined in the C[++] standards:
12692 * sim/ucsim/gui.src/serio.src/fileio.cc
12693 * sim/ucsim/gui.src/serio.src/frontend.cc
12694 * sim/ucsim/gui.src/serio.src/main.cc
12695 * sim/ucsim/gui.src/serio.src/posix_signal.cc
12696 * support/Util/NewAlloc.c
12698 * as/mcs51/lklibr.c
12702 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12704 * Added MSVC projects for hc08 assembler and linker:
12705 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
12706 /as/hc08/link_hc08.dsp
12708 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
12710 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
12712 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
12714 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
12716 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12718 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
12720 2003-10-31 Borut Razem <borut.razem AT siol.net>
12722 * support/cpp2/cpplib.h,
12723 support/cpp2/cpplib.c,
12724 support/cpp2/cpplex.c,
12725 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
12726 to switch _asm block preprocessing on / off. Default is
12727 #pragma preproc_asm +
12729 2003-10-31 Borut Razem <borut.razem AT siol.net>
12731 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
12732 when outputting comment blocks (when executed with -C option) and
12733 _asm (SDCPP specific) blocks
12735 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12737 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
12739 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
12741 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
12743 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
12745 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
12746 * src/SDCCast.c (decorateType): fixed bug #832664
12748 2003-10-31 Borut Razem <borut.razem AT siol.net>
12750 * support/cpp2/cpplex.c: fixed for SDCPP:
12751 comments(when executed with -C option) and _asm blocks
12752 were included even if they where in skipped #if block.
12753 Applied solution from GCC cpp 3.3.2
12755 2003-10-31 Borut Razem <borut.razem AT siol.net>
12757 * src/SDCC.lex: sdcc now understands both formats:
12758 '# <line_number> <file_name>' and
12759 '#line <line_number> <file_name>'
12760 * support/cpp2/cppmain.c: sdcpp now generates the standard
12761 '# <line_number> <file_name>' instead of former
12762 '#line <line_number> <file_name>'
12764 2003-10-30 Borut Razem <borut.razem AT siol.net>
12766 * support/cpp2/cpphash.h,
12767 * support/cpp2/cpplib.h
12768 * support/cpp2/cpplex.c,
12769 * support/cpp2/cppmain.c,
12770 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
12772 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12774 Fixed a number of problems revealed by bug #827883.
12775 * src/SDCCloop.c (loopInvariants): Spill location of the
12776 result operand should be recomputed if extracted from
12777 a loop. Also, don't extract assignments of an iTemp
12779 * src/SDCCast.c (isConformingBody): loop reversal should
12780 not occur if the control variable is involved with a
12781 relational operator.
12783 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
12785 * .version: bumped to 2.3.6 to reflect the big improvements
12786 made by Erik and Klaus. Thanks!
12788 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
12790 Replaced the livrange code.
12791 * src/SDCClrange.c: added new LR code
12793 * src/SDCCBBlock.h: removed remainig parts from old LR code
12794 * src/ds390/ralloc.c,
12795 * src/ds390/gen.c: minor fixes to make it work with new code
12797 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12800 * as/hc08/lkrloc.c,
12802 * src/hc08/ralloc.c: Fix various warnings related to the hc08
12803 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
12804 (tweaked fix for bug #818696)
12806 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12808 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
12810 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12813 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
12814 * src/mcs51/gen.c (gencjneshort),
12815 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
12816 more efficient (per Scott Bronson's suggestion)
12818 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12820 Extended the semantics of the critical keyword to include
12821 individual statements. See RFE #827755 and #799831
12826 * support/Util/SDCCerr.c
12827 * support/Util/SDCCerr.h
12832 2003-10-19 Borut Razem <borut.razem AT siol.net>
12834 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
12836 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12838 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
12840 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
12841 and predecrement operand is displayed
12843 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12845 * src/SDCCval.c (valMinus): fixed bug #826041
12847 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12849 Some hc08 related updates that I missed earlier
12850 * sim/ucsim/stypes.h
12851 * support/regression/ports/hc08/spec.mk
12853 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12855 New target "hc08" for the Motorola 68hc08 family of micros
12863 * sim/ucsim/hc08.src/*
12864 * sim/ucsim/configure.in
12865 * src/ucsim/configure
12866 * sim/ucsim/packages_in.mk
12869 * device/include/mc68hc908qy.h
12870 * device/lib/hc08/*
12871 * device/lib/Makefile.in
12872 * support/regression/ports/hc08/*
12873 * support/regression/Makefile
12875 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12877 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
12879 * src/ds390/gen.c (genCast): fixed bug #821957
12881 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
12883 * device/lib/logf.c: "fixed" overlay bug
12884 * support/regression/ports/host/spec.mk: added m library
12885 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
12886 * support/regression/tests/float_trans: added (for Eric)
12888 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
12890 * src/mcs51/gen.c (genCpl): fixed bug
12891 http://sf.net/mailarchive/message.php?msg_id=6263915
12893 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
12895 * src/SDCCast.c (decorateType): added extended constant folding
12896 * src/SDCCsymt.c (computeType): cleanup
12897 * src/SDCCval.c (valShift): minor optimization
12898 * support/regression/tests/ast_constant_folding.c: added
12900 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12902 * src/SDCCmain.c: removed some unintended changes
12904 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12906 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
12907 * src/z80/gen.c: fixed part of bug #817589
12908 * src/SDCCsymt.c (checkFunction): fixed bug #817895
12910 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
12912 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
12923 * src/ds390/ralloc.c
12925 * src/mcs51/ralloc.c
12927 * src/pic16/ralloc.c
12928 * src/xa51/ralloc.c
12930 * src/z80/gen.c: removed unused label "release:"
12932 2003-10-06 Borut Razem <borut.razem AT siol.net>
12934 * src/SDCC.lex: removed definition of unused variables
12935 save_optimize and save_options
12937 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
12939 * clean.mk: removed '=' in "-maxdepth=1"
12940 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
12941 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
12943 2003-10-06 Borut Razem <borut.razem AT siol.net>
12945 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
12946 my_unput() replaced by unput()
12948 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
12950 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
12951 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
12952 type-punned pointer will break strict-aliasing rules"
12953 Old LR behaviour is again default; Klaus' LR can be choosen by
12954 defining the environment variable LRKLAUS
12958 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
12959 * clean.mk: fixed removal of files in bin/CVS/
12960 * device/lib/clean.mk: fixed removal of directories small and large
12961 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
12963 * src/SDCCval.c: removed superflous test for pedantic
12965 2003-10-05 Borut Razem <borut.razem AT siol.net>
12967 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
12968 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
12969 message "unmatched #pragma SAVE and #pragma RESTORE"
12971 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12973 * doc/sdccman.lyx: various additions and updates (interrupts, inline
12974 assembly, critical functions, atomic, nojtbound)
12976 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
12978 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
12984 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12987 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12989 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12991 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
12992 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
12993 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
12995 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12997 * src/z80/gen.c (genRet): fixed bug #524753
12998 * src/z80/gen.c (genCast): fixed internal error on cast from
13000 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13001 fix for bug #477835 to the z80
13002 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13003 for tracking iCodes in the peephole optimizer for z80
13005 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13007 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13008 the other part of bug #814548
13009 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13011 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
13013 * src/SDCCcse.c: fixed part of bug #814548
13015 2003-09-28 Borut Razem <borut.razem AT siol.net>
13017 * src/asm.c: rewrite of printILine() to use temporary file instead
13019 * src/xa51/main.c: commented out declaration of int rewinds
13021 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13023 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13025 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13027 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13028 * src/asm.c (printILine): Fixed bug #811015
13030 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13032 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13035 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13037 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13038 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13039 to correctly handle general case of AOP_PAIRPTR
13040 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13042 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13044 * src/mcs51/ralloc.c (fillGaps),
13045 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13046 register positioning bug)
13048 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
13050 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13052 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13054 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13055 genCodePointerGet, genGenPointerGet, genFarPointerSet,
13056 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13057 (ralloc doesn't intentionally do this now, but perhaps later)
13058 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13059 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13060 register positioning bugs (Fixed bug #762602 and #795325)
13061 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13062 (Fixed bug #808779)
13063 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13064 lines that --i-code-in-asm generates
13066 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13068 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13069 trying to fclose a FILE* that was already closed.
13071 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13073 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13074 of const struct should be treated as if const themselves)
13076 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
13078 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13080 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13082 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13083 Unix (/n) and DOS (/r/n) line terminations.
13085 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13087 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13090 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13092 * src/mcs51/gen.c (genFunction, genEndFunction),
13093 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13094 and restore of EA so that stack offsets to parameters are
13095 correct when using both critical and reentrant/stack-auto.
13096 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13097 size (can be triggered in error if sloc is shared between
13098 different sized objects)
13099 * device/include/float.h: fixed macros to explicitly use
13100 unsigned long where needed
13102 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
13104 Feature req. 799831: added code to allow nesting of critical functions
13105 * src/mcs51/gen.c (genFunction, genEndFunction)
13106 * src/ds390/gen.c (genFunction, genEndFunction)
13108 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13110 * src/SDCCsymt.c (sclsFromPtr),
13112 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13113 support for standard C idiom of memory mapped variables; for
13114 example, *((xdata int*)0x1234) = 1 is now internally equivalent
13115 to xdata int at 0x1234 tempvar = 1.
13116 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13117 provided by Akiya ISHIDA
13119 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
13121 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13122 * src/SDCCval.c (constVal): added reduction from int to char
13123 * src/SDCCval.c (valMult, valDiv): fixed sign handling
13124 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13125 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13127 * support/regression/tests/shifts.c: fixed
13129 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13131 * src/z80/gen.c (genXor): Fixed bug #805445
13133 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13135 Fixed bug #621531 (const & volatile confusion in the type chain).
13136 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13137 refer to the const or volatile state of the pointer itself.
13149 * src/pic16/ralloc.c
13150 * support/regression/tests/const.c
13152 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13154 When checking for duplicated modules, use absolute paths
13155 instead of relative paths. Files changed:
13160 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13162 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13164 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13166 * device/include/string.h: added size_t typedef, changed
13167 prototypes to use size_t, eliminated separate reentrant and
13168 non-reentrant declarations, added _memmove declaration
13169 * device/lib/_memcpy.c: changed to use size_t instead of int,
13170 changed /4 to >>2 to avoid division library call
13171 * device/lib/_memcmp.c,
13172 * device/lib/_memset.c,
13173 * device/lib/_strncat.c,
13174 * device/lib/_strncpy.c,
13175 * device/lib/_strncmp.c: changed to use size_t instead of int
13176 * device/lib/_memmove.c: new file (fixed bug #772294)
13177 * device/lib/Makefile.in: added _memmove.c
13178 * device/lib/z80/asm_strings.s: fixed bug #772290
13179 * support/regression/tests/bitfields.c: attempt to fix host assertion
13180 failure on amd64-unknown-linux2.2
13182 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13184 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13185 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13186 * as/z80/asmain.c (main): fixed bug #801766
13188 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
13190 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13193 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13195 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13196 reported in bug #800609
13198 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
13200 * Top header beautifications in src/pic16 directory:
13201 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13202 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13203 pcoderegs.h, ralloc.c, ralloc.h
13204 * main.c: added top header and GPL license notice
13205 * pcode.c: fixed the if-conditional warning
13207 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
13209 * device/lib/_mullong.c: replaced int by short for gcc
13211 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13213 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13214 and JUMPTABLE iCodes properly now (worked by accident before)
13215 * src/mcs51/gen.c (leftRightUseAcc),
13216 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13217 iCode properly now. Use getSize instead of nRegs since a & b
13218 aren't part of the nRegs tally.
13220 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
13222 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13223 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13224 before instructions that use the _STATUS register
13226 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
13228 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13229 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13230 fetching of the pointer
13231 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13232 copied from genNearPointerSet()
13233 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13234 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13235 If they pop r0/r1 they must be called in the opposite order than aopOp().
13236 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13237 (resp. --stack-auto), prepared for --xstack
13239 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13241 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13243 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
13245 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13246 these ports have their own __sdcc_external_start()
13248 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
13250 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13251 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13252 type for bits was changed. It resulted in bit variables becoming
13253 global, which is not permitted in PIC 14 assembly output.
13255 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13257 * doc/sdccman.lyx: various additions and updates. Rearranged sections
13259 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13261 Z80 and MCS51 linkers complaint if a public symbol is defined
13262 in more than one library module:
13266 * as/mcs51/Makefile.in
13268 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13270 A few small changes that speed up the peephole optimizer.
13274 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13276 Try to make the peephole optimizer smarter by maintaining
13277 an association between the assembly source code and the
13278 iCodes that originated them. Put this information to use
13279 with a new peephole rule condition "notVolatile" so that
13280 the rules can be aggressive yet still safe.
13285 * src/mcs51/peeph.def
13287 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13291 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13292 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13293 if the left or right operand symbols have the accuse flag set.
13295 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13297 Changed the type of the result of the ! (NOT) operator to char;
13298 previously it returned the same type as the source. This allows
13299 us to eliminate all the genFloatNot functions (all of its target
13300 implementations were very buggy) since !float can use the same
13303 * src/SDCCicode.c (ast2iCode): ! returns char
13304 * src/mcs51/gen.c (genNot, genNotFloat),
13305 * src/ds390/gen.c (genNot, genNotFloat),
13306 * src/z80/gen.c (genNot, genNotFloat),
13307 * src/pic/gen.c (genNot, genNotFloat),
13308 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13310 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
13312 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13313 1. Interrupt would not compile properly. Ensure PCLATH register is saved
13314 during interrupts. Ensure WSAVE is located at a shared bank address.
13315 2. Fixed page selection in some places
13316 3. Fixed BTFSS/C to where necessary use registers directly and not simply
13317 the registers name strings.
13318 4. Fixed "signed / unsigned compare" compiler warnings.
13319 5. The PIC port manages its own allocation of the general purpose
13320 registers, but makes no attempt to reuse them. As a result when
13321 compiling it soon runs out of general purpose registers. Some
13322 additional code was added to the files pcode.c and device.c to walk
13323 through the function call tree and rename the registers so that they
13333 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13334 genPlus() & genMinus() when the result is the same as left or right
13336 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13338 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13340 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13342 Made bitfield a distinct type from bit so that bitfields
13343 convert as per ANSI C and bits retain their traditional
13344 boolean style behaviour. Implemented bitfield support in
13352 * src/ds390/gen.c: bit v bitfield split
13353 * src/z80/gen.c: New support for bitfields
13354 * support/regression/tests/bitfields.c: reenabled z80,
13357 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13359 Rules 246.x, 247.x relate to bitfields, the others speed up
13360 access to xdata mapped I/O devices.
13362 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13364 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13366 Cleaned up genPackBits and genUnpackBits and added two helper
13367 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13368 for literal assignments in genPackBits (thanks to Frieder for
13374 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13376 Fixed bug #748310 (pointer to function type mishandled when the
13377 function name is omitted). Also fixed a SIGSEGV when a function
13378 attribute (reentrant, etc) is used on a non-function or on a
13379 function but misplaced before the parameter list.
13381 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13383 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13384 * support/Util/SDCCerr.h,
13385 * support/Util/SDCCerr.c: Added func attr misuse error msg
13387 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
13389 Fixed bug #787649 by anonymous
13390 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13391 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13393 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13395 Fixed numerous bitfield problems.
13397 * src/SDCC.y: More bitfield related error checking
13399 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13400 * support/Util/SDCCerr.h,
13401 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13402 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13403 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13404 * support/regression/tests/bitfields.c: tests added
13406 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13408 Made the constant following the "interrupt" keyword optional. If
13409 omitted, the function will not automatically be given an entry
13410 in the interrupt vector table (similar to #pragma NOIV, but
13411 less syntacticly kludgy). The interrupt number is also now
13412 range checked. Also fixed a bug in the high order bit example
13419 * support/Util/SDCCerr.c
13420 * support/Util/SDCCerr.h
13423 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
13425 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13426 * src/SDCCicode.c (operandOperation): rewritten some ops
13427 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13428 * src/SDCCsymt.c (computeType): literals are handled the same way as any
13430 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13431 be re-activated by defining REDUCE_LITERALS)
13432 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13433 unsigned, but are signed by default
13434 * src/SDCCval.c (constVal): rearranged
13435 * src/SDCCval.c (valMod): preliminary fix
13436 * src/SDCCval.c (valCastLiteral): use TYPE_* types
13437 * support/regression/literalop.c: added, work in progress
13439 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13441 Generate warnings for useless declarations like "char data;"
13442 that don't do what new users expect.
13445 * support/Util/SDCCerr.h
13446 * support/Util/SDCCerr.c
13448 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
13450 * src/SDCCval.c (valMult): fix overflow detection of negative int
13452 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13454 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13456 Changes to support big endian targets:
13469 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
13471 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13472 * device/lib/time.c: fixed warning "integer overflow in expression"
13474 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
13476 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13477 * src/SDCCval.c (constVal): changed default to signed; hex and octal
13478 constants are unsigned; added recognition of "u" flag for unsigned
13479 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13480 * src/SDCCval.c (valDiv, valMod): fixed signdness
13481 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13482 signedness of modulo, left and right shift
13483 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13484 * support/Util/SDCCerr.h: added warning W_INT_OVL
13485 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13486 * src/SDCCast.c (ast_print): improved output of constants
13488 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13490 Fixed some warnings when building with MSVC:
13492 * as/mcs51/asdata.c
13496 * link/z80/aslink.h
13497 * link/z80/lkdata.c
13498 * link/z80/lkeval.c
13503 * support/cpp2/cpplib.c
13507 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
13509 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13511 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13513 * support/librarian/clean.mk: Do not remove Makefile.
13514 * support/librarian/Makefile: added.
13516 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13518 Added librarian to MSVC build:
13521 * support/librarian/librarian.dsp
13523 'configure' not needed for librarian, removed:
13524 * support/librarian/configure
13525 * support/librarian/configure.in
13526 * support/librarian/config_in.h
13527 * support/librarian/Makefile.in
13529 Hopefully these ones built the librarian and the rest of sdcc properly:
13531 * Makefile.common.in
13533 Messed up 'configure', so revert to previous version:
13537 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
13539 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13540 there, while the mantissa of a double is "only" 53 bits wide.
13542 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13544 Adding sdcclib to the build. MSVC project coming soon.
13545 Files added/changed:
13547 * support/librarian/clean.mk
13548 * support/librarian/configure
13549 * support/librarian/configure.in
13550 * support/librarian/config_in.h
13551 * support/librarian/Makefile.bcc
13552 * support/librarian/Makefile.in
13553 * support/librarian/sdcclib.c
13556 * Makefile.common.in
13560 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13562 Linker now complaints if linked modules have conflicting options, for
13563 example, one compiled using --model-large and another one compiled with
13564 --model-small. The following files were modified:
13566 * as/mcs51/asdata.c
13567 * as/mcs51/aslink.h
13569 * as/mcs51/asmain.c
13571 * as/mcs51/i51pst.c
13572 * as/mcs51/lkdata.c
13573 * as/mcs51/lklibr.c
13574 * as/mcs51/lkmain.c
13580 * link/z80/aslink.h
13581 * link/z80/lkdata.c
13582 * link/z80/lklibr.c
13583 * link/z80/lkmain.c
13586 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13588 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13589 as/mcs51/lklibr.c: Generate a warning when a library is not found.
13591 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
13593 * src/z80/mappings.i: fix _mul[us][int,long] entries
13595 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13597 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13599 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
13601 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13602 * support/regression/tests/bitopcse.c: added
13610 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13612 added support for new library format to z80, gbz80 linkers:
13618 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
13620 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13621 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13623 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
13625 added DUMMY_READ_VOLATILE:
13634 * src/SDCCcse.c (algebraicOpts): many improvements
13635 * src/SDCCcse.h: removed algebraicOpts()
13636 * src/SDCCicode.c (picDummyRead): added
13638 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13640 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13641 "Insufficient space in data memory".
13643 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13645 * src/mcs51/gen.c: fixed bug #771358
13646 * src/z80/gen.c: fixed bug #759087
13648 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
13650 * src/pic16/glue.c: minor cleanup by Vangelis
13652 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13654 * device/include/regc515c.h: fixed #758477
13655 * device/lib/_gptrget.c: saving some cycles in generic pointer get
13656 * device/lib/_gptrput.c: saved a few bytes
13657 * my tab spacing is 8, yours too?)
13658 * device/lib/_ser.c: process RX bytes earlier than TX bytes
13659 * device/lib/serial.c: process RX bytes earlier than TX bytes
13660 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13662 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13664 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13666 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13668 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13670 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
13672 * device/lib/Makefile.in: bad fix, reverted to 1.43
13674 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
13676 * device/lib/Makefile.in: added missing z80 object files
13678 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
13680 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13681 pic16 progress by Vangelis:
13684 * src/pic/Makefile:
13691 * pic16/genarith.c:
13696 * pic16/pcodepeep.c:
13699 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13701 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13703 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13705 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
13706 added gbz80 build to MSVC project.
13707 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
13708 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
13709 from 8051 stuff and setup so it links using a .lnk file.
13711 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13713 * support/librarian/sdcclib.c: sdcc librarian.
13714 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
13717 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13719 * as/mcs51/lkmain.c: properly handle extensions in function afile.
13721 2003-07-02 Borut Razem <borut.razem AT siol.net>
13723 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
13724 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
13725 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
13726 src/xa51/main.c, src/z80/main.c:
13727 virtualization of glue() function: each port has it's own glue function,
13728 which is accessed by do_glue function pointer in PORT.general structure
13730 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
13732 * DS800C400 fun, improved ROM interface and tinibios.
13734 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
13736 * More support for DS80C400. Now includes beginning of interface to ROM.
13738 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
13740 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
13742 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13744 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
13746 2003-06-19 Borut Razem <borut.razem AT siol.net>
13748 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
13750 2003-06-19 Borut Razem <borut.razem AT siol.net>
13752 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
13753 fixed Z80 port - crt0.o: cannot open.
13755 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
13757 * support/Util/MySystem.c (merge_command): revert bad fix
13759 2003-06-18 Borut Razem <borut.razem AT siol.net>
13761 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
13763 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13765 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13766 option --use-stdout sends errors to stdout instead of stderr.
13768 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
13770 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
13772 2003-06-15 Borut Razem <borut.razem AT siol.net>
13774 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
13775 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
13776 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
13777 fixed width array of pointers replaced with sets;
13778 multiple include and lib paths ared transferred to preprocessor and linker
13779 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
13780 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
13781 fixed width array of pointers
13782 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
13783 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
13784 fixupPath(), getPathDifference()
13785 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
13786 fixed width array of pointers
13788 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
13790 * src/pic16/ralloc.c: fix warnings
13791 * src/pic16/pcode.c: fix warning
13793 2003-06-10 Scott Dattalo <scott AT dattalo.com>
13795 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
13796 know all the details, but essentially this set of changes enable
13797 the pic16 port to generate movff instructions and generate assembler
13801 * src/pic16/glue.c:
13802 * src/pic16/pcode.c:
13803 * src/pic16/device.c:
13804 * src/pic16/main.c:
13805 * src/pic16/pcode.h:
13806 * src/pic16/pcoderegs.c:
13807 * src/pic16/ralloc.c:
13808 * src/pic16/ralloc.h:
13810 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13812 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
13813 added option --vc, so sdcc errors and warnings are compatible with
13814 Microsoft Visual Studio.
13816 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13818 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
13819 device/lib/libfloat.lib: added atof function.
13821 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
13823 * doc/sdccman.lyx: updated to Lyx 1.3
13824 * doc/cdbfileformat.lyx: updated to Lyx 1.3
13825 * doc/test_suite_spec.lyx: updated to Lyx 1.3
13826 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
13828 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
13830 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
13832 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13834 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
13835 additions to the "related tools/documentation" section
13837 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
13839 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
13841 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
13843 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
13844 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
13846 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
13848 * doc/sdccman.lyx: fix double dash and other minor things
13849 * doc/Makefile: fix double dash
13851 2003-05-28 Karl Bongers(patches from Martin Helmling)
13852 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
13853 condition and ignore commands.
13855 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13857 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
13858 is in parts still quite out of date, I did changes as far as I felt makes sense
13859 for a non-native english speaker.
13860 Please feel free to add to the manual or to correct my changes.
13861 * doc/Makefile: undid touching the date of intermediate tex files.
13863 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13865 * doc/sdccman.lyx: Manual has an index now
13867 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
13869 Finalize muluint/mulsint and mululong/mulslong merging:
13870 * device/lib/_mulint.c
13871 * device/lib/_mullong.c
13872 * device/lib/gbz80/mul.s
13873 * device/lib/gbz80/stubs.s
13874 * device/lib/z80/mul.s
13875 * device/lib/z80/stubs.s
13876 * src/SDCCsymt.c (initCSupport)
13878 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13880 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
13881 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
13882 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
13883 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
13886 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13888 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
13889 the regression tests I'm not brave enough to enable 245.b, 245.c
13890 * doc/sdccman.lyx: added latex preamble for hyperref package.
13891 Using pdflatex this will give you a hyperlinked pdf file with
13892 bookmarks. (prepend '%' before /usepackage if this breaks something)
13894 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13896 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
13898 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
13900 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
13902 2003-05-21 <johan AT balder>
13904 * src/SDCCglue.c (printIval): fixed bug #739934
13906 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
13908 Applied patch from bug 737905 (renamed yylineo to mylineno):
13915 * src/pic16/pcode.c: Cleaned warnings
13916 * src/pic16/pcodeflow.c: Cleaned warnings
13917 * src/pic16/pcoderegs.c: Cleaned warnings
13919 2003-05-19 Scott Dattalo <scott AT dattalo.com>
13921 * src/pic16/pcode.c: Cleaned warnings
13922 * src/pic16/pcodepeep.c: Cleaned warnings
13923 * src/pic16/ralloc.c: Cleaned warnings
13925 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
13927 * doc/sdccman.lyx: fixed bug 739745
13928 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
13930 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
13932 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
13933 it can be defined with CFLAGS when running configure
13934 * src/SDCCmain.c: fixed compiling + linking with object files
13936 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
13938 * configure.in: configure for pic16 port,
13939 added --disable-pic16-port
13940 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
13941 * src/SDCCmain.c: linkOptions is changed to set *,
13942 added if/endif conditional macros to remove options help
13943 messages from optionsTable when a port is not configured, added
13944 support for the PIc16 port in the ports table, when executing
13945 the compiler with no port specified on command line, a default
13946 port is selected with the new macro DEFAULT_PORT which is
13947 defined in port.h, in setDefaultOptions() linkOptions is removed
13948 from initialization assignment, since now it is a set,
13949 parseCmdLine uses setParseWithComma for linkOptions, in
13950 linkEdit() linkOptions are accessed with new function indexSet()
13951 which returns the i'th item of a set variable. See SDCCset.c, in
13952 linkEdit() when calling buildCmdLine(), added linkOptions as
13953 last argument. Now users can pass arguments to gplink via the
13954 -Wl option, main() uses pic16glue() to glue up pic16 programs
13955 * src/SDCCpeeph.c: various changes to support pic16
13956 * src/SDCCset.c: added function void *indexSet(set *, int) to
13957 return the i'th item of the set
13958 * src/SDCCset.h: added function prototype for indexSet()
13959 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
13960 * src/clean.mk: added pic16 in CLEANALLPORTS variable
13961 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
13962 added macro DEFAULT_PORT
13963 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
13964 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
13966 * src/pic16/glue.c: commented out some error producing lines
13967 * src/pic16/main.c: __config directives are commented out to stop
13968 gpasm complaining and test the linkage with gplink, _linkCmd and
13969 _asmCmd changed to be more gplink and gpasm friendly
13970 * src/pic16/peeph.def: peep rule 3 is commented out, since it
13971 produced an error when parsed, peep rule 12 is added to utilize
13972 movff, but it is commented out since the pCode does not support
13973 yet a command with 2 address arguments
13975 2003-05-18 <johan AT balder>
13977 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13978 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
13979 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
13981 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
13982 Added feature to script commands from file.
13984 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
13986 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
13987 * src/SDCCutil.c: include ctype.h for win32
13989 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
13991 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
13993 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
13995 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
13996 Fixed so you can set breakpoints prior to run, run does not stop
13997 on entry now. Add tbreak. Other enhancements and fixes for use
14000 2003-05-12 Borut Razem <borut.razem AT siol.net>
14002 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14004 2003-05-11 Borut Razem <borut.razem AT siol.net>
14006 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14007 the path of bin directory, so that PATH is the only env. variable, which has to be set
14008 in case of standard installation.
14009 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14010 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14011 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14013 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
14015 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14016 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14017 temp files are in the port dir; clean the gen/test directory when
14018 generating new test.c
14019 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14020 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14021 * support/regression/tests/zeropad.c: added
14023 2003-05-09 <johan AT balder>
14025 * src/SDCCglue.c: fixed bug #597940
14027 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
14029 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14030 cache sfr, optimize next,step, fix off by one sourceline,
14031 support ddd list function.
14032 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14034 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
14036 * support/regression/HTMLgen.py: added compare_s2f()
14037 * support/regression/Makefile: redo 1.27
14038 * support/regression/generate-cases.py: redo 1.5
14040 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
14042 * support/regression/tests/float.c: workaround 33 bit hex constant
14043 * support/regression/tests/simplefloat.c: fix division for host
14045 2003-04-29 Scott Dattalo <scott AT dattalo.com>
14047 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14048 that tame's the PIC's over-aggressive optimizer.
14050 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14052 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14055 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
14057 Initial support for DS80C400. "Hello world" runs on TINIm400
14060 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
14062 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14063 * Some notes on ddd usage added in debugger/README
14064 Martin Helmling adding more features and fixes for ddd GUI debugger.
14065 Code added for nexti, stepi, up, down, and other adjustments.
14067 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
14069 * src/pic/pCodepeep.c non-wildcard asmops are now handled
14070 * src/pic/peeph.def Added two rules to optimize carry manipulation
14071 * src/pic/* removed debug printfs
14073 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
14075 * debugger/mcs51/cmd.c: added header newalloc.h
14077 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
14079 * as/Makefile: new EXEEXT
14080 * as/z80/Makefile: remove trailing slash of BUILDIR
14081 * as/z80/clean.mk: new EXEEXT
14082 * Makefile.common.in: add to CFLAGS (and others), don't replace it
14083 * support/cpp2/Makefile.in: new EXEEXT
14084 * src/pic/glue.c (pic14emitRegularMap): fixed warning
14086 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
14088 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14089 EXEEXT was introduced to fix all related problems with targets
14090 "clean", "install" and "uninstall"; a couple of further flaws
14091 especially with "clean" have been fixed too
14092 * as/mcs51/Makefile.in
14093 * as/mcs51/clean.mk
14097 * debugger/mcs51/Makefile.in
14098 * debugger/mcs51/clean.mk
14099 * link/z80/Makefile
14100 * link/z80/Makefile.in
14101 * link/z80/clean.mk
14103 * packihx/Makefile.in
14105 * sim/ucsim/Makefile
14106 * sim/ucsim/clean.mk
14107 * sim/ucsim/avr.src/Makefile.in
14108 * sim/ucsim/avr.src/clean.mk
14109 * sim/ucsim/s51.src/Makefile.in
14110 * sim/ucsim/s51.src/clean.mk
14111 * sim/ucsim/xa.src/Makefile.in
14112 * sim/ucsim/xa.src/clean.mk
14113 * sim/ucsim/z80.src/Makefile.in
14114 * sim/ucsim/z80.src/clean.mk
14115 * sim/ucsim/main_in.mk
14116 * sim/ucsim/packages_in.mk
14117 * sim/ucsim/gui.src/Makefile.in
14118 * sim/ucsim/gui.src/serio.src/Makefile.in
14119 * sim/ucsim/gui.src/serio.src/clean.mk
14122 * support/cpp2/Makefile.in
14123 * support/cpp2/clean.mk
14124 * support/makebin/Makefile
14125 * support/makebin/clean.mk
14126 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14127 * doc/sdccman.lyx: --program-suffix no longer needed
14129 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
14131 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14132 Martin Helmling added support for ddd GUI debugger.
14133 Code added to display assembly, set variables, and other commands
14134 to interface to ddd.
14136 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
14138 * as/Makefile: fix target clean
14139 * as/clean.mk: fix target clean
14140 * as/z80/clean.mk: fix target clean
14142 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
14144 * Makefile.common.in: added AT EXEEXT AT
14145 * configure.in: removed all mingw32 stuff
14146 * configure: rebuilt from configure.in
14147 * doc/sdccman.lyx: updated section "installation"
14148 * support/scripts/sdcc_mingw32: adapted to configure
14149 * support/scripts/sdcc_cygwin_mingw32: added
14151 2003-04-22 Scott Dattalo <scott AT dattalo.com>
14153 * src/pic Added object file support for the PIC port
14154 * src/pic Applied patch from Craig Franklin (this started the object file support)
14155 * src/regression Updated the PIC regression tests for object files
14157 2003-04-20 Borut Razem <borut.razem AT siol.net>
14159 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14160 lklex.c: In function `getfid':
14161 lklex.c:203: warning: array subscript has type `char'
14162 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14163 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14164 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14165 stack handling macros
14167 2003-04-19 Borut Razem <borut.razem AT siol.net>
14169 * "handling space characters in file path" task:
14170 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14171 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14172 * support/Util/MySystem.h: make it self-sufficient
14173 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14174 src/z80/main.c, sdcc/as/mcs51/lklex.c:
14175 handling space characters in file path
14176 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14177 (it will be used by assemblers, which have their own includes, e.g. gpasm)
14178 * support/Util/MySystem.c: handling space characters in executable's path
14180 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
14182 * as/z80/Makefile: fix permanent rebuild of z80
14183 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14184 * support/regression/tests/bitfields.c: added Johan's bitfields.c
14186 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
14188 * src/SDCCopt.c: add special case optimization to replace modulo by
14189 a power of two with a bitwise AND.
14191 2003-04-18 <johan AT balder>
14193 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14195 2003-04-17 <johan AT balder>
14197 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14198 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14200 2003-04-13 Borut Razem <borut.razem AT siol.net>
14202 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14203 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14204 fixed mingw problem in adl_NORMALIZE_PATH
14206 2003-04-12 Borut Razem <borut.razem AT siol.net>
14208 * fixed "#pragma SAVE/RESTORE can not be nested":
14209 * src/SDCC.lex: reworked pragma handling functions
14210 * sdcc/src/SDCCglobl.h: reworked stack handling macros
14211 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14213 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
14215 * src/SDCCutil.c (pathEquivalent): defined but not used
14216 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14217 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14218 * configure: rebuilt from configure.in
14219 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14220 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14221 * device/include/Makefile.in: replace sdcc_datadir
14222 * device/lib/Makefile.in: replace sdcc_datadir
14223 * Makefile.common.in: add LDFLAGS from configure
14224 * packihx/Makefile.in: use LDFLAGS
14225 * src/Makefile.in: use LDFLAGS
14226 * support/cpp2/Makefile.in: add LDFLAGS from configure
14227 * support/makebin/Makefile: use LDFLAGS
14228 * .version: bumped version number to 2.3.5
14230 2003-04-12 Borut Razem <borut.razem AT siol.net>
14232 * completed "different paths" task:
14233 * src/SDCCmacro.c: fixed bug in handling quotes
14234 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14235 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14237 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
14239 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14241 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14243 * ds390/gen.c ds390/peeph.def: fix bug 706781
14245 2003-04-11 Borut Razem <borut.razem AT siol.net>
14247 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14249 2003-04-10 Scott Dattalo <scott AT dattalo.com>
14251 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14252 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14253 set - this bit used to not be set...).
14254 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14255 bad code in PIC Port
14256 * src/regression/and2.c added to test bug 609268
14257 * src/regression/Makefile added and2.c to regression test
14260 2003-04-08 <johan AT CP255758-A>
14262 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14263 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14264 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14266 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
14268 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14270 * support/cpp2/Makefile.in: fix bug #487815
14271 * configure: rebuilt from configure.in
14272 * Makefile.common.in: docdir changed, new path suffixes
14273 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14274 * sdcc_vc_in.h: reflect changes from sdccconf.h
14275 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14276 * src/SDCCutil.h: remove BINDIR hack
14277 * doc/sdccman.lyx: update new path hierarchy
14279 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
14281 * src/SDCCpeeph.c: added okToRemoveSLOC test
14283 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
14285 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14287 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
14289 * src/SDCCpeeph.c: added labelIsReturnOnly test
14290 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14292 2003-04-05 <johan AT balder>
14294 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14295 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14296 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14297 * src/SDCCast.c: fixed a warning
14298 * src/SDCCast.h: fixed a warning
14299 * src/SDCCicode.c (operandFromAst): fixed a warning
14301 2003-04-04 <johan AT balder>
14303 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14304 * src/SDCCast.c (decorateType): fixed bug #715076
14305 * src/SDCC.y: fixed bug #702907
14307 2003-04-03 <johan AT balder>
14309 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14310 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14311 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14312 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14313 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14315 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
14317 * _decdptr.c: fix return values
14318 * _gptrget.c: fix return values
14319 * _gptrgetc.c: fix return values
14320 * _gptrput.c: fix return values
14321 * _mulint.c: fix return values
14322 * as/z80/Makefile: fix 'make -j' problem
14324 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
14326 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14327 * configure.in: big cleanup, updated to autoconf 2.5x
14328 * configure: rebuilt from configure.in
14329 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14330 * sdcc_vc_in.h: reflect changes from sdccconf.h
14331 * doc/Makefile: fixed a flaw in "make install"
14333 2003-04-02 <johan AT balder>
14335 * src/ds390/gen.c (genCmp): no comments
14336 * src/mcs51/gen.c (genCmp): no comments
14337 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14338 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14340 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
14342 * support/regression/generate-cases.py: place generated file in given sub directory
14343 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14344 * support/regression/Makefile: improvements for 'make -j';
14345 side effect: it's simpler and faster now
14347 2003-03-31 Borut Razem <borut.razem AT siol.net>
14349 * src/z80/main.c: link-{port} and as-{port} defined without path
14350 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14352 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
14354 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14356 2003-03-30 Borut Razem <borut.razem AT siol.net>
14358 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14359 changed type of list parameter to set
14360 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14361 * src/port.h: changed type of do_assemble() parameter to set
14362 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14363 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14364 definition of "cppoutfilename" macro with NULL value in preProcess()
14365 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14366 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14367 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14368 replaced with set *binPathSet
14369 * shash_add() deallocates the item, if allready exsists, before adding the new one
14370 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14372 2003-03-30 Scott Dattalo <scott AT dattalo.com>
14374 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14375 a nested for loop bug in the PIC port
14376 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14379 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
14381 * support/Util/dbuf.h: remove C++ stuff to make it portable
14383 2003-03-28 Borut Razem <borut.razem AT siol.net>
14385 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14386 literal strings in stringLiteral()
14387 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14388 * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14391 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
14393 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14395 2003-03-26 <johan AT balder>
14397 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14398 * src/ds390/gen.c (saveRegisters): catched symbol abuse
14399 * src/SDCCast.c (decorateType): fixed " -v < 3"
14401 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
14403 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14404 Added Lenny Story's debug infrastructure changes:
14405 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
14406 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14407 * src/cdbFile.c: added
14408 * src/SDCCdebug.c: added
14409 * src/SDCCdebug.h: added
14410 * src/SDCCast.c (createFunction)
14411 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14412 * src/SDCCmain.c (parseCmdLine, main)
14413 * src/SDCCmem.c (redoStackOffsets)
14414 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14417 * src/avr/gen.c (genAVRCode)
14418 * src/ds390/gen.c (gen390Code)
14419 * src/mcs51/gen.c (gen51Code)
14420 * src/pic/gen.c (genpic14Code)
14421 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14422 * src/xa51/gen.c (genXA51Code)
14423 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14425 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14427 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14428 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14430 2003-03-22 <johan AT balder>
14432 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14434 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
14436 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14437 * doc/cdbfileformat.lyx: added, written by Lenny Story
14438 * doc/Makefile: added cdbfileformat.lyx
14439 * doc/clean.mk: added cdbfileformat.lyx
14441 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
14443 * src/mcs51/peeph.def: fix bug #705773
14445 2003-03-20 <johan AT balder>
14447 An sfr/sbit can have an "at #" AND an initializer
14448 * src/SDCCsymt.c (checkSClass):
14449 * src/SDCCmem.c (allocGlobal):
14450 * src/SDCCmem.c (allocLocal):
14451 * src/SDCCast.c (createBlock):
14453 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
14455 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14457 2003-03-16 <johan AT balder>
14459 Undid the hackup of const and volatile, the problem is much bigger
14461 * src/SDCCast.c:1.171
14462 * src/SDCCglue.c:1.138
14463 * src/SDCCicode.c:1.146
14464 * src/SDCCsymt.c:1.150
14465 * src/SDCCval.c:1.65
14467 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
14469 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14470 * src/ds390/gen.c (genAddrOf): fixed bug #704087
14472 2003-03-13 <johan AT balder>
14474 Hackup const and volatile modifiers in type chains a bit:
14476 * src/SDCCast.c:1.169
14477 * src/SDCCglue.c:1.136
14478 * src/SDCCicode.c:1.143
14479 * src/SDCCsymt.c1.146
14480 * src/SDCCsymt.h1.59
14481 * src/SDCCval.c:1.63
14483 2003-03-12 <johan AT balder>
14485 * src/SDCCBBlock.h: more LRH debugging junk
14486 * src/SDCCcflow.h: more LRH debugging junk
14487 * src/SDCCloop.c: more LRH debugging junk
14488 * src/SDCC.y (struct_declaration): fixed bug #697590
14489 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14490 * src/ds390/gen.c (aopForRemat): fixed bug #700031
14491 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14493 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14494 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14495 test function names must now match exactly).
14496 * src/SDCCcse.c: added special case in findCheaperOp to allow
14497 extending a short integer. Makes less awful code for bug 700121 test case.
14499 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14501 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14502 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14504 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14506 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14507 actually called (operandsNotEqual() was called for all
14508 operandsNotEqualX tests).
14510 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14512 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14513 with shorter literals. Fixes bug 700121.
14515 2003-03-11 <johan AT balder>
14517 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14519 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
14521 * src/SDCCloop.c (mergeRegions): an evil beast is dead
14522 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14524 2003-03-10 Borut Razem <borut.razem AT siol.net>
14526 * src/SDCCmain.c: pipe preprocessor's output
14527 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14528 * sdcc_vc_in.h: define pclose as _pclose for WIN32
14529 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14530 which closes all pipes in pipeSet set
14531 * src/SDCCset.c: free deleted item in function deleteSetItem()
14532 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14533 moved from z80 to src subproject
14534 * .version: increased version number to 2.3.4
14536 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
14538 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14539 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14540 * support/regression/ports/xa51/spec.mk: fix typo
14542 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
14544 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14546 2003-03-09 Borut Razem <borut.razem AT siol.net>
14548 * src/SDCCmain.c: pipe preprocessor's output
14549 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14550 * sdcc_vc_in.h: define pclose as _pclose for WIN32
14551 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14552 which closes all pipes in pipeSet set
14553 * src/SDCCset.c: free deleted item in function deleteSetItem()
14554 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14555 moved from z80 to src subproject
14557 2003-03-09 Borut Razem <borut.razem AT siol.net>
14559 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14560 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14561 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14562 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14563 * src/SDCCglobl.h: unification of WIN32 native definitions
14565 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14567 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14569 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
14571 * src/configure.in: check for endianess (even while cross-compiling)
14572 * src/configure: check for endianess (even while cross-compiling)
14573 * src/configure_in.h: check for endianess (even while cross-compiling)
14574 * src/avr/gen.c: remove old endianess stuff
14575 * src/mcs51/gen.c: remove old endianess stuff
14576 * src/ds390/gen.c: remove old endianess stuff
14577 * src/pic/gen.c: remove old endianess stuff
14578 * src/pic/genarith.c: remove old endianess stuff
14579 * src/pic/glue.c: fix endianess check
14580 * src/pic16/gen.c: remove old endianess stuff
14581 * src/pic16/genarith.c: remove old endianess stuff
14582 * src/pic16/glue.c: fix endianess check
14583 * src/xa51/gen.c: remove old endianess stuff
14584 * src/z80/gen.c: fix endianess check
14585 * src/SDCCglue.c: fix endianess check
14586 * src/ds390/peeph.def: fix bug 700036
14588 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
14590 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14591 * src/configure: find appropriate data-types on host for SDCC's int and long
14592 * src/configure.in: find appropriate data-types on host for SDCC's int and long
14593 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14594 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14596 2003-03-07 <johan AT balder>
14599 some minor cleanups before the big shot
14600 OP_DEFS and OP_USES now use Kevin's protection
14601 new option --nolabelopt
14603 * src/SDCCBBlock.c:
14612 * src/ds390/ralloc.c:
14613 * src/mcs51/ralloc.c:
14614 * src/pic/ralloc.c:
14615 * src/xa51/ralloc.c:
14616 * src/z80/ralloc.c:
14618 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
14620 * src/pic/pcode.c (get_op): fix 64 bit warnings
14621 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14622 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14623 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14624 * support/regression/tests/malloc.c: fix 64 bit warnings
14626 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
14628 * src/mcs51/gen.c (genMinus): fixed bug 696436
14630 2003-03-02 Borut Razem <borut.razem AT siol.net>
14632 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14634 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
14636 * configure.in: test for mkstemp
14637 * sdccconf_in.h: add HAVE_MKSTEMP
14639 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
14641 * device/include/ctype.h: removed warning while using --stack-auto
14642 * device/include/malloc.h: removed warning while using --stack-auto
14643 * device/include/string.h: removed warning while using --stack-auto
14645 2003-02-23 Borut Razem <borut.razem AT siol.net>
14647 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14648 because NDEBUG is defined (see man assert)
14649 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14651 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14653 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14654 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14656 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14658 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14659 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14661 2003-02-18 <johan AT balder>
14663 * as/mcs51/asmain.c (asmbl): module can start with a digit
14664 * as/z80/asmain.c (asmbl): module can start with a digit
14666 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
14668 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14669 * src/asm.c: fix pipe() for Mingw32
14671 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
14673 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14674 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14675 make -V work again; --c1mode reads now from stdin
14676 * doc/sdccman.lyx: added --c1mode
14677 * support/Util/SDCCerr.c: new messages for c1 mode
14678 * support/Util/SDCCerr.h: new messages for c1 mode
14679 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14681 2003-02-15 <johan AT balder>
14683 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14685 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
14687 * doc/sdccman.lyx: Environment variables, -o and other minor things
14689 2003-02-14 <johan AT balder>
14691 * src/xa51/main.c: before anyone really tries to use it :)
14693 * Install doc's in share/sdcc/doc
14694 * removed some obsolete files
14695 * Do a proper make distclean and uninstall
14696 M Makefile.common.in
14699 M device/include/Makefile.in
14700 M device/lib/Makefile.in
14703 M sim/ucsim/doc/Makefile.in
14705 R src/avr/peeph.rul
14706 R src/xa51/peeph.rul
14707 M support/cpp2/Makefile.in
14708 M support/makebin/Makefile
14711 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
14713 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
14715 2003-02-10 Borut Razem <borut.razem AT siol.net>
14717 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
14718 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
14719 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
14720 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
14721 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
14722 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
14723 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
14724 src/z80/Makefile.bcc: Borland Makefile cleanup
14725 * as/z80/Makefile.bcc: Added Borland Makefile
14726 * support/cpp2/borland.h: Removed
14728 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
14730 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
14731 * src/SDCC.lex: new pragma NOIV
14732 * src/SDCCglobl.h: new pragma NOIV
14733 * src/SDCCmem.c: new pragma NOIV
14735 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
14737 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
14739 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
14741 * src/SDCCmain.c: signal handling is switched off by --debug
14742 * doc/Makefile: small fix for install; use clean.mk again
14743 * doc/clean.mk: clean *.pdf and *.html too
14745 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
14747 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
14748 * device/lib/printfl.c: fix a ds390 bug by making it portable
14749 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
14750 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
14751 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
14752 * debugger/mcs51/cmd.c: converted multi-line string literals
14753 * sim/ucsim/globals.cc: converted multi-line string literals
14754 * src/SDCCmain.c: introduced signal handler to remove temp files
14755 * doc/Makefile: small tweaks, implement clean
14756 * doc: removed generated files
14758 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14760 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
14761 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
14762 Address Record is not correctly generated for DS390."
14764 2003-02-02 Borut Razem <borut.razem AT siol.net>
14766 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
14767 * as/mcs51/asm.h: fixed compilation with Borland C
14768 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
14769 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
14770 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
14771 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
14772 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
14773 src/z80/Makefile.bcc: delete $(LIB) only if exist
14774 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
14776 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
14778 * device/include/malloc.h: introduced NULL
14779 * device/include/string.h: introduced NULL
14780 * device/include/stdlib.h: introduced NULL
14781 * device/lib/_memcpy.c: removed NULL
14782 * device/lib/_strcat.c: removed NULL
14783 * device/lib/_strchr.c: removed NULL
14784 * device/lib/_strcmp.c: removed NULL
14785 * device/lib/_strcpy.c: removed NULL
14786 * device/lib/_strcspn.c: removed NULL
14787 * device/lib/_strlen.c: removed NULL
14788 * device/lib/_strncat.c: removed NULL
14789 * device/lib/_strncmp.c: removed NULL
14790 * device/lib/_strncpy.c: removed NULL
14791 * device/lib/_strpbrk.c: removed NULL
14792 * device/lib/_strrchr.c: removed NULL
14793 * device/lib/_strspn.c: removed NULL
14794 * device/lib/_strstr.c: removed NULL
14795 * device/lib/_strtok.c: removed NULL
14796 * device/lib/malloc.c: removed NULL, include own header
14798 2003-02-02 <johan AT balder>
14800 * 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
14801 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
14802 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
14803 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
14804 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
14805 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
14807 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14809 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
14812 2003-02-01 <johan AT balder>
14814 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
14816 2003-01-31 <johan AT CP255758-A>
14818 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
14820 2003-01-30 <johan AT balder>
14822 * src/SDCCBBlock.c: automatic bug detection
14823 * src/SDCCicode.c: automatic bug detection
14825 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14827 * src/SDCCglobl.h: now --xram-size 0 works
14828 * src/SDCCmain.c: now --xram-size 0 works
14830 2003-01-29 <johan AT balder>
14832 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
14834 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14836 * as/mcs51/aslink.h: Added options --xram-size and --code-size
14837 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
14838 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
14839 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
14840 * src/SDCCglobl.h: Added options --xram-size and --code-size
14841 * src/SDCCmain.c: Added options --xram-size and --code-size
14843 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
14845 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
14846 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
14848 2003-01-27 <johan AT balder>
14850 * src/SDCC.y: fixed bug #613764
14852 2003-01-26 <johan AT balder>
14854 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
14855 * src/SDCCsymt.h: fixed bug #673374
14856 * src/SDCCglue.c: fixed bug #661910
14857 * src/SDCCast.c: fixed bug #458099 and 673374
14859 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
14861 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
14862 * as/mcs51/strcmpi.h: added
14863 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
14864 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
14865 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
14866 * as/mcs51/assym.c: strcmpi -> as_strcmpi
14867 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
14868 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
14869 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
14870 * as/mcs51/Makefile.aslink: new module strcmpi
14871 * as/mcs51/Makefile.asx8051: new module strcmpi
14872 * as/mcs51/Makefil.bcc: new module strcmpi
14873 * as/mcs51/Makefile.in: new module strcmpi
14874 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
14876 2003-01-26 <johan AT balder>
14878 * src/SDCCglue.c: reverted back to 1.124
14879 * src/SDCCast.c: reverted back to 1.156
14880 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
14882 2003-01-25 <johan AT balder>
14884 * src/SDCCglue.c: A better fix for bug #661910
14885 * src/SDCCast.c: A better fix for bug #661910
14886 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
14888 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
14890 * src/Makefile.in: remove spawn.o
14891 * src/SDCCmain.c: remove spawn.h
14892 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
14893 * src/spawn.c: removed
14894 * src/spawn.h: removed
14895 * support/regression/ports/ds390/spec.mk: link with -r
14897 2003-01-24 <johan AT CP255758-A>
14899 * src/ds390/gen.c (aopOp): fixed bug #667458
14900 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
14901 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
14902 (createIvalCharPtr): an ival doesn't always have a storage class anymore
14904 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
14906 * src/mcs51/peeph.def: better assembler identation by Frieder
14907 * src/mcs51/gen.c: better assembler identation by Frieder
14909 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
14911 * as/z80/string.h: removed for gcc 3.2
14912 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
14913 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
14915 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
14917 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
14918 * src/SDCCpeeph.c (replaceRule): fix bug #663503
14919 * support/regression/Makefile: separate temp files for ports
14920 * support/regression/generate-cases.py: separate temp files for ports
14921 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14922 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
14924 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
14926 * moved tinitalk to device/examples/ds390
14928 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
14930 * as/mcs51/lkmem.c: rflag is for DS390
14931 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
14932 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
14933 (linkEdit): move mem- and map-files the same way as ihx-files
14934 * src/z80/main.c (_setDefaultOptions): removed --generic
14935 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
14936 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
14937 * src/pic/glue.c (picglue): --c1mode works again
14938 * src/pic16/glue.c (pic16glue): --c1mode works again
14939 * src/asm.c (printCLine): fix #660034
14941 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
14943 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
14944 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
14945 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
14946 * as/mcs51/lkmem (summary): better fix for sp problem
14947 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
14948 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
14949 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
14950 remove --stack-after-data
14952 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
14954 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
14955 * src/SDCCutil.c (join): ugly bug: missing '\0'
14956 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
14958 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
14960 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
14962 * src/pic/main.c (_asmCmd): gpasm supports -o
14963 * src/z80/main.c: more general macros
14964 * device/lib/Makefile.in: remove intermediate files
14966 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
14968 * .version: Bumped version number to 2.3.3
14969 * src/SDCCBBlock.c: new option -o
14970 * src/SDCCglobl.h: new option -o
14971 * src/SDCCglue.c: new option -o
14972 * src/SDCCmain.c: new option -o
14973 * src/asm.c: new option -o
14974 * src/ds390/main.c: new option -o
14975 * src/pic/glue.c: new option -o
14976 * src/pic/pcode.c: new option -o
14977 * src/pic/ralloc.c: new option -o
14978 * src/pic16/glue.c: new option -o
14979 * src/pic16/pcode.c: new option -o
14980 * src/pic16/ralloc.c: new option -o
14981 * src/z80/main.c: new option -o
14982 * device/lib/Makefile.in: use -o
14983 * support/regression/ports/ds390/spec.mk: use -o
14984 * support/regression/ports/gbz80/spec.mk: use -o
14985 * support/regression/ports/mcs51/spec.mk: use -o
14986 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
14987 * support/regression/ports/z80/spec.mk: use -o
14988 * support/regression/ports/ucz80/spec.mk: use -o
14989 * support/regression/ports/xa51/spec.mk: use -o
14990 * support/regression/fwk/lib/timeout.c: fix usage string
14992 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
14993 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
14995 2003-01-07 <johan AT balder>
14997 * src/SDCCast.c (decorateType): fixed bug #600035
14999 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
15000 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15001 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15002 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15003 * src/pic/pcode.c: outcommented unused variable to remove warnings
15004 * src/pic/ralloc.c: outcommented unused variable to remove warnings
15006 2003-01-06 <karl AT turbobit.com>
15007 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15010 2003-01-06 <johan AT balder>
15012 * src/SDCCicode.c: fixed array add
15014 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
15015 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15016 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15018 2003-01-04 <johan AT balder>
15020 * src/SDCCval.c (getNelements): fixed the initialized array of structures
15022 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15023 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15025 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
15026 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15027 * support/regression/tests/bug-524697.c: fit mem usage into 8032
15029 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
15030 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15032 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
15033 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15035 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
15036 * src/mcs51/main.c: removed {bindir}{sep} from aslink
15038 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15040 * in /sdcc/as/mcs51/ changed these files in order to create an
15041 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15042 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
15043 following files to include the previous two files: aslink.dsp,
15044 Makefile.aslink, Makefile.bcc, and Makefile.in.
15046 * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15047 .adb instead of .cdb
15049 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15051 * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15052 value from option --iram-size.
15054 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15056 * /sdcc/as/mcs51/lklist.c: added boundary check before using
15059 2002-09-18 <wiml AT hhhh.org>
15061 * SDCClrange.h: exposed setFromRange() and setToRange()
15062 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15063 packRegsForAccUse() (bug 542397)
15064 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15065 multiple times and emitting the fetch operations more than once
15066 added aopGetUsesAcc() function to allow binary operators to
15067 fetch their operands in the correct order; made genMinus() emit
15068 compact code for X = LITERAL - Y
15070 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15071 * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15072 sprintf() in line 1267.
15074 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15075 * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15078 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15079 Changes to aslink (All the changes are marked with 'JCF'):
15081 * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15084 * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15085 area BSEG. Also moves, if possible, the DATA area down into the internal
15086 ram so more space is available.
15088 * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15091 * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15092 not bytes. Function summary() which creates a memory usage summary
15093 file with extension .mem. Reports of overlaping stack and small stack
15094 size. If the space for the stack is less than 16 bytes aslink trows a
15097 * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15098 the 8051. Option 'y' for memory summary output file.
15100 Changes to sdcc (All the changes are marked with 'JCF'):
15102 * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15104 * /sdcc/src/SDCCglue.c: If a register bank is used, creates an
15105 overlaying area for it (uses RegBankUsed[4]).
15107 * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15108 bank zero as used by default. By default aslink locates the stack
15109 (equivalent to --stack-after-data). Pass option 'y' to aslink for
15110 the creation of the .mem file. Delegates the allocation of data area
15111 to aslink (it is not longer 0x30 by default). If --stack-loc passes
15112 the begining of the stack area to aslink.
15114 * /sdcc/src/SDCCmem.c: If a register bank is used, marks it so
15115 glue() in SDCCglue.c creates an area for it.
15117 2002-09-03 Borut Razem <borut.razem AT siol.net>
15118 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15119 sdcc/src/pic/glue.c:
15120 introduced atexit() handler for teporay files removal in case of
15121 errors, assertions, ...
15123 2002-08-29 Borut Razem <borut.razem AT siol.net>
15124 * sdcc/support/cpp2/auto-host_vc_in.h:
15125 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15126 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15127 Maybe there is a similar problem with BORLANDC? It should be checked!
15129 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15130 corrected improper use of assert: the assignment to clr variable was done inside the assert.
15131 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15132 was not executed, and the compiler (cl) launched a warning:
15133 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15135 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
15136 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15138 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15139 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15141 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15142 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15143 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15144 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15145 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15146 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15147 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15148 - added Release configuration in VS projects
15149 - review of compiler an linker options
15150 - VC .exe files are generated in bin_vc directory, not to interfere
15151 with binaries generated from other projects (cygwin, mingw, bcc ...)
15153 * sdcc/src/yacc.dsp: added
15155 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15156 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15157 and insert the version number definitions from .version
15159 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15161 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15162 added - genarate auto-host.h using auto-host_vc_in.h as template
15165 removed from CVS, generated automatically
15167 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
15168 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15170 2002-08-11 Borut Razem <borut.razem AT siol.net>
15171 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15173 2002-08-10 Borut Razem <borut.razem AT siol.net>
15174 * src/SDCCmain.c (main):
15175 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15176 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15177 The consequence was that some temporary files were not removed.
15180 unification of code in functions tempfilename() and tempfile():
15181 function tempnam() is defined in Visual Studio 6.0 and .NET
15183 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15185 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15186 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15187 - removed compiler command line option /WX: Treats all warnings as errors
15188 - update a list of source files, included into the project
15190 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15191 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15192 changed project type to Generic Project so that can be correcly converted to VS.NET project
15194 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15196 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15198 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15200 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15201 added return 0 statements after assert() to make compiler happy
15203 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15204 added newline in the def file to keep MSC compiler satisfied
15206 * sdcc/src/z80/gen.c:
15207 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15208 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15209 - solved MSC error in function aopDump()
15211 * sdcc_vc.h: define PREFIX as "\\sdcc"
15213 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
15214 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15216 2002-06-22 Scott Dattalo <scott AT dattalo.com>
15217 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15218 - Rewrote the register banking algorithm.
15219 - Added pCode live-range analysis to registers (for now, only non-used and
15220 singly-used registers optimized away)
15222 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15224 * 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.
15226 2002-05-10 Scott Dattalo <scott AT dattalo.com>
15227 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15229 2002-04-22 Michael Hope <michaelh AT vroom>
15231 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15233 * configure.in (DD_COPT): Added include support required for gbdk.
15235 * .version: Bumped version number just to increase it.
15237 * src/SDCCmain.c: Added -nostdinc to the default options.
15239 2002-04-15 Michael Hope <michaelh AT vroom>
15241 * device/lib/z80/printf.c (sprintf): Added.
15243 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15245 * src/z80/peeph.def: Added transpose redundent load rule.
15247 * src/z80/main.c: Added force callee saves for jaune.
15249 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15251 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15253 2002-03-28 Johan Knol <johan AT balder>
15255 * src/SDCCval.c: fixed bug #532436
15257 2002-03-14 Scott Dattalo <scott AT dattalo.com>
15259 Added "char *Processor" field to the port structure.
15262 Added -p option. Allows port dependent processor to be specified.
15265 Initialized the new field char *Processor field to NULL in all ports
15268 Compiler generated registers for interrupt context saving
15269 were not getting allocated.
15271 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
15274 Fixed left shift. Will promote the left side of a left shift
15275 if a) left shifting more than size of operand or b) when assigned
15276 to something size > size of left side
15278 2002-03-14 Scott Dattalo <scott AT dattalo.com>
15280 tons of changes. Register allocation has been
15281 rewritten. Added customization for the various PICs. Flow
15282 analysis is restructured. ...
15284 * src/pic/device.h:
15287 * src/pic/device.c:
15288 Added. device.c is a PIC port hack to accomodate variations
15291 2002-03-13 Michael Hope <michaelh AT vroom>
15293 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
15295 2002-03-04 johanknol <johanknol AT manik>
15297 * /src/SDCCval.c: fixed
15299 const unsigned char arr[][2] = { { 0, 1 } };
15300 t18.c:1: error: Initializer element is not constant
15302 2002-03-04 bela <bela AT manik>
15304 * /device/include/mcs51reg.h:
15305 ds89c420 register definition update
15307 2002-03-03 <johan AT FRIJA>
15309 * support/Util/SDCCerr.c: did something, but don't no why anymore
15311 * support/regression/tests/bug-524691.c: made it a little less shy
15313 * src/SDCCast.c (decorateType): fixed bug #524697
15315 * src/SDCCast.c: made some lineno improvements
15317 * src/SDCCval.c (getNelements): changed warning to error
15319 * src/SDCCglue.c (printIvalArray): changed warning to error
15321 * src/SDCCicode.c: fixed a warning for mingw
15323 * src/SDCCast.c (decorateType): fixed the << promotion for ops
15325 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15327 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
15329 * src/ds390/peeph.def:
15330 Added some more peephole rules
15332 * src/ds390/gen.c: Various fixes & enhancements
15334 * src/SDCClrange.c, src/SDCClrange.h:
15335 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15337 * src/ds390/ralloc.c:
15338 various fixes & enhancements (ds390) specific
15340 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15341 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15344 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15346 2002-03-02 <johan AT FRIJA>
15348 * src/SDCCast.c (decorateType): fixed bug #524708
15350 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15352 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15354 2002-03-01 Michael Hope <michaelh AT vroom>
15356 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15358 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15360 2002-03-01 <johan AT FRIJA>
15362 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15364 * src/SDCCast.c (decorateType): fixed bug #524209
15366 * src/SDCCval.c (valNot): fixed bug #524195
15368 2002-02-26 <johan AT balder>
15370 * src/xa51/gen.c: fixed a warning
15372 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15374 * src/SDCCast.c (decorateType): fixed bug #522534
15376 2002-02-23 <johan AT balder>
15378 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15380 2002-02-22 <johan AT balder>
15382 * src/SDCCast.c: fixed bug #514865
15384 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15386 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
15388 * sdcc/src/SDCCloop.c:
15389 Previous fix was not good. basic blocks that have "break" or "return" are
15390 not really partof a loop , but live ranges used in these blocks should
15391 be live thru the entire loop, so set partOfLoop but don't add them to
15394 2002-02-21 <johan AT FRIJA>
15396 * src/SDCCcse.c: fixed bug #514308
15398 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
15401 Fixed BUG #519583. If a conditional block ended in a return/break
15402 statement inside a loop, it was not being considered part of the loop.
15404 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15406 2002-02-10 Karl Bongers <karl AT turbobit.com>
15409 Fixed up SDCDB debugger somewhat. Updated debugger/README
15410 with lots of comments and notes.
15412 * device/examples/test2.c:
15413 Fix bug, "red" variable not being initialized(compiler complained).
15415 * device/examples/Makefile, examples/test3.c:
15416 Add Makefile in device/examples folder, compiles test3.c
15417 for use as a multiple module SDCDB test case.
15419 * sim/ucsim/cmd.src/cmdset.cc:
15420 Took out debug printfs in ucsim "next" command.
15422 * sim/ucsim/xa.src:
15423 Karl and Johan start ucsim XA support. Most dissassembly working,
15424 about 75% emulation done(plenty of work remaining).
15426 * sim/ucsim/z80.src:
15427 Add Z80 support to ucsim, add test-ucz80 regression test,
15428 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15429 Notice z80 compiler fails on examples/test3.c/crc code.
15431 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
15433 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15434 Added support for --parms-in-bank1
15436 * src/ds390/peeph.def:
15437 added a few more peephole optimzations
15439 * src/ds390/main.c:
15440 1) added __builtin_inp & __builtin_outp used to read in data of given length
15441 from a memory mapped port
15442 2) added __builtin_memcmp
15443 3) added __builtin_swapw swap bytes of a short
15445 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15446 1) handle multiple send & receives from register bank1
15447 2) ralloc can now allocate DPTR1 to some liveRanges
15449 * src/SDCCsymt.c, src/SDCCsymt.h:
15450 changes to handle multiple sends & receives
15452 * src/SDCCptropt.h:
15453 added some pointer arithmetic optimization
15455 * src/SDCCptropt.c:
15456 added some pointer arithmetic optimizations but not stable yet so not
15457 called from anywhere (will get this working shortly)
15459 * src/SDCCopt.c: fixed for multiple sends & receives
15462 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15463 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15464 set preprocessor defines (depending on options)
15466 * src/SDCCicode.c, src/SDCCicode.h:
15467 changes made to handle multiple sends & receives
15470 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15472 * src/SDCCcse.c, src/SDCCcse.h:
15473 added function findbackward def (to be used in upcoming optimization)
15475 * src/SDCCcflow.c, src/SDCCcflow.h:
15476 added function returnAtEnd - to determine if a basic block terminates with
15479 * src/SDCCast.c, src/SDCCast.h:
15480 added option parms-in-bank1
15482 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15483 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15484 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15485 adjusted for --parms-in-bank1 option
15487 * device/include/string.h:
15488 donot redefine "reentrant" keyword
15490 * device/include/ds80c390.h: Added some more SFRs
15492 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
15494 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15496 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
15498 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15500 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
15502 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15504 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
15506 * Added --xram-movc option
15508 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
15510 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15512 2002-01-11 Johan Knol
15514 * Added math lib of Jesus Calvino-Fraga
15516 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
15518 * src/SDCCmain.c (processFile): fix processing of ../../src.c
15519 * support/regression/Makefile: new target test-mcs51-stack-auto
15520 * support/regression/ports/mcs51-stack-auto/spec.mk: added
15522 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
15524 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15526 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
15528 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15530 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
15532 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15534 * src/SDCCglue.h: add definition for printIvalChar()
15536 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
15538 * src/SDCCast.c: fix #498138 by Johan
15540 * src/SDCCglue.c: fix #498138 by Johan
15542 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
15544 * support/regression/Makefile: fix clean
15546 * support/regression/ports/ds390/support.c: fix transmission of last character
15548 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
15550 * /sdcc/src/ds390/gen.c:
15551 a) improved computing address of stack variable
15552 b) took out some #if 0 code
15553 c) improved parmBytes adjustment
15554 d) improved genPlusIncr & genMinusIncr
15555 e) genCmp could generate bad code (when left assigned to DPTR)
15556 f) Fixed bug in hasInc
15558 * /sdcc/src/ds390/ralloc.c:
15559 a) packRegsForSupport could mess up live information (Fixed)
15560 b) packRegsDPTRuse could be incorrect for left & right shift
15562 * /sdcc/src/mcs51/ralloc.c:
15563 packRegsForSupport could mess up the live information (Fixed)
15565 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15567 * /sdcc/src/SDCCast.c:
15568 can reverse a loop even if function call is present as long
15569 as the loop control variable is local & is not passed as parameter
15571 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
15573 * /sdcc/ChangeLog: *** empty log message ***
15575 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15576 More builtin function additions for TININative
15578 * /sdcc/src/ds390/ralloc.c:
15579 Had broken the regression testsuite
15581 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15583 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15584 Added funcattr hasStackParms will be set for reentrant functions when there
15585 are paramteres on the stack, this helps in minimizing frame pointer generation
15586 typeFromStr can handle function pointers now
15588 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15589 *** empty log message ***
15591 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
15593 * /src/ds390/gen.c, /src/ds390/main.c:
15594 More builtin function additions for TININative
15596 * /src/ds390/ralloc.c:
15597 Had broken the regression testsuite
15599 * /src/SDCCast.c: Fixed a bug in dumptree
15601 * /src/SDCCsymt.c, /src/SDCCsymt.h:
15602 Added funcattr hasStackParms will be set for reentrant functions when there
15603 are paramteres on the stack, this helps in minimizing frame pointer generation
15604 typeFromStr can handle function pointers now
15606 * /doc/builtins.txt, /doc/TININative.txt:
15607 *** empty log message ***
15610 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
15612 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15613 ALPHA version for -mTININative
15615 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15616 updated to reflect changes in the port structure
15619 added function do_assemble (similar to do_link) if non-null this function
15620 will be called to do assembly (-mTININative) requires a multi command
15622 added function genAssemblerEnd will be called to generate assembler Epilogue
15625 added _JavaNative to debug info printing
15627 * /src/SDCCmain.c: added option --tini-libid
15628 added port->do_assemble function (-mTININative) has a multi command assemble
15630 * /src/SDCCglue.c: Disabled "constExpr" check
15631 added port->genAssemblerEnd function
15633 * /src/SDCCglobl.h: Added option --tini-libid value
15636 tookout optimizeCompare from the header (has no external references)
15638 * /src/SDCCast.c: made one more function "static"
15640 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
15642 * src/z80/mappings.i: Added z80asm support.
15644 * src/z80/main.c: Added z80asm support on --asm=z80asm
15646 * src/z80/gen.c: Fixed asm portability issues.
15648 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
15650 * src/SDCCglue.c (printExterns): Added global/extern split.
15652 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
15654 * support/regression/Makefile: added test for mcs51 model large
15656 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15658 * support/regression/ports/gbz80/spec.mk: added -mgbz80
15660 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
15662 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
15664 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
15666 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15668 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15670 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
15672 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15674 * support/regression/tests/simplefloat.c: Port to mcs51.
15676 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
15677 * support/regression/tests/bug-485362.c: Added.
15679 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15681 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15683 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15685 * src/z80/gen.c (aopDump): Added a dump function.
15687 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
15688 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15690 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15692 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15694 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15696 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15698 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15700 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15702 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
15704 * support/regression/ports/ds390/support.c: Use tinibios.
15706 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
15708 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
15710 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
15711 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
15713 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
15715 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
15717 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
15719 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
15721 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
15722 (packRegsForIYUse): Created and optimised.
15724 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
15726 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
15727 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
15729 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
15731 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
15733 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
15735 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
15737 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
15739 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
15741 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
15743 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
15745 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
15747 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
15749 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
15751 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
15752 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
15753 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
15755 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
15757 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
15758 (genNotFloat): Added.
15759 (genUminusFloat): Added.
15761 * device/lib/z80/Makefile: Added floating pt stubs.
15763 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
15765 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
15767 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
15769 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
15771 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
15773 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
15775 * sdcc/support/regression/Makefile: Add port ds390.
15777 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
15779 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
15781 * sdcc/support/regression/ports/ds390/spec.mk: Added.
15783 * sdcc/support/regression/ports/ds390/support.c: Added.
15785 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
15787 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
15789 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
15791 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
15793 * device/include/malloc.h: Added z80 and gbz80 support.
15795 * device/lib/gbz80/heap.s: Added.
15797 * device/lib/z80/heap.s: Added.
15799 * device/lib/malloc.c: Added z80 and gbz80 support.
15801 * support/regression/tests/malloc.c (testMalloc): Added.
15803 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
15805 * support/regression/tests/bug-478094.c: Added.
15807 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
15809 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
15811 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
15813 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
15815 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
15817 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
15819 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
15821 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
15823 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
15825 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
15827 * support/regression/tests/bug-477927.c: Added.
15829 * src/z80/peeph.def: Added minor rules.
15831 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
15833 * src/z80/peeph.def: Added jump optimisation modification.
15835 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
15837 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
15839 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
15841 * support/regression/tests/funptrs.c: Added.
15843 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
15845 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
15847 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
15849 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
15851 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
15853 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
15854 (movLeft2ResultLong): Created.
15856 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
15857 (joinPushes): Added. Joins two char pushes into a word push.
15859 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
15861 * support/cpp2/Makefile.in (install): Added creation of dest dir.
15863 * support/makebin/Makefile (install): Added creation of dest dir.
15865 2001-10-24 Karl Bongers <karl AT turbobit.com>
15867 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
15869 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
15871 * src/z80/ralloc.c: Turned off faulty pack for one use.
15873 * src/z80/peeph-gbz80.def: Removed redundent restart options.
15875 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
15877 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
15879 * support/regression/Makefile: Improved clean
15881 * support/regression/ports/gbz80/spec.mk: Added clean
15883 * support/regression/ports/host/spec.mk: Added clean
15885 * support/regression/ports/z80/spec.mk: Added clean
15887 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
15889 * support/regression/ports/mcs51/timeout.c: little improvements
15891 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
15893 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
15895 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
15897 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
15899 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
15901 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
15903 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
15905 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
15906 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
15908 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
15910 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
15912 * src/mcs51/main.c (_linkCmd): Added bin path to command.
15914 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
15916 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
15918 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
15920 * support/regression/tests/longor.c: Added.
15922 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
15924 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
15926 * as/mcs51/aslink.h: define PATH_MAX
15928 * as/mcs51/asm.h: define PATH_MAX
15930 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
15932 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
15934 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
15936 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
15938 * src/SDCCglobl.h: define PATH_MAX
15940 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
15942 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
15944 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
15946 * src/z80/gen.c (gencjneshort): Fixed
15948 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
15950 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
15952 * support/regression/tests/bug-469671.c: Added.
15954 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
15956 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
15958 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
15960 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
15962 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
15964 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
15966 * src/device/lib/_mulint.c : removed hint: nooverlay bug
15968 * src/device/lib/_mullong.c : removed hint: nooverlay bug
15970 * src/device/lib/_divuint.c : removed hint: nooverlay bug
15972 * src/device/lib/_divulong.c: removed hint: nooverlay bug
15974 * src/device/lib/_moduint.c : removed hint: nooverlay bug
15976 * src/device/lib/_modulong.c: removed hint: nooverlay bug
15978 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
15980 * 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.
15982 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
15984 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
15986 2001-10-07 <johan AT FRIJA>
15988 * device/lib/gets.c (gets): fixed the return value.
15990 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
15991 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
15993 * 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.
15995 * 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.
15997 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
15999 * src/pic/gen.c: Removed Safe_strdup.
16001 * configure.in: Added option to enable libgc support.
16003 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16004 (bitVectUnion): Optimised.
16005 (bitVectIntersect): Optimised.
16006 (bitVectBitsInCommon): Optimised.
16007 (bitVectCplAnd): Optimised.
16009 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
16011 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16013 * src/SDCCmain.c: distinguish between assembler debug and plain options
16015 * src/avr/main.c: remove standard assembler options
16017 * src/ds390/main.c: remove standard assembler options
16019 * src/mcs51/main.c: remove standard assembler options
16021 * src/port.h: removed "PENDING" comment
16023 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16025 * src/device/lib/_mulint.c : new, with assember functions
16027 * src/device/lib/_mullong.c : new, with assember functions
16029 * src/device/lib/_divuint.c : with assember functions
16031 * src/device/lib/_divsint.c : with assember functions
16033 * src/device/lib/_divulong.c: with assember functions
16035 * src/device/lib/_divslong.c: with assember functions
16037 * src/device/lib/_moduint.c : with assember functions
16039 * src/device/lib/_modsint.c : with assember functions
16041 * src/device/lib/_modulong.c: with assember functions
16043 * src/device/lib/_modslong.c: with assember functions
16045 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
16047 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16049 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
16050 replaced _mululong.c and _mulslong.c by _mullong.c
16052 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16054 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16056 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16058 * src/SDCCglue.c: test, if win32api is available for MINGW
16060 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16062 * src/SDCCsymt.c: no more _modifier in printTypeChain()
16063 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16064 * support/regression/ports/gbz80/spec.mk: removed GENERIC
16065 * support/regression/ports/host/spec.mk: removed GENERIC
16066 * support/regression/ports/mcs51/spec.mk: removed GENERIC
16067 * support/regression/ports/z80/spec.mk: removed GENERIC
16069 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
16071 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16073 * support/regression/tests/bug-467035.c: Created.
16075 2001-10-01 <johan AT FRIJA>
16077 * src/SDCC.y: fixed bug #466586 part 1
16079 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
16081 * SDCCicode.c: z80 has no generic pointers
16082 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16084 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
16086 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16088 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
16090 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16092 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16094 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
16096 * configure.in: Fixed up so that ucsim is only configured once.
16098 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16100 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16101 (getPathDifference): As above.
16103 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
16105 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16107 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
16108 * .version: Updated to 2.3.1
16110 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16111 Added copyright header.
16113 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16114 (assemble): Added support for macro based assembler commands.
16115 (linkEdit): Added support for macro based linker commands.
16116 (preProcess): Changed the pre-processor to use macros.
16117 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16118 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16120 * device/lib/z80/crt0.s: Added module name for debugging.
16122 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
16124 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16126 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16128 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16130 * src/Makefile.in: Added SDCCmacro and SDCCutil
16132 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
16134 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16136 2001-09-16 <johan AT FRIJA>
16138 * 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.
16140 2001-09-15 <johan AT FRIJA>
16142 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16143 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16145 2001-09-11 <johan AT FRIJA>
16147 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16149 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
16151 * support/regression/tests/bug-460444.c: Added test case.
16153 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16154 (genCast): Added justification for all of the asserts.
16156 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
16158 * support/regression/support.c: _xdata replaced by xdata
16160 * support/regression/spec.mk: removed _generic
16162 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
16164 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16166 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16167 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16169 * src/z80/peeph.def: Added a rule to optimise shift then compare.
16171 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16173 * support/regression/tests/bug-460010.c: Added test case.
16175 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16177 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
16179 * support/regression/Makefile: inter-port-clean adjusted for mcs51
16181 * support/regression/testfwk.c: removed workaround for bug #436344
16183 * support/regression/tests/bp.c: use less memory with mcs51
16185 * support/regression/tests/bug-441448.c: use less memory
16187 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16189 * support/regression/collate-results.py: typo
16191 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
16193 * support/regression/tests/fetchoverlap.c: Added new test case.
16195 * support/regression/tests/bp.c: Added new test case.
16197 * support/regression/tests/bug-448984.c: Added new test case.
16199 * support/regression/tests/pow2shifts.c: Added new test case.
16201 * src/z80/gen.c: Turned off the noise it normally generates for the release.
16202 (genlshTwo): Fixed right shift for count > 8.
16204 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16206 2001-09-08 <johan AT FRIJA>
16208 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16210 2001-09-07 <johan AT FRIJA>
16212 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16214 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16216 2001-09-06 <johan AT FRIJA>
16218 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16219 * bernhard noted me at this: "() equals to (void)" (1.38)
16221 2001-09-05 <johan AT FRIJA>
16223 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16225 2001-09-04 <johan AT FRIJA>
16227 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16230 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
16232 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
16234 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
16236 * link/z80/aslink.h: Fixed path for PATH_MAX
16238 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
16240 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16242 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16244 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16246 * 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.
16248 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
16250 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16251 (genCmp): Fixed up genCmp for the GB with longs.
16253 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16255 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16257 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16259 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16261 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
16263 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
16265 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
16267 * 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.
16269 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16271 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
16273 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
16275 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16277 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
16279 * sim/ucsim/configure: little improvement of Cygwin-detection
16280 * sim/ucsim/configure.in: little improvement of Cygwin-detection
16281 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16282 * support/regression/tests/bug-221100.c: small changes for mcs51
16283 * support/regression/tests/bug-221168.c: small changes for mcs51
16284 * support/regression/tests/bug-227710.c: small changes for mcs51
16285 * support/regression/tests/staticinit.c: small changes for mcs51
16286 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16287 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
16288 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601