1 2006-11-27 Borut Razem <borut.razem AT siol.net>
3 * support\cpp2\cppexp.c, support\cpp2\hashtable.h,
4 support\cpp2\Makefile.in, support\cpp2\cppfiles.c,
5 support\cpp2\output.h, support\cpp2\cppinit.c,
6 support\cpp2\cpplib.c, support\cpp2\cpplib.h,
7 support\cpp2\Makefile.bcc, support\cpp2\cpphash.c,
8 support\cpp2\cppdefault.c, support\cpp2\system.h,
9 support\cpp2\cpphash.h, support\cpp2\cpplex.c,
10 support\cpp2\cppdefault.h, support\cpp2\mbchar.c,
11 support\cpp2\prefix.c, support\cpp2\except.h,
12 support\cpp2\hwint.h, support\cpp2\cppmacro.c,
13 support\cpp2\line-map.h, support\cpp2\sdcpp.dsp,
14 support\cpp2\sdcc.h, support\cpp2\mkdeps.c,
15 support\cpp2\version.c, support\cpp2\cppmain.c,
16 support\cpp2\version.h, support\cpp2\hashtable.c,
17 support\cpp2\cpperror.c:
18 synchronized with GCC CPP release version 3.3.6,
19 the latest where cppmain.c still exists.
20 * support\cpp2\sdcppmain.c, support\cpp2\sdcppinit.c: added
22 2006-11-27 Borut Razem <borut.razem AT siol.net>
24 * support/cpp2/cpplex.c:
25 fixed _asm ... _endasm handling bug, introduce with GCC CPP
27 * support/cpp2/cpplib.c: removed definitions of unused variables
29 2006-11-26 Borut Razem <borut.razem AT siol.net>
31 * support/cpp2/libiberty.h: commented out x*alloc() declarations
32 since they are redefined by macros in support/cpp2/sdcc.h
33 * support/cpp2/sdcc.h: x*alloc macro redefinition
35 2006-11-25 Borut Razem <borut.razem AT siol.net>
37 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
38 support/cpp2/configure, support/cpp2/Makefile.in,
39 support/cpp2/cppfiles.c, support/cpp2/output.h,
40 support/cpp2/cppinit.c, support/cpp2/cpplib.c,
41 support/cpp2/config.h, support/cpp2/cpplib.h,
42 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
43 support/cpp2/cppdefault.c, support/cpp2/config.in,
44 support/cpp2/system.h, support/cpp2/cpplex.c,
45 support/cpp2/cpphash.h, support/cpp2/mbchar.c,
46 support/cpp2/cppdefault.h, support/cpp2/prefix.c
47 support/cpp2/hwint.h, support/cpp2/mbchar.h,
48 support/cpp2/prefix.h, support/cpp2/cppmacro.c,
49 support/cpp2/configure.in, support/cpp2/intl.h,
50 support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
51 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
52 support/cpp2/version.c, support/cpp2/cppmain.c,
53 support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
54 support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
55 support/cpp2/cpperror.c,
56 support/cpp2/libiberty/safe-ctype.c,
57 support/cpp2/libiberty/safe-ctype.h,
58 support/cpp2/libiberty/splay-tree.c,
59 support/cpp2/libiberty/obstack.c,
60 support/cpp2/libiberty/lbasename.c,
61 support/cpp2/libiberty/splay-tree.h,
62 support/cpp2/libiberty/obstack.h:
63 synchronized with GCC CPP release version 3.2.3,
64 the latest before integration of cpp into gcc
65 * support/cpp2/except.h, support/cpp2/line-map.c,
66 support/cpp2/line-map.h,
67 support/cpp2/libiberty/hex.c,
68 support/cpp2/libiberty/concat.c,
69 support/cpp2/libiberty/filenames.h: added
70 * support/cpp2/intl.c: deleted
72 2006-11-24 Borut Razem <borut.razem AT siol.net>
74 * src/SDCC.y: enabled compilation of empty source file
75 * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
76 "ISO C forbids an empty source file"
77 * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
78 if all the code is ifdefed out.
80 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
82 * src/hc08/gen.c (genPcall): fix for bug #1601032
84 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
86 * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
87 * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
88 * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
89 * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
90 * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
91 * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
92 * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
93 * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
94 * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
95 * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
96 * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
97 * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
98 * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
99 * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
100 * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
101 Renamed to all upper case as per the standard set by SiLabs
103 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
105 * device/include/mcs51/C8051F520.h: new, added
106 * device/include/mcs51/compiler.h: added link about predefined macros
108 2006-11-23 Raphael Neider <rneider AT web.de>
110 * src/regression/Makefile: add -L path to fresh library
111 * src/regression/simulate: emphasize FAILED output
112 * src/regression/create_stc: output _failures from gpsim
113 * src/regression/compare4.c,
114 * src/regression/rotate6.c: fixed char literals,
115 all compile, all run =8-D
117 * src/pic/pcode.h: added isPCASMDIR macro
118 * src/pic/gen.c (genAnd): fixed bit offset
119 * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
120 packBits): unified register numbering schemes,
121 (newReg): do not insert stack registers into hash table,
122 (initStack): unpinned pseudo stack, simplified,
123 (typeRegWithIdx): fixed retrieval of stack registers,
124 * src/pic/pcode.c (addpCodeComment,sameBank): added,
125 (pCodeReplace): removed invalid assertion,
126 (insertPCodeInstruction): fixed newly added labels,
127 (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
128 FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
129 DumpFlow): removed unsed (broken?) code,
130 (insertBankSel): prevent STATUS from being BANKSELed,
131 (FixRegisterBanking): rewritten from scratch, implemented generic
132 optimizations (suppress BANKSELs to same register and to registers
133 present in all banks),
134 (AnalyzeBanking): update flow after BANKSELection
136 * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
137 sharebank, let linker place it, mark STKxx symbols as emitted
139 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
141 * src/regression/arrays.c,
142 * src/regression/bank1.c,
143 * src/regression/bool2.c,
144 * src/regression/compare7.c,
145 * src/regression/compare8.c,
146 * src/regression/compare9.c,
147 * src/regression/compare10.c,
148 * src/regression/configword.c,
149 * src/regression/for.c,
150 * src/regression/mult1.c,
151 * src/regression/pointer1.c,
152 * src/regression/rotate6.c,
153 * src/regression/string1.c,
154 * src/regression/struct1.c,
155 * src/regression/Makefile: make PIC14 regression tests run again
156 (3 fail, 6 won't compile)
158 2006-11-21 Raphael Neider <rneider AT web.de>
160 * device/include/pic16/pic18f4550.h,
161 * device/include/pic16/pic18f4455.h,
162 * device/lib/pic16/libdev/pic18f4550.c,
163 * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
164 * configure.in: removed superfluous closing bracket
166 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
168 * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
171 2006-11-21 Raphael Neider <rneider AT web.de>
173 * src/pic/device.{c,h}: added pic14_getPIC()
174 * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
175 (genAnd): added PIC code for one case, fixes #1597044
176 * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
177 SFRs that are present in all banks (e.g., STATUS)
179 2006-11-20 Raphael Neider <rneider AT web.de>
181 * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
182 INCFSZ/INCFSZW and declared them as changing Z bit,
183 (insertPCodeInstruction): correctly invert the above instructions,
185 (DoBankSelect): don't panic on po_immediates
187 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
190 * as/link/mcs51/lkihx.c (newArea),
191 * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
192 * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
194 2006-11-11 Raphael Neider <rneider AT web.de>
196 * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
197 bitfield symbols, fixes #1579535 (once more...).
199 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
201 * support/regression/generate-cases.py,
202 * support/regression/fwk/include/testfwk.h,
203 * support/regression/fwk/lib/testfwk.c: used code pointers,
204 (about 50kByte less code generated for mcs51)
206 2006-11-06 Borut Razem <borut.razem AT siol.net>
208 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
209 debugger/mcs51/configure: fixed failed check because the function
210 rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
211 who submitted the patch for gpsim.
212 * debugger/mcs51/configure.in: removed the result message
213 * debugger/mcs51/Makefile.in: fixed the config.status warning
214 "... seems to ignore the --datarootdir setting"
216 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
218 * device/include/mcs51/c8051f020.h,
219 * device/include/mcs51/c8051f040.h,
220 * device/include/mcs51/c8051f060.h,
221 * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
222 * src/z80/gen.c (gencjneshort),
223 * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
225 2006-10-31 Borut Razem <borut.razem AT siol.net>
227 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
228 debugger/mcs51/configure: get readline version
230 2006-10-30 Borut Razem <borut.razem AT siol.net>
232 * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
233 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
234 debugger/mcs51/configure: locate readline even when cross compiling
235 * support/scripts/sdcc.nsi: include readline5.dll into the setup package
237 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
239 * device/include/mcs51/serial_IO.h: putchar() and getchar() using
242 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
244 * device/include/malloc.h,
245 * device/lib/calloc.c,
247 * device/lib/malloc.c,
248 * device/lib/realloc.c: moved definition of struct into sources
249 * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
251 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
253 * as/asx8051.dsp: corrected output directories
254 * as/link/hc08: new directory for hc08 linker
255 * as/hc08/aslink.h, as/link/aslink.h,
256 * as/hc08/aslink.mak, as/link/hc08/aslink.mak,
257 * as/hc08/clean.mk, as/link/hc08/clean.mk,
258 * as/hc08/link_hc08.dsp, as/link/hc08/link_hc08.dsp,
259 * as/hc08/lkaomf51.c, as/link/hc08/lkaomf51.c,
260 * as/hc08/lkarea.c, as/link/hc08/lkarea.c,
261 * as/hc08/lkdata.c, as/link/hc08/lkdata.c,
262 * as/hc08/lkelf.c, as/link/hc08/lkelf.c,
263 * as/hc08/lkihx.c, as/link/hc08/lkihx.c,
264 * as/hc08/lklibr.c, as/link/hc08/lklibr.c,
265 * as/hc08/lkmain.c, as/link/hc08/lkmain.c,
266 * as/hc08/lkmem.c, as/link/hc08/lkmem.c,
267 * as/hc08/lkrloc.c, as/link/hc08/lkrloc.c,
268 * as/hc08/lks19.c, as/link/hc08/lks19.c,
269 * as/hc08/Makefile.aslink, as/link/hc08/Makefile.aslink,
270 * as/hc08/Makefile.bcc, as/link/hc08/Makefile.bcc,
271 * as/hc08/Makefile.in, as/link/hc08/Makefile.in,
272 * as/link/hc08/conf.mk,
276 * sdcc.dsw: moved hc08 linker to as/link/hc08
277 * as/hc08/lkeval.c, as/link/mcs51/lkeval.c, as/link/lkeval.c,
278 * as/hc08/lkhead.c, as/link/mcs51/lkhead.c, as/link/lkhead.c,
279 * as/hc08/lklex.c, as/link/mcs51/lklex.c, as/link/lklex.c,
280 * as/hc08/lklist.c, as/link/mcs51/lklist.c, as/link/lklist.c,
281 * as/hc08/lknoice.c, as/link/mcs51/lknoice.c, as/link/lknoice.c,
282 * as/hc08/lksym.c, as/link/mcs51/lksym.c, as/link/lksym.c,
283 * as/link/mcs51/aslink.dsp,
284 * as/link/mcs51/Makefile.in: factored out the common files
285 * as/hc08/lkstore.c: deleted, use the one already in as/link/
286 * as/clean.mk: extra cleaning common files
287 * as/link/mcs51/strcmpi.c, as/strcmpi.c: moved
288 * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
289 * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
291 2006-10-29 Raphael Neider <rneider AT web.de>
293 * src/pic/ralloc.c (newReg): create aliases for registers with
294 multiple names to fix #1579535 and #1584001,
295 (regWithIdx,dirregWithName): resolve aliases on lookup
296 * src/pic/pcode.c (DoBankSelect): die with error message on failing
298 * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
299 to prevent build errors on small devices
301 2006-10-28 Raphael Neider <rneider AT web.de>
303 * src/pic/gen.c (genFunction,genCall): drop "same code page"
304 assumption within interrupt handlers, fixes #1584940
305 * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
306 "emitted" to avoid emitting them again in udata
308 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
310 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
313 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
315 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
316 Initialize uart only if SM0 and SM1 are zero. Also, use flag to turn
317 on/off CR to CRLF conversion.
319 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
321 * doc/sdccman.lyx: updated IRQ section
323 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
325 * device/lib/serial_io.c: removed
326 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
327 replacements for serial_io.c
329 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
331 * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
333 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
335 * device/lib/serial_io.c: Default putchar() and getchar() for
336 mcs51 uses serial port.
338 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
340 * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
342 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
344 * support/regression/ports/mcs51/support.c: smaller
345 _sdcc_external_startup()
346 * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
348 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
350 * device/lib/gbz80/crt0.s,
351 * device/lib/gbz80/crt0_rle.s,
352 * device/lib/gbz80/div.s,
353 * device/lib/gbz80/fstubs.s,
354 * device/lib/gbz80/heap.s,
355 * device/lib/gbz80/mul.s,
356 * device/lib/gbz80/putchar.s,
357 * device/lib/gbz80/stubs.s,
358 * device/lib/z80/crt0.s,
359 * device/lib/z80/crt0_rle.s,
360 * device/lib/z80/div.s,
361 * device/lib/z80/fstubs.s,
362 * device/lib/z80/heap.s,
363 * device/lib/z80/mul.s,
364 * device/lib/z80/putchar.s,
365 * device/lib/z80/stubs.s: reverted, I was mistaken
367 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
369 * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
370 * support/regression/ports/mcs51/support.c: removed race
371 condition on TI in _putchar allowing to use serial port mode 0
373 2006-10-20 Borut Razem <borut.razem AT siol.net>
375 * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
377 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
379 * device/lib/gbz80/crt0.s,
380 * device/lib/gbz80/crt0_rle.s,
381 * device/lib/gbz80/div.s,
382 * device/lib/gbz80/fstubs.s,
383 * device/lib/gbz80/heap.s,
384 * device/lib/gbz80/mul.s,
385 * device/lib/gbz80/putchar.s,
386 * device/lib/gbz80/stubs.s,
387 * device/lib/z80/crt0.s,
388 * device/lib/z80/crt0_rle.s,
389 * device/lib/z80/div.s,
390 * device/lib/z80/fstubs.s,
391 * device/lib/z80/heap.s,
392 * device/lib/z80/mul.s,
393 * device/lib/z80/putchar.s,
394 * device/lib/z80/stubs.s: removed all leading underscores from area names
396 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
398 * support/regression/ports/mcs51/support.c: use highest baudrate so the
399 regression tests are not waiting in the simulator for simulated
400 transmission of debug output
402 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
404 * device/lib/printf_large.c: slightly smaller
405 * doc/sdccman.lyx: do not use spaces within html links
407 2006-10-16 Borut Razem <borut.razem AT siol.net>
409 * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
410 debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
411 debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
412 debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
413 debugger/mcs51/configure:
414 [ 1185668 ] add gnu readline support to sdcdb - enabled
416 2006-10-16 Raphael Neider <rneider AT web.de>
418 * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
419 fixes #1577882, removes close to all banking optimizations
421 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
423 * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
424 variables in code memory
425 * support/regression/tests/absolute.c: added test for this
427 2006-10-15 Raphael Neider <rneider AT web.de>
429 * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
431 (BankSelect): emit BANKSEL before touching linker-placed regs,
434 2006-10-10 Raphael Neider <rneider AT web.de>
436 * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
437 * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
438 * src/pic/main.c (_pic14_parseOptions),
439 * src/pic/main.h: mostly reverted to previous state, now use results
440 from SDCCmain.c's argument parsing
442 2006-10-10 Borut Razem <borut.razem AT siol.net>
444 * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
445 debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
446 [ 1185668 ] add gnu readline support to sdcdb -
447 prepared for READLINE, not enabled yet,
448 thanks to <tal.bav AT gmail.com>
450 2006-10-10 Raphael Neider <rneider AT web.de>
452 * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
453 * src/pic16/devices.inc,
454 * device/include/pic16 (pic18f[24]620.h),
455 * device/include/pic18fregs.h,
456 * device/lib/pic16/pics.all,
457 * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
458 18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
459 Gary Plumbridge and Anton Strobl
461 2006-10-10 Raphael Neider <rneider AT web.de>
463 * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
464 --stack-siz=NUM options to configure the argument passing stack
465 * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
466 * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
467 (pic14_getSharebankSize): obey --stack-siz=NUM,
468 (pic14_getSharebankAddress): obey --stack-loc=NUM
470 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
472 * doc/sdccman.lyx: added to the manual
473 * doc/figures/ddd_example.png: added (neither pdflatex nor
474 most browsers seem to like the .eps file)
476 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
478 * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
479 to /tmp and /var/tmp acc. LSB
480 * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
482 * support/regression/tests/onebyte.c: added test
484 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
486 * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
488 2006-10-05 Borut Razem <borut.razem AT siol.net>
490 * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
492 - sdcc.dsw: changed property eol-style to CRLF
493 - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
495 2006-10-04 Raphael Neider <rneider AT web.de>
497 * device/include/pic/{pic16f84.h,pic16f84a.h},
498 * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
499 from patch #1522504, thanks to Robas Teodor
501 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
503 * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
506 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
508 * src/pic16/glue.c (pic16emitMaps),
509 * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
510 * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
511 * device/lib/pic16/libc/string/memcpypgm2ram.c,
512 * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
514 * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
515 * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
517 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
519 * support/librarian/sdcclib.c: Added option -l.
520 * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
522 * device/lib/make51lib.bat: added. Allows building mcs51 libraries easily
523 using Windows command prompt.
525 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
527 * device/lib/libsdcc.lib: added module rand
528 * src/ds390/ralloc.c (rematStr),
529 * src/hc08/ralloc.c (rematStr),
530 * src/mcs51/ralloc.c (rematStr),
531 * src/z80/ralloc.c (rematStr): made output more consistent
532 * src/mcs51/gen.c: cosmetic changes
534 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
536 * src/port.h: added mem.cabs_name to PORT
543 * src/z80/main.c: added cabs_name initializers
544 * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
546 (emitMaps): emit absolutes in code memory into cabs_name
548 * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
549 * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
550 * support/regression/fwk/include/testfwk.h: added define for at
551 * support/regression/tests/absolute.c: added, new
553 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
555 * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
556 optimizations, see also patch 887161 by Stas Sergeev
557 * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
558 to be necessary anymore,
559 (102, 103, 104, 127): renamed all occurances of bp to _bp
561 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
563 * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
564 thanks Weston T. Schmidt for patch 1555221
565 * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
566 * src/SDCCicode.c(geniCodeMultiply): small optimization
568 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
570 * device/include/stdlib.h: added rand prototypes
571 * device/lib/rand.c: new, added
572 * device/lib/Makefile.in: added rand.c
574 * src/z80/peeph-gbz80.def,
575 * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
577 2006-09-20 Raphael Neider <rneider AT web.de>
579 * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
581 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
583 * as/link/aslink.h: cosmetic changes
584 * as/link/mcs51/Makefile.in,
585 * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
587 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
590 * as/link/mcs51/aslink.h,
591 * as/link/z80/aslink.h: merged and moved to as/link/
593 * as/link/mcs51/lkstore.c: moved to as/link/
594 * as/link/clean.mk: remove *.o
595 * as/link/mcs51/alloc.h: deleted
596 * as/link/mcs51/lkarea.c: added lnksect prototype
597 * as/link/mcs51/lkdata.c,
598 * as/link/mcs51/lklex.c,
599 * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
600 * as/link/mcs51/lkmem.c,
601 * as/link/mcs51/lknoice.c: removed include strcmpi.h
602 * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
603 * as/link/mcs51/aslink.dsp,
604 * as/link/mcs51/Makefile.aslink,
605 * as/link/mcs51/Makefile.bcc,
606 * as/link/mcs51/Makefile.in: updated for moved files
607 * as/link/z80/lkarea.c,
608 * as/link/z80/lkhead.c,
609 * as/link/z80/lklex.c,
610 * as/link/z80/lklibr.c,
611 * as/link/z80/lklist.c,
612 * as/link/z80/lkmain.c,
613 * as/link/z80/lkrloc.c,
614 * as/link/z80/lksym.c: synced with mcs51
615 * as/link/z80/lkdata.c,
616 * as/link/z80/lkeval.c,
617 * as/link/z80/lkihx.c,
618 * as/link/z80/lks19.c: cosmetic changes
619 * as/link/z80/Makefile.in,
620 * as/link/z80/linkgbz80.dsp,
621 * as/link/z80/linkz80.dsp: updated for moved files
623 2006-09-16 Borut Razem <borut.razem AT siol.net>
625 * debugger/mcs51/sdcdb.c: partially fixed
626 [ 1203664 ] sdcdb fails to open files w. two "." periods
627 * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
628 debugger/mcs51/symtab.h: fixed indenting
629 * configure.in, configure: up to date with latest Maarten's changes
631 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
634 as/aslink.dsp, as/link/mcs51/aslink.dsp,
635 as/link/mcs51/aslink.h, as/mcs51/aslink.h,
636 as/link/mcs51/aslink.mak, as/mcs51/aslink.mak,
637 as/link/mcs51/lkaomf51.c, as/mcs51/lkaomf51.c,
638 as/link/mcs51/lkarea.c, as/mcs51/lkarea.c,
639 as/link/mcs51/lkdata.c, as/mcs51/lkdata.c,
640 as/link/mcs51/lkeval.c, as/mcs51/lkeval.c,
641 as/link/mcs51/lkhead.c, as/mcs51/lkhead.c,
642 as/link/mcs51/lkihx.c, as/mcs51/lkihx.c,
643 as/link/mcs51/lklex.c, as/mcs51/lklex.c,
644 as/link/mcs51/lklibr.c, as/mcs51/lklibr.c,
645 as/link/mcs51/lklist.c, as/mcs51/lklist.c,
646 as/link/mcs51/lkmain.c, as/mcs51/lkmain.c,
647 as/link/mcs51/lkmem.c, as/mcs51/lkmem.c,
648 as/link/mcs51/lknoice.c, as/mcs51/lknoice.c,
649 as/link/mcs51/lkrloc.c, as/mcs51/lkrloc.c,
650 as/link/mcs51/lks19.c, as/mcs51/lks19.c,
651 as/link/mcs51/lkstore.c, as/mcs51/lkstore.c,
652 as/link/mcs51/lksym.c, as/mcs51/lksym.c,
653 as/link/mcs51/Makefile.aslink, as/mcs51/Makefile.aslink,
654 as/link/mcs51/alloc.h,
655 as/link/mcs51/clean.mk,
656 as/link/mcs51/conf.mk,
657 as/link/mcs51/Makefile.bcc,
658 as/link/mcs51/Makefile.in,
659 as/link/mcs51/readme.390,
660 as/link/mcs51/strcmpi.c,
661 as/link/mcs51/strcmpi.h,
663 as/mcs51/Makefile.bcc,
664 as/mcs51/Makefile.in,
667 sdcc.dsw: moved mcs51 linker to as/link/mcs51
669 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
672 * as/link/Makefile.in,
673 * as/link/z80/linkgbz80.dsp,
674 * as/link/z80/linkz80.dsp,
684 * link/z80/linkgbz80.dsp,
685 * link/z80/linkz80.dsp,
700 * link/z80/Makefile.in,
702 * sdcc.dsw: moved link/ to as/link/
704 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
706 * as/mcs51/i51mch.c (machine): fixed warning
708 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
710 * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
712 2006-09-09 Borut Razem <borut.razem AT siol.net>
714 * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
715 sdcdb WIN32 native port
716 * src/clean.mk: fixed
718 2006-09-08 Borut Razem <borut.razem AT siol.net>
720 * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
722 2006-09-08 Raphael Neider <rneider AT web.de>
724 * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
725 * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
726 to gplink to disable processor mismatch warning and to allow
727 the use of devices with only aliased (shared) memory banks,
728 (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
730 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
732 * doc/sdccman.lyx: Some re-formating plus example on using
733 #pragma preproc_asm +/-
735 2006-09-07 Borut Razem <borut.razem AT siol.net>
737 * support/scripts/sdcc.nsi: added SDCDB executables in a separate
740 2006-09-06 Borut Razem <borut.razem AT siol.net>
742 * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
744 * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
746 2006-09-05 Borut Razem <borut.razem AT siol.net>
748 * configure.in, configure: support for winsock2
749 * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
750 debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
751 debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
752 debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
753 debugger/mcs51/symtab.h: sdcdb WIN32 native port
755 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
757 * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
759 * support/regression/tests/bug1551947.c: new, added
760 * src/SDCCsymt.h: strings are char* not byte*
762 2006-09-05 Raphael Neider <rneider AT web.de>
764 * device/lib/pic16/libdev/pic18f4550.c,
765 device/include/pic16/pic18f4550.h: added PORTD/TRISD
766 declarations/definitions from patch #1520949
768 2006-09-05 Raphael Neider <rneider AT web.de>
770 * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
771 byte-aligned bitfields, fixes #1539278
773 2006-09-05 Raphael Neider <rneider AT web.de>
775 * src/pic/gen.c (genReceive): skip unreferenced arguments,
778 2006-09-04 Borut Razem <borut.razem AT siol.net>
780 * support/scripts/sdcc.nsi: move ucSim executables to a separate section
781 * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
782 -mno-cygwin is a part of the compiler name
783 * support/scripts/sdcc_mingw32: don't disable ucsim
785 2006-09-03 Borut Razem <borut.razem AT siol.net>
787 * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
788 * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
790 2006-09-03 Raphael Neider <rneider AT web.de>
793 * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
794 indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
797 2006-09-01 Borut Razem <borut.razem AT siol.net>
799 * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
800 to make ppc-osx happy
802 2006-08-31 Borut Razem <borut.razem AT siol.net>
804 * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
805 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
806 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
807 * support/regression/ports/ds390/spec.mk,
808 support/regression/ports/mcs51/spec.mk,
809 support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
810 To run regression tests in mingw environment:
811 make DEV_NULL=NUL CC=gcc
813 2006-08-30 Borut Razem <borut.razem AT siol.net>
815 * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
816 sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
817 sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
818 sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
819 sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
820 sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
821 sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
822 sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
823 sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
824 sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
825 sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
826 sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
827 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
828 sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
829 sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
830 sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
831 sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
832 sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
833 sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
834 sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
835 sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
836 sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
837 sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
838 sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
839 sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
840 sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
841 sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
842 sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
843 sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
844 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
845 sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
846 sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
847 sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
848 sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
849 sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
850 sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
851 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
852 sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
853 sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
854 ucsim WIN32 native port
856 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
858 * doc/sdccman.lyx: added note on dynamic memory heap initialization
860 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
862 * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
863 * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
865 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
867 * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
868 * support/regression/tests/bug1546986.c: new, added
869 * as/mcs51/.cvsignore,
870 * debugger/mcs51/.cvsignore,
871 * src/.cvsignore: deleted
873 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
875 * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
878 2006-08-20 Borut Razem <borut.razem AT siol.net>
880 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
881 removed cl_listen_console::match(), cl_console::match(),
882 restructured cl_commander::proc_input()
884 2006-08-16 Borut Razem <borut.razem AT siol.net>
886 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
887 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
888 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
890 2006-08-14 Borut Razem <borut.razem AT siol.net>
892 * support/regression/Makefile.in,
893 support/regression/ports/pic14/gpsim.cmd,
894 support/regression/ports/pic14/spec.mk,
895 support/regression/ports/pic14/support.c:
896 added pic14 regression test
898 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
900 * as/doc/asxhtm.html: documented changed ABS behaviour
901 * as/doc/README: fixed some typos
903 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
905 * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
908 2006-08-12 Borut Razem <borut.razem AT siol.net>
910 * support/regression/fwk/include/testfwk.h,
911 support/regression/fwk/lib/testfwk.c,
912 support/regression/generate-cases.py,
913 support/regression/Makefile.in:
914 regression test framework does not depend on function pointers and
917 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
919 * device/include/stddef.h: c temporary hack to fix bug 1518273
921 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
923 * device/include/mcs51/cc2510fx.h: added
924 * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
927 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
929 * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
930 * as/z80/Makefile.in: added strcmpi.c
931 * as/z80/z80adr.c: added upper case registers and lower case conditionals
932 * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
934 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
936 * device/lib/gbz80/asm_strings.s,
937 * device/lib/gbz80/crt0_rle.s,
938 * device/lib/gbz80/div.s,
939 * device/lib/gbz80/mul.s,
940 * device/lib/gbz80/shift.s,
941 * device/lib/z80/asm_strings.s,
942 * device/lib/z80/crt0_rle.s,
943 * device/lib/z80/div.s,
944 * device/lib/z80/mul.s,
945 * device/lib/z80/shift.s: changed to all lower case menmonics except the
946 flags which are all upper case
948 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
950 * as/z80/asm.h: made CASE_SENSITIVE 1
951 * link/z80/aslink.h: made CASE_SENSITIVE 1
952 * src/z80/gen.c (throughout): made all conditionals upper case
953 * support/regression/tests/bug1503067.c: new
955 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
957 * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
958 (shiftIntoPair): added case 2 for PAIR_IY,
959 (setupToPreserveCarry): replaced parameters with iCode and check if
960 PAIR_DE is in use to fix bug 1399290,
961 (genPlus, genMinus): updated call to setupToPreserveCarry
962 * support/regression/tests/bug1399290.c: new
964 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
966 * device/lib/Makefile.in (Z80SOURCES): enabled float support
967 * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
968 * src/ds390/gen.c (shiftRLong),
969 * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
970 * src/mcs51/gen.c (sameReg): changed to sameByte,
972 (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
973 shiftRLong): fixed bug 1533966
974 * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
975 genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
976 * support/regression/Makefile.in: disabled z80, enabled ucz80
977 * support/regression/tests/float_trans.c: enabled test for z80 and host
978 * support/regression/tests/shifts2.c: new, for testing bug 1533966
980 2006-08-01 Borut Razem <borut.razem AT siol.net>
982 * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
983 comparison is always false due to limited range of data type
984 on PPC64 machine (openpower-linux1) where "char = unsigned char"
986 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
988 * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
989 * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
990 * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
991 * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
993 2006-07-31 Borut Razem <borut.razem AT siol.net>
995 * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
996 sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
997 sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
998 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
999 sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
1000 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
1001 sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
1002 sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
1003 enable ucsim mingw compilation. Serial port is disabled,
1004 since it uses termios.h API, which is not available on native
1007 2006-07-31 Borut Razem <borut.razem AT siol.net>
1009 * Small Device C Compiler 2.6.0 released
1010 * support/scripts/sdcc.nsi: added FULL_DOC option
1011 * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
1013 2006-07-28 Borut Razem <borut.razem AT siol.net>
1015 * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
1016 * doc/INSTALL.txt: updated
1018 2006-07-27 Borut Razem <borut.razem AT siol.net>
1020 * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
1021 device/lib/pic/libdev/Makefile.in: fixed bug
1022 [ 1438354 ] pic libsdcc: distclean doesn't work
1023 * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
1024 device/lib/pic16/libio/Makefile.in: fixed bug
1025 [ 1438344 ] pic16 lib: clean doesn't work properly
1026 * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
1028 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
1030 * device/lib/pic/libsdcc/fsdiv.c,
1031 * device/lib/pic/libsdcc/fsmul.c,
1032 * device/lib/pic16/libsdcc/float/fsdiv.c,
1033 * device/lib/pic16/libsdcc/float/fsmul.c,
1034 * device/lib/_fsdiv.c,
1035 * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
1036 * support/regression/tests/bug1520966.c: added
1037 * doc/knownbugs.html: removed [ 1520966 ] from the list
1039 2006-07-25 Borut Razem <borut.razem AT siol.net>
1041 * configure.in, configure, sdccconf_in.h: fixed bug
1042 [ 1519095 ] regression test onebyte.c fails on ppc64 host
1043 * doc/knownbugs.html: removed [ 1519095 ] from the list
1045 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
1047 * doc/knownbugs.html: added, contains list of known bugs at release
1048 * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
1050 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
1052 * device/include/mcs51/compiler.h: added SFRX for xdata based special
1053 function registers and corrected defaults with additional warning
1054 * device/lib/malloc.c: cosmetic changes
1055 * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
1056 * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
1057 (fillGaps): and used it
1059 2006-07-20 Raphael Neider <rneider AT web.de>
1061 * src/pic/device.c (addMemRange,assignRegister): suppress verbose
1062 output unless SDCCPICDEBUG is set
1063 * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
1064 output if SILENT is set
1066 2006-07-11 Borut Razem <borut.razem AT siol.net>
1068 * doc/README.txt: updated
1070 2006-07-10 Borut Razem <borut.razem AT siol.net>
1072 * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
1073 device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
1074 in WIN32 installation
1075 * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
1078 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
1080 * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
1081 * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
1083 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
1085 * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
1087 2006-07-06 Borut Razem <borut.razem AT siol.net>
1089 * support/regression/tests/bitfields.c:
1090 fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
1091 * support/regression/tests/constantRange.c:
1092 fixed bug [ 1518317 ] regression test constantRange fails on alpha host
1094 2006-07-04 Borut Razem <borut.razem AT siol.net>
1096 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
1098 src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
1099 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
1100 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
1101 reverted changes from 2006-07-03
1102 * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
1103 * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
1104 added CPPFLAGS, used by the host port
1106 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
1108 * support/regression/valdiag/tests/switch.c,
1109 * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
1110 * support/regression/tests/libmullong.c: fixed for host
1111 * support/regression/ports/host/spec.mk: disable all warnings for host,
1112 SDCC runs with --less-pedantic too
1114 2006-07-03 Borut Razem <borut.razem AT siol.net>
1116 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
1118 * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
1119 * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
1120 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
1121 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
1123 * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
1124 sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1125 sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1126 sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
1128 2006-07-02 Raphael Neider <rneider AT web.de>
1130 * src/pic16/devices.inc,
1131 * device/include/pic16/pic18fregs.h,
1132 * device/include/pic16/pic18f4550.h,
1133 * device/lib/pic16/pics.all,
1134 * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
1136 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
1138 * as/hc08/lkaomf51.c (OutputName),
1139 * as/mcs51/lkaomf51.c (OutputName),
1140 * as/z80/asmain.c (asmbl),
1141 * src/ds390/main.c (asmLineNodeFromLineNode),
1142 * src/hc08/ralloc.c (hc08_assignRegisters),
1143 * src/mcs51/main.c (asmLineNodeFromLineNode),
1144 * src/xa51/ralloc.c (checkRegMask),
1145 * src/xa51/gen.c (emitcode),
1146 * src/z80/gen.c (_emit2),
1147 * src/SDCCast.c (searchLitOp),
1149 * support/packihx/packihx.c,
1150 * support/Util/MySystem.c (split_command): fix gcc 4 warnings
1151 * src/ds390/gen.c (aopPutUsesAcc),
1152 * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
1153 * support/regression/tests/libmullong.c (mullong_wrapper),
1154 * src/SDCCsymt.c (powof2),
1156 * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
1157 * src/SDCCsymt.h: added TYPE_TARGET_*
1158 * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
1159 * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
1160 SDCCast because 1) header problems 2) this is the right place
1161 * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
1162 * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
1165 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
1167 * src/SDCCicode.h: removed buggy semicolon in unused macro
1168 * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
1169 search for previous definiton of auto symbols too,
1170 (findPrevUse): fixed logic of emitWarnings
1172 2006-06-26 Raphael Neider <rneider AT web.de>
1174 * src/pic16/gen.c (genFunction, genEndFunction): also preserve
1175 PCLATH and PCLATU on interrupts, potentially fixes #1505141
1177 2006-06-25 Raphael Neider <rneider AT web.de>
1179 * device/lib/pic/libm: NEW, added math library functions
1180 * device/lib/pic/libsdcc: NEW; added float support functions
1181 * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
1182 * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
1183 NEW, added math related headers
1184 * device/include/asm/pic/features.h: NEW
1185 * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
1186 (popGet): allow larger offsets for AOP_PCODE,
1187 (genDataPointerSet): handle literals explicitly, more debug output,
1188 (genAssign): fixed for float using aopLiteral ;-)
1189 * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
1190 GOTO initialisation routine
1191 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
1192 flag on registers, fixes #1469043 (local variables do not work)
1193 * src/pic/main.c (_pic14_do_link),
1194 * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
1197 2006-06-25 Borut Razem <borut.razem AT siol.net>
1199 * device/lib/pic16/libc/stdio/sprintf.c: return the number of
1200 characters printed (not including the trailing '\0' used to end
1201 output to strings). Problem detected in regression test bug-927659.c.
1202 NOTE: printf() family functions should return int instead
1204 * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
1205 specifier are printed as themselves
1206 * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
1207 support flags, width and precision specifiers
1209 2006-06-24 Borut Razem <borut.razem AT siol.net>
1211 * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
1212 to the list of sdcc tagrets not supporting bit type
1213 * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
1214 testfor pic16 due to bug:
1215 [ 1511794 ] pic16: regression test bug-895992.c fails
1217 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
1219 * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
1220 * src/SDCCglue.c (initPointer), fixed bug 1496419
1221 * support/regression/tests/bug1496419.c: new, added
1223 2006-06-22 Borut Razem <borut.razem AT siol.net>
1225 * support/regression/ports/pic16/support.c: use gpsim usart module from
1226 libgpsim_modules library
1228 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1230 * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
1233 2006-06-19 Raphael Neider <rneider AT web.de>
1235 * src/pic/glue.h,src/pic16/glue.h: added prototypes
1236 * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
1237 pic1x_emitSymbolIfNew): NEW, check for a string in a set,
1238 (pic14printExterns,pic14printPublics,pic16printPublics,
1239 pic16_printExterns): use new functions to emit symbols
1240 (picglue,pic16glue): emit publics before emitting externs
1241 * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
1242 locally defined functions to avoid bug #1443651
1243 * support/regression/tests/bug-716242.c: removed pic16 workaround
1244 * support/regression/ports/pic16/spec.mk: ignore errors during build
1246 2006-06-19 Raphael Neider <rneider AT web.de>
1248 * src/pic/glue.h: added pic14aopLiteral prototype
1249 * src/pic/glue.c (pic14aopLiteral): return unsigned int
1250 * src/pic/gen.c: removed stdint.h dependency
1251 (aopGet): use Safe_strdup()
1252 (bitpatternFromVal): removed, replaced use with pic14aopLiteral
1253 (genDataPointerSet): use pic14aopLiteral()
1254 * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
1255 for pic16; thanks to Bernhard and Maarten
1257 2006-06-18 Borut Razem <borut.razem AT siol.net>
1259 * support/regression/tests/structflexarray.c: flexible array members
1260 not supported by gcc < 3
1261 * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
1263 * src/pic/gen.c: don't include [p]strdin.h on solaris
1264 * support/Util/pstdint.h: addad svn attributes
1265 * support/regression/tests/constantRange.c,
1266 support/regression/tests/rotate.c: include inttypes.h instead
1267 stdint.h on solaris, addad svn attributes
1269 2006-06-18 Raphael Neider <rneider AT web.de>
1271 * src/SDCCsymt.c (initCSupport): change return type of divschar to
1273 * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
1274 (pic16_genMinusBits): simplified sign-extension
1275 (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
1276 pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
1277 adjusted to correctly handle mixed-signed operands, disabled
1278 now unused multiplciation routines
1279 * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
1280 (assignResultValue): added argument denoting the size of the result
1281 as returned by the function (fixes upcasts in assigning from
1282 function calls: char foo(); int i = foo();)
1283 (genCall,genPcall,genGenPointerGet,genReceive): pass size of
1284 function result to assignResultValue
1285 (genMult): disabled inlined multiplication code
1286 (genDiv): augmented to also handle the modulus operator, fixed to
1287 handle mixed-signed operands correctly
1288 (genMod): simply call genDiv, disabled unused code
1289 (genAssign): fixed missing (sign-)extension on result
1290 * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
1291 valid char operands, allow signed operands for native code, added
1292 division and modulo operator handling
1293 * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
1295 As a consequence, onebyte.c (if split into two files) and muldiv.c
1296 pass regression tests.
1298 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1300 * doc/Makefile.in: two runs of makeindex seem needed to get
1301 correct page references in the index of sdccman.pdf
1302 * doc/sdccman.lyx: mentioned cmon51, added links, small changes
1304 2006-06-17 Borut Razem <borut.razem AT siol.net>
1306 * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
1308 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1310 * doc/sdccman.lyx: updated, added (porting source code, debugging),
1311 mentioned ec2drv and paulmon
1313 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1315 * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
1316 consecutive abs areas
1317 (find_empty_space, allocate_space): added map to handle codemap or
1319 (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
1320 absolute idata and xdata
1321 * as/mcs51/lkmem.c (summary2): updated legend
1323 2006-06-16 Raphael Neider <rneider AT web.de>
1325 * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
1327 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
1329 * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
1331 * src/SDCClrange.c (findPrevUse): fixed bug 1294475
1333 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
1335 * src/port.h (struct PORT): added field gp_tags, to hold the tag
1336 value of generic pointers,
1346 src/z80/main.c: PORT structure, added elements for gp_tags field,
1347 * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
1348 fields in the PORT structure of each port,
1349 * src/SDCCast.c (decorateType): allow processing of generic pointers
1350 for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
1353 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
1359 * src/pic16/pcode.c,
1361 * src/pic/pcoderegs.c,
1364 * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
1365 bug 1504689 on minGW
1367 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1369 * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
1371 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
1373 * src/SDCCast.c (backPatchLabels): fixed bug #1504636
1375 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
1377 * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
1380 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
1382 * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
1383 to a char variable. Fixed bug #1504211
1384 * device/include/pic16/adc.h,
1385 device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
1386 and fixed bug #1364390
1388 2006-06-10 Borut Razem <borut.razem AT siol.net>
1390 * CVSROOT: removed the CVS left-over
1392 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1394 * as/hc08/asmain.c (asexit),
1395 * as/hc08/lkmain.c (lkexit),
1396 * as/mcs51/asmain.c (asexit),
1397 * as/mcs51/lkmain.c (lkexit),
1398 * src/SDCCglue.c (DEFSETFUNC),
1399 * src/SDCCmain.c (linkEdit, assemble),
1400 * support/librarian/sdcclib.c (AddRel),
1401 replaced unlink() by standard C remove()
1402 * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
1403 * src/SDCCast.c (replaceAstWithTemporary, createRMW,
1404 gatherImplicitVariables): new, added to fix bug 608752,
1405 (createFunction): added gatherImplicitVariables()
1406 * src/SDCCast.h: added createRMW prototype
1407 * src/SDCCsymt.h (struct symbol): added infertype
1408 * support/regression/tests/bug608752.c: new, added
1410 2006-06-10 Raphael Neider <rneider AT web.de>
1412 * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
1413 multibyte dummy reads (fixes #1503234)
1415 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1417 * device/include/mcs51/compiler.h: new, added header file to enable
1418 creating common sfr definition header files for different compilers
1420 2006-06-05 Raphael Neider <rneider AT web.de>
1422 * src/pic16/{pcode.h,genarith.c}:
1423 introduced pCodeOp combining any two pCodeOps (previously only
1424 two register operands could be combined), removed pcop2 from
1425 pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
1426 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
1427 * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
1428 rewritten to use new PO_TWO_OPS
1429 * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
1430 * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
1431 (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
1432 (pic16_newpCodeOp2): NEW, create combined pCodeOp,
1433 (pic16_get_op): embraced return arg to allow #define return(x),
1434 added new case for combined opcodes
1435 (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
1436 (pic16_pCode2str,pic16_getRegFrompCodeOp,
1437 pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
1439 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
1441 * src/SDCCval.c (checkConstantRange): added
1442 * src/SDCCval.h: added checkConstantRange
1443 * support/Util/SDCCerr.c,
1444 * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
1445 W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
1446 * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
1447 * src/SDCCast.c (decorateType): added checkConstantRange,
1448 added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
1449 can be emitted with the correct always true/false warning,
1450 added optimization for double '!';
1451 result of decorateType() must be assigned back to the tree, because
1452 decorateType() can change the tree
1453 * src/SDCCicode.c (geniCodeLogic),
1454 (geniCodeAssign): replaced new checkConstantRange, added warnings,
1455 (checkConstantRange): removed, it was only a fragment which never
1457 * src/SDCCsymt.c (computeType): fixed promotion for
1458 "-1 < (unsigned bit) b"
1459 * src/pic/ralloc.c (packRegsForAssign),
1460 * src/pic16/ralloc.c (packRegsForAssign),
1461 * src/hc08/ralloc.c (packRegsForAssign),
1462 * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
1464 * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
1465 * support/regression/tests/constantRange.c: added
1466 * support/valdiag/tests/constantRange.c: added
1467 * support/valdiag/valdiag.py: added -DPORT_HOST=1
1469 2006-06-02 Borut Razem <borut.razem AT siol.net>
1471 * support/regression/ports/pic16/support.c: increase stack size
1473 * support/regression/Makefile.in: sort tests by name so that the
1474 resutlts can be compared on different machines / platforms
1476 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1478 * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
1479 * src/ds390/gen.c (emitLabel): new, added,
1480 (genDjnz): fixed stack overflow bug,
1481 (throughout): cosmetic changes to sync with mcs51/gen.c,
1482 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
1483 * src/mcs51/gen.c (genEndFunction): small optimization,
1484 (throughout): cosmetic changes to sync with ds390/gen.c
1486 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1488 * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
1489 (_print_format): fixed printing pointers
1490 * src/mcs51/gen.c (emitLabel, movb): new, added,
1491 (genAssign): small optimization,
1492 (genDjnz): fixed stack overflow bug,
1493 (throughout): replaced sprintf with SNPRINTF,
1494 replaced mcs51_regWithIdx with REG_WITH_INDEX,
1495 replaced emitcode("mov", "b,...") with MOVB(...),
1496 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
1497 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
1498 * src/mcs51/peeph.def: added rules 140 and 264
1499 * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
1500 so they may get optimized into registers
1502 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
1504 * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
1505 immediately when encountered,
1506 (printUsage): always use stderr even on windows
1508 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
1510 * src/SDCCast.c (isLoopCountable): fixed bug #1478316
1511 (processParms): fixed bug #1247551
1512 * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
1513 parseCmdLine, main): print '--version' to stdout,
1514 print 'help' to stdout if --help is given,
1515 print 'help' to stderr and exit with EXIT_FAILURE if no or bad
1516 arguments are given; fixed --help
1518 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
1520 * src/SDCCcse.c (findPointerSet): fixed bug #1493710
1521 * support/regression/tests/bug-1493710.c: added
1523 2006-05-27 Borut Razem <borut.razem AT siol.net>
1525 * support/regression/fwk/lib/testfwk.c: define array in _printn() as
1527 * support/regression/ports/pic16/support.c: increase stack size
1528 from default 64 bytes to 128 bytes
1529 * support/regression/tests/staticinit.c,
1530 support/regression/tests/float.c: regression tests fully enabled
1531 for pic16 port by putting the initialized data arrays into the code
1533 * support/regression/ports/pic16/spec.mk: don't link default libraries.
1534 This was changed by mistake in the previous version.
1536 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
1538 * src/pic16/gen.c (genFunction, genEndFunction): some
1539 beautifications, fixed bug with falsely restoring FSR2 in large
1540 stack model, thanks to Beau E. Cox for reporting the bug
1542 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
1544 * debugger/mcs51/break.c,
1545 * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
1546 use %p to print pointers, made address variables unsigned
1547 * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
1548 * debugger/mcs51/symtab.c (parseSymbol): must return something
1549 * src/mcs51/gen.c (aopForSym): small optimization,
1550 moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
1551 (freeAsmop): added missing break,
1552 (aopPut): removed parameter bvolatile, determine it inside the function,
1553 (saveRegisters, unsaveRegisters): small optimization,
1554 (genIpush): removed pointless check,
1555 (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
1556 replaced sprintf with SNPRINTF,
1557 replaced strcpy with strncpyz,
1558 updated aopPut calls,
1559 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
1560 * src/mcs51/ralloc.h: added declarations mcs51_ptrRegReq and mcs51_nRegs
1562 2006-05-24 Borut Razem <borut.razem AT siol.net>
1564 * support/regression/tests/bug-221100.c: fixed xdata problem caused by
1565 modification of test for the pic16 port, put the array to the code
1566 memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
1568 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1570 * src/pic/gen.c: MSC 6 does not have <stdint.h>. Use pstdint.h instead.
1571 * support/Util/pstdint.h: added
1573 2006-05-22 Borut Razem <borut.razem AT siol.net>
1575 * src/regression/Makefile: removed bool2.c test, added -q linker option
1576 * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
1577 src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
1578 src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
1579 src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
1580 src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
1581 src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
1582 src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
1583 src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
1584 define SUPPORT_BIT_TYPES 0, removed unused bit variables
1586 2006-05-22 Raphael Neider <rneider AT web.de>
1588 * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
1589 bug #1492360 (problematic due to generic pointers, see code)
1591 2006-05-22 Borut Razem <borut.razem AT siol.net>
1593 * support/regression/ports/pic16/specs.mk: removed stack size linker
1595 * support/regression/tests/array.c,
1596 support/regression/tests/bitopcse.c,
1597 support/regression/tests/bug-908454.c,
1598 support/regression/tests/malloc.c: modified for pic16 regression test
1599 * support/regression/tests/bitfields.c:
1600 pic16 - excluded bitfileds of size > 8
1601 * support/regression/tests/bp.c: pic16 - reduced data size
1602 * support/regression/tests/bug-221100.c: pic16 - reduced data size
1603 * support/regression/tests/bug-460010.c:
1604 pic16 - used the absolute address the fits in memory
1605 * support/regression/tests/bug-716242.c:
1606 bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
1607 * support/regression/tests/float.c:
1608 pic16 - excluded - data size too big
1609 * support/regression/tests/onebyte.c:
1610 pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
1611 * support/regression/tests/shifts.c:
1612 pic16 - function names probably have to differ in first X characters
1614 * support/regression/tests/staticinit.c:
1615 pic16 - excluded some tests due error: no target memory available for
1618 2006-05-22 Borut Razem <borut.razem AT siol.net>
1620 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
1621 second try. Thanks Stas Sergeev once more.
1623 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1625 * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
1626 (genLeftShift, genRightShift): fixed bug 1491627
1627 * src/hc08/peeph.def (rules 7, 8.x): added
1628 * support/regression/tests/shifts.c (ShiftLeftByParam,
1629 ShiftRightByParam, testShiftByParam): added to test variable shifting
1631 2006-05-20 Raphael Neider <rneider AT web.de>
1633 * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
1634 * src/pic16/ralloc.c (newReg): use correct name in hashtable,
1635 (allocReg): add only new registers to dynAllocRegs,
1636 (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
1637 #1489055, #1445850, and probably #1483693
1639 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
1641 * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
1642 bug in for-loop that didn't emit the last of CONFIG and ID registers
1644 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
1646 * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
1648 * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
1649 1489016, 1434401 and 1490124
1650 * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
1651 1489016, 1434401 and 1490124
1653 2006-05-17 Borut Razem <borut.razem AT siol.net>
1655 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
1658 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1660 * device/include/mcs51/P89c51RD2.h,
1661 * device/include/mcs51/P89LPC901.h,
1662 * device/include/mcs51/P89LPC922.h,
1663 * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
1665 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1667 * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
1668 to fix missing stack pragma in compiled binary object file,
1670 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
1672 * support/packihx/configure.in,
1673 * support/packihx/configure: removed warning, autoconf >= 2.5x can
1674 determine sizeof basic types even while cross compiling
1676 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
1678 * src/avr/gen.c (aopop),
1679 * src/ds390/gen.c (aopOp),
1680 * src/hc08/gen.c (aopOp),
1681 * src/mcs51/gen.c (aopop),
1682 * src/pic16/gen.c (pic16_aopOp),
1683 * src/pic/gen.c (aopOp),
1684 * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
1685 if size of operand is smaller than spill location
1687 2006-05-12 Borut Razem <borut.razem AT siol.net>
1689 * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
1690 have to have CR/LF line endings even if they are checked out on *nix
1691 or on WIN32 in cygwin binmode
1693 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
1695 * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
1696 * device/include/ds80c390.h: added sfr16 definitions
1700 * src/ds390/ralloc.c,
1701 * src/ds390/ralloc.h: changes all over the place to sync with mcs51
1702 fixing several bugs and adding sfr16/sfr32, reentrant bit params,
1703 bit returning functions
1704 * support/regression/tests/sfr16.c: enabled test on ds390
1706 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1708 * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
1709 * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
1711 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1713 * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
1714 * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
1715 (cl_address_space constructor): removed expensive initialization,
1716 (cl_address_space::get_cell): extended for late initialization,
1717 (cl_address_space::*): use late initialization,
1718 (cl_address_decoder::activate): removed expensive initialization,
1719 This reduced regression test running time by 25%
1721 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
1729 * support/packihx/Makefile.in,
1730 * support/packihx/clean.mk,
1731 * support/packihx/Makefile.bcc,
1732 * support/packihx/PackIhx.dsp: moved packihx to support/packihx
1734 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1736 * src/SDCCval.c (valNot): fix for regression test failure
1737 of not.c on big endian hosts
1739 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1741 * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
1743 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1745 * device/lib/mcs51/Makefile.in: changed string comparison operator
1746 to = for POSIX compliance; == is bash extension
1748 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1750 * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
1753 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
1755 * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
1756 allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
1757 * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
1758 * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
1759 bug report #1478657,
1761 2006-05-05 Borut Razem <borut.razem AT siol.net>
1763 * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
1766 2006-05-02 Borut Razem <borut.razem AT siol.net>
1768 * doc/Makefile.in: removed *.ind dependency since there is no rule to
1769 create *.ind, which made make to fail if invoked with -j 2
1771 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
1773 * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
1774 Hubert Sack for patch 1479782
1776 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
1778 * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
1780 2006-05-01 Raphael Neider <rneider AT web.de>
1782 * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
1783 (create_pic): store only prefix-free device name,
1784 (init_pic): check for device names with "16" prefix,
1786 * src/pic/device.h (struct PIC_device),
1787 * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
1789 * device/include/pic/pic12f{635,675,629,683}.h,
1790 * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
1791 * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
1792 * device/include/pic/pic16f505.h,
1793 * device/lib/pic/libdev/pic16f505.c: removed
1794 * device/include/pic/pic14devices.txt: added support for pic12f
1795 devices, removed unsupported non 16-bit devices
1796 [above changes provided by patch from Zik Saleeba]
1797 * src/pic/*, src/pic16/*, device/include/pic16/*,
1798 device/lib/pic/**, device/lib/pic16/**: obfuscated email address
1800 2006-05-01 Borut Razem <borut.razem AT siol.net>
1802 * configure.in, configure, doc/Makefile.in:
1803 sync with nightly build makefile - latex, dvipdf and dvips
1806 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
1808 * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
1809 in the library source
1811 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
1813 * support/regression/ports/hc08/spec.mk: fixed bug 1478892
1815 2006-04-28 Raphael Neider <rneider AT web.de>
1817 * src/pic16/pcode.c (pic16_newpCodeOpLit12),
1818 * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
1819 (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
1820 * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
1822 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
1824 * device/lib/pic/libdev/Makefile.in,
1825 * device/lib/hc08/Makefile.in,
1826 * device/lib/gbz80/Makefile.in,
1827 * device/lib/z80/Makefile.in,
1828 * device/lib/ds390/Makefile.in,
1829 * device/lib/ds400/Makefile.in: added srcdir to include search path,
1830 thanks to Borut for the bug report
1832 * configure: always create doc/Makefile independent from --enable-doc
1833 * Makefile.in: always install from directory doc independent from
1835 * device/lib/pic/Makefile.in: added libdev again, it was erroneously
1837 * device/lib/pic/libdev/Makefile.in: fixed VPATH build
1838 * doc/Makefile.in: install *.txt if present
1839 * device/include/Makefile.in (install): added installation of pic/*.inc
1840 and pic/*.txt files again, they were erroneously removed
1842 2006-04-28 Raphael Neider <rneider AT web.de>
1844 * src/pic/{gen.c,main.h,pcode.c},
1845 * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
1846 concerning signedness with casts
1848 2006-04-28 Raphael Neider <rneider AT web.de>
1850 * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
1851 definition of an interrupt handler,
1852 * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
1853 interrupt handler stuff from picglue() to separate routine,
1854 (picglue): enabled definition of intr handlers in files w/o main()
1856 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1858 * support/librarian/sdcclib.c: moved include <limits.h> up to enable
1859 compilation with MSVC 2005 Express Edition (VC8)
1861 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
1863 * device/lib/Makefile: fixed build of gbz80 lib
1865 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
1867 * support/regression/tests/bug-460010.c,
1868 * support/regression/tests/bug-524691.c,
1869 * support/regression/tests/bug-716242.c: removed conditional defines
1870 that are already in testfwk.h
1872 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
1874 * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
1875 (AccAXRsh1): added, shift right by 1,
1876 (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
1878 * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
1880 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
1882 * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
1883 remove cast to same type
1884 * src/SDCCast.c (decorateType): fix for RFE 1475742,
1885 optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
1887 * link/z80/Makefile: removed, they have moved to
1890 * configure.in: replaced duplicate message about ucsim by missing sdcpp
1891 * install-sh: fix bug #1204398 by setting umask 0022
1892 * device/lib/Makefile: separate build of z80 and gbz80 lib
1894 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
1896 Enabled VPATH feature: changed nearly all Makefiles (149 files).
1897 See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
1899 One basic decision: e.g. src/clean.mk includes further files. In order
1900 to make this work there are two solutions:
1901 - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
1902 run configure on them. This way they can use
1903 'include $(srcdir)/port-clean.mk'
1904 - always include clean.mk by the Makefile at the same level. To avoid
1905 that `make clean` tries to include and build Makefile.dep the
1906 MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
1907 implemented, because now even `make uninstall` doesn't create
1908 Makefile.in. clean.mk could be eliminated by pasting it in
1911 * debugger/mcs51/Makefile.in: build own objects from library sources
1912 (SLIB, SDCC) in current directory
1914 * configure, configure.in: renamed --disable-device-lib-build in
1915 --disable-device-lib; added --enable-doc, the required tools are
1916 searched by configure; added result message; the toolchain for the
1917 belonging ports are now only built, if the port is enabled.
1919 * support/regression/*: all output is written in directory gen, because
1920 the fwk and ports directories don't livet in the build tree using vpath
1922 * doc/sdccman.lyx: renamed --disable-device-lib-build to
1923 --disable-device-lib, added --enable-doc, added section VPATH
1925 * sim/ucsim/configure.in,
1926 * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
1927 z80 are enabled by default
1929 2006-04-24 Raphael Neider <rneider AT web.de>
1931 * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
1932 to config word, "pic14_"-prefixed some extern functions
1933 (pic14_emitConfigWord): emit __config directive(s) if assignment to
1934 config word has been found
1935 * src/pic/device.h: added prototypes
1936 * src/pic/pcode.c: added "pic14_"-prefix where needed
1937 * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
1939 * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
1941 (pic14emitRegularMap): ignore config words,
1942 (pic14createInterruptVect): moved generating __config directives away
1943 (picglue): have __config directives emitted
1945 2006-04-24 Borut Razem <borut.razem AT siol.net>
1947 * doc/Makefile: sync with nightly build makefile
1949 2006-04-24 Raphael Neider <rneider AT web.de>
1951 * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
1952 registers that have not been assigned proper liveranges,
1953 fixes #1469504 and #1474602,
1954 (pCodeRegOptimizeRegUsage): fixed typo in comment
1956 2006-04-24 Borut Razem <borut.razem AT siol.net>
1958 * device/examples/main8051.c: deleted - it was removed from CVS
1959 24.mar.2000 and after that modified 18.feb.2001, so it reappered
1960 after the transition to Subversion
1961 * src/SDCCalloc.h: deleted - it was removed from CVS
1962 3.feb.2001 and after that modified 18.feb.2001, so it reappered
1963 after the transition to Subversion
1964 * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
1965 sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
1966 sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
1967 sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
1969 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
1971 * as/asx8051.dsp: added mcs51/strcmpi.h
1972 * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
1973 * as/hc08/aslink.h: updated lnksect prototype
1975 * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
1977 * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
1978 (newdot): handle A_ABS
1980 * as/mcs51/asout.c (outarea): output address
1981 * as/hc08/lkaomf51.c,
1982 * as/mcs51/lkaomf51.c: disabled unused array UsageType
1984 * as/mcs51/i51pst.c,
1985 * as/z80/z80pst.c: "ABS" is not A_OVR
1986 * as/hc08/lkarea.c (newarea): read a_addr,
1987 (lnkarea): added codemap array, sort absolute areas to the front,
1988 combine all GSINITx/GSFINAL,
1989 (find_empty_space, allocate_space): new functions,
1990 (lnksect): return next address, handle absolute sections
1991 * as/mcs51/lkarea.c (newarea): read a_addr,
1992 lnksect2 prototype changed,
1993 (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
1994 (find_empty_space, allocate_space): new, factored out of lnksect2,
1995 (lnksect2): return next address, handle absolute sections
1997 * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
1998 * as/hc08/lklibr.c (addfile, fndsym),
1999 * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
2000 index out of range and detect both '\' and '/'
2001 * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
2002 * device/include/stdbool.h: removed SDCC_ds390 from check to pass
2003 regression tests (ds390 cannot return bool yet)
2004 * doc/sdccman.lyx: changed version number, document changed --no-peep,
2005 document critical interrupts on z80, document changed SDCC define
2006 * src/asm.c (_asxxxx_mapping): fixed .org directive,
2007 (_a390_mapping): added .org directive
2008 * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
2009 (genMultOneByte): fixed warnings
2010 * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
2012 * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
2013 * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
2014 (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
2015 * src/pic16/gen.h: changed prototype for pic16_popGetLabel
2016 * src/pic16/main.c: removed newReg prototype
2017 * src/pic16/pcode.c,
2018 * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
2020 * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
2022 * src/pic16/ralloc.c
2023 * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
2025 * src/pic/pcode.c (allocInternalRegister): changed parameter optype
2026 from short to PIC_OPTYPE
2027 * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
2028 * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
2029 optype from short to PIC_OPTYPE
2030 * src/port.h: made int_size unsigned to fix warnings
2031 * src/SDCC.y: fixed warning on MSVC
2032 * src/SDCCicode.c (getArraySizePtr): return unsigned int
2033 * src/SDCCopt.c (convertToFcall): fixed warnings
2034 * src/SDCCsymt.h: removed double prototype for genSymName
2035 * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
2036 offset int to fix warnings
2038 2006-04-22 Borut Razem <borut.razem AT siol.net>
2040 * doc/sdccman.lyx, */Makefile, */Makefile.in:
2041 references to CVS replaced with Subversion
2043 2006-04-21 Borut Razem <borut.razem AT siol.net>
2045 * doc/sdccman.lyx, */Makefile, */Makefile.in:
2046 references to CVS replaced with Subversion
2048 2006-04-19 Borut Razem <borut.razem AT siol.net>
2050 * src/version.awk: adapted for svn
2051 * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
2052 sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
2053 sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
2054 /binutils-avr/etc/*.vi, *.jin: removed all properties
2055 support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
2057 2006-04-19 Borut Razem <borut.razem AT siol.net>
2059 * CVS to Subversion migration completed
2061 2006-04-18 Borut Razem <borut.razem AT siol.net>
2063 * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
2064 ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
2066 2006-04-17 Borut Razem <borut.razem AT siol.net>
2068 * device/include/Makefile.in: added pic/*.inc to the installation
2070 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
2072 * support/regression/collate-results.py: fixed output in case of
2074 * support/regression/generate-cases.py: fixed splitting of pathnames
2076 * as/hc08/lklibr.c (addfile),
2077 * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
2079 2006-04-11 Raphael Neider <rneider AT web.de>
2081 * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
2082 * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
2083 * src/pic16/pcode.c (assignValnums): fixed #1460578
2085 2006-04-11 Raphael Neider <rneider AT web.de>
2087 * device/lib/pic/libdev/*.c,
2088 * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
2089 fixes #1468739, enables compilation in --std-c99 mode
2090 * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
2092 2006-04-11 Raphael Neider <rneider AT web.de>
2094 * src/pic/device.c (find_device): removed debug output
2095 (list_valid_pics): enabled verbose listing of supported devices
2096 * device/include/stdbool.h: define bool as char for pic14/16 as well
2098 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2100 * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
2102 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2104 * .version: bumped version to 2.5.6
2105 * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
2107 2006-04-06 Raphael Neider <rneider AT web.de>
2109 * .version: bumped version to 2.5.6 (pic14 ABI changed)
2110 * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
2111 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
2112 pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
2113 pic14_constructAbsMap
2114 (pic14printPublics): declare absolute global symbols as global
2115 (pic14createInterruptVect),
2116 * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
2117 (newReg): assume new registers unused, use correct name in
2118 hashtable (reg->name instead of name), more debugLog output
2119 * src/pic/device.h (PIC_device): added fields for verbose output
2120 * src/pic/device.c: moved device definition to pic14devices.txt,
2121 added routines for runtime parsing of pic14devices.txt,
2122 added support for second config word
2123 * src/pic/main.c (_process_pragma): removed #pragma maxram,
2124 (_pic14_keywords): no longer accept "bit" and "sbit" keywords
2125 (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
2126 (_pic14_parseOptions): moved pCodeInitRegisters here
2127 (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
2128 * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
2129 (pCodeInitRegisters): rewrapped comments, perpared new approach to
2130 handling the pseudo stack
2131 * device/lib/Makefile.in: ignore failures in objects-pic16,
2132 * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
2133 * device/lib/pic/NEWS: document new dependency on picXXX.lib
2134 * device/lib/pic/Makefile.subdir,
2135 * device/lib/pic16/Makefile.subdir: improved clean rules
2136 * device/lib/pic/libdev/: NEW, pic14 device libraries
2137 * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
2138 * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
2139 * device/include/Makefile.in: create subdir and install pic14 headers
2140 * device/include/pic/p16f_common.inc: removed unused declarations
2141 * device/include/pic/pic16*.h: added header files for 100+ 14 bit
2142 PICs from inc2h.pl v1.6,
2143 replaced BIT_AT macros with struct declarations
2144 * device/include/pic/pic14devices.txt: definition of supported devices,
2145 all above improvements contributed by Zik Saleeba, thanks
2146 * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
2147 * support/scripts/sdcc.nsi: also install pic14 device libraries and
2150 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2152 * device/include/mcs51/c8051f410.h: added interrupt numbers,
2153 * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
2154 thanks to Charles Olds
2156 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2158 * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
2160 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2162 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
2163 * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
2164 * support/regression/bug1464657.c: added, new test
2166 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
2168 * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
2171 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
2173 * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
2174 --no-peep and --peep-file <file> are used don't use default rules but
2177 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
2179 * src/mcs51/gen.c (genCall): fixed bug 1457608
2181 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2183 * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
2184 changes seem to cause (trigger?) problems with the build system.
2186 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
2188 * src/SDCCpeeph.c (operandsLiteral): new, added,
2189 (callFuncByName): inserted operandsLiteral
2190 * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
2192 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2194 * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
2195 * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
2197 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2199 * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
2200 implemented patch 1120823 Thanks to Willy De la Court (normal
2201 interrupts need an interrupt number now if they are made critical),
2202 and enabled nesting of critical functions though not for gbz80
2203 (genCritical, genEndCritical): added functions
2204 (genZ80Code): added cases for CRITICAL and ENDCRITICAL
2205 * src/z80/mappings.i: added "ei" to all mappings
2207 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2209 * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
2210 submitted by the Debian SDCC maintainer Aurelien Jarno:
2211 "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
2212 archive with gcc 4.1 on mips and wrote the patch"
2214 2006-03-16 Raphael Neider <rneider AT web.de>
2216 * src/pic16/genarith.c (genAddLit): simplified and fixed case where
2217 the left operand is shorter than the result (c* = lit-c* + int),
2219 * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
2222 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2224 * src/.version: increased version number to 2.5.5
2225 * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
2226 linking is done manually in pic16 port's _linkEdit,
2227 * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
2228 PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
2229 * src/pic16/gen.c (aopForSym): when direct register name is WREG then
2230 allocate asmop as AOP_ACC,
2231 (aopForRemat): added parameter 'bool result' in function declaration,
2232 (pic16_aopGet): return AOP_ACC when accessing WREG,
2233 (pic16_popGetTempReg): minor modification,
2234 (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
2235 'pic16_allocWithIdx',
2236 (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
2237 calling function in absolute addresses,
2238 (genAssign): take into account AOP_ACC asmop,
2239 * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
2240 * src/pic16/pcoderegs.c: some debug functions and lines added,
2241 * src/pic16/ralloc.c (decodeRegType): added but commented out,
2242 * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
2244 * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
2245 call to allocReg, not by manually allocating a new one,
2246 (pic16_assignRegisters): now before going through the register
2247 allocating functions mark all registers as free. This eliminates some
2248 side effects resulting from peephole parser done earlier in the backbone
2250 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
2252 * src/SDCCicode.c (geniCodeLogic),
2253 * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
2255 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
2257 * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
2258 (genSend): bugfix, do not allocate and free twice,
2259 (shiftRLong): handle partially overlapping aops
2260 * support/regression/tests/bitopcse.c: fixed warning redefined idata
2262 2006-03-08 Borut Razem <borut.razem AT siol.net>
2264 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
2267 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
2269 * support/regression/tests/bug1409955.c: new, added
2270 * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
2271 * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
2272 (aopForSym, aopOp): increment asmop.allocated if reused,
2273 (freeAsmop): decrement asmop.allocated and check for zero instead of
2275 (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
2276 (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
2277 genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
2278 genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
2279 genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
2280 genSignedRightShift, genRightShift, genDataPointerGet,
2281 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
2282 genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
2283 in reverse order from allocation,
2284 (genPlus, genCmpEq): free asmop's in reverse order from allocation and
2285 added swappedLR to keep track
2286 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
2287 pdata & code for GCC, z80, gbz80 & hc08
2288 * support/regression/tests/zeropad.c: moved defines to testfwk.h
2290 2006-03-08 Raphael Neider <rneider AT web.de>
2292 * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
2294 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
2296 * device/include/mcs51/c8051f410.h: new SiLabs mcu
2297 * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
2298 * support/regression/tests/array.c: added parenthesis, made arrays unsigned
2300 2006-03-06 Borut Razem <borut.razem AT siol.net>
2302 * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
2303 made the linker quiet
2305 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2307 * src/pic16/gen.c (genPcall): fixed bug #1443644
2308 * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
2309 which dumps before the function entry point a data byte which represents
2310 the number of the local variables used by the specified function, added
2311 'xinst' for initial support for Extended Instruction Support,
2312 * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
2313 (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
2314 port->fun_prefix anymore (may change later),
2315 (genFunction, genEndFunction): do not store/restore local registers for
2316 _main (this should take care the --main-return command line option in
2318 (genOr): removed some legacy pic-port instructions,
2319 * src/pic16/genarith.c (genAddLit): re-enabled old code because
2320 performing operations with SFR's causes data to be written more than
2321 once to each SFR. Perhaps SFRs should be handled in special cases...
2322 * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
2324 * src/pic16/main.c (_process_pragma): stack bound checking did not take
2325 into account for stack starting position,
2326 (struct OPTIONS pic16_optionsTable): added command line argument
2327 --extended or -y for Extended Instruction Support,
2328 * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
2329 (deassignLRs): *** perhaps the most important change, old 'for' code
2330 (commented out for reference), didn't account for some registers which
2331 were left marked 'not free' after a pointer operation. The change
2332 reduces register usage a lot in some cases
2334 2006-03-04 Borut Razem <borut.razem AT siol.net>
2336 * support/regression/ports/hc08/spec.mk: remove *.asm in traget
2338 * support/regression/tests/bug-524697.c: decreased array size for
2339 mcs51 to fit into the internal RAM
2340 * support/regression/Makefile.in: a little bit more verbose
2342 2006-03-03 Borut Razem <borut.razem AT siol.net>
2344 * support/regression/fwk/lib/testfwk.c,
2345 support/regression/fwk/include/testfwk.h: introduced function
2346 _prints(), nonrecursive _printn(), call _initEmu() from main()
2347 * support/regression/ports/gbz80/support.asm,
2348 support/regression/ports/ucz80/support.asm,
2349 support/regression/ports/z80/support.asm,
2350 support/regression/ports/ds390/support.c,
2351 support/regression/ports/hc08/support.c,
2352 support/regression/ports/host/support.c,
2353 support/regression/ports/mcs51/support.c,
2354 support/regression/ports/xa51/support.c: added empty _initEmu()
2356 * support/regression/ports/pic16/gpsim.cmd,
2357 support/regression/ports/pic16/spec.mk,
2358 support/regression/ports/pic16/support.c,
2359 support/regression/Makefile.in: added pic16 regression test
2361 2006-03-01 Raphael Neider <rneider AT web.de>
2363 * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
2364 genConstPointerGet): use safe way of generating MOVFF to cover
2365 literals as well as registers, fixes bug #1440527
2366 * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
2368 (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
2369 more correctly, fixes bug #1232186
2370 (pic16_printIval): use pic16_printIvalUnion() for initialized unions
2371 * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
2372 gplink guess the correct processor in more cases, applied patch
2373 from Till Riedel attached to and fixing bug #1436552
2375 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2377 * support/regression/tests/array.c: added, contains check for #1434401
2378 * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
2380 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
2382 * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
2383 * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
2384 * device/include/mcs51/c8051f326.h,
2385 * device/include/mcs51/c8051f340.h: new SiLabs mcu's
2386 * device/include/mcs51/c8051f000.h,
2387 * device/include/mcs51/c8051f018.h,
2388 * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
2389 PCON_IDLE,PCON_STOP and added sfr16 definitions
2391 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2393 * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
2394 genGetWord): fixed bug 1409955
2396 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2398 * device/include/hc08/mc68hc908gp32.h,
2399 * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
2401 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
2403 * src/SDCCast.c (constExprValue): return NULL if not a value
2404 * src/SDCCglue.c (printIvalArray): fixed bug 1225568
2405 * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
2406 * support/regression/tests/bitfields.c: enabled signed bitfield for all
2408 2006-02-13 Borut Razem <borut.razem AT siol.net>
2410 * src/regression/ptrarg.c: added, fails due to bug #1430967
2411 * src/regression/Makefile: ptrarg.c added, ...
2413 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2415 * src/z80/gen.c (genUnpackBits): fixed bug 1019480
2416 * support/regression/tests/bitfields.c: enabled signed bitfield for z80
2418 2006-02-11 Borut Razem <borut.razem AT siol.net>
2420 * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
2421 print "Processor: xxx" message to stdout only if --verbose
2423 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2425 * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
2426 * support/regression/tests/bug1426356.c: added
2427 * support/regression/tests/bitfields.c: removed 2 tests
2429 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
2431 * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
2432 * device/include/mcs51/c8051f330.h,
2433 * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
2434 PCON_IDLE,PCON_STOP and added sfr16 definitions
2435 * device/lib/_divsint.c,
2436 * device/lib/_divuint.c,
2437 * device/lib/_divulong.c,
2438 * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
2439 register bank bug for small stackauto
2441 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
2443 * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
2445 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
2447 * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
2448 * all.dsp: corrected several bin paths
2449 * device/include/mcs51/c8051f120.h,
2450 * device/include/mcs51/c8051f300.h,
2451 * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
2452 to PCON_IDLE,PCON_STOP
2453 * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
2454 * device/lib/printf_large.c (output_float): fixed bug 1388703
2455 * support/regression/tests/bug1057979.c: added test for bug 1388703
2457 2006-02-08 Raphael Neider <rneider AT web.de>
2459 * src/pic/pcode.c (pciTRIS): fixed typo,
2460 (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
2461 (LinkFlow): fixed handling of flows that end in a call,
2462 (ReuseReg): perform safety check earlier
2463 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
2464 to work with flows at the beginning of a pBlock,
2465 fixes #1426557 (Symbol not previously defined),
2466 (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
2468 (RemoveUnusedRegisters): update register usage info
2469 * src/pic/ralloc.c (newReg): prevent duplicate registers from being
2470 created, reuse existing ones instead
2471 * src/pic/gen.c (genPcall): fixed #1424719
2473 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
2475 * link/z80/lkmain.c,
2477 * link/z80/lkdata.c,
2478 * link/z80/aslink.h: fixed build on current cygwin:
2479 replaced getline() by lk_getline()
2481 2006-02-01 Borut Razem <borut.razem AT siol.net>
2483 * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
2484 src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
2485 src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
2486 src/regression/bool1.c, src/regression/bool2.c,
2487 src/regression/bool3.c, src/regression/call1.c,
2488 src/regression/compare.c, src/regression/compare10.c,
2489 src/regression/compare2.c, src/regression/compare3.c,
2490 src/regression/compare4.c, src/regression/compare5.c,
2491 src/regression/compare6.c, src/regression/compare7.c,
2492 src/regression/compare8.c, src/regression/compare9.c,
2493 src/regression/configword.c, src/regression/for.c,
2494 src/regression/inline.c, src/regression/mult1.c,
2495 src/regression/nestfor.c, src/regression/or1.c,
2496 src/regression/pointer1.c, src/regression/ptrfunc.c,
2497 src/regression/rotate1.c, src/regression/rotate2.c,
2498 src/regression/rotate3.c, src/regression/rotate4.c,
2499 src/regression/rotate5.c, src/regression/rotate6.c,
2500 src/regression/rotate7.c, src/regression/string1.c,
2501 src/regression/struct1.c, src/regression/sub.c,
2502 src/regression/sub2.c, src/regression/switch1.c,
2503 src/regression/while.c, src/regression/xor.c,
2504 src/regression/create_stc, src/regression/simulate,
2505 src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
2507 * src/regression/gpsim_assert.h: added
2509 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
2511 * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
2512 ((void (code *) (void)) 0) ();
2521 * as/mcs51/aslink.h,
2523 * as/mcs51/asmain.c,
2524 * as/mcs51/lkdata.c,
2526 * as/mcs51/lkmain.c,
2529 * as/z80/asmain.c: fixed build on current cygwin:
2530 replaced getline() by as_getline()
2532 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
2534 * src/SDCC.y: fixed bug #716242, exchanged pointer and function
2535 declarator in the symbol chain
2537 * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
2538 parameter list for function pointers
2539 * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
2540 * support/regression/tests/bug-716242.c: added
2542 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
2544 * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
2546 * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
2548 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
2550 * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
2551 inifinitely recurseable, added static
2552 * support/regression/tests/bug-1408066.c: added
2554 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
2557 * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
2558 renamed, added possibility to create "postLoopLbl"-labels
2559 * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
2560 newiTempLoopHeaderLabel
2561 * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
2562 isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
2563 addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
2564 hasNonPtrUse, loopInvariants, addressTaken, findInduction,
2565 findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
2566 (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
2567 (basicInduction): fixed bug #136564, made static,
2568 (loopInduction): changed parameter of basicInduction, made static,
2569 (addPostLoopBlock): added
2570 * src/SDCCloop.h: removed backEdges, pregion, pinduction,
2571 loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
2573 * support/regression/tests/bug-136564.c: added
2574 * support/regression/ports/mcs51-xstack-auto/spec.mk: added
2575 --std-sdcc99 to LIBSDCCFLAGS
2577 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
2579 * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
2581 * support/regression/tests/bug-1406131.c: added
2583 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
2585 * src/SDCCast.c (decorateType): fix promotion of unary minus
2586 * src/SDCCsymt.c (computeType): beautified
2587 * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
2588 (valUnaryPM, valComplement): fix sign and promotion,
2589 (valNot): ANSI: result type is int (SDCC: unsigned char)
2590 * support/regression/tests/uminus.c: speedup by removing superflous
2592 * support/regression/tests/onebyte.c: added promotion and signedness
2593 tests for unary minus
2594 * support/regressions/tests/bug-477927.c: disable warning about
2595 uninitialized variables
2596 * support/regression/tests/not.c: added
2598 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
2600 * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
2601 * src/mcs51/gen.c (gen51Code): show final register usage after
2602 fillGaps in asm with --i-code-in-asm
2603 * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
2604 markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
2605 incUsed, rliveClear, adjustIChain): made static,
2606 (setFromRange): excluded because it's unused,
2607 (findPrevUseSym, markWholeLoop): added,
2608 (findPrevUse): rewritten; fixes bug 895992; now a complete search
2609 through all branches of predecessors enables sdcc to emit the warning
2610 W_LOCAL_NOINIT, marking of outermost loop was incomplete,
2611 (rlivePoint): made static, added parameter emitWarnings which is only
2612 true during the first run out of two,
2613 (findRecursiveSucc, findRecursivePred): removed,
2614 (computeLiveRanges): made static, added parameter emitWarnings,
2615 (dumpIcRlive): added for debugging only
2616 * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
2617 removed prototype of setFromRange()
2618 * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
2619 in call of computeLiveRanges()
2620 * support/regression/tests/bug-895992.c: added
2621 * support/regression/tests/bug-971834.c: added
2622 * support/valdiag/tests/bug-895992.c: added
2623 * support/valdiag/tests/bug-971834.c: added
2625 2005-12-18 Raphael Neider <rneider AT web.de>
2627 * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
2628 (genUnpackBits): improved code for direct operands,
2629 (genPackBits): improved code for literal assignment to bitfields
2630 and for direct destination operands (no FSR indirection),
2631 prevented redundant AND, fixes #1362800,
2632 (AccLsh): added parameter to disable masking of the result
2633 * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
2634 skip instructions with side-effects (like incfsz),
2635 (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
2636 * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
2637 * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
2640 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
2642 * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
2643 volatile variables as spill location
2645 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
2647 * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
2649 * support/regression/tests/bug-1376320.c: added
2651 2005-12-08 Raphael Neider <rneider AT web.de>
2653 * src/pic/device.c: renamed is_shared to pic14_is_shared
2654 * src/pic/gen.c (genIfx): re-enabled handling of sbits
2655 * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
2656 (is_valid_identifier): added for above workaround
2658 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
2660 * device/lib/Makefile.in: fixed to enable port-specific-objects
2661 * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
2662 char, thanks Hubert Sack
2663 * doc/sdccman.lyx: documented --xstack-loc,
2664 elaborated a bit more on interrupts and pitfalls,
2665 removed "setjmp/longjmp unsupported",
2666 documented some unsupported C99 features
2667 * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
2668 * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
2669 if, thanks Hubert Sack
2670 * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
2671 * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
2673 * support/regression/get_ticks.py: new, get cpu cycles and code size, so
2674 regression tests can report resource usage (rfe 700441)
2675 * support/regression/collate-results.py: report resource usage
2676 * support/regression/ports/ds390/spec.mk,
2677 * support/regression/ports/hc08/spec.mk,
2678 * support/regression/ports/mcs51/spec.mk,
2679 * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
2680 * support/regression/ports/ds390/uCsim.cmd,
2681 * support/regression/ports/hc08/uCsim.cmd,
2682 * support/regression/ports/mcs51/uCsim.cmd,
2683 * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
2684 * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
2685 library, use the default one
2686 * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
2687 building the library
2689 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2691 * config.dsp: added dependency on .version and configure_vc.awk
2692 * device/include/setjmp.h: updated for --stack-auto and --xstack
2693 * device/include/mcs51/at89c51snd1c.h: corrected line endings
2694 * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
2695 * device/lib/_setjmp.c: updated for --stack-auto and --xstack
2696 * device/lib/libsdcc.lib: added _setjmp
2697 * src/SDCCast.c (createIvalCharPtr): fixed warnings,
2698 (decorateType): fixed bug 1372851,
2699 (optimizeGetHbit): fixed warning
2700 * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
2701 array initialisation
2702 * support/regression/tests/bug1057979.c: added test for bug 1358192
2703 * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
2705 2005-12-03 Borut Razem <borut.razem AT siol.net>
2707 * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
2708 command since the NSIS was upgraded to version 2.11 on CF x86-linux2
2710 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2712 * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
2713 createIval): implement symbol independant "flexible array member",
2714 (createIvalCharPtr): implemented flexible array initialisation with a
2716 * src/SDCCsymt.c (copyStruct): removed,
2717 (getSize): fixed misleading comment,
2718 (getAllocSize): removed, the additional allocation size is now in
2719 sym->flexArrayLength,
2720 (checkStructFlexArray): new, syntax checks for flexible array members,
2721 (compStructSize): added syntax checks for "flexible array members"
2722 (copyStruct): removed,
2723 (copyLinkChain): removed inefficient fix for bug 770487
2724 * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
2725 * src/SDCCsymt.h: added structdef.b_flexArrayMember and
2726 symbol->flexArrayLength
2728 * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
2729 E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
2730 * support/regression/tests/structflexarray.c: added
2731 * support/valdiag/tests/structflexiblearray.c: added
2733 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2735 * src/SDCCast.c (decorateType): fixed bug 1368489
2736 * support/Util/SDCCerr.c,
2737 * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
2739 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2741 * device/include/mcs51/at89c51snd1c.h: added file submitted by
2742 Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
2744 2005-11-27 Borut Razem <borut.razem AT siol.net>
2746 * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
2747 support/cpp2/mkdeps.h: added command line option
2748 -obj-ext=<extension> to SDCPP to define object file externion, used
2749 for generation of make dependencies (-M)
2750 * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
2752 2005-11-26 Borut Razem <borut.razem AT siol.net>
2754 * support/scripts/sdcc.nsi: added small-stack-auto libraries,
2755 added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
2756 added pic and pic16 libraries
2758 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2760 * device/include/float.h: Corrected typo in prototype of __fsgt
2762 2005-11-25 Borut Razem <borut.razem AT siol.net>
2764 * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
2765 added creation of model-mcs51-stack-auto libraries
2767 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
2769 * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
2771 * src/SDCCast.c (createIvalArray): removed obsolete comment
2773 2005-11-24 Borut Razem <borut.razem AT siol.net>
2775 * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
2776 added missing device/lib/mcs51/crt*.asm sources
2778 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
2780 * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
2782 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
2784 * device/lib/_fs2schar.c,
2785 * device/lib/_fs2sint.c,
2786 * device/lib/_fs2slong.c: optimized inline asm
2788 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2790 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2791 Better handling of floats between -1.0 and 0.0.
2793 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2795 * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
2796 (the missing "if"s prohibited removal of redundant labels)
2798 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2800 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2801 Properly convert floats between -1.0 and 0.0 to long, int, and char
2802 types (max integer value of negative floats tends to zero).
2803 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
2804 Removed changes made so to work properly with floats between
2805 -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
2808 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
2810 * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
2811 * src/mcs51/gen.c (genUnpackBits): better code and a fix,
2812 (genCast) cosmetic change
2813 * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
2814 * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
2816 * support/regression/tests/bitfields (testSignedBitfields): added
2818 2005-11-18 Borut Razem <borut.razem AT siol.net>
2820 * sdcc/device/lib/Makefile.in: remove all unnecessary files
2821 * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
2822 introduced SILENT option to make building of pic16 libraries less
2824 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2826 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
2827 Now they work properly with floats between -1.0 and 0.0
2828 * device/lib/printf_large.c: Removed temporary patch for bug 1358192
2830 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
2832 * src/SDCCicode.c (printOperand): added missing else
2834 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
2836 * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
2837 reformatted for better readability
2838 * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
2841 2005-11-17 Borut Razem <borut.razem AT siol.net>
2843 * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
2844 introduced SILENT option to make building of pic16 libraries less
2845 verbose - used for nightly snapshot build
2846 * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
2847 available on Win32 platforms.
2848 * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
2849 medium, large, pic and pic16
2851 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2853 * device/lib/printf_large.c: Temporary patch for bug 1358192:
2854 printf("%f"...) sets fraction to zero.
2856 2005-11-16 Raphael Neider <rneider AT web.de>
2858 * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
2860 * src/pic/gen.c (genIfx): implemented for CARRY bit
2861 * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
2862 to generic pointers, fixes #1357332,
2863 (pic16_movLit2f): NEW,
2864 (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
2866 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
2868 * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
2870 2005-11-11 Raphael Neider <rneider AT web.de>
2872 * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
2873 * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
2874 compute pointer's type from operand,
2875 (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
2876 improved single bit reads, fixes bug #1353379
2878 2005-11-09 Borut Razem <borut.razem AT siol.net>
2880 * support/scripts/sdcc.nsi: added lib/pic to the package
2882 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
2884 * src/SDCCval.c (valUnaryPM): fixed bug 1350699
2886 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
2888 * support/regression/tests/bug1348008.c: added
2889 * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
2890 * support/regression/tests/bug1337835.c: updated comment
2892 2005-11-06 Borut Razem <borut.razem AT siol.net>
2894 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
2895 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
2896 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2897 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
2898 sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
2899 dynamic construction of cl_error_class and derivates - 2.nd try
2901 2005-11-05 Borut Razem <borut.razem AT siol.net>
2903 * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
2904 bug, which caused Bus Errors on sparc solaris
2906 2005-11-04 Borut Razem <borut.razem AT siol.net>
2908 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
2909 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
2910 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
2911 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
2912 sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
2913 and derivates to resolve the initialization problem on OSX
2915 2005-11-02 Borut Razem <borut.razem AT siol.net>
2917 * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2918 corrected typo - #include <winsock2.h>
2920 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
2922 * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
2923 (_asxxxx_mapping): added org directive for future enhancements
2925 2005-11-01 Borut Razem <borut.razem AT siol.net>
2927 * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
2928 enabled sockets on WIN32
2929 * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
2931 2005-10-31 Borut Razem <borut.razem AT siol.net>
2933 * support/regression/generate-cases.py: escape backslashes in {testcase}:
2934 WIN32 backslash path delimiters should be escaped when used in C strings
2935 * support/regression/tests/bitfields.c: exclude failing assertions for
2936 __CYGWIN32__ and __MINGW32__ hosts
2938 2005-10-30 Borut Razem <borut.razem AT siol.net>
2940 * src/SDCCutil.c: corrected double comparison typo
2942 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
2944 * device/lib/medium/Makefile: added for new memory model medium
2945 * device/include/asm/mcs51/features.h: updated for medium/pdata
2946 * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
2947 added Multiply & Accumulate sbit's and MAC0_PAGE define
2948 * device/include/mcs51/c8051f300.h: added sfr16 definitions
2949 * device/include/mcs51/c8051f310.h: added sfr16 definitions
2950 * device/lib/_mullong.c: update for medium model
2951 * device/lib/incl.mk: added medium model
2952 * doc/sdccman.lyx: documented medium model
2953 * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
2954 * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
2955 * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
2956 * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
2957 (allocParms): set SCLS and OCLS to pdata for medium model
2958 * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
2960 (powof2): return <0 if not power of 2
2961 * src/avr/gen.c (genBitWise): use updated powof2
2962 * src/mcs51/gen.c (genMinusDec): use acc if necessary,
2963 (shiftR2Left2Result): small optimization in setup, save acc when storing,
2964 (shiftLLeftOrResult): use B if necessary
2965 * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
2966 * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
2967 * src/pic/main.c (_pic14_do_link): made void parameter list explicit
2968 * support/regression/Makefile.in: added test-mcs51-medium
2969 * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
2971 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
2973 * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
2975 * device/lib/time.c (mktime): fixed bug 1334315
2977 2005-10-28 Raphael Neider <rneider AT web.de>
2979 * device/include/pic/p16f_common.inc: added common declarations
2980 * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
2982 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
2984 * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
2985 (aopPutUsesAcc): added to predict accumulator use,
2986 (assignResultValue): save acc if necessary,
2987 (genMinusDec): store result if indirectly addressed,
2988 (genDivOneByte): save acc if necessary,
2989 (movLeft2Result): bugfix if left already in acc,
2990 (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
2991 attention to accumulator use (esp. pdata),
2992 (genReceive): receive pdata correctly
2993 * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
2994 * src/SDCCicode.h: added isOperandInPagedSpace prototype
2996 2005-10-27 Raphael Neider <rneider AT web.de>
2998 * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
3000 2005-10-27 Raphael Neider <rneider AT web.de>
3002 * .version: changed version to 2.5.4
3003 * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
3004 * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
3005 (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
3006 arithmetics support routines
3007 * device/lib/pic/Makefile.rules: have assembler sources preprocessed
3008 * device/lib/Makefile.in: also create installdir for pic
3010 * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
3012 * src/pic/device.c (dump_sfr): rewritten to delegate register
3013 placement to the linker (use `extern sym' rather than sym EQU addr),
3014 (validAddress): fixed to check last specified address
3015 * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
3016 (popGetLit): truncate literal value to 8 bit,
3017 (popGet): moved assert to more appropriate place
3018 (popGetExternal): create pCode operand from and mark the according
3019 symbol as being `extern'
3020 (popGetAddr): added sanity check on immediate's offset, provide
3021 GPOINTER tag on demand
3022 (aopPut): fixed for immediates,
3023 (mov2w_op): move operand's address or contents to WREG (depending on
3024 operand type), safer variant of mov2w,
3025 (movwf,call_libraryfunc): NEW, handy abbreviations,
3026 (get_argument_pcop,get_return_val_pcop,pass_argument,
3027 get_returnvalue): interface for accessing function parameters and
3029 (assignResultValuei,genRet): use new parameter/return value interface
3030 (pic14_getDataSize): back to old version handling generic pointers,
3031 (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
3032 provided implementation and/or fixed old one,
3033 (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
3034 calls, removed legacy 8051 reference code
3035 (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
3036 (loadSignToC): NEW, move the operands sign bit to CARRY,
3037 (genGenericShift): NEW, replaces genLeftShift, genRightShift and
3038 genRightShiftSigned, accepts negative shift counts,
3039 (setup_fsr): load FSR and adjust IRP (indirect memory access),
3040 (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
3041 generic pointers, __data pointers and __code pointers,
3042 (genUnpackBits,genPackBits): rewritten to work with generic pointers
3043 and signed bitfields, limit bitfields to 8 bit,
3044 (genDataPointerGet): fixed number of bytes read,
3045 (genGenPointerGet,genConstPointerGet): fixed bitfield access,
3046 (genPointerGet,genPointerSet): fixed handling of __code pointers,
3047 pointers to constant data are no longer assumed to point to __code
3048 space, removed invalid pointer types,
3049 (bitpatternFromVal): retrieve the PICs representation of an integer
3051 (genDataPointerSet): fixed assigning to po_immediate operands,
3052 (genGenPointerSet): implemented as library call,
3053 (genIfx): fixed incorrect condition,
3054 (genAddrOf): limit generic pointers' addresses to 2 bytes,
3055 provide GPOINTER tag according to destination's storage class,
3056 (genCast): added code to handle casting to generic pointers, added
3057 sign-/zero extension of the result
3058 (aop_isLitLike,op_isLitLike): fixed handling of immediates
3059 * src/pic/gen.h: added macros to access IRP bit in STATUS register
3060 * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
3062 * src/pic/glue.c (is_shared_address,is_shared): check whether a given
3063 address/register resides in the shared banks
3064 (emitSymbolToFile): improved to handle global and `pinned' symbols,
3065 put all variables into separate sections (have the linker arrange
3067 (picglue): put init code and interrupt handlers in separate sections
3068 * src/pic/main.c: added port specific options table, modified to PORT
3069 structure to make GPOINTERs 3 byte, added pic14_options
3070 (_pic14_do_link): private linking routine (update paths to libraries,
3071 add libsdcc.lib by default)
3072 * src/pic/main.h: declare pic14_options
3073 * src/pic/pcode.c: fixed instructions i/o relations,
3074 (RegCond): reverted to correct version,
3075 (newpCodeOpLit): truncate literals to 8 bit,
3076 (genericPrint): added debug output,
3077 (getRegFromInstruction): fixed for various operand types, simplified
3078 (BuildFlow): fixed broken handling of isntructions with labels
3079 (LinkFlow): start at last instruction in flow (skip trailing comments),
3080 pass the flow on to the next instruction after CALL
3081 (pCodeReplace): NEW, replace a pCode and move meta data to the new one
3082 (insertPCodeInstruction): fixed inserting after a skip instruction,
3083 (DoBankSelect): fixed for labeled instructions
3084 (OptimizepBlock): honor --nopeep switch
3085 (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
3086 * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
3087 * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
3088 (pCodeOptime2pCodes): allow disabling this optimization via
3089 --no-pcode-opt due seldomly occuring bugs, fixed some conditions
3090 but is still buggy), started implementation of a dataflow based
3091 pCode optimization (CSE + dead code elimination)
3092 (pCodeRegMapLiveRangesInFlow): removed bogus inCond
3093 * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
3094 names are independant of the stack location and therefore portable across
3097 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
3099 * src/mcs51/ralloc.c (bitType): added to detect bit variables,
3100 (selectSpil): fixed bug 1337835 by not spilling bit variables
3101 * support/regression/tests/bug1337835.c: added test for this bug
3102 * src/mcs51/peeph.def: restart after rule 3.c,
3103 addded rules 263.x to optimize loading constants
3105 2005-10-26 Raphael Neider <rneider AT web.de>
3107 * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
3108 * src/pic16/gen.c (genUnpackBits): support signed bitfields,
3109 (genAssign): emit warning when casting literals to generic pointer
3110 type, also applies when taking the address of a fixed variable,
3111 (genCast): improved casting to generic pointers
3112 * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
3113 extern variables, added verbose error message
3114 * device/include/pic16/{string.h,errno.h}: added #pragma library c
3116 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
3118 * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
3119 carry must be complemented too
3120 * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
3121 could be emitted by genMinus
3122 * src/SDCCval.c (constVal): fixed bug 1305065
3124 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
3126 * src/SDCCast.c (addCast): added promotion for bit variables
3127 (decorateType): emit W_COMPLEMENT before the problem vanishes behind
3128 promotion casts + optimisation
3129 (optimizeGetWord): fix warning 'i' might be used uninitialized
3130 * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
3131 * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
3133 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
3135 * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
3136 all chars are promoted to int; promotion should be handled in SDCCast.c
3138 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3140 * device/lib/_strcmp.c: Fixed bug 1326457
3142 2005-10-11 Raphael Neider <rneider AT web.de>
3144 * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
3145 * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
3147 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
3149 * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
3150 * support/regression/tests/sfr16.c: added test for the sfr32 bug
3152 2005-10-04 Raphael Neider <rneider AT web.de>
3154 * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
3155 device/lib/pic16/pics.all: added pic18f1320
3156 * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
3158 2005-09-30 Raphael Neider <rneider AT web.de>
3160 * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
3161 * src/pic16/devices.inc: NEW, provides device descriptions
3162 * src/pic16/gen.c (genInline): fixed handling of ';'-comments
3164 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3166 * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
3169 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
3171 * doc/sdccman.lyx: updated Highest Order Bit documentation,
3172 documented Any Order Bit, Higher Order Byte and Higher Order Word
3173 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
3174 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
3175 (optimizeGetAbit): new, to get any bit, not only the high bit,
3176 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
3177 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
3178 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
3179 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
3180 RIGHT_OP: also try GETBYTE, GETWORD optimization,
3181 GETABIT, GETBYTE, GETWORD: decorate them,
3182 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
3183 (ast_print): added GETABIT, GETBYTE, GETWORD
3184 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
3185 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
3186 (geniCodeBinary): new generic binary icode,
3187 (ast2iCode): added GETABIT, GETBYTE, GETWORD
3188 * src/port.h: updated comment for PORT.hasExtBitOp
3189 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
3190 (genGetByte): new, to get a single byte,
3191 (genGetWord): new, to get a word from a long,
3192 (gen51Code): added GETABIT, GETBYTE, GETWORD
3193 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
3195 2005-09-23 Raphael Neider <rneider AT web.de>
3197 * configure.in, configure: have device/lib/pic configured
3198 * device/lib/Makefile.in: added model-pic14
3199 * device/lib/clean.mk: added pic/ to clean rule
3200 * device/lib/pic: added rudimentary pic14 library providing support
3201 functions for multiplication/division/generic pointer access
3202 * src/SDCCopt.c (convilong): mark support functions as extern
3203 for pic14 port as well
3204 * src/pic/gen.c (genMult): added assertions,
3205 (genpic14Code): emit warning on unhandled iCodes
3206 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
3207 * src/pic/pcode.c (pCodeOpCopy),
3208 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
3209 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
3210 SFR_REGISTER}), made safe for future extensions
3211 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
3212 instructions even if preceeded by SKIP instructions (also remove
3213 them); removed unused code
3214 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
3215 prevents leaving parts of the structure uninitialized after copying
3217 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
3219 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
3221 * support/regression/tests/addsub.c: added test for the bug
3223 2005-09-21 Raphael Neider <rneider AT web.de>
3225 * device/include/pic16/pic18f1220.h,
3226 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
3227 * device/lib/pic16/Makefile.rules: added missing opening paren
3228 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
3229 are provided in genutils.c,
3230 (genUminusFloat,genUminus,genCmpEq): added asserts on different
3231 operand/result sizes,
3232 (genCmp): assert on NULL pointers first, then check deref'ed values
3233 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
3236 2005-09-18 Raphael Neider <rneider AT web.de>
3238 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
3239 as these are now unused,
3240 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
3241 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
3242 local, avoids uninitialized pointer dereference on r->name
3243 * src/pic16/ralloc.c (newReg): fixed indentation
3245 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
3247 * src/SDCCval.c (constVal): fixed bug 730366
3248 * support/Util/SDCCerr.c,
3249 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
3251 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3253 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
3255 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
3257 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
3259 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3261 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
3262 (hex2dec): made hex_digit unsigned char, removed ascii dependance
3263 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
3264 (hex2dec): made hex_digit unsigned char, removed ascii dependance
3265 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
3266 * packihx/packihx.c (hexDigit): made c unsigned char
3267 * as/mcs51/lklibr.c (fndsym),
3268 * link/z80/lkgb.c (gb),
3269 * link/z80/lklibr.c (fndsym),
3270 * link/z80/lkrloc.c (relr),
3271 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
3272 * src/SDCC.lex (checkCurrFile, process_pragma),
3273 * src/SDCCglue.c (spacesToUnderscores),
3274 * src/SDCCmain.c (setParseWithComma, processFile),
3275 * src/asm.c (tvsprintf, printCLine),
3276 * src/avr/gen.c (emitcode, aopPut),
3277 * src/ds390/gen.c (emitcode),
3278 * src/hc08/gen.c (emitcode, emitinline),
3279 * src/mcs51/gen.c (emitcode, genInline),
3280 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
3282 * src/pic/ralloc.c (debugLog),
3283 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
3285 * src/pic16/ralloc.c (debugLog),
3286 * src/z80/main.c (_process_pragma):
3287 made all ctype.h function calls safe
3288 * src/SDCCopt.c: include math.h for fabs
3289 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
3290 and used them throughout the code to make ctype.h function calls safe
3291 * src/ds390/main.c (asmLineNodeFromLineNode),
3292 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
3293 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
3295 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
3296 (newpCodeAsmDir): made ctype.h function calls safe
3297 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
3298 pic16_emitcode): made lbp unsigned char*
3299 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
3300 (pic16_newpCodeAsmDir): made ctype.h function calls safe
3301 * src/xa51/gen.c (emitcode),
3302 * src/z80/gen.c (_emit2): made lbp unsigned char*
3303 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
3306 2005-09-05 Raphael Neider <rneider AT web.de>
3308 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
3309 access bank splitpoint
3311 2005-09-05 Raphael Neider <rneider AT web.de>
3313 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
3315 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
3317 * .version: changed to version 2.5.3
3318 * doc/sdccman.lyx: changed version to 2.5.3,
3319 documented --codeseg and --constseg and pragma codeseg and constseg,
3320 documented bit parameters (reentrant) and bit returning
3321 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
3322 currFunc->recvSize, but is this ok for all ports?
3323 (ast2iCode): result of ~ on unsigned char must be cast to int for
3325 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
3326 function pointers in bit space
3327 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
3328 (processFuncArgs): call port.reg_parm() with reentrancy info
3336 * src/z80/main.c: port.reg_parm prototype extended with
3337 "bool reentrant" parameter
3338 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
3339 options.stackAuto for allocating bit register parameters
3340 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
3341 (genSend): set BitBankUsed if it is,
3342 (selectRegBank): factored out of genCall for use in genPcall,
3343 (genCall): removed redundant dtype assignmen, use selectRegBank,
3344 (genPcall): handle returning in Carry properly, save in F0 if needed,
3345 (genReceive): handle bit register parameters
3346 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
3347 (mcs51_assignRegisters): enable bit registers for all reentrant
3348 functions and don't set BitBankUsed unconditionally
3349 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
3350 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
3351 * support/regression/tests/funptrs.c: added tests for BOOL and for return
3353 2005-08-27 Borut Razem <borut.razem AT siol.net>
3355 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
3356 ppc-osx (Darwin) does not support -u option. It seems that it is
3357 supported only on Linux - GNU cp
3359 2005-08-25 Borut Razem <borut.razem AT siol.net>
3361 * sim/ucsim/gui.src/serio.src/Makefile.in,
3362 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3363 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3364 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
3365 install and strip, since the strip at /usr/ccs/bin should be used
3368 2005-08-24 Borut Razem <borut.razem AT siol.net>
3370 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
3372 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
3374 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
3377 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
3379 * as/mcs51/aslink.h: completed lkrloc.c prototypes
3380 * as/mcs51/lkmain.c (link_main): fixed warning
3381 * device/include/stdbool.h: ds390 has no advanced bit support yet
3382 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
3383 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
3384 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
3385 and updated their macros
3386 * src/SDCCval.c (constVal): updated comment for renamed b_long
3388 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
3390 * as/mcs51/asdata.c: changed ctype['['] to BINOP
3391 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
3392 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
3393 (oprio): set priority for '['
3394 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
3396 * as/mcs51/asm.h: added defines R_BIT and S_BIT
3397 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
3398 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
3399 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
3400 added overlayable BIT_BANK area
3401 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
3402 (summary2): explain 'T' in legenda
3403 * as/mcs51/lkrloc.c: replaced old K&R style,
3404 (relr): added R_BIT processing,
3405 (errmsg): added "Bit-addressable relocation error",
3406 (adb_bit): added for converting from byte- to bit-addressable space,
3407 (adb_24_bit): added for converting from byte- to bit-addressable space
3408 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
3409 used in reentrant functions now even as return value
3410 * device/lib/_gptrput.c (_gptrput): removed obsolete code
3411 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
3412 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
3413 * src/SDCCglobl.h: added indicator BitBankUsed
3414 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
3415 the bit registers b0-b7
3416 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
3417 (geniCodeCast): fixed bug 1263853,
3418 (geniCodeLogicAndOr): put result in bool or char,
3419 (geniCodeReceive): added parameter func for accessing the return type,
3420 (geniCodeFunctionBody): pass func to geniCodeReceive
3421 * src/SDCCmain.c: added indicator BitBankUsed
3422 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
3423 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
3424 (checkSClass): don't put automatic bool/bit on stack,
3425 (checkFunction): removed check on function cannot return bit
3426 * src/SDCCsymt.h: added newBoolLink prototype
3427 * src/mcs51/gen.c (rb1regs): added bit registers,
3428 (movc): created for assigning to carry,
3429 (pushReg, popReg): created for pushing registers,
3430 (sameRegs): check both AOP_REG and AOP_CRY types,
3431 (aopOp): handle bit registers,
3432 (aopPut): optimization no self-assign,
3433 (saveRegisters): push reg->base (bits) only once for bit registers,
3435 (unsaveRegisters): pop reg->base only once and use popReg,
3436 (assignResultValue): added parameter func and return in carry for bits,
3437 (genIpush): optimization no reload in A if not changed,
3438 (genSend): bit parameters in reentrant functions are passed in bit
3439 registers by first assigning to bits in B, then save registers and
3441 (genCall): handle returning in Carry properly, save it in F0 if needed,
3442 (genPcall): updated assignResultValue call, this is not safe yet for bit
3443 returning function !!!
3444 (genFunction): don't generate equ's for bit registers and use pushReg,
3445 (genEndFunction): take care of bit returning functions and use popReg,
3446 (genRet): return bit in Carry,
3447 (genIfx): optimize bit registers and other directly addressable bits,
3448 (genReceive): updated assignResultValue call
3449 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
3450 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
3451 registers when using stack-auto
3452 * src/mcs51/ralloc.c (_G): added allBitregs,
3453 (regs8051): added the bit registers,
3454 (createStackSpil): use macro IS_BIT,
3455 (getRegBit): added to allocate a bit register, else spill,
3456 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
3457 (updateRegUsage): factored out to ease stepping while debugging,
3458 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
3459 also allocate bit registers,
3460 (fillGaps): handle bit registers,
3461 (findAllBitregs): added to create bit vector with all bit registers,
3462 (mcs51_allBitregs): returns this bit vector,
3463 (mcs51_assignRegisters): when using stack-auto use bit registers for
3464 passing parameters and creating local variables
3465 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
3467 2005-08-22 Borut Razem <borut.razem AT siol.net>
3469 * device/lib/Makefile.in: replaced find option -or with -o
3470 to make it run on solaris
3472 2005-08-22 Raphael Neider <rneider AT web.de>
3474 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
3475 fixes #1265442 (crash on Solaris)
3477 2005-08-20 Borut Razem <borut.razem AT siol.net>
3479 * configure, configure.in: added tests for libsocket and libnsl libraries,
3480 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
3481 from support/regression/Makefile.in
3482 * support/regression/Makefile.in: added
3483 * device/lib/pic16/Makefile.common.in: force make to use bash shell
3484 * sim/ucsim/libtool: regenerated on sparc-solaris
3485 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3486 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
3487 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
3488 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
3489 sparc-solaris, which doesn't use GNU ld linker
3490 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
3491 * as/Makefile: find on sparc-solaris does not support -maxdepth option
3493 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
3495 * src/mcs51/peeph.def: updated comments
3497 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3499 * device/lib/_gptrget.c,
3500 * device/lib/_gptrput.c: slightly shorter
3501 * doc/sdccman.lyx: incremented version
3502 * src/mcs51/peeph.def: moved peephole comments to the line of first
3503 change to better keep line correlation, reanimated 186.e
3504 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
3506 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
3508 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
3509 David Saxton with quotes around file name.
3511 2005-08-15 Borut Razem <borut.razem AT siol.net>
3513 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
3514 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
3515 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
3516 make tests run on x86_64 platform
3518 2005-08-13 Raphael Neider <rneider AT web.de>
3520 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
3521 as it might be executed DURING a build (parallel make is wonderful)
3523 2005-08-13 Raphael Neider <rneider AT web.de>
3525 * device/lib/Makefile.in (port-specific-objects-pic16):
3526 revert to cp $(PORT)/bin/*.* $(PORTDIR)
3527 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
3529 * device/lib/pic16/Makefile.rules: build subdirs before creating
3530 the library, removed builddir rule, create $(builddir) early in
3531 recurse rule, use empty recurse rule for leaf directories
3532 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
3533 mkdir errors (race condition), removed duplicate suffix "hex"
3535 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
3536 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
3537 prevents mkdir -p from aborting on Alpha
3539 2005-08-12 Raphael Neider <rneider AT web.de>
3541 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
3542 db-statements in order to allow for arrays of pointers in code
3543 sections to be placed without interspersed 0-padding, fixes
3545 * (emitStatistics): fixed division by zero for pic18f1220
3546 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
3547 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
3548 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
3549 * (pic16_pCodeConstString): keep track of already emitted string
3550 literals to prevent "duplicate definitions of symbol _str_NR"
3551 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
3553 * device/lib/Makefile.in: ignore failing PIC16 library builds
3554 * device/lib/pic16/Makefile: do not build if gputils are missing
3555 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
3557 2005-08-10 Raphael Neider <rneider AT web.de>
3559 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
3562 2005-08-10 Raphael Neider <rneider AT web.de>
3564 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
3565 Rokas' patch to add the new fixed point type "__fixed16x16"
3566 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
3567 functions for __fixed16x16 arithmetics
3568 * device/lib/pic16: reimplemented the build system to support
3569 a separate build directory, better handling of libio (create
3570 the library in a separate subdir for each architecture) and
3571 easier configuration (centralized in Makefile.common)
3573 2005-08-07 Raphael Neider <rneider AT web.de>
3575 * src/pic16/gen.c (genrshTwo): fixed sign extension
3576 * src/pic16/device.c: added pic18f2320, 4220 and 4320
3577 * device/include/pic16/pic18f2220.h: changed some bit definitions,
3579 * device/include/pic16/pic18f4220.h: NEW, header for
3580 pic18f4220 and pic18f4320
3581 * device/include/pic16/pic18fregs.h: added new devices,
3582 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
3583 * device/include/pic16/signal.h: resolved name clashes
3584 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
3585 to also allow testing for interrupt enable bits, added
3586 comments on how to use the macros
3587 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
3588 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
3589 register definitions for the devices
3590 * device/lib/pic16/pics.all: added new devices
3591 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
3593 * device/lib/pic16/libc/stdlib/memfree: do not count
3594 the block header as free memory
3595 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
3596 simplified and added missing end-of-blocklist-marker
3597 (reported by Peter Onion, fixes #1252814)
3598 * (_mergeHeapBlock): fixed loop condition
3599 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
3600 len==0, restructured code
3601 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
3602 up a bit, reduced bitfield accesses, prevent endless loops
3603 in case of heap corruption
3604 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
3605 "unreferenced arguments/must return a value" warnings
3606 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
3607 replaced BAUDREG with SPBRG
3608 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
3609 device/lib/pic16/debug/gstack/gstack.c: replaced
3610 _naked, _asm, _endasm with __naked, __asm, __endasm
3612 2005-08-05 Raphael Neider <rneider AT web.de>
3614 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
3615 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
3617 2005-08-05 Borut Razem <borut.razem AT siol.net>
3619 * device/lib/Makefile.in: added missing ';'
3620 * configure: removed ^M characters
3622 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3624 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
3625 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
3628 2005-08-04 Borut Razem <borut.razem AT siol.net>
3630 * configure.in: pic16 libraries build 2nd try - enable running
3631 configure in device/lib/pic16
3632 * configure: regenerated from configure.in
3633 * device/lib/Makefile.in: create $(PORT)/bin directory
3635 2005-08-03 Raphael Neider <rneider AT web.de>
3637 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
3638 to get/set values via pointers
3639 * (genUnpackBits,genPackBits): changed detection of
3640 ptr->bitfield vs. sym.bitfield, fixed access via generic
3641 pointers, removed dead (wrong) code for multibyte bitfields
3642 * (genNearPointerGet, genGenPointerGet): removed useless code,
3643 fixed bitfield detection, fixes #1250594
3644 * (genNearPointerSet): removed useless code
3645 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
3646 and introduced macro pic16_emitpcode that conditionally emits
3647 the origin of the following pCode (useful for debugging SDCC)
3648 * src/pic16/pcode.c: changed (and disabled) some debug outputs
3649 * (createDefmap): fixed handling of LFSR for --optimize-df
3651 2005-08-02 Borut Razem <borut.razem AT siol.net>
3653 * device/lib/Makefile.in: pic16 libraries build enabled since
3654 gputils-0.13.2 are now localy installed at sourceforge's compile farm
3656 2005-08-02 Raphael Neider <rneider AT web.de>
3658 * src/pic16/gen.c (genPackBits): removed deprecated warning
3659 * (genGenPointerSet): fixed bitfield detection
3661 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3663 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
3665 2005-07-31 Raphael Neider <rneider AT web.de>
3667 * device/lib/pic16/libdev/pic18f458.c,
3668 device/include/pic16/pic18f458.h: added missing T0CONbits
3670 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3672 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
3674 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
3676 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
3678 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3680 * device/include/mcs51/at89c51ed2.h: added.
3682 2005-07-23 Raphael Neider <rneider AT web.de>
3684 * src/pic/gen.h: added emitpcode macro for debugging
3685 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
3686 and replace by macro adding debug information on demand
3687 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
3688 * (gencjne): tried to fix; replaced with correct (slower) code
3689 * (gen{Unp,P}ackBits): fixed single bit access
3690 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
3691 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
3692 previous instruction
3693 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
3694 register has to be handled with care (forbidding movement
3695 of assignments/uses, removing assignments completely, ...)
3696 * (pCodeOptime2pCodes): make use of regIsSpecial
3697 * added lots of debugging output (commented out)
3698 * src/pic/rallloc.c (deassignLRs): prevent operand registers
3699 from being reused as result UNLESS it is known to work
3701 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3703 * support/Util/dbuf.h: include <stddef.h> for size_t
3704 * .version: changed to version 2.5.2
3706 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3708 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
3710 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3712 * src/hc08/gen.c (genMinus): fixed bug #1241835,
3713 (genModOneByte): removed needless psha/pula
3715 2005-07-22 Raphael Neider <rneider AT web.de>
3717 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
3718 have PIC14 handled like PIC16, fixes broken pic14 linker calls
3719 * src/pic/gen.c (resolveIfx): do not "invent" labels
3720 * (genSkipc): changed to positive logic
3721 * (genSkipCond): removed as no longer needed
3722 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
3724 * (genLeftShift): check operands are in different registers
3725 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
3726 INCF does not update CARRY...
3727 * src/pic/main.c: fixed _linkCmd
3728 * src/pic/pcode.c (unlinkpCode): added inactive code
3729 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
3730 alive (do not assign result and operand overlapping registers)
3732 2005-07-22 Raphael Neider <rneider AT web.de>
3734 * src/pic/device.c (dump_sfr): replaced register declaration with
3735 call to emitSymbolToFile() to avoid duplicate symbols
3736 * (assignRelocatableRegisters): do not declare external symbols
3737 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
3738 right (take size of type, not etype)
3739 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
3740 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
3741 * (packRegsForAccUse): disabled assignment of WREG as
3742 the result reg to prevent occurence of just fixed #1235003,
3744 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
3745 symbols (avoids duplicate symbols in .asm file)
3746 * (pic14emitRegularMap): use emitSymbolToFile()
3747 * src/pic/gen.c (aopOp): fixed spillLocation handling
3748 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
3749 * (genDataPointerSet): removed unneccessary variables/output
3751 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
3753 * as/mcs51/lkarea.c: enlarged codemap for banked memory
3754 * device/lib/mcs51/crtbank.asm: added # to 0x0F
3756 2005-07-21 Raphael Neider <rneider AT web.de>
3758 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
3759 architecture cannot handle them efficiently, fixes bug #1235003
3760 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
3761 check for empty sets before using them (fixes bug #1232190)
3763 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
3765 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
3766 (lnksect2): generate warnings for memory overlap
3767 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
3768 constseg to set the name of these segments so you can instruct the linker
3769 to place them in banks
3770 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
3771 * src/SDCCglobl.h: added MODEL_HUGE to enum,
3772 added code_seg and const_seg to options
3773 * src/SDCCglue.c (emitMaps): use options.const_seg,
3774 (createInterruptVect): put interrupt vectors in segment HOME,
3775 (glue): put HOME before static segment and put the main glue in HOME,
3776 (glue): use options.code_seg
3777 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
3778 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
3779 these segments so you can instruct the linker to place them in banks
3780 (linkEdit): use code_loc for HOME segment which should be the first
3781 segment in code memory now
3782 * src/SDCCmem.c: fixed more stuff like bug 1238386
3783 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
3784 (changePointer): don't change function pointers to code pointers for
3786 (compareType): added exceptional check for banked function pointers
3787 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
3788 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
3789 after static in code memory
3790 * src/mcs51/gen.c: added aopLiteralLong prototype,
3791 (aopForSym): use getSize for functions,
3792 (genCall): generate banked calls over one trampoline __sdcc_banked_call
3793 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
3794 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
3796 (genPcall): use call for literal function pointers and generate banked
3797 calls over the one trampoline so there's only one place for the user to
3798 modify according to his/hers hardware,
3799 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
3800 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
3801 * src/mcs51/main.c: added keyword banked,
3802 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
3803 * support/Util/SDCCerr.c,
3804 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
3805 needed for passing the bank and address to the trampoline
3806 * device/lib/mcs51/crtbank.asm: added for bankswitching
3807 * device/lib/mcs51/Makefile: added crtbank
3809 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3811 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
3812 for fields at offset 0 of a struct or union as reported
3813 on 2005-07-07 in the developer mailing list.
3815 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
3817 * src/SDCCmem.c: fixed bug 1238386
3819 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3821 * src/mcs51/peeph.def: added labelrefcounting for peepholes
3822 (patch #1144962), added peephole 300, enabled 259.x
3823 * doc/sdccman.lyx: removed screenshot and provided link instead
3825 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3827 * doc/sdccman.lyx: added section about debugging with ddd
3828 * doc/figures/ddd_example.eps: screenshot of debugging session
3830 2005-07-04 Raphael Neider <rneider AT web.de>
3832 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
3833 like CODE pointers, fixes #1115683
3834 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
3835 call, fixes bugs #1232211, #1228110,
3836 fixed wrong casts to pCodeFlow from pCodeInstructions
3838 2005-07-04 Raphael Neider <rneider AT web.de>
3840 * src/pic/gen.c (popGet): changed assert to allow for
3842 * (popGetAddr): changed signature to provide
3843 an additional index, patched all call sites
3844 * (genCmpEq): handle literal-like operands correctly
3845 * (genAddrOf): added sanity checks on __code/__data pointers
3846 * (genAssign): added handling of symbols from __code section
3847 * (gencjne): do not generate code for comparisons whose result
3848 is neither stored nor used, fixes bug #1171114
3849 * (AccLsh, AccRsh): operate on operand instead of WREG
3850 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
3851 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
3853 * rewrote complete shift-by-literal logic, commented unused
3855 * (genConstPointerGet): get multiple bytes (if result size > 1),
3856 fixed handling of non-immediate addresses
3857 * (genPointerGet): handle CODE pointers like CONST pointers
3858 * (genpic14Code): insert C-SRC lines as Cource-pCodes
3859 * ({aop,op}_isLitLike): NEW, single place to decide whether an
3860 operand is to be treated as a literal or not
3861 * (mov2w,genPcall,genCmpEq),
3862 src/pic/genarith.c: use aop_isLitLike() to decide between
3863 literal/register contents
3864 * (addSign): added missing offset
3865 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
3866 only emit comment in debug-mode,
3867 use {aop,op}_isLitLike throughout the file
3868 * src/pic/glue.c: fix initializers for pointers (work in progress)
3869 * src/pic/pcode.c (get_op): honor index on _const symbols
3870 * ({reset,dump}pCodeStatistics): NEW, estimate code size
3871 * (dumppBlock): added pCode size estimation
3872 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
3873 check for IS_SYMOP before OP_SYMBOL'ing
3874 * fixed indentation, compacted switch-statements
3875 * (allocReg): find free register and allocate it instead of
3876 allocating new registers all the time
3877 * (deassignLRs): prevent POINTER_GET's from being assigned the same
3878 registers as its operands (necessary only for multibyte GETs)
3880 2005-07-01 Raphael Neider <rneider AT web.de>
3882 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
3883 debugging .asm-output macros FENTRY + FEXIT
3884 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
3886 * (emitpComment): NEW, printf to pCode
3887 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
3889 * (popGetAddr): NEW, variant of popGet to access an immediates
3890 high(er) bytes instead of the n'th byte of memory they reference,
3891 replaced popGet with popGetAddr where neccessary
3892 * (genDataPointerGet): reactivated and fixed implementation
3893 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
3895 * (genDataPointerSet): fixed multibyte assignments
3896 * (genpic14Code): fixed --i-code-in-asm handling
3897 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
3898 * (genPlus): fixed index-out-of-bounds error
3899 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
3900 * src/pic/ralloc.c: added debugging output macro FENTRY2
3901 * (spillThis): fixed indentation, enbraced for-body for clarity
3902 * (rematStr): commented out as now unused
3903 * (regTypeNum): commented out special spill case (overwrites
3905 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
3907 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
3909 * doc/sdccman.lyx: documented sfr16/sfr32,
3910 added example for using storage class with function pointers
3911 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
3913 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
3915 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
3916 * device/lib/_itoa.c,
3917 * device/lib/_ltoa.c: optimized codesize
3918 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
3919 but don't know how to suppress the double warning.
3920 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
3921 * support/Util/SDCCerr.c,
3922 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
3924 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
3926 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
3927 fixed old K&R prototypes
3928 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
3929 * device/lib/_gptrget.c,
3930 * device/lib/_gptrgetc.c,
3931 * device/lib/_gptrput.c: changed versions for new memory indicator values,
3932 also new versions for small generic pointers and banked generic pointers
3933 * src/port.h: added const_name
3934 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
3935 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
3936 * src/SDCCcse.c (findPrevIc): check all associative operators
3937 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
3938 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
3939 * src/SDCCmem.c: updated comments,
3940 set far-space to 0 for pdata, results in optimized code
3941 * src/SDCCmem.h: added macro CONST_NAME
3942 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
3943 moving the info into the highest bits, see also gptrget/gptrput
3944 * src/src.dsp: added sdcc.ico to project files
3945 * src/avr/gen.c (genCast): fixed bug 0x%d
3946 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
3947 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
3948 relation between ptr_type and DCL_TYPE,
3949 (genCast): fixed bug 0x%d
3950 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
3951 (CODE)" for const_name
3952 * src/hc08/gen.c (genCast): fixed bug 0x%d
3953 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
3954 (hc08_port): added "CONST (CODE)" for const_name
3955 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
3956 (aopForRemat, adjustArithmeticResult): disconnected direct relation
3957 between ptr_type and DCL_TYPE,
3958 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
3959 operand* and took AOP() inside function so sfr-ness can be checked,
3960 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
3962 (genFunction, genEndFunction): optimized stack setup,
3963 (genMinus): optimized for literals with ending zeroes (in bytes),
3964 (genCast): fixed bug 0x%d
3965 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
3966 (mcs51_port): added "CONST (CODE)" for const_name
3967 * src/mcs51/peeph.def: made rule 226 more generic
3968 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
3969 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
3970 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
3971 * src/z80/main.c (z80_port): added NULL for const_name,
3972 (gbz80_port): added NULL for const_name
3973 * support/regression/tests/bug663539.c,
3974 * support/regression/tests/sfr16.c: new tests
3976 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3978 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
3980 2005-06-24 Raphael Neider <rneider AT web.de>
3982 * device/lib/pic16/libdev/pic18f[68][567]20.c:
3984 * device/include/pic16/signal.h: added USBIF
3987 2005-06-24 Raphael Neider <rneider AT web.de>
3989 * device/lib/pic16/libdev/pic18f2455.c,
3990 device/include/pic16/pic18f2455.h: NEW
3991 * device/include/pic16/pic18fregs.h,
3992 device/lib/pic16/pics.all,
3993 src/pic16/device.c: added 18f2455
3994 * device/lib/pic16/libdev/pic18f[68][567]20.c,
3995 device/include/pic16/{pic18f[68][567].h,usart.h}:
3996 replaced MULTIPLE_USARTS define with more relaible
3997 compatibility sfrs (for USART access)
3999 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
4001 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
4002 and the output asm file line is printed on two lines.
4004 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4006 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
4007 BGT, BLE, BHI, and BLS instructions
4008 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
4010 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
4011 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
4013 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
4015 2005-06-15 Raphael Neider <rneider AT web.de>
4017 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
4018 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
4019 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
4020 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
4021 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
4023 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4025 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
4026 Marcel Telka in bug #1215704
4028 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
4030 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
4031 located in shared memory bank.
4033 2005-05-31 Raphael Neider <rneider AT web.de>
4035 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
4036 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
4037 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
4039 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
4041 * device/lib/_strncpy.c: fixed the fix
4043 2005-05-26 Raphael Neider <rneider AT web.de>
4045 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
4046 initializers with \0, bug #1208187
4047 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
4048 intializers with \0, bug #1208187
4050 2005-05-26 Raphael Neider <rneider AT web.de>
4052 * src/pic16/glue.c (pic16_printIvalChar): fixed string
4053 initializers with \0, bug #1208187
4054 * src/pic16/main.c (_process_pragma): added sanity checks
4055 for stack position and size, emit warnings when appropriate
4057 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4059 * device/lib/_strncpy.c: fixed not filling with \0
4061 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4063 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
4065 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
4066 compound_statement),
4068 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
4070 2005-05-24 Raphael Neider <rneider AT web.de>
4072 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
4074 2005-05-24 Raphael Neider <rneider AT web.de>
4076 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
4077 TRISE definitions, closes bug #1162453
4079 2005-05-22 Raphael Neider <rneider AT web.de>
4081 * src/pic16/main.c (_process_pragma): check for missing
4082 arguments to pragmas code and udata
4083 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
4084 consistency fixes to match other headers (thanks to Jim Paris)
4085 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
4087 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4089 * src/SDCCicode.c (isOperandEqual): fixed missing ;
4091 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
4093 * support/regression/tests/bug1198642.c: new test
4094 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
4095 * src/SDCCcse.c (findPrevIc): added comment, please have a look
4096 * support/scripts/resource.h,
4097 * support/scripts/resource.rc,
4098 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
4099 * support/scripts/sdcc.ico: added 32x32 icon
4101 2005-05-18 Raphael Neider <rneider AT web.de>
4103 * device/lib/pic16/libdev/pic18f*.c,
4104 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
4105 keywords to "__sfr" and "__at (X)"
4106 * device/include/pic16/pic18fregs.h: added pic18f4520
4107 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
4108 #1203088 (MPLAB compatibility)
4110 2005-05-17 Raphael Neider <rneider AT web.de>
4112 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
4113 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
4114 * device/lib/pic16/pics.all: added new devices
4115 * src/pic16/device.c: added support for pic18f4520
4117 2005-05-16 Raphael Neider <rneider AT web.de>
4118 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
4119 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
4120 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
4121 convenience function for bit access
4123 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4125 * device/lib/printf_large.c: fixed bug 1193299
4126 * support/regression/tests/bug1057979.c: added test %3.3s
4128 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4130 * device/include/mcs51/8051.h,
4131 * device/include/mcs51/8052.h: made parseable with lint
4132 * device/include/mcs51/lint.h: added include file for (sp)lint
4133 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
4134 * doc/cdbfileformat.lyx,
4135 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
4137 2005-05-14 Raphael Neider <rneider AT web.de>
4139 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
4140 * device/lib/pic16/libc/stdlib/itoa.c (new)
4141 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
4142 * device/lib/pic16/libio/Makefile: exclude subdir according to
4143 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
4144 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
4145 * src/pic16/gen.c (genFunction): prevent annoying warning
4146 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
4148 * support/cpp2/cppmain.c (cpp_output_string): new
4149 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
4152 2005-05-13 Borut Razem <borut.razem AT siol.net>
4154 * src/SDCCmain.c (linkEdit): fixed bug 1195202
4156 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4158 * .version: changed to version 2.5.1; back to bleeding edge development
4160 2005-05-11 Borut Razem <borut.razem AT siol.net>
4162 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
4163 generate PDF version 1.3 documents
4165 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4167 * .version: changed to version 2.5.0
4169 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4171 * doc/sdccman.lyx: updated weblinks, index and smaller updates
4173 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4175 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
4176 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
4177 well as many smaller updates.
4178 * .version: changed to version 2.5.0-pre1
4180 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4182 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
4184 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4186 * support/regression/tests/bug1185672.c: added
4187 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
4189 * src/mcs51/gen.c (genCall): added comments, made it look safer
4190 * src/mcs51/gen.c (genEndFunction): simplified
4192 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
4194 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
4196 2005-04-14 Borut Razem <borut.razem AT siol.net>
4198 * fixed bug 1045046 - SIGSEGV with really simple code?:
4199 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
4200 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
4202 2005-04-14 Borut Razem <borut.razem AT siol.net>
4204 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
4205 src/pic16/device.h: temporarily disabled experimental #inline pragma
4208 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
4210 * device/include/z80/stdio.h,
4211 * device/include/z80/string.h: removed these highly incomplete files so
4212 SDCC can use the default ones in device/include/
4214 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4216 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
4218 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
4221 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
4223 * device/include/malloc.h: removed redundant __reentrant prototypes
4224 * device/lib/_mullong.c: added working xstack variant in asm (C version
4225 doesn't pass regression tests)
4226 * device/lib/bpx.c: used __data and made bpx char for mcs51
4227 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
4228 (createFunction): fixed bug with xstackPtr
4229 * src/SDCCcse.c: corrected comments
4230 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
4231 (killDeadCode, eBBlockFromiCode): removed unused code
4232 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
4234 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
4235 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
4236 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
4237 (genModOneByte): fixed warning in MSVC
4238 * src/mcs51/main.c (): added comments
4239 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
4241 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
4243 * src/SDCCmain.c (linkEdit): oops, changed one line too many
4245 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
4247 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
4249 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
4251 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
4252 characters arrays of larger size than the declared one.
4254 2005-04-10 Borut Razem <borut.razem AT siol.net>
4256 * src/pic/gen.c (genInline),
4257 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
4258 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
4259 (findNextInstruction), (findPrevInstruction),
4260 (findInstructionUsingLabel),
4261 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
4262 * src/pic/pcode.c (findLabel): added missing '\n'
4263 * src/src.dsp: added SDCCdwarf2.c to the project
4265 2005-04-09 Borut Razem <borut.razem AT siol.net>
4267 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
4269 2005-04-08 Raphael Neider <rneider AT web.de>
4271 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
4272 into the chain after a given one) and mergeDefmapSymbols (combine
4273 defmap entries for each symbol per pcode)
4274 * (createDefmap): have defmap entries merged in the end
4275 * (defmapReplaceSymRef): split defmap entries covering two accesses to
4276 a symbol before replacing one access type's symbol, merge symbols in
4277 the end (replacement symbol might already have an entry)
4278 * (assignValnums): keep reference to written WREG intact
4280 2005-04-08 Raphael Neider <rneider AT web.de>
4282 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
4285 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
4287 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
4290 2005-04-07 Raphael Neider <rneider AT web.de>
4292 * device/include/pic16/usart.h: added compatibility defines for
4293 devices with more than one USART
4294 * device/include/pic16/pic18f[68][567]20.h: activated above defines
4296 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4298 * device/lib/Makefile.in: updated for port specific include
4300 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4302 * support/regression/ports/mcs51/spec.mk: added mcs51 include
4304 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4306 * device/include/8051.h,
4307 * device/include/8052.h,
4308 * device/include/at89S8252.h,
4309 * device/include/at89c55.h,
4310 * device/include/at89x051.h,
4311 * device/include/at89x51.h,
4312 * device/include/at89x52.h,
4313 * device/include/mcs51reg.h,
4314 * device/include/reg51.h,
4315 * device/include/reg764.h,
4316 * device/include/regc515c.h,
4317 * device/include/sab80515.h: (re)moved these 12 files
4318 * device/include/mcs51/8051.h,
4319 * device/include/mcs51/8052.h,
4320 * device/include/mcs51/at89S8252.h,
4321 * device/include/mcs51/at89c55.h,
4322 * device/include/mcs51/at89x051.h,
4323 * device/include/mcs51/at89x51.h,
4324 * device/include/mcs51/at89x52.h,
4325 * device/include/mcs51/mcs51reg.h,
4326 * device/include/mcs51/reg51.h,
4327 * device/include/mcs51/reg764.h,
4328 * device/include/mcs51/regc515c.h,
4329 * device/include/mcs51/sab80515.h: and added them here
4331 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4333 * device/include/stdarg.h: changed SDCC specific keywords to double
4335 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
4337 * device/include/hc08/mc68hc908gp32.h,
4338 * device/include/hc08/mc68hc908jb8.h,
4339 * device/include/hc08/mc68hc908jkjl.h,
4340 * device/include/hc08/mc68hc908qy.h: fixed comments
4341 * device/include/mcs51/README: updated
4342 * device/include/mcs51/c8051f120.h: added PINRSF
4343 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
4344 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
4345 amidst code. Also inline is not supported.
4347 2005-04-06 Raphael Neider <rneider AT web.de>
4349 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
4350 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
4351 callers stack/frame pointers
4353 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4355 * device/include/pic16/usart.h: added, missing in previous commit,
4356 * device/include/pic16/adc.h: fixed typo,
4357 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
4359 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
4361 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
4362 uninitialized because a bug appears with gplink
4363 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
4364 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
4365 complains for unrecognised option
4367 2005-04-05 Raphael Neider <rneider AT web.de>
4369 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
4370 structs as well (using memcpy)
4371 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
4372 on ISRs (GOTO has no label)
4373 * src/pic16/device.h: added OF_OPTIMIZE_DF
4374 * src/pic16/main.c: added compiler switch --optimize-df to enable the
4375 new data flow analysis/optimization
4376 * src/pic16/pcode.c: added (prototypes for and implementation of)
4377 dataflow analysis functions, fixed pCodeInstructions' inCond and
4378 outCond values, made RCALL a branch instruction
4379 * (pic16_unlinkpCode): keep C line if possible
4380 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
4381 C line moved if possible
4382 * (pic16_getRegFrompCodeOp): NEW, improved version of...
4383 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
4384 to use new pic16_getRegFrompCodeOp (works for more SFRs)
4385 * (pic16_BuildFlow): fixed skip instructions with label (did not start
4387 * (pic16_getJumptabpCode): NEW, needed in...
4388 * (LinkFlow): fixed handling of jumptables, calls and conditional
4390 * (pic16_InsertCommentAfter): NEW
4391 * (pic16_pCodeReplace): made verbose and flow preserving
4392 * (AnalyzeFlow): added call to data flow analysis
4393 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
4394 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
4395 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
4397 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4399 * src/SDCCast.c (decorateType): fixed bug #1105626
4401 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
4403 * device/include/asm/pic16/features.h,
4404 * pic18f*.h headers,
4405 * device/include/pic16/adc.h,
4406 * device/include/pic16/delay.h,
4407 * device/include/pic16/i2c.h,
4408 * device/include/pic16/malloc.h,
4409 * device/include/pic16/stdio.h,
4410 * device/include/pic16/stdlib.h,
4411 * device/include/pic16/string.h,
4412 * device/lib/pic16/libc/stdio/printf_tiny.c,
4413 * device/lib/pic16/libc/stdio/printf_small.c,
4414 * device/lib/pic16/libc/stdio/strmgpsim.c,
4415 * device/lib/pic16/libc/stdio/strmmssp.c,
4416 * device/lib/pic16/libc/stdio/strmusart.c,
4417 * device/lib/pic16/libc/stdio/vfprintf.c,
4418 * device/lib/pic16/libc/stdlib/ltoa.c,
4419 * device/lib/pic16/libc/stdlib/putchar.c,
4420 * device/lib/pic16/libc/stdlib/x_ftoa.c,
4421 * device/lib/pic16/libc/stdlib/memchrpgm.c,
4422 * device/lib/pic16/libc/stdlib/memchrram.c,
4423 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
4424 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
4425 * device/lib/pic16/libio/adc/adcbusy.c,
4426 * device/lib/pic16/libio/adc/adcread.c,
4427 * device/lib/pic16/libio/adc/adcsetch.c,
4428 * device/lib/pic16/libio/usart/ubaud.c,
4429 * device/lib/pic16/libio/usart/ubusy.c,
4430 * device/lib/pic16/libio/usart/udrdy.c,
4431 * device/lib/pic16/libio/usart/uopen.c,
4432 * device/lib/pic16/libio/usart/uputc.c,
4433 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
4434 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
4435 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
4436 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
4437 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
4438 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
4439 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
4440 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
4441 specific keywords to double underlined form,
4442 * device/lib/pic16/libc/Makefile.rules,
4443 * device/lib/pic16/libsdcc/Makefile.rules,
4444 * device/lib/pic16/libm/Makefile,
4445 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
4446 to compile with C standard set in Makefile.common
4447 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
4448 rand.c and crc.c in compilation process,
4449 * device/lib/pic16/libsdcc/int/divuint.c,
4450 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
4451 `c' from signed to unsigned,
4452 * device/lib/pic16/startup/crt0.c,
4453 * device/lib/pic16/startup/crt0i.c,
4454 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
4455 keywords to double underlined form, bug fixes in _do_cinit function
4456 which prevented the correct initialization of the .idata segment,
4457 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
4458 core to enter a infinite loop
4459 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
4461 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4463 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
4465 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4467 * device/include/Makefile.in: add support for hc08 subdirectory
4468 * device/include/hc08/: new subdirectory
4469 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
4470 Lucas Loizaga, thanks!
4471 * device/include/hc08/mc68hc908qy.h,
4472 * device/include/hc08/mc68hc908gp32.h,
4473 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
4474 their own directory. Changed internal macro names to use the compiler
4475 reserved namespace. Changed SDCC specific keywords to double
4477 * device/include/math.h,
4478 * device/include/malloc.h,
4479 * device/include/stdarg.h,
4480 * device/include/stdbool.h
4481 * device/include/string.h,
4482 * device/include/tinibios.h,
4483 * device/include/ds400rom.h,
4484 * device/include/8051.h,
4485 * device/include/8052.h,
4486 * device/include/80c51xa.h,
4487 * device/include/at89c55.h,
4488 * device/include/at89S8252.h,
4489 * device/include/at89x51.h,
4490 * device/include/at89x52.h,
4491 * device/include/ds80c390.h,
4492 * device/include/reg764.h,
4493 * device/include/regc515c.h,
4494 * device/include/sab80515.h,
4495 * device/include/mcs51/c8051f000.h,
4496 * device/include/mcs51/c8051f018.h,
4497 * device/include/mcs51/c8051f020.h,
4498 * device/include/mcs51/c8051f040.h,
4499 * device/include/mcs51/c8051f060.h,
4500 * device/include/mcs51/c8051f120.h,
4501 * device/include/mcs51/c8051f300.h,
4502 * device/include/mcs51/c8051f310.h,
4503 * device/include/mcs51/c8051f320.h,
4504 * device/include/mcs51/c8051f330.h,
4505 * device/include/mcs51/c8051f350.h,
4506 * device/include/z180.h: Changed SDCC specific keywords to double
4509 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
4511 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
4513 * (pic16_assignConfigWordValue): disable testing of configuration
4514 register value with config mask,
4515 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
4516 function with port->fun_prefix,
4517 * (genFunction): when generating a naked interrupt function never
4518 create an absolute segment placed in interrupt vector address, place
4519 the actual interrupt function at IVA instead, when an interrupt
4520 function is generated with unspecified interrupt then do not create
4521 the absolute section,
4522 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
4523 code for generating a call to generic pointer get/put function with
4524 a call to function pic16_callGenericPointer(),
4525 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
4526 the call to the generic pointer get/put functions with prefixing the
4527 function name with port->fun_prefix,
4528 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
4529 * src/pic16/main.c (_process_pragma): prefix function with
4531 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
4532 calling assembler, old 18Fxxxx macro is deprecated,
4533 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
4534 PC_ASMDIR in while condition,
4535 * (findInstruction): add PC_ASMDIR in while condition,
4536 * (buildCallTree): prefix main with port->fun_prefix,
4537 * (pic16_pCode2str): fixed bug that didn't emit the memory access
4538 identifier for variable with banked access in instructions BTFSS,
4539 BTFSC, BCF, BSF, BTG
4540 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
4541 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
4542 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
4543 perform optimization when enviroment variable NO_REG_OPT is set,
4544 * (insideLRBlock): NEW, return 1 if register is inside an
4545 INF_LOCALREGS block,
4546 * (RemoveRegFromLRBlock): remove a register that is completely
4547 eliminated by register optimization, but it is still left in local
4548 register store/restore in/from stack block,
4549 * (Remove2pcodes): after removing register, check to see if it
4550 should be removed from local register store/restore in/from stack
4552 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
4553 DUMMY_READ_VOLATILE,
4555 * device/include/pic16/adc.h: minor prototype modifications and
4557 * device/include/pic16/malloc.h: added GPL notice various
4559 * device/include/pic16/stdint.h: NEW, standard header for ints
4560 * device/include/pic16/delay.h: NEW, header for delay functions,
4561 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
4563 * device/include/pic16/signal.h: NEW, header providing helper macros
4564 for implementing signal handlers,
4565 * device/include/pic16/stdio.h: added prototypes for functions,
4566 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
4567 prototypes for stdin and stdout, added macro PUTCHAR to
4568 automatically implement putchar function prototype,
4569 * device/include/pic16/usart.h: modified and updated USART library,
4570 * device/lib/pic16/libio/adc/,
4571 * device/lib/pic16/libio/i2c: some modifications to improve library
4573 * device/lib/pic16/libc/stdio/: modifications for the new printf*
4574 family of functions,
4575 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
4576 family of functions and other sources,
4577 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
4578 of the PIC18Fxx[28] devices,
4579 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
4580 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
4581 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
4582 _do_cinit function, because the previous failed when local variables
4583 where not placed in the same memory bank,
4584 * device/lib/pic16/libsdcc/char/: various modifications to improve
4585 library performance,
4586 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
4587 information on the new functions of the c library and more...
4589 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4591 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
4593 2005-03-26 Raphael Neider <rneider AT web.de>
4595 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
4596 if condition == CARRY)
4597 * (genCmp): adapted to new genSkipc semantics
4598 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
4599 on rIfx (genCmp was broken)
4601 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4603 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
4604 * src/z80/main.c (_keywords[]),
4605 * src/SDCCglobal.h (struct options),
4607 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
4608 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
4609 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
4610 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
4611 always available in leading double underscore form. The C99 support is
4612 mostly missing, but it's a start.
4613 * support/regression/tests/bug-227710.c: fixed nonconforming use of
4614 reserved identifier "__data".
4616 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4618 * src/mcs51/peeph.def: fixed bug 1170013
4620 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
4622 * device/include/mcs51reg.h: fixed bug 842007
4624 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4626 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
4629 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4631 * src/port.h (struct PORT),
4632 * src/avr/ralloc.c (avr_assignRegisters),
4634 * src/ds390/ralloc.c (ds390_assignRegisters),
4636 * src/hc08/ralloc.c (hc08_assignRegisters),
4638 * src/mcs51/ralloc.c (mcs51_assignRegisters),
4640 * src/pic/ralloc.c (pic14_assignRegisters),
4642 * src/pic16/ralloc.c (pic16_assignRegisters),
4644 * src/xa51/ralloc.c (xa51_assignRegisters),
4646 * src/z80/ralloc.c (z80_assignRegisters),
4648 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
4649 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
4651 * src/SDCCdflow.c (computeDataFlow),
4653 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
4655 * src/SDCCcflow.c (*),
4657 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
4658 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
4659 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
4660 immedDom() returning wrong block; probably fixes bug #1160833)
4662 2005-03-20 Borut Razem <borut.razem AT siol.net>
4664 * support/scripts/inc2h.pl: WIN32 port
4666 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
4668 * device/lib/makefile.in: added abs.c and labs.c
4670 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
4672 * device/include/stdint.h: added
4673 * device/lib/abs.c: added
4674 * device/lib/labs.c: added
4675 * device/include/stdlib.h: added abs() and labs() prototypes
4676 * device/lib/libsdcc.lib: added abs and labs
4677 * device/include/float.h,
4678 * device/lib/_fsmul.c,
4679 * device/lib/printf_fast.c,
4680 * device/lib/printf_tiny.c: updated comments
4682 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4684 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
4687 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4689 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
4690 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
4692 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
4694 * device/lib/printf_large.c: removed inline assembly for portability and
4695 readability. Use printf_fast if speed or size are more important.
4696 * src/pic16/gen.c: removed conditions around use of DEBUGpc
4697 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
4699 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
4701 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
4702 prevent compiler warning
4704 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4706 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
4707 moved to level 0 and declared as static. Also they are explicit
4708 placed in access bank. This was necessery because some times they
4709 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
4710 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
4711 optimizations. Currently only compare to unsigned char is implemented,
4712 * src/pic16/gen.c: added fReturnIdx array,
4713 * (struct resolvedIfx) is moved to gen.h and made public,
4714 * (struct _G): added sregsAlloc and sregsAllocSet fields,
4715 * (aopForSym): added an optimization to directly store in stack of
4716 the operand of a SEND iCode,
4717 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
4718 but as registers instead (AOP_REG) using the fReturnIdx array,
4719 * (pic16_freeAsmop): remove the freed register from the
4720 _G.sregsAlloc field,
4721 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
4722 a compare of 'WREG',
4723 * (pic16_popGetTempRegCond): changed function prototype, now
4724 function takes also a bitVector argument v which holds the current
4725 set of registers that are allocated for stack access by aopForSym,
4726 registers allocated in aopForSym for accessing stack symbols are not
4727 any more part of the functions usedRegs field,
4728 * (genCall): some times aopOp is called for a stack variable to be
4729 send, aopForSym might perform the push, if this is true make sure
4730 that genCall doesn't push the variable twice by testing _G.resDirect,
4731 * (genFunction): changed testing for unspecified interrupt number
4732 from 256 to INTNO_UNSPEC,
4733 * modified selection scheme of frame pointer generation. Previously
4734 if function did use local registers a frame pointer was generated,
4735 now a frame pointer is generated only if function has arguments
4736 (that need PLUSW2 register access), or has stack arguments, or the
4737 compiler is not instructed to omit the frame pointer,
4738 * (genEndFunction): before restoring local registers that were saved
4739 in the function preamble, also restore the registers that *might*
4740 have been allocated for stack access,
4741 * (genRet): removed some old comments,
4742 * (genCmp, the active (RN's) version): added a call to the
4743 pic16_genCmp_special function to perform the compare with a more
4744 robust and optimized way,
4745 * (genInline): a feature has been added in inline code generation,
4746 which allows a wildcard variable substitution when writing inline
4747 assembly. Code is incomplete and experimental therefore undocumented,
4748 * (genCast): changed order of aopOp for result and right to allow
4749 aopForSym to directly load the result if possible,
4750 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
4751 perform an optimized compare on some selected special occasions,
4752 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
4753 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
4754 generate an IVT any more,
4755 * src/pic16/main.c (pic16_optionsTable): added command line option
4757 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
4758 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
4760 * src/pic16/NOTES: Raphael Neider added in list of active developers
4761 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
4762 jumptable_end to prevent bug #,
4763 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
4764 inCond and outCond fields,
4765 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
4766 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
4767 turn off register spilling,
4768 * (packRegsForOneUse): synced with other ports' versions although it
4769 is not used currently,
4770 * (pic16_packRegisters): added an optimization while reading
4771 structure bitfields, some registers may be saved (malloc code is
4772 decreased by 80 bytes)
4774 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
4776 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
4777 left is a bitfield, if yes, then don't optimize assignment. Perhaps
4778 this can be optimized more?
4780 2005-03-10 Raphael Neider <rneider AT web.de>
4782 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
4783 genNearPointerGet): (hopefully) fixed access to bitfields via
4784 pointers (p->bitN = x; and x = p->bitN; failed)
4786 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
4788 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
4790 2005-03-09 Raphael Neider <rneider AT web.de>
4792 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
4794 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
4796 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
4797 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
4798 (regTypeNum): set REG_BIT type if necessary
4799 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
4800 * support/regression/tests/critical.c: check bug 1144613
4802 2005-03-02 Raphael Neider <rneider AT web.de>
4804 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
4806 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4808 * src/avr/ralloc.c (serialRegAssign),
4809 * src/ds390/ralloc.c (serialRegAssign),
4810 * src/hc08/ralloc.c (serialRegAssign),
4811 * src/mcs51/ralloc.c (serialRegAssign),
4812 * src/pic/ralloc.c (serialRegAssign),
4813 * src/pic16/ralloc.c (serialRegAssign),
4814 * src/xa51/ralloc.c (serialRegAssign),
4815 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
4817 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
4819 * src/SDCCast.c (decorateType): fixed bug 1124787
4821 2005-02-20 Hubert Sack <sack AT digiplan.de>
4822 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4824 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
4827 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4829 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
4830 to keep the correct label reference count when adding/removing references
4831 to labels. A peephole file using this is appended to patch #1144962.
4833 2005-02-14 Raphael Neider <rneider AT web.de>
4835 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
4836 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
4837 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
4838 retrievals of result operand's value on assignment
4840 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
4842 * device/include/pic16/string.h: modified prototype for memccpy()
4843 to memccpy(void *, void *, char, size_t)
4844 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
4845 check whether to omit frame pointer or not,
4846 * (genInline): convert all occurences of "\n" to LF in inline
4847 assembler blocks, this helps formatting the inline text,
4848 * (pic16_loadFSR0): modified prototype,
4849 * (genNearPointerGet, genNearPointerSet): reorganization of code,
4850 removed some 8051 legacy code,
4851 * (genPackBits): enabled handling bitfields exceeding one byte in size,
4852 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
4853 before allocating temporary registers in functions,
4855 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
4857 * support/regression/tests/bitvars.c: corrected the "fix"
4859 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
4861 * support/regression/tests/bitvars.c,
4862 * support/regression/tests/bitwise.c,
4863 * support/regression/tests/rotate.c: "fixed" problems on Alpha
4865 2005-02-10 Raphael Neider <rneider AT web.de>
4867 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
4868 different size for Alpha
4869 * src/pic16/gen.c (genCmpEq) : improved compare with 0
4871 2005-02-09 Raphael Neider <rneider AT web.de>
4873 * src/SDCC.lex(doPragma) : save and restore warning options as well
4874 (also added new stack plus clone- and copyAndFreeSDCCERRG())
4875 * have #pragma less_pedantic set the errorlevel to WARNING
4877 * (cloneOptimize) : fixed wrong malloc's size
4878 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
4879 facilitate correct handling of #pragma (save|restore)
4881 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
4883 * src/mcs51/gen.c: removed non-standard C nameless struct/union
4885 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
4887 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
4889 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
4891 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
4893 2005-02-02 Raphael Neider <rneider AT web.de>
4895 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
4896 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
4897 * (pic16_storeForReturn): fixed to allow returning function pointers
4898 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
4899 * device/include/pic16/{stddef.h,stdbool.h}: added
4901 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
4903 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
4905 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
4907 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
4908 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
4909 appeared to be required
4911 2005-01-31 Borut Razem <borut.razem AT siol.net>
4913 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
4914 include/mcs51 and include/z80 directories to the package
4916 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4918 * src/hc08/gen.c (genFunction): fixed bug #1112752
4920 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4922 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
4924 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4926 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
4928 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
4930 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
4932 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
4934 * device/include/c8051fxxx.h: removed these 6 files
4935 * device/include/mcs51/c8051fxxx.h: added these 11 new files
4937 2005-01-26 Raphael Neider <rneider AT web.de>
4939 * src/pic16/gen.c (genAssign): fixed assignment from longs
4940 in codespace (were cut to three bytes)
4941 * (genDummyRead): implemented (except for CODESPACE...),
4943 * src/pic16/glue.c (emitStatistics): beautified
4944 * device/lib/pic16/libm/Makefile: added include path
4946 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4948 * src/z80/gen.c (aopPut): fixed bug #1103902
4950 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4952 * device/lib/expf.c: fixed bug #1095792
4954 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
4956 * device/lib/pic16/libm: added Math library sources
4958 2005-01-24 Raphael Neider <rneider AT web.de>
4960 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
4961 to enable upcast to pCodeOpReg2 (there is no type tag to
4962 differenciate the two and pic16_popGet2p cast into PCOR2)
4963 * src/pic16/main.c (_process_pragma): fixed another malloc bug
4964 (sizeof(sectNames) changed to sizeof(sectName))
4965 Both patches fix segfaults under MinGW.
4967 2005-01-23 Raphael Neider <rneider AT web.de>
4969 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
4970 Safe_[mc]?alloc()'ed variables
4971 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
4972 of (byte sized) temporaries (assign them to WREG for now)
4973 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
4974 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
4975 this might fix SIGSEGVs on MinGW...
4976 * src/SDCCopt.c (killDeadCode): restored original behaviour
4977 (volatile operands might get thrown away though)
4979 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
4981 * src/pic16/gen.c: fixed bug #1106975,
4982 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
4983 pointer update, INTCON is saved, global interrupts are disabled and
4984 restored after updateing TOS.
4985 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
4986 * added function attribute 'shadowregs' to take advantage of shadow
4988 * added function attribute 'wparam' as an alternative to the wparam
4990 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
4991 user declares a non-ISR function as 'shadowregs',
4992 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
4994 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
4996 * .version: bumped version number to 2.4.8
4997 * device/lib/pic16/pics.all: list of PIC18F devices supported by
4999 * device/lib/pic16/libio/i2c/: I2C module support library,
5000 * device/include/pic16/i2c.h: I2C support library header,
5001 * device/lib/pic16/libc/stdio/: standard IO support sources,
5002 * (printf_small.c): printf_small() source, supports float print,
5003 * (printf_tiny.c): printf_tiny() source, does not support floats,
5004 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
5005 enable global optimizations for entire library source, other
5006 Makefiles in the source tree are also modified to reflect this,
5007 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
5009 * doc/sdccman.lyx: updated to reflect new changes,
5010 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
5011 sym->onStack if-case,
5012 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
5013 sbit, idata, _idata, xdata, _xdata,
5014 * added pragma library, to link an external library, (see doc),
5015 * removed command line options, --pomit-config-words, --pomit-ivt,
5016 --pleave-reset-vector,
5017 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
5018 when calling assembler to reflect memory model used, also define
5019 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
5020 reflect stack model used,
5021 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
5022 on stack return NULL,
5024 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
5026 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
5027 of the operands is volatile. Fixes #1020220
5029 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
5031 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
5032 * (OptimizeRegUsage): make sure that there is really no other flow where
5033 the first pCode is used
5035 2005-01-22 Raphael Neider <rneider AT web.de>
5037 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
5038 to fix #1106967 (pCode->seq are not set up correctly)
5040 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5042 * src/SDCCglue.c (glue): make sure code area is declared before the
5043 static initialization area.
5045 2005-01-21 Raphael Neider <rneider AT web.de>
5047 * device/lib/Makefile.in: fixed test for pic16 install dir
5048 * device/lib/pic16/*/Makefile*: modified compile flags to enable
5050 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
5051 added --optimize-goto compiler switch and pragma wparam documentation
5052 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
5053 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
5054 and PRODH closing bug #1071770 (peephole optimizer)
5056 2005-01-19 Raphael Neider <rneider AT web.de>
5058 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
5059 cmdLine buffers (used when calling sdcpp...) are large enough
5060 (MAX_PATH=256 truncates arguments leading to system halts when
5062 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
5063 * (genUminus): rewritten to for efficiency
5064 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
5065 used uninitialized in some cases)
5066 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
5067 copy the third byte from the int -- now assumes 0x80 (data memory)
5068 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
5069 operands (genAddLit expects the iCode's operands to swapped as
5070 well), fixed leftover bytes (crashed for short left operands)
5071 * (pic16_genMinusDec): performance improvements, removed false
5073 * (pic16_genMinus): fixed to cope with differently sized operands
5074 * src/pic16/glue.c (pic16_glue): added new banksel optimization
5076 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
5077 * src/pic16/graph.[ch]: implementation of directed graphs, used by
5078 new banksel optimization
5079 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
5080 analysis for temporary registers (segfaults...)
5081 * src/pic16/peeph.def: added rule
5083 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
5085 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
5086 which converts a float number to its ASCII representation
5087 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
5088 functions to convert the fractional and integer part of a float to ASCII,
5089 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
5090 realloc.c): added _MALLOC_SPEC to explicit place variables in data
5092 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
5094 * device/include/pic16/adc.h: added GPL info,
5095 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
5096 a pCodeOp as tested operand,
5097 * (genNearPointerGet): optimized bit testing, does not use
5098 intermediate register for bit value, test directly instead with
5099 BTFSS, BTFSC, works only for single bits,
5100 * (genpic16Code): dump the name of the iCode in the asm,
5101 * src/pic16/ralloc.c (decodeOp): removed static declaration and
5102 renamed to pic16_decodeOp,
5103 * (serialRegAssign): do not allocate a temporary register for iCode
5104 sequences that test a single bit for 1/0
5106 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
5108 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
5109 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
5110 access stack and frame pointers. They are initially assigned to
5111 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
5112 accessing SFRs. Updated all occurences of modification of stack or
5113 frame pointer in gen.c and pcode.c,
5114 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
5115 assigning of a literal value to pointers,
5116 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
5117 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
5120 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
5122 * doc/sdccman.lyx: update documentation about stack pragma, added
5123 some info for stack memory models
5125 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5127 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
5129 2005-01-08 Raphael Neider <rneider AT web.de>
5131 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
5132 udata sections to fix bug #1097823
5134 2005-01-05 Raphael Neider <rneider AT web.de>
5136 * src/pic16/gen.c (genGenericShift): added handling of differently
5137 sized left operand and result
5139 2005-01-04 Raphael Neider <rneider AT web.de>
5141 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
5142 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
5143 to hold the condition bit)
5144 * added new version of genCmp (old code available via #define)
5145 * added new version of genShiftLeft/genShiftRight in a generic
5146 way, now supports shifting by negative values
5147 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
5148 shiftCount (expected by genGenericShift)
5149 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
5150 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
5152 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
5153 is an invalid literal too...)
5155 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
5157 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
5158 from Raphael Neider,
5159 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
5160 for 8-bit literals. This fixes some literal operands which are sign
5161 extended to 16-bits ints when instruction needs only 8-bits.
5163 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
5165 * device/lib/logf.c: added mcs51 assembly version
5166 * device/lib/expf.c: added mcs51 assembly version
5167 * device/lib/_logexpf.c: new shared asm code for expf and logf
5168 * device/include/math.h: add defines for assembly math library
5169 * device/lib/Makefile.in: build new _logexpf.c
5170 * device/lib/libfloat.lib: use new _logexpf.c
5172 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
5175 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
5176 device types which have less than 0x7f registers.
5178 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
5180 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
5182 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
5184 * device/lib/printf_fast.c: only build on supported arch.
5185 * device/lib/printf_tiny.c: only build on supported arch.
5186 * device/lib/printf_fast_f.c: only build if asm float lib
5187 * device/lib/_fsget1arg.c: only build if asm float lib
5188 * device/lib/_fsget2args.c: only build if asm float lib
5189 * device/lib/_fsnormalize.c: only build if asm float lib
5190 * device/lib/_fsreturnval.c: only build if asm float lib
5191 * device/lib/_fsrshift.c: only build if asm float lib
5192 * device/lib/_fsswapargs.c: only build if asm float lib
5193 * device/include/stdio.h: don't provide print_fast,
5194 print_fast_f, print_tiny prototypes if --xstack used
5196 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
5198 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
5199 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
5202 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
5204 * device/lib/printf_fast_f.c: same as printf_fast, but
5205 with floating point enabled
5206 * device/lib/printf_fast.c: minor tweaks
5207 * device/include/stdio.h: add printf_fast_f
5209 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
5211 * src/SDCCmain.c: make --float-reent default for mcs51
5212 * device/lib/_fsadd.c: added mcs51 assembly version
5213 * device/lib/_fssub.c: added mcs51 assembly version
5214 * device/lib/_fsmul.c: added mcs51 assembly version
5215 * device/lib/_fsdiv.c: added mcs51 assembly version
5216 * device/lib/_fseq.c: added mcs51 assembly version
5217 * device/lib/_fsneq.c: added mcs51 assembly version
5218 * device/lib/_fsgt.c: added mcs51 assembly version
5219 * device/lib/_fslt.c: added mcs51 assembly version
5220 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
5221 * device/lib/Makefile.in: add _fscmp to build
5222 * device/lib/libfloat.lib: add _fscmp to build
5224 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
5226 * device/lib/_fs2slong.c: added mcs51 assembly version
5227 * device/lib/_fs2sint.c: added mcs51 assembly version
5228 * device/lib/_fs2schar.c: added mcs51 assembly version
5229 * device/lib/_fs2ulong.c: added mcs51 assembly version
5230 * device/lib/_fs2uint.c: added mcs51 assembly version
5231 * device/lib/_fs2uchar.c: added mcs51 assembly version
5232 * device/lib/_slong2fs.c: added mcs51 assembly version
5233 * device/lib/_sint2fs.c: added mcs51 assembly version
5234 * device/lib/_schar2fs.c: added mcs51 assembly version
5235 * device/lib/_ulong2fs.c: added mcs51 assembly version
5236 * device/lib/_uint2fs.c: added mcs51 assembly version
5237 * device/lib/_uchar2fs.c: added mcs51 assembly version
5238 * device/include/float.h: added #define to select asm vs c
5240 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
5242 * device/lib/printf_fast.c: improvements to float output
5243 * device/include/float.h: add defines for assembly float library
5244 * device/lib/_fsget1arg.c: receive 1 float arg
5245 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
5246 * device/lib/_fsnormalize.c: normalize a float
5247 * device/lib/_fsreturnval.c: return float, various helper routines
5248 * device/lib/_fsrshift.c: right shift a float's mantissa
5249 * device/lib/_fsswapargs.c: swap 2 floats
5250 * device/lib/Makefile.in: build these 6 new files for mcs51
5251 * device/lib/libfloat.lib: add these 6 files to the library
5253 2004-12-26 Borut Razem <borut.razem AT siol.net>
5255 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
5258 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
5260 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
5261 and fully reentrant and register bank neutral.
5262 * device/lib/printf_fast.c: added float (not enabled by default),
5263 added compact/slower integer (also not enabled by default),
5264 improved size/speed of fast integer code, other minor changes
5265 * device/include/stdio.h, device/lib/Makefile.in,
5266 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
5268 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
5270 * src/pic16/pcode.c: declaring variables other than at the start of a
5271 block is not supported in C by VC6.
5273 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
5275 * applied a previous patch from Raphael Neider that wasn't included
5276 in the previous commits, which fixes infinite loops within jumptable
5278 * made some fixes that previous patches introduced
5280 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
5282 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
5283 that fixes an issue with AOP_PCODE asmop's offset,
5284 * (pic16_popCopyReg): update instance field too,
5285 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
5286 function of pic port,
5287 * (genCmp, genAnd, genAssign),
5288 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
5290 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
5292 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
5293 variables initial values to idata section,
5294 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
5295 variables in some functions. This utilizes parmBytes field of iCode
5296 structure to hold the offset of the variable in stack. (might be
5297 able to use the stack field too?)
5298 * applied patch from Raphael Neider # ### , # ###
5299 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
5300 variable initial values in idata section,
5301 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
5302 for static variables with initial value
5303 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
5304 applied fix in while loop from Raphael Neider.
5306 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
5308 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
5309 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
5310 * src/ds390/ralloc.c (serialRegAssign): spill bits
5311 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
5312 * support/Util/SDCCerr.c,
5313 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
5314 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
5315 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
5317 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
5319 * device/include/sdcc-lib.h: inserted LGPL, added includes
5320 asm/ds390/features.h and asm/mcs51/features.h
5321 * device/include/asm/default/features.h,
5322 * device/include/asm/gbz80/features.h,
5323 * device/include/asm/z80/features.h: added empty _AUTOMEM
5325 * device/include/asm/ds390/features.h,
5326 * device/include/asm/mcs51/features.h: added files with defines for
5327 _AUTOMEM and _STATMEM indicating automatic and static storage class
5328 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
5329 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
5330 * src/SDCCicode.c (geniCodeCast),
5331 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
5332 * src/SDCCloop.c (loopInduction): removed unused variable lr
5333 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
5334 to convertToFcall to include char modulo (RFE 1065037), added check
5335 if left operand is unsigned and use abs of literal value
5336 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
5337 as it doesn't work after conversion from peephole.def to peephole.rul
5338 * src/mcs51/gen.c (toBoolean): added check for size,
5339 (genModOneByte): optimized code for signed char modulo a literal
5340 power of 2 (thanks to Hubert Sack),
5341 (genRRC): removed unnecessary "clr c",
5342 (genRLC): replaced "add a,acc" with cheaper "rlc a"
5343 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
5345 swapped rules 256.c and 256.d,
5346 extended 256.d by using new multiple checks (thanks Erik),
5347 added rules 256.e and 256.f,
5348 updated rule 261.a and 261.b to new generated code
5349 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
5351 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5353 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
5354 induction related bugs, including first part of bug #1074377
5356 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
5358 * applied patch from bug-report #1076292,
5359 * applied patches for genAnd and Goto-optimizations for Raphael
5361 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
5362 dump a less iCode information,
5363 * src/pic16/device.h (pic16_options_t): added field debgen,
5364 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
5365 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
5366 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
5368 * (various functions): added macros FENTRY and FENTRY2 to functions,
5369 to emit function prologue,
5370 * (various functions): fixed indentation,
5371 * (genNearPointerGet): fixed loading of FSR0,
5372 * (genPackBits): applied patch from Raphael Neider to fix updating
5373 of FSR0 and touching only the modified bits,
5374 * src/pic16/genarith.c (various functions): added macros FENTRY to
5375 emit function prologue in comments,
5376 * src/pic16/pcode.h: added functions debugf2, debugf3,
5377 * src/pic16/ralloc.c: partial fix for packForPush caused
5380 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5382 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
5383 <stsp AT users.sourceforge.net> with reversed byte order
5384 * support/regression/tests/rotate.c: added (ds390 skips some tests)
5386 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5388 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
5390 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
5391 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
5393 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
5395 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
5397 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5399 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
5401 (setFromConditionArgs): friendly operand parser for peephole rules,
5402 (operandBaseName, operandsNotRelated): new peephole condition
5403 "operandsNotRelated" -- similar to "operandsNotSame", but takes
5404 architecture specific register naming into account, handles n-way
5405 comparisons, and supports quoted literals
5406 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
5408 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5410 * src/mcs51/peeph.def: fixed bug #1076940
5412 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
5414 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
5416 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5418 Adding support for replacing ljmps with sjmps in jumptables
5419 generated for switch statements. For now you need to set the
5420 environment variable SDCC_SJMP_JUMPTABLE to enable this.
5421 Now 4 algorithms for mcs51 jumptable generation are used:
5422 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
5423 addresses loaded pc-relative for up to 112 cases and stack-pushing
5424 target addresses loaded with offset from dptr for up to 256 cases.
5426 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
5427 * src/mcs51/main.c: adapted constants for switch table generation
5428 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
5430 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
5432 * device/lib/printf_large.c (_print_format): fixed bug 1073386
5433 * support/regression/tests/bug1057979.c: added test for bug 1073386
5435 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
5437 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
5440 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
5442 * src/pic16/device.h,
5443 * src/pic16/genarith.c,
5446 * src/pic16/pcode.c: applied patches #1068154 and #1070213
5448 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
5450 Large cummulative patch for pic16 port.
5451 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
5452 to call when a stack overflow occurs,
5453 * (malloc.h): added CVS Id tag,
5454 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
5456 * added libc directory. The current version of LibC contains string
5457 functions, ctype functions and macros and some functions of the
5458 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
5459 be extensively tested in the future. Standard disclaimer here.
5460 Library is not automatically build yet. But one can build it by
5461 invoking 'make' inside the libc directory.
5462 * added ADC library under libio. Preliminary version yet.
5464 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
5465 * src/pic16/gen.c (aopForRemat): asmop size is filled by
5466 aopForRemat() now and not by pic16_aopOp(),
5467 * (pic16_popGetTempReg): removed warning messgae when allocating
5468 temporary registers, its a buggy feature and will be removed,
5469 * (pic16_popGet): set register instance field in AOP_CRY,
5470 * (pic16_outBitC): fixed for results in size greater than 1,
5471 * (genUminusFloat): fixed for pic16, ported code from mcs51,
5472 * (pic16_storeForReturn): optimized return of 0,
5473 * (genCmp): experimental code for new genCmp which uses PIC18's
5474 special compare&skip instructions. Initial tests fail some times
5475 with variables grater than 1 byte in size, so new code is disabled,
5476 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
5478 * (genCast): began a fix to optimize the casting of a bit to another
5479 bit, now assigning a bitfield to another bitfield will fail, sorry,
5480 * src/pic16/main.c: disabled the use of lr-support feature,
5481 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
5482 * added some function prototypes, added function _debugf prototype,
5483 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
5484 bits with offset (case PO_GPR_BIT),
5485 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
5487 * (isBankInstruction): modified to return 0 for no banking instruction,
5488 and 1 for banking instruction,
5489 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
5490 caused stop processing pCodes after a inline assembly block,
5491 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
5492 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
5493 registers when it shouldn't,
5494 * src/pic16/ralloc.c (allocReg): add preliminary support for
5495 supporting a limited set of temporary registers,
5497 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5499 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
5500 genDataPointerSet): ensure assignments always copy in MSB to LSB
5502 (loadRegFromAop): recognize CLRH optimization,
5503 (genFunction): optimize RECEIVE iCodes in reentrant functions
5505 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5507 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
5508 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
5510 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
5511 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
5512 contiguous with data
5514 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5516 * device/lib/_gptrget.c (_gptrget),
5517 * device/lib/_gptrgetc.c (_gptrgetc),
5518 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
5519 instead of sjmp to ret
5520 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
5521 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
5523 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5525 * .version: bumped version to 2.4.7
5526 * device/lib/_gptrget.c (_gptrget): is now _naked
5527 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
5528 * device/lib/_gptrput.c (_gptrput): is now _naked
5529 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
5530 (createFunction): fixed xstack
5531 * src/SDCCglue.c (emitMaps): set allocation required for bit area
5532 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
5534 (geniCodeCritical): store original interrupt state in an iTemp bit
5535 var unless stack-auto
5536 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
5537 * src/SDCCmain.c (setIncludePath): added include/target to search path
5538 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
5539 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
5541 (processFuncArgs): put bit vars in bit area
5542 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
5543 unsaveRBank): fixed xstack,
5544 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
5545 (genFunction, genEndFunction): fixed xstack,
5546 (genAssign): optimization don't walk backwards through mem
5547 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
5548 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
5549 * support/regression/Makefile: also make library (for stack-auto) when
5550 making "all" and added "test-mcs51-xstack-auto"
5551 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
5552 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
5553 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
5554 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
5555 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
5556 make-library by MAKE_LIBRARY
5557 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
5558 regression tests for xstack
5559 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
5560 * support/regression/tests/critical.c: test for critical on mcs51
5562 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5564 * support/regression/ports/ucz80/spec.mk: use include and lib files from
5565 built version of sdcc instead of installed version
5567 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5569 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
5570 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
5572 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
5573 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
5574 WARNING: remove device/lib/build/z80/printf.o by hand when
5575 updating from previous build!
5576 * device/lib/z80/printf.c: updated comment
5577 * support/regression/tests/bug1057979.c: test all ports now
5578 * support/regression/tests/bug1065458.c: file added
5580 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5582 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
5583 *_start and *_end symbols for static functions
5585 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
5587 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
5588 and search crt0.o in all library paths,
5589 (setIncludePath): proper handling of --nostdinc,
5590 (setLibPath): proper handling of --nostdlib
5591 * support/regression/Makefile,
5592 * support/regression/ports/ds390/spec.mk,
5593 * support/regression/ports/gbz80/spec.mk,
5594 * support/regression/ports/hc08/spec.mk,
5595 * support/regression/ports/mcs51/spec.mk,
5596 * support/regression/ports/mcs51-large/spec.mk,
5597 * support/regression/ports/mcs51-stack-auto/spec.mk,
5598 * support/regression/ports/z80/spec.mk: use include and lib files from
5599 built version of sdcc instead of installed version
5600 * doc/sdccman.lyx: fixed typo in --nostdinc
5602 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
5607 * src/pic/gen.c : added support to generate code for struct bit fields.
5609 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5611 * as/xa51/xa_version.h,
5612 * device/include/errno.h,
5613 * device/include/regc515c.h,
5614 * device/lib/_itoa.c,
5615 * device/lib/_ltoa.c,
5616 * device/lib/ser_ir_cts_rts.c,
5617 * sim/ucsim/xa.src/glob.cc,
5618 * sim/ucsim/xa.src/inst_gen.cc,
5619 * sim/ucsim/xa.src/xa_bit.cc,
5620 * sim/ucsim/xa.src/xa_sfr.cc,
5621 * sim/ucsim/z80.src/inst_dd.cc,
5622 * sim/ucsim/z80.src/inst_fdcb.cc,
5623 * support/scripts/keil2sdcc.pl,
5624 * src/pic16/pic16.dsp,
5625 * src/pic16/pic16a.dsp: corrected cvs line endings
5626 * device/lib/printf_large.c: fixed bug 1057979
5627 * src/pic16/gen.c: fixed non-C standard code
5628 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
5629 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
5630 * support/regression/ports/mcs51/support.c: reload T1 asap
5631 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
5632 pdata use and clear idata startup behaviour
5633 * support/regression/tests/bug1057979.c: added
5635 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
5637 * device/examples/ds390/ow390/ad26.h,
5638 * device/examples/ds390/ow390/cnt1d.h,
5639 * device/examples/ds390/ow390/crcutil.c,
5640 * device/examples/ds390/ow390/ownet.h,
5641 * device/examples/ds390/ow390/owsesu.c,
5642 * device/examples/ds390/ow390/swt12.h,
5643 * device/examples/ds390/ow390/swtoper.c,
5644 * device/examples/ds390/ow390/temp10.h,
5645 * device/examples/ds390/ow390/thermodl.c,
5646 * device/examples/ds390/tinitalk/tinitalk.dsp,
5647 * device/examples/ds390/tinitalk/tinitalk.dsw,
5648 * device/examples/mcs51/clock/hw.h,
5649 * device/examples/mcs51/simple2/go.bat,
5650 * device/examples/serialcomm/windows/serial.h,
5651 * device/examples/xa51/dummy.c,
5652 * device/examples/xa51/hello.c,
5653 * device/include/80c51xa.h,
5654 * device/include/at89x051.h: corrected cvs line endings
5656 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
5658 * src/pic16/main.c (options): added command line --gstack, to trace
5659 stack over/under flows,
5660 * added pragma 'wparam' to allow passing first byte of function
5661 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
5662 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
5663 call to __gstack_test function and sets up the symbol as extern,
5664 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
5665 * popaop): added call to pic16_testStackOverflow,
5666 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
5668 * (genCall, genPcall): now all parameters are passed via stack
5669 except in functions that are pass to wparam pragma in which WREG is
5671 * (genPcall): REENTRANT flag is checked to see if variable prototype
5672 contains reentrant keyword, don't call a non-reentrant function, via
5673 a reentrant function pointer or vice versa, functions are never
5675 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
5677 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
5678 SIGSEGV when accessing a NULL register stucture,
5679 * (pic16_printGPointerType): modified to handle UPPER modifier for
5680 function initializers, changed prototype of function to simpler one,
5681 * (pic16_printIvalFuncPtr): check to see if function is already
5682 added in externs list,
5683 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
5684 optimized a move from W to SFR with a move to the same register
5686 * device/lib/pic16/debug: NEW directory, contains debug features
5687 which are enabled when linking with libdebug.lib, currently command
5688 line option --gstack enables stack pointer tracing for over/under
5689 flow, corresponding sources are in debug/gstack
5691 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
5693 * doc/sdccman.lyx: updated SDCC version,
5694 * (PIC16 port): update list of command line options,
5695 * src/pic16/device.h (structure pic16_options_t): added field gstack
5696 to enable stack overflow tracing on push/pops,
5697 * src/pic16/device.c (statistics structure): added statistics
5699 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
5700 pic16_dump_int_registers): increase statistics counters for each
5701 * variable which is encountered
5702 * (pic16_dump_usection): emit each .udata variable to its own udata
5704 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
5705 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
5706 parameters via stack, otherwise use old scheme,
5707 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
5708 assembler output file,
5709 * src/pic16/main.c: added command line options --gstack to enable
5710 push/pop tracing for stack overflow,
5711 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
5712 instructions): added size of each instruction,
5713 * (pic16_countInstruction): estimate size of instructions in
5714 the_pFile list, inline assembly blocks are not counted,
5715 * (pic16_FixRegisterBanking): trace previous register usage, when
5716 banksel optimizations is greater than 0, don't emit a redudant
5719 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
5721 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
5722 * src/pic16/ralloc.c : applied same fix for pic16.
5723 * src/pic/gen.c : tidied it up a little.
5725 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5727 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
5728 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
5730 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5732 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
5734 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5736 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
5737 non-reentrant function __modsint in the interrupt function (thus
5738 corrupting math operations during serial I/O)
5739 * device/lib/ser_ir.c: as above, changed buffersize
5740 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
5742 * doc/Makefile: added option -t for rsync
5744 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5746 * src/SDCCast.h (struct ast),
5747 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
5749 2004-10-20 Borut Razem <borut.razem AT siol.net>
5751 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
5754 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
5756 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
5758 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
5759 support functions to replace long sequences of MOVFF's from access
5760 bank registers to stack and vice versa,
5761 * src/pic16/device.h: added new field opt_flags, where optimization
5762 flags can be set to enable certain features,
5763 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
5764 * pBlock, (genFunction, genEndFunction): surroung loop for
5765 saving/loading used registers in stack with PC_INFO pCodes,
5766 INF_LREGS. Code in between can then be optimized by pCode optimizer
5767 to support function calls,
5768 * (genDataPointerSet): fixed bug which loaded float fields in
5769 structures with corrupt data,
5770 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
5771 in a standard way debug info on stderr. Feature used for developing
5773 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
5774 obsolete chunks of code,
5775 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
5776 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
5777 * pic16/src/pcode.c (pic16_newpCodeInfo,
5778 * (pic16_newpCodeOpLocalRegs),
5779 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
5781 * (pic16_pCodeConstString): printing of the initial value of a
5782 symbol as a comment is inhibited since parsing was already done by
5783 copyStr and output is corrupt,
5784 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
5786 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5788 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
5790 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
5792 * as/mcs51/lkarea.c: removed old K&R style,
5793 (lnksect): changed check on boundary error,
5794 (lnksect2): changed check on boundary error,
5795 (lnksect2): extend XSTK to end of page if size = 1
5796 * as/mcs51/lkmain.c: removed old K&R style,
5797 (Areas51): create l_IRAM symbol
5798 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
5799 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
5800 model-mcs51-stack-auto, added model-mcs51-xstack-auto
5801 * device/lib/_mullong.c: added version to be compiled with xstack
5802 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
5803 * device/lib/mcs51/crtxclear.asm: clear pdata as well
5804 * device/lib/mcs51/crtxstack.asm: fixed comment
5805 * src/SDCCglue.c: maxInterrupts defaults to 0,
5806 (emitMaps): added pdata,
5807 (createInterruptVect): (re)moved default,
5808 (glue): added pdata,
5809 (glue): moved __start__xstack to XSTK with default size 1
5810 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
5811 and options.float_rent when options.stackAuto is set,
5812 (linkEdit): only write XDATA_NAME if provided on command line
5814 * src/SDCCmem.c: added pdata
5815 * src/port.h: added pdata_name to PORT
5816 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
5817 (saveRegisters, unsaveRegisters): removed usage of B,
5818 (genMinus): fixed accumulator clash,
5819 (genJumpTab): added comment, this needs another look
5820 * src/mcs51/gen.c: added check for "B in use" paranoia,
5821 added pushB() and popB()
5822 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
5831 * src/z80/main.c: (reset_regparms) made void parameter explicit and
5832 added PSEG (PAG,XDATA) or NULL to port specifier
5833 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
5834 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
5835 (_mcs51_genInitStartup): removed __start__xstack equ,
5836 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
5837 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
5838 * src/z80/gen.c (_rleAppend): fixed warnings
5839 * support/regression/tests/zeropad.c: added pdata test
5840 * .version: bumped to 2.4.6
5842 2004-10-17 Borut Razem <borut.razem AT siol.net>
5844 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
5845 as a part of nightly build
5847 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
5849 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
5850 WREG holds the first byte function parameters,
5851 * (aopForSym): take special case for symbols which are in FARSPACE
5852 but in CODESPACE too,
5853 * (assignResultValue): modified to take into account _G.useWreg,
5854 * (genCall): don't use wreg for parameter passing when function is
5855 declared as reentrant, too, added optimization INCF to stack
5856 pointer when stack parameter count is 1,
5857 * (genFunction, genEndFunction): refurnished and fixed to not using
5858 wreg for passing parameters when function has varargs or is
5859 reentrant, fixed bug with symbol name compare for generating
5860 functions in absolute address,
5861 * (pic16_storeForReturn): refurnished,
5862 * (genCmp): began writing a new version of the function, not ready
5863 yet, therefore it is disabled,
5864 * (genAssign): do not read code memory when assigning a function to
5866 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
5867 array of characters, not pointer,
5868 * (pic16initialComments): in debug mode emit an .ident directive for
5870 * (_process_pragma): emit a new warning type (internal to pic16)
5871 when setting stack to default length, emit a similar warning when
5872 placing a function at absolute address and address is not word aligned
5873 * (_pic16_parseOptions): added 'return TRUE' statement,
5874 * (_pic16_linkEdit): if compiling a source, then add the source's
5875 file object, first in the list of objects to link,
5877 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
5879 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
5880 * src/pic/main.c : removed VC warning.
5881 * src/pic/gen.c : changed comment.
5883 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
5885 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
5886 reference to a deprecated symbol _GPTRREG was causing failure to
5887 link. Thanks G. M. Gallant for the info.
5889 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
5891 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
5892 comments for Bugs item #954788.
5894 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
5896 * src/pic16/device.c (pic16_dump_gsection,
5897 * pic16_groupRegistersInSection): handle symbols declared to be in
5898 access bank differently,
5899 * src/pic16/gen.c (struct _G): added field resDirect,
5900 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
5901 send values read from stack directly to result and don't allocate
5903 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
5905 * (pic16_sameRegsOfs): NEW,
5906 * (freeAsmop): if _G.resDirect is set then do not mark registers as
5907 free because they were not allocated from temporary pool,
5908 * pic16_popRegFromString): workaround to fix a problem with
5909 allocating variables twice or never,
5910 * (genGenPointerGet): using PRODL instead of FSR0H,
5911 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
5913 * (genAssign): take advantage of the _G.resDirect flag,
5914 * (genCast): around line 11844, use mov2f instead of directly
5915 MOVFF'ing between operands to account for literal values,
5916 * src/pic16/genutils.c: some new debug functions for gpsim have been
5918 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
5919 float with integer part only,
5920 * src/pic16/main.c (_process_pragma): handle pragma udata access to
5921 place variables in access bank
5922 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
5923 updated sources to reflect recent changes in gen.c
5925 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
5927 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
5928 sources that searched for headers in installation path, now the
5929 device/include/pic16 is used,
5930 * src/pic16/glue.c (pic16glue),
5931 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
5932 .line directives if not in debug mode, this suppresses assembler's
5933 warnings for ignored directives
5935 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
5937 * src/port.h: made reset_regparms prototype void parameter explicit.
5938 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
5939 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
5940 * doc/sdccman.lyx: documented warning disabling and how to use
5941 printf_large to make it print floats.
5942 * device/include/stdbool.h: NEW
5943 * device/lib/_atof.c,
5944 * device/lib/_divuint.c,
5945 * device/lib/_divulong.c,
5946 * device/lib/expf.c,
5947 * device/lib/printf_large.c,
5948 * device/lib/sincosf.c,
5949 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
5950 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
5951 a completely reentrant lib.
5953 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
5955 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
5956 * device/include/pic16/stdio.h: fixed bug with colon
5958 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
5960 * device/include/pic16/stdio.h,
5961 * device/include/pic16/stdlib.h,
5962 * device/include/pic16/math.h: NEW
5963 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
5964 declared as _naked to reduce overhead
5965 * device/lib/Makefile.in (target port-specific-objects-pic16):
5966 changed * to *.* so to ignore the CVS directory,
5967 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
5968 stacked variables back in stack,
5969 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
5972 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
5974 * .version: bumped version number to 2.4.5
5975 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
5976 * support/Util/SDCCerr.c (messages structure): added entry for
5979 Large cumulative patch for pic16 port and libraries.
5980 * device/include/pic16/sdcc-lib.h,
5981 * device/include/pic16/stdarg.h,
5982 * device/include/asm/pic16/features.h,
5983 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
5984 * device/include/pic16/float.h: changes reentrant keyword with
5985 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
5986 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
5987 updated target build-libraries to include objects from gptr,
5988 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
5989 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
5990 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
5991 all function headings,
5992 * src/SDCCmain.c: added global parameter userIncDirsSet,
5993 * (parseCmdLine): when option -I is encountered add directory to
5995 * src/version.awk: added space between control and long,
5996 * src/pic16/NOTES: added some notes for the port,
5997 * src/pic16/gen.c: added prototype for mov2fp function,
5998 * (fReturnpic16[]): properly named return value registers,
5999 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
6000 * (aopForSym): added code to handle symbols with onStack flag set,
6001 symbols onStack are allocated PTRSIZE bytes,
6002 * (aopFreeAsmop): handles special case where asmops are stack objects,
6003 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
6004 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
6005 added argument lock to trace flaws in allocating temporary registers
6006 when developing port,
6007 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
6008 * (pic16_popRegFromString): reenabled allocating a direct register
6010 * (assignResultValue): various beautifications,
6011 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
6012 referenced function argument,
6013 * (genIpush): reenabled to allow stacked arguments, handles only
6014 ic->parmPush iCodes,
6015 * (genCall, genPcall): major changes to allow for variable argument
6016 functions, fixed a bug with falsely restoring stack pointer after
6017 returning from call,
6018 * (genFunction): pending code for critical function,
6019 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
6020 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
6021 * (genNearPointerGet): fixed bug with indirect reading, was always
6023 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
6025 * (genAddrOf): rewrote code to take address of a stacked function parameter
6026 * (genCast): fixed casting to generic pointer type,
6027 * src/pic16/gen.h: added AOP_STA,
6028 * (struct asmop): added field stk,
6029 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
6030 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
6031 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
6032 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
6033 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
6034 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
6036 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
6038 * (pic16_port structure): generic pointer size is set to 3,
6039 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
6040 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
6042 * src/pic16/ralloc.c (allocReg): prevent allocating register when
6043 operand is an iTemp,
6045 2004-09-24 Martin Helmling <mh AT octo-soft.de>
6047 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
6048 * debugger/mcs51/simi.c: addapt new syntax of s51
6050 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
6052 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
6053 * src/pic16/pcode.c: commented out some calls to free() in order to
6056 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6059 * src/SDCCicode.c (isiCodeInFunctionCall),
6060 * src/avr/ralloc.c (selectSpil),
6061 * src/pic/ralloc.c (selectSpil),
6062 * src/pic16/ralloc.c (selectSpil),
6063 * src/ds390/ralloc.c (selectSpil),
6064 * src/hc08/ralloc.c (selectSpil),
6065 * src/xa51/ralloc.c (selectSpil),
6066 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
6067 stack in the middle of a function call sequence (fixes bug #1020268)
6068 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
6069 costs associated with the minimum switch case.
6071 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6073 * src/SDCC.lex: fixed bug #1030549
6075 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6077 * src/SDCCcse.h (struct cseDef),
6078 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
6079 over a function call if the CSE is derived from a symbol whose
6080 address has been taken (fixes bug #1029883)
6081 * support/regression/tests/bug-1029883: a new regression test for
6084 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6086 * src/hc08/gen.c (emitinline): fixed bug #1029778
6087 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
6088 to a cast object is no longer a syntax error ("fixes" bug #1030006,
6089 and starts toward RFE #905167)
6091 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
6093 * src/pic16/gen.c (mov2f): New function to move an operand to
6094 another without considering if it is a literal or a register,
6095 * (pic16_sameRegs): don't check if they are both AOP_REG,
6096 * (AccRsh): removed andmask=0 lines,
6097 * (genLeftShift): duplicated to be improved in future versions,
6098 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
6099 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
6100 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
6101 * (pic16initMnemonics): added initialization for POC_INFSNZW,
6102 * (insertBankSwitch): fixed inserting banksel directives algorithm
6103 for instructions that follow a skip instruction, this fixes a report
6104 for broken subtraction code generation,
6105 * src/pic16/ralloc.c (deassignLRs): do not free register if current
6106 iCode is a left op, just in case result and right share the same
6109 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6112 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
6114 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
6115 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
6116 on 2004-09-12; it was buggy
6118 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
6120 * src/SDCCsymt.h: removed RESULT_CHECK
6125 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
6127 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
6129 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
6130 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
6131 configuration values no more rejected by compiler, they are assigned
6132 to configuration registers with a warning message instead,
6133 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
6134 the for-loop so last conf register is emitted too,
6135 * (_pic16_initPaths): link library libsdcc.lib by default,
6136 * (_hasNativeMulFor): modified test for multiplication according to
6137 Raphael Neider's remarks. Integer multiplication is also done with
6139 * device/include/pic16/pic18fregs.h: corrected type error in while
6140 testing and including 18f6720 header file
6142 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
6144 * src/pic16/device.h (pic16_options): removed field use_crt,
6145 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
6146 until an optimization to handle single bits is added,
6147 * (pic16_loadFSR0): moved before genUnpackBits,
6148 * (genAnd): some white lines removed,
6149 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
6150 leave_reset flags in pic16_options when using crt modules,
6152 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
6154 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
6155 for bugs 898889 & 979599. Also used some safer print instructions.
6157 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
6159 * src/pic16/device.h (pic16_options_t): added field use_crt,
6161 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
6162 catch a probable future bug,
6163 * src/pic16/gen.c: aopIdx function commented out,
6164 * (genAssign): commented out old code which used aopIdx,
6165 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
6166 code, added if conditionals to take into account the --use-crt
6167 command line options,
6168 * src/pic16/main.c (pic16_optionsTable): added new command line
6169 options, --use-crt= and --no-crt,
6170 * (_pic16_linkEdit): now the proper crt object is added in the
6171 linker command line except than when --no-crt is specified,
6172 * src/pic16/pcode.c,
6173 * src/pic16/pcode.h: added some structures and functions for a new
6174 optimization scheme to compansate for instruction overhead between
6175 same iCodes, this scheme is currently under development and is not
6177 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
6179 * device/lib/pic16/startup/crt0i.c,
6180 * device/lib/pic16/startup/crt0iz.c: added global char variable
6181 __uflags to force the generation of an idata section
6183 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
6186 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
6187 * doc/sdccman.lyx: updated sdcc version to 2.4.4
6189 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6191 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
6192 Frieder) and clarified the default code optimization mode
6194 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6196 * src/SDCC.lex (doPragma, process_pragma),
6197 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
6198 "opt_code_size", and "opt_code_balanced"
6199 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
6200 regrouped options by category, added support for category headers
6201 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
6202 and "--opt-code-size"
6203 * doc/sdccman.lyx: documented these new options and pragmas
6204 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
6205 preference into account
6207 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6209 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
6210 geniCodePreDec): Fixed bug 904237 by generating a warning
6212 * src/SDCCerr.c: added warning W_SIZEOF_VOID
6214 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
6216 * src/pic/device.c : When no max ram set validate full memory range.
6218 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
6220 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6222 * device/lib/_gptrget.c,
6223 * device/lib/_gptrput.c: updated comment
6224 * device/lib/calloc.c,
6225 * device/lib/free.c,
6226 * device/lib/malloc.c,
6227 * device/lib/realloc.c: added LGPL, made them reentrant-safe
6228 * src/SDCCcse.c (cseBBlock),
6229 * src/SDCCicode.c (printOperand, geniCodeArray),
6230 * src/SDCCicode.h (struct operand): fixed bug 868103
6231 * support/regression/tests/bug-868103.c: added
6232 * src/SDCCast.c (searchLitOp),
6233 * src/SDCCcse.h (struct cseDef),
6234 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
6235 * src/SDCCicode.h (struct operand),
6236 * src/SDCCsymt.h (struct sym_link),
6237 * src/avr/gen.c (hasInc),
6238 * src/ds390/gen.c (hasInc),
6239 * src/hc08/gen.c (genPlusIncr, hasInc),
6240 * src/mcs51/gen.c (hasInc),
6241 * src/pic16/glue.c (pic16_printIvalChar),
6242 * src/pic16/ralloc.c (regWithIdx),
6243 * src/xa51/gen.c (hasInc) : removed warnings
6244 * src/SDCCast.c (createBlock): added comment ???
6245 * src/hc08/ralloc.c: updated comments
6247 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6249 * doc/sdccman.lyx: updated section on switch statements, added
6250 section about semaphore locking
6251 * doc/Makefile: added option -info for latex2html
6252 * device/lib/_gptrget.c,
6253 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
6255 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
6259 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
6260 maxram is less than 0x100.
6262 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
6264 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
6266 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6277 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
6278 a jump table is the best form for a switch statement, including
6279 automatic insertion of missing cases to make the case range
6280 continuous. Developed in collaboration with Frieder Ferlemann.
6282 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6284 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
6285 accumulator result if it needs sign extension
6287 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6289 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
6291 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6293 * device/lib/gbz80/printf.c,
6294 * device/lib/z80/printf.c: removed define for NULL
6296 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6298 * as/xa51/xa_link.c,
6299 * device/examples/ds390/ow390/ad26.c,
6300 * device/examples/ds390/ow390/cnt1d.c,
6301 * device/examples/ds390/ow390/counter.c,
6302 * device/examples/ds390/ow390/ds2480.h,
6303 * device/examples/ds390/ow390/ds2480ut.c,
6304 * device/examples/ds390/ow390/findtype.c,
6305 * device/examples/ds390/ow390/gethumd.c,
6306 * device/examples/ds390/ow390/owllu.c,
6307 * device/examples/ds390/ow390/ownetu.c,
6308 * device/examples/ds390/ow390/swt12.c,
6309 * device/examples/ds390/ow390/swtloop.c,
6310 * device/examples/ds390/ow390/temp.c,
6311 * device/examples/ds390/ow390/temp10.c,
6312 * device/examples/ds390/ow390/thermo21.c,
6313 * device/examples/ds390/ow390/tinilnk.c,
6314 * device/examples/ds390/ow390/tstfind.c,
6315 * device/examples/serialcomm/windows/serial.cpp,
6316 * device/examples/serialcomm/windows/test_serialcomm.cpp,
6317 * device/include/reg51.h: fixed line endings for cvs
6319 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6321 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
6322 packRegsForAccUse, packRegisters): new accumulator register
6324 * support/regression/ports/hc08/support.c (_putchar): suppress
6325 warning of unused variable
6326 * src/SDCCicode.c: added SWAP entry to codeTable
6328 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
6330 * device/lib/sprintf.c: forgot to add this file before previous commit
6332 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
6334 * src/pic16/gen.c (genPackBits): added operand right in function
6335 parameters, load result directly if p_type is POINTER (that is
6336 called by genNearPointerSet)
6337 * (genUnPackBits): added operand left in function parameters,
6338 * (genNearPointerGet, genNearPointerSet): prevent the loading of
6339 FSR0 if accessing bitfields,
6341 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
6343 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
6344 _print_format; updated printf, sprintf, vsprintf
6345 * device/include/asm/default/features.h: corrected comment/define
6346 * device/lib/Makefile.in: added sprintf.c
6347 * device/lib/libsdcc.lib: added sprintf module
6348 * device/lib/printf_large.c,
6349 * device/lib/vprintf.c,
6350 * device/lib/sprintf.c: totally refactored printf_large and vprintf
6352 * support/regression/Makefile: changed ALL_PORTS into a usefull default
6353 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
6354 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
6356 * support/regression/tests/zeropad.c: define idata as data for hc08
6358 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6360 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
6361 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
6362 labels are referenced at least once (even if a reference is not found)
6363 * src/hc08/gen.c (emitcode): set isComment flag for comments
6364 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
6365 loads), rules 6a..6b (optimize jumps to return)
6367 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6369 * device/lib/acosf.c (acosf),
6370 * device/lib/asinf.c (asinf),
6371 * device/lib/atanf.c (atanf),
6372 * device/lib/ceilf.c (ceilf),
6373 * device/lib/cosf.c (cosf),
6374 * device/lib/coshf.c (coshf),
6375 * device/lib/cotf.c (cotf),
6376 * device/lib/fabsf.c (fabsf),
6377 * device/lib/floorf.c (floorf),
6378 * device/lib/log10f.c (log10f),
6379 * device/lib/logf.c (logf),
6380 * device/lib/sinf.c (sinf),
6381 * device/lib/sinhf.c (sinhf),
6382 * device/lib/sqrtf.c (sqrtf),
6383 * device/lib/tanf.c (tanf),
6384 * device/lib/tanhf.c (tanhf),
6385 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
6386 replaced all instances of "reentrant" in the library functions
6387 defined in math.h with this macro.
6388 * support/regression/tests/float_trans.c: reenabled test for hc08
6390 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
6392 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
6395 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6397 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
6398 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
6399 multi-byte volatile operands are used
6400 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
6401 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
6402 initialization to area GSINIT0 so that it would always precede
6403 any static initializers in GSINIT
6404 * support/regression/tests/zeropad.c: fixed idata define for hc08
6405 * support/regression/tests/bug-927659.c,
6406 * support/regression/tests/float_trans.c: disabled tests for hc08
6407 pending missing library routines
6408 * .version: increased version number to 2.4.4 - hc08 port now passes
6412 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
6414 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
6415 * Makefile.common.in,
6417 * as/hc08/Makefile.in,
6418 * as/mcs51/Makefile.in,
6419 * as/z80/Makefile.in,
6420 * debugger/mcs51/Makefile.in,
6421 * device/include/Makefile.in,
6422 * device/lib/Makefile.in,
6425 * link/z80/Makefile.in,
6426 * packihx/Makefile.in,
6427 * sim/ucsim/main_in.mk,
6428 * sim/ucsim/avr.src/Makefile.in,
6429 * sim/ucsim/doc/Makefile.in,
6430 * sim/ucsim/gui.src/serio.src/Makefile.in,
6431 * sim/ucsim/hc08.src/Makefile.in,
6432 * sim/ucsim/s51.src/Makefile.in,
6433 * sim/ucsim/xa.src/Makefile.in,
6434 * sim/ucsim/z80.src/Makefile.in,
6436 * support/cpp2/Makefile.in,
6437 * support/librarian/Makefile,
6438 * support/makebin/Makefile: added DESTDIR to the install path proposed
6439 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
6440 * doc/sdccman.lyx: added DESTDIR documentation
6442 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
6444 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
6445 instruction for interrupt handlers, use fast returns when returning
6446 from high priority interrupts
6448 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6450 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
6452 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
6453 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
6454 bugs, ported much of Bernhard's code from mcs51
6455 * src/mcs51/gen.c (genSend),
6456 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
6457 than one when calling a reentrant function
6458 * device/lib/_mullong.c: defined an alternate struct layout for big
6461 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6463 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
6466 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6468 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
6469 are sane and complete before asking the port its prefered parameter
6470 passing method (fixes bug #1017633)
6471 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
6474 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6476 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
6477 problem in bitfields >= 8 bits.
6479 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
6481 * src/SDCCsymt.c: undid changes that were not meant to be committed
6483 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
6485 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
6487 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
6489 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
6490 copied and wrong bit got inverted
6492 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6494 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
6495 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
6496 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
6497 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
6498 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
6499 assignments to bitfields at known addresses
6500 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
6501 reads from bitfields at known addresses
6502 * src/hc08/ralloc.c (packRegisters),
6503 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
6504 genhc08Code): optimize pointer get values used as conditionals
6505 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
6508 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6510 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
6511 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
6512 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
6515 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6517 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
6519 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6521 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
6524 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
6526 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
6528 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6530 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
6533 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6535 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
6537 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6539 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
6540 cases use more compact code.
6542 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
6544 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
6546 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6548 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
6550 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6553 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
6554 parameter of changePointer() from symbol* to sym_link*
6555 * src/SDCCast.c (decorateType): call changePointer() for CAST op
6556 * src/SDCCsymt.c (compareType): void* type is castable to other
6557 pointers, but not necesarily an exact match.
6558 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
6559 is no longer blindly treated as an exact match.
6560 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
6562 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
6564 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
6566 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
6571 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
6573 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
6577 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
6579 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6581 * src/mcs51/gen.c (emitcode): fixed bug #992819
6583 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
6585 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
6586 there's no need to make it worse
6588 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6590 * src/mcs51/ralloc.c (deassignLR),
6591 * src/ds390/ralloc.c (deassignLR),
6592 * src/hc08/ralloc.c (deassignLR),
6593 * src/z80/ralloc.c (deassignLR),
6594 * src/pic/ralloc.c (deassignLR),
6595 * src/pic16/ralloc.c (deassignLR),
6596 * src/avr/ralloc.c (deassignLR),
6597 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
6598 rlivePoint): fixed another part of bug #971834
6600 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6602 * src/z80/main.c: enabled "critical" keyword
6603 * src/z80/mappings.i,
6604 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
6605 functions (fixes bug #979646)
6606 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
6608 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6610 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
6613 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
6615 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
6616 doesn't disable too much optimizations
6618 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
6620 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
6622 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
6624 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
6626 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
6628 * src/pic/gen.c tidied up tabs
6629 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
6630 * src/pic/main.c tidied up tabs
6631 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
6632 * src/pic/pcoderegs.c tidied up tabs
6633 * src/pic/ralloc.c tidied up tabs
6635 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
6637 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
6638 to S_FIXED for pic16 port and when symbol is not in level 0,
6639 allocate for S_REGISTER storage class and pic16 port, too,
6640 * src/pic16/device.h: prototype for checkSym,
6641 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
6642 * (pic16_assignConfigWordValue): test the value and the mask to
6643 validate that the value is suitable for the configuration word,
6644 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
6645 collect extern declared symbols, don't emit symbol twice, check
6646 first if symbol is in publics set first,
6647 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
6648 * added command line '--fstack' which enables an experimental
6649 feature for stack access, too buggy to be used yet...
6650 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
6651 * (pic16_allocDirReg): when register has storage class S_REGISTER
6652 allocate in pic16_dynAccessRegs,
6653 * device/include/pic16/pic18f????.h: modified configuration word
6654 naming convention, words started as CONFIG0H but should be CONFIG1H
6656 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6658 * device/include/mcs51reg.h: fixed bug 970993
6660 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
6662 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
6663 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
6664 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
6665 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
6666 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
6667 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
6668 error/warning numbers,
6669 added function setWarningDisabled()
6670 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
6671 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
6672 _memcmp.c _memmove.c calloc.c realloc.c free.c
6673 * support/regression/tests/malloc.c: added tests for new functionality
6674 * support/regression/tests/zeropad.c: added tests for truncated initializers
6675 and initialized char arrays starting with '\x0'
6676 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
6678 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
6680 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
6682 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6684 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
6685 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
6686 peephole 177.e. Thanks to anonymous
6688 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
6690 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
6691 function isn't used in the source but referenced as a
6692 variable initializer then declare it as extern in .asm file
6694 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
6696 * .version: increased version number to 2.4.3
6698 Adding version extension according to ChangeLog CVS revision
6699 * src/Makefile.in (target all): added dependency 'version.h'
6700 * (rule version.h): added rule to create version.h from ChangeLog,
6701 * (rule dep): added dependency version.h,
6702 * src/version.awk: AWK script to create version.h
6703 * src/SDCCdwarf2.c (dwWriteModule),
6704 * src/SDCCglue.c (initialComments),
6705 * src/SDCCmain.c (printVersionInfo): modified to write after
6706 version string the version extension number,
6707 * src/SDCCutil.c: included "version.h"
6708 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
6710 * src/SDCCutil.h: added prototype for getBuildNumber
6712 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
6713 includeDirsSet, too,
6714 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
6715 const char [] is found in function prototype...
6717 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
6718 moving to WREG with source is already in WREG,
6719 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
6720 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
6721 * (aopForSym): stack'ed symbols are partially supported, added
6722 if-clause to support symbols in FARSPACE,
6723 * (sameRegs): added test for AOP_ACC to see if registers are same,
6724 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
6725 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
6726 * (pic16_popRegFromString): will not allocate a new register if it
6727 doesn't find one by name, bug may have introduced...
6728 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
6729 * (genIpush): revived to use pic16 port's stack,
6730 * (genAddrOf): added incomplete case for stack'ed operand,
6731 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
6732 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
6733 can handle multibyte operands,
6734 * src/pic16/glue.c (pic16_printIval*): some debug info added,
6735 * (pic16initialComments): added message for MPLAB compatibility
6737 * src/pic16/main.h: prototype for pic16_mplab_comp,
6738 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
6739 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
6740 * (_pic16_linkEdit): NEW, handles link stage, transferred here
6741 because of increased complexity of procedure,
6742 * (_process_pragma): stack pragma changed to format 'stack pos len',
6743 emit symbol '_stack_end' to conform with gplink,
6744 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
6745 to search for register,
6746 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
6748 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
6749 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
6750 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6751 case for PO_GPR_REGISTER,
6752 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
6753 dies, the new era is ahead !...
6754 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
6755 pic16_dynInternalRegs,
6756 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
6757 * (pic16_allocDirReg): minor optimizations and bug fixes,
6758 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
6760 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
6761 load stack and frame pointer with address of 'stack_end' symbol
6763 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
6765 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
6766 without source code but only variable initializers
6768 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
6770 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
6771 external are not declared as extern to reduce overhead while linking
6773 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
6775 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
6777 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
6779 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
6780 Yee Keat for the patch
6781 * src/SDCCast.c (decorateType): fixed bug #979599
6782 * src/ds390/gen.h: removed local fReturnSizeDS390
6783 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
6784 * src/ds390/gen.c (genAnd, genOr, genXor),
6785 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
6787 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
6789 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
6790 add relFilesSet to $3, manipulate $2 to handle linking of object
6791 files without source files in command line,
6792 * device/include/pic16 (all headers): added ID location macros,
6793 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
6794 entries for ID location bytes,
6795 * (pic16_assignIdByteValue): NEW,
6796 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
6797 added field dumpcalltree to pic16_options_t,
6798 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
6799 is used instead of pic16_Gstack_base_addr, check if (ifx) before
6800 emitting rFalseIfx label after check_carry label,
6801 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
6802 pic16_emitDIRegs), NEW
6803 * (pic16glue): dump .calltree file when option --calltree found,
6804 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
6805 * (_pic16_genAssemblerPreamble): emit ID locations after
6806 configuration registers,
6807 * (pic16_linkCmd): modifications of the link command,
6808 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
6809 * (pic16_pCodeInitRegisters): don't init stack registers,
6810 * (pic16_findPrevInstruction): fixed bug,
6811 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
6812 bug with immediate registers,
6813 * (buildCallTree): traces stack push and pop,
6814 * (pct2): dump also stack usage for each function,
6815 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
6816 * (pic16_allocDirReg): various modifications,
6817 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
6820 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
6822 * src/pic16/pcode.c: removed buggy double colon
6824 2004-07-01 Borut Razem <borut.razem AT siol.net>
6826 * support/scripts/sdcc.nsi: added include/pic16 to setup
6828 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
6830 * device/lib/Makefile.in: fixed bug in target objects-pic16,
6831 * device/lib/pic16/Makefile: prefixed with dash (-) command under
6833 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
6834 specific command line arguments. Also added sample lkr script
6835 for placing a variable at a specific memory bank.
6836 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
6837 at a specific memory bank,
6838 * (pic16_dump_isection): fixed bug which caused string literals to
6839 be omitted when dumping idata section,
6840 * (pic16_groupRegistersInSection): added code to handle registers
6841 in specific memory banks,
6842 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
6843 public, all references are renamed too,
6844 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
6846 * (pic16_storeForReturn): added case to handle when dest is WREG,
6847 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
6848 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
6849 pic16_rel_udata, check to see if that register is marked as being
6850 a member of a specific memory bank,
6851 * (pic16_printIvalCharPtr): added code to add string literals either
6852 to code or the idata sections,
6853 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
6854 also accept the 'udata' pragma,
6855 * src/pic16/main.h: new structure types sectName and sectSym
6856 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
6857 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
6858 * (pic16_findPrevInstruction): fixed, it returned nothing,
6859 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
6860 instruction combinations,
6861 * (pic16_FixRegisterBanking): heavily reorganised,
6862 * (pic16_AnalyzeBanking): if generating banksel directives is
6863 disabled, then don't call FixRegisterBanking at all,
6864 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
6866 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
6868 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
6870 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
6871 Phuah Yee Keat <yk.phuah AT nestac.com>
6873 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
6875 * src/pic16/glue.c (pic16createInterruptVect): function now emits
6876 correctly the IVT even if it is relocated to some other location
6878 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
6880 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
6881 * device/include/pic16/pic18f2220.h: NEW,
6882 * device/lib/pic16/libdev/pic18f2220.c: NEW,
6883 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
6884 * src/pic16/device.c (struct Pics16): added info for 18f2220,
6885 * src/pic16/device.h (struct pic16_options): added ivt_loc and
6886 nodefaultlibs, ivt_loc is the location of the interrupt vector
6887 table, and nodefaultlibs signs that default libraries should not be
6888 linked in link stage,
6889 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
6890 according to --ivt-loc argument,
6891 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
6892 when pragma stack is found,
6894 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6896 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
6897 256 (range check), 257 (do while), 258.a-f (bit banging
6898 f.e. on 3-wire SPI bus)
6900 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6902 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
6903 variables used exclusively within a loop
6905 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
6907 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
6909 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6911 * src/SDCClrange.c (computeClash): fixed bug #971834
6913 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6915 * src/mcs51/gen.c (genCmp): fixed bug #975903
6916 * src/hc08/gen.c (operandsEqu),
6917 * src/ds390/gen.c (operandsEqu),
6918 * src/z80/gen.c (operandsEqu),
6919 * src/pic/gen.c (operandsEqu),
6920 * src/pic16/gen.c (operandsEqu),
6921 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
6922 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
6924 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6926 * src/SDCCcse.c (cseBBlock): fixed bug #966963
6928 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
6930 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
6931 default case in switch statement,
6932 * glue.c (pic16_initPointer): expr is initialised via decoarteType
6933 to eliminate problem with initialisation of pointers, but problem
6935 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
6936 * (emitStaticSegment): removed various lines emitting debug info,
6937 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
6938 added processor registers for utilizing EEPROM,
6939 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
6940 configurable and set 8
6942 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
6944 * .version: increased version number to 2.4.2,
6946 Cumulative patch for pic16 port
6947 * src/pic16/device.c: changed scheme to dump initial values for
6948 variables in idata segment, all print_idata* functions were removed,
6949 now the pic16_printIval* will be called,
6950 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
6951 * _pic16_printPointerType, pic16_printPointerType,
6952 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
6953 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
6954 NEW, similar to the respective functions in SDCCglue.c,
6955 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
6956 way, emitting hex bytes,
6957 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
6959 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6961 * src/avr/ralloc.c (serialRegAssign),
6962 * src/xa51/ralloc.c (serialRegAssign),
6963 * src/pic/ralloc.c (serialRegAssign),
6964 * src/pic16/ralloc.c (serialRegAssign),
6965 * src/hc08/ralloc.c (serialRegAssign),
6966 * src/z80/ralloc.c (serialRegAssign),
6967 * src/ds390/ralloc.c (serialRegAssign),
6968 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
6970 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6972 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
6973 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
6975 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
6977 Cumulative patch for pic16 port:
6978 * src/pic16/device.h (typedef PIC16_device) modified fields for
6979 defining microcontrollers,
6980 * src/pic16/device.c: added new info for all devices in Pics16 array,
6981 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
6982 to be optimised out by the pCode optimiser,
6983 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
6984 specially, bug reported by G.M. Gallant,
6985 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
6986 as force'd so that cannot be optimised out by pCode optimiser,
6987 * src/pic16/pcode.c,
6988 * src/pic16/pcodepeeph.c,
6989 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
6990 they are disabled by default, but can be enabled explicit with
6991 command argument --denable-peeps, for testing,
6992 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
6993 --pomit-ivt in COMPILE_FLAGS
6995 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
6997 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
7000 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
7002 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
7004 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7006 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
7007 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
7009 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
7011 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
7012 would only assign 0x300001 register.
7014 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
7016 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
7017 in COMPILE_FLAGS. Thanks to G. Gallant for report.
7019 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7021 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
7023 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
7024 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
7025 added peephole 254 (left shift), 255 (jump table)
7027 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
7029 * device/lib/Makefile.in: removed comment line with model-pic16,
7030 * (target port-specific-objects-pic16): the libraries and objects
7031 are copied to the build directory form the device/lib/pic16/bin
7034 Cumulative patch concerning pic16 port:
7035 * library directory has been re-organized,
7036 * added support for PIC18F1220,
7037 * added headers and library sources for chips 18f1220,18f6520,
7038 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
7040 * configuration registers setting has changed, now each supported
7041 device has a complete description of the registers it uses,
7042 * all initialisations are moved to idata sections, these section
7043 can be absolute or relocatable,
7044 * fixed initialisation of codespace variables,
7045 * fixed warning about PCLATU and gpsim,
7046 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
7047 * (genAssign): use table reads when assigning from variables in codespace,
7048 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
7049 char/int variables placed in codespace,
7050 * (pic16_emitConfigRegs): NEW, emits a list with configuration
7051 registers set in .asm file, no need for --pomit-config-words anymore,
7052 * (pic16glue): some 8051 legacy segments are commented out
7053 (to be removed completely),
7054 * added support for alternative assembler and linker with --asm=
7055 and --link= command line arguments,
7056 * peepholes are disabled automatically in the port, no need to
7057 specify on command line,
7058 * port supports natively char/int/long multiplication, but converts
7059 all divisions to support functions,
7060 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
7061 to the file set in variable $2,
7062 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
7063 strings in ASCII format and not in hex,
7064 * ralloc.c (serialRegAssign): added a triplet of conditional calls
7065 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
7066 allocate proper register if iCodes aren't temporary,
7068 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
7070 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
7072 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
7074 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
7077 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7079 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
7080 computed address is reused
7081 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
7082 multi-byte bitfields
7084 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
7086 * src/z80/gen.c: (genArrayInit): must check for pointers too
7088 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
7090 * support/regression/tests/zeropad.c: never meant to commit the
7091 nestedstruct test: removed, added check for GCC version
7093 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
7095 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
7096 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
7097 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
7098 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
7099 bugs 928906 and 954082 half-empty initializers
7101 * src/SDCCsymt.c (getAllocSize): added for above fix
7102 * src/z80/gen.c (genArrayInit): fixed bug 741044
7103 * support/regression/tests/zeropad.c: added tests
7105 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
7107 * src/pic16/device.c (pic16_dump_section): corrected bug which
7108 caused some symbols of the libraries to be misplaced
7110 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
7113 * src/pic16/ralloc.h,
7114 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
7115 to fix conflict with pic port
7117 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
7119 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
7120 externs configuration variables,
7121 * src/pic16/ralloc.h,
7122 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
7123 prototype in header, commented out some debug messages
7125 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
7129 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
7130 for gpasm COFF object generation. Thanks to D. Hawkins for
7133 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7136 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
7137 Brock for spotting this)
7138 * src/ds390/gen.c (genEndFunction),
7139 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
7140 interrupt handler and critical. Disable push/pop optimizations when
7141 peephole optimizations disabled.
7143 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
7145 Updated pic16 library sources and headers.
7146 * device/lib/pic16/pic18f*/ ,
7147 * device/include/pic16/*.h: modified to handle structured SFR
7150 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
7152 * src/port.h (PORT structure): added hook initPaths, now each
7153 port can declare its own default search paths,
7154 which can been seen with the --print-search-dirs option,
7155 see pic16 port for example,
7156 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
7157 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
7158 * (doPrintSearchDirs): NEW, replaces in a central manner the
7159 printing of search dirs which was split in set*Paths functions,
7160 * (main): added call to port->initPaths and doPrintSearchDirs,
7165 * src/izt/tlcs900h.c,
7168 * src/pic16/main.c: modified port structures to reflect addition of
7171 * src/pic16/device.c (regCompare): registers are finally sorted by name,
7172 * (pic16_dump_section): for registers in same address reserve memory once,
7173 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
7175 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
7176 result is greater in size than right or left,
7177 * (pic16_genUMult8X8_8): there are some cases where the result can
7178 be 16 bits size, so handle these,
7179 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
7180 * (pic16_outBitC): modified to emit pcodes,
7181 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
7183 * (genDivOneByte): implemented algorithm to divide 8-bits,
7184 * (genCmp): uncommented goto, but issues still exist,
7185 * (genAnd): fixed a bug with variables >8bits,
7186 * (genPackBits): optimization added that uses BCF/BSF to change a
7188 * (genAssign): fixed bug when assigning floating point literals,
7189 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
7190 __sdcc_gsinit_startup label,
7191 * src/pic16/main.c (_pic16_init): removed search directory
7193 * (_pic16_initPaths): NEW, used to initialise search directories,
7194 * (_hasNativeMulFor): support functions for all except char/int
7195 multiplication, and char division,
7196 * (PIC16_port struct): modified entry for native mul support,
7197 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
7199 * (buildCallTree): call to register_usage is ifdef'ed out,
7201 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7203 * device/include/string.h: applied Stas Sergeev's patch to make this
7204 header file compatible with the preprocessor -Wundef option
7205 * src/SDCCmain.c (main): abort compilation if preprocessor reports
7206 failure (fixes bug #941458)
7208 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7210 * src/SDCCopt.c (killDeadCode): fixed bug #907733
7211 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
7212 that the variable, not the function, should be static
7213 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
7214 to be consistent with non-literal case
7216 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7218 * src/SDCCast.c (isConformingBody): fixed bug #949967
7219 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
7220 convilong): fixed bug #952086
7222 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7224 * src/SDCCmem.c (allocVariables): fixed bug #955321
7226 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7228 * src/hc08/main.c (_hc08_genAssemblerEnd),
7229 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
7230 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
7231 completely eliminated the use of a temporary file
7232 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
7233 when more than one file linked
7234 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
7236 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7238 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
7239 which fixes bug #543481
7240 * support/regression/tests/bug-751703.c: fixed comments left from a
7242 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
7243 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
7244 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
7246 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
7247 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
7248 are now changed to underscores in moduleName
7250 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7252 * as/mcs51/lkmem.c: better fix for bug #954173
7254 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7255 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7257 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
7258 * device/include/c8051f000.h,
7259 * device/include/c8051f120.h,
7260 * device/include/c8051f300.h,
7261 * device/include/c8051f310.h,
7262 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
7265 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7267 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
7268 and mailing lists, doc'ed --no-peep-comments, removed reference
7269 to knoppix (newest version has no LyX/LaTeX), other minor changes
7270 * src/SDCCglue.c (glue): save 2 bytes stack space with
7271 option --main-return. The ljmp could probably be avoided too
7273 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7275 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
7277 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7279 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
7280 * src/SDCCopt.c (isLocalWithoutDef),
7281 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
7282 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
7283 (credit to Maarten Brock for patch #949363, on which this is based)
7284 * support/regression/tests/bug-751703.c: some test cases of extern used
7285 within inner scopes.
7287 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7289 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
7291 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
7293 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
7294 dwWriteLabel): fix to create valid debugger symbols even when
7295 the module name has non-alphanumeric symbols in it
7296 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
7297 when a variable's allocation has been optimized away
7300 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7302 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
7304 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
7306 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
7308 * src/z80/gen.c (z80_emitDebuggerSymbol),
7310 * src/pic/gen.c (pic14_emitDebuggerSymbol),
7312 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
7314 * src/avr/gen.c (avr_emitDebuggerSymbol),
7316 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
7318 * src/SDCCdebug.c (emitDebuggerSymbol),
7320 * src/port.h: added a debugger struct to the port struct. Added a
7321 callback for defining debugger symbols
7323 * src/SDCCast.c (createLabel),
7324 * src/SDCC.y (labeled_statement): mark all compiler generated labels
7327 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
7328 iCode back to the ast for the function
7330 * src/hc08/ralloc.c (hc08_assignRegisters),
7331 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
7332 unneeded fields from the regs struct.
7333 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
7334 pushReg() & pullReg() functions instead of emitcode()
7336 * src/hc08/gen.c (genLabel, genhc08Code),
7337 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
7339 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
7342 * src/hc08/gen.c (genEndFunction, genhc08Code),
7344 * src/mcs51/gen.c (genEndFunction, gen51Code),
7346 * src/ds390/gen.c (genEndFunction, gen390Code),
7348 * src/z80/gen.c (genEndFunction, genZ80Code),
7351 * src/pic/gen.c (genEndFunction, genpic14Code),
7353 * src/pic16/gen.c (genEndFunction, genpic16Code),
7355 * src/avr/gen.c (genEndFunction, genAVRCode),
7357 * src/xa51/gen.c (genEndFunction, genXA51Code),
7359 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
7360 specific code to cdbFile.c and out of the backend code generators
7362 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
7363 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
7364 starting address is now 0
7368 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
7369 assembler directive for DWARF support
7370 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
7374 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
7376 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7378 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
7379 and inappropriate peephole optimization in jump tables
7381 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7384 * src/SDCCglue.c: sdccopt works for the hc08 port now
7386 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
7388 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
7390 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7392 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
7394 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7396 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
7400 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
7401 comments from the peephole optimizer replacement rules
7402 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
7404 * src/SDCCcse.c (updateSpillLocation),
7405 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
7407 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
7408 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
7409 objects far pointers
7411 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7413 * src/SDCCsymt.h: a missing part of my last change
7414 * src/pic/ralloc.c (regTypeNum),
7415 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
7417 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7420 * src/SDCCicode.c (aggrToPtrDclType),
7422 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
7423 ptrPseudoSymConvert),
7424 * src/pic/ralloc.c (regTypeNum),
7425 * src/pic16/ralloc.c (regTypeNum),
7426 * src/hc08/ralloc.c (regTypeNum),
7427 * src/ds390/ralloc.c (regTypeNum),
7428 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
7429 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
7431 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7433 * link/z80/lkmain.c (afile),
7434 * as/hc08/lkmain.c (afile),
7435 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
7436 prevent a pointer problem when a filename has no directory and
7437 no extension specified.
7439 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7441 * link/z80/lkmain.c (afile): allow periods in directory names
7442 * link/z80/lkmain.c (afile),
7443 * as/mcs51/lkmain.c (afile),
7444 * as/hc08/lkmain.c (afile): allow linker script file to have an
7445 extension other than ".lnk"
7446 * link/z80/lklex.c (getfid),
7447 * link/z80/lkmain.c (parse),
7448 * as/mcs51/lklex.c (getfid),
7449 * as/mcs51/lkmain.c (parse),
7450 * as/hc08/lklex.c (getfid),
7451 * as/hc08/lkmain.c (parse): Support comments in the linker script
7452 file on lines by themselves and after filenames
7454 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7456 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
7458 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7460 * src/z80/peeph-z80.def: removed some peephole rules that don't
7461 work with multibyte arithmetic (fixed bug #937126)
7462 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
7463 to registers and not global variables
7464 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
7465 geniCodePreInc, geniCodePostDec, geniCodePreDec,
7466 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
7467 checking for assignments not internally generated (fixed bug #931895)
7468 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
7469 structure member (fixed bug #930072)
7471 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7473 * src/SDCCmain.c (linkEdit),
7474 * src/hc08/main.c (_hc08_parseOptions),
7475 * as/hc08/Makefile.in,
7479 * as/hc08/lkrloc.c (relr, rele),
7480 * as/hc08/lkarea.c (lnkarea)
7481 * as/hc08/lkmain.c (afile, parse),
7482 * as/hc08/lkelf.c: support for ELF output
7483 * as/hc08/lks19.c (s19),
7484 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
7486 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7488 * as/mcs51/lkihx.c: Fixed bug #899105.
7490 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7492 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
7493 .dsp files from Unix to DOS.
7495 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7497 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
7498 function pointers; we have been compliant for several months now.
7499 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
7500 change that was accidently commented out
7501 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
7502 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
7505 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7507 * src/hc08/gen.c: output of all of the internal debugging information
7508 is now controlled by the D() macro; it is disabled by default
7510 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7512 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
7513 harder to keep the same registers during a CAST iCode
7514 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
7515 long via int can be done in a single cast, if the signedness is
7517 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
7518 putchar() in tinibios.c in ds390's library
7520 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
7522 * src/SDCCast.c (decorateType): fixed bug #898889,
7523 cast result of a literal complement too
7524 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
7525 fixed check for bitfields
7527 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
7529 * src/SDCCicode.c (geniCodeLogic): made it static,
7530 (geniCodeLogicAndOr): added in order to fix bug #905492,
7531 (ast2iCode): fixed bug #905492
7532 * support/regression/tests/bug-905492.c: added
7533 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
7534 (processParms): fixed bug #927659: don't copy parms, this will clear
7536 * support/regression/tests/bug-927659.c: added
7538 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
7540 * src/SDCCast.c (addCast): don't cast float to char
7541 * device/lib/libsdcc.lib: added _memmove
7543 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
7545 * device/lib/large/Makefile: fixed parallel execution by
7546 replacing `make` by `$(MAKE)`
7548 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7550 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
7551 offsets (fixes bug #923936)
7553 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
7555 * device/lib/small/Makefile: fixed parallel execution by
7556 replacing `make` by `$(MAKE)`
7558 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
7560 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
7562 2004-03-23 Scott Dattalo <scott AT dattalo.com>
7564 * src/pic/gen.c (genCpl): multi-byte complements were not working.
7565 * src/regression/Makefile: Regression test was not running.
7567 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
7569 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
7570 complement if possible
7571 * src/SDCCval.c (valComplement),
7572 * src/SDCCicode.c (operandOperation): fixed complement of literal
7573 * support/regression/tests/onebyte.c (testComplement): added
7575 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
7577 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
7578 return an optimized tree; actually replace actParm with the new tree
7579 * src/SDCCast.h: added some parantheses to remove side effects
7580 * support/regression/tests/bug-920866.c
7582 2004-03-21 Scott Dattalo <scott AT dattalo.com>
7583 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
7584 Bit operands were not being handled properly in the pic14 port.
7585 (now src/regression/add.c passes again).
7587 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7589 * src/SDCC.y (labeled_statement): case and default no longer require
7590 a following statement (RFE #893037)
7592 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7594 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
7595 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
7596 disabled (fixes bug #916294)
7597 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
7598 "mov a,acc"; patch provided by Lenny Story
7599 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
7601 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7603 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
7605 * src/ds390/gen.c (genFunction, genEndFunction),
7606 * src/ds390/ralloc.c (ds390_assignRegisters),
7607 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
7608 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
7609 pushed if there are parameters passed on the stack. Also, a cleaner
7610 way to decide if r0/r1 should be pushed/popped. (Together they fix
7613 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7616 * device/lib/mcs51/crtpagesfr.asm,
7617 * device/lib/mcs51/crtxinit.asm,
7618 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
7619 to avoid confusion with Si Lab's SFRPAGE register.
7621 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7623 * src/SDCCglue.c (emitMaps): allow public sfr variables
7624 * src/SDCCglue.c (initialComments): include compiler build date
7625 with compiler version and put the timestamp of the generated
7626 assembly file on a serperate line to be less confusing.
7627 * src/port.h: added genInitStartup hook
7634 * src/z80/main.c: genInitStartup initialize as NULL (default to
7635 historical behaviour)
7636 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
7637 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
7638 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
7639 library instead of hard coding it into the compiler.
7640 * support/regression/ports/mcs51-stack-auto/spec.mk,
7641 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
7642 * device/lib/mcs51/Makefile,
7643 * device/lib/small/Makefile,
7644 * device/lib/large/Makefile,
7645 * device/lib/mcs51/crtpagesfr.asm,
7646 * device/lib/mcs51/crtstart.asm,
7647 * device/lib/mcs51/crtxclear.asm,
7648 * device/lib/mcs51/crtxinit.asm,
7649 * device/lib/mcs51/crtclear.asm,
7650 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
7651 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
7652 and into user configurable files.
7653 * device/lib/clean.mk: clean mcs51 directory too
7654 * support/regression/tests/longlit.c: added static to T1 declaration
7655 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
7656 accesses in the initialization code
7658 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7660 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
7661 OSCTRIMVAL as noted in bug #916008
7663 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7665 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
7666 in loops with multiple exits (reported as incorrect registers
7667 used by Martin Helmling in Sdcc-user list)
7669 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7671 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
7672 made ds390 register extensions look less like error messages
7674 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7676 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
7677 reported by Adam Wozniak in Sdcc-user list
7679 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
7681 * src/SDCCast.c (decorateType): fixed with bug and promotion in
7682 arithmetic optimizations, added debug output
7684 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
7686 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
7687 * sdcc.spec: updated and split sdcc into 3 rpms
7688 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
7689 needed for literals of LEFT_OP and '+'
7690 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
7691 introduced RESULT_TYPE_NOPROM
7692 (geniCodeMultiply): fixed logic for decision if mul is optimized to
7694 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
7695 limited promotion to int only for '*'
7696 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
7698 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
7700 * src/pic16/gen.c (genSkip),
7701 (genc16bit2lit), (gencjneshort): commented out
7702 (is_LitOp): new helper function, checks operand type
7703 (genCmpEq): rewritten
7705 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
7707 * support/regression/tests/bug-908454.c: added
7709 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
7711 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
7712 * src/SDCCicode.c (usualBinaryConversions): op needs int type
7713 (geniCodeCast): cosmetic, don't preserve bit storage class
7714 (geniCodeLeftShift): added promotion
7715 (geniCodeLogic): fixed regression
7716 * src/SDCCsymt.c (computeTypeOr): accept bits too
7717 (compareType): 2nd part of fix for bug #908454, needed for bitfields
7719 2004-03-07 Borut Razem <borut.razem AT siol.net>
7721 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
7723 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
7725 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
7726 version of pic16_genPackRegisters which does not check if ic is a
7728 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
7729 function cause string1.c regression test fails
7731 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
7733 * sim/ucsim/configure.in,
7734 * sim/ucsim/configure,
7735 * sim/ucsim/doc/Makefile.in: use docdir
7736 * src/SDCC.y: fixed sbit atrributes
7737 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
7738 * src/SDCCast.c (decorateType): |^& need special promotion handling
7740 * src/SDCCsymt.h: moved definition of RESULT_TYPE
7741 * src/SDCCsymt.h (computeType),
7742 * src/SDCCicode.c: computeType() needs op
7743 * src/SDCCsymt.c (checkTypeSanity),
7744 * doc/sddman.lyx: "plain" bitfields are unsigned
7745 * src/SDCCsymt.c (computeTypeOr): added
7746 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
7748 * src/SDCCval.c (val*): computeType() needs op
7749 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
7750 * support/regression/tests/onebyte.c: added tests for |^&
7752 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
7754 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
7755 for writing icode into asm output.
7757 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
7759 * src/pic16/device.c: added some debug lines enabled
7760 with macro DEBUG_CHECK,
7761 * src/pic16/genarith.c: more debug in genPlus,
7762 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
7763 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
7764 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
7765 * (aopForSym): onStack symbols are re-placed in data memspace,
7766 and onStack flag is cleared,
7767 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
7768 copy temporary pcodeop,
7769 * (genPcall): added warning for not updating PCLATU,
7770 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
7771 always true for pic16 port,
7772 * (genMultOneWord): NEW, supports integer multiplication,
7773 * (genMult): modified to call genMultOneWord,
7774 * (ifxForOp): added warning when return NULL,
7775 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
7776 flag is set before call to operandFromSymbol for implicit
7778 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
7779 options.intlong_rent are set by default,
7780 * (_hasNativeMulFor): modified to allow port generation of integer
7782 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
7783 set regtype to REG_SFR for all registers, restricting seting the
7784 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
7786 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7788 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
7789 more than 500 times in the regression tests
7791 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7793 * support/Util/SDCCerr.h,
7794 * support/Util/SDCCerr.c,
7795 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7797 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
7798 for symbol conflicts.
7799 * support/valdiags/tests/enum.c,
7800 * support/valdiags/tests/tentdecl.c,
7801 * support/valdiags/tests/struct.c: expect possible error messages
7802 referring to original symbol definitions.
7803 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
7805 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
7807 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
7809 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
7811 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
7813 * src/pic16/ralloc.c (newReg): fixed bug #908929
7815 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7817 * src/ds390/gen.c: added missing #include "main.h"
7819 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
7821 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
7822 checking if symbol is already in set,
7823 * src/pic16/device.h: prototype for checkAddSym,
7824 * src/pic16/gen.c: (_G): added entry interruptvector,
7825 * (assignResultValue): removed some commented out lines,
7826 * (genFunction): check for ISR via sym->type, absolute section for
7827 interrupt code is created via a new pBlock, the goto instruction is
7828 placed now correctly at the interrupt vector position, changed all
7829 references from ivec to _G.interruptvector,
7830 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
7831 is the interrupt is a high priority one, same for return from ISR,
7832 * src/pic16/glue.c: changed all calls of addSetHead for publics and
7833 externs to calls of checkAddSym,
7834 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
7835 pic16_pcode_verbose flag is set,
7836 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
7837 * src/pic16/pcoderegs.c: message about how many registers are saved
7838 will only be emitted if pic16_pcode_verbose flag is set,
7840 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7842 * src/ds390/ralloc.h,
7843 * src/ds390/ralloc.c (ds390_regWithIdx),
7844 * src/ds390/gen.c (emitcode),
7846 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
7847 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7848 ds390operandCompare, getRegsRead, getRegsWritten,
7849 initializeAsmLineNode): customized instruction size calculation for
7850 ds390, started basis for some register optimizations
7851 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
7852 corresponding assembly output
7853 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
7854 missing push/pop of r0/r1. Optimized push/pops
7856 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7858 * src/mcs51/main.c (instructionSize): fixed ACALL size
7859 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
7861 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
7863 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
7864 the sorting of rlist with NULL elements
7865 * (print_idataType, print_idata): NEW to create idata sections
7866 * src/pic16/device.h: idataSymSet new variable
7867 * src/pic16/gen.c (genFunction): fixed some bugs in string
7868 comparing, improved the absolute section creation for ISRs,
7869 added FSR0L/FSR0H in registers that are saved in an ISR,
7870 * (genInline): fixed the processing of inline snippets,
7871 now they undergo no process by the peephole optimizer
7872 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
7873 are placed in idataSymSet,
7874 * (pic16emitStaticSeg): extern symbols are added in externs,
7875 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
7876 switching when aboslute variables are placed in access bank memory
7877 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
7878 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
7879 commented out with #if,
7880 * (pic16_packRegisters): reintroduce the check for CAST because some
7881 symbols are not correctly handled,
7882 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
7883 pCodeInstruction instead of pCode,
7884 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
7885 pCodeAsmDir definition,
7886 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
7887 directive, then the argument directive is emitted without the leading
7888 tab, hack for inline labels which must be in the first column,
7889 * (compareLabel,pic16_findNextInstruction),
7890 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
7891 * (insertBankSwitch): modified for the new pCodeAsmDir,
7893 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7894 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
7896 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
7898 * (pushSide): commented out with #if,
7899 * (assignResultValue): fixed some typos in saving
7901 * (genPcall): FIXED and sync'ed with genCall,
7902 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
7903 * (genNearPointerGet): fixed to handle some more cases,
7904 implementation scheme via table reads,
7905 * (genConstPointerGet): modified to access code memory correct,
7906 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
7907 and improved to handle some cases
7908 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
7909 instead of "RETLW" for init data
7910 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
7911 not IN_DIRSPACE, work around to reduce bank switching when aboslute
7912 variables are placed in access bank memory (<0x80 and >=0xf80),
7913 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
7914 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
7915 TBLWT_POSTDEC,TBLWT_PREINC
7916 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
7917 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
7919 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
7920 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
7921 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
7922 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
7924 2004-02-29 Borut Razem <borut.razem AT siol.net>
7926 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
7927 support/Util/findme.h, support/Util/system.h: enhance binary relative
7928 search for lib and include by using findProgramPath()
7930 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7933 * src/SDCCpeeph.c (pcDistance),
7935 * src/mcs51/ralloc.h,
7936 * src/mcs51/ralloc.c (mcs51_regWithIdx),
7938 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
7939 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
7940 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
7941 size calculation port specific, started basis for some register
7943 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
7944 missing push/pop of r0/r1. Optimized push/pops
7945 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
7946 * device/lib/_modsint.c (_modsint),
7947 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
7948 and stack version so regression tests pass
7950 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
7952 * src/Makefile.in (dep): include SLIBOBJS in dependency check
7953 * src/SDCCast.c (decorateType): catch another small optimization
7955 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
7956 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
7957 modified to finally use computeType() all over SDCC,
7958 see Feature Request #877103
7959 * src/SDCCval.h: cosmetic
7960 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
7961 valCompare(); regression tested in muldiv.c
7962 * support/regression/tests/muldiv.c (testMod): mod sign follows
7965 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
7967 * src/SDCCast.c (decorateType): fixed bug #902362
7968 * doc/INSTALL.txt: fixed install instructions for win32
7970 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
7972 * device/include/Makefile.in (install): fixed by replacing spaces
7975 * doc/INSTALL.txt: updated for release
7976 * doc/sdccman.lyx: added warning for --xstack being buggy
7978 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
7980 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
7981 to eliminate build warnings.
7982 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
7984 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
7985 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
7987 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
7988 removed -penable-stack, added comment for stack pragma, added
7989 warning for not initializing the stack/frame registers, removed
7990 comment at interrupts section
7992 Stack is made permanent, there is no ability to disable stack usage.
7993 * src/pic16/device.h,
7994 * src/pic16/device.c: removed all references to USE_STACK macro,
7995 * src/pic16/device.c (pic16_dump_section): when no elements in
7996 rlist, free rlist before return,
7997 * (pic16_dump_int_registers): NEW, internal registers are a new set
7998 of general purpose registers reused by each function,
7999 * (checkAddReg): returns 1 if registers is added to set,
8000 * (pic16_groupRegistersInSection): when a registers is of type
8001 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
8002 * src/pic16/device.h: memRange and Assigned Memory are deleted,
8003 SRCASECMP macro is moved here from device.c
8004 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
8005 PO_PCLATU, PO_PRODL, PO_PRODH,
8006 * (pic16_pCodeOpType, genMinus,
8007 changed compares to "a" register, with AOP_ACC,
8008 * (pic16_genPlus): fixed some bugs and indented properly,
8009 * (pic16_addSign): changed size to size+offset in the MOVWF
8011 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
8012 multiply 8-bit operand by literal, result is 8-bit,
8013 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
8014 multiply 2 8-bit operand, result is 8-bit,
8015 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
8017 * src/pic16/gen.c: changed accUse to contain WREG only,
8018 * (pic16_emitcomment): renamed to pic16_emitpcomment,
8019 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
8020 true, do not use immediate addressing any more unless sym is a
8021 pointer in codespace,
8022 * (aopForRemat): do not use immediate addressing when symbol not in
8023 codespace and when symbol's address is requested,
8024 * (aopOp): for-loop in if(sym->accUse) is modified for the new
8026 * (aopGet): added case for AOP_ACC and don't return "accumulator
8027 bug" but WREG instead,
8028 * (popGetTempReg): pushes contents of temporary register in stack,
8029 * (popReleaseTempReg): pops contents of temporary register from
8030 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
8031 * (pic16_popGet): separated case AOP_ACC to return register WREG
8032 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
8033 or PO_IMMEDIATE and initializes their instance/offset appropriately,
8034 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
8035 the use of immediate pointers to certain cases only.
8037 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
8038 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
8039 * (assignResultValue, genCall, genRet): modified to use the new
8040 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
8041 genPcall is still broken,
8042 * (genFunction): added code to create 'A' type pBlocks when
8043 interrupt functions are generated, code not extensively tested yet,
8044 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
8045 * (genEndFunction): modified so ISRs pop stored registers from stack,
8046 * (genMultOneByte): cleanup,
8047 * (AccRsh): added flag andmask, to and result with appropriate mask,
8048 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
8049 * (genDataPointerGet): fixed and reenabled its use,
8050 * (genNearDataPointerGet): bugs fixed,
8051 * (genDataPointerSet): bugs fixed,
8052 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
8053 pic16_DumpSymbol, pic16_DumpOp,
8054 * src/pic16/genutils.h: function prototypes for the above functions,
8055 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
8057 * (pic16emitRegularMap): many many many improvements, but needs a
8059 * src/pic16/main.c: enable_stack in pic16_options is removed,
8060 * (_pic16_parseOptions): removed command line options -penable-stack,
8061 * (_process_pragma): emit stack symbol only when stack pragma is
8063 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
8064 redirected to FSR0L/FSR0H pair,
8065 * (pic16_get_op, pic16_get_op2): modifications and improvements,
8066 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8067 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
8069 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
8070 * (dumpPicOptype): NEW,
8071 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
8072 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
8073 with movff instruction,
8074 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
8075 added pic16_int_regs, some packRegsFor* functions are commented out,
8076 because produce errors,
8077 * src/pic16/NOTES: minor modifications
8079 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8081 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
8082 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
8084 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
8085 * as/mcs51/lkaomf51.c: fixed bug #895763
8087 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
8089 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
8091 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8093 * doc/sdccman.lyx: added details about the HC08 storage classes and
8094 interrupts, fixed the register usage info for z80 & gbz80
8096 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
8098 * doc/sdccman.lyx: added more pic16 port documentation
8099 * device/include/pic16/: added header pic18fregs.h
8101 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
8103 * doc/sdccman.lyx: added Vangelis' contribution
8105 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8107 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
8108 extend to the next CALL or PCALL, not just to the next CALL.
8110 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
8112 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
8114 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8116 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
8117 bug #895752 and a better fix for bug #716790
8119 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8121 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
8123 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8125 * doc/sdccman.lyx: minor changes, minor changed
8127 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
8129 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
8130 which can't handle SDCC_NEWONEBYTEOPS,
8131 (geniCodeMultiply): removed conversion from mult to shift for pic14
8134 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8137 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
8138 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
8139 thus fixing bug #895406
8141 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
8143 * device/lib/_modsint.c,
8144 * device/lib/_modslong.c: sign follows divisor only
8145 * src/hc08/gen.c (genMultOneByte): if result size is 1,
8146 signs or signedness can be ignored
8147 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
8148 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
8149 added optimization for IFX,
8150 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
8152 reenabled optimization for IFX, which was removed on 2004-01-11
8153 * src/SDCCast.h: added return type IFX
8154 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
8155 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
8156 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
8157 SDCC_OLDONEBYTEOPS selects the old behaviour
8158 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
8159 changed again and commented promotion rule
8160 * src/SDCCval.c (valDiv): promotion no longer necessary
8161 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
8162 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
8164 * support/regression/tests/onebyte.c: added
8166 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
8168 * gen.c (genInline): reverted to old code for assemnling inline
8169 code because of bug reported James Chadd
8171 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
8173 * ralloc.h: missing declarations from previous patch,
8174 seems that patch for ralloc.h was never applied, fixed
8176 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8177 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
8181 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
8182 indirect addressing. Marked FSR0 as deprecated
8183 * gen.c (pointerCode): commented out, not needed now
8184 (pic16_popGet2p): new MOVFF helper function
8186 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
8187 (shiftRLong): removed duplicate debugging info
8189 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8191 * src/ds390/gen.c (genNearPointerGet),
8192 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
8193 optimization with bits, but not bitfields.
8194 * src/ds390/ralloc.c (packRegisters),
8195 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
8197 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
8199 * src/SDCCcse.c (algebraicOpts): copy operands before modification
8201 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8204 * src/SDCCicode.c (operandFromSymbol),
8205 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
8206 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
8207 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
8208 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
8209 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
8210 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
8212 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
8213 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
8214 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
8215 * src/SDCCsymt.c (newSymbol),
8216 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
8219 * src/SDCCval.c (newiList): fixed bug #885705
8221 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8223 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
8224 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
8226 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8228 * device/include/c8051f120.h,
8229 * device/include/c8051f300.h,
8230 * device/include/c8051f310.h: added/updated header files for Silicon
8231 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
8232 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
8233 in new section Submitting patches
8235 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8237 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
8238 genFarPointerGet, genCodePointerGet, genGenPointerGet,
8239 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8241 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
8242 genFarPointerGet, genCodePointerGet, genGenPointerGet,
8243 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8245 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
8246 genFarPointerGet, genCodePointerGet, genGenPointerGet,
8247 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8249 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
8250 genFarPointerGet, genCodePointerGet, genGenPointerGet,
8251 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8252 genGenPointerSet): fixed bug #892400
8253 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
8254 to eliminate build warnings.
8255 * src/SDCCast.c (processParms),
8256 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
8258 * support/valdiag/valdiag.py: added GCC to the list of defines active
8259 when compiling with gcc
8261 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8263 * support/Util/SDCCerr.h,
8264 * support/Util/SDCCerr.c,
8265 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
8266 with an incomplete type (fixed bug #883734)
8267 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
8269 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8271 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
8273 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8275 * src/SDCCast.c (decorateType),
8276 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
8277 function pointer implementation
8278 * support/regression/tests/funptrs.c: added tests to verify both forms
8279 of function pointers work correctly. Added tests to verify parameters
8280 are passed in the correct order.
8282 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
8284 * device.c (regCompare): registers are sorted by ascending
8285 address and increasing size,
8286 * main.c (_pic16_finaliseOptions): removed the declaration
8287 of compiler macro MCU. Now a macro of the format pic18fxxxx
8288 will be defined from the command line
8290 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8291 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
8293 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
8294 PCOP_RLCF was overwritten!
8295 * gen.c (genSkip): commented out calls to pic16_emitcode,
8296 * (genCmpEQ): fixed "long" compares, only high word did get compared,
8298 * (genRRC): added debugging info,
8299 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
8300 overwritten while shifting,
8301 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
8302 overwritten while shifting,
8305 * (shiftLLeftOrResult),
8306 * (shiftRLeftOrResult),
8308 * (shiftLLong): Implemented with pic16_emitpcode
8309 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
8310 * (genLeftShift): Fixed bug, operand for shift by variable always
8311 was "and"ed with 0x0f,
8312 * (genLeftShiftLiteral),
8314 * (genRightShiftLiteral): added debugging info,
8315 * (genrshFour): added comment,
8316 * (genRightShift): determined signedness from operand "left"
8319 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8321 * src/SDCCicode.c (geniCodeParms),
8322 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
8323 function pointers, fixed function pointer bugs #861242 and #861896
8325 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8327 * device/include/c8051f000.h,
8328 * device/include/c8051f120.h,
8329 * device/include/c8051f300.h: added header files for Silicon
8330 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
8332 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
8334 * src/SDCCast.c (processParams): added new type flow and restructured
8335 (gatherAutoInit): added new type flow
8336 (addCast): cosmetic changes
8337 (getLeftResultType): added new type flow for array indices, patch
8338 provided by Stas, see FR #877103
8339 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
8340 array index patch by Stas
8341 * src/SDCCast.h: added prototype getResultTypeFromType()
8343 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
8344 * src/pic/glue.c (pic14emitStaticSeg),
8345 * src/pic16/glue.c (pic16emitStaticSeg),
8346 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
8347 for initialization of symbols
8348 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
8349 * support/Util/SDCCerr.h:
8350 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
8351 * .version: bumped version number to 2.3.8
8352 * device/include/Makefile.in (install),
8353 * doc/Makefile (install): changed to 'rm `find ...`' construct to
8356 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
8358 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
8359 Slade Rich fixed an optimization bug
8360 * src/pic/pcodepeep.c,
8361 * src/pic/pcoderegs.c
8362 * doc/Makefile (install): added test for directory
8364 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8366 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
8367 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
8368 * src/pic/ralloc.c (getRegPtr, getRegGpr),
8369 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
8370 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
8371 * as/mcs51/asexpr.c (term),
8372 * as/hc08/asexpr.c (term): fixed bug #887146
8374 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8376 * src/z80/gen.c (genMult): handle single byte result product
8377 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
8378 DUMMY_READ_VOLATILE (fixed bug #886367)
8380 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
8382 * support/regression/tests/libmullong.c: fixed logic, on little endian
8383 hosts we ended without a mullong_wrapper()
8385 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8387 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
8388 virus/worm forged address usage.
8390 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
8392 Fixed promotion, it should be done on AST level:
8393 * src/SDCCast.c (addCast): added promotion to int
8394 (decorateType): updated call to upCast()
8395 * src/SDCCicode.c (geniCodeLeftShift): removed call to
8396 usualUnaryConversions()
8398 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
8400 * support/regression/tests/literalop.c (mulWrapper): Added a
8401 wrapper to remove integer overflow warnings.
8403 * support/regression/tests/float_trans.c: Made work on host.
8405 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
8408 * support/regression/generate-cases.py (main): Changed from inline
8411 * doc/Makefile (install): Changed to depth first to get rid of
8412 missing directory install warning.
8414 * as/Makefile (install-doc): Made work on Mac.
8416 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
8418 * src/SDCCast.c: added an additional type flow in decorateType() of
8419 opposite direction, see feature request #860006; it's enabled at runtime
8420 by setting the environment variable SDCC_NEWTYPEFLOW
8421 * src/SDCCast.h: changed prototype of decorateType()
8422 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
8423 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
8424 'char' to 'int' can be omitted, if both operands are 'unsigned char';
8425 see feature request #877103
8426 * src/SDCCval.c: updated call of decorateType()
8427 (valBitwise): fixed bug #882876
8428 (valMinus): added promotion
8429 (valLogicAndOr): result is unsigned
8430 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
8431 * src/SDCCsymt.c (computeType),
8432 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
8433 must not cause an unsigned operation
8434 * src/pic/glue (pic14emitRegularMap),
8435 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
8437 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
8439 * src/pic/pcode.c (PCodeID): commented out left over debug code
8441 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
8443 * support/valdiag/tests/overflow.c: added shift tests
8451 * src/pic/pcodepeep.c,
8452 * src/pic/pcoderegs.c,
8454 * src/pic/ralloc.h: applied patch from Slade Rich;
8455 added support for multiple code pages and multiple RAM banks on the
8456 PIC 14 port. The ASM files now no longer simply assume all the
8457 code / RAM are in the same page / bank. This means the linker can
8458 safely allocate code/RAM of separate ASM files to different pages/banks.
8459 * doc/sdccman.lyx: added Slade's tips
8460 * src/mcs51/peeph.def: fixed bug #880768
8462 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8464 * src/hc08/ralloc.c (rematStr): fixed bug #879282
8465 * src/SDCCast.c (decorateType): fixed bug #880197
8467 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
8469 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
8472 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
8473 strtof is not part of C89 and isn't included with Mac OS X.
8475 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8477 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
8478 shiftL2Left2Result): fixed bug #879326
8479 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
8480 (genMultOneByte): fixed bug in signed vs unsigned multiplication
8481 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
8482 address fetch for clr instruction
8483 * device/lib/hc08/_mulint.c: created optimized assembly version
8484 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
8486 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
8488 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
8489 proposed in FR #877103
8491 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
8493 * src/SDCCval.c (cheapestVal): added missing checks
8494 * src/SDCCicode.c (usualBinaryConversions): fixed condition
8495 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
8497 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
8499 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
8502 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
8504 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
8505 loaded with the linker search paths (-L arguments) and the libraries
8506 to be linked with the current source (-l arguments). Changes
8507 currently will affect only the pic16 port.
8508 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
8509 include path the port specific paths and port specific libraries,
8510 * gplink command now contains the $3 argument,
8511 * src/pic16/device.h,
8512 * src/pic16/device.c,: structure PIC_device is made public and
8513 renamed to PIC16_device, the same for variable Pics which is renamed
8514 to Pics16. Updated all references to them.
8515 * src/pic16/glue.c (pic16glue): corrected bug with code
8516 initialization which bypassed the variable initializations block.
8518 * device/lib/pic16/Makefile.rules: removed --penable-stack from
8519 COMPILE_FLAGS and added the --nostdinc option
8521 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8523 * device/include/mc68hc908jb8.h: Register defs for another member
8524 of the hc08 family. Contributed by Bjorn Bringert - thanks!
8526 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
8528 Documenting changes from previous commits.
8529 * configure.in (version 1.56),
8530 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
8531 when generating output files to configure the pic16 library,
8532 but now I've commented it out, since gputils aren't installed in the
8533 SF compile farm, so library won't compile
8535 * device/lib/Makefile.in (version 1.56): initially I've added in
8536 target 'all' the prerequestive 'model-pic16' so it compiled the
8537 pic16 library, but now I've commented it out for the same reasons
8539 * added targets 'model-pic16' and 'objects-pic16' to compile the
8541 * added target 'port-specific-objects-pic16' to handle the
8542 generated libraries and copy them into the build/ directory
8543 * added target 'clean-intermediate-pic16' to clean intermediate
8544 files into pic16 directory
8545 * in target 'installdirs' added line to create directory pic16 in
8546 the installation path
8548 * device/include/Makefile.in (version 1.11): in target 'install'
8549 added lines to copy all header files to installation path,
8550 * in target 'installdirs' added line create directory for pic16
8551 headers in the installation path
8553 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
8555 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
8558 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
8561 * device/lib/configure.in,
8562 * device/lib/configure: fixed for autoconf 2.57
8564 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8566 * src/z80/main.c (_parseOptions): fixed the portmode= command line
8567 option so that it actually works. Made it specific to the z80, since
8568 the gbz80 doesn't have these kinds of I/O ports.
8570 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8572 * device/include/z180.h,
8573 * device/lib/_memcpy.c,
8574 * device/lib/_memmove.c,
8575 * device/lib/_mulint.c,
8576 * device/lib/ser_ir.c,
8577 * device/lib/ser_ir_cts_rts.c,
8578 * device/lib/_strcmp.c,
8579 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
8580 * src/z80/main.c (_process_pragma): add support for pragmas bank and
8581 portmode; added deprecation warning for bank= and protmode= forms.
8582 Also, guard against buffer overflow.
8583 * src/z80/gen.c (aopGet): generate better code for sfr banked read
8585 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8587 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
8588 changed interrupt vector table generation to only emit declared vectors.
8589 * device/include/Makefile.in: added missing backslash
8590 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
8592 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
8594 Mainly changes to support compilation of the device libraries
8595 * src/pic16/device.c: stack is allocated via symbol and not
8596 via literal number. The symbol is placed in the corresponding
8597 position of the data ram
8598 * (pic16_dump_section): relocatable and absolute uninitialized
8599 data are now emitted in sorted order to reduce section naming,
8600 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
8601 weren't marked as being in the access bank,
8603 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
8605 Added portion of GNU PIC Library under the directory
8606 device/include/pic16 and device/lib/pic16. These files
8607 contain the declarations of SFRs for the PIC18Fxx2 devices.
8608 The directory is initialized via configure from toplevel.
8610 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
8612 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
8613 the spilllocations to be compared correctly
8615 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8617 * src/SDCCast.c (decorateType): fixed bug introduced today
8619 2004-01-12 Borut Razem <borut.razem AT siol.net>
8621 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
8622 doc/sdccman.lyx: upper case pragmas are deprecated
8624 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8626 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
8627 in simpler and even better code
8629 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
8631 * src/SDCCicode.c (operandOperation): fixed bug #874819
8632 * src/SDCCast.c (decorateType): fixed
8633 char foo (unsigned long ul) { return ul > 0; }
8635 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8637 * doc/sdccman.lyx: Moved and added some sections, small changes
8638 all over. Telling LaTeX to be less strict with word spacing
8639 to better keep the right margin. Changed some notes about
8640 maintainance of the ports in section 3.2.1 - is it OK like this?
8642 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8644 SDCC source changes:
8645 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
8646 convilong): modified to inform the pic16 port that builtin functions
8649 PIC16 PORT specific changes:
8650 * src/pic16/device.c pic16_dump_equates() added,
8651 processor registers declared internally by the port are emitted in
8652 the translation as equates,
8653 * src/pic16/gen.c: inline code is passed unprocessed to the
8655 * (pic16_popGetLit2): fnuction modified to take second operand as
8656 pCodeOp pointer and not as literal,
8657 * (popRegFromIdx): prefixed with pic16_,
8658 * (pic16_popCombine2): modified to receive already allocated pCode
8660 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
8661 * (genFunction): initializes local stack frame and pushes on stack
8662 all the registers used by this function,
8663 * (genEndFunction): restores all registers from stack and restores
8665 * src/pic16/glue.c (pic16emitRegularMap): various changes and
8667 * (pic16glue): changed the program startup sequence,
8668 * added new dbName code 'A' for functions placed in absolute section
8669 * src/pic16/main.c: added function attribute _naked,
8670 * added pragma 'code' to place a fnuction at an absolute address,
8671 * added command line arguments --debug-ralloc and --pcode-verbose,
8672 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
8673 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
8674 * (pic16_newpCodeOpLit2): modified to take the second operand as
8676 * (pic16_printpBlock): modified to emit each function in a separate
8678 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
8679 UPPER for immediate operands,
8680 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
8682 * src/pic16/peeph.def: all peepholes with movff are commented out,
8683 because there is a problem in the pcode peep optimizer,
8684 * src/pic16/ralloc.c: the register allocator can now reuse local
8685 function symbols for another function. This saves register usage.
8686 * src/pic16/ralloc.h: added flag isLocal in structure regs,
8688 Added file src/pic16/NOTES with information about program writing on
8689 the current port version.
8691 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8693 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
8694 and peephole 252 (array access)
8696 2004-01-09 Borut Razem <borut.razem AT siol.net>
8698 * src/SDCCmain.c : fixed #872250: -l command line defined library
8699 files are scanned before standard library files
8701 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8703 * src/SDCCast.c (decorateType): fixed bug #874046
8705 2004-01-09 Borut Razem <borut.razem AT siol.net>
8707 * support/scripts/sdcc.nsi: remove previous installation
8709 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8711 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
8712 bytes for last interrupt vector (mcs51)
8713 * sdcc.spec: fixed typo
8715 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8717 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
8718 gen51Code): more efficient parameter receive for --model-large
8721 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8724 * src/z80/main.c: added missed needLinkerScript flags (more than
8725 one port structure defined in these file)
8726 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
8729 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
8731 * src/SDCCmain.c: removed various references to DEFAULT_PORT
8732 * src/port.h: added flag needLinkerScript in port->linker
8733 structure to inform whether to create a .lnk file or not,
8741 * src/z80/main.c: changed appropriately to configure
8742 needLinkerScript flag
8744 * src/pic16/gen.c (genAddrOf): fixed bug #863624
8745 * src/pic/glue.c: added variable udata_section_name to
8746 override default uninitialized data segment definition for
8747 devices only with SHAREBANK memory (reported from Erik Epetrich)
8748 * (pic14emitOverlay): modified to emit a commented overlay segment
8749 directive when no overlay data exist
8750 * (picglue): modified to emit uninitialized data segment
8751 according to udata_section_name
8752 * src/pic/main.c (_pic14_parseOptions): added command line
8753 options --udata-section-name=[name] to override default
8754 udata definition name
8755 * modified _linkCmd and _asmCmd to include compiler passed
8756 arguments via -W option
8757 * src/pic16/main.c: added $l in _asmCmd, changed extension for
8758 object file from '.rel' to '.o' in port->linker structure,
8759 changed size of fptr from 2 to 3 in port structure
8761 2004-01-07 Borut Razem <borut.razem AT siol.net>
8763 * support/scripts/sdcc.nsi: update PATH
8764 * support/scripts/sdcc.ico: craeted
8766 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
8768 * device/include/Makefile.in: fix install
8769 * doc/Makefile: fix install
8771 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8773 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
8775 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
8776 how the function variable allocation summary is displayed; also
8777 include information about variables allocated to the overlay
8780 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8782 * as/mcs51/lkmain.c: Help about -Y option
8783 * as/mcs51/lkarea.c: Fixed gcc warnings
8785 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
8787 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
8789 * support/valdiag/tests/overflow.c: added
8790 * src/SDCCast.c (decorateType),
8791 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
8792 LEFT_OP (left shift)
8794 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8796 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
8797 (default behaviour).
8799 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8801 A python script to validate compiler diagnostic messages. It can be
8802 used to verify that sdcc complains about bad c source code and
8803 gives a good location of the error.
8804 * support/valdiag/Makefile,
8805 * support/valdiag/valdiag.py,
8806 * support/valdiag/tests/*
8808 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8810 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
8811 * src/SDCCsymt.c (newEnumType),
8813 * support/Util/SDCCerr.c,
8814 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
8816 * support/regression/tests/enum.c: added test for enum values that
8817 require at least 2 bytes of storage.
8819 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
8821 * src/common.h: added ifndef/define/endif macros
8822 around the header file.
8823 Bug reported from Jesus Calvino-Fraga
8825 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
8827 * sdcc.spec: updated
8828 * device/include/Makefile.in: don't install CVS directories
8829 * device/lib/Makefile.in: added removal of CVS directories after install
8830 * doc/Makefile: fixed install, added local_icons
8831 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
8832 * src/mcs51/gen.c (genRightShift): fixed bug #870788
8833 * src/ds390/gen.c (genRightShift): fixed bug #870788
8834 * src/SDCCast.c (decorateType): fixed bug #870781
8836 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
8838 PIC16 port related changes:
8839 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
8840 added variable stackPos,
8842 * gen.c: genCall, assignResultValue: added support for
8843 pushing/retrieving function parameters to/from stack,
8844 genFunction,genEndFunction: setup stack frame for the
8846 genAddrOf: will be changed according to bug 863624
8848 * added files genutils.c and genutils.h which contain gen*
8849 debugged and optimised functions extracted from gen.c
8851 * glue.c: added variable 'externs' which holds extern symbols,
8852 pic16emitRegularMap: is modified to properly handle relocatable
8853 symbols under the new scheme,
8854 pic16createInterruptVect: is modified
8855 pic16printPublics: is modified to emit 'global' assembler directives,
8856 added pic16_printExterns to print extern symbols,
8857 pic16glue: initializes stack/frame pointer in the beginning of
8858 the assembly output. Temporary hack, will be corrected later,
8859 because gplink yet does not support stack and SDCC does not
8860 yet support a type of crt0.o object to create the final binary.
8862 * Removed many lines that contain 8051 legacy code.
8863 * The code is finally placed under a 'code' directive.
8864 * Added port specific options.
8866 * _process_pragma: simplified since now we do not need *special*
8867 include file to define SFR registers. But a separate header
8868 will be needed. This will be developed later.
8869 * _pic16_parseOptions: added, parses port specific options:
8870 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
8871 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
8872 --preplace-udata-with=
8874 * _pic16_setDefaultOptions: modified to initialize section names,
8875 but hack is temporarly out of order since it needs improvement.
8876 * _pic16_genAssemblerPreamble: configuration words are emitted by
8877 their address instead of their name. This part is incomplete and
8878 supports only the 18Fxx2 devices. Other devices will emit an error
8879 during assembly since they do not contain the same set of config
8881 * _pic16_genIVT: is modified,
8883 * pcode.c: added definitions for some hardware registers that are needed
8885 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
8886 All PCI entries are updated. Now LFSR is supported.
8887 * Removed pic16_pciTRIS is mentioned by mdubuc in source
8888 * added pic16_newpCodeOpLit2 to support instructions with
8889 two literal arguments
8890 * pic16_pCode2str: corrected code that emits assembler instructions
8891 with two literal operands and those that have an access bit modifier
8892 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
8893 this fixes a bug which caused some labels to be lost, when an
8894 assembler directive was added, i.e. banksel,
8895 * pic16_FixRegisterBanking: improved logic that causes the insertion
8897 * InlineFunction: functions that are called once, are not any more
8898 inlined. This can be a port option in the future,
8900 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
8902 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
8903 hold the corresponding uninitialized symbols,
8904 * pic16_allocProcessorRegister: registers have explicit marked the
8906 * pic16_allocInternalRegister: registers are explicit marked as
8908 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
8909 processing list, so bit registers were lost,
8912 * ralloc.h: added field 'accessBank' and original symbol operand
8913 in register definition,
8914 * removed the field isMapped from register definition,
8916 ** Several functions have been removed from various sources:
8917 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
8918 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
8919 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
8920 pic16_assignRelocatableRegisters
8922 ** others have been introduced:
8923 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
8924 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
8926 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
8928 * support/scripts/inc2h.pl: changed definition of BIT_AT
8929 to emit 'sbit at' instead of 'bit at'. This was a request.
8931 PIC16 port related preliminary changes:
8932 * gen.c: prefixed function popRegFromString with
8933 pic16_ and all references to it corrected
8934 * pcode.c: all pic16_pc_* hardware registers prefixed
8935 with underscore (_),
8936 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
8937 * ralloc.c: newReg(): when register is REG_SFR then
8938 set address to rIdx,
8939 pic16_allocProcessorRegister(): marks register wasUsed=0
8940 pic16_writeUsedRegs(): added a call to assign processor
8941 registers via pic16_assignFixedRegisters
8943 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8945 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
8946 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
8947 variables in unused register banks. Also the SSEG is placed
8948 wherever there is enough space for it, and IDATA can be anywhere
8949 in internal RAM. For now compile using -Wl-Y[stack_size].
8950 The mem file is different for this option as well, since it
8951 makes no sense of talking about DSEG lenght.
8953 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
8955 * src/SDCClrange.c: fixed bug 869095 that caused segfault
8956 in certain cases, e.g. when ROM assignment, patch provided
8957 from Albert den Haan.
8959 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
8961 Many signedness and type propagation fixes:
8962 * src/SDCCicode.c: made geniCodeCast() static
8963 replaced SPEC_ by IS_ (cosmetic)
8964 (operandOperation): fixed div and mod operation
8965 (usualBinaryConversions): added support for promotion of char
8966 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
8967 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
8968 (geniCodeAdd): an array index will stay unsigned, even if promoted
8970 (geniCodeArray): ditto
8971 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
8972 * src/SDCCsymt.c (computeType): added more support for char;
8973 promotion of char is selectable by promoteCharToInt, fixed signedness
8975 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8976 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
8977 * src/SDCCval (val*): replaced signedness calculation by
8979 rearranged if-branches (cosmetic)
8980 (valShift): added warning W_SHIFT_CHANGED
8981 (valCompare): fixed problem with different types
8982 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
8983 * support/regression/tests/literalop.c: added many cases
8984 * support/regression/tests/ast_constant_folding.c: changed finally to
8986 * .version: new year, new version: 2.3.7
8987 * src/SDCCmain.c (main): applied patch #866468
8988 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
8989 provided by Scott Bronson
8990 * doc/sdccman.lyx: updated documentation for sdcdb
8991 updated and added chapter tips
8993 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8995 * src/SDCCsymt.h: missing from yesterday's commits
8997 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8999 * src/SDCC.y (struct_or_union_specifier),
9000 * support/Util/SDCCerr.c,
9001 * support/Util/SDCCerr.h: verify that struct & union tags are used
9004 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9006 * src/SDCCglobl.h: missing from yesterday's commits
9008 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9010 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
9011 sft_attributes, struct_declaration, parameter_declaration,
9012 type_name, start_block, declaration_list),
9013 * src/SDCC.lex (check_type): support redefinition of typedef names
9015 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9017 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
9018 aligned xdata arrays. Erik helped me with the if clause.
9020 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9022 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
9025 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9028 * src/SDCCast.c (newAst_),
9030 * src/SDCCicode.c (ast2iCode, newiCode),
9032 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
9033 expr, statement, expression_statement, selection_statement,
9034 iteration_statement, expr_opt, jump_statement): foundation for tracking
9036 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
9039 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9041 * support/Util/SDCCerr.c,
9043 * src/SDCCast.c (createCase, createDefault, decorateType),
9044 * src/SDCClabel.c (labelUnreach),
9045 * src/SDCC.y (labeled_statement, jump_statement): More improvements
9047 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
9048 (with thanks to Stas Sergeev)
9049 * device/include/time.h,
9050 * device/lib/time.c (CheckTime): suppress unreachable code warning
9052 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9054 * src/SDCCast.c (createIvalCharPtr),
9055 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
9057 * support/regression/tests/nullstring.c: tests for these two bugs
9059 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9061 * support/Util/SDCCerr.h,
9062 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
9063 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
9064 about storage class and 'at' used inside struct or union
9065 * src/SDCCBBlock.c (iCodeFromeBBlock),
9066 * src/SDCCcse.c (ifxOptimize),
9067 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
9068 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
9069 printIval, emitStaticSeg, emitOverlay),
9070 * src/SDCClabel.c (deleteIfx),
9071 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
9072 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
9073 gatherAutoInit, processParms),
9074 * support/Util/SDCCerr.h,
9075 * support/Util/SDCCerr.c (werrorfl): Support for better error location
9076 reporting for post-parse errors.
9078 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9080 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
9081 implicit casts via union; they don't work on big endian systems
9082 (possible fix for bug #861138)
9084 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9086 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
9087 * src/mcs51/main.c: fixed the fix for bug #737001
9089 2003-12-15 Borut Razem <borut.razem AT siol.net>
9091 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
9093 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9095 * support/makebin/makebin.c: put output in binary mode
9097 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9099 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
9100 xdata and data memory on startup. Set the environment variable
9101 SDCC_NOGENRAMCLEAR to disable this.
9102 * src/mcs51/peephole.def,
9103 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
9104 (allows non-interrupt and interrupt code to safely compete for a resource
9105 without the non-interrupt code having to disable interrupts)
9107 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9109 * src/SDCCicode.c (geniCodeAdd),
9110 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
9111 with valFromType if type might be a pointer and host is big endian).
9112 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
9113 types, not just integer types.
9114 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
9115 multiply defined with mismatching "at" address.
9117 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9119 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
9120 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
9121 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
9122 with embedded nulls (fixed bug #753752)
9124 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9126 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
9127 Apparently this did not see much testing (endless loop)
9129 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9131 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
9133 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9135 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
9136 gracefully handle NULL memmap pointers
9138 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9140 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
9141 instead of deleting the iCode when an operand is volatile
9142 * src/z80/gen.c (genDummyRead),
9143 * src/mcs51/gen.c (genDummyRead),
9144 * src/ds390/gen.c (genDummyRead),
9145 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
9147 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
9148 * src/SDCC.y: fixed bug #850420
9150 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9152 Applied z80 i/o port patch from Peter Townson and fixed some operators
9153 to better handle operands in A register.
9154 * device/include/z180.h
9160 * src/z80/peeph-z80.def
9164 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9166 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
9168 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9170 * device/lib/hc08/_mullong.c: Removed extra #endif
9172 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9174 * sim/ucsim/hc08.src/inst.cc,
9175 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
9177 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
9178 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
9179 * device/include/stdarg.h: fixed varargs for hc08
9180 * device/lib/Makefile.in,
9181 * device/lib/hc08/Makefile,
9182 * device/lib/hc08/_mulint.c,
9183 * device/lib/hc08/_mullong.c: fixed some endian problems
9185 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9187 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
9188 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
9189 * device/lib/_gptrget.c,
9190 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
9192 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9194 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
9195 * src/SDCCast.c (astErrors): fixed bug #846007
9196 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
9198 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9200 * src/SDCCast.c (decorateType): disabled a transformation I added in
9201 revision 1.188 (access to fields of a structure at an absolute address);
9202 it breaks with bitfields, extern declarations, and gcse analysis.
9203 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
9204 could be assigned through a pointer, so don't complain.
9205 * src/SDCCast.c (astErrors),
9207 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
9209 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
9211 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
9212 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
9213 output of __config directives, since gpasm now supports them
9214 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
9215 pre-processor macro, i.e. -DMCU=p18f452
9216 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
9217 and modified to handle 'cast' icode similarly to '=' icode
9218 * src/pic16/device.h (typedef struct PIC_device): added field
9219 'extMIface' to indicate that chip has external memory interface
9220 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
9221 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
9224 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9226 * src/SDCC.y (pointer): fixed bug #846006
9227 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
9228 * src/SDCCast.c (decorateType): fixed bug #846009
9229 * src/ds390/peeph.def,
9230 * src/ds390/gen.c (genAnd, genOr),
9231 * src/mcs51/peeph.def,
9232 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
9234 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9236 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
9243 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
9247 * src/SDCCbitv.c: added function to free a bitvector
9249 * src/SDCClrange.c: added function to recompute the liveranges
9251 * src/ds390/ralloc.c,
9252 * src/hc08/ralloc.c,
9253 * src/mcs51/ralloc.c,
9255 * src/pic16/ralloc.c,
9256 * src/xa51/ralloc.c,
9257 * src/z80/ralloc.c: recompute the liveranges after register packing
9259 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
9261 * src/SDCCloop.c (newInduction): fixed bug #845630
9263 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9265 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
9266 inadvertantly left behind from my 2003-11-12 change
9268 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9270 Updated headers I neglected to commit yesterday.
9274 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9276 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
9277 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
9278 * src/SDCCopt.c (eBBlockFromiCode),
9279 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
9280 the creation of the key hash table from the sequencing so it can be used
9281 earlier (for some GCSE bug fixes still pending)
9283 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9285 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
9286 * support/regression/tests/addsub.c: testing genPlus shortcut
9288 2003-11-15 Borut Razem <borut.razem AT siol.net>
9290 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
9292 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9294 * src/SDCCcse.c (cseBBlock): fixed bug #527779
9295 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
9296 ordering is immaterial.
9297 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
9299 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9301 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
9302 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
9303 (SIGSEV) of bug #840381
9304 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
9305 unlink new file before rename if new and old filenames are the same)
9307 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9309 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
9310 uninitialized variables) for the mcs51. Set environment variable
9311 SDCC_GENRAMCLEAR to test.
9312 xdata initialization slightly shorter
9314 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9317 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
9318 #838241 & 780691 (basicly the same bug)
9319 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
9320 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
9322 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
9324 * src/SDCCmain.c (linkEdit): "fix" #834252
9326 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9328 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
9330 * src/SDCC.y: fixed bug #819403
9332 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9334 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
9335 the reentrant attribute.
9336 * src/hc08/gen.c (genPackBits): added missing stack readjustment
9337 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
9339 * src/SDCCast.c (decorateType): fixed bug with storage class not being
9340 updated during pointer dereference; f.e. ~(((char *)1)*) was being
9341 erroneously reduced to a literal.
9342 * src/hc08/ralloc.c (packRegisters, rematStr),
9343 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
9346 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9348 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
9349 * doc/sdccman.lyx: changed from 'article' to 'book'
9350 * doc/Makefile: readded test_suite_spec and cdbfileformat
9352 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
9354 * device/include/stdlib.h: include malloc.h to comply with ANSI
9355 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
9357 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9359 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
9360 * doc/clean.mk: also remove *.out files
9361 * doc/sdccman.lyx: some additions, larger top/bottom margins
9363 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9365 * src/SDCC.y: fixed bug #837365
9366 * support/regression/tests/bitopcse.c
9367 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
9368 a symbol (might be valop instead)
9369 * device/lib/Makefile.in: added errno.c to HC08SOURCES
9370 * device/lib/clean.mk: added hc08 to the cleaning list
9372 2003-11-04 Borut Razem <borut.razem AT siol.net>
9374 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
9376 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
9377 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
9378 malloc is declared in standard stdlib.h
9380 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9382 * device/lib/hc08/Makefile: need to clean .rel not .o files
9383 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
9385 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9395 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
9396 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
9397 tests (which uses the port's oclsExpense function)
9403 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
9405 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9407 * src/SDCCcse.c (ifxOptimize),
9408 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
9409 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
9410 deleting the IFX iCode.
9411 * src/hc08/ralloc.c: reduced unneeded slocs
9412 * src/hc08/gen.c: fixed bug in asmopToBoolean
9414 2003-11-04 Borut Razem <borut.razem AT siol.net>
9416 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
9417 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
9418 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
9419 transferred to configure
9421 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
9423 Use headers defined in the C[++] standards:
9424 * sim/ucsim/gui.src/serio.src/fileio.cc
9425 * sim/ucsim/gui.src/serio.src/frontend.cc
9426 * sim/ucsim/gui.src/serio.src/main.cc
9427 * sim/ucsim/gui.src/serio.src/posix_signal.cc
9428 * support/Util/NewAlloc.c
9434 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9436 * Added MSVC projects for hc08 assembler and linker:
9437 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
9438 /as/hc08/link_hc08.dsp
9440 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
9442 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
9444 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
9446 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
9448 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9450 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
9452 2003-10-31 Borut Razem <borut.razem AT siol.net>
9454 * support/cpp2/cpplib.h,
9455 support/cpp2/cpplib.c,
9456 support/cpp2/cpplex.c,
9457 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
9458 to switch _asm block preprocessing on / off. Default is
9459 #pragma preproc_asm +
9461 2003-10-31 Borut Razem <borut.razem AT siol.net>
9463 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
9464 when outputting comment blocks (when executed with -C option) and
9465 _asm (SDCPP specific) blocks
9467 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9469 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
9471 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
9473 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
9475 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
9477 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
9478 * src/SDCCast.c (decorateType): fixed bug #832664
9480 2003-10-31 Borut Razem <borut.razem AT siol.net>
9482 * support/cpp2/cpplex.c: fixed for SDCPP:
9483 comments(when executed with -C option) and _asm blocks
9484 were included even if they where in skipped #if block.
9485 Applied solution from GCC cpp 3.3.2
9487 2003-10-31 Borut Razem <borut.razem AT siol.net>
9489 * src/SDCC.lex: sdcc now understands both formats:
9490 '# <line_number> <file_name>' and
9491 '#line <line_number> <file_name>'
9492 * support/cpp2/cppmain.c: sdcpp now generates the standard
9493 '# <line_number> <file_name>' instead of former
9494 '#line <line_number> <file_name>'
9496 2003-10-30 Borut Razem <borut.razem AT siol.net>
9498 * support/cpp2/cpphash.h,
9499 * support/cpp2/cpplib.h
9500 * support/cpp2/cpplex.c,
9501 * support/cpp2/cppmain.c,
9502 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
9504 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9506 Fixed a number of problems revealed by bug #827883.
9507 * src/SDCCloop.c (loopInvariants): Spill location of the
9508 result operand should be recomputed if extracted from
9509 a loop. Also, don't extract assignments of an iTemp
9511 * src/SDCCast.c (isConformingBody): loop reversal should
9512 not occur if the control variable is involved with a
9513 relational operator.
9515 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
9517 * .version: bumped to 2.3.6 to reflect the big improvements
9518 made by Erik and Klaus. Thanks!
9520 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
9522 Replaced the livrange code.
9523 * src/SDCClrange.c: added new LR code
9525 * src/SDCCBBlock.h: removed remainig parts from old LR code
9526 * src/ds390/ralloc.c,
9527 * src/ds390/gen.c: minor fixes to make it work with new code
9529 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9534 * src/hc08/ralloc.c: Fix various warnings related to the hc08
9535 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
9536 (tweaked fix for bug #818696)
9538 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9540 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
9542 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9545 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
9546 * src/mcs51/gen.c (gencjneshort),
9547 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
9548 more efficient (per Scott Bronson's suggestion)
9550 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9552 Extended the semantics of the critical keyword to include
9553 individual statements. See RFE #827755 and #799831
9558 * support/Util/SDCCerr.c
9559 * support/Util/SDCCerr.h
9564 2003-10-19 Borut Razem <borut.razem AT siol.net>
9566 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
9568 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9570 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
9572 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
9573 and predecrement operand is displayed
9575 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
9577 * src/SDCCval.c (valMinus): fixed bug #826041
9579 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9581 Some hc08 related updates that I missed earlier
9582 * sim/ucsim/stypes.h
9583 * support/regression/ports/hc08/spec.mk
9585 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9587 New target "hc08" for the Motorola 68hc08 family of micros
9595 * sim/ucsim/hc08.src/*
9596 * sim/ucsim/configure.in
9597 * src/ucsim/configure
9598 * sim/ucsim/packages_in.mk
9601 * device/include/mc68hc908qy.h
9603 * device/lib/Makefile.in
9604 * support/regression/ports/hc08/*
9605 * support/regression/Makefile
9607 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9609 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
9611 * src/ds390/gen.c (genCast): fixed bug #821957
9613 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
9615 * device/lib/logf.c: "fixed" overlay bug
9616 * support/regression/ports/host/spec.mk: added m library
9617 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
9618 * support/regression/tests/float_trans: added (for Eric)
9620 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
9622 * src/mcs51/gen.c (genCpl): fixed bug
9623 http://sf.net/mailarchive/message.php?msg_id=6263915
9625 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
9627 * src/SDCCast.c (decorateType): added extended constant folding
9628 * src/SDCCsymt.c (computeType): cleanup
9629 * src/SDCCval.c (valShift): minor optimization
9630 * support/regression/tests/ast_constant_folding.c: added
9632 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9634 * src/SDCCmain.c: removed some unintended changes
9636 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9638 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
9639 * src/z80/gen.c: fixed part of bug #817589
9640 * src/SDCCsymt.c (checkFunction): fixed bug #817895
9642 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
9644 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
9655 * src/ds390/ralloc.c
9657 * src/mcs51/ralloc.c
9659 * src/pic16/ralloc.c
9662 * src/z80/gen.c: removed unused label "release:"
9664 2003-10-06 Borut Razem <borut.razem AT siol.net>
9666 * src/SDCC.lex: removed definition of unused variables
9667 save_optimize and save_options
9669 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
9671 * clean.mk: removed '=' in "-maxdepth=1"
9672 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
9673 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
9675 2003-10-06 Borut Razem <borut.razem AT siol.net>
9677 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
9678 my_unput() replaced by unput()
9680 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
9682 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
9683 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
9684 type-punned pointer will break strict-aliasing rules"
9685 Old LR behaviour is again default; Klaus' LR can be choosen by
9686 defining the environment variable LRKLAUS
9690 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
9691 * clean.mk: fixed removal of files in bin/CVS/
9692 * device/lib/clean.mk: fixed removal of directories small and large
9693 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
9695 * src/SDCCval.c: removed superflous test for pedantic
9697 2003-10-05 Borut Razem <borut.razem AT siol.net>
9699 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
9700 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
9701 message "unmatched #pragma SAVE and #pragma RESTORE"
9703 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9705 * doc/sdccman.lyx: various additions and updates (interrupts, inline
9706 assembly, critical functions, atomic, nojtbound)
9708 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
9710 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
9716 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9719 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9721 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9723 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9724 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
9725 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
9727 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9729 * src/z80/gen.c (genRet): fixed bug #524753
9730 * src/z80/gen.c (genCast): fixed internal error on cast from
9732 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
9733 fix for bug #477835 to the z80
9734 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
9735 for tracking iCodes in the peephole optimizer for z80
9737 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9739 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
9740 the other part of bug #814548
9741 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
9743 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
9745 * src/SDCCcse.c: fixed part of bug #814548
9747 2003-09-28 Borut Razem <borut.razem AT siol.net>
9749 * src/asm.c: rewrite of printILine() to use temporary file instead
9751 * src/xa51/main.c: commented out declaration of int rewinds
9753 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9755 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
9757 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9759 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
9760 * src/asm.c (printILine): Fixed bug #811015
9762 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9764 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
9767 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9769 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
9770 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
9771 to correctly handle general case of AOP_PAIRPTR
9772 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
9774 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9776 * src/mcs51/ralloc.c (fillGaps),
9777 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
9778 register positioning bug)
9780 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
9782 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
9784 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9786 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
9787 genCodePointerGet, genGenPointerGet, genFarPointerSet,
9788 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
9789 (ralloc doesn't intentionally do this now, but perhaps later)
9790 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
9791 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
9792 register positioning bugs (Fixed bug #762602 and #795325)
9793 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
9795 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
9796 lines that --i-code-in-asm generates
9798 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9800 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
9801 trying to fclose a FILE* that was already closed.
9803 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9805 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
9806 of const struct should be treated as if const themselves)
9808 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
9810 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
9812 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9814 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
9815 Unix (/n) and DOS (/r/n) line terminations.
9817 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9819 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
9822 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9824 * src/mcs51/gen.c (genFunction, genEndFunction),
9825 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
9826 and restore of EA so that stack offsets to parameters are
9827 correct when using both critical and reentrant/stack-auto.
9828 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
9829 size (can be triggered in error if sloc is shared between
9830 different sized objects)
9831 * device/include/float.h: fixed macros to explicitly use
9832 unsigned long where needed
9834 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9836 Feature req. 799831: added code to allow nesting of critical functions
9837 * src/mcs51/gen.c (genFunction, genEndFunction)
9838 * src/ds390/gen.c (genFunction, genEndFunction)
9840 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9842 * src/SDCCsymt.c (sclsFromPtr),
9844 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
9845 support for standard C idiom of memory mapped variables; for
9846 example, *((xdata int*)0x1234) = 1 is now internally equivalent
9847 to xdata int at 0x1234 tempvar = 1.
9848 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
9849 provided by Akiya ISHIDA
9851 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
9853 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
9854 * src/SDCCval.c (constVal): added reduction from int to char
9855 * src/SDCCval.c (valMult, valDiv): fixed sign handling
9856 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
9857 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
9859 * support/regression/tests/shifts.c: fixed
9861 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9863 * src/z80/gen.c (genXor): Fixed bug #805445
9865 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9867 Fixed bug #621531 (const & volatile confusion in the type chain).
9868 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
9869 refer to the const or volatile state of the pointer itself.
9881 * src/pic16/ralloc.c
9882 * support/regression/tests/const.c
9884 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9886 When checking for duplicated modules, use absolute paths
9887 instead of relative paths. Files changed:
9892 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9894 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
9896 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9898 * device/include/string.h: added size_t typedef, changed
9899 prototypes to use size_t, eliminated separate reentrant and
9900 non-reentrant declarations, added _memmove declaration
9901 * device/lib/_memcpy.c: changed to use size_t instead of int,
9902 changed /4 to >>2 to avoid division library call
9903 * device/lib/_memcmp.c,
9904 * device/lib/_memset.c,
9905 * device/lib/_strncat.c,
9906 * device/lib/_strncpy.c,
9907 * device/lib/_strncmp.c: changed to use size_t instead of int
9908 * device/lib/_memmove.c: new file (fixed bug #772294)
9909 * device/lib/Makefile.in: added _memmove.c
9910 * device/lib/z80/asm_strings.s: fixed bug #772290
9911 * support/regression/tests/bitfields.c: attempt to fix host assertion
9912 failure on amd64-unknown-linux2.2
9914 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9916 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
9917 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
9918 * as/z80/asmain.c (main): fixed bug #801766
9920 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
9922 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
9925 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9927 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
9928 reported in bug #800609
9930 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
9932 * Top header beautifications in src/pic16 directory:
9933 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
9934 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
9935 pcoderegs.h, ralloc.c, ralloc.h
9936 * main.c: added top header and GPL license notice
9937 * pcode.c: fixed the if-conditional warning
9939 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
9941 * device/lib/_mullong.c: replaced int by short for gcc
9943 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9945 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
9946 and JUMPTABLE iCodes properly now (worked by accident before)
9947 * src/mcs51/gen.c (leftRightUseAcc),
9948 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
9949 iCode properly now. Use getSize instead of nRegs since a & b
9950 aren't part of the nRegs tally.
9952 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
9954 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
9955 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
9956 before instructions that use the _STATUS register
9958 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
9960 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
9961 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
9962 fetching of the pointer
9963 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
9964 copied from genNearPointerSet()
9965 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
9966 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
9967 If they pop r0/r1 they must be called in the opposite order than aopOp().
9968 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
9969 (resp. --stack-auto), prepared for --xstack
9971 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9973 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
9975 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
9977 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
9978 these ports have their own __sdcc_external_start()
9980 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
9982 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
9983 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
9984 type for bits was changed. It resulted in bit variables becoming
9985 global, which is not permitted in PIC 14 assembly output.
9987 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9989 * doc/sdccman.lyx: various additions and updates. Rearranged sections
9991 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9993 Z80 and MCS51 linkers complaint if a public symbol is defined
9994 in more than one library module:
9998 * as/mcs51/Makefile.in
10000 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10002 A few small changes that speed up the peephole optimizer.
10006 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10008 Try to make the peephole optimizer smarter by maintaining
10009 an association between the assembly source code and the
10010 iCodes that originated them. Put this information to use
10011 with a new peephole rule condition "notVolatile" so that
10012 the rules can be aggressive yet still safe.
10017 * src/mcs51/peeph.def
10019 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10023 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
10024 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
10025 if the left or right operand symbols have the accuse flag set.
10027 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10029 Changed the type of the result of the ! (NOT) operator to char;
10030 previously it returned the same type as the source. This allows
10031 us to eliminate all the genFloatNot functions (all of its target
10032 implementations were very buggy) since !float can use the same
10035 * src/SDCCicode.c (ast2iCode): ! returns char
10036 * src/mcs51/gen.c (genNot, genNotFloat),
10037 * src/ds390/gen.c (genNot, genNotFloat),
10038 * src/z80/gen.c (genNot, genNotFloat),
10039 * src/pic/gen.c (genNot, genNotFloat),
10040 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
10042 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
10044 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
10045 1. Interrupt would not compile properly. Ensure PCLATH register is saved
10046 during interrupts. Ensure WSAVE is located at a shared bank address.
10047 2. Fixed page selection in some places
10048 3. Fixed BTFSS/C to where necessary use registers directly and not simply
10049 the registers name strings.
10050 4. Fixed "signed / unsigned compare" compiler warnings.
10051 5. The PIC port manages its own allocation of the general purpose
10052 registers, but makes no attempt to reuse them. As a result when
10053 compiling it soon runs out of general purpose registers. Some
10054 additional code was added to the files pcode.c and device.c to walk
10055 through the function call tree and rename the registers so that they
10065 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
10066 genPlus() & genMinus() when the result is the same as left or right
10068 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10070 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
10072 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10074 Made bitfield a distinct type from bit so that bitfields
10075 convert as per ANSI C and bits retain their traditional
10076 boolean style behaviour. Implemented bitfield support in
10084 * src/ds390/gen.c: bit v bitfield split
10085 * src/z80/gen.c: New support for bitfields
10086 * support/regression/tests/bitfields.c: reenabled z80,
10089 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10091 Rules 246.x, 247.x relate to bitfields, the others speed up
10092 access to xdata mapped I/O devices.
10094 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
10096 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10098 Cleaned up genPackBits and genUnpackBits and added two helper
10099 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
10100 for literal assignments in genPackBits (thanks to Frieder for
10106 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10108 Fixed bug #748310 (pointer to function type mishandled when the
10109 function name is omitted). Also fixed a SIGSEGV when a function
10110 attribute (reentrant, etc) is used on a non-function or on a
10111 function but misplaced before the parameter list.
10113 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
10115 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
10116 * support/Util/SDCCerr.h,
10117 * support/Util/SDCCerr.c: Added func attr misuse error msg
10119 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
10121 Fixed bug #787649 by anonymous
10122 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
10123 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
10125 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10127 Fixed numerous bitfield problems.
10129 * src/SDCC.y: More bitfield related error checking
10131 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
10132 * support/Util/SDCCerr.h,
10133 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
10134 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
10135 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
10136 * support/regression/tests/bitfields.c: tests added
10138 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10140 Made the constant following the "interrupt" keyword optional. If
10141 omitted, the function will not automatically be given an entry
10142 in the interrupt vector table (similar to #pragma NOIV, but
10143 less syntacticly kludgy). The interrupt number is also now
10144 range checked. Also fixed a bug in the high order bit example
10151 * support/Util/SDCCerr.c
10152 * support/Util/SDCCerr.h
10155 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
10157 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
10158 * src/SDCCicode.c (operandOperation): rewritten some ops
10159 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
10160 * src/SDCCsymt.c (computeType): literals are handled the same way as any
10162 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
10163 be re-activated by defining REDUCE_LITERALS)
10164 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
10165 unsigned, but are signed by default
10166 * src/SDCCval.c (constVal): rearranged
10167 * src/SDCCval.c (valMod): preliminary fix
10168 * src/SDCCval.c (valCastLiteral): use TYPE_* types
10169 * support/regression/literalop.c: added, work in progress
10171 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10173 Generate warnings for useless declarations like "char data;"
10174 that don't do what new users expect.
10177 * support/Util/SDCCerr.h
10178 * support/Util/SDCCerr.c
10180 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
10182 * src/SDCCval.c (valMult): fix overflow detection of negative int
10184 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10186 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
10188 Changes to support big endian targets:
10201 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
10203 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
10204 * device/lib/time.c: fixed warning "integer overflow in expression"
10206 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
10208 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
10209 * src/SDCCval.c (constVal): changed default to signed; hex and octal
10210 constants are unsigned; added recognition of "u" flag for unsigned
10211 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
10212 * src/SDCCval.c (valDiv, valMod): fixed signdness
10213 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
10214 signedness of modulo, left and right shift
10215 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
10216 * support/Util/SDCCerr.h: added warning W_INT_OVL
10217 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
10218 * src/SDCCast.c (ast_print): improved output of constants
10220 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10222 Fixed some warnings when building with MSVC:
10224 * as/mcs51/asdata.c
10228 * link/z80/aslink.h
10229 * link/z80/lkdata.c
10230 * link/z80/lkeval.c
10235 * support/cpp2/cpplib.c
10239 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
10241 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
10243 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10245 * support/librarian/clean.mk: Do not remove Makefile.
10246 * support/librarian/Makefile: added.
10248 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10250 Added librarian to MSVC build:
10253 * support/librarian/librarian.dsp
10255 'configure' not needed for librarian, removed:
10256 * support/librarian/configure
10257 * support/librarian/configure.in
10258 * support/librarian/config_in.h
10259 * support/librarian/Makefile.in
10261 Hopefully these ones built the librarian and the rest of sdcc properly:
10263 * Makefile.common.in
10265 Messed up 'configure', so revert to previous version:
10269 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
10271 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
10272 there, while the mantissa of a double is "only" 53 bits wide.
10274 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10276 Adding sdcclib to the build. MSVC project coming soon.
10277 Files added/changed:
10279 * support/librarian/clean.mk
10280 * support/librarian/configure
10281 * support/librarian/configure.in
10282 * support/librarian/config_in.h
10283 * support/librarian/Makefile.bcc
10284 * support/librarian/Makefile.in
10285 * support/librarian/sdcclib.c
10288 * Makefile.common.in
10292 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10294 Linker now complaints if linked modules have conflicting options, for
10295 example, one compiled using --model-large and another one compiled with
10296 --model-small. The following files were modified:
10298 * as/mcs51/asdata.c
10299 * as/mcs51/aslink.h
10301 * as/mcs51/asmain.c
10303 * as/mcs51/i51pst.c
10304 * as/mcs51/lkdata.c
10305 * as/mcs51/lklibr.c
10306 * as/mcs51/lkmain.c
10312 * link/z80/aslink.h
10313 * link/z80/lkdata.c
10314 * link/z80/lklibr.c
10315 * link/z80/lkmain.c
10318 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10320 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
10321 as/mcs51/lklibr.c: Generate a warning when a library is not found.
10323 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
10325 * src/z80/mappings.i: fix _mul[us][int,long] entries
10327 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10329 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
10331 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
10333 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
10334 * support/regression/tests/bitopcse.c: added
10342 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10344 added support for new library format to z80, gbz80 linkers:
10350 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
10352 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
10353 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
10355 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
10357 added DUMMY_READ_VOLATILE:
10366 * src/SDCCcse.c (algebraicOpts): many improvements
10367 * src/SDCCcse.h: removed algebraicOpts()
10368 * src/SDCCicode.c (picDummyRead): added
10370 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10372 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
10373 "Insufficient space in data memory".
10375 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10377 * src/mcs51/gen.c: fixed bug #771358
10378 * src/z80/gen.c: fixed bug #759087
10380 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
10382 * src/pic16/glue.c: minor cleanup by Vangelis
10384 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10386 * device/include/regc515c.h: fixed #758477
10387 * device/lib/_gptrget.c: saving some cycles in generic pointer get
10388 * device/lib/_gptrput.c: saved a few bytes
10389 * my tab spacing is 8, yours too?)
10390 * device/lib/_ser.c: process RX bytes earlier than TX bytes
10391 * device/lib/serial.c: process RX bytes earlier than TX bytes
10392 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
10394 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10396 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
10398 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10400 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
10402 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
10404 * device/lib/Makefile.in: bad fix, reverted to 1.43
10406 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
10408 * device/lib/Makefile.in: added missing z80 object files
10410 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
10412 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
10413 pic16 progress by Vangelis:
10416 * src/pic/Makefile:
10423 * pic16/genarith.c:
10428 * pic16/pcodepeep.c:
10431 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10433 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
10435 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10437 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
10438 added gbz80 build to MSVC project.
10439 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
10440 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
10441 from 8051 stuff and setup so it links using a .lnk file.
10443 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10445 * support/librarian/sdcclib.c: sdcc librarian.
10446 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
10449 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10451 * as/mcs51/lkmain.c: properly handle extensions in function afile.
10453 2003-07-02 Borut Razem <borut.razem AT siol.net>
10455 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
10456 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
10457 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
10458 src/xa51/main.c, src/z80/main.c:
10459 virtualization of glue() function: each port has it's own glue function,
10460 which is accessed by do_glue function pointer in PORT.general structure
10462 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
10464 * DS800C400 fun, improved ROM interface and tinibios.
10466 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
10468 * More support for DS80C400. Now includes beginning of interface to ROM.
10470 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
10472 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
10474 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10476 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
10478 2003-06-19 Borut Razem <borut.razem AT siol.net>
10480 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
10482 2003-06-19 Borut Razem <borut.razem AT siol.net>
10484 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
10485 fixed Z80 port - crt0.o: cannot open.
10487 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
10489 * support/Util/MySystem.c (merge_command): revert bad fix
10491 2003-06-18 Borut Razem <borut.razem AT siol.net>
10493 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
10495 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10497 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
10498 option --use-stdout sends errors to stdout instead of stderr.
10500 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
10502 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
10504 2003-06-15 Borut Razem <borut.razem AT siol.net>
10506 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
10507 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
10508 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
10509 fixed width array of pointers replaced with sets;
10510 multiple include and lib paths ared transferred to preprocessor and linker
10511 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
10512 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
10513 fixed width array of pointers
10514 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
10515 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
10516 fixupPath(), getPathDifference()
10517 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
10518 fixed width array of pointers
10520 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
10522 * src/pic16/ralloc.c: fix warnings
10523 * src/pic16/pcode.c: fix warning
10525 2003-06-10 Scott Dattalo <scott AT dattalo.com>
10527 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
10528 know all the details, but essentially this set of changes enable
10529 the pic16 port to generate movff instructions and generate assembler
10533 * src/pic16/glue.c:
10534 * src/pic16/pcode.c:
10535 * src/pic16/device.c:
10536 * src/pic16/main.c:
10537 * src/pic16/pcode.h:
10538 * src/pic16/pcoderegs.c:
10539 * src/pic16/ralloc.c:
10540 * src/pic16/ralloc.h:
10542 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10544 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
10545 added option --vc, so sdcc errors and warnings are compatible with
10546 Microsoft Visual Studio.
10548 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10550 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
10551 device/lib/libfloat.lib: added atof function.
10553 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
10555 * doc/sdccman.lyx: updated to Lyx 1.3
10556 * doc/cdbfileformat.lyx: updated to Lyx 1.3
10557 * doc/test_suite_spec.lyx: updated to Lyx 1.3
10558 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
10560 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
10562 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
10564 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10566 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
10567 additions to the "related tools/documentation" section
10569 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
10571 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
10573 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
10575 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
10576 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
10578 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
10580 * doc/sdccman.lyx: fix double dash and other minor things
10581 * doc/Makefile: fix double dash
10583 2003-05-28 Karl Bongers(patches from Martin Helmling)
10584 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
10585 condition and ignore commands.
10587 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10589 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
10590 is in parts still quite out of date, I did changes as far as I felt makes sense
10591 for a non-native english speaker.
10592 Please feel free to add to the manual or to correct my changes.
10593 * doc/Makefile: undid touching the date of intermediate tex files.
10595 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10597 * doc/sdccman.lyx: Manual has an index now
10599 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
10601 Finalize muluint/mulsint and mululong/mulslong merging:
10602 * device/lib/_mulint.c
10603 * device/lib/_mullong.c
10604 * device/lib/gbz80/mul.s
10605 * device/lib/gbz80/stubs.s
10606 * device/lib/z80/mul.s
10607 * device/lib/z80/stubs.s
10608 * src/SDCCsymt.c (initCSupport)
10610 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10612 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
10613 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
10614 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
10615 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
10618 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10620 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
10621 the regression tests I'm not brave enough to enable 245.b, 245.c
10622 * doc/sdccman.lyx: added latex preamble for hyperref package.
10623 Using pdflatex this will give you a hyperlinked pdf file with
10624 bookmarks. (prepend '%' before /usepackage if this breaks something)
10626 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10628 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
10630 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
10632 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
10634 2003-05-21 <johan AT balder>
10636 * src/SDCCglue.c (printIval): fixed bug #739934
10638 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
10640 Applied patch from bug 737905 (renamed yylineo to mylineno):
10647 * src/pic16/pcode.c: Cleaned warnings
10648 * src/pic16/pcodeflow.c: Cleaned warnings
10649 * src/pic16/pcoderegs.c: Cleaned warnings
10651 2003-05-19 Scott Dattalo <scott AT dattalo.com>
10653 * src/pic16/pcode.c: Cleaned warnings
10654 * src/pic16/pcodepeep.c: Cleaned warnings
10655 * src/pic16/ralloc.c: Cleaned warnings
10657 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
10659 * doc/sdccman.lyx: fixed bug 739745
10660 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
10662 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
10664 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
10665 it can be defined with CFLAGS when running configure
10666 * src/SDCCmain.c: fixed compiling + linking with object files
10668 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
10670 * configure.in: configure for pic16 port,
10671 added --disable-pic16-port
10672 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
10673 * src/SDCCmain.c: linkOptions is changed to set *,
10674 added if/endif conditional macros to remove options help
10675 messages from optionsTable when a port is not configured, added
10676 support for the PIc16 port in the ports table, when executing
10677 the compiler with no port specified on command line, a default
10678 port is selected with the new macro DEFAULT_PORT which is
10679 defined in port.h, in setDefaultOptions() linkOptions is removed
10680 from initialization assignment, since now it is a set,
10681 parseCmdLine uses setParseWithComma for linkOptions, in
10682 linkEdit() linkOptions are accessed with new function indexSet()
10683 which returns the i'th item of a set variable. See SDCCset.c, in
10684 linkEdit() when calling buildCmdLine(), added linkOptions as
10685 last argument. Now users can pass arguments to gplink via the
10686 -Wl option, main() uses pic16glue() to glue up pic16 programs
10687 * src/SDCCpeeph.c: various changes to support pic16
10688 * src/SDCCset.c: added function void *indexSet(set *, int) to
10689 return the i'th item of the set
10690 * src/SDCCset.h: added function prototype for indexSet()
10691 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
10692 * src/clean.mk: added pic16 in CLEANALLPORTS variable
10693 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
10694 added macro DEFAULT_PORT
10695 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
10696 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
10698 * src/pic16/glue.c: commented out some error producing lines
10699 * src/pic16/main.c: __config directives are commented out to stop
10700 gpasm complaining and test the linkage with gplink, _linkCmd and
10701 _asmCmd changed to be more gplink and gpasm friendly
10702 * src/pic16/peeph.def: peep rule 3 is commented out, since it
10703 produced an error when parsed, peep rule 12 is added to utilize
10704 movff, but it is commented out since the pCode does not support
10705 yet a command with 2 address arguments
10707 2003-05-18 <johan AT balder>
10709 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10710 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10711 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
10713 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
10714 Added feature to script commands from file.
10716 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
10718 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
10719 * src/SDCCutil.c: include ctype.h for win32
10721 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
10723 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
10725 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
10727 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
10728 Fixed so you can set breakpoints prior to run, run does not stop
10729 on entry now. Add tbreak. Other enhancements and fixes for use
10732 2003-05-12 Borut Razem <borut.razem AT siol.net>
10734 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
10736 2003-05-11 Borut Razem <borut.razem AT siol.net>
10738 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
10739 the path of bin directory, so that PATH is the only env. variable, which has to be set
10740 in case of standard installation.
10741 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
10742 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
10743 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
10745 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
10747 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
10748 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
10749 temp files are in the port dir; clean the gen/test directory when
10750 generating new test.c
10751 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
10752 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
10753 * support/regression/tests/zeropad.c: added
10755 2003-05-09 <johan AT balder>
10757 * src/SDCCglue.c: fixed bug #597940
10759 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
10761 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10762 cache sfr, optimize next,step, fix off by one sourceline,
10763 support ddd list function.
10764 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
10766 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
10768 * support/regression/HTMLgen.py: added compare_s2f()
10769 * support/regression/Makefile: redo 1.27
10770 * support/regression/generate-cases.py: redo 1.5
10772 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
10774 * support/regression/tests/float.c: workaround 33 bit hex constant
10775 * support/regression/tests/simplefloat.c: fix division for host
10777 2003-04-29 Scott Dattalo <scott AT dattalo.com>
10779 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
10780 that tame's the PIC's over-aggressive optimizer.
10782 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10784 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
10787 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
10789 Initial support for DS80C400. "Hello world" runs on TINIm400
10792 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
10794 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10795 * Some notes on ddd usage added in debugger/README
10796 Martin Helmling adding more features and fixes for ddd GUI debugger.
10797 Code added for nexti, stepi, up, down, and other adjustments.
10799 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
10801 * src/pic/pCodepeep.c non-wildcard asmops are now handled
10802 * src/pic/peeph.def Added two rules to optimize carry manipulation
10803 * src/pic/* removed debug printfs
10805 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
10807 * debugger/mcs51/cmd.c: added header newalloc.h
10809 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
10811 * as/Makefile: new EXEEXT
10812 * as/z80/Makefile: remove trailing slash of BUILDIR
10813 * as/z80/clean.mk: new EXEEXT
10814 * Makefile.common.in: add to CFLAGS (and others), don't replace it
10815 * support/cpp2/Makefile.in: new EXEEXT
10816 * src/pic/glue.c (pic14emitRegularMap): fixed warning
10818 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
10820 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
10821 EXEEXT was introduced to fix all related problems with targets
10822 "clean", "install" and "uninstall"; a couple of further flaws
10823 especially with "clean" have been fixed too
10824 * as/mcs51/Makefile.in
10825 * as/mcs51/clean.mk
10829 * debugger/mcs51/Makefile.in
10830 * debugger/mcs51/clean.mk
10831 * link/z80/Makefile
10832 * link/z80/Makefile.in
10833 * link/z80/clean.mk
10835 * packihx/Makefile.in
10837 * sim/ucsim/Makefile
10838 * sim/ucsim/clean.mk
10839 * sim/ucsim/avr.src/Makefile.in
10840 * sim/ucsim/avr.src/clean.mk
10841 * sim/ucsim/s51.src/Makefile.in
10842 * sim/ucsim/s51.src/clean.mk
10843 * sim/ucsim/xa.src/Makefile.in
10844 * sim/ucsim/xa.src/clean.mk
10845 * sim/ucsim/z80.src/Makefile.in
10846 * sim/ucsim/z80.src/clean.mk
10847 * sim/ucsim/main_in.mk
10848 * sim/ucsim/packages_in.mk
10849 * sim/ucsim/gui.src/Makefile.in
10850 * sim/ucsim/gui.src/serio.src/Makefile.in
10851 * sim/ucsim/gui.src/serio.src/clean.mk
10854 * support/cpp2/Makefile.in
10855 * support/cpp2/clean.mk
10856 * support/makebin/Makefile
10857 * support/makebin/clean.mk
10858 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
10859 * doc/sdccman.lyx: --program-suffix no longer needed
10861 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
10863 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
10864 Martin Helmling added support for ddd GUI debugger.
10865 Code added to display assembly, set variables, and other commands
10866 to interface to ddd.
10868 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
10870 * as/Makefile: fix target clean
10871 * as/clean.mk: fix target clean
10872 * as/z80/clean.mk: fix target clean
10874 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
10876 * Makefile.common.in: added AT EXEEXT AT
10877 * configure.in: removed all mingw32 stuff
10878 * configure: rebuilt from configure.in
10879 * doc/sdccman.lyx: updated section "installation"
10880 * support/scripts/sdcc_mingw32: adapted to configure
10881 * support/scripts/sdcc_cygwin_mingw32: added
10883 2003-04-22 Scott Dattalo <scott AT dattalo.com>
10885 * src/pic Added object file support for the PIC port
10886 * src/pic Applied patch from Craig Franklin (this started the object file support)
10887 * src/regression Updated the PIC regression tests for object files
10889 2003-04-20 Borut Razem <borut.razem AT siol.net>
10891 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
10892 lklex.c: In function `getfid':
10893 lklex.c:203: warning: array subscript has type `char'
10894 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
10895 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
10896 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
10897 stack handling macros
10899 2003-04-19 Borut Razem <borut.razem AT siol.net>
10901 * "handling space characters in file path" task:
10902 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
10903 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
10904 * support/Util/MySystem.h: make it self-sufficient
10905 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
10906 src/z80/main.c, sdcc/as/mcs51/lklex.c:
10907 handling space characters in file path
10908 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
10909 (it will be used by assemblers, which have their own includes, e.g. gpasm)
10910 * support/Util/MySystem.c: handling space characters in executable's path
10912 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
10914 * as/z80/Makefile: fix permanent rebuild of z80
10915 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
10916 * support/regression/tests/bitfields.c: added Johan's bitfields.c
10918 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
10920 * src/SDCCopt.c: add special case optimization to replace modulo by
10921 a power of two with a bitwise AND.
10923 2003-04-18 <johan AT balder>
10925 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
10927 2003-04-17 <johan AT balder>
10929 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
10930 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
10932 2003-04-13 Borut Razem <borut.razem AT siol.net>
10934 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
10935 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
10936 fixed mingw problem in adl_NORMALIZE_PATH
10938 2003-04-12 Borut Razem <borut.razem AT siol.net>
10940 * fixed "#pragma SAVE/RESTORE can not be nested":
10941 * src/SDCC.lex: reworked pragma handling functions
10942 * sdcc/src/SDCCglobl.h: reworked stack handling macros
10943 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
10945 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10947 * src/SDCCutil.c (pathEquivalent): defined but not used
10948 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
10949 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
10950 * configure: rebuilt from configure.in
10951 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10952 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
10953 * device/include/Makefile.in: replace sdcc_datadir
10954 * device/lib/Makefile.in: replace sdcc_datadir
10955 * Makefile.common.in: add LDFLAGS from configure
10956 * packihx/Makefile.in: use LDFLAGS
10957 * src/Makefile.in: use LDFLAGS
10958 * support/cpp2/Makefile.in: add LDFLAGS from configure
10959 * support/makebin/Makefile: use LDFLAGS
10960 * .version: bumped version number to 2.3.5
10962 2003-04-12 Borut Razem <borut.razem AT siol.net>
10964 * completed "different paths" task:
10965 * src/SDCCmacro.c: fixed bug in handling quotes
10966 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
10967 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
10969 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
10971 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
10973 2003-04-11 kevin Vigor <kevin AT vigor.nu>
10975 * ds390/gen.c ds390/peeph.def: fix bug 706781
10977 2003-04-11 Borut Razem <borut.razem AT siol.net>
10979 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
10981 2003-04-10 Scott Dattalo <scott AT dattalo.com>
10983 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
10984 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
10985 set - this bit used to not be set...).
10986 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
10987 bad code in PIC Port
10988 * src/regression/and2.c added to test bug 609268
10989 * src/regression/Makefile added and2.c to regression test
10992 2003-04-08 <johan AT CP255758-A>
10994 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
10995 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
10996 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
10998 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
11000 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
11002 * support/cpp2/Makefile.in: fix bug #487815
11003 * configure: rebuilt from configure.in
11004 * Makefile.common.in: docdir changed, new path suffixes
11005 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
11006 * sdcc_vc_in.h: reflect changes from sdccconf.h
11007 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
11008 * src/SDCCutil.h: remove BINDIR hack
11009 * doc/sdccman.lyx: update new path hierarchy
11011 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
11013 * src/SDCCpeeph.c: added okToRemoveSLOC test
11015 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
11017 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
11019 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
11021 * src/SDCCpeeph.c: added labelIsReturnOnly test
11022 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
11024 2003-04-05 <johan AT balder>
11026 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
11027 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
11028 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
11029 * src/SDCCast.c: fixed a warning
11030 * src/SDCCast.h: fixed a warning
11031 * src/SDCCicode.c (operandFromAst): fixed a warning
11033 2003-04-04 <johan AT balder>
11035 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
11036 * src/SDCCast.c (decorateType): fixed bug #715076
11037 * src/SDCC.y: fixed bug #702907
11039 2003-04-03 <johan AT balder>
11041 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
11042 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
11043 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
11044 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
11045 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
11047 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
11049 * _decdptr.c: fix return values
11050 * _gptrget.c: fix return values
11051 * _gptrgetc.c: fix return values
11052 * _gptrput.c: fix return values
11053 * _mulint.c: fix return values
11054 * as/z80/Makefile: fix 'make -j' problem
11056 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
11058 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
11059 * configure.in: big cleanup, updated to autoconf 2.5x
11060 * configure: rebuilt from configure.in
11061 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
11062 * sdcc_vc_in.h: reflect changes from sdccconf.h
11063 * doc/Makefile: fixed a flaw in "make install"
11065 2003-04-02 <johan AT balder>
11067 * src/ds390/gen.c (genCmp): no comments
11068 * src/mcs51/gen.c (genCmp): no comments
11069 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
11070 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
11072 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
11074 * support/regression/generate-cases.py: place generated file in given sub directory
11075 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
11076 * support/regression/Makefile: improvements for 'make -j';
11077 side effect: it's simpler and faster now
11079 2003-03-31 Borut Razem <borut.razem AT siol.net>
11081 * src/z80/main.c: link-{port} and as-{port} defined without path
11082 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
11084 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
11086 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
11088 2003-03-30 Borut Razem <borut.razem AT siol.net>
11090 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
11091 changed type of list parameter to set
11092 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
11093 * src/port.h: changed type of do_assemble() parameter to set
11094 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
11095 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
11096 definition of "cppoutfilename" macro with NULL value in preProcess()
11097 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
11098 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
11099 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
11100 replaced with set *binPathSet
11101 * shash_add() deallocates the item, if allready exsists, before adding the new one
11102 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
11104 2003-03-30 Scott Dattalo <scott AT dattalo.com>
11106 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
11107 a nested for loop bug in the PIC port
11108 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
11111 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11113 * support/Util/dbuf.h: remove C++ stuff to make it portable
11115 2003-03-28 Borut Razem <borut.razem AT siol.net>
11117 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
11118 literal strings in stringLiteral()
11119 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
11120 * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
11123 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
11125 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
11127 2003-03-26 <johan AT balder>
11129 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
11130 * src/ds390/gen.c (saveRegisters): catched symbol abuse
11131 * src/SDCCast.c (decorateType): fixed " -v < 3"
11133 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11135 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
11136 Added Lenny Story's debug infrastructure changes:
11137 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
11138 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
11139 * src/cdbFile.c: added
11140 * src/SDCCdebug.c: added
11141 * src/SDCCdebug.h: added
11142 * src/SDCCast.c (createFunction)
11143 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
11144 * src/SDCCmain.c (parseCmdLine, main)
11145 * src/SDCCmem.c (redoStackOffsets)
11146 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
11149 * src/avr/gen.c (genAVRCode)
11150 * src/ds390/gen.c (gen390Code)
11151 * src/mcs51/gen.c (gen51Code)
11152 * src/pic/gen.c (genpic14Code)
11153 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
11154 * src/xa51/gen.c (genXA51Code)
11155 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
11157 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11159 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
11160 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
11162 2003-03-22 <johan AT balder>
11164 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
11166 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
11168 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
11169 * doc/cdbfileformat.lyx: added, written by Lenny Story
11170 * doc/Makefile: added cdbfileformat.lyx
11171 * doc/clean.mk: added cdbfileformat.lyx
11173 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
11175 * src/mcs51/peeph.def: fix bug #705773
11177 2003-03-20 <johan AT balder>
11179 An sfr/sbit can have an "at #" AND an initializer
11180 * src/SDCCsymt.c (checkSClass):
11181 * src/SDCCmem.c (allocGlobal):
11182 * src/SDCCmem.c (allocLocal):
11183 * src/SDCCast.c (createBlock):
11185 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
11187 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
11189 2003-03-16 <johan AT balder>
11191 Undid the hackup of const and volatile, the problem is much bigger
11193 * src/SDCCast.c:1.171
11194 * src/SDCCglue.c:1.138
11195 * src/SDCCicode.c:1.146
11196 * src/SDCCsymt.c:1.150
11197 * src/SDCCval.c:1.65
11199 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
11201 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
11202 * src/ds390/gen.c (genAddrOf): fixed bug #704087
11204 2003-03-13 <johan AT balder>
11206 Hackup const and volatile modifiers in type chains a bit:
11208 * src/SDCCast.c:1.169
11209 * src/SDCCglue.c:1.136
11210 * src/SDCCicode.c:1.143
11211 * src/SDCCsymt.c1.146
11212 * src/SDCCsymt.h1.59
11213 * src/SDCCval.c:1.63
11215 2003-03-12 <johan AT balder>
11217 * src/SDCCBBlock.h: more LRH debugging junk
11218 * src/SDCCcflow.h: more LRH debugging junk
11219 * src/SDCCloop.c: more LRH debugging junk
11220 * src/SDCC.y (struct_declaration): fixed bug #697590
11221 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
11222 * src/ds390/gen.c (aopForRemat): fixed bug #700031
11223 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
11225 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11226 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
11227 test function names must now match exactly).
11228 * src/SDCCcse.c: added special case in findCheaperOp to allow
11229 extending a short integer. Makes less awful code for bug 700121 test case.
11231 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11233 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
11234 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
11236 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11238 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
11239 actually called (operandsNotEqual() was called for all
11240 operandsNotEqualX tests).
11242 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11244 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
11245 with shorter literals. Fixes bug 700121.
11247 2003-03-11 <johan AT balder>
11249 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
11251 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
11253 * src/SDCCloop.c (mergeRegions): an evil beast is dead
11254 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
11256 2003-03-10 Borut Razem <borut.razem AT siol.net>
11258 * src/SDCCmain.c: pipe preprocessor's output
11259 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
11260 * sdcc_vc_in.h: define pclose as _pclose for WIN32
11261 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
11262 which closes all pipes in pipeSet set
11263 * src/SDCCset.c: free deleted item in function deleteSetItem()
11264 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
11265 moved from z80 to src subproject
11266 * .version: increased version number to 2.3.4
11268 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11270 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
11271 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
11272 * support/regression/ports/xa51/spec.mk: fix typo
11274 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11276 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
11278 2003-03-09 Borut Razem <borut.razem AT siol.net>
11280 * src/SDCCmain.c: pipe preprocessor's output
11281 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
11282 * sdcc_vc_in.h: define pclose as _pclose for WIN32
11283 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
11284 which closes all pipes in pipeSet set
11285 * src/SDCCset.c: free deleted item in function deleteSetItem()
11286 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
11287 moved from z80 to src subproject
11289 2003-03-09 Borut Razem <borut.razem AT siol.net>
11291 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
11292 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
11293 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
11294 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
11295 * src/SDCCglobl.h: unification of WIN32 native definitions
11297 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11299 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
11301 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11303 * src/configure.in: check for endianess (even while cross-compiling)
11304 * src/configure: check for endianess (even while cross-compiling)
11305 * src/configure_in.h: check for endianess (even while cross-compiling)
11306 * src/avr/gen.c: remove old endianess stuff
11307 * src/mcs51/gen.c: remove old endianess stuff
11308 * src/ds390/gen.c: remove old endianess stuff
11309 * src/pic/gen.c: remove old endianess stuff
11310 * src/pic/genarith.c: remove old endianess stuff
11311 * src/pic/glue.c: fix endianess check
11312 * src/pic16/gen.c: remove old endianess stuff
11313 * src/pic16/genarith.c: remove old endianess stuff
11314 * src/pic16/glue.c: fix endianess check
11315 * src/xa51/gen.c: remove old endianess stuff
11316 * src/z80/gen.c: fix endianess check
11317 * src/SDCCglue.c: fix endianess check
11318 * src/ds390/peeph.def: fix bug 700036
11320 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11322 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
11323 * src/configure: find appropriate data-types on host for SDCC's int and long
11324 * src/configure.in: find appropriate data-types on host for SDCC's int and long
11325 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
11326 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
11328 2003-03-07 <johan AT balder>
11331 some minor cleanups before the big shot
11332 OP_DEFS and OP_USES now use Kevin's protection
11333 new option --nolabelopt
11335 * src/SDCCBBlock.c:
11344 * src/ds390/ralloc.c:
11345 * src/mcs51/ralloc.c:
11346 * src/pic/ralloc.c:
11347 * src/xa51/ralloc.c:
11348 * src/z80/ralloc.c:
11350 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11352 * src/pic/pcode.c (get_op): fix 64 bit warnings
11353 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
11354 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
11355 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
11356 * support/regression/tests/malloc.c: fix 64 bit warnings
11358 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
11360 * src/mcs51/gen.c (genMinus): fixed bug 696436
11362 2003-03-02 Borut Razem <borut.razem AT siol.net>
11364 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
11366 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11368 * configure.in: test for mkstemp
11369 * sdccconf_in.h: add HAVE_MKSTEMP
11371 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
11373 * device/include/ctype.h: removed warning while using --stack-auto
11374 * device/include/malloc.h: removed warning while using --stack-auto
11375 * device/include/string.h: removed warning while using --stack-auto
11377 2003-02-23 Borut Razem <borut.razem AT siol.net>
11379 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
11380 because NDEBUG is defined (see man assert)
11381 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
11383 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11385 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
11386 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
11388 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11390 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
11391 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
11393 2003-02-18 <johan AT balder>
11395 * as/mcs51/asmain.c (asmbl): module can start with a digit
11396 * as/z80/asmain.c (asmbl): module can start with a digit
11398 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11400 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
11401 * src/asm.c: fix pipe() for Mingw32
11403 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
11405 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
11406 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
11407 make -V work again; --c1mode reads now from stdin
11408 * doc/sdccman.lyx: added --c1mode
11409 * support/Util/SDCCerr.c: new messages for c1 mode
11410 * support/Util/SDCCerr.h: new messages for c1 mode
11411 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
11413 2003-02-15 <johan AT balder>
11415 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
11417 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
11419 * doc/sdccman.lyx: Environment variables, -o and other minor things
11421 2003-02-14 <johan AT balder>
11423 * src/xa51/main.c: before anyone really tries to use it :)
11425 * Install doc's in share/sdcc/doc
11426 * removed some obsolete files
11427 * Do a proper make distclean and uninstall
11428 M Makefile.common.in
11431 M device/include/Makefile.in
11432 M device/lib/Makefile.in
11435 M sim/ucsim/doc/Makefile.in
11437 R src/avr/peeph.rul
11438 R src/xa51/peeph.rul
11439 M support/cpp2/Makefile.in
11440 M support/makebin/Makefile
11443 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11445 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
11447 2003-02-10 Borut Razem <borut.razem AT siol.net>
11449 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
11450 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
11451 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
11452 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
11453 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
11454 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
11455 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
11456 src/z80/Makefile.bcc: Borland Makefile cleanup
11457 * as/z80/Makefile.bcc: Added Borland Makefile
11458 * support/cpp2/borland.h: Removed
11460 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
11462 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
11463 * src/SDCC.lex: new pragma NOIV
11464 * src/SDCCglobl.h: new pragma NOIV
11465 * src/SDCCmem.c: new pragma NOIV
11467 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11469 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
11471 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11473 * src/SDCCmain.c: signal handling is switched off by --debug
11474 * doc/Makefile: small fix for install; use clean.mk again
11475 * doc/clean.mk: clean *.pdf and *.html too
11477 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
11479 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
11480 * device/lib/printfl.c: fix a ds390 bug by making it portable
11481 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
11482 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
11483 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
11484 * debugger/mcs51/cmd.c: converted multi-line string literals
11485 * sim/ucsim/globals.cc: converted multi-line string literals
11486 * src/SDCCmain.c: introduced signal handler to remove temp files
11487 * doc/Makefile: small tweaks, implement clean
11488 * doc: removed generated files
11490 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11492 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
11493 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
11494 Address Record is not correctly generated for DS390."
11496 2003-02-02 Borut Razem <borut.razem AT siol.net>
11498 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
11499 * as/mcs51/asm.h: fixed compilation with Borland C
11500 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
11501 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
11502 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
11503 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
11504 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
11505 src/z80/Makefile.bcc: delete $(LIB) only if exist
11506 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
11508 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
11510 * device/include/malloc.h: introduced NULL
11511 * device/include/string.h: introduced NULL
11512 * device/include/stdlib.h: introduced NULL
11513 * device/lib/_memcpy.c: removed NULL
11514 * device/lib/_strcat.c: removed NULL
11515 * device/lib/_strchr.c: removed NULL
11516 * device/lib/_strcmp.c: removed NULL
11517 * device/lib/_strcpy.c: removed NULL
11518 * device/lib/_strcspn.c: removed NULL
11519 * device/lib/_strlen.c: removed NULL
11520 * device/lib/_strncat.c: removed NULL
11521 * device/lib/_strncmp.c: removed NULL
11522 * device/lib/_strncpy.c: removed NULL
11523 * device/lib/_strpbrk.c: removed NULL
11524 * device/lib/_strrchr.c: removed NULL
11525 * device/lib/_strspn.c: removed NULL
11526 * device/lib/_strstr.c: removed NULL
11527 * device/lib/_strtok.c: removed NULL
11528 * device/lib/malloc.c: removed NULL, include own header
11530 2003-02-02 <johan AT balder>
11532 * 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
11533 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
11534 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
11535 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
11536 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
11537 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
11539 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11541 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
11544 2003-02-01 <johan AT balder>
11546 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
11548 2003-01-31 <johan AT CP255758-A>
11550 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
11552 2003-01-30 <johan AT balder>
11554 * src/SDCCBBlock.c: automatic bug detection
11555 * src/SDCCicode.c: automatic bug detection
11557 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11559 * src/SDCCglobl.h: now --xram-size 0 works
11560 * src/SDCCmain.c: now --xram-size 0 works
11562 2003-01-29 <johan AT balder>
11564 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
11566 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11568 * as/mcs51/aslink.h: Added options --xram-size and --code-size
11569 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
11570 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
11571 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
11572 * src/SDCCglobl.h: Added options --xram-size and --code-size
11573 * src/SDCCmain.c: Added options --xram-size and --code-size
11575 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
11577 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
11578 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
11580 2003-01-27 <johan AT balder>
11582 * src/SDCC.y: fixed bug #613764
11584 2003-01-26 <johan AT balder>
11586 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
11587 * src/SDCCsymt.h: fixed bug #673374
11588 * src/SDCCglue.c: fixed bug #661910
11589 * src/SDCCast.c: fixed bug #458099 and 673374
11591 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
11593 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
11594 * as/mcs51/strcmpi.h: added
11595 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
11596 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
11597 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
11598 * as/mcs51/assym.c: strcmpi -> as_strcmpi
11599 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
11600 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
11601 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
11602 * as/mcs51/Makefile.aslink: new module strcmpi
11603 * as/mcs51/Makefile.asx8051: new module strcmpi
11604 * as/mcs51/Makefil.bcc: new module strcmpi
11605 * as/mcs51/Makefile.in: new module strcmpi
11606 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
11608 2003-01-26 <johan AT balder>
11610 * src/SDCCglue.c: reverted back to 1.124
11611 * src/SDCCast.c: reverted back to 1.156
11612 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
11614 2003-01-25 <johan AT balder>
11616 * src/SDCCglue.c: A better fix for bug #661910
11617 * src/SDCCast.c: A better fix for bug #661910
11618 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
11620 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
11622 * src/Makefile.in: remove spawn.o
11623 * src/SDCCmain.c: remove spawn.h
11624 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
11625 * src/spawn.c: removed
11626 * src/spawn.h: removed
11627 * support/regression/ports/ds390/spec.mk: link with -r
11629 2003-01-24 <johan AT CP255758-A>
11631 * src/ds390/gen.c (aopOp): fixed bug #667458
11632 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
11633 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
11634 (createIvalCharPtr): an ival doesn't always have a storage class anymore
11636 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
11638 * src/mcs51/peeph.def: better assembler identation by Frieder
11639 * src/mcs51/gen.c: better assembler identation by Frieder
11641 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
11643 * as/z80/string.h: removed for gcc 3.2
11644 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
11645 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
11647 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11649 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
11650 * src/SDCCpeeph.c (replaceRule): fix bug #663503
11651 * support/regression/Makefile: separate temp files for ports
11652 * support/regression/generate-cases.py: separate temp files for ports
11653 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
11654 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
11656 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11658 * moved tinitalk to device/examples/ds390
11660 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
11662 * as/mcs51/lkmem.c: rflag is for DS390
11663 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
11664 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
11665 (linkEdit): move mem- and map-files the same way as ihx-files
11666 * src/z80/main.c (_setDefaultOptions): removed --generic
11667 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
11668 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
11669 * src/pic/glue.c (picglue): --c1mode works again
11670 * src/pic16/glue.c (pic16glue): --c1mode works again
11671 * src/asm.c (printCLine): fix #660034
11673 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11675 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
11676 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
11677 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
11678 * as/mcs51/lkmem (summary): better fix for sp problem
11679 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
11680 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
11681 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
11682 remove --stack-after-data
11684 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11686 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
11687 * src/SDCCutil.c (join): ugly bug: missing '\0'
11688 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
11690 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11692 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
11694 * src/pic/main.c (_asmCmd): gpasm supports -o
11695 * src/z80/main.c: more general macros
11696 * device/lib/Makefile.in: remove intermediate files
11698 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11700 * .version: Bumped version number to 2.3.3
11701 * src/SDCCBBlock.c: new option -o
11702 * src/SDCCglobl.h: new option -o
11703 * src/SDCCglue.c: new option -o
11704 * src/SDCCmain.c: new option -o
11705 * src/asm.c: new option -o
11706 * src/ds390/main.c: new option -o
11707 * src/pic/glue.c: new option -o
11708 * src/pic/pcode.c: new option -o
11709 * src/pic/ralloc.c: new option -o
11710 * src/pic16/glue.c: new option -o
11711 * src/pic16/pcode.c: new option -o
11712 * src/pic16/ralloc.c: new option -o
11713 * src/z80/main.c: new option -o
11714 * device/lib/Makefile.in: use -o
11715 * support/regression/ports/ds390/spec.mk: use -o
11716 * support/regression/ports/gbz80/spec.mk: use -o
11717 * support/regression/ports/mcs51/spec.mk: use -o
11718 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
11719 * support/regression/ports/z80/spec.mk: use -o
11720 * support/regression/ports/ucz80/spec.mk: use -o
11721 * support/regression/ports/xa51/spec.mk: use -o
11722 * support/regression/fwk/lib/timeout.c: fix usage string
11724 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
11725 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
11727 2003-01-07 <johan AT balder>
11729 * src/SDCCast.c (decorateType): fixed bug #600035
11731 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
11732 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
11733 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
11734 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
11735 * src/pic/pcode.c: outcommented unused variable to remove warnings
11736 * src/pic/ralloc.c: outcommented unused variable to remove warnings
11738 2003-01-06 <karl AT turbobit.com>
11739 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
11742 2003-01-06 <johan AT balder>
11744 * src/SDCCicode.c: fixed array add
11746 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
11747 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
11748 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
11750 2003-01-04 <johan AT balder>
11752 * src/SDCCval.c (getNelements): fixed the initialized array of structures
11754 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11755 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
11757 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
11758 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
11759 * support/regression/tests/bug-524697.c: fit mem usage into 8032
11761 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
11762 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
11764 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
11765 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
11767 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
11768 * src/mcs51/main.c: removed {bindir}{sep} from aslink
11770 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11772 * in /sdcc/as/mcs51/ changed these files in order to create an
11773 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
11774 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
11775 following files to include the previous two files: aslink.dsp,
11776 Makefile.aslink, Makefile.bcc, and Makefile.in.
11778 * Changed /sdcc/src/SDCCmain.c so it creates files with extension
11779 .adb instead of .cdb
11781 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11783 * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
11784 value from option --iram-size.
11786 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11788 * /sdcc/as/mcs51/lklist.c: added boundary check before using
11791 2002-09-18 <wiml AT hhhh.org>
11793 * SDCClrange.h: exposed setFromRange() and setToRange()
11794 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
11795 packRegsForAccUse() (bug 542397)
11796 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
11797 multiple times and emitting the fetch operations more than once
11798 added aopGetUsesAcc() function to allow binary operators to
11799 fetch their operands in the correct order; made genMinus() emit
11800 compact code for X = LITERAL - Y
11802 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11803 * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
11804 sprintf() in line 1267.
11806 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11807 * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
11810 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11811 Changes to aslink (All the changes are marked with 'JCF'):
11813 * /sdcc/as/mcs51/aslink.h: External definition of sflag and
11816 * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
11817 area BSEG. Also moves, if possible, the DATA area down into the internal
11818 ram so more space is available.
11820 * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
11823 * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
11824 not bytes. Function summary() which creates a memory usage summary
11825 file with extension .mem. Reports of overlaping stack and small stack
11826 size. If the space for the stack is less than 16 bytes aslink trows a
11829 * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
11830 the 8051. Option 'y' for memory summary output file.
11832 Changes to sdcc (All the changes are marked with 'JCF'):
11834 * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
11836 * /sdcc/src/SDCCglue.c: If a register bank is used, creates an
11837 overlaying area for it (uses RegBankUsed[4]).
11839 * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
11840 bank zero as used by default. By default aslink locates the stack
11841 (equivalent to --stack-after-data). Pass option 'y' to aslink for
11842 the creation of the .mem file. Delegates the allocation of data area
11843 to aslink (it is not longer 0x30 by default). If --stack-loc passes
11844 the begining of the stack area to aslink.
11846 * /sdcc/src/SDCCmem.c: If a register bank is used, marks it so
11847 glue() in SDCCglue.c creates an area for it.
11849 2002-09-03 Borut Razem <borut.razem AT siol.net>
11850 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
11851 sdcc/src/pic/glue.c:
11852 introduced atexit() handler for teporay files removal in case of
11853 errors, assertions, ...
11855 2002-08-29 Borut Razem <borut.razem AT siol.net>
11856 * sdcc/support/cpp2/auto-host_vc_in.h:
11857 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
11858 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
11859 Maybe there is a similar problem with BORLANDC? It should be checked!
11861 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
11862 corrected improper use of assert: the assignment to clr variable was done inside the assert.
11863 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
11864 was not executed, and the compiler (cl) launched a warning:
11865 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
11867 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
11868 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
11870 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
11871 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
11873 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
11874 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
11875 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
11876 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
11877 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
11878 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
11879 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
11880 - added Release configuration in VS projects
11881 - review of compiler an linker options
11882 - VC .exe files are generated in bin_vc directory, not to interfere
11883 with binaries generated from other projects (cygwin, mingw, bcc ...)
11885 * sdcc/src/yacc.dsp: added
11887 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
11888 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
11889 and insert the version number definitions from .version
11891 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
11893 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
11894 added - genarate auto-host.h using auto-host_vc_in.h as template
11897 removed from CVS, generated automatically
11899 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
11900 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
11902 2002-08-11 Borut Razem <borut.razem AT siol.net>
11903 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
11905 2002-08-10 Borut Razem <borut.razem AT siol.net>
11906 * src/SDCCmain.c (main):
11907 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
11908 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
11909 The consequence was that some temporary files were not removed.
11912 unification of code in functions tempfilename() and tempfile():
11913 function tempnam() is defined in Visual Studio 6.0 and .NET
11915 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
11917 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
11918 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
11919 - removed compiler command line option /WX: Treats all warnings as errors
11920 - update a list of source files, included into the project
11922 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
11923 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
11924 changed project type to Generic Project so that can be correcly converted to VS.NET project
11926 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
11928 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
11930 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
11932 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
11933 added return 0 statements after assert() to make compiler happy
11935 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
11936 added newline in the def file to keep MSC compiler satisfied
11938 * sdcc/src/z80/gen.c:
11939 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
11940 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
11941 - solved MSC error in function aopDump()
11943 * sdcc_vc.h: define PREFIX as "\\sdcc"
11945 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
11946 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
11948 2002-06-22 Scott Dattalo <scott AT dattalo.com>
11949 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
11950 - Rewrote the register banking algorithm.
11951 - Added pCode live-range analysis to registers (for now, only non-used and
11952 singly-used registers optimized away)
11954 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
11956 * 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.
11958 2002-05-10 Scott Dattalo <scott AT dattalo.com>
11959 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
11961 2002-04-22 Michael Hope <michaelh AT vroom>
11963 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
11965 * configure.in (DD_COPT): Added include support required for gbdk.
11967 * .version: Bumped version number just to increase it.
11969 * src/SDCCmain.c: Added -nostdinc to the default options.
11971 2002-04-15 Michael Hope <michaelh AT vroom>
11973 * device/lib/z80/printf.c (sprintf): Added.
11975 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
11977 * src/z80/peeph.def: Added transpose redundent load rule.
11979 * src/z80/main.c: Added force callee saves for jaune.
11981 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
11983 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
11985 2002-03-28 Johan Knol <johan AT balder>
11987 * src/SDCCval.c: fixed bug #532436
11989 2002-03-14 Scott Dattalo <scott AT dattalo.com>
11991 Added "char *Processor" field to the port structure.
11994 Added -p option. Allows port dependent processor to be specified.
11997 Initialized the new field char *Processor field to NULL in all ports
12000 Compiler generated registers for interrupt context saving
12001 were not getting allocated.
12003 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
12006 Fixed left shift. Will promote the left side of a left shift
12007 if a) left shifting more than size of operand or b) when assigned
12008 to something size > size of left side
12010 2002-03-14 Scott Dattalo <scott AT dattalo.com>
12012 tons of changes. Register allocation has been
12013 rewritten. Added customization for the various PICs. Flow
12014 analysis is restructured. ...
12016 * src/pic/device.h:
12019 * src/pic/device.c:
12020 Added. device.c is a PIC port hack to accomodate variations
12023 2002-03-13 Michael Hope <michaelh AT vroom>
12025 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
12027 2002-03-04 johanknol <johanknol AT manik>
12029 * /src/SDCCval.c: fixed
12031 const unsigned char arr[][2] = { { 0, 1 } };
12032 t18.c:1: error: Initializer element is not constant
12034 2002-03-04 bela <bela AT manik>
12036 * /device/include/mcs51reg.h:
12037 ds89c420 register definition update
12039 2002-03-03 <johan AT FRIJA>
12041 * support/Util/SDCCerr.c: did something, but don't no why anymore
12043 * support/regression/tests/bug-524691.c: made it a little less shy
12045 * src/SDCCast.c (decorateType): fixed bug #524697
12047 * src/SDCCast.c: made some lineno improvements
12049 * src/SDCCval.c (getNelements): changed warning to error
12051 * src/SDCCglue.c (printIvalArray): changed warning to error
12053 * src/SDCCicode.c: fixed a warning for mingw
12055 * src/SDCCast.c (decorateType): fixed the << promotion for ops
12057 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
12059 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
12061 * src/ds390/peeph.def:
12062 Added some more peephole rules
12064 * src/ds390/gen.c: Various fixes & enhancements
12066 * src/SDCClrange.c, src/SDCClrange.h:
12067 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
12069 * src/ds390/ralloc.c:
12070 various fixes & enhancements (ds390) specific
12072 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
12073 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
12076 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
12078 2002-03-02 <johan AT FRIJA>
12080 * src/SDCCast.c (decorateType): fixed bug #524708
12082 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
12084 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
12086 2002-03-01 Michael Hope <michaelh AT vroom>
12088 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
12090 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
12092 2002-03-01 <johan AT FRIJA>
12094 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
12096 * src/SDCCast.c (decorateType): fixed bug #524209
12098 * src/SDCCval.c (valNot): fixed bug #524195
12100 2002-02-26 <johan AT balder>
12102 * src/xa51/gen.c: fixed a warning
12104 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
12106 * src/SDCCast.c (decorateType): fixed bug #522534
12108 2002-02-23 <johan AT balder>
12110 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
12112 2002-02-22 <johan AT balder>
12114 * src/SDCCast.c: fixed bug #514865
12116 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
12118 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
12120 * sdcc/src/SDCCloop.c:
12121 Previous fix was not good. basic blocks that have "break" or "return" are
12122 not really partof a loop , but live ranges used in these blocks should
12123 be live thru the entire loop, so set partOfLoop but don't add them to
12126 2002-02-21 <johan AT FRIJA>
12128 * src/SDCCcse.c: fixed bug #514308
12130 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
12133 Fixed BUG #519583. If a conditional block ended in a return/break
12134 statement inside a loop, it was not being considered part of the loop.
12136 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
12138 2002-02-10 Karl Bongers <karl AT turbobit.com>
12141 Fixed up SDCDB debugger somewhat. Updated debugger/README
12142 with lots of comments and notes.
12144 * device/examples/test2.c:
12145 Fix bug, "red" variable not being initialized(compiler complained).
12147 * device/examples/Makefile, examples/test3.c:
12148 Add Makefile in device/examples folder, compiles test3.c
12149 for use as a multiple module SDCDB test case.
12151 * sim/ucsim/cmd.src/cmdset.cc:
12152 Took out debug printfs in ucsim "next" command.
12154 * sim/ucsim/xa.src:
12155 Karl and Johan start ucsim XA support. Most dissassembly working,
12156 about 75% emulation done(plenty of work remaining).
12158 * sim/ucsim/z80.src:
12159 Add Z80 support to ucsim, add test-ucz80 regression test,
12160 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
12161 Notice z80 compiler fails on examples/test3.c/crc code.
12163 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
12165 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
12166 Added support for --parms-in-bank1
12168 * src/ds390/peeph.def:
12169 added a few more peephole optimzations
12171 * src/ds390/main.c:
12172 1) added __builtin_inp & __builtin_outp used to read in data of given length
12173 from a memory mapped port
12174 2) added __builtin_memcmp
12175 3) added __builtin_swapw swap bytes of a short
12177 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
12178 1) handle multiple send & receives from register bank1
12179 2) ralloc can now allocate DPTR1 to some liveRanges
12181 * src/SDCCsymt.c, src/SDCCsymt.h:
12182 changes to handle multiple sends & receives
12184 * src/SDCCptropt.h:
12185 added some pointer arithmetic optimization
12187 * src/SDCCptropt.c:
12188 added some pointer arithmetic optimizations but not stable yet so not
12189 called from anywhere (will get this working shortly)
12191 * src/SDCCopt.c: fixed for multiple sends & receives
12194 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
12195 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
12196 set preprocessor defines (depending on options)
12198 * src/SDCCicode.c, src/SDCCicode.h:
12199 changes made to handle multiple sends & receives
12202 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
12204 * src/SDCCcse.c, src/SDCCcse.h:
12205 added function findbackward def (to be used in upcoming optimization)
12207 * src/SDCCcflow.c, src/SDCCcflow.h:
12208 added function returnAtEnd - to determine if a basic block terminates with
12211 * src/SDCCast.c, src/SDCCast.h:
12212 added option parms-in-bank1
12214 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
12215 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
12216 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
12217 adjusted for --parms-in-bank1 option
12219 * device/include/string.h:
12220 donot redefine "reentrant" keyword
12222 * device/include/ds80c390.h: Added some more SFRs
12224 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
12226 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
12228 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
12230 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
12232 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
12234 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
12236 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
12238 * Added --xram-movc option
12240 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12242 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
12244 2002-01-11 Johan Knol
12246 * Added math lib of Jesus Calvino-Fraga
12248 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
12250 * src/SDCCmain.c (processFile): fix processing of ../../src.c
12251 * support/regression/Makefile: new target test-mcs51-stack-auto
12252 * support/regression/ports/mcs51-stack-auto/spec.mk: added
12254 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
12256 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
12258 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
12260 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
12262 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
12264 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
12266 * src/SDCCglue.h: add definition for printIvalChar()
12268 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
12270 * src/SDCCast.c: fix #498138 by Johan
12272 * src/SDCCglue.c: fix #498138 by Johan
12274 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
12276 * support/regression/Makefile: fix clean
12278 * support/regression/ports/ds390/support.c: fix transmission of last character
12280 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
12282 * /sdcc/src/ds390/gen.c:
12283 a) improved computing address of stack variable
12284 b) took out some #if 0 code
12285 c) improved parmBytes adjustment
12286 d) improved genPlusIncr & genMinusIncr
12287 e) genCmp could generate bad code (when left assigned to DPTR)
12288 f) Fixed bug in hasInc
12290 * /sdcc/src/ds390/ralloc.c:
12291 a) packRegsForSupport could mess up live information (Fixed)
12292 b) packRegsDPTRuse could be incorrect for left & right shift
12294 * /sdcc/src/mcs51/ralloc.c:
12295 packRegsForSupport could mess up the live information (Fixed)
12297 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
12299 * /sdcc/src/SDCCast.c:
12300 can reverse a loop even if function call is present as long
12301 as the loop control variable is local & is not passed as parameter
12303 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
12305 * /sdcc/ChangeLog: *** empty log message ***
12307 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
12308 More builtin function additions for TININative
12310 * /sdcc/src/ds390/ralloc.c:
12311 Had broken the regression testsuite
12313 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
12315 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
12316 Added funcattr hasStackParms will be set for reentrant functions when there
12317 are paramteres on the stack, this helps in minimizing frame pointer generation
12318 typeFromStr can handle function pointers now
12320 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
12321 *** empty log message ***
12323 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
12325 * /src/ds390/gen.c, /src/ds390/main.c:
12326 More builtin function additions for TININative
12328 * /src/ds390/ralloc.c:
12329 Had broken the regression testsuite
12331 * /src/SDCCast.c: Fixed a bug in dumptree
12333 * /src/SDCCsymt.c, /src/SDCCsymt.h:
12334 Added funcattr hasStackParms will be set for reentrant functions when there
12335 are paramteres on the stack, this helps in minimizing frame pointer generation
12336 typeFromStr can handle function pointers now
12338 * /doc/builtins.txt, /doc/TININative.txt:
12339 *** empty log message ***
12342 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
12344 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
12345 ALPHA version for -mTININative
12347 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
12348 updated to reflect changes in the port structure
12351 added function do_assemble (similar to do_link) if non-null this function
12352 will be called to do assembly (-mTININative) requires a multi command
12354 added function genAssemblerEnd will be called to generate assembler Epilogue
12357 added _JavaNative to debug info printing
12359 * /src/SDCCmain.c: added option --tini-libid
12360 added port->do_assemble function (-mTININative) has a multi command assemble
12362 * /src/SDCCglue.c: Disabled "constExpr" check
12363 added port->genAssemblerEnd function
12365 * /src/SDCCglobl.h: Added option --tini-libid value
12368 tookout optimizeCompare from the header (has no external references)
12370 * /src/SDCCast.c: made one more function "static"
12372 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
12374 * src/z80/mappings.i: Added z80asm support.
12376 * src/z80/main.c: Added z80asm support on --asm=z80asm
12378 * src/z80/gen.c: Fixed asm portability issues.
12380 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
12382 * src/SDCCglue.c (printExterns): Added global/extern split.
12384 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
12386 * support/regression/Makefile: added test for mcs51 model large
12388 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
12390 * support/regression/ports/gbz80/spec.mk: added -mgbz80
12392 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
12394 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
12396 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
12398 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
12400 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
12402 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
12404 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
12406 * support/regression/tests/simplefloat.c: Port to mcs51.
12408 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
12409 * support/regression/tests/bug-485362.c: Added.
12411 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
12413 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
12415 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
12417 * src/z80/gen.c (aopDump): Added a dump function.
12419 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
12420 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
12422 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
12424 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
12426 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
12428 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
12430 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
12432 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
12434 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
12436 * support/regression/ports/ds390/support.c: Use tinibios.
12438 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
12440 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
12442 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
12443 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
12445 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
12447 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
12449 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
12451 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
12453 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
12454 (packRegsForIYUse): Created and optimised.
12456 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
12458 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
12459 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
12461 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
12463 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
12465 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
12467 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
12469 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
12471 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
12473 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
12475 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
12477 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
12479 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
12481 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
12483 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
12484 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
12485 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
12487 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
12489 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
12490 (genNotFloat): Added.
12491 (genUminusFloat): Added.
12493 * device/lib/z80/Makefile: Added floating pt stubs.
12495 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
12497 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
12499 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
12501 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
12503 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
12505 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
12507 * sdcc/support/regression/Makefile: Add port ds390.
12509 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
12511 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
12513 * sdcc/support/regression/ports/ds390/spec.mk: Added.
12515 * sdcc/support/regression/ports/ds390/support.c: Added.
12517 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
12519 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
12521 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
12523 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
12525 * device/include/malloc.h: Added z80 and gbz80 support.
12527 * device/lib/gbz80/heap.s: Added.
12529 * device/lib/z80/heap.s: Added.
12531 * device/lib/malloc.c: Added z80 and gbz80 support.
12533 * support/regression/tests/malloc.c (testMalloc): Added.
12535 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
12537 * support/regression/tests/bug-478094.c: Added.
12539 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
12541 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
12543 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
12545 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
12547 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
12549 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
12551 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
12553 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
12555 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
12557 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
12559 * support/regression/tests/bug-477927.c: Added.
12561 * src/z80/peeph.def: Added minor rules.
12563 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
12565 * src/z80/peeph.def: Added jump optimisation modification.
12567 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
12569 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
12571 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
12573 * support/regression/tests/funptrs.c: Added.
12575 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
12577 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
12579 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
12581 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
12583 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
12585 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
12586 (movLeft2ResultLong): Created.
12588 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
12589 (joinPushes): Added. Joins two char pushes into a word push.
12591 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
12593 * support/cpp2/Makefile.in (install): Added creation of dest dir.
12595 * support/makebin/Makefile (install): Added creation of dest dir.
12597 2001-10-24 Karl Bongers <karl AT turbobit.com>
12599 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
12601 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
12603 * src/z80/ralloc.c: Turned off faulty pack for one use.
12605 * src/z80/peeph-gbz80.def: Removed redundent restart options.
12607 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
12609 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
12611 * support/regression/Makefile: Improved clean
12613 * support/regression/ports/gbz80/spec.mk: Added clean
12615 * support/regression/ports/host/spec.mk: Added clean
12617 * support/regression/ports/z80/spec.mk: Added clean
12619 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
12621 * support/regression/ports/mcs51/timeout.c: little improvements
12623 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
12625 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
12627 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
12629 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
12631 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
12633 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
12635 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
12637 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
12638 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
12640 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
12642 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
12644 * src/mcs51/main.c (_linkCmd): Added bin path to command.
12646 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
12648 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
12650 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
12652 * support/regression/tests/longor.c: Added.
12654 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
12656 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
12658 * as/mcs51/aslink.h: define PATH_MAX
12660 * as/mcs51/asm.h: define PATH_MAX
12662 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
12664 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
12666 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
12668 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
12670 * src/SDCCglobl.h: define PATH_MAX
12672 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
12674 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
12676 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
12678 * src/z80/gen.c (gencjneshort): Fixed
12680 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
12682 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
12684 * support/regression/tests/bug-469671.c: Added.
12686 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
12688 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
12690 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
12692 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
12694 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
12696 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
12698 * src/device/lib/_mulint.c : removed hint: nooverlay bug
12700 * src/device/lib/_mullong.c : removed hint: nooverlay bug
12702 * src/device/lib/_divuint.c : removed hint: nooverlay bug
12704 * src/device/lib/_divulong.c: removed hint: nooverlay bug
12706 * src/device/lib/_moduint.c : removed hint: nooverlay bug
12708 * src/device/lib/_modulong.c: removed hint: nooverlay bug
12710 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
12712 * 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.
12714 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
12716 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
12718 2001-10-07 <johan AT FRIJA>
12720 * device/lib/gets.c (gets): fixed the return value.
12722 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
12723 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
12725 * 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.
12727 * 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.
12729 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
12731 * src/pic/gen.c: Removed Safe_strdup.
12733 * configure.in: Added option to enable libgc support.
12735 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
12736 (bitVectUnion): Optimised.
12737 (bitVectIntersect): Optimised.
12738 (bitVectBitsInCommon): Optimised.
12739 (bitVectCplAnd): Optimised.
12741 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
12743 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12745 * src/SDCCmain.c: distinguish between assembler debug and plain options
12747 * src/avr/main.c: remove standard assembler options
12749 * src/ds390/main.c: remove standard assembler options
12751 * src/mcs51/main.c: remove standard assembler options
12753 * src/port.h: removed "PENDING" comment
12755 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12757 * src/device/lib/_mulint.c : new, with assember functions
12759 * src/device/lib/_mullong.c : new, with assember functions
12761 * src/device/lib/_divuint.c : with assember functions
12763 * src/device/lib/_divsint.c : with assember functions
12765 * src/device/lib/_divulong.c: with assember functions
12767 * src/device/lib/_divslong.c: with assember functions
12769 * src/device/lib/_moduint.c : with assember functions
12771 * src/device/lib/_modsint.c : with assember functions
12773 * src/device/lib/_modulong.c: with assember functions
12775 * src/device/lib/_modslong.c: with assember functions
12777 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
12779 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
12781 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
12782 replaced _mululong.c and _mulslong.c by _mullong.c
12784 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12786 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
12788 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12790 * src/SDCCglue.c: test, if win32api is available for MINGW
12792 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12794 * src/SDCCsymt.c: no more _modifier in printTypeChain()
12795 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
12796 * support/regression/ports/gbz80/spec.mk: removed GENERIC
12797 * support/regression/ports/host/spec.mk: removed GENERIC
12798 * support/regression/ports/mcs51/spec.mk: removed GENERIC
12799 * support/regression/ports/z80/spec.mk: removed GENERIC
12801 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
12803 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
12805 * support/regression/tests/bug-467035.c: Created.
12807 2001-10-01 <johan AT FRIJA>
12809 * src/SDCC.y: fixed bug #466586 part 1
12811 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
12813 * SDCCicode.c: z80 has no generic pointers
12814 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
12816 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
12818 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
12820 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
12822 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
12824 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
12826 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
12828 * configure.in: Fixed up so that ucsim is only configured once.
12830 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
12832 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
12833 (getPathDifference): As above.
12835 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
12837 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
12839 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
12840 * .version: Updated to 2.3.1
12842 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
12843 Added copyright header.
12845 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
12846 (assemble): Added support for macro based assembler commands.
12847 (linkEdit): Added support for macro based linker commands.
12848 (preProcess): Changed the pre-processor to use macros.
12849 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
12850 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
12852 * device/lib/z80/crt0.s: Added module name for debugging.
12854 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
12856 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
12858 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
12860 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
12862 * src/Makefile.in: Added SDCCmacro and SDCCutil
12864 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
12866 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
12868 2001-09-16 <johan AT FRIJA>
12870 * 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.
12872 2001-09-15 <johan AT FRIJA>
12874 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
12875 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
12877 2001-09-11 <johan AT FRIJA>
12879 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
12881 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
12883 * support/regression/tests/bug-460444.c: Added test case.
12885 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
12886 (genCast): Added justification for all of the asserts.
12888 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
12890 * support/regression/support.c: _xdata replaced by xdata
12892 * support/regression/spec.mk: removed _generic
12894 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
12896 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
12898 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
12899 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
12901 * src/z80/peeph.def: Added a rule to optimise shift then compare.
12903 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
12905 * support/regression/tests/bug-460010.c: Added test case.
12907 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
12909 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
12911 * support/regression/Makefile: inter-port-clean adjusted for mcs51
12913 * support/regression/testfwk.c: removed workaround for bug #436344
12915 * support/regression/tests/bp.c: use less memory with mcs51
12917 * support/regression/tests/bug-441448.c: use less memory
12919 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
12921 * support/regression/collate-results.py: typo
12923 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
12925 * support/regression/tests/fetchoverlap.c: Added new test case.
12927 * support/regression/tests/bp.c: Added new test case.
12929 * support/regression/tests/bug-448984.c: Added new test case.
12931 * support/regression/tests/pow2shifts.c: Added new test case.
12933 * src/z80/gen.c: Turned off the noise it normally generates for the release.
12934 (genlshTwo): Fixed right shift for count > 8.
12936 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
12938 2001-09-08 <johan AT FRIJA>
12940 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
12942 2001-09-07 <johan AT FRIJA>
12944 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
12946 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
12948 2001-09-06 <johan AT FRIJA>
12950 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
12951 * bernhard noted me at this: "() equals to (void)" (1.38)
12953 2001-09-05 <johan AT FRIJA>
12955 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
12957 2001-09-04 <johan AT FRIJA>
12959 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
12962 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
12964 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
12966 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
12968 * link/z80/aslink.h: Fixed path for PATH_MAX
12970 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
12972 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
12974 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
12976 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
12978 * 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.
12980 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
12982 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
12983 (genCmp): Fixed up genCmp for the GB with longs.
12985 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
12987 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
12989 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
12991 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
12993 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
12995 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
12997 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
12999 * 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.
13001 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
13003 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
13005 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
13007 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
13009 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
13011 * sim/ucsim/configure: little improvement of Cygwin-detection
13012 * sim/ucsim/configure.in: little improvement of Cygwin-detection
13013 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
13014 * support/regression/tests/bug-221100.c: small changes for mcs51
13015 * support/regression/tests/bug-221168.c: small changes for mcs51
13016 * support/regression/tests/bug-227710.c: small changes for mcs51
13017 * support/regression/tests/staticinit.c: small changes for mcs51
13018 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
13019 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
13020 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601