1 2006-12-17 Borut Razem <borut.razem AT siol.net>
3 * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
4 src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
5 support/Util/SDCCerr.[ch]: removed deprecated pragmas,
6 unified table driven pragma handling, pragma argument type checking
7 * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
8 current one - version 1.1.3
9 * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
11 2006-12-13 Raphael Neider <rneider AT web.de>
13 * src/pic/device.h: removed AssignedMemory structure and macros
14 * src/pic/device.c: removed global finalMapping (linker assigns
16 (register_map): add SFRs to remembered memRanges
17 (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
18 assignFixedRegisters,assignRelocatableRegisters): removed,
19 (setMaxRAM,validAddress): adapted accordingly,
20 (pic14_hasSharebank,pic14_getSharedStack): only report and use
21 reasonably sized sharebanks,
22 * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
23 (allDefsOutOfRange): removed unused code,
24 * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
26 * src/pic/pcode.c (register_reassign): removed recursion warning,
28 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
29 to use existing pic14_stringInSet() to avoid duplicate symbols,
30 tidied up the code a bit,
31 (pic14printLocals): added in symmetry to printExterns, replaces
32 writeUsedRegs more or less,
33 (picglue): call new pic14_printLocals(),
34 * device/include/pic/pic*.h: removed #pragma memmap directives,
35 information gathered from include/pic/pic14devices.txt
36 * support/scripts/inc2h.pl: do not emit #pragma memmap lines
38 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
40 * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
42 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
44 * device/include/mcs51/cc2430.h: fixed missing ';'
46 2006-12-10 Raphael Neider <rneider AT web.de>
48 * device/lib/pic16/libc/stdio/vfprintf.c,
49 * device/lib/pic16/libc/stdio/printf_small.c,
50 * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
51 char arguments, as char varargs are cast to int by the caller,
52 hopefully fixes #1604915 (other device libraries are still affected)
54 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
55 * src/mcs51/ralloc.c (packRegsForAssign),
56 * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
58 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
60 * device/include/malloc.h: removed init_dynamic_memory
61 * device/lib/malloc.c: made init_dynamic_memory static and automatically
62 call it once from malloc. Also use _sdcc_heap[] from _heap.c
63 * device/lib/_heap.c: new, added, contains _sdcc_heap[]
64 * device/lib/libsdcc.lib,
65 * device/lib/Makefile.in,
66 * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
67 * doc/sdccman.lyx: documented use of new _heap.c
68 * support/regression/tests/malloc.c: removed init_dynamic_memory
69 * src/cdbFile.c(spacesToUnderscores): new function,
70 (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
72 * device/include/tinibios.h: removed defines for putchar and getchar
73 * device/lib/ds390/Makefile.in: added putchar.c
74 * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
76 2006-12-09 Borut Razem <borut.razem AT siol.net>
78 * support/cpp2/sdcc.h: prevent multiple inclusion
79 * support/cpp2/options.h: deleted
81 2006-12-08 Borut Razem <borut.razem AT siol.net>
83 * support/cpp2/sdcc.h: removed x*alloc() macros
84 * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
85 * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
86 support/cpp2/sdcpp.sdc: x*alloc files added to the project
87 * support/cpp2/system.h: moved #include "sdcc.h"
88 * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
89 support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
91 * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
92 -funsigned-char options
93 * support/cpp2/sdcppmain.c: fixed bug 1611411
95 2006-12-07 Borut Razem <borut.razem AT siol.net>
97 * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
100 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
102 * src/SDCCsymt.c (addDecl): fixed bug 1609244
103 * src/SDCCmain.c (linkEdit): fixed bug 1609279
105 * .version: bumped to 2.6.2 because a) it's been a while
106 b) the linker sources have moved c) the preprocessor is upgraded
108 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
110 * support/regression/tests/snprintf.c: some checks
111 * lib/src/printf_large.c: %bc: read char instead of int from stack
113 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
115 * device/include/mcs51/cc2430.h: inserted _XPAGE
117 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
119 * device/include/mcs51/cc2430.h: added
121 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
123 * device/include/asm/default/features.h,
124 * device/include/asm/ds390/features.h,
125 * device/include/mcs51/at89s53.h,
126 * device/include/ser.h,
127 * device/include/ser_ir.h,
128 * device/include/serial.h: changed keywords to double underscore variants,
129 fixes bug 1590261 some more, thanks Steven Borley
131 2006-12-01 Raphael Neider <rneider AT web.de>
133 * src/pic/pcode.c (register_reassign): do not crash on recursive code
134 but emit warning (recursion is not supported for pic14)
136 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
138 * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
139 * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
141 2006-11-30 Raphael Neider <rneider AT web.de>
143 * src/pic/device.c (dump_sfr): always emit symbols
144 * src/pic/glue.c (pic14printPublics): fixed typo
146 2006-11-30 Raphael Neider <rneider AT web.de>
148 * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
149 (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
150 (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
151 pic14_getSharedStack): NEW, evaluate the memRange entries to locate
152 a sharebank, use a non-shared bank for the stack if none available
153 * src/pic/device.h (struct memRange): added linked list next field,
154 added prototypes for above functions
155 * src/pic/ralloc.c (initStack): handle shared and banked stacks,
156 (typeRegWithIdx): accept fixed and unfixed stack registers
157 * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
158 the stack, handle shared and banked stack (except for WSAVE),
159 (insertBankSel): removed useless optimization (will never fire),
160 (FixRegisterBanking): added optimization for devices with only one
161 possibly aliased bank of memory, like 16f84
162 * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
163 devices have no SHAREBANK in the linker script
164 * device/include/pic/pic14devices.txt: documented memmap
165 * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
167 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
169 * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
170 storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
171 genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
172 genhc08Code): switched most of the D (debug) macros to DD (detailed
173 debug) macros to better control clutter in the generated .asm file.
174 * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
175 genRightShift): fixed bug with non-constant bit shift stored to
176 a volatile result (SF Open Discussion forum thread #1616749).
177 Single byte case is not yet optimized.
179 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
181 * device/include/asm/mcs51/features.h,
182 * device/include/malloc.h,
183 * device/include/stdio.h: changed keywords to double underscore variants,
186 2006-11-27 Borut Razem <borut.razem AT siol.net>
188 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
189 support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
190 support/cpp2/output.h, support/cpp2/cppinit.c,
191 support/cpp2/cpplib.c, support/cpp2/cpplib.h,
192 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
193 support/cpp2/cppdefault.c, support/cpp2/system.h,
194 support/cpp2/cpphash.h, support/cpp2/cpplex.c,
195 support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
196 support/cpp2/prefix.c, support/cpp2/except.h,
197 support/cpp2/hwint.h, support/cpp2/cppmacro.c,
198 support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
199 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
200 support/cpp2/version.c, support/cpp2/cppmain.c,
201 support/cpp2/version.h, support/cpp2/hashtable.c,
202 support/cpp2/cpperror.c:
203 synchronized with GCC CPP release version 3.3.6,
204 the latest where cppmain.c still exists.
205 * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
206 support/cpp2/sdcppinit.c: added
208 2006-11-27 Borut Razem <borut.razem AT siol.net>
210 * support/cpp2/cpplex.c:
211 fixed _asm ... _endasm handling bug, introduce with GCC CPP
213 * support/cpp2/cpplib.c: removed definitions of unused variables
215 2006-11-26 Borut Razem <borut.razem AT siol.net>
217 * support/cpp2/libiberty.h: commented out x*alloc() declarations
218 since they are redefined by macros in support/cpp2/sdcc.h
219 * support/cpp2/sdcc.h: x*alloc macro redefinition
221 2006-11-25 Borut Razem <borut.razem AT siol.net>
223 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
224 support/cpp2/configure, support/cpp2/Makefile.in,
225 support/cpp2/cppfiles.c, support/cpp2/output.h,
226 support/cpp2/cppinit.c, support/cpp2/cpplib.c,
227 support/cpp2/config.h, support/cpp2/cpplib.h,
228 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
229 support/cpp2/cppdefault.c, support/cpp2/config.in,
230 support/cpp2/system.h, support/cpp2/cpplex.c,
231 support/cpp2/cpphash.h, support/cpp2/mbchar.c,
232 support/cpp2/cppdefault.h, support/cpp2/prefix.c
233 support/cpp2/hwint.h, support/cpp2/mbchar.h,
234 support/cpp2/prefix.h, support/cpp2/cppmacro.c,
235 support/cpp2/configure.in, support/cpp2/intl.h,
236 support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
237 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
238 support/cpp2/version.c, support/cpp2/cppmain.c,
239 support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
240 support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
241 support/cpp2/cpperror.c,
242 support/cpp2/libiberty/safe-ctype.c,
243 support/cpp2/libiberty/safe-ctype.h,
244 support/cpp2/libiberty/splay-tree.c,
245 support/cpp2/libiberty/obstack.c,
246 support/cpp2/libiberty/lbasename.c,
247 support/cpp2/libiberty/splay-tree.h,
248 support/cpp2/libiberty/obstack.h:
249 synchronized with GCC CPP release version 3.2.3,
250 the latest before integration of cpp into gcc
251 * support/cpp2/except.h, support/cpp2/line-map.c,
252 support/cpp2/line-map.h,
253 support/cpp2/libiberty/hex.c,
254 support/cpp2/libiberty/concat.c,
255 support/cpp2/libiberty/filenames.h: added
256 * support/cpp2/intl.c: deleted
258 2006-11-24 Borut Razem <borut.razem AT siol.net>
260 * src/SDCC.y: enabled compilation of empty source file
261 * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
262 "ISO C forbids an empty source file"
263 * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
264 if all the code is ifdefed out.
266 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
268 * src/hc08/gen.c (genPcall): fix for bug #1601032
270 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
272 * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
273 * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
274 * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
275 * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
276 * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
277 * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
278 * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
279 * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
280 * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
281 * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
282 * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
283 * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
284 * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
285 * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
286 * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
287 Renamed to all upper case as per the standard set by SiLabs
289 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
291 * device/include/mcs51/C8051F520.h: new, added
292 * device/include/mcs51/compiler.h: added link about predefined macros
294 2006-11-23 Raphael Neider <rneider AT web.de>
296 * src/regression/Makefile: add -L path to fresh library
297 * src/regression/simulate: emphasize FAILED output
298 * src/regression/create_stc: output _failures from gpsim
299 * src/regression/compare4.c,
300 * src/regression/rotate6.c: fixed char literals,
301 all compile, all run =8-D
303 * src/pic/pcode.h: added isPCASMDIR macro
304 * src/pic/gen.c (genAnd): fixed bit offset
305 * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
306 packBits): unified register numbering schemes,
307 (newReg): do not insert stack registers into hash table,
308 (initStack): unpinned pseudo stack, simplified,
309 (typeRegWithIdx): fixed retrieval of stack registers,
310 * src/pic/pcode.c (addpCodeComment,sameBank): added,
311 (pCodeReplace): removed invalid assertion,
312 (insertPCodeInstruction): fixed newly added labels,
313 (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
314 FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
315 DumpFlow): removed unsed (broken?) code,
316 (insertBankSel): prevent STATUS from being BANKSELed,
317 (FixRegisterBanking): rewritten from scratch, implemented generic
318 optimizations (suppress BANKSELs to same register and to registers
319 present in all banks),
320 (AnalyzeBanking): update flow after BANKSELection
322 * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
323 sharebank, let linker place it, mark STKxx symbols as emitted
325 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
327 * src/regression/arrays.c,
328 * src/regression/bank1.c,
329 * src/regression/bool2.c,
330 * src/regression/compare7.c,
331 * src/regression/compare8.c,
332 * src/regression/compare9.c,
333 * src/regression/compare10.c,
334 * src/regression/configword.c,
335 * src/regression/for.c,
336 * src/regression/mult1.c,
337 * src/regression/pointer1.c,
338 * src/regression/rotate6.c,
339 * src/regression/string1.c,
340 * src/regression/struct1.c,
341 * src/regression/Makefile: make PIC14 regression tests run again
342 (3 fail, 6 won't compile)
344 2006-11-21 Raphael Neider <rneider AT web.de>
346 * device/include/pic16/pic18f4550.h,
347 * device/include/pic16/pic18f4455.h,
348 * device/lib/pic16/libdev/pic18f4550.c,
349 * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
350 * configure.in: removed superfluous closing bracket
352 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
354 * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
357 2006-11-21 Raphael Neider <rneider AT web.de>
359 * src/pic/device.{c,h}: added pic14_getPIC()
360 * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
361 (genAnd): added PIC code for one case, fixes #1597044
362 * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
363 SFRs that are present in all banks (e.g., STATUS)
365 2006-11-20 Raphael Neider <rneider AT web.de>
367 * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
368 INCFSZ/INCFSZW and declared them as changing Z bit,
369 (insertPCodeInstruction): correctly invert the above instructions,
371 (DoBankSelect): don't panic on po_immediates
373 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
376 * as/link/mcs51/lkihx.c (newArea),
377 * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
378 * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
380 2006-11-11 Raphael Neider <rneider AT web.de>
382 * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
383 bitfield symbols, fixes #1579535 (once more...).
385 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
387 * support/regression/generate-cases.py,
388 * support/regression/fwk/include/testfwk.h,
389 * support/regression/fwk/lib/testfwk.c: used code pointers,
390 (about 50kByte less code generated for mcs51)
392 2006-11-06 Borut Razem <borut.razem AT siol.net>
394 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
395 debugger/mcs51/configure: fixed failed check because the function
396 rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
397 who submitted the patch for gpsim.
398 * debugger/mcs51/configure.in: removed the result message
399 * debugger/mcs51/Makefile.in: fixed the config.status warning
400 "... seems to ignore the --datarootdir setting"
402 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
404 * device/include/mcs51/c8051f020.h,
405 * device/include/mcs51/c8051f040.h,
406 * device/include/mcs51/c8051f060.h,
407 * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
408 * src/z80/gen.c (gencjneshort),
409 * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
411 2006-10-31 Borut Razem <borut.razem AT siol.net>
413 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
414 debugger/mcs51/configure: get readline version
416 2006-10-30 Borut Razem <borut.razem AT siol.net>
418 * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
419 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
420 debugger/mcs51/configure: locate readline even when cross compiling
421 * support/scripts/sdcc.nsi: include readline5.dll into the setup package
423 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
425 * device/include/mcs51/serial_IO.h: putchar() and getchar() using
428 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
430 * device/include/malloc.h,
431 * device/lib/calloc.c,
433 * device/lib/malloc.c,
434 * device/lib/realloc.c: moved definition of struct into sources
435 * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
437 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
439 * as/asx8051.dsp: corrected output directories
440 * as/link/hc08: new directory for hc08 linker
441 * as/hc08/aslink.h, as/link/aslink.h,
442 * as/hc08/aslink.mak, as/link/hc08/aslink.mak,
443 * as/hc08/clean.mk, as/link/hc08/clean.mk,
444 * as/hc08/link_hc08.dsp, as/link/hc08/link_hc08.dsp,
445 * as/hc08/lkaomf51.c, as/link/hc08/lkaomf51.c,
446 * as/hc08/lkarea.c, as/link/hc08/lkarea.c,
447 * as/hc08/lkdata.c, as/link/hc08/lkdata.c,
448 * as/hc08/lkelf.c, as/link/hc08/lkelf.c,
449 * as/hc08/lkihx.c, as/link/hc08/lkihx.c,
450 * as/hc08/lklibr.c, as/link/hc08/lklibr.c,
451 * as/hc08/lkmain.c, as/link/hc08/lkmain.c,
452 * as/hc08/lkmem.c, as/link/hc08/lkmem.c,
453 * as/hc08/lkrloc.c, as/link/hc08/lkrloc.c,
454 * as/hc08/lks19.c, as/link/hc08/lks19.c,
455 * as/hc08/Makefile.aslink, as/link/hc08/Makefile.aslink,
456 * as/hc08/Makefile.bcc, as/link/hc08/Makefile.bcc,
457 * as/hc08/Makefile.in, as/link/hc08/Makefile.in,
458 * as/link/hc08/conf.mk,
462 * sdcc.dsw: moved hc08 linker to as/link/hc08
463 * as/hc08/lkeval.c, as/link/mcs51/lkeval.c, as/link/lkeval.c,
464 * as/hc08/lkhead.c, as/link/mcs51/lkhead.c, as/link/lkhead.c,
465 * as/hc08/lklex.c, as/link/mcs51/lklex.c, as/link/lklex.c,
466 * as/hc08/lklist.c, as/link/mcs51/lklist.c, as/link/lklist.c,
467 * as/hc08/lknoice.c, as/link/mcs51/lknoice.c, as/link/lknoice.c,
468 * as/hc08/lksym.c, as/link/mcs51/lksym.c, as/link/lksym.c,
469 * as/link/mcs51/aslink.dsp,
470 * as/link/mcs51/Makefile.in: factored out the common files
471 * as/hc08/lkstore.c: deleted, use the one already in as/link/
472 * as/clean.mk: extra cleaning common files
473 * as/link/mcs51/strcmpi.c, as/strcmpi.c: moved
474 * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
475 * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
477 2006-10-29 Raphael Neider <rneider AT web.de>
479 * src/pic/ralloc.c (newReg): create aliases for registers with
480 multiple names to fix #1579535 and #1584001,
481 (regWithIdx,dirregWithName): resolve aliases on lookup
482 * src/pic/pcode.c (DoBankSelect): die with error message on failing
484 * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
485 to prevent build errors on small devices
487 2006-10-28 Raphael Neider <rneider AT web.de>
489 * src/pic/gen.c (genFunction,genCall): drop "same code page"
490 assumption within interrupt handlers, fixes #1584940
491 * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
492 "emitted" to avoid emitting them again in udata
494 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
496 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
499 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
501 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
502 Initialize uart only if SM0 and SM1 are zero. Also, use flag to turn
503 on/off CR to CRLF conversion.
505 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
507 * doc/sdccman.lyx: updated IRQ section
509 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
511 * device/lib/serial_io.c: removed
512 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
513 replacements for serial_io.c
515 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
517 * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
519 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
521 * device/lib/serial_io.c: Default putchar() and getchar() for
522 mcs51 uses serial port.
524 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
526 * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
528 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
530 * support/regression/ports/mcs51/support.c: smaller
531 _sdcc_external_startup()
532 * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
534 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
536 * device/lib/gbz80/crt0.s,
537 * device/lib/gbz80/crt0_rle.s,
538 * device/lib/gbz80/div.s,
539 * device/lib/gbz80/fstubs.s,
540 * device/lib/gbz80/heap.s,
541 * device/lib/gbz80/mul.s,
542 * device/lib/gbz80/putchar.s,
543 * device/lib/gbz80/stubs.s,
544 * device/lib/z80/crt0.s,
545 * device/lib/z80/crt0_rle.s,
546 * device/lib/z80/div.s,
547 * device/lib/z80/fstubs.s,
548 * device/lib/z80/heap.s,
549 * device/lib/z80/mul.s,
550 * device/lib/z80/putchar.s,
551 * device/lib/z80/stubs.s: reverted, I was mistaken
553 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
555 * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
556 * support/regression/ports/mcs51/support.c: removed race
557 condition on TI in _putchar allowing to use serial port mode 0
559 2006-10-20 Borut Razem <borut.razem AT siol.net>
561 * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
563 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
565 * device/lib/gbz80/crt0.s,
566 * device/lib/gbz80/crt0_rle.s,
567 * device/lib/gbz80/div.s,
568 * device/lib/gbz80/fstubs.s,
569 * device/lib/gbz80/heap.s,
570 * device/lib/gbz80/mul.s,
571 * device/lib/gbz80/putchar.s,
572 * device/lib/gbz80/stubs.s,
573 * device/lib/z80/crt0.s,
574 * device/lib/z80/crt0_rle.s,
575 * device/lib/z80/div.s,
576 * device/lib/z80/fstubs.s,
577 * device/lib/z80/heap.s,
578 * device/lib/z80/mul.s,
579 * device/lib/z80/putchar.s,
580 * device/lib/z80/stubs.s: removed all leading underscores from area names
582 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
584 * support/regression/ports/mcs51/support.c: use highest baudrate so the
585 regression tests are not waiting in the simulator for simulated
586 transmission of debug output
588 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
590 * device/lib/printf_large.c: slightly smaller
591 * doc/sdccman.lyx: do not use spaces within html links
593 2006-10-16 Borut Razem <borut.razem AT siol.net>
595 * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
596 debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
597 debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
598 debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
599 debugger/mcs51/configure:
600 [ 1185668 ] add gnu readline support to sdcdb - enabled
602 2006-10-16 Raphael Neider <rneider AT web.de>
604 * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
605 fixes #1577882, removes close to all banking optimizations
607 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
609 * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
610 variables in code memory
611 * support/regression/tests/absolute.c: added test for this
613 2006-10-15 Raphael Neider <rneider AT web.de>
615 * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
617 (BankSelect): emit BANKSEL before touching linker-placed regs,
620 2006-10-10 Raphael Neider <rneider AT web.de>
622 * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
623 * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
624 * src/pic/main.c (_pic14_parseOptions),
625 * src/pic/main.h: mostly reverted to previous state, now use results
626 from SDCCmain.c's argument parsing
628 2006-10-10 Borut Razem <borut.razem AT siol.net>
630 * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
631 debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
632 [ 1185668 ] add gnu readline support to sdcdb -
633 prepared for READLINE, not enabled yet,
634 thanks to <tal.bav AT gmail.com>
636 2006-10-10 Raphael Neider <rneider AT web.de>
638 * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
639 * src/pic16/devices.inc,
640 * device/include/pic16 (pic18f[24]620.h),
641 * device/include/pic18fregs.h,
642 * device/lib/pic16/pics.all,
643 * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
644 18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
645 Gary Plumbridge and Anton Strobl
647 2006-10-10 Raphael Neider <rneider AT web.de>
649 * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
650 --stack-siz=NUM options to configure the argument passing stack
651 * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
652 * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
653 (pic14_getSharebankSize): obey --stack-siz=NUM,
654 (pic14_getSharebankAddress): obey --stack-loc=NUM
656 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
658 * doc/sdccman.lyx: added to the manual
659 * doc/figures/ddd_example.png: added (neither pdflatex nor
660 most browsers seem to like the .eps file)
662 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
664 * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
665 to /tmp and /var/tmp acc. LSB
666 * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
668 * support/regression/tests/onebyte.c: added test
670 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
672 * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
674 2006-10-05 Borut Razem <borut.razem AT siol.net>
676 * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
678 - sdcc.dsw: changed property eol-style to CRLF
679 - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
681 2006-10-04 Raphael Neider <rneider AT web.de>
683 * device/include/pic/{pic16f84.h,pic16f84a.h},
684 * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
685 from patch #1522504, thanks to Robas Teodor
687 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
689 * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
692 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
694 * src/pic16/glue.c (pic16emitMaps),
695 * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
696 * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
697 * device/lib/pic16/libc/string/memcpypgm2ram.c,
698 * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
700 * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
701 * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
703 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
705 * support/librarian/sdcclib.c: Added option -l.
706 * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
708 * device/lib/make51lib.bat: added. Allows building mcs51 libraries easily
709 using Windows command prompt.
711 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
713 * device/lib/libsdcc.lib: added module rand
714 * src/ds390/ralloc.c (rematStr),
715 * src/hc08/ralloc.c (rematStr),
716 * src/mcs51/ralloc.c (rematStr),
717 * src/z80/ralloc.c (rematStr): made output more consistent
718 * src/mcs51/gen.c: cosmetic changes
720 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
722 * src/port.h: added mem.cabs_name to PORT
729 * src/z80/main.c: added cabs_name initializers
730 * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
732 (emitMaps): emit absolutes in code memory into cabs_name
734 * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
735 * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
736 * support/regression/fwk/include/testfwk.h: added define for at
737 * support/regression/tests/absolute.c: added, new
739 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
741 * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
742 optimizations, see also patch 887161 by Stas Sergeev
743 * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
744 to be necessary anymore,
745 (102, 103, 104, 127): renamed all occurances of bp to _bp
747 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
749 * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
750 thanks Weston T. Schmidt for patch 1555221
751 * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
752 * src/SDCCicode.c(geniCodeMultiply): small optimization
754 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
756 * device/include/stdlib.h: added rand prototypes
757 * device/lib/rand.c: new, added
758 * device/lib/Makefile.in: added rand.c
760 * src/z80/peeph-gbz80.def,
761 * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
763 2006-09-20 Raphael Neider <rneider AT web.de>
765 * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
767 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
769 * as/link/aslink.h: cosmetic changes
770 * as/link/mcs51/Makefile.in,
771 * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
773 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
776 * as/link/mcs51/aslink.h,
777 * as/link/z80/aslink.h: merged and moved to as/link/
779 * as/link/mcs51/lkstore.c: moved to as/link/
780 * as/link/clean.mk: remove *.o
781 * as/link/mcs51/alloc.h: deleted
782 * as/link/mcs51/lkarea.c: added lnksect prototype
783 * as/link/mcs51/lkdata.c,
784 * as/link/mcs51/lklex.c,
785 * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
786 * as/link/mcs51/lkmem.c,
787 * as/link/mcs51/lknoice.c: removed include strcmpi.h
788 * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
789 * as/link/mcs51/aslink.dsp,
790 * as/link/mcs51/Makefile.aslink,
791 * as/link/mcs51/Makefile.bcc,
792 * as/link/mcs51/Makefile.in: updated for moved files
793 * as/link/z80/lkarea.c,
794 * as/link/z80/lkhead.c,
795 * as/link/z80/lklex.c,
796 * as/link/z80/lklibr.c,
797 * as/link/z80/lklist.c,
798 * as/link/z80/lkmain.c,
799 * as/link/z80/lkrloc.c,
800 * as/link/z80/lksym.c: synced with mcs51
801 * as/link/z80/lkdata.c,
802 * as/link/z80/lkeval.c,
803 * as/link/z80/lkihx.c,
804 * as/link/z80/lks19.c: cosmetic changes
805 * as/link/z80/Makefile.in,
806 * as/link/z80/linkgbz80.dsp,
807 * as/link/z80/linkz80.dsp: updated for moved files
809 2006-09-16 Borut Razem <borut.razem AT siol.net>
811 * debugger/mcs51/sdcdb.c: partially fixed
812 [ 1203664 ] sdcdb fails to open files w. two "." periods
813 * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
814 debugger/mcs51/symtab.h: fixed indenting
815 * configure.in, configure: up to date with latest Maarten's changes
817 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
820 as/aslink.dsp, as/link/mcs51/aslink.dsp,
821 as/link/mcs51/aslink.h, as/mcs51/aslink.h,
822 as/link/mcs51/aslink.mak, as/mcs51/aslink.mak,
823 as/link/mcs51/lkaomf51.c, as/mcs51/lkaomf51.c,
824 as/link/mcs51/lkarea.c, as/mcs51/lkarea.c,
825 as/link/mcs51/lkdata.c, as/mcs51/lkdata.c,
826 as/link/mcs51/lkeval.c, as/mcs51/lkeval.c,
827 as/link/mcs51/lkhead.c, as/mcs51/lkhead.c,
828 as/link/mcs51/lkihx.c, as/mcs51/lkihx.c,
829 as/link/mcs51/lklex.c, as/mcs51/lklex.c,
830 as/link/mcs51/lklibr.c, as/mcs51/lklibr.c,
831 as/link/mcs51/lklist.c, as/mcs51/lklist.c,
832 as/link/mcs51/lkmain.c, as/mcs51/lkmain.c,
833 as/link/mcs51/lkmem.c, as/mcs51/lkmem.c,
834 as/link/mcs51/lknoice.c, as/mcs51/lknoice.c,
835 as/link/mcs51/lkrloc.c, as/mcs51/lkrloc.c,
836 as/link/mcs51/lks19.c, as/mcs51/lks19.c,
837 as/link/mcs51/lkstore.c, as/mcs51/lkstore.c,
838 as/link/mcs51/lksym.c, as/mcs51/lksym.c,
839 as/link/mcs51/Makefile.aslink, as/mcs51/Makefile.aslink,
840 as/link/mcs51/alloc.h,
841 as/link/mcs51/clean.mk,
842 as/link/mcs51/conf.mk,
843 as/link/mcs51/Makefile.bcc,
844 as/link/mcs51/Makefile.in,
845 as/link/mcs51/readme.390,
846 as/link/mcs51/strcmpi.c,
847 as/link/mcs51/strcmpi.h,
849 as/mcs51/Makefile.bcc,
850 as/mcs51/Makefile.in,
853 sdcc.dsw: moved mcs51 linker to as/link/mcs51
855 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
858 * as/link/Makefile.in,
859 * as/link/z80/linkgbz80.dsp,
860 * as/link/z80/linkz80.dsp,
870 * link/z80/linkgbz80.dsp,
871 * link/z80/linkz80.dsp,
886 * link/z80/Makefile.in,
888 * sdcc.dsw: moved link/ to as/link/
890 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
892 * as/mcs51/i51mch.c (machine): fixed warning
894 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
896 * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
898 2006-09-09 Borut Razem <borut.razem AT siol.net>
900 * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
901 sdcdb WIN32 native port
902 * src/clean.mk: fixed
904 2006-09-08 Borut Razem <borut.razem AT siol.net>
906 * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
908 2006-09-08 Raphael Neider <rneider AT web.de>
910 * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
911 * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
912 to gplink to disable processor mismatch warning and to allow
913 the use of devices with only aliased (shared) memory banks,
914 (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
916 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
918 * doc/sdccman.lyx: Some re-formating plus example on using
919 #pragma preproc_asm +/-
921 2006-09-07 Borut Razem <borut.razem AT siol.net>
923 * support/scripts/sdcc.nsi: added SDCDB executables in a separate
926 2006-09-06 Borut Razem <borut.razem AT siol.net>
928 * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
930 * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
932 2006-09-05 Borut Razem <borut.razem AT siol.net>
934 * configure.in, configure: support for winsock2
935 * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
936 debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
937 debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
938 debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
939 debugger/mcs51/symtab.h: sdcdb WIN32 native port
941 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
943 * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
945 * support/regression/tests/bug1551947.c: new, added
946 * src/SDCCsymt.h: strings are char* not byte*
948 2006-09-05 Raphael Neider <rneider AT web.de>
950 * device/lib/pic16/libdev/pic18f4550.c,
951 device/include/pic16/pic18f4550.h: added PORTD/TRISD
952 declarations/definitions from patch #1520949
954 2006-09-05 Raphael Neider <rneider AT web.de>
956 * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
957 byte-aligned bitfields, fixes #1539278
959 2006-09-05 Raphael Neider <rneider AT web.de>
961 * src/pic/gen.c (genReceive): skip unreferenced arguments,
964 2006-09-04 Borut Razem <borut.razem AT siol.net>
966 * support/scripts/sdcc.nsi: move ucSim executables to a separate section
967 * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
968 -mno-cygwin is a part of the compiler name
969 * support/scripts/sdcc_mingw32: don't disable ucsim
971 2006-09-03 Borut Razem <borut.razem AT siol.net>
973 * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
974 * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
976 2006-09-03 Raphael Neider <rneider AT web.de>
979 * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
980 indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
983 2006-09-01 Borut Razem <borut.razem AT siol.net>
985 * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
986 to make ppc-osx happy
988 2006-08-31 Borut Razem <borut.razem AT siol.net>
990 * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
991 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
992 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
993 * support/regression/ports/ds390/spec.mk,
994 support/regression/ports/mcs51/spec.mk,
995 support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
996 To run regression tests in mingw environment:
997 make DEV_NULL=NUL CC=gcc
999 2006-08-30 Borut Razem <borut.razem AT siol.net>
1001 * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
1002 sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
1003 sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
1004 sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
1005 sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
1006 sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
1007 sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
1008 sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
1009 sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
1010 sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
1011 sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
1012 sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
1013 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
1014 sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
1015 sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
1016 sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
1017 sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
1018 sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
1019 sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
1020 sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
1021 sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
1022 sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
1023 sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
1024 sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
1025 sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
1026 sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
1027 sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
1028 sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
1029 sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
1030 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
1031 sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
1032 sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
1033 sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
1034 sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
1035 sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
1036 sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
1037 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1038 sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
1039 sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
1040 ucsim WIN32 native port
1042 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1044 * doc/sdccman.lyx: added note on dynamic memory heap initialization
1046 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
1048 * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
1049 * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
1051 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
1053 * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
1054 * support/regression/tests/bug1546986.c: new, added
1055 * as/mcs51/.cvsignore,
1056 * debugger/mcs51/.cvsignore,
1057 * src/.cvsignore: deleted
1059 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1061 * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
1064 2006-08-20 Borut Razem <borut.razem AT siol.net>
1066 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
1067 removed cl_listen_console::match(), cl_console::match(),
1068 restructured cl_commander::proc_input()
1070 2006-08-16 Borut Razem <borut.razem AT siol.net>
1072 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
1073 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
1074 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
1076 2006-08-14 Borut Razem <borut.razem AT siol.net>
1078 * support/regression/Makefile.in,
1079 support/regression/ports/pic14/gpsim.cmd,
1080 support/regression/ports/pic14/spec.mk,
1081 support/regression/ports/pic14/support.c:
1082 added pic14 regression test
1084 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
1086 * as/doc/asxhtm.html: documented changed ABS behaviour
1087 * as/doc/README: fixed some typos
1089 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
1091 * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
1094 2006-08-12 Borut Razem <borut.razem AT siol.net>
1096 * support/regression/fwk/include/testfwk.h,
1097 support/regression/fwk/lib/testfwk.c,
1098 support/regression/generate-cases.py,
1099 support/regression/Makefile.in:
1100 regression test framework does not depend on function pointers and
1103 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
1105 * device/include/stddef.h: c temporary hack to fix bug 1518273
1107 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1109 * device/include/mcs51/cc2510fx.h: added
1110 * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
1113 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
1115 * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
1116 * as/z80/Makefile.in: added strcmpi.c
1117 * as/z80/z80adr.c: added upper case registers and lower case conditionals
1118 * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
1120 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
1122 * device/lib/gbz80/asm_strings.s,
1123 * device/lib/gbz80/crt0_rle.s,
1124 * device/lib/gbz80/div.s,
1125 * device/lib/gbz80/mul.s,
1126 * device/lib/gbz80/shift.s,
1127 * device/lib/z80/asm_strings.s,
1128 * device/lib/z80/crt0_rle.s,
1129 * device/lib/z80/div.s,
1130 * device/lib/z80/mul.s,
1131 * device/lib/z80/shift.s: changed to all lower case menmonics except the
1132 flags which are all upper case
1134 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
1136 * as/z80/asm.h: made CASE_SENSITIVE 1
1137 * link/z80/aslink.h: made CASE_SENSITIVE 1
1138 * src/z80/gen.c (throughout): made all conditionals upper case
1139 * support/regression/tests/bug1503067.c: new
1141 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
1143 * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
1144 (shiftIntoPair): added case 2 for PAIR_IY,
1145 (setupToPreserveCarry): replaced parameters with iCode and check if
1146 PAIR_DE is in use to fix bug 1399290,
1147 (genPlus, genMinus): updated call to setupToPreserveCarry
1148 * support/regression/tests/bug1399290.c: new
1150 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
1152 * device/lib/Makefile.in (Z80SOURCES): enabled float support
1153 * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
1154 * src/ds390/gen.c (shiftRLong),
1155 * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
1156 * src/mcs51/gen.c (sameReg): changed to sameByte,
1157 (xch_a_aopGet): new,
1158 (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
1159 shiftRLong): fixed bug 1533966
1160 * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
1161 genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
1162 * support/regression/Makefile.in: disabled z80, enabled ucz80
1163 * support/regression/tests/float_trans.c: enabled test for z80 and host
1164 * support/regression/tests/shifts2.c: new, for testing bug 1533966
1166 2006-08-01 Borut Razem <borut.razem AT siol.net>
1168 * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
1169 comparison is always false due to limited range of data type
1170 on PPC64 machine (openpower-linux1) where "char = unsigned char"
1172 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
1174 * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
1175 * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
1176 * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
1177 * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
1179 2006-07-31 Borut Razem <borut.razem AT siol.net>
1181 * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
1182 sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
1183 sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
1184 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
1185 sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
1186 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
1187 sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
1188 sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
1189 enable ucsim mingw compilation. Serial port is disabled,
1190 since it uses termios.h API, which is not available on native
1193 2006-07-31 Borut Razem <borut.razem AT siol.net>
1195 * Small Device C Compiler 2.6.0 released
1196 * support/scripts/sdcc.nsi: added FULL_DOC option
1197 * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
1199 2006-07-28 Borut Razem <borut.razem AT siol.net>
1201 * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
1202 * doc/INSTALL.txt: updated
1204 2006-07-27 Borut Razem <borut.razem AT siol.net>
1206 * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
1207 device/lib/pic/libdev/Makefile.in: fixed bug
1208 [ 1438354 ] pic libsdcc: distclean doesn't work
1209 * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
1210 device/lib/pic16/libio/Makefile.in: fixed bug
1211 [ 1438344 ] pic16 lib: clean doesn't work properly
1212 * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
1214 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
1216 * device/lib/pic/libsdcc/fsdiv.c,
1217 * device/lib/pic/libsdcc/fsmul.c,
1218 * device/lib/pic16/libsdcc/float/fsdiv.c,
1219 * device/lib/pic16/libsdcc/float/fsmul.c,
1220 * device/lib/_fsdiv.c,
1221 * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
1222 * support/regression/tests/bug1520966.c: added
1223 * doc/knownbugs.html: removed [ 1520966 ] from the list
1225 2006-07-25 Borut Razem <borut.razem AT siol.net>
1227 * configure.in, configure, sdccconf_in.h: fixed bug
1228 [ 1519095 ] regression test onebyte.c fails on ppc64 host
1229 * doc/knownbugs.html: removed [ 1519095 ] from the list
1231 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
1233 * doc/knownbugs.html: added, contains list of known bugs at release
1234 * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
1236 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
1238 * device/include/mcs51/compiler.h: added SFRX for xdata based special
1239 function registers and corrected defaults with additional warning
1240 * device/lib/malloc.c: cosmetic changes
1241 * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
1242 * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
1243 (fillGaps): and used it
1245 2006-07-20 Raphael Neider <rneider AT web.de>
1247 * src/pic/device.c (addMemRange,assignRegister): suppress verbose
1248 output unless SDCCPICDEBUG is set
1249 * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
1250 output if SILENT is set
1252 2006-07-11 Borut Razem <borut.razem AT siol.net>
1254 * doc/README.txt: updated
1256 2006-07-10 Borut Razem <borut.razem AT siol.net>
1258 * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
1259 device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
1260 in WIN32 installation
1261 * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
1264 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
1266 * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
1267 * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
1269 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
1271 * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
1273 2006-07-06 Borut Razem <borut.razem AT siol.net>
1275 * support/regression/tests/bitfields.c:
1276 fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
1277 * support/regression/tests/constantRange.c:
1278 fixed bug [ 1518317 ] regression test constantRange fails on alpha host
1280 2006-07-04 Borut Razem <borut.razem AT siol.net>
1282 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
1284 src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
1285 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
1286 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
1287 reverted changes from 2006-07-03
1288 * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
1289 * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
1290 added CPPFLAGS, used by the host port
1292 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
1294 * support/regression/valdiag/tests/switch.c,
1295 * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
1296 * support/regression/tests/libmullong.c: fixed for host
1297 * support/regression/ports/host/spec.mk: disable all warnings for host,
1298 SDCC runs with --less-pedantic too
1300 2006-07-03 Borut Razem <borut.razem AT siol.net>
1302 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
1304 * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
1305 * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
1306 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
1307 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
1309 * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
1310 sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1311 sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1312 sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
1314 2006-07-02 Raphael Neider <rneider AT web.de>
1316 * src/pic16/devices.inc,
1317 * device/include/pic16/pic18fregs.h,
1318 * device/include/pic16/pic18f4550.h,
1319 * device/lib/pic16/pics.all,
1320 * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
1322 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
1324 * as/hc08/lkaomf51.c (OutputName),
1325 * as/mcs51/lkaomf51.c (OutputName),
1326 * as/z80/asmain.c (asmbl),
1327 * src/ds390/main.c (asmLineNodeFromLineNode),
1328 * src/hc08/ralloc.c (hc08_assignRegisters),
1329 * src/mcs51/main.c (asmLineNodeFromLineNode),
1330 * src/xa51/ralloc.c (checkRegMask),
1331 * src/xa51/gen.c (emitcode),
1332 * src/z80/gen.c (_emit2),
1333 * src/SDCCast.c (searchLitOp),
1335 * support/packihx/packihx.c,
1336 * support/Util/MySystem.c (split_command): fix gcc 4 warnings
1337 * src/ds390/gen.c (aopPutUsesAcc),
1338 * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
1339 * support/regression/tests/libmullong.c (mullong_wrapper),
1340 * src/SDCCsymt.c (powof2),
1342 * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
1343 * src/SDCCsymt.h: added TYPE_TARGET_*
1344 * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
1345 * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
1346 SDCCast because 1) header problems 2) this is the right place
1347 * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
1348 * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
1351 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
1353 * src/SDCCicode.h: removed buggy semicolon in unused macro
1354 * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
1355 search for previous definiton of auto symbols too,
1356 (findPrevUse): fixed logic of emitWarnings
1358 2006-06-26 Raphael Neider <rneider AT web.de>
1360 * src/pic16/gen.c (genFunction, genEndFunction): also preserve
1361 PCLATH and PCLATU on interrupts, potentially fixes #1505141
1363 2006-06-25 Raphael Neider <rneider AT web.de>
1365 * device/lib/pic/libm: NEW, added math library functions
1366 * device/lib/pic/libsdcc: NEW; added float support functions
1367 * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
1368 * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
1369 NEW, added math related headers
1370 * device/include/asm/pic/features.h: NEW
1371 * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
1372 (popGet): allow larger offsets for AOP_PCODE,
1373 (genDataPointerSet): handle literals explicitly, more debug output,
1374 (genAssign): fixed for float using aopLiteral ;-)
1375 * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
1376 GOTO initialisation routine
1377 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
1378 flag on registers, fixes #1469043 (local variables do not work)
1379 * src/pic/main.c (_pic14_do_link),
1380 * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
1383 2006-06-25 Borut Razem <borut.razem AT siol.net>
1385 * device/lib/pic16/libc/stdio/sprintf.c: return the number of
1386 characters printed (not including the trailing '\0' used to end
1387 output to strings). Problem detected in regression test bug-927659.c.
1388 NOTE: printf() family functions should return int instead
1390 * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
1391 specifier are printed as themselves
1392 * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
1393 support flags, width and precision specifiers
1395 2006-06-24 Borut Razem <borut.razem AT siol.net>
1397 * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
1398 to the list of sdcc tagrets not supporting bit type
1399 * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
1400 testfor pic16 due to bug:
1401 [ 1511794 ] pic16: regression test bug-895992.c fails
1403 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
1405 * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
1406 * src/SDCCglue.c (initPointer), fixed bug 1496419
1407 * support/regression/tests/bug1496419.c: new, added
1409 2006-06-22 Borut Razem <borut.razem AT siol.net>
1411 * support/regression/ports/pic16/support.c: use gpsim usart module from
1412 libgpsim_modules library
1414 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1416 * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
1419 2006-06-19 Raphael Neider <rneider AT web.de>
1421 * src/pic/glue.h,src/pic16/glue.h: added prototypes
1422 * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
1423 pic1x_emitSymbolIfNew): NEW, check for a string in a set,
1424 (pic14printExterns,pic14printPublics,pic16printPublics,
1425 pic16_printExterns): use new functions to emit symbols
1426 (picglue,pic16glue): emit publics before emitting externs
1427 * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
1428 locally defined functions to avoid bug #1443651
1429 * support/regression/tests/bug-716242.c: removed pic16 workaround
1430 * support/regression/ports/pic16/spec.mk: ignore errors during build
1432 2006-06-19 Raphael Neider <rneider AT web.de>
1434 * src/pic/glue.h: added pic14aopLiteral prototype
1435 * src/pic/glue.c (pic14aopLiteral): return unsigned int
1436 * src/pic/gen.c: removed stdint.h dependency
1437 (aopGet): use Safe_strdup()
1438 (bitpatternFromVal): removed, replaced use with pic14aopLiteral
1439 (genDataPointerSet): use pic14aopLiteral()
1440 * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
1441 for pic16; thanks to Bernhard and Maarten
1443 2006-06-18 Borut Razem <borut.razem AT siol.net>
1445 * support/regression/tests/structflexarray.c: flexible array members
1446 not supported by gcc < 3
1447 * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
1449 * src/pic/gen.c: don't include [p]strdin.h on solaris
1450 * support/Util/pstdint.h: addad svn attributes
1451 * support/regression/tests/constantRange.c,
1452 support/regression/tests/rotate.c: include inttypes.h instead
1453 stdint.h on solaris, addad svn attributes
1455 2006-06-18 Raphael Neider <rneider AT web.de>
1457 * src/SDCCsymt.c (initCSupport): change return type of divschar to
1459 * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
1460 (pic16_genMinusBits): simplified sign-extension
1461 (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
1462 pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
1463 adjusted to correctly handle mixed-signed operands, disabled
1464 now unused multiplciation routines
1465 * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
1466 (assignResultValue): added argument denoting the size of the result
1467 as returned by the function (fixes upcasts in assigning from
1468 function calls: char foo(); int i = foo();)
1469 (genCall,genPcall,genGenPointerGet,genReceive): pass size of
1470 function result to assignResultValue
1471 (genMult): disabled inlined multiplication code
1472 (genDiv): augmented to also handle the modulus operator, fixed to
1473 handle mixed-signed operands correctly
1474 (genMod): simply call genDiv, disabled unused code
1475 (genAssign): fixed missing (sign-)extension on result
1476 * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
1477 valid char operands, allow signed operands for native code, added
1478 division and modulo operator handling
1479 * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
1481 As a consequence, onebyte.c (if split into two files) and muldiv.c
1482 pass regression tests.
1484 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1486 * doc/Makefile.in: two runs of makeindex seem needed to get
1487 correct page references in the index of sdccman.pdf
1488 * doc/sdccman.lyx: mentioned cmon51, added links, small changes
1490 2006-06-17 Borut Razem <borut.razem AT siol.net>
1492 * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
1494 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1496 * doc/sdccman.lyx: updated, added (porting source code, debugging),
1497 mentioned ec2drv and paulmon
1499 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1501 * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
1502 consecutive abs areas
1503 (find_empty_space, allocate_space): added map to handle codemap or
1505 (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
1506 absolute idata and xdata
1507 * as/mcs51/lkmem.c (summary2): updated legend
1509 2006-06-16 Raphael Neider <rneider AT web.de>
1511 * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
1513 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
1515 * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
1517 * src/SDCClrange.c (findPrevUse): fixed bug 1294475
1519 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
1521 * src/port.h (struct PORT): added field gp_tags, to hold the tag
1522 value of generic pointers,
1532 src/z80/main.c: PORT structure, added elements for gp_tags field,
1533 * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
1534 fields in the PORT structure of each port,
1535 * src/SDCCast.c (decorateType): allow processing of generic pointers
1536 for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
1539 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
1545 * src/pic16/pcode.c,
1547 * src/pic/pcoderegs.c,
1550 * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
1551 bug 1504689 on minGW
1553 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1555 * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
1557 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
1559 * src/SDCCast.c (backPatchLabels): fixed bug #1504636
1561 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
1563 * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
1566 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
1568 * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
1569 to a char variable. Fixed bug #1504211
1570 * device/include/pic16/adc.h,
1571 device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
1572 and fixed bug #1364390
1574 2006-06-10 Borut Razem <borut.razem AT siol.net>
1576 * CVSROOT: removed the CVS left-over
1578 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1580 * as/hc08/asmain.c (asexit),
1581 * as/hc08/lkmain.c (lkexit),
1582 * as/mcs51/asmain.c (asexit),
1583 * as/mcs51/lkmain.c (lkexit),
1584 * src/SDCCglue.c (DEFSETFUNC),
1585 * src/SDCCmain.c (linkEdit, assemble),
1586 * support/librarian/sdcclib.c (AddRel),
1587 replaced unlink() by standard C remove()
1588 * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
1589 * src/SDCCast.c (replaceAstWithTemporary, createRMW,
1590 gatherImplicitVariables): new, added to fix bug 608752,
1591 (createFunction): added gatherImplicitVariables()
1592 * src/SDCCast.h: added createRMW prototype
1593 * src/SDCCsymt.h (struct symbol): added infertype
1594 * support/regression/tests/bug608752.c: new, added
1596 2006-06-10 Raphael Neider <rneider AT web.de>
1598 * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
1599 multibyte dummy reads (fixes #1503234)
1601 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1603 * device/include/mcs51/compiler.h: new, added header file to enable
1604 creating common sfr definition header files for different compilers
1606 2006-06-05 Raphael Neider <rneider AT web.de>
1608 * src/pic16/{pcode.h,genarith.c}:
1609 introduced pCodeOp combining any two pCodeOps (previously only
1610 two register operands could be combined), removed pcop2 from
1611 pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
1612 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
1613 * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
1614 rewritten to use new PO_TWO_OPS
1615 * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
1616 * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
1617 (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
1618 (pic16_newpCodeOp2): NEW, create combined pCodeOp,
1619 (pic16_get_op): embraced return arg to allow #define return(x),
1620 added new case for combined opcodes
1621 (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
1622 (pic16_pCode2str,pic16_getRegFrompCodeOp,
1623 pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
1625 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
1627 * src/SDCCval.c (checkConstantRange): added
1628 * src/SDCCval.h: added checkConstantRange
1629 * support/Util/SDCCerr.c,
1630 * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
1631 W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
1632 * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
1633 * src/SDCCast.c (decorateType): added checkConstantRange,
1634 added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
1635 can be emitted with the correct always true/false warning,
1636 added optimization for double '!';
1637 result of decorateType() must be assigned back to the tree, because
1638 decorateType() can change the tree
1639 * src/SDCCicode.c (geniCodeLogic),
1640 (geniCodeAssign): replaced new checkConstantRange, added warnings,
1641 (checkConstantRange): removed, it was only a fragment which never
1643 * src/SDCCsymt.c (computeType): fixed promotion for
1644 "-1 < (unsigned bit) b"
1645 * src/pic/ralloc.c (packRegsForAssign),
1646 * src/pic16/ralloc.c (packRegsForAssign),
1647 * src/hc08/ralloc.c (packRegsForAssign),
1648 * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
1650 * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
1651 * support/regression/tests/constantRange.c: added
1652 * support/valdiag/tests/constantRange.c: added
1653 * support/valdiag/valdiag.py: added -DPORT_HOST=1
1655 2006-06-02 Borut Razem <borut.razem AT siol.net>
1657 * support/regression/ports/pic16/support.c: increase stack size
1659 * support/regression/Makefile.in: sort tests by name so that the
1660 resutlts can be compared on different machines / platforms
1662 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1664 * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
1665 * src/ds390/gen.c (emitLabel): new, added,
1666 (genDjnz): fixed stack overflow bug,
1667 (throughout): cosmetic changes to sync with mcs51/gen.c,
1668 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
1669 * src/mcs51/gen.c (genEndFunction): small optimization,
1670 (throughout): cosmetic changes to sync with ds390/gen.c
1672 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1674 * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
1675 (_print_format): fixed printing pointers
1676 * src/mcs51/gen.c (emitLabel, movb): new, added,
1677 (genAssign): small optimization,
1678 (genDjnz): fixed stack overflow bug,
1679 (throughout): replaced sprintf with SNPRINTF,
1680 replaced mcs51_regWithIdx with REG_WITH_INDEX,
1681 replaced emitcode("mov", "b,...") with MOVB(...),
1682 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
1683 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
1684 * src/mcs51/peeph.def: added rules 140 and 264
1685 * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
1686 so they may get optimized into registers
1688 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
1690 * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
1691 immediately when encountered,
1692 (printUsage): always use stderr even on windows
1694 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
1696 * src/SDCCast.c (isLoopCountable): fixed bug #1478316
1697 (processParms): fixed bug #1247551
1698 * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
1699 parseCmdLine, main): print '--version' to stdout,
1700 print 'help' to stdout if --help is given,
1701 print 'help' to stderr and exit with EXIT_FAILURE if no or bad
1702 arguments are given; fixed --help
1704 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
1706 * src/SDCCcse.c (findPointerSet): fixed bug #1493710
1707 * support/regression/tests/bug-1493710.c: added
1709 2006-05-27 Borut Razem <borut.razem AT siol.net>
1711 * support/regression/fwk/lib/testfwk.c: define array in _printn() as
1713 * support/regression/ports/pic16/support.c: increase stack size
1714 from default 64 bytes to 128 bytes
1715 * support/regression/tests/staticinit.c,
1716 support/regression/tests/float.c: regression tests fully enabled
1717 for pic16 port by putting the initialized data arrays into the code
1719 * support/regression/ports/pic16/spec.mk: don't link default libraries.
1720 This was changed by mistake in the previous version.
1722 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
1724 * src/pic16/gen.c (genFunction, genEndFunction): some
1725 beautifications, fixed bug with falsely restoring FSR2 in large
1726 stack model, thanks to Beau E. Cox for reporting the bug
1728 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
1730 * debugger/mcs51/break.c,
1731 * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
1732 use %p to print pointers, made address variables unsigned
1733 * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
1734 * debugger/mcs51/symtab.c (parseSymbol): must return something
1735 * src/mcs51/gen.c (aopForSym): small optimization,
1736 moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
1737 (freeAsmop): added missing break,
1738 (aopPut): removed parameter bvolatile, determine it inside the function,
1739 (saveRegisters, unsaveRegisters): small optimization,
1740 (genIpush): removed pointless check,
1741 (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
1742 replaced sprintf with SNPRINTF,
1743 replaced strcpy with strncpyz,
1744 updated aopPut calls,
1745 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
1746 * src/mcs51/ralloc.h: added declarations mcs51_ptrRegReq and mcs51_nRegs
1748 2006-05-24 Borut Razem <borut.razem AT siol.net>
1750 * support/regression/tests/bug-221100.c: fixed xdata problem caused by
1751 modification of test for the pic16 port, put the array to the code
1752 memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
1754 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1756 * src/pic/gen.c: MSC 6 does not have <stdint.h>. Use pstdint.h instead.
1757 * support/Util/pstdint.h: added
1759 2006-05-22 Borut Razem <borut.razem AT siol.net>
1761 * src/regression/Makefile: removed bool2.c test, added -q linker option
1762 * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
1763 src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
1764 src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
1765 src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
1766 src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
1767 src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
1768 src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
1769 src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
1770 define SUPPORT_BIT_TYPES 0, removed unused bit variables
1772 2006-05-22 Raphael Neider <rneider AT web.de>
1774 * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
1775 bug #1492360 (problematic due to generic pointers, see code)
1777 2006-05-22 Borut Razem <borut.razem AT siol.net>
1779 * support/regression/ports/pic16/specs.mk: removed stack size linker
1781 * support/regression/tests/array.c,
1782 support/regression/tests/bitopcse.c,
1783 support/regression/tests/bug-908454.c,
1784 support/regression/tests/malloc.c: modified for pic16 regression test
1785 * support/regression/tests/bitfields.c:
1786 pic16 - excluded bitfileds of size > 8
1787 * support/regression/tests/bp.c: pic16 - reduced data size
1788 * support/regression/tests/bug-221100.c: pic16 - reduced data size
1789 * support/regression/tests/bug-460010.c:
1790 pic16 - used the absolute address the fits in memory
1791 * support/regression/tests/bug-716242.c:
1792 bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
1793 * support/regression/tests/float.c:
1794 pic16 - excluded - data size too big
1795 * support/regression/tests/onebyte.c:
1796 pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
1797 * support/regression/tests/shifts.c:
1798 pic16 - function names probably have to differ in first X characters
1800 * support/regression/tests/staticinit.c:
1801 pic16 - excluded some tests due error: no target memory available for
1804 2006-05-22 Borut Razem <borut.razem AT siol.net>
1806 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
1807 second try. Thanks Stas Sergeev once more.
1809 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1811 * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
1812 (genLeftShift, genRightShift): fixed bug 1491627
1813 * src/hc08/peeph.def (rules 7, 8.x): added
1814 * support/regression/tests/shifts.c (ShiftLeftByParam,
1815 ShiftRightByParam, testShiftByParam): added to test variable shifting
1817 2006-05-20 Raphael Neider <rneider AT web.de>
1819 * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
1820 * src/pic16/ralloc.c (newReg): use correct name in hashtable,
1821 (allocReg): add only new registers to dynAllocRegs,
1822 (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
1823 #1489055, #1445850, and probably #1483693
1825 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
1827 * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
1828 bug in for-loop that didn't emit the last of CONFIG and ID registers
1830 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
1832 * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
1834 * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
1835 1489016, 1434401 and 1490124
1836 * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
1837 1489016, 1434401 and 1490124
1839 2006-05-17 Borut Razem <borut.razem AT siol.net>
1841 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
1844 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
1846 * device/include/mcs51/P89c51RD2.h,
1847 * device/include/mcs51/P89LPC901.h,
1848 * device/include/mcs51/P89LPC922.h,
1849 * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
1851 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
1853 * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
1854 to fix missing stack pragma in compiled binary object file,
1856 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
1858 * support/packihx/configure.in,
1859 * support/packihx/configure: removed warning, autoconf >= 2.5x can
1860 determine sizeof basic types even while cross compiling
1862 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
1864 * src/avr/gen.c (aopop),
1865 * src/ds390/gen.c (aopOp),
1866 * src/hc08/gen.c (aopOp),
1867 * src/mcs51/gen.c (aopop),
1868 * src/pic16/gen.c (pic16_aopOp),
1869 * src/pic/gen.c (aopOp),
1870 * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
1871 if size of operand is smaller than spill location
1873 2006-05-12 Borut Razem <borut.razem AT siol.net>
1875 * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
1876 have to have CR/LF line endings even if they are checked out on *nix
1877 or on WIN32 in cygwin binmode
1879 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
1881 * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
1882 * device/include/ds80c390.h: added sfr16 definitions
1886 * src/ds390/ralloc.c,
1887 * src/ds390/ralloc.h: changes all over the place to sync with mcs51
1888 fixing several bugs and adding sfr16/sfr32, reentrant bit params,
1889 bit returning functions
1890 * support/regression/tests/sfr16.c: enabled test on ds390
1892 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1894 * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
1895 * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
1897 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1899 * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
1900 * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
1901 (cl_address_space constructor): removed expensive initialization,
1902 (cl_address_space::get_cell): extended for late initialization,
1903 (cl_address_space::*): use late initialization,
1904 (cl_address_decoder::activate): removed expensive initialization,
1905 This reduced regression test running time by 25%
1907 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
1915 * support/packihx/Makefile.in,
1916 * support/packihx/clean.mk,
1917 * support/packihx/Makefile.bcc,
1918 * support/packihx/PackIhx.dsp: moved packihx to support/packihx
1920 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1922 * src/SDCCval.c (valNot): fix for regression test failure
1923 of not.c on big endian hosts
1925 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1927 * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
1929 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1931 * device/lib/mcs51/Makefile.in: changed string comparison operator
1932 to = for POSIX compliance; == is bash extension
1934 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
1936 * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
1939 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
1941 * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
1942 allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
1943 * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
1944 * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
1945 bug report #1478657,
1947 2006-05-05 Borut Razem <borut.razem AT siol.net>
1949 * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
1952 2006-05-02 Borut Razem <borut.razem AT siol.net>
1954 * doc/Makefile.in: removed *.ind dependency since there is no rule to
1955 create *.ind, which made make to fail if invoked with -j 2
1957 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
1959 * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
1960 Hubert Sack for patch 1479782
1962 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
1964 * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
1966 2006-05-01 Raphael Neider <rneider AT web.de>
1968 * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
1969 (create_pic): store only prefix-free device name,
1970 (init_pic): check for device names with "16" prefix,
1972 * src/pic/device.h (struct PIC_device),
1973 * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
1975 * device/include/pic/pic12f{635,675,629,683}.h,
1976 * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
1977 * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
1978 * device/include/pic/pic16f505.h,
1979 * device/lib/pic/libdev/pic16f505.c: removed
1980 * device/include/pic/pic14devices.txt: added support for pic12f
1981 devices, removed unsupported non 16-bit devices
1982 [above changes provided by patch from Zik Saleeba]
1983 * src/pic/*, src/pic16/*, device/include/pic16/*,
1984 device/lib/pic/**, device/lib/pic16/**: obfuscated email address
1986 2006-05-01 Borut Razem <borut.razem AT siol.net>
1988 * configure.in, configure, doc/Makefile.in:
1989 sync with nightly build makefile - latex, dvipdf and dvips
1992 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
1994 * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
1995 in the library source
1997 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
1999 * support/regression/ports/hc08/spec.mk: fixed bug 1478892
2001 2006-04-28 Raphael Neider <rneider AT web.de>
2003 * src/pic16/pcode.c (pic16_newpCodeOpLit12),
2004 * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
2005 (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
2006 * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
2008 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
2010 * device/lib/pic/libdev/Makefile.in,
2011 * device/lib/hc08/Makefile.in,
2012 * device/lib/gbz80/Makefile.in,
2013 * device/lib/z80/Makefile.in,
2014 * device/lib/ds390/Makefile.in,
2015 * device/lib/ds400/Makefile.in: added srcdir to include search path,
2016 thanks to Borut for the bug report
2018 * configure: always create doc/Makefile independent from --enable-doc
2019 * Makefile.in: always install from directory doc independent from
2021 * device/lib/pic/Makefile.in: added libdev again, it was erroneously
2023 * device/lib/pic/libdev/Makefile.in: fixed VPATH build
2024 * doc/Makefile.in: install *.txt if present
2025 * device/include/Makefile.in (install): added installation of pic/*.inc
2026 and pic/*.txt files again, they were erroneously removed
2028 2006-04-28 Raphael Neider <rneider AT web.de>
2030 * src/pic/{gen.c,main.h,pcode.c},
2031 * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
2032 concerning signedness with casts
2034 2006-04-28 Raphael Neider <rneider AT web.de>
2036 * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
2037 definition of an interrupt handler,
2038 * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
2039 interrupt handler stuff from picglue() to separate routine,
2040 (picglue): enabled definition of intr handlers in files w/o main()
2042 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2044 * support/librarian/sdcclib.c: moved include <limits.h> up to enable
2045 compilation with MSVC 2005 Express Edition (VC8)
2047 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
2049 * device/lib/Makefile: fixed build of gbz80 lib
2051 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2053 * support/regression/tests/bug-460010.c,
2054 * support/regression/tests/bug-524691.c,
2055 * support/regression/tests/bug-716242.c: removed conditional defines
2056 that are already in testfwk.h
2058 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2060 * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
2061 (AccAXRsh1): added, shift right by 1,
2062 (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
2064 * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
2066 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
2068 * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
2069 remove cast to same type
2070 * src/SDCCast.c (decorateType): fix for RFE 1475742,
2071 optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
2073 * link/z80/Makefile: removed, they have moved to
2076 * configure.in: replaced duplicate message about ucsim by missing sdcpp
2077 * install-sh: fix bug #1204398 by setting umask 0022
2078 * device/lib/Makefile: separate build of z80 and gbz80 lib
2080 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
2082 Enabled VPATH feature: changed nearly all Makefiles (149 files).
2083 See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
2085 One basic decision: e.g. src/clean.mk includes further files. In order
2086 to make this work there are two solutions:
2087 - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
2088 run configure on them. This way they can use
2089 'include $(srcdir)/port-clean.mk'
2090 - always include clean.mk by the Makefile at the same level. To avoid
2091 that `make clean` tries to include and build Makefile.dep the
2092 MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
2093 implemented, because now even `make uninstall` doesn't create
2094 Makefile.in. clean.mk could be eliminated by pasting it in
2097 * debugger/mcs51/Makefile.in: build own objects from library sources
2098 (SLIB, SDCC) in current directory
2100 * configure, configure.in: renamed --disable-device-lib-build in
2101 --disable-device-lib; added --enable-doc, the required tools are
2102 searched by configure; added result message; the toolchain for the
2103 belonging ports are now only built, if the port is enabled.
2105 * support/regression/*: all output is written in directory gen, because
2106 the fwk and ports directories don't livet in the build tree using vpath
2108 * doc/sdccman.lyx: renamed --disable-device-lib-build to
2109 --disable-device-lib, added --enable-doc, added section VPATH
2111 * sim/ucsim/configure.in,
2112 * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
2113 z80 are enabled by default
2115 2006-04-24 Raphael Neider <rneider AT web.de>
2117 * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
2118 to config word, "pic14_"-prefixed some extern functions
2119 (pic14_emitConfigWord): emit __config directive(s) if assignment to
2120 config word has been found
2121 * src/pic/device.h: added prototypes
2122 * src/pic/pcode.c: added "pic14_"-prefix where needed
2123 * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
2125 * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
2127 (pic14emitRegularMap): ignore config words,
2128 (pic14createInterruptVect): moved generating __config directives away
2129 (picglue): have __config directives emitted
2131 2006-04-24 Borut Razem <borut.razem AT siol.net>
2133 * doc/Makefile: sync with nightly build makefile
2135 2006-04-24 Raphael Neider <rneider AT web.de>
2137 * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
2138 registers that have not been assigned proper liveranges,
2139 fixes #1469504 and #1474602,
2140 (pCodeRegOptimizeRegUsage): fixed typo in comment
2142 2006-04-24 Borut Razem <borut.razem AT siol.net>
2144 * device/examples/main8051.c: deleted - it was removed from CVS
2145 24.mar.2000 and after that modified 18.feb.2001, so it reappered
2146 after the transition to Subversion
2147 * src/SDCCalloc.h: deleted - it was removed from CVS
2148 3.feb.2001 and after that modified 18.feb.2001, so it reappered
2149 after the transition to Subversion
2150 * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
2151 sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
2152 sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
2153 sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
2155 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
2157 * as/asx8051.dsp: added mcs51/strcmpi.h
2158 * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
2159 * as/hc08/aslink.h: updated lnksect prototype
2161 * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
2163 * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
2164 (newdot): handle A_ABS
2166 * as/mcs51/asout.c (outarea): output address
2167 * as/hc08/lkaomf51.c,
2168 * as/mcs51/lkaomf51.c: disabled unused array UsageType
2170 * as/mcs51/i51pst.c,
2171 * as/z80/z80pst.c: "ABS" is not A_OVR
2172 * as/hc08/lkarea.c (newarea): read a_addr,
2173 (lnkarea): added codemap array, sort absolute areas to the front,
2174 combine all GSINITx/GSFINAL,
2175 (find_empty_space, allocate_space): new functions,
2176 (lnksect): return next address, handle absolute sections
2177 * as/mcs51/lkarea.c (newarea): read a_addr,
2178 lnksect2 prototype changed,
2179 (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
2180 (find_empty_space, allocate_space): new, factored out of lnksect2,
2181 (lnksect2): return next address, handle absolute sections
2183 * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
2184 * as/hc08/lklibr.c (addfile, fndsym),
2185 * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
2186 index out of range and detect both '\' and '/'
2187 * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
2188 * device/include/stdbool.h: removed SDCC_ds390 from check to pass
2189 regression tests (ds390 cannot return bool yet)
2190 * doc/sdccman.lyx: changed version number, document changed --no-peep,
2191 document critical interrupts on z80, document changed SDCC define
2192 * src/asm.c (_asxxxx_mapping): fixed .org directive,
2193 (_a390_mapping): added .org directive
2194 * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
2195 (genMultOneByte): fixed warnings
2196 * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
2198 * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
2199 * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
2200 (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
2201 * src/pic16/gen.h: changed prototype for pic16_popGetLabel
2202 * src/pic16/main.c: removed newReg prototype
2203 * src/pic16/pcode.c,
2204 * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
2206 * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
2208 * src/pic16/ralloc.c
2209 * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
2211 * src/pic/pcode.c (allocInternalRegister): changed parameter optype
2212 from short to PIC_OPTYPE
2213 * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
2214 * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
2215 optype from short to PIC_OPTYPE
2216 * src/port.h: made int_size unsigned to fix warnings
2217 * src/SDCC.y: fixed warning on MSVC
2218 * src/SDCCicode.c (getArraySizePtr): return unsigned int
2219 * src/SDCCopt.c (convertToFcall): fixed warnings
2220 * src/SDCCsymt.h: removed double prototype for genSymName
2221 * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
2222 offset int to fix warnings
2224 2006-04-22 Borut Razem <borut.razem AT siol.net>
2226 * doc/sdccman.lyx, */Makefile, */Makefile.in:
2227 references to CVS replaced with Subversion
2229 2006-04-21 Borut Razem <borut.razem AT siol.net>
2231 * doc/sdccman.lyx, */Makefile, */Makefile.in:
2232 references to CVS replaced with Subversion
2234 2006-04-19 Borut Razem <borut.razem AT siol.net>
2236 * src/version.awk: adapted for svn
2237 * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
2238 sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
2239 sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
2240 /binutils-avr/etc/*.vi, *.jin: removed all properties
2241 support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
2243 2006-04-19 Borut Razem <borut.razem AT siol.net>
2245 * CVS to Subversion migration completed
2247 2006-04-18 Borut Razem <borut.razem AT siol.net>
2249 * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
2250 ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
2252 2006-04-17 Borut Razem <borut.razem AT siol.net>
2254 * device/include/Makefile.in: added pic/*.inc to the installation
2256 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
2258 * support/regression/collate-results.py: fixed output in case of
2260 * support/regression/generate-cases.py: fixed splitting of pathnames
2262 * as/hc08/lklibr.c (addfile),
2263 * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
2265 2006-04-11 Raphael Neider <rneider AT web.de>
2267 * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
2268 * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
2269 * src/pic16/pcode.c (assignValnums): fixed #1460578
2271 2006-04-11 Raphael Neider <rneider AT web.de>
2273 * device/lib/pic/libdev/*.c,
2274 * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
2275 fixes #1468739, enables compilation in --std-c99 mode
2276 * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
2278 2006-04-11 Raphael Neider <rneider AT web.de>
2280 * src/pic/device.c (find_device): removed debug output
2281 (list_valid_pics): enabled verbose listing of supported devices
2282 * device/include/stdbool.h: define bool as char for pic14/16 as well
2284 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2286 * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
2288 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2290 * .version: bumped version to 2.5.6
2291 * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
2293 2006-04-06 Raphael Neider <rneider AT web.de>
2295 * .version: bumped version to 2.5.6 (pic14 ABI changed)
2296 * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
2297 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
2298 pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
2299 pic14_constructAbsMap
2300 (pic14printPublics): declare absolute global symbols as global
2301 (pic14createInterruptVect),
2302 * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
2303 (newReg): assume new registers unused, use correct name in
2304 hashtable (reg->name instead of name), more debugLog output
2305 * src/pic/device.h (PIC_device): added fields for verbose output
2306 * src/pic/device.c: moved device definition to pic14devices.txt,
2307 added routines for runtime parsing of pic14devices.txt,
2308 added support for second config word
2309 * src/pic/main.c (_process_pragma): removed #pragma maxram,
2310 (_pic14_keywords): no longer accept "bit" and "sbit" keywords
2311 (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
2312 (_pic14_parseOptions): moved pCodeInitRegisters here
2313 (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
2314 * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
2315 (pCodeInitRegisters): rewrapped comments, perpared new approach to
2316 handling the pseudo stack
2317 * device/lib/Makefile.in: ignore failures in objects-pic16,
2318 * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
2319 * device/lib/pic/NEWS: document new dependency on picXXX.lib
2320 * device/lib/pic/Makefile.subdir,
2321 * device/lib/pic16/Makefile.subdir: improved clean rules
2322 * device/lib/pic/libdev/: NEW, pic14 device libraries
2323 * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
2324 * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
2325 * device/include/Makefile.in: create subdir and install pic14 headers
2326 * device/include/pic/p16f_common.inc: removed unused declarations
2327 * device/include/pic/pic16*.h: added header files for 100+ 14 bit
2328 PICs from inc2h.pl v1.6,
2329 replaced BIT_AT macros with struct declarations
2330 * device/include/pic/pic14devices.txt: definition of supported devices,
2331 all above improvements contributed by Zik Saleeba, thanks
2332 * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
2333 * support/scripts/sdcc.nsi: also install pic14 device libraries and
2336 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2338 * device/include/mcs51/c8051f410.h: added interrupt numbers,
2339 * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
2340 thanks to Charles Olds
2342 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2344 * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
2346 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2348 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
2349 * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
2350 * support/regression/bug1464657.c: added, new test
2352 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
2354 * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
2357 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
2359 * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
2360 --no-peep and --peep-file <file> are used don't use default rules but
2363 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
2365 * src/mcs51/gen.c (genCall): fixed bug 1457608
2367 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2369 * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
2370 changes seem to cause (trigger?) problems with the build system.
2372 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
2374 * src/SDCCpeeph.c (operandsLiteral): new, added,
2375 (callFuncByName): inserted operandsLiteral
2376 * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
2378 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2380 * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
2381 * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
2383 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2385 * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
2386 implemented patch 1120823 Thanks to Willy De la Court (normal
2387 interrupts need an interrupt number now if they are made critical),
2388 and enabled nesting of critical functions though not for gbz80
2389 (genCritical, genEndCritical): added functions
2390 (genZ80Code): added cases for CRITICAL and ENDCRITICAL
2391 * src/z80/mappings.i: added "ei" to all mappings
2393 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2395 * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
2396 submitted by the Debian SDCC maintainer Aurelien Jarno:
2397 "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
2398 archive with gcc 4.1 on mips and wrote the patch"
2400 2006-03-16 Raphael Neider <rneider AT web.de>
2402 * src/pic16/genarith.c (genAddLit): simplified and fixed case where
2403 the left operand is shorter than the result (c* = lit-c* + int),
2405 * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
2408 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
2410 * src/.version: increased version number to 2.5.5
2411 * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
2412 linking is done manually in pic16 port's _linkEdit,
2413 * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
2414 PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
2415 * src/pic16/gen.c (aopForSym): when direct register name is WREG then
2416 allocate asmop as AOP_ACC,
2417 (aopForRemat): added parameter 'bool result' in function declaration,
2418 (pic16_aopGet): return AOP_ACC when accessing WREG,
2419 (pic16_popGetTempReg): minor modification,
2420 (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
2421 'pic16_allocWithIdx',
2422 (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
2423 calling function in absolute addresses,
2424 (genAssign): take into account AOP_ACC asmop,
2425 * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
2426 * src/pic16/pcoderegs.c: some debug functions and lines added,
2427 * src/pic16/ralloc.c (decodeRegType): added but commented out,
2428 * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
2430 * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
2431 call to allocReg, not by manually allocating a new one,
2432 (pic16_assignRegisters): now before going through the register
2433 allocating functions mark all registers as free. This eliminates some
2434 side effects resulting from peephole parser done earlier in the backbone
2436 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
2438 * src/SDCCicode.c (geniCodeLogic),
2439 * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
2441 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
2443 * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
2444 (genSend): bugfix, do not allocate and free twice,
2445 (shiftRLong): handle partially overlapping aops
2446 * support/regression/tests/bitopcse.c: fixed warning redefined idata
2448 2006-03-08 Borut Razem <borut.razem AT siol.net>
2450 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
2453 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
2455 * support/regression/tests/bug1409955.c: new, added
2456 * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
2457 * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
2458 (aopForSym, aopOp): increment asmop.allocated if reused,
2459 (freeAsmop): decrement asmop.allocated and check for zero instead of
2461 (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
2462 (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
2463 genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
2464 genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
2465 genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
2466 genSignedRightShift, genRightShift, genDataPointerGet,
2467 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
2468 genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
2469 in reverse order from allocation,
2470 (genPlus, genCmpEq): free asmop's in reverse order from allocation and
2471 added swappedLR to keep track
2472 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
2473 pdata & code for GCC, z80, gbz80 & hc08
2474 * support/regression/tests/zeropad.c: moved defines to testfwk.h
2476 2006-03-08 Raphael Neider <rneider AT web.de>
2478 * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
2480 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
2482 * device/include/mcs51/c8051f410.h: new SiLabs mcu
2483 * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
2484 * support/regression/tests/array.c: added parenthesis, made arrays unsigned
2486 2006-03-06 Borut Razem <borut.razem AT siol.net>
2488 * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
2489 made the linker quiet
2491 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2493 * src/pic16/gen.c (genPcall): fixed bug #1443644
2494 * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
2495 which dumps before the function entry point a data byte which represents
2496 the number of the local variables used by the specified function, added
2497 'xinst' for initial support for Extended Instruction Support,
2498 * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
2499 (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
2500 port->fun_prefix anymore (may change later),
2501 (genFunction, genEndFunction): do not store/restore local registers for
2502 _main (this should take care the --main-return command line option in
2504 (genOr): removed some legacy pic-port instructions,
2505 * src/pic16/genarith.c (genAddLit): re-enabled old code because
2506 performing operations with SFR's causes data to be written more than
2507 once to each SFR. Perhaps SFRs should be handled in special cases...
2508 * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
2510 * src/pic16/main.c (_process_pragma): stack bound checking did not take
2511 into account for stack starting position,
2512 (struct OPTIONS pic16_optionsTable): added command line argument
2513 --extended or -y for Extended Instruction Support,
2514 * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
2515 (deassignLRs): *** perhaps the most important change, old 'for' code
2516 (commented out for reference), didn't account for some registers which
2517 were left marked 'not free' after a pointer operation. The change
2518 reduces register usage a lot in some cases
2520 2006-03-04 Borut Razem <borut.razem AT siol.net>
2522 * support/regression/ports/hc08/spec.mk: remove *.asm in traget
2524 * support/regression/tests/bug-524697.c: decreased array size for
2525 mcs51 to fit into the internal RAM
2526 * support/regression/Makefile.in: a little bit more verbose
2528 2006-03-03 Borut Razem <borut.razem AT siol.net>
2530 * support/regression/fwk/lib/testfwk.c,
2531 support/regression/fwk/include/testfwk.h: introduced function
2532 _prints(), nonrecursive _printn(), call _initEmu() from main()
2533 * support/regression/ports/gbz80/support.asm,
2534 support/regression/ports/ucz80/support.asm,
2535 support/regression/ports/z80/support.asm,
2536 support/regression/ports/ds390/support.c,
2537 support/regression/ports/hc08/support.c,
2538 support/regression/ports/host/support.c,
2539 support/regression/ports/mcs51/support.c,
2540 support/regression/ports/xa51/support.c: added empty _initEmu()
2542 * support/regression/ports/pic16/gpsim.cmd,
2543 support/regression/ports/pic16/spec.mk,
2544 support/regression/ports/pic16/support.c,
2545 support/regression/Makefile.in: added pic16 regression test
2547 2006-03-01 Raphael Neider <rneider AT web.de>
2549 * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
2550 genConstPointerGet): use safe way of generating MOVFF to cover
2551 literals as well as registers, fixes bug #1440527
2552 * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
2554 (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
2555 more correctly, fixes bug #1232186
2556 (pic16_printIval): use pic16_printIvalUnion() for initialized unions
2557 * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
2558 gplink guess the correct processor in more cases, applied patch
2559 from Till Riedel attached to and fixing bug #1436552
2561 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2563 * support/regression/tests/array.c: added, contains check for #1434401
2564 * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
2566 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
2568 * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
2569 * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
2570 * device/include/mcs51/c8051f326.h,
2571 * device/include/mcs51/c8051f340.h: new SiLabs mcu's
2572 * device/include/mcs51/c8051f000.h,
2573 * device/include/mcs51/c8051f018.h,
2574 * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
2575 PCON_IDLE,PCON_STOP and added sfr16 definitions
2577 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2579 * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
2580 genGetWord): fixed bug 1409955
2582 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
2584 * device/include/hc08/mc68hc908gp32.h,
2585 * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
2587 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
2589 * src/SDCCast.c (constExprValue): return NULL if not a value
2590 * src/SDCCglue.c (printIvalArray): fixed bug 1225568
2591 * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
2592 * support/regression/tests/bitfields.c: enabled signed bitfield for all
2594 2006-02-13 Borut Razem <borut.razem AT siol.net>
2596 * src/regression/ptrarg.c: added, fails due to bug #1430967
2597 * src/regression/Makefile: ptrarg.c added, ...
2599 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2601 * src/z80/gen.c (genUnpackBits): fixed bug 1019480
2602 * support/regression/tests/bitfields.c: enabled signed bitfield for z80
2604 2006-02-11 Borut Razem <borut.razem AT siol.net>
2606 * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
2607 print "Processor: xxx" message to stdout only if --verbose
2609 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2611 * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
2612 * support/regression/tests/bug1426356.c: added
2613 * support/regression/tests/bitfields.c: removed 2 tests
2615 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
2617 * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
2618 * device/include/mcs51/c8051f330.h,
2619 * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
2620 PCON_IDLE,PCON_STOP and added sfr16 definitions
2621 * device/lib/_divsint.c,
2622 * device/lib/_divuint.c,
2623 * device/lib/_divulong.c,
2624 * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
2625 register bank bug for small stackauto
2627 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
2629 * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
2631 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
2633 * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
2634 * all.dsp: corrected several bin paths
2635 * device/include/mcs51/c8051f120.h,
2636 * device/include/mcs51/c8051f300.h,
2637 * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
2638 to PCON_IDLE,PCON_STOP
2639 * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
2640 * device/lib/printf_large.c (output_float): fixed bug 1388703
2641 * support/regression/tests/bug1057979.c: added test for bug 1388703
2643 2006-02-08 Raphael Neider <rneider AT web.de>
2645 * src/pic/pcode.c (pciTRIS): fixed typo,
2646 (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
2647 (LinkFlow): fixed handling of flows that end in a call,
2648 (ReuseReg): perform safety check earlier
2649 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
2650 to work with flows at the beginning of a pBlock,
2651 fixes #1426557 (Symbol not previously defined),
2652 (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
2654 (RemoveUnusedRegisters): update register usage info
2655 * src/pic/ralloc.c (newReg): prevent duplicate registers from being
2656 created, reuse existing ones instead
2657 * src/pic/gen.c (genPcall): fixed #1424719
2659 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
2661 * link/z80/lkmain.c,
2663 * link/z80/lkdata.c,
2664 * link/z80/aslink.h: fixed build on current cygwin:
2665 replaced getline() by lk_getline()
2667 2006-02-01 Borut Razem <borut.razem AT siol.net>
2669 * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
2670 src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
2671 src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
2672 src/regression/bool1.c, src/regression/bool2.c,
2673 src/regression/bool3.c, src/regression/call1.c,
2674 src/regression/compare.c, src/regression/compare10.c,
2675 src/regression/compare2.c, src/regression/compare3.c,
2676 src/regression/compare4.c, src/regression/compare5.c,
2677 src/regression/compare6.c, src/regression/compare7.c,
2678 src/regression/compare8.c, src/regression/compare9.c,
2679 src/regression/configword.c, src/regression/for.c,
2680 src/regression/inline.c, src/regression/mult1.c,
2681 src/regression/nestfor.c, src/regression/or1.c,
2682 src/regression/pointer1.c, src/regression/ptrfunc.c,
2683 src/regression/rotate1.c, src/regression/rotate2.c,
2684 src/regression/rotate3.c, src/regression/rotate4.c,
2685 src/regression/rotate5.c, src/regression/rotate6.c,
2686 src/regression/rotate7.c, src/regression/string1.c,
2687 src/regression/struct1.c, src/regression/sub.c,
2688 src/regression/sub2.c, src/regression/switch1.c,
2689 src/regression/while.c, src/regression/xor.c,
2690 src/regression/create_stc, src/regression/simulate,
2691 src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
2693 * src/regression/gpsim_assert.h: added
2695 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
2697 * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
2698 ((void (code *) (void)) 0) ();
2707 * as/mcs51/aslink.h,
2709 * as/mcs51/asmain.c,
2710 * as/mcs51/lkdata.c,
2712 * as/mcs51/lkmain.c,
2715 * as/z80/asmain.c: fixed build on current cygwin:
2716 replaced getline() by as_getline()
2718 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
2720 * src/SDCC.y: fixed bug #716242, exchanged pointer and function
2721 declarator in the symbol chain
2723 * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
2724 parameter list for function pointers
2725 * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
2726 * support/regression/tests/bug-716242.c: added
2728 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
2730 * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
2732 * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
2734 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
2736 * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
2737 inifinitely recurseable, added static
2738 * support/regression/tests/bug-1408066.c: added
2740 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
2743 * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
2744 renamed, added possibility to create "postLoopLbl"-labels
2745 * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
2746 newiTempLoopHeaderLabel
2747 * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
2748 isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
2749 addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
2750 hasNonPtrUse, loopInvariants, addressTaken, findInduction,
2751 findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
2752 (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
2753 (basicInduction): fixed bug #136564, made static,
2754 (loopInduction): changed parameter of basicInduction, made static,
2755 (addPostLoopBlock): added
2756 * src/SDCCloop.h: removed backEdges, pregion, pinduction,
2757 loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
2759 * support/regression/tests/bug-136564.c: added
2760 * support/regression/ports/mcs51-xstack-auto/spec.mk: added
2761 --std-sdcc99 to LIBSDCCFLAGS
2763 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
2765 * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
2767 * support/regression/tests/bug-1406131.c: added
2769 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
2771 * src/SDCCast.c (decorateType): fix promotion of unary minus
2772 * src/SDCCsymt.c (computeType): beautified
2773 * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
2774 (valUnaryPM, valComplement): fix sign and promotion,
2775 (valNot): ANSI: result type is int (SDCC: unsigned char)
2776 * support/regression/tests/uminus.c: speedup by removing superflous
2778 * support/regression/tests/onebyte.c: added promotion and signedness
2779 tests for unary minus
2780 * support/regressions/tests/bug-477927.c: disable warning about
2781 uninitialized variables
2782 * support/regression/tests/not.c: added
2784 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
2786 * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
2787 * src/mcs51/gen.c (gen51Code): show final register usage after
2788 fillGaps in asm with --i-code-in-asm
2789 * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
2790 markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
2791 incUsed, rliveClear, adjustIChain): made static,
2792 (setFromRange): excluded because it's unused,
2793 (findPrevUseSym, markWholeLoop): added,
2794 (findPrevUse): rewritten; fixes bug 895992; now a complete search
2795 through all branches of predecessors enables sdcc to emit the warning
2796 W_LOCAL_NOINIT, marking of outermost loop was incomplete,
2797 (rlivePoint): made static, added parameter emitWarnings which is only
2798 true during the first run out of two,
2799 (findRecursiveSucc, findRecursivePred): removed,
2800 (computeLiveRanges): made static, added parameter emitWarnings,
2801 (dumpIcRlive): added for debugging only
2802 * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
2803 removed prototype of setFromRange()
2804 * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
2805 in call of computeLiveRanges()
2806 * support/regression/tests/bug-895992.c: added
2807 * support/regression/tests/bug-971834.c: added
2808 * support/valdiag/tests/bug-895992.c: added
2809 * support/valdiag/tests/bug-971834.c: added
2811 2005-12-18 Raphael Neider <rneider AT web.de>
2813 * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
2814 (genUnpackBits): improved code for direct operands,
2815 (genPackBits): improved code for literal assignment to bitfields
2816 and for direct destination operands (no FSR indirection),
2817 prevented redundant AND, fixes #1362800,
2818 (AccLsh): added parameter to disable masking of the result
2819 * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
2820 skip instructions with side-effects (like incfsz),
2821 (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
2822 * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
2823 * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
2826 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
2828 * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
2829 volatile variables as spill location
2831 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
2833 * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
2835 * support/regression/tests/bug-1376320.c: added
2837 2005-12-08 Raphael Neider <rneider AT web.de>
2839 * src/pic/device.c: renamed is_shared to pic14_is_shared
2840 * src/pic/gen.c (genIfx): re-enabled handling of sbits
2841 * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
2842 (is_valid_identifier): added for above workaround
2844 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
2846 * device/lib/Makefile.in: fixed to enable port-specific-objects
2847 * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
2848 char, thanks Hubert Sack
2849 * doc/sdccman.lyx: documented --xstack-loc,
2850 elaborated a bit more on interrupts and pitfalls,
2851 removed "setjmp/longjmp unsupported",
2852 documented some unsupported C99 features
2853 * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
2854 * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
2855 if, thanks Hubert Sack
2856 * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
2857 * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
2859 * support/regression/get_ticks.py: new, get cpu cycles and code size, so
2860 regression tests can report resource usage (rfe 700441)
2861 * support/regression/collate-results.py: report resource usage
2862 * support/regression/ports/ds390/spec.mk,
2863 * support/regression/ports/hc08/spec.mk,
2864 * support/regression/ports/mcs51/spec.mk,
2865 * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
2866 * support/regression/ports/ds390/uCsim.cmd,
2867 * support/regression/ports/hc08/uCsim.cmd,
2868 * support/regression/ports/mcs51/uCsim.cmd,
2869 * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
2870 * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
2871 library, use the default one
2872 * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
2873 building the library
2875 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
2877 * config.dsp: added dependency on .version and configure_vc.awk
2878 * device/include/setjmp.h: updated for --stack-auto and --xstack
2879 * device/include/mcs51/at89c51snd1c.h: corrected line endings
2880 * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
2881 * device/lib/_setjmp.c: updated for --stack-auto and --xstack
2882 * device/lib/libsdcc.lib: added _setjmp
2883 * src/SDCCast.c (createIvalCharPtr): fixed warnings,
2884 (decorateType): fixed bug 1372851,
2885 (optimizeGetHbit): fixed warning
2886 * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
2887 array initialisation
2888 * support/regression/tests/bug1057979.c: added test for bug 1358192
2889 * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
2891 2005-12-03 Borut Razem <borut.razem AT siol.net>
2893 * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
2894 command since the NSIS was upgraded to version 2.11 on CF x86-linux2
2896 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2898 * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
2899 createIval): implement symbol independant "flexible array member",
2900 (createIvalCharPtr): implemented flexible array initialisation with a
2902 * src/SDCCsymt.c (copyStruct): removed,
2903 (getSize): fixed misleading comment,
2904 (getAllocSize): removed, the additional allocation size is now in
2905 sym->flexArrayLength,
2906 (checkStructFlexArray): new, syntax checks for flexible array members,
2907 (compStructSize): added syntax checks for "flexible array members"
2908 (copyStruct): removed,
2909 (copyLinkChain): removed inefficient fix for bug 770487
2910 * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
2911 * src/SDCCsymt.h: added structdef.b_flexArrayMember and
2912 symbol->flexArrayLength
2914 * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
2915 E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
2916 * support/regression/tests/structflexarray.c: added
2917 * support/valdiag/tests/structflexiblearray.c: added
2919 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
2921 * src/SDCCast.c (decorateType): fixed bug 1368489
2922 * support/Util/SDCCerr.c,
2923 * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
2925 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2927 * device/include/mcs51/at89c51snd1c.h: added file submitted by
2928 Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
2930 2005-11-27 Borut Razem <borut.razem AT siol.net>
2932 * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
2933 support/cpp2/mkdeps.h: added command line option
2934 -obj-ext=<extension> to SDCPP to define object file externion, used
2935 for generation of make dependencies (-M)
2936 * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
2938 2005-11-26 Borut Razem <borut.razem AT siol.net>
2940 * support/scripts/sdcc.nsi: added small-stack-auto libraries,
2941 added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
2942 added pic and pic16 libraries
2944 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2946 * device/include/float.h: Corrected typo in prototype of __fsgt
2948 2005-11-25 Borut Razem <borut.razem AT siol.net>
2950 * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
2951 added creation of model-mcs51-stack-auto libraries
2953 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
2955 * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
2957 * src/SDCCast.c (createIvalArray): removed obsolete comment
2959 2005-11-24 Borut Razem <borut.razem AT siol.net>
2961 * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
2962 added missing device/lib/mcs51/crt*.asm sources
2964 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
2966 * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
2968 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
2970 * device/lib/_fs2schar.c,
2971 * device/lib/_fs2sint.c,
2972 * device/lib/_fs2slong.c: optimized inline asm
2974 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2976 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2977 Better handling of floats between -1.0 and 0.0.
2979 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2981 * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
2982 (the missing "if"s prohibited removal of redundant labels)
2984 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2986 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
2987 Properly convert floats between -1.0 and 0.0 to long, int, and char
2988 types (max integer value of negative floats tends to zero).
2989 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
2990 Removed changes made so to work properly with floats between
2991 -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
2994 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
2996 * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
2997 * src/mcs51/gen.c (genUnpackBits): better code and a fix,
2998 (genCast) cosmetic change
2999 * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
3000 * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
3002 * support/regression/tests/bitfields (testSignedBitfields): added
3004 2005-11-18 Borut Razem <borut.razem AT siol.net>
3006 * sdcc/device/lib/Makefile.in: remove all unnecessary files
3007 * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
3008 introduced SILENT option to make building of pic16 libraries less
3010 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3012 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
3013 Now they work properly with floats between -1.0 and 0.0
3014 * device/lib/printf_large.c: Removed temporary patch for bug 1358192
3016 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3018 * src/SDCCicode.c (printOperand): added missing else
3020 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
3022 * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
3023 reformatted for better readability
3024 * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
3027 2005-11-17 Borut Razem <borut.razem AT siol.net>
3029 * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
3030 introduced SILENT option to make building of pic16 libraries less
3031 verbose - used for nightly snapshot build
3032 * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
3033 available on Win32 platforms.
3034 * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
3035 medium, large, pic and pic16
3037 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3039 * device/lib/printf_large.c: Temporary patch for bug 1358192:
3040 printf("%f"...) sets fraction to zero.
3042 2005-11-16 Raphael Neider <rneider AT web.de>
3044 * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
3046 * src/pic/gen.c (genIfx): implemented for CARRY bit
3047 * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
3048 to generic pointers, fixes #1357332,
3049 (pic16_movLit2f): NEW,
3050 (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
3052 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3054 * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
3056 2005-11-11 Raphael Neider <rneider AT web.de>
3058 * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
3059 * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
3060 compute pointer's type from operand,
3061 (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
3062 improved single bit reads, fixes bug #1353379
3064 2005-11-09 Borut Razem <borut.razem AT siol.net>
3066 * support/scripts/sdcc.nsi: added lib/pic to the package
3068 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
3070 * src/SDCCval.c (valUnaryPM): fixed bug 1350699
3072 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
3074 * support/regression/tests/bug1348008.c: added
3075 * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
3076 * support/regression/tests/bug1337835.c: updated comment
3078 2005-11-06 Borut Razem <borut.razem AT siol.net>
3080 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
3081 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
3082 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3083 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
3084 sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
3085 dynamic construction of cl_error_class and derivates - 2.nd try
3087 2005-11-05 Borut Razem <borut.razem AT siol.net>
3089 * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
3090 bug, which caused Bus Errors on sparc solaris
3092 2005-11-04 Borut Razem <borut.razem AT siol.net>
3094 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
3095 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
3096 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
3097 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
3098 sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
3099 and derivates to resolve the initialization problem on OSX
3101 2005-11-02 Borut Razem <borut.razem AT siol.net>
3103 * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
3104 corrected typo - #include <winsock2.h>
3106 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
3108 * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
3109 (_asxxxx_mapping): added org directive for future enhancements
3111 2005-11-01 Borut Razem <borut.razem AT siol.net>
3113 * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
3114 enabled sockets on WIN32
3115 * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
3117 2005-10-31 Borut Razem <borut.razem AT siol.net>
3119 * support/regression/generate-cases.py: escape backslashes in {testcase}:
3120 WIN32 backslash path delimiters should be escaped when used in C strings
3121 * support/regression/tests/bitfields.c: exclude failing assertions for
3122 __CYGWIN32__ and __MINGW32__ hosts
3124 2005-10-30 Borut Razem <borut.razem AT siol.net>
3126 * src/SDCCutil.c: corrected double comparison typo
3128 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
3130 * device/lib/medium/Makefile: added for new memory model medium
3131 * device/include/asm/mcs51/features.h: updated for medium/pdata
3132 * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
3133 added Multiply & Accumulate sbit's and MAC0_PAGE define
3134 * device/include/mcs51/c8051f300.h: added sfr16 definitions
3135 * device/include/mcs51/c8051f310.h: added sfr16 definitions
3136 * device/lib/_mullong.c: update for medium model
3137 * device/lib/incl.mk: added medium model
3138 * doc/sdccman.lyx: documented medium model
3139 * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
3140 * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
3141 * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
3142 * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
3143 (allocParms): set SCLS and OCLS to pdata for medium model
3144 * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
3146 (powof2): return <0 if not power of 2
3147 * src/avr/gen.c (genBitWise): use updated powof2
3148 * src/mcs51/gen.c (genMinusDec): use acc if necessary,
3149 (shiftR2Left2Result): small optimization in setup, save acc when storing,
3150 (shiftLLeftOrResult): use B if necessary
3151 * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
3152 * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
3153 * src/pic/main.c (_pic14_do_link): made void parameter list explicit
3154 * support/regression/Makefile.in: added test-mcs51-medium
3155 * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
3157 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
3159 * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
3161 * device/lib/time.c (mktime): fixed bug 1334315
3163 2005-10-28 Raphael Neider <rneider AT web.de>
3165 * device/include/pic/p16f_common.inc: added common declarations
3166 * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
3168 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
3170 * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
3171 (aopPutUsesAcc): added to predict accumulator use,
3172 (assignResultValue): save acc if necessary,
3173 (genMinusDec): store result if indirectly addressed,
3174 (genDivOneByte): save acc if necessary,
3175 (movLeft2Result): bugfix if left already in acc,
3176 (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
3177 attention to accumulator use (esp. pdata),
3178 (genReceive): receive pdata correctly
3179 * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
3180 * src/SDCCicode.h: added isOperandInPagedSpace prototype
3182 2005-10-27 Raphael Neider <rneider AT web.de>
3184 * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
3186 2005-10-27 Raphael Neider <rneider AT web.de>
3188 * .version: changed version to 2.5.4
3189 * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
3190 * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
3191 (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
3192 arithmetics support routines
3193 * device/lib/pic/Makefile.rules: have assembler sources preprocessed
3194 * device/lib/Makefile.in: also create installdir for pic
3196 * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
3198 * src/pic/device.c (dump_sfr): rewritten to delegate register
3199 placement to the linker (use `extern sym' rather than sym EQU addr),
3200 (validAddress): fixed to check last specified address
3201 * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
3202 (popGetLit): truncate literal value to 8 bit,
3203 (popGet): moved assert to more appropriate place
3204 (popGetExternal): create pCode operand from and mark the according
3205 symbol as being `extern'
3206 (popGetAddr): added sanity check on immediate's offset, provide
3207 GPOINTER tag on demand
3208 (aopPut): fixed for immediates,
3209 (mov2w_op): move operand's address or contents to WREG (depending on
3210 operand type), safer variant of mov2w,
3211 (movwf,call_libraryfunc): NEW, handy abbreviations,
3212 (get_argument_pcop,get_return_val_pcop,pass_argument,
3213 get_returnvalue): interface for accessing function parameters and
3215 (assignResultValuei,genRet): use new parameter/return value interface
3216 (pic14_getDataSize): back to old version handling generic pointers,
3217 (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
3218 provided implementation and/or fixed old one,
3219 (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
3220 calls, removed legacy 8051 reference code
3221 (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
3222 (loadSignToC): NEW, move the operands sign bit to CARRY,
3223 (genGenericShift): NEW, replaces genLeftShift, genRightShift and
3224 genRightShiftSigned, accepts negative shift counts,
3225 (setup_fsr): load FSR and adjust IRP (indirect memory access),
3226 (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
3227 generic pointers, __data pointers and __code pointers,
3228 (genUnpackBits,genPackBits): rewritten to work with generic pointers
3229 and signed bitfields, limit bitfields to 8 bit,
3230 (genDataPointerGet): fixed number of bytes read,
3231 (genGenPointerGet,genConstPointerGet): fixed bitfield access,
3232 (genPointerGet,genPointerSet): fixed handling of __code pointers,
3233 pointers to constant data are no longer assumed to point to __code
3234 space, removed invalid pointer types,
3235 (bitpatternFromVal): retrieve the PICs representation of an integer
3237 (genDataPointerSet): fixed assigning to po_immediate operands,
3238 (genGenPointerSet): implemented as library call,
3239 (genIfx): fixed incorrect condition,
3240 (genAddrOf): limit generic pointers' addresses to 2 bytes,
3241 provide GPOINTER tag according to destination's storage class,
3242 (genCast): added code to handle casting to generic pointers, added
3243 sign-/zero extension of the result
3244 (aop_isLitLike,op_isLitLike): fixed handling of immediates
3245 * src/pic/gen.h: added macros to access IRP bit in STATUS register
3246 * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
3248 * src/pic/glue.c (is_shared_address,is_shared): check whether a given
3249 address/register resides in the shared banks
3250 (emitSymbolToFile): improved to handle global and `pinned' symbols,
3251 put all variables into separate sections (have the linker arrange
3253 (picglue): put init code and interrupt handlers in separate sections
3254 * src/pic/main.c: added port specific options table, modified to PORT
3255 structure to make GPOINTERs 3 byte, added pic14_options
3256 (_pic14_do_link): private linking routine (update paths to libraries,
3257 add libsdcc.lib by default)
3258 * src/pic/main.h: declare pic14_options
3259 * src/pic/pcode.c: fixed instructions i/o relations,
3260 (RegCond): reverted to correct version,
3261 (newpCodeOpLit): truncate literals to 8 bit,
3262 (genericPrint): added debug output,
3263 (getRegFromInstruction): fixed for various operand types, simplified
3264 (BuildFlow): fixed broken handling of isntructions with labels
3265 (LinkFlow): start at last instruction in flow (skip trailing comments),
3266 pass the flow on to the next instruction after CALL
3267 (pCodeReplace): NEW, replace a pCode and move meta data to the new one
3268 (insertPCodeInstruction): fixed inserting after a skip instruction,
3269 (DoBankSelect): fixed for labeled instructions
3270 (OptimizepBlock): honor --nopeep switch
3271 (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
3272 * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
3273 * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
3274 (pCodeOptime2pCodes): allow disabling this optimization via
3275 --no-pcode-opt due seldomly occuring bugs, fixed some conditions
3276 but is still buggy), started implementation of a dataflow based
3277 pCode optimization (CSE + dead code elimination)
3278 (pCodeRegMapLiveRangesInFlow): removed bogus inCond
3279 * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
3280 names are independant of the stack location and therefore portable across
3283 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
3285 * src/mcs51/ralloc.c (bitType): added to detect bit variables,
3286 (selectSpil): fixed bug 1337835 by not spilling bit variables
3287 * support/regression/tests/bug1337835.c: added test for this bug
3288 * src/mcs51/peeph.def: restart after rule 3.c,
3289 addded rules 263.x to optimize loading constants
3291 2005-10-26 Raphael Neider <rneider AT web.de>
3293 * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
3294 * src/pic16/gen.c (genUnpackBits): support signed bitfields,
3295 (genAssign): emit warning when casting literals to generic pointer
3296 type, also applies when taking the address of a fixed variable,
3297 (genCast): improved casting to generic pointers
3298 * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
3299 extern variables, added verbose error message
3300 * device/include/pic16/{string.h,errno.h}: added #pragma library c
3302 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
3304 * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
3305 carry must be complemented too
3306 * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
3307 could be emitted by genMinus
3308 * src/SDCCval.c (constVal): fixed bug 1305065
3310 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
3312 * src/SDCCast.c (addCast): added promotion for bit variables
3313 (decorateType): emit W_COMPLEMENT before the problem vanishes behind
3314 promotion casts + optimisation
3315 (optimizeGetWord): fix warning 'i' might be used uninitialized
3316 * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
3317 * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
3319 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
3321 * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
3322 all chars are promoted to int; promotion should be handled in SDCCast.c
3324 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3326 * device/lib/_strcmp.c: Fixed bug 1326457
3328 2005-10-11 Raphael Neider <rneider AT web.de>
3330 * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
3331 * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
3333 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
3335 * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
3336 * support/regression/tests/sfr16.c: added test for the sfr32 bug
3338 2005-10-04 Raphael Neider <rneider AT web.de>
3340 * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
3341 device/lib/pic16/pics.all: added pic18f1320
3342 * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
3344 2005-09-30 Raphael Neider <rneider AT web.de>
3346 * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
3347 * src/pic16/devices.inc: NEW, provides device descriptions
3348 * src/pic16/gen.c (genInline): fixed handling of ';'-comments
3350 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
3352 * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
3355 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
3357 * doc/sdccman.lyx: updated Highest Order Bit documentation,
3358 documented Any Order Bit, Higher Order Byte and Higher Order Word
3359 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
3360 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
3361 (optimizeGetAbit): new, to get any bit, not only the high bit,
3362 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
3363 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
3364 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
3365 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
3366 RIGHT_OP: also try GETBYTE, GETWORD optimization,
3367 GETABIT, GETBYTE, GETWORD: decorate them,
3368 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
3369 (ast_print): added GETABIT, GETBYTE, GETWORD
3370 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
3371 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
3372 (geniCodeBinary): new generic binary icode,
3373 (ast2iCode): added GETABIT, GETBYTE, GETWORD
3374 * src/port.h: updated comment for PORT.hasExtBitOp
3375 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
3376 (genGetByte): new, to get a single byte,
3377 (genGetWord): new, to get a word from a long,
3378 (gen51Code): added GETABIT, GETBYTE, GETWORD
3379 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
3381 2005-09-23 Raphael Neider <rneider AT web.de>
3383 * configure.in, configure: have device/lib/pic configured
3384 * device/lib/Makefile.in: added model-pic14
3385 * device/lib/clean.mk: added pic/ to clean rule
3386 * device/lib/pic: added rudimentary pic14 library providing support
3387 functions for multiplication/division/generic pointer access
3388 * src/SDCCopt.c (convilong): mark support functions as extern
3389 for pic14 port as well
3390 * src/pic/gen.c (genMult): added assertions,
3391 (genpic14Code): emit warning on unhandled iCodes
3392 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
3393 * src/pic/pcode.c (pCodeOpCopy),
3394 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
3395 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
3396 SFR_REGISTER}), made safe for future extensions
3397 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
3398 instructions even if preceeded by SKIP instructions (also remove
3399 them); removed unused code
3400 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
3401 prevents leaving parts of the structure uninitialized after copying
3403 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
3405 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
3407 * support/regression/tests/addsub.c: added test for the bug
3409 2005-09-21 Raphael Neider <rneider AT web.de>
3411 * device/include/pic16/pic18f1220.h,
3412 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
3413 * device/lib/pic16/Makefile.rules: added missing opening paren
3414 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
3415 are provided in genutils.c,
3416 (genUminusFloat,genUminus,genCmpEq): added asserts on different
3417 operand/result sizes,
3418 (genCmp): assert on NULL pointers first, then check deref'ed values
3419 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
3422 2005-09-18 Raphael Neider <rneider AT web.de>
3424 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
3425 as these are now unused,
3426 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
3427 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
3428 local, avoids uninitialized pointer dereference on r->name
3429 * src/pic16/ralloc.c (newReg): fixed indentation
3431 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
3433 * src/SDCCval.c (constVal): fixed bug 730366
3434 * support/Util/SDCCerr.c,
3435 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
3437 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
3439 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
3441 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
3443 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
3445 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
3447 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
3448 (hex2dec): made hex_digit unsigned char, removed ascii dependance
3449 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
3450 (hex2dec): made hex_digit unsigned char, removed ascii dependance
3451 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
3452 * packihx/packihx.c (hexDigit): made c unsigned char
3453 * as/mcs51/lklibr.c (fndsym),
3454 * link/z80/lkgb.c (gb),
3455 * link/z80/lklibr.c (fndsym),
3456 * link/z80/lkrloc.c (relr),
3457 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
3458 * src/SDCC.lex (checkCurrFile, process_pragma),
3459 * src/SDCCglue.c (spacesToUnderscores),
3460 * src/SDCCmain.c (setParseWithComma, processFile),
3461 * src/asm.c (tvsprintf, printCLine),
3462 * src/avr/gen.c (emitcode, aopPut),
3463 * src/ds390/gen.c (emitcode),
3464 * src/hc08/gen.c (emitcode, emitinline),
3465 * src/mcs51/gen.c (emitcode, genInline),
3466 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
3468 * src/pic/ralloc.c (debugLog),
3469 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
3471 * src/pic16/ralloc.c (debugLog),
3472 * src/z80/main.c (_process_pragma):
3473 made all ctype.h function calls safe
3474 * src/SDCCopt.c: include math.h for fabs
3475 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
3476 and used them throughout the code to make ctype.h function calls safe
3477 * src/ds390/main.c (asmLineNodeFromLineNode),
3478 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
3479 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
3481 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
3482 (newpCodeAsmDir): made ctype.h function calls safe
3483 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
3484 pic16_emitcode): made lbp unsigned char*
3485 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
3486 (pic16_newpCodeAsmDir): made ctype.h function calls safe
3487 * src/xa51/gen.c (emitcode),
3488 * src/z80/gen.c (_emit2): made lbp unsigned char*
3489 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
3492 2005-09-05 Raphael Neider <rneider AT web.de>
3494 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
3495 access bank splitpoint
3497 2005-09-05 Raphael Neider <rneider AT web.de>
3499 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
3501 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
3503 * .version: changed to version 2.5.3
3504 * doc/sdccman.lyx: changed version to 2.5.3,
3505 documented --codeseg and --constseg and pragma codeseg and constseg,
3506 documented bit parameters (reentrant) and bit returning
3507 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
3508 currFunc->recvSize, but is this ok for all ports?
3509 (ast2iCode): result of ~ on unsigned char must be cast to int for
3511 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
3512 function pointers in bit space
3513 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
3514 (processFuncArgs): call port.reg_parm() with reentrancy info
3522 * src/z80/main.c: port.reg_parm prototype extended with
3523 "bool reentrant" parameter
3524 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
3525 options.stackAuto for allocating bit register parameters
3526 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
3527 (genSend): set BitBankUsed if it is,
3528 (selectRegBank): factored out of genCall for use in genPcall,
3529 (genCall): removed redundant dtype assignmen, use selectRegBank,
3530 (genPcall): handle returning in Carry properly, save in F0 if needed,
3531 (genReceive): handle bit register parameters
3532 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
3533 (mcs51_assignRegisters): enable bit registers for all reentrant
3534 functions and don't set BitBankUsed unconditionally
3535 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
3536 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
3537 * support/regression/tests/funptrs.c: added tests for BOOL and for return
3539 2005-08-27 Borut Razem <borut.razem AT siol.net>
3541 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
3542 ppc-osx (Darwin) does not support -u option. It seems that it is
3543 supported only on Linux - GNU cp
3545 2005-08-25 Borut Razem <borut.razem AT siol.net>
3547 * sim/ucsim/gui.src/serio.src/Makefile.in,
3548 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
3549 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3550 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
3551 install and strip, since the strip at /usr/ccs/bin should be used
3554 2005-08-24 Borut Razem <borut.razem AT siol.net>
3556 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
3558 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
3560 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
3563 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
3565 * as/mcs51/aslink.h: completed lkrloc.c prototypes
3566 * as/mcs51/lkmain.c (link_main): fixed warning
3567 * device/include/stdbool.h: ds390 has no advanced bit support yet
3568 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
3569 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
3570 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
3571 and updated their macros
3572 * src/SDCCval.c (constVal): updated comment for renamed b_long
3574 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
3576 * as/mcs51/asdata.c: changed ctype['['] to BINOP
3577 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
3578 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
3579 (oprio): set priority for '['
3580 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
3582 * as/mcs51/asm.h: added defines R_BIT and S_BIT
3583 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
3584 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
3585 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
3586 added overlayable BIT_BANK area
3587 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
3588 (summary2): explain 'T' in legenda
3589 * as/mcs51/lkrloc.c: replaced old K&R style,
3590 (relr): added R_BIT processing,
3591 (errmsg): added "Bit-addressable relocation error",
3592 (adb_bit): added for converting from byte- to bit-addressable space,
3593 (adb_24_bit): added for converting from byte- to bit-addressable space
3594 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
3595 used in reentrant functions now even as return value
3596 * device/lib/_gptrput.c (_gptrput): removed obsolete code
3597 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
3598 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
3599 * src/SDCCglobl.h: added indicator BitBankUsed
3600 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
3601 the bit registers b0-b7
3602 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
3603 (geniCodeCast): fixed bug 1263853,
3604 (geniCodeLogicAndOr): put result in bool or char,
3605 (geniCodeReceive): added parameter func for accessing the return type,
3606 (geniCodeFunctionBody): pass func to geniCodeReceive
3607 * src/SDCCmain.c: added indicator BitBankUsed
3608 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
3609 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
3610 (checkSClass): don't put automatic bool/bit on stack,
3611 (checkFunction): removed check on function cannot return bit
3612 * src/SDCCsymt.h: added newBoolLink prototype
3613 * src/mcs51/gen.c (rb1regs): added bit registers,
3614 (movc): created for assigning to carry,
3615 (pushReg, popReg): created for pushing registers,
3616 (sameRegs): check both AOP_REG and AOP_CRY types,
3617 (aopOp): handle bit registers,
3618 (aopPut): optimization no self-assign,
3619 (saveRegisters): push reg->base (bits) only once for bit registers,
3621 (unsaveRegisters): pop reg->base only once and use popReg,
3622 (assignResultValue): added parameter func and return in carry for bits,
3623 (genIpush): optimization no reload in A if not changed,
3624 (genSend): bit parameters in reentrant functions are passed in bit
3625 registers by first assigning to bits in B, then save registers and
3627 (genCall): handle returning in Carry properly, save it in F0 if needed,
3628 (genPcall): updated assignResultValue call, this is not safe yet for bit
3629 returning function !!!
3630 (genFunction): don't generate equ's for bit registers and use pushReg,
3631 (genEndFunction): take care of bit returning functions and use popReg,
3632 (genRet): return bit in Carry,
3633 (genIfx): optimize bit registers and other directly addressable bits,
3634 (genReceive): updated assignResultValue call
3635 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
3636 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
3637 registers when using stack-auto
3638 * src/mcs51/ralloc.c (_G): added allBitregs,
3639 (regs8051): added the bit registers,
3640 (createStackSpil): use macro IS_BIT,
3641 (getRegBit): added to allocate a bit register, else spill,
3642 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
3643 (updateRegUsage): factored out to ease stepping while debugging,
3644 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
3645 also allocate bit registers,
3646 (fillGaps): handle bit registers,
3647 (findAllBitregs): added to create bit vector with all bit registers,
3648 (mcs51_allBitregs): returns this bit vector,
3649 (mcs51_assignRegisters): when using stack-auto use bit registers for
3650 passing parameters and creating local variables
3651 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
3653 2005-08-22 Borut Razem <borut.razem AT siol.net>
3655 * device/lib/Makefile.in: replaced find option -or with -o
3656 to make it run on solaris
3658 2005-08-22 Raphael Neider <rneider AT web.de>
3660 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
3661 fixes #1265442 (crash on Solaris)
3663 2005-08-20 Borut Razem <borut.razem AT siol.net>
3665 * configure, configure.in: added tests for libsocket and libnsl libraries,
3666 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
3667 from support/regression/Makefile.in
3668 * support/regression/Makefile.in: added
3669 * device/lib/pic16/Makefile.common.in: force make to use bash shell
3670 * sim/ucsim/libtool: regenerated on sparc-solaris
3671 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
3672 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
3673 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
3674 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
3675 sparc-solaris, which doesn't use GNU ld linker
3676 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
3677 * as/Makefile: find on sparc-solaris does not support -maxdepth option
3679 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
3681 * src/mcs51/peeph.def: updated comments
3683 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3685 * device/lib/_gptrget.c,
3686 * device/lib/_gptrput.c: slightly shorter
3687 * doc/sdccman.lyx: incremented version
3688 * src/mcs51/peeph.def: moved peephole comments to the line of first
3689 change to better keep line correlation, reanimated 186.e
3690 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
3692 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
3694 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
3695 David Saxton with quotes around file name.
3697 2005-08-15 Borut Razem <borut.razem AT siol.net>
3699 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
3700 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
3701 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
3702 make tests run on x86_64 platform
3704 2005-08-13 Raphael Neider <rneider AT web.de>
3706 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
3707 as it might be executed DURING a build (parallel make is wonderful)
3709 2005-08-13 Raphael Neider <rneider AT web.de>
3711 * device/lib/Makefile.in (port-specific-objects-pic16):
3712 revert to cp $(PORT)/bin/*.* $(PORTDIR)
3713 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
3715 * device/lib/pic16/Makefile.rules: build subdirs before creating
3716 the library, removed builddir rule, create $(builddir) early in
3717 recurse rule, use empty recurse rule for leaf directories
3718 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
3719 mkdir errors (race condition), removed duplicate suffix "hex"
3721 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
3722 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
3723 prevents mkdir -p from aborting on Alpha
3725 2005-08-12 Raphael Neider <rneider AT web.de>
3727 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
3728 db-statements in order to allow for arrays of pointers in code
3729 sections to be placed without interspersed 0-padding, fixes
3731 * (emitStatistics): fixed division by zero for pic18f1220
3732 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
3733 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
3734 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
3735 * (pic16_pCodeConstString): keep track of already emitted string
3736 literals to prevent "duplicate definitions of symbol _str_NR"
3737 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
3739 * device/lib/Makefile.in: ignore failing PIC16 library builds
3740 * device/lib/pic16/Makefile: do not build if gputils are missing
3741 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
3743 2005-08-10 Raphael Neider <rneider AT web.de>
3745 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
3748 2005-08-10 Raphael Neider <rneider AT web.de>
3750 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
3751 Rokas' patch to add the new fixed point type "__fixed16x16"
3752 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
3753 functions for __fixed16x16 arithmetics
3754 * device/lib/pic16: reimplemented the build system to support
3755 a separate build directory, better handling of libio (create
3756 the library in a separate subdir for each architecture) and
3757 easier configuration (centralized in Makefile.common)
3759 2005-08-07 Raphael Neider <rneider AT web.de>
3761 * src/pic16/gen.c (genrshTwo): fixed sign extension
3762 * src/pic16/device.c: added pic18f2320, 4220 and 4320
3763 * device/include/pic16/pic18f2220.h: changed some bit definitions,
3765 * device/include/pic16/pic18f4220.h: NEW, header for
3766 pic18f4220 and pic18f4320
3767 * device/include/pic16/pic18fregs.h: added new devices,
3768 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
3769 * device/include/pic16/signal.h: resolved name clashes
3770 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
3771 to also allow testing for interrupt enable bits, added
3772 comments on how to use the macros
3773 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
3774 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
3775 register definitions for the devices
3776 * device/lib/pic16/pics.all: added new devices
3777 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
3779 * device/lib/pic16/libc/stdlib/memfree: do not count
3780 the block header as free memory
3781 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
3782 simplified and added missing end-of-blocklist-marker
3783 (reported by Peter Onion, fixes #1252814)
3784 * (_mergeHeapBlock): fixed loop condition
3785 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
3786 len==0, restructured code
3787 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
3788 up a bit, reduced bitfield accesses, prevent endless loops
3789 in case of heap corruption
3790 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
3791 "unreferenced arguments/must return a value" warnings
3792 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
3793 replaced BAUDREG with SPBRG
3794 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
3795 device/lib/pic16/debug/gstack/gstack.c: replaced
3796 _naked, _asm, _endasm with __naked, __asm, __endasm
3798 2005-08-05 Raphael Neider <rneider AT web.de>
3800 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
3801 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
3803 2005-08-05 Borut Razem <borut.razem AT siol.net>
3805 * device/lib/Makefile.in: added missing ';'
3806 * configure: removed ^M characters
3808 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3810 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
3811 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
3814 2005-08-04 Borut Razem <borut.razem AT siol.net>
3816 * configure.in: pic16 libraries build 2nd try - enable running
3817 configure in device/lib/pic16
3818 * configure: regenerated from configure.in
3819 * device/lib/Makefile.in: create $(PORT)/bin directory
3821 2005-08-03 Raphael Neider <rneider AT web.de>
3823 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
3824 to get/set values via pointers
3825 * (genUnpackBits,genPackBits): changed detection of
3826 ptr->bitfield vs. sym.bitfield, fixed access via generic
3827 pointers, removed dead (wrong) code for multibyte bitfields
3828 * (genNearPointerGet, genGenPointerGet): removed useless code,
3829 fixed bitfield detection, fixes #1250594
3830 * (genNearPointerSet): removed useless code
3831 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
3832 and introduced macro pic16_emitpcode that conditionally emits
3833 the origin of the following pCode (useful for debugging SDCC)
3834 * src/pic16/pcode.c: changed (and disabled) some debug outputs
3835 * (createDefmap): fixed handling of LFSR for --optimize-df
3837 2005-08-02 Borut Razem <borut.razem AT siol.net>
3839 * device/lib/Makefile.in: pic16 libraries build enabled since
3840 gputils-0.13.2 are now localy installed at sourceforge's compile farm
3842 2005-08-02 Raphael Neider <rneider AT web.de>
3844 * src/pic16/gen.c (genPackBits): removed deprecated warning
3845 * (genGenPointerSet): fixed bitfield detection
3847 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3849 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
3851 2005-07-31 Raphael Neider <rneider AT web.de>
3853 * device/lib/pic16/libdev/pic18f458.c,
3854 device/include/pic16/pic18f458.h: added missing T0CONbits
3856 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
3858 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
3860 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
3862 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
3864 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3866 * device/include/mcs51/at89c51ed2.h: added.
3868 2005-07-23 Raphael Neider <rneider AT web.de>
3870 * src/pic/gen.h: added emitpcode macro for debugging
3871 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
3872 and replace by macro adding debug information on demand
3873 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
3874 * (gencjne): tried to fix; replaced with correct (slower) code
3875 * (gen{Unp,P}ackBits): fixed single bit access
3876 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
3877 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
3878 previous instruction
3879 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
3880 register has to be handled with care (forbidding movement
3881 of assignments/uses, removing assignments completely, ...)
3882 * (pCodeOptime2pCodes): make use of regIsSpecial
3883 * added lots of debugging output (commented out)
3884 * src/pic/rallloc.c (deassignLRs): prevent operand registers
3885 from being reused as result UNLESS it is known to work
3887 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
3889 * support/Util/dbuf.h: include <stddef.h> for size_t
3890 * .version: changed to version 2.5.2
3892 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3894 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
3896 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3898 * src/hc08/gen.c (genMinus): fixed bug #1241835,
3899 (genModOneByte): removed needless psha/pula
3901 2005-07-22 Raphael Neider <rneider AT web.de>
3903 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
3904 have PIC14 handled like PIC16, fixes broken pic14 linker calls
3905 * src/pic/gen.c (resolveIfx): do not "invent" labels
3906 * (genSkipc): changed to positive logic
3907 * (genSkipCond): removed as no longer needed
3908 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
3910 * (genLeftShift): check operands are in different registers
3911 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
3912 INCF does not update CARRY...
3913 * src/pic/main.c: fixed _linkCmd
3914 * src/pic/pcode.c (unlinkpCode): added inactive code
3915 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
3916 alive (do not assign result and operand overlapping registers)
3918 2005-07-22 Raphael Neider <rneider AT web.de>
3920 * src/pic/device.c (dump_sfr): replaced register declaration with
3921 call to emitSymbolToFile() to avoid duplicate symbols
3922 * (assignRelocatableRegisters): do not declare external symbols
3923 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
3924 right (take size of type, not etype)
3925 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
3926 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
3927 * (packRegsForAccUse): disabled assignment of WREG as
3928 the result reg to prevent occurence of just fixed #1235003,
3930 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
3931 symbols (avoids duplicate symbols in .asm file)
3932 * (pic14emitRegularMap): use emitSymbolToFile()
3933 * src/pic/gen.c (aopOp): fixed spillLocation handling
3934 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
3935 * (genDataPointerSet): removed unneccessary variables/output
3937 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
3939 * as/mcs51/lkarea.c: enlarged codemap for banked memory
3940 * device/lib/mcs51/crtbank.asm: added # to 0x0F
3942 2005-07-21 Raphael Neider <rneider AT web.de>
3944 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
3945 architecture cannot handle them efficiently, fixes bug #1235003
3946 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
3947 check for empty sets before using them (fixes bug #1232190)
3949 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
3951 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
3952 (lnksect2): generate warnings for memory overlap
3953 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
3954 constseg to set the name of these segments so you can instruct the linker
3955 to place them in banks
3956 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
3957 * src/SDCCglobl.h: added MODEL_HUGE to enum,
3958 added code_seg and const_seg to options
3959 * src/SDCCglue.c (emitMaps): use options.const_seg,
3960 (createInterruptVect): put interrupt vectors in segment HOME,
3961 (glue): put HOME before static segment and put the main glue in HOME,
3962 (glue): use options.code_seg
3963 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
3964 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
3965 these segments so you can instruct the linker to place them in banks
3966 (linkEdit): use code_loc for HOME segment which should be the first
3967 segment in code memory now
3968 * src/SDCCmem.c: fixed more stuff like bug 1238386
3969 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
3970 (changePointer): don't change function pointers to code pointers for
3972 (compareType): added exceptional check for banked function pointers
3973 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
3974 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
3975 after static in code memory
3976 * src/mcs51/gen.c: added aopLiteralLong prototype,
3977 (aopForSym): use getSize for functions,
3978 (genCall): generate banked calls over one trampoline __sdcc_banked_call
3979 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
3980 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
3982 (genPcall): use call for literal function pointers and generate banked
3983 calls over the one trampoline so there's only one place for the user to
3984 modify according to his/hers hardware,
3985 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
3986 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
3987 * src/mcs51/main.c: added keyword banked,
3988 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
3989 * support/Util/SDCCerr.c,
3990 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
3991 needed for passing the bank and address to the trampoline
3992 * device/lib/mcs51/crtbank.asm: added for bankswitching
3993 * device/lib/mcs51/Makefile: added crtbank
3995 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3997 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
3998 for fields at offset 0 of a struct or union as reported
3999 on 2005-07-07 in the developer mailing list.
4001 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
4003 * src/SDCCmem.c: fixed bug 1238386
4005 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4007 * src/mcs51/peeph.def: added labelrefcounting for peepholes
4008 (patch #1144962), added peephole 300, enabled 259.x
4009 * doc/sdccman.lyx: removed screenshot and provided link instead
4011 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4013 * doc/sdccman.lyx: added section about debugging with ddd
4014 * doc/figures/ddd_example.eps: screenshot of debugging session
4016 2005-07-04 Raphael Neider <rneider AT web.de>
4018 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
4019 like CODE pointers, fixes #1115683
4020 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
4021 call, fixes bugs #1232211, #1228110,
4022 fixed wrong casts to pCodeFlow from pCodeInstructions
4024 2005-07-04 Raphael Neider <rneider AT web.de>
4026 * src/pic/gen.c (popGet): changed assert to allow for
4028 * (popGetAddr): changed signature to provide
4029 an additional index, patched all call sites
4030 * (genCmpEq): handle literal-like operands correctly
4031 * (genAddrOf): added sanity checks on __code/__data pointers
4032 * (genAssign): added handling of symbols from __code section
4033 * (gencjne): do not generate code for comparisons whose result
4034 is neither stored nor used, fixes bug #1171114
4035 * (AccLsh, AccRsh): operate on operand instead of WREG
4036 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
4037 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
4039 * rewrote complete shift-by-literal logic, commented unused
4041 * (genConstPointerGet): get multiple bytes (if result size > 1),
4042 fixed handling of non-immediate addresses
4043 * (genPointerGet): handle CODE pointers like CONST pointers
4044 * (genpic14Code): insert C-SRC lines as Cource-pCodes
4045 * ({aop,op}_isLitLike): NEW, single place to decide whether an
4046 operand is to be treated as a literal or not
4047 * (mov2w,genPcall,genCmpEq),
4048 src/pic/genarith.c: use aop_isLitLike() to decide between
4049 literal/register contents
4050 * (addSign): added missing offset
4051 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
4052 only emit comment in debug-mode,
4053 use {aop,op}_isLitLike throughout the file
4054 * src/pic/glue.c: fix initializers for pointers (work in progress)
4055 * src/pic/pcode.c (get_op): honor index on _const symbols
4056 * ({reset,dump}pCodeStatistics): NEW, estimate code size
4057 * (dumppBlock): added pCode size estimation
4058 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
4059 check for IS_SYMOP before OP_SYMBOL'ing
4060 * fixed indentation, compacted switch-statements
4061 * (allocReg): find free register and allocate it instead of
4062 allocating new registers all the time
4063 * (deassignLRs): prevent POINTER_GET's from being assigned the same
4064 registers as its operands (necessary only for multibyte GETs)
4066 2005-07-01 Raphael Neider <rneider AT web.de>
4068 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
4069 debugging .asm-output macros FENTRY + FEXIT
4070 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
4072 * (emitpComment): NEW, printf to pCode
4073 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
4075 * (popGetAddr): NEW, variant of popGet to access an immediates
4076 high(er) bytes instead of the n'th byte of memory they reference,
4077 replaced popGet with popGetAddr where neccessary
4078 * (genDataPointerGet): reactivated and fixed implementation
4079 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
4081 * (genDataPointerSet): fixed multibyte assignments
4082 * (genpic14Code): fixed --i-code-in-asm handling
4083 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
4084 * (genPlus): fixed index-out-of-bounds error
4085 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
4086 * src/pic/ralloc.c: added debugging output macro FENTRY2
4087 * (spillThis): fixed indentation, enbraced for-body for clarity
4088 * (rematStr): commented out as now unused
4089 * (regTypeNum): commented out special spill case (overwrites
4091 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
4093 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
4095 * doc/sdccman.lyx: documented sfr16/sfr32,
4096 added example for using storage class with function pointers
4097 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
4099 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
4101 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
4102 * device/lib/_itoa.c,
4103 * device/lib/_ltoa.c: optimized codesize
4104 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
4105 but don't know how to suppress the double warning.
4106 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
4107 * support/Util/SDCCerr.c,
4108 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
4110 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
4112 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
4113 fixed old K&R prototypes
4114 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
4115 * device/lib/_gptrget.c,
4116 * device/lib/_gptrgetc.c,
4117 * device/lib/_gptrput.c: changed versions for new memory indicator values,
4118 also new versions for small generic pointers and banked generic pointers
4119 * src/port.h: added const_name
4120 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
4121 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
4122 * src/SDCCcse.c (findPrevIc): check all associative operators
4123 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
4124 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
4125 * src/SDCCmem.c: updated comments,
4126 set far-space to 0 for pdata, results in optimized code
4127 * src/SDCCmem.h: added macro CONST_NAME
4128 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
4129 moving the info into the highest bits, see also gptrget/gptrput
4130 * src/src.dsp: added sdcc.ico to project files
4131 * src/avr/gen.c (genCast): fixed bug 0x%d
4132 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
4133 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
4134 relation between ptr_type and DCL_TYPE,
4135 (genCast): fixed bug 0x%d
4136 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
4137 (CODE)" for const_name
4138 * src/hc08/gen.c (genCast): fixed bug 0x%d
4139 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
4140 (hc08_port): added "CONST (CODE)" for const_name
4141 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
4142 (aopForRemat, adjustArithmeticResult): disconnected direct relation
4143 between ptr_type and DCL_TYPE,
4144 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
4145 operand* and took AOP() inside function so sfr-ness can be checked,
4146 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
4148 (genFunction, genEndFunction): optimized stack setup,
4149 (genMinus): optimized for literals with ending zeroes (in bytes),
4150 (genCast): fixed bug 0x%d
4151 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
4152 (mcs51_port): added "CONST (CODE)" for const_name
4153 * src/mcs51/peeph.def: made rule 226 more generic
4154 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
4155 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
4156 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
4157 * src/z80/main.c (z80_port): added NULL for const_name,
4158 (gbz80_port): added NULL for const_name
4159 * support/regression/tests/bug663539.c,
4160 * support/regression/tests/sfr16.c: new tests
4162 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4164 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
4166 2005-06-24 Raphael Neider <rneider AT web.de>
4168 * device/lib/pic16/libdev/pic18f[68][567]20.c:
4170 * device/include/pic16/signal.h: added USBIF
4173 2005-06-24 Raphael Neider <rneider AT web.de>
4175 * device/lib/pic16/libdev/pic18f2455.c,
4176 device/include/pic16/pic18f2455.h: NEW
4177 * device/include/pic16/pic18fregs.h,
4178 device/lib/pic16/pics.all,
4179 src/pic16/device.c: added 18f2455
4180 * device/lib/pic16/libdev/pic18f[68][567]20.c,
4181 device/include/pic16/{pic18f[68][567].h,usart.h}:
4182 replaced MULTIPLE_USARTS define with more relaible
4183 compatibility sfrs (for USART access)
4185 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
4187 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
4188 and the output asm file line is printed on two lines.
4190 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4192 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
4193 BGT, BLE, BHI, and BLS instructions
4194 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
4196 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
4197 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
4199 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
4201 2005-06-15 Raphael Neider <rneider AT web.de>
4203 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
4204 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
4205 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
4206 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
4207 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
4209 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4211 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
4212 Marcel Telka in bug #1215704
4214 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
4216 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
4217 located in shared memory bank.
4219 2005-05-31 Raphael Neider <rneider AT web.de>
4221 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
4222 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
4223 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
4225 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
4227 * device/lib/_strncpy.c: fixed the fix
4229 2005-05-26 Raphael Neider <rneider AT web.de>
4231 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
4232 initializers with \0, bug #1208187
4233 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
4234 intializers with \0, bug #1208187
4236 2005-05-26 Raphael Neider <rneider AT web.de>
4238 * src/pic16/glue.c (pic16_printIvalChar): fixed string
4239 initializers with \0, bug #1208187
4240 * src/pic16/main.c (_process_pragma): added sanity checks
4241 for stack position and size, emit warnings when appropriate
4243 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
4245 * device/lib/_strncpy.c: fixed not filling with \0
4247 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4249 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
4251 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
4252 compound_statement),
4254 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
4256 2005-05-24 Raphael Neider <rneider AT web.de>
4258 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
4260 2005-05-24 Raphael Neider <rneider AT web.de>
4262 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
4263 TRISE definitions, closes bug #1162453
4265 2005-05-22 Raphael Neider <rneider AT web.de>
4267 * src/pic16/main.c (_process_pragma): check for missing
4268 arguments to pragmas code and udata
4269 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
4270 consistency fixes to match other headers (thanks to Jim Paris)
4271 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
4273 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
4275 * src/SDCCicode.c (isOperandEqual): fixed missing ;
4277 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
4279 * support/regression/tests/bug1198642.c: new test
4280 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
4281 * src/SDCCcse.c (findPrevIc): added comment, please have a look
4282 * support/scripts/resource.h,
4283 * support/scripts/resource.rc,
4284 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
4285 * support/scripts/sdcc.ico: added 32x32 icon
4287 2005-05-18 Raphael Neider <rneider AT web.de>
4289 * device/lib/pic16/libdev/pic18f*.c,
4290 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
4291 keywords to "__sfr" and "__at (X)"
4292 * device/include/pic16/pic18fregs.h: added pic18f4520
4293 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
4294 #1203088 (MPLAB compatibility)
4296 2005-05-17 Raphael Neider <rneider AT web.de>
4298 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
4299 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
4300 * device/lib/pic16/pics.all: added new devices
4301 * src/pic16/device.c: added support for pic18f4520
4303 2005-05-16 Raphael Neider <rneider AT web.de>
4304 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
4305 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
4306 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
4307 convenience function for bit access
4309 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
4311 * device/lib/printf_large.c: fixed bug 1193299
4312 * support/regression/tests/bug1057979.c: added test %3.3s
4314 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4316 * device/include/mcs51/8051.h,
4317 * device/include/mcs51/8052.h: made parseable with lint
4318 * device/include/mcs51/lint.h: added include file for (sp)lint
4319 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
4320 * doc/cdbfileformat.lyx,
4321 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
4323 2005-05-14 Raphael Neider <rneider AT web.de>
4325 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
4326 * device/lib/pic16/libc/stdlib/itoa.c (new)
4327 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
4328 * device/lib/pic16/libio/Makefile: exclude subdir according to
4329 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
4330 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
4331 * src/pic16/gen.c (genFunction): prevent annoying warning
4332 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
4334 * support/cpp2/cppmain.c (cpp_output_string): new
4335 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
4338 2005-05-13 Borut Razem <borut.razem AT siol.net>
4340 * src/SDCCmain.c (linkEdit): fixed bug 1195202
4342 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4344 * .version: changed to version 2.5.1; back to bleeding edge development
4346 2005-05-11 Borut Razem <borut.razem AT siol.net>
4348 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
4349 generate PDF version 1.3 documents
4351 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4353 * .version: changed to version 2.5.0
4355 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4357 * doc/sdccman.lyx: updated weblinks, index and smaller updates
4359 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4361 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
4362 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
4363 well as many smaller updates.
4364 * .version: changed to version 2.5.0-pre1
4366 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4368 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
4370 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
4372 * support/regression/tests/bug1185672.c: added
4373 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
4375 * src/mcs51/gen.c (genCall): added comments, made it look safer
4376 * src/mcs51/gen.c (genEndFunction): simplified
4378 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
4380 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
4382 2005-04-14 Borut Razem <borut.razem AT siol.net>
4384 * fixed bug 1045046 - SIGSEGV with really simple code?:
4385 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
4386 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
4388 2005-04-14 Borut Razem <borut.razem AT siol.net>
4390 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
4391 src/pic16/device.h: temporarily disabled experimental #inline pragma
4394 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
4396 * device/include/z80/stdio.h,
4397 * device/include/z80/string.h: removed these highly incomplete files so
4398 SDCC can use the default ones in device/include/
4400 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4402 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
4404 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
4407 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
4409 * device/include/malloc.h: removed redundant __reentrant prototypes
4410 * device/lib/_mullong.c: added working xstack variant in asm (C version
4411 doesn't pass regression tests)
4412 * device/lib/bpx.c: used __data and made bpx char for mcs51
4413 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
4414 (createFunction): fixed bug with xstackPtr
4415 * src/SDCCcse.c: corrected comments
4416 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
4417 (killDeadCode, eBBlockFromiCode): removed unused code
4418 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
4420 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
4421 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
4422 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
4423 (genModOneByte): fixed warning in MSVC
4424 * src/mcs51/main.c (): added comments
4425 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
4427 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
4429 * src/SDCCmain.c (linkEdit): oops, changed one line too many
4431 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
4433 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
4435 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
4437 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
4438 characters arrays of larger size than the declared one.
4440 2005-04-10 Borut Razem <borut.razem AT siol.net>
4442 * src/pic/gen.c (genInline),
4443 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
4444 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
4445 (findNextInstruction), (findPrevInstruction),
4446 (findInstructionUsingLabel),
4447 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
4448 * src/pic/pcode.c (findLabel): added missing '\n'
4449 * src/src.dsp: added SDCCdwarf2.c to the project
4451 2005-04-09 Borut Razem <borut.razem AT siol.net>
4453 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
4455 2005-04-08 Raphael Neider <rneider AT web.de>
4457 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
4458 into the chain after a given one) and mergeDefmapSymbols (combine
4459 defmap entries for each symbol per pcode)
4460 * (createDefmap): have defmap entries merged in the end
4461 * (defmapReplaceSymRef): split defmap entries covering two accesses to
4462 a symbol before replacing one access type's symbol, merge symbols in
4463 the end (replacement symbol might already have an entry)
4464 * (assignValnums): keep reference to written WREG intact
4466 2005-04-08 Raphael Neider <rneider AT web.de>
4468 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
4471 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
4473 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
4476 2005-04-07 Raphael Neider <rneider AT web.de>
4478 * device/include/pic16/usart.h: added compatibility defines for
4479 devices with more than one USART
4480 * device/include/pic16/pic18f[68][567]20.h: activated above defines
4482 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4484 * device/lib/Makefile.in: updated for port specific include
4486 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4488 * support/regression/ports/mcs51/spec.mk: added mcs51 include
4490 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
4492 * device/include/8051.h,
4493 * device/include/8052.h,
4494 * device/include/at89S8252.h,
4495 * device/include/at89c55.h,
4496 * device/include/at89x051.h,
4497 * device/include/at89x51.h,
4498 * device/include/at89x52.h,
4499 * device/include/mcs51reg.h,
4500 * device/include/reg51.h,
4501 * device/include/reg764.h,
4502 * device/include/regc515c.h,
4503 * device/include/sab80515.h: (re)moved these 12 files
4504 * device/include/mcs51/8051.h,
4505 * device/include/mcs51/8052.h,
4506 * device/include/mcs51/at89S8252.h,
4507 * device/include/mcs51/at89c55.h,
4508 * device/include/mcs51/at89x051.h,
4509 * device/include/mcs51/at89x51.h,
4510 * device/include/mcs51/at89x52.h,
4511 * device/include/mcs51/mcs51reg.h,
4512 * device/include/mcs51/reg51.h,
4513 * device/include/mcs51/reg764.h,
4514 * device/include/mcs51/regc515c.h,
4515 * device/include/mcs51/sab80515.h: and added them here
4517 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
4519 * device/include/stdarg.h: changed SDCC specific keywords to double
4521 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
4523 * device/include/hc08/mc68hc908gp32.h,
4524 * device/include/hc08/mc68hc908jb8.h,
4525 * device/include/hc08/mc68hc908jkjl.h,
4526 * device/include/hc08/mc68hc908qy.h: fixed comments
4527 * device/include/mcs51/README: updated
4528 * device/include/mcs51/c8051f120.h: added PINRSF
4529 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
4530 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
4531 amidst code. Also inline is not supported.
4533 2005-04-06 Raphael Neider <rneider AT web.de>
4535 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
4536 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
4537 callers stack/frame pointers
4539 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
4541 * device/include/pic16/usart.h: added, missing in previous commit,
4542 * device/include/pic16/adc.h: fixed typo,
4543 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
4545 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
4547 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
4548 uninitialized because a bug appears with gplink
4549 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
4550 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
4551 complains for unrecognised option
4553 2005-04-05 Raphael Neider <rneider AT web.de>
4555 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
4556 structs as well (using memcpy)
4557 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
4558 on ISRs (GOTO has no label)
4559 * src/pic16/device.h: added OF_OPTIMIZE_DF
4560 * src/pic16/main.c: added compiler switch --optimize-df to enable the
4561 new data flow analysis/optimization
4562 * src/pic16/pcode.c: added (prototypes for and implementation of)
4563 dataflow analysis functions, fixed pCodeInstructions' inCond and
4564 outCond values, made RCALL a branch instruction
4565 * (pic16_unlinkpCode): keep C line if possible
4566 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
4567 C line moved if possible
4568 * (pic16_getRegFrompCodeOp): NEW, improved version of...
4569 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
4570 to use new pic16_getRegFrompCodeOp (works for more SFRs)
4571 * (pic16_BuildFlow): fixed skip instructions with label (did not start
4573 * (pic16_getJumptabpCode): NEW, needed in...
4574 * (LinkFlow): fixed handling of jumptables, calls and conditional
4576 * (pic16_InsertCommentAfter): NEW
4577 * (pic16_pCodeReplace): made verbose and flow preserving
4578 * (AnalyzeFlow): added call to data flow analysis
4579 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
4580 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
4581 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
4583 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4585 * src/SDCCast.c (decorateType): fixed bug #1105626
4587 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
4589 * device/include/asm/pic16/features.h,
4590 * pic18f*.h headers,
4591 * device/include/pic16/adc.h,
4592 * device/include/pic16/delay.h,
4593 * device/include/pic16/i2c.h,
4594 * device/include/pic16/malloc.h,
4595 * device/include/pic16/stdio.h,
4596 * device/include/pic16/stdlib.h,
4597 * device/include/pic16/string.h,
4598 * device/lib/pic16/libc/stdio/printf_tiny.c,
4599 * device/lib/pic16/libc/stdio/printf_small.c,
4600 * device/lib/pic16/libc/stdio/strmgpsim.c,
4601 * device/lib/pic16/libc/stdio/strmmssp.c,
4602 * device/lib/pic16/libc/stdio/strmusart.c,
4603 * device/lib/pic16/libc/stdio/vfprintf.c,
4604 * device/lib/pic16/libc/stdlib/ltoa.c,
4605 * device/lib/pic16/libc/stdlib/putchar.c,
4606 * device/lib/pic16/libc/stdlib/x_ftoa.c,
4607 * device/lib/pic16/libc/stdlib/memchrpgm.c,
4608 * device/lib/pic16/libc/stdlib/memchrram.c,
4609 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
4610 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
4611 * device/lib/pic16/libio/adc/adcbusy.c,
4612 * device/lib/pic16/libio/adc/adcread.c,
4613 * device/lib/pic16/libio/adc/adcsetch.c,
4614 * device/lib/pic16/libio/usart/ubaud.c,
4615 * device/lib/pic16/libio/usart/ubusy.c,
4616 * device/lib/pic16/libio/usart/udrdy.c,
4617 * device/lib/pic16/libio/usart/uopen.c,
4618 * device/lib/pic16/libio/usart/uputc.c,
4619 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
4620 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
4621 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
4622 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
4623 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
4624 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
4625 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
4626 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
4627 specific keywords to double underlined form,
4628 * device/lib/pic16/libc/Makefile.rules,
4629 * device/lib/pic16/libsdcc/Makefile.rules,
4630 * device/lib/pic16/libm/Makefile,
4631 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
4632 to compile with C standard set in Makefile.common
4633 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
4634 rand.c and crc.c in compilation process,
4635 * device/lib/pic16/libsdcc/int/divuint.c,
4636 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
4637 `c' from signed to unsigned,
4638 * device/lib/pic16/startup/crt0.c,
4639 * device/lib/pic16/startup/crt0i.c,
4640 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
4641 keywords to double underlined form, bug fixes in _do_cinit function
4642 which prevented the correct initialization of the .idata segment,
4643 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
4644 core to enter a infinite loop
4645 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
4647 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4649 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
4651 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4653 * device/include/Makefile.in: add support for hc08 subdirectory
4654 * device/include/hc08/: new subdirectory
4655 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
4656 Lucas Loizaga, thanks!
4657 * device/include/hc08/mc68hc908qy.h,
4658 * device/include/hc08/mc68hc908gp32.h,
4659 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
4660 their own directory. Changed internal macro names to use the compiler
4661 reserved namespace. Changed SDCC specific keywords to double
4663 * device/include/math.h,
4664 * device/include/malloc.h,
4665 * device/include/stdarg.h,
4666 * device/include/stdbool.h
4667 * device/include/string.h,
4668 * device/include/tinibios.h,
4669 * device/include/ds400rom.h,
4670 * device/include/8051.h,
4671 * device/include/8052.h,
4672 * device/include/80c51xa.h,
4673 * device/include/at89c55.h,
4674 * device/include/at89S8252.h,
4675 * device/include/at89x51.h,
4676 * device/include/at89x52.h,
4677 * device/include/ds80c390.h,
4678 * device/include/reg764.h,
4679 * device/include/regc515c.h,
4680 * device/include/sab80515.h,
4681 * device/include/mcs51/c8051f000.h,
4682 * device/include/mcs51/c8051f018.h,
4683 * device/include/mcs51/c8051f020.h,
4684 * device/include/mcs51/c8051f040.h,
4685 * device/include/mcs51/c8051f060.h,
4686 * device/include/mcs51/c8051f120.h,
4687 * device/include/mcs51/c8051f300.h,
4688 * device/include/mcs51/c8051f310.h,
4689 * device/include/mcs51/c8051f320.h,
4690 * device/include/mcs51/c8051f330.h,
4691 * device/include/mcs51/c8051f350.h,
4692 * device/include/z180.h: Changed SDCC specific keywords to double
4695 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
4697 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
4699 * (pic16_assignConfigWordValue): disable testing of configuration
4700 register value with config mask,
4701 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
4702 function with port->fun_prefix,
4703 * (genFunction): when generating a naked interrupt function never
4704 create an absolute segment placed in interrupt vector address, place
4705 the actual interrupt function at IVA instead, when an interrupt
4706 function is generated with unspecified interrupt then do not create
4707 the absolute section,
4708 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
4709 code for generating a call to generic pointer get/put function with
4710 a call to function pic16_callGenericPointer(),
4711 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
4712 the call to the generic pointer get/put functions with prefixing the
4713 function name with port->fun_prefix,
4714 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
4715 * src/pic16/main.c (_process_pragma): prefix function with
4717 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
4718 calling assembler, old 18Fxxxx macro is deprecated,
4719 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
4720 PC_ASMDIR in while condition,
4721 * (findInstruction): add PC_ASMDIR in while condition,
4722 * (buildCallTree): prefix main with port->fun_prefix,
4723 * (pic16_pCode2str): fixed bug that didn't emit the memory access
4724 identifier for variable with banked access in instructions BTFSS,
4725 BTFSC, BCF, BSF, BTG
4726 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
4727 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
4728 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
4729 perform optimization when enviroment variable NO_REG_OPT is set,
4730 * (insideLRBlock): NEW, return 1 if register is inside an
4731 INF_LOCALREGS block,
4732 * (RemoveRegFromLRBlock): remove a register that is completely
4733 eliminated by register optimization, but it is still left in local
4734 register store/restore in/from stack block,
4735 * (Remove2pcodes): after removing register, check to see if it
4736 should be removed from local register store/restore in/from stack
4738 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
4739 DUMMY_READ_VOLATILE,
4741 * device/include/pic16/adc.h: minor prototype modifications and
4743 * device/include/pic16/malloc.h: added GPL notice various
4745 * device/include/pic16/stdint.h: NEW, standard header for ints
4746 * device/include/pic16/delay.h: NEW, header for delay functions,
4747 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
4749 * device/include/pic16/signal.h: NEW, header providing helper macros
4750 for implementing signal handlers,
4751 * device/include/pic16/stdio.h: added prototypes for functions,
4752 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
4753 prototypes for stdin and stdout, added macro PUTCHAR to
4754 automatically implement putchar function prototype,
4755 * device/include/pic16/usart.h: modified and updated USART library,
4756 * device/lib/pic16/libio/adc/,
4757 * device/lib/pic16/libio/i2c: some modifications to improve library
4759 * device/lib/pic16/libc/stdio/: modifications for the new printf*
4760 family of functions,
4761 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
4762 family of functions and other sources,
4763 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
4764 of the PIC18Fxx[28] devices,
4765 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
4766 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
4767 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
4768 _do_cinit function, because the previous failed when local variables
4769 where not placed in the same memory bank,
4770 * device/lib/pic16/libsdcc/char/: various modifications to improve
4771 library performance,
4772 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
4773 information on the new functions of the c library and more...
4775 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4777 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
4779 2005-03-26 Raphael Neider <rneider AT web.de>
4781 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
4782 if condition == CARRY)
4783 * (genCmp): adapted to new genSkipc semantics
4784 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
4785 on rIfx (genCmp was broken)
4787 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4789 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
4790 * src/z80/main.c (_keywords[]),
4791 * src/SDCCglobal.h (struct options),
4793 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
4794 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
4795 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
4796 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
4797 always available in leading double underscore form. The C99 support is
4798 mostly missing, but it's a start.
4799 * support/regression/tests/bug-227710.c: fixed nonconforming use of
4800 reserved identifier "__data".
4802 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
4804 * src/mcs51/peeph.def: fixed bug 1170013
4806 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
4808 * device/include/mcs51reg.h: fixed bug 842007
4810 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4812 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
4815 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4817 * src/port.h (struct PORT),
4818 * src/avr/ralloc.c (avr_assignRegisters),
4820 * src/ds390/ralloc.c (ds390_assignRegisters),
4822 * src/hc08/ralloc.c (hc08_assignRegisters),
4824 * src/mcs51/ralloc.c (mcs51_assignRegisters),
4826 * src/pic/ralloc.c (pic14_assignRegisters),
4828 * src/pic16/ralloc.c (pic16_assignRegisters),
4830 * src/xa51/ralloc.c (xa51_assignRegisters),
4832 * src/z80/ralloc.c (z80_assignRegisters),
4834 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
4835 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
4837 * src/SDCCdflow.c (computeDataFlow),
4839 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
4841 * src/SDCCcflow.c (*),
4843 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
4844 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
4845 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
4846 immedDom() returning wrong block; probably fixes bug #1160833)
4848 2005-03-20 Borut Razem <borut.razem AT siol.net>
4850 * support/scripts/inc2h.pl: WIN32 port
4852 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
4854 * device/lib/makefile.in: added abs.c and labs.c
4856 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
4858 * device/include/stdint.h: added
4859 * device/lib/abs.c: added
4860 * device/lib/labs.c: added
4861 * device/include/stdlib.h: added abs() and labs() prototypes
4862 * device/lib/libsdcc.lib: added abs and labs
4863 * device/include/float.h,
4864 * device/lib/_fsmul.c,
4865 * device/lib/printf_fast.c,
4866 * device/lib/printf_tiny.c: updated comments
4868 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4870 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
4873 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4875 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
4876 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
4878 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
4880 * device/lib/printf_large.c: removed inline assembly for portability and
4881 readability. Use printf_fast if speed or size are more important.
4882 * src/pic16/gen.c: removed conditions around use of DEBUGpc
4883 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
4885 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
4887 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
4888 prevent compiler warning
4890 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
4892 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
4893 moved to level 0 and declared as static. Also they are explicit
4894 placed in access bank. This was necessery because some times they
4895 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
4896 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
4897 optimizations. Currently only compare to unsigned char is implemented,
4898 * src/pic16/gen.c: added fReturnIdx array,
4899 * (struct resolvedIfx) is moved to gen.h and made public,
4900 * (struct _G): added sregsAlloc and sregsAllocSet fields,
4901 * (aopForSym): added an optimization to directly store in stack of
4902 the operand of a SEND iCode,
4903 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
4904 but as registers instead (AOP_REG) using the fReturnIdx array,
4905 * (pic16_freeAsmop): remove the freed register from the
4906 _G.sregsAlloc field,
4907 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
4908 a compare of 'WREG',
4909 * (pic16_popGetTempRegCond): changed function prototype, now
4910 function takes also a bitVector argument v which holds the current
4911 set of registers that are allocated for stack access by aopForSym,
4912 registers allocated in aopForSym for accessing stack symbols are not
4913 any more part of the functions usedRegs field,
4914 * (genCall): some times aopOp is called for a stack variable to be
4915 send, aopForSym might perform the push, if this is true make sure
4916 that genCall doesn't push the variable twice by testing _G.resDirect,
4917 * (genFunction): changed testing for unspecified interrupt number
4918 from 256 to INTNO_UNSPEC,
4919 * modified selection scheme of frame pointer generation. Previously
4920 if function did use local registers a frame pointer was generated,
4921 now a frame pointer is generated only if function has arguments
4922 (that need PLUSW2 register access), or has stack arguments, or the
4923 compiler is not instructed to omit the frame pointer,
4924 * (genEndFunction): before restoring local registers that were saved
4925 in the function preamble, also restore the registers that *might*
4926 have been allocated for stack access,
4927 * (genRet): removed some old comments,
4928 * (genCmp, the active (RN's) version): added a call to the
4929 pic16_genCmp_special function to perform the compare with a more
4930 robust and optimized way,
4931 * (genInline): a feature has been added in inline code generation,
4932 which allows a wildcard variable substitution when writing inline
4933 assembly. Code is incomplete and experimental therefore undocumented,
4934 * (genCast): changed order of aopOp for result and right to allow
4935 aopForSym to directly load the result if possible,
4936 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
4937 perform an optimized compare on some selected special occasions,
4938 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
4939 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
4940 generate an IVT any more,
4941 * src/pic16/main.c (pic16_optionsTable): added command line option
4943 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
4944 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
4946 * src/pic16/NOTES: Raphael Neider added in list of active developers
4947 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
4948 jumptable_end to prevent bug #,
4949 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
4950 inCond and outCond fields,
4951 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
4952 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
4953 turn off register spilling,
4954 * (packRegsForOneUse): synced with other ports' versions although it
4955 is not used currently,
4956 * (pic16_packRegisters): added an optimization while reading
4957 structure bitfields, some registers may be saved (malloc code is
4958 decreased by 80 bytes)
4960 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
4962 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
4963 left is a bitfield, if yes, then don't optimize assignment. Perhaps
4964 this can be optimized more?
4966 2005-03-10 Raphael Neider <rneider AT web.de>
4968 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
4969 genNearPointerGet): (hopefully) fixed access to bitfields via
4970 pointers (p->bitN = x; and x = p->bitN; failed)
4972 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
4974 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
4976 2005-03-09 Raphael Neider <rneider AT web.de>
4978 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
4980 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
4982 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
4983 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
4984 (regTypeNum): set REG_BIT type if necessary
4985 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
4986 * support/regression/tests/critical.c: check bug 1144613
4988 2005-03-02 Raphael Neider <rneider AT web.de>
4990 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
4992 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4994 * src/avr/ralloc.c (serialRegAssign),
4995 * src/ds390/ralloc.c (serialRegAssign),
4996 * src/hc08/ralloc.c (serialRegAssign),
4997 * src/mcs51/ralloc.c (serialRegAssign),
4998 * src/pic/ralloc.c (serialRegAssign),
4999 * src/pic16/ralloc.c (serialRegAssign),
5000 * src/xa51/ralloc.c (serialRegAssign),
5001 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
5003 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
5005 * src/SDCCast.c (decorateType): fixed bug 1124787
5007 2005-02-20 Hubert Sack <sack AT digiplan.de>
5008 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5010 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
5013 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5015 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
5016 to keep the correct label reference count when adding/removing references
5017 to labels. A peephole file using this is appended to patch #1144962.
5019 2005-02-14 Raphael Neider <rneider AT web.de>
5021 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
5022 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
5023 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
5024 retrievals of result operand's value on assignment
5026 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
5028 * device/include/pic16/string.h: modified prototype for memccpy()
5029 to memccpy(void *, void *, char, size_t)
5030 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
5031 check whether to omit frame pointer or not,
5032 * (genInline): convert all occurences of "\n" to LF in inline
5033 assembler blocks, this helps formatting the inline text,
5034 * (pic16_loadFSR0): modified prototype,
5035 * (genNearPointerGet, genNearPointerSet): reorganization of code,
5036 removed some 8051 legacy code,
5037 * (genPackBits): enabled handling bitfields exceeding one byte in size,
5038 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
5039 before allocating temporary registers in functions,
5041 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5043 * support/regression/tests/bitvars.c: corrected the "fix"
5045 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5047 * support/regression/tests/bitvars.c,
5048 * support/regression/tests/bitwise.c,
5049 * support/regression/tests/rotate.c: "fixed" problems on Alpha
5051 2005-02-10 Raphael Neider <rneider AT web.de>
5053 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
5054 different size for Alpha
5055 * src/pic16/gen.c (genCmpEq) : improved compare with 0
5057 2005-02-09 Raphael Neider <rneider AT web.de>
5059 * src/SDCC.lex(doPragma) : save and restore warning options as well
5060 (also added new stack plus clone- and copyAndFreeSDCCERRG())
5061 * have #pragma less_pedantic set the errorlevel to WARNING
5063 * (cloneOptimize) : fixed wrong malloc's size
5064 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
5065 facilitate correct handling of #pragma (save|restore)
5067 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
5069 * src/mcs51/gen.c: removed non-standard C nameless struct/union
5071 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
5073 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
5075 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
5077 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
5079 2005-02-02 Raphael Neider <rneider AT web.de>
5081 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
5082 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
5083 * (pic16_storeForReturn): fixed to allow returning function pointers
5084 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
5085 * device/include/pic16/{stddef.h,stdbool.h}: added
5087 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
5089 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
5091 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
5093 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
5094 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
5095 appeared to be required
5097 2005-01-31 Borut Razem <borut.razem AT siol.net>
5099 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
5100 include/mcs51 and include/z80 directories to the package
5102 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5104 * src/hc08/gen.c (genFunction): fixed bug #1112752
5106 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5108 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
5110 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5112 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
5114 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
5116 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
5118 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
5120 * device/include/c8051fxxx.h: removed these 6 files
5121 * device/include/mcs51/c8051fxxx.h: added these 11 new files
5123 2005-01-26 Raphael Neider <rneider AT web.de>
5125 * src/pic16/gen.c (genAssign): fixed assignment from longs
5126 in codespace (were cut to three bytes)
5127 * (genDummyRead): implemented (except for CODESPACE...),
5129 * src/pic16/glue.c (emitStatistics): beautified
5130 * device/lib/pic16/libm/Makefile: added include path
5132 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5134 * src/z80/gen.c (aopPut): fixed bug #1103902
5136 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5138 * device/lib/expf.c: fixed bug #1095792
5140 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
5142 * device/lib/pic16/libm: added Math library sources
5144 2005-01-24 Raphael Neider <rneider AT web.de>
5146 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
5147 to enable upcast to pCodeOpReg2 (there is no type tag to
5148 differenciate the two and pic16_popGet2p cast into PCOR2)
5149 * src/pic16/main.c (_process_pragma): fixed another malloc bug
5150 (sizeof(sectNames) changed to sizeof(sectName))
5151 Both patches fix segfaults under MinGW.
5153 2005-01-23 Raphael Neider <rneider AT web.de>
5155 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
5156 Safe_[mc]?alloc()'ed variables
5157 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
5158 of (byte sized) temporaries (assign them to WREG for now)
5159 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
5160 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
5161 this might fix SIGSEGVs on MinGW...
5162 * src/SDCCopt.c (killDeadCode): restored original behaviour
5163 (volatile operands might get thrown away though)
5165 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
5167 * src/pic16/gen.c: fixed bug #1106975,
5168 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
5169 pointer update, INTCON is saved, global interrupts are disabled and
5170 restored after updateing TOS.
5171 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
5172 * added function attribute 'shadowregs' to take advantage of shadow
5174 * added function attribute 'wparam' as an alternative to the wparam
5176 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
5177 user declares a non-ISR function as 'shadowregs',
5178 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
5180 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
5182 * .version: bumped version number to 2.4.8
5183 * device/lib/pic16/pics.all: list of PIC18F devices supported by
5185 * device/lib/pic16/libio/i2c/: I2C module support library,
5186 * device/include/pic16/i2c.h: I2C support library header,
5187 * device/lib/pic16/libc/stdio/: standard IO support sources,
5188 * (printf_small.c): printf_small() source, supports float print,
5189 * (printf_tiny.c): printf_tiny() source, does not support floats,
5190 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
5191 enable global optimizations for entire library source, other
5192 Makefiles in the source tree are also modified to reflect this,
5193 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
5195 * doc/sdccman.lyx: updated to reflect new changes,
5196 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
5197 sym->onStack if-case,
5198 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
5199 sbit, idata, _idata, xdata, _xdata,
5200 * added pragma library, to link an external library, (see doc),
5201 * removed command line options, --pomit-config-words, --pomit-ivt,
5202 --pleave-reset-vector,
5203 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
5204 when calling assembler to reflect memory model used, also define
5205 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
5206 reflect stack model used,
5207 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
5208 on stack return NULL,
5210 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
5212 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
5213 of the operands is volatile. Fixes #1020220
5215 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
5217 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
5218 * (OptimizeRegUsage): make sure that there is really no other flow where
5219 the first pCode is used
5221 2005-01-22 Raphael Neider <rneider AT web.de>
5223 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
5224 to fix #1106967 (pCode->seq are not set up correctly)
5226 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5228 * src/SDCCglue.c (glue): make sure code area is declared before the
5229 static initialization area.
5231 2005-01-21 Raphael Neider <rneider AT web.de>
5233 * device/lib/Makefile.in: fixed test for pic16 install dir
5234 * device/lib/pic16/*/Makefile*: modified compile flags to enable
5236 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
5237 added --optimize-goto compiler switch and pragma wparam documentation
5238 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
5239 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
5240 and PRODH closing bug #1071770 (peephole optimizer)
5242 2005-01-19 Raphael Neider <rneider AT web.de>
5244 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
5245 cmdLine buffers (used when calling sdcpp...) are large enough
5246 (MAX_PATH=256 truncates arguments leading to system halts when
5248 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
5249 * (genUminus): rewritten to for efficiency
5250 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
5251 used uninitialized in some cases)
5252 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
5253 copy the third byte from the int -- now assumes 0x80 (data memory)
5254 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
5255 operands (genAddLit expects the iCode's operands to swapped as
5256 well), fixed leftover bytes (crashed for short left operands)
5257 * (pic16_genMinusDec): performance improvements, removed false
5259 * (pic16_genMinus): fixed to cope with differently sized operands
5260 * src/pic16/glue.c (pic16_glue): added new banksel optimization
5262 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
5263 * src/pic16/graph.[ch]: implementation of directed graphs, used by
5264 new banksel optimization
5265 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
5266 analysis for temporary registers (segfaults...)
5267 * src/pic16/peeph.def: added rule
5269 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
5271 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
5272 which converts a float number to its ASCII representation
5273 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
5274 functions to convert the fractional and integer part of a float to ASCII,
5275 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
5276 realloc.c): added _MALLOC_SPEC to explicit place variables in data
5278 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
5280 * device/include/pic16/adc.h: added GPL info,
5281 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
5282 a pCodeOp as tested operand,
5283 * (genNearPointerGet): optimized bit testing, does not use
5284 intermediate register for bit value, test directly instead with
5285 BTFSS, BTFSC, works only for single bits,
5286 * (genpic16Code): dump the name of the iCode in the asm,
5287 * src/pic16/ralloc.c (decodeOp): removed static declaration and
5288 renamed to pic16_decodeOp,
5289 * (serialRegAssign): do not allocate a temporary register for iCode
5290 sequences that test a single bit for 1/0
5292 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
5294 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
5295 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
5296 access stack and frame pointers. They are initially assigned to
5297 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
5298 accessing SFRs. Updated all occurences of modification of stack or
5299 frame pointer in gen.c and pcode.c,
5300 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
5301 assigning of a literal value to pointers,
5302 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
5303 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
5306 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
5308 * doc/sdccman.lyx: update documentation about stack pragma, added
5309 some info for stack memory models
5311 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5313 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
5315 2005-01-08 Raphael Neider <rneider AT web.de>
5317 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
5318 udata sections to fix bug #1097823
5320 2005-01-05 Raphael Neider <rneider AT web.de>
5322 * src/pic16/gen.c (genGenericShift): added handling of differently
5323 sized left operand and result
5325 2005-01-04 Raphael Neider <rneider AT web.de>
5327 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
5328 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
5329 to hold the condition bit)
5330 * added new version of genCmp (old code available via #define)
5331 * added new version of genShiftLeft/genShiftRight in a generic
5332 way, now supports shifting by negative values
5333 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
5334 shiftCount (expected by genGenericShift)
5335 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
5336 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
5338 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
5339 is an invalid literal too...)
5341 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
5343 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
5344 from Raphael Neider,
5345 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
5346 for 8-bit literals. This fixes some literal operands which are sign
5347 extended to 16-bits ints when instruction needs only 8-bits.
5349 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
5351 * device/lib/logf.c: added mcs51 assembly version
5352 * device/lib/expf.c: added mcs51 assembly version
5353 * device/lib/_logexpf.c: new shared asm code for expf and logf
5354 * device/include/math.h: add defines for assembly math library
5355 * device/lib/Makefile.in: build new _logexpf.c
5356 * device/lib/libfloat.lib: use new _logexpf.c
5358 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
5361 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
5362 device types which have less than 0x7f registers.
5364 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
5366 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
5368 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
5370 * device/lib/printf_fast.c: only build on supported arch.
5371 * device/lib/printf_tiny.c: only build on supported arch.
5372 * device/lib/printf_fast_f.c: only build if asm float lib
5373 * device/lib/_fsget1arg.c: only build if asm float lib
5374 * device/lib/_fsget2args.c: only build if asm float lib
5375 * device/lib/_fsnormalize.c: only build if asm float lib
5376 * device/lib/_fsreturnval.c: only build if asm float lib
5377 * device/lib/_fsrshift.c: only build if asm float lib
5378 * device/lib/_fsswapargs.c: only build if asm float lib
5379 * device/include/stdio.h: don't provide print_fast,
5380 print_fast_f, print_tiny prototypes if --xstack used
5382 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
5384 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
5385 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
5388 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
5390 * device/lib/printf_fast_f.c: same as printf_fast, but
5391 with floating point enabled
5392 * device/lib/printf_fast.c: minor tweaks
5393 * device/include/stdio.h: add printf_fast_f
5395 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
5397 * src/SDCCmain.c: make --float-reent default for mcs51
5398 * device/lib/_fsadd.c: added mcs51 assembly version
5399 * device/lib/_fssub.c: added mcs51 assembly version
5400 * device/lib/_fsmul.c: added mcs51 assembly version
5401 * device/lib/_fsdiv.c: added mcs51 assembly version
5402 * device/lib/_fseq.c: added mcs51 assembly version
5403 * device/lib/_fsneq.c: added mcs51 assembly version
5404 * device/lib/_fsgt.c: added mcs51 assembly version
5405 * device/lib/_fslt.c: added mcs51 assembly version
5406 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
5407 * device/lib/Makefile.in: add _fscmp to build
5408 * device/lib/libfloat.lib: add _fscmp to build
5410 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
5412 * device/lib/_fs2slong.c: added mcs51 assembly version
5413 * device/lib/_fs2sint.c: added mcs51 assembly version
5414 * device/lib/_fs2schar.c: added mcs51 assembly version
5415 * device/lib/_fs2ulong.c: added mcs51 assembly version
5416 * device/lib/_fs2uint.c: added mcs51 assembly version
5417 * device/lib/_fs2uchar.c: added mcs51 assembly version
5418 * device/lib/_slong2fs.c: added mcs51 assembly version
5419 * device/lib/_sint2fs.c: added mcs51 assembly version
5420 * device/lib/_schar2fs.c: added mcs51 assembly version
5421 * device/lib/_ulong2fs.c: added mcs51 assembly version
5422 * device/lib/_uint2fs.c: added mcs51 assembly version
5423 * device/lib/_uchar2fs.c: added mcs51 assembly version
5424 * device/include/float.h: added #define to select asm vs c
5426 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
5428 * device/lib/printf_fast.c: improvements to float output
5429 * device/include/float.h: add defines for assembly float library
5430 * device/lib/_fsget1arg.c: receive 1 float arg
5431 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
5432 * device/lib/_fsnormalize.c: normalize a float
5433 * device/lib/_fsreturnval.c: return float, various helper routines
5434 * device/lib/_fsrshift.c: right shift a float's mantissa
5435 * device/lib/_fsswapargs.c: swap 2 floats
5436 * device/lib/Makefile.in: build these 6 new files for mcs51
5437 * device/lib/libfloat.lib: add these 6 files to the library
5439 2004-12-26 Borut Razem <borut.razem AT siol.net>
5441 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
5444 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
5446 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
5447 and fully reentrant and register bank neutral.
5448 * device/lib/printf_fast.c: added float (not enabled by default),
5449 added compact/slower integer (also not enabled by default),
5450 improved size/speed of fast integer code, other minor changes
5451 * device/include/stdio.h, device/lib/Makefile.in,
5452 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
5454 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
5456 * src/pic16/pcode.c: declaring variables other than at the start of a
5457 block is not supported in C by VC6.
5459 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
5461 * applied a previous patch from Raphael Neider that wasn't included
5462 in the previous commits, which fixes infinite loops within jumptable
5464 * made some fixes that previous patches introduced
5466 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
5468 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
5469 that fixes an issue with AOP_PCODE asmop's offset,
5470 * (pic16_popCopyReg): update instance field too,
5471 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
5472 function of pic port,
5473 * (genCmp, genAnd, genAssign),
5474 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
5476 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
5478 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
5479 variables initial values to idata section,
5480 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
5481 variables in some functions. This utilizes parmBytes field of iCode
5482 structure to hold the offset of the variable in stack. (might be
5483 able to use the stack field too?)
5484 * applied patch from Raphael Neider # ### , # ###
5485 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
5486 variable initial values in idata section,
5487 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
5488 for static variables with initial value
5489 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
5490 applied fix in while loop from Raphael Neider.
5492 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
5494 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
5495 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
5496 * src/ds390/ralloc.c (serialRegAssign): spill bits
5497 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
5498 * support/Util/SDCCerr.c,
5499 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
5500 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
5501 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
5503 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
5505 * device/include/sdcc-lib.h: inserted LGPL, added includes
5506 asm/ds390/features.h and asm/mcs51/features.h
5507 * device/include/asm/default/features.h,
5508 * device/include/asm/gbz80/features.h,
5509 * device/include/asm/z80/features.h: added empty _AUTOMEM
5511 * device/include/asm/ds390/features.h,
5512 * device/include/asm/mcs51/features.h: added files with defines for
5513 _AUTOMEM and _STATMEM indicating automatic and static storage class
5514 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
5515 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
5516 * src/SDCCicode.c (geniCodeCast),
5517 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
5518 * src/SDCCloop.c (loopInduction): removed unused variable lr
5519 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
5520 to convertToFcall to include char modulo (RFE 1065037), added check
5521 if left operand is unsigned and use abs of literal value
5522 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
5523 as it doesn't work after conversion from peephole.def to peephole.rul
5524 * src/mcs51/gen.c (toBoolean): added check for size,
5525 (genModOneByte): optimized code for signed char modulo a literal
5526 power of 2 (thanks to Hubert Sack),
5527 (genRRC): removed unnecessary "clr c",
5528 (genRLC): replaced "add a,acc" with cheaper "rlc a"
5529 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
5531 swapped rules 256.c and 256.d,
5532 extended 256.d by using new multiple checks (thanks Erik),
5533 added rules 256.e and 256.f,
5534 updated rule 261.a and 261.b to new generated code
5535 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
5537 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5539 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
5540 induction related bugs, including first part of bug #1074377
5542 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
5544 * applied patch from bug-report #1076292,
5545 * applied patches for genAnd and Goto-optimizations for Raphael
5547 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
5548 dump a less iCode information,
5549 * src/pic16/device.h (pic16_options_t): added field debgen,
5550 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
5551 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
5552 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
5554 * (various functions): added macros FENTRY and FENTRY2 to functions,
5555 to emit function prologue,
5556 * (various functions): fixed indentation,
5557 * (genNearPointerGet): fixed loading of FSR0,
5558 * (genPackBits): applied patch from Raphael Neider to fix updating
5559 of FSR0 and touching only the modified bits,
5560 * src/pic16/genarith.c (various functions): added macros FENTRY to
5561 emit function prologue in comments,
5562 * src/pic16/pcode.h: added functions debugf2, debugf3,
5563 * src/pic16/ralloc.c: partial fix for packForPush caused
5566 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5568 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
5569 <stsp AT users.sourceforge.net> with reversed byte order
5570 * support/regression/tests/rotate.c: added (ds390 skips some tests)
5572 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5574 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
5576 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
5577 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
5579 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
5581 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
5583 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5585 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
5587 (setFromConditionArgs): friendly operand parser for peephole rules,
5588 (operandBaseName, operandsNotRelated): new peephole condition
5589 "operandsNotRelated" -- similar to "operandsNotSame", but takes
5590 architecture specific register naming into account, handles n-way
5591 comparisons, and supports quoted literals
5592 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
5594 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5596 * src/mcs51/peeph.def: fixed bug #1076940
5598 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
5600 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
5602 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5604 Adding support for replacing ljmps with sjmps in jumptables
5605 generated for switch statements. For now you need to set the
5606 environment variable SDCC_SJMP_JUMPTABLE to enable this.
5607 Now 4 algorithms for mcs51 jumptable generation are used:
5608 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
5609 addresses loaded pc-relative for up to 112 cases and stack-pushing
5610 target addresses loaded with offset from dptr for up to 256 cases.
5612 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
5613 * src/mcs51/main.c: adapted constants for switch table generation
5614 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
5616 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
5618 * device/lib/printf_large.c (_print_format): fixed bug 1073386
5619 * support/regression/tests/bug1057979.c: added test for bug 1073386
5621 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
5623 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
5626 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
5628 * src/pic16/device.h,
5629 * src/pic16/genarith.c,
5632 * src/pic16/pcode.c: applied patches #1068154 and #1070213
5634 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
5636 Large cummulative patch for pic16 port.
5637 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
5638 to call when a stack overflow occurs,
5639 * (malloc.h): added CVS Id tag,
5640 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
5642 * added libc directory. The current version of LibC contains string
5643 functions, ctype functions and macros and some functions of the
5644 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
5645 be extensively tested in the future. Standard disclaimer here.
5646 Library is not automatically build yet. But one can build it by
5647 invoking 'make' inside the libc directory.
5648 * added ADC library under libio. Preliminary version yet.
5650 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
5651 * src/pic16/gen.c (aopForRemat): asmop size is filled by
5652 aopForRemat() now and not by pic16_aopOp(),
5653 * (pic16_popGetTempReg): removed warning messgae when allocating
5654 temporary registers, its a buggy feature and will be removed,
5655 * (pic16_popGet): set register instance field in AOP_CRY,
5656 * (pic16_outBitC): fixed for results in size greater than 1,
5657 * (genUminusFloat): fixed for pic16, ported code from mcs51,
5658 * (pic16_storeForReturn): optimized return of 0,
5659 * (genCmp): experimental code for new genCmp which uses PIC18's
5660 special compare&skip instructions. Initial tests fail some times
5661 with variables grater than 1 byte in size, so new code is disabled,
5662 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
5664 * (genCast): began a fix to optimize the casting of a bit to another
5665 bit, now assigning a bitfield to another bitfield will fail, sorry,
5666 * src/pic16/main.c: disabled the use of lr-support feature,
5667 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
5668 * added some function prototypes, added function _debugf prototype,
5669 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
5670 bits with offset (case PO_GPR_BIT),
5671 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
5673 * (isBankInstruction): modified to return 0 for no banking instruction,
5674 and 1 for banking instruction,
5675 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
5676 caused stop processing pCodes after a inline assembly block,
5677 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
5678 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
5679 registers when it shouldn't,
5680 * src/pic16/ralloc.c (allocReg): add preliminary support for
5681 supporting a limited set of temporary registers,
5683 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5685 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
5686 genDataPointerSet): ensure assignments always copy in MSB to LSB
5688 (loadRegFromAop): recognize CLRH optimization,
5689 (genFunction): optimize RECEIVE iCodes in reentrant functions
5691 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5693 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
5694 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
5696 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
5697 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
5698 contiguous with data
5700 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5702 * device/lib/_gptrget.c (_gptrget),
5703 * device/lib/_gptrgetc.c (_gptrgetc),
5704 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
5705 instead of sjmp to ret
5706 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
5707 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
5709 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
5711 * .version: bumped version to 2.4.7
5712 * device/lib/_gptrget.c (_gptrget): is now _naked
5713 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
5714 * device/lib/_gptrput.c (_gptrput): is now _naked
5715 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
5716 (createFunction): fixed xstack
5717 * src/SDCCglue.c (emitMaps): set allocation required for bit area
5718 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
5720 (geniCodeCritical): store original interrupt state in an iTemp bit
5721 var unless stack-auto
5722 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
5723 * src/SDCCmain.c (setIncludePath): added include/target to search path
5724 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
5725 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
5727 (processFuncArgs): put bit vars in bit area
5728 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
5729 unsaveRBank): fixed xstack,
5730 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
5731 (genFunction, genEndFunction): fixed xstack,
5732 (genAssign): optimization don't walk backwards through mem
5733 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
5734 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
5735 * support/regression/Makefile: also make library (for stack-auto) when
5736 making "all" and added "test-mcs51-xstack-auto"
5737 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
5738 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
5739 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
5740 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
5741 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
5742 make-library by MAKE_LIBRARY
5743 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
5744 regression tests for xstack
5745 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
5746 * support/regression/tests/critical.c: test for critical on mcs51
5748 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5750 * support/regression/ports/ucz80/spec.mk: use include and lib files from
5751 built version of sdcc instead of installed version
5753 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
5755 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
5756 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
5758 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
5759 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
5760 WARNING: remove device/lib/build/z80/printf.o by hand when
5761 updating from previous build!
5762 * device/lib/z80/printf.c: updated comment
5763 * support/regression/tests/bug1057979.c: test all ports now
5764 * support/regression/tests/bug1065458.c: file added
5766 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5768 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
5769 *_start and *_end symbols for static functions
5771 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
5773 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
5774 and search crt0.o in all library paths,
5775 (setIncludePath): proper handling of --nostdinc,
5776 (setLibPath): proper handling of --nostdlib
5777 * support/regression/Makefile,
5778 * support/regression/ports/ds390/spec.mk,
5779 * support/regression/ports/gbz80/spec.mk,
5780 * support/regression/ports/hc08/spec.mk,
5781 * support/regression/ports/mcs51/spec.mk,
5782 * support/regression/ports/mcs51-large/spec.mk,
5783 * support/regression/ports/mcs51-stack-auto/spec.mk,
5784 * support/regression/ports/z80/spec.mk: use include and lib files from
5785 built version of sdcc instead of installed version
5786 * doc/sdccman.lyx: fixed typo in --nostdinc
5788 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
5793 * src/pic/gen.c : added support to generate code for struct bit fields.
5795 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
5797 * as/xa51/xa_version.h,
5798 * device/include/errno.h,
5799 * device/include/regc515c.h,
5800 * device/lib/_itoa.c,
5801 * device/lib/_ltoa.c,
5802 * device/lib/ser_ir_cts_rts.c,
5803 * sim/ucsim/xa.src/glob.cc,
5804 * sim/ucsim/xa.src/inst_gen.cc,
5805 * sim/ucsim/xa.src/xa_bit.cc,
5806 * sim/ucsim/xa.src/xa_sfr.cc,
5807 * sim/ucsim/z80.src/inst_dd.cc,
5808 * sim/ucsim/z80.src/inst_fdcb.cc,
5809 * support/scripts/keil2sdcc.pl,
5810 * src/pic16/pic16.dsp,
5811 * src/pic16/pic16a.dsp: corrected cvs line endings
5812 * device/lib/printf_large.c: fixed bug 1057979
5813 * src/pic16/gen.c: fixed non-C standard code
5814 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
5815 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
5816 * support/regression/ports/mcs51/support.c: reload T1 asap
5817 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
5818 pdata use and clear idata startup behaviour
5819 * support/regression/tests/bug1057979.c: added
5821 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
5823 * device/examples/ds390/ow390/ad26.h,
5824 * device/examples/ds390/ow390/cnt1d.h,
5825 * device/examples/ds390/ow390/crcutil.c,
5826 * device/examples/ds390/ow390/ownet.h,
5827 * device/examples/ds390/ow390/owsesu.c,
5828 * device/examples/ds390/ow390/swt12.h,
5829 * device/examples/ds390/ow390/swtoper.c,
5830 * device/examples/ds390/ow390/temp10.h,
5831 * device/examples/ds390/ow390/thermodl.c,
5832 * device/examples/ds390/tinitalk/tinitalk.dsp,
5833 * device/examples/ds390/tinitalk/tinitalk.dsw,
5834 * device/examples/mcs51/clock/hw.h,
5835 * device/examples/mcs51/simple2/go.bat,
5836 * device/examples/serialcomm/windows/serial.h,
5837 * device/examples/xa51/dummy.c,
5838 * device/examples/xa51/hello.c,
5839 * device/include/80c51xa.h,
5840 * device/include/at89x051.h: corrected cvs line endings
5842 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
5844 * src/pic16/main.c (options): added command line --gstack, to trace
5845 stack over/under flows,
5846 * added pragma 'wparam' to allow passing first byte of function
5847 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
5848 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
5849 call to __gstack_test function and sets up the symbol as extern,
5850 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
5851 * popaop): added call to pic16_testStackOverflow,
5852 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
5854 * (genCall, genPcall): now all parameters are passed via stack
5855 except in functions that are pass to wparam pragma in which WREG is
5857 * (genPcall): REENTRANT flag is checked to see if variable prototype
5858 contains reentrant keyword, don't call a non-reentrant function, via
5859 a reentrant function pointer or vice versa, functions are never
5861 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
5863 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
5864 SIGSEGV when accessing a NULL register stucture,
5865 * (pic16_printGPointerType): modified to handle UPPER modifier for
5866 function initializers, changed prototype of function to simpler one,
5867 * (pic16_printIvalFuncPtr): check to see if function is already
5868 added in externs list,
5869 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
5870 optimized a move from W to SFR with a move to the same register
5872 * device/lib/pic16/debug: NEW directory, contains debug features
5873 which are enabled when linking with libdebug.lib, currently command
5874 line option --gstack enables stack pointer tracing for over/under
5875 flow, corresponding sources are in debug/gstack
5877 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
5879 * doc/sdccman.lyx: updated SDCC version,
5880 * (PIC16 port): update list of command line options,
5881 * src/pic16/device.h (structure pic16_options_t): added field gstack
5882 to enable stack overflow tracing on push/pops,
5883 * src/pic16/device.c (statistics structure): added statistics
5885 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
5886 pic16_dump_int_registers): increase statistics counters for each
5887 * variable which is encountered
5888 * (pic16_dump_usection): emit each .udata variable to its own udata
5890 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
5891 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
5892 parameters via stack, otherwise use old scheme,
5893 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
5894 assembler output file,
5895 * src/pic16/main.c: added command line options --gstack to enable
5896 push/pop tracing for stack overflow,
5897 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
5898 instructions): added size of each instruction,
5899 * (pic16_countInstruction): estimate size of instructions in
5900 the_pFile list, inline assembly blocks are not counted,
5901 * (pic16_FixRegisterBanking): trace previous register usage, when
5902 banksel optimizations is greater than 0, don't emit a redudant
5905 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
5907 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
5908 * src/pic16/ralloc.c : applied same fix for pic16.
5909 * src/pic/gen.c : tidied it up a little.
5911 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5913 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
5914 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
5916 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5918 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
5920 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5922 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
5923 non-reentrant function __modsint in the interrupt function (thus
5924 corrupting math operations during serial I/O)
5925 * device/lib/ser_ir.c: as above, changed buffersize
5926 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
5928 * doc/Makefile: added option -t for rsync
5930 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5932 * src/SDCCast.h (struct ast),
5933 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
5935 2004-10-20 Borut Razem <borut.razem AT siol.net>
5937 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
5940 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
5942 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
5944 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
5945 support functions to replace long sequences of MOVFF's from access
5946 bank registers to stack and vice versa,
5947 * src/pic16/device.h: added new field opt_flags, where optimization
5948 flags can be set to enable certain features,
5949 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
5950 * pBlock, (genFunction, genEndFunction): surroung loop for
5951 saving/loading used registers in stack with PC_INFO pCodes,
5952 INF_LREGS. Code in between can then be optimized by pCode optimizer
5953 to support function calls,
5954 * (genDataPointerSet): fixed bug which loaded float fields in
5955 structures with corrupt data,
5956 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
5957 in a standard way debug info on stderr. Feature used for developing
5959 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
5960 obsolete chunks of code,
5961 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
5962 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
5963 * pic16/src/pcode.c (pic16_newpCodeInfo,
5964 * (pic16_newpCodeOpLocalRegs),
5965 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
5967 * (pic16_pCodeConstString): printing of the initial value of a
5968 symbol as a comment is inhibited since parsing was already done by
5969 copyStr and output is corrupt,
5970 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
5972 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5974 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
5976 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
5978 * as/mcs51/lkarea.c: removed old K&R style,
5979 (lnksect): changed check on boundary error,
5980 (lnksect2): changed check on boundary error,
5981 (lnksect2): extend XSTK to end of page if size = 1
5982 * as/mcs51/lkmain.c: removed old K&R style,
5983 (Areas51): create l_IRAM symbol
5984 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
5985 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
5986 model-mcs51-stack-auto, added model-mcs51-xstack-auto
5987 * device/lib/_mullong.c: added version to be compiled with xstack
5988 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
5989 * device/lib/mcs51/crtxclear.asm: clear pdata as well
5990 * device/lib/mcs51/crtxstack.asm: fixed comment
5991 * src/SDCCglue.c: maxInterrupts defaults to 0,
5992 (emitMaps): added pdata,
5993 (createInterruptVect): (re)moved default,
5994 (glue): added pdata,
5995 (glue): moved __start__xstack to XSTK with default size 1
5996 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
5997 and options.float_rent when options.stackAuto is set,
5998 (linkEdit): only write XDATA_NAME if provided on command line
6000 * src/SDCCmem.c: added pdata
6001 * src/port.h: added pdata_name to PORT
6002 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
6003 (saveRegisters, unsaveRegisters): removed usage of B,
6004 (genMinus): fixed accumulator clash,
6005 (genJumpTab): added comment, this needs another look
6006 * src/mcs51/gen.c: added check for "B in use" paranoia,
6007 added pushB() and popB()
6008 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
6017 * src/z80/main.c: (reset_regparms) made void parameter explicit and
6018 added PSEG (PAG,XDATA) or NULL to port specifier
6019 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
6020 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
6021 (_mcs51_genInitStartup): removed __start__xstack equ,
6022 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
6023 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
6024 * src/z80/gen.c (_rleAppend): fixed warnings
6025 * support/regression/tests/zeropad.c: added pdata test
6026 * .version: bumped to 2.4.6
6028 2004-10-17 Borut Razem <borut.razem AT siol.net>
6030 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
6031 as a part of nightly build
6033 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
6035 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
6036 WREG holds the first byte function parameters,
6037 * (aopForSym): take special case for symbols which are in FARSPACE
6038 but in CODESPACE too,
6039 * (assignResultValue): modified to take into account _G.useWreg,
6040 * (genCall): don't use wreg for parameter passing when function is
6041 declared as reentrant, too, added optimization INCF to stack
6042 pointer when stack parameter count is 1,
6043 * (genFunction, genEndFunction): refurnished and fixed to not using
6044 wreg for passing parameters when function has varargs or is
6045 reentrant, fixed bug with symbol name compare for generating
6046 functions in absolute address,
6047 * (pic16_storeForReturn): refurnished,
6048 * (genCmp): began writing a new version of the function, not ready
6049 yet, therefore it is disabled,
6050 * (genAssign): do not read code memory when assigning a function to
6052 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
6053 array of characters, not pointer,
6054 * (pic16initialComments): in debug mode emit an .ident directive for
6056 * (_process_pragma): emit a new warning type (internal to pic16)
6057 when setting stack to default length, emit a similar warning when
6058 placing a function at absolute address and address is not word aligned
6059 * (_pic16_parseOptions): added 'return TRUE' statement,
6060 * (_pic16_linkEdit): if compiling a source, then add the source's
6061 file object, first in the list of objects to link,
6063 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
6065 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
6066 * src/pic/main.c : removed VC warning.
6067 * src/pic/gen.c : changed comment.
6069 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
6071 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
6072 reference to a deprecated symbol _GPTRREG was causing failure to
6073 link. Thanks G. M. Gallant for the info.
6075 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
6077 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
6078 comments for Bugs item #954788.
6080 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
6082 * src/pic16/device.c (pic16_dump_gsection,
6083 * pic16_groupRegistersInSection): handle symbols declared to be in
6084 access bank differently,
6085 * src/pic16/gen.c (struct _G): added field resDirect,
6086 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
6087 send values read from stack directly to result and don't allocate
6089 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
6091 * (pic16_sameRegsOfs): NEW,
6092 * (freeAsmop): if _G.resDirect is set then do not mark registers as
6093 free because they were not allocated from temporary pool,
6094 * pic16_popRegFromString): workaround to fix a problem with
6095 allocating variables twice or never,
6096 * (genGenPointerGet): using PRODL instead of FSR0H,
6097 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
6099 * (genAssign): take advantage of the _G.resDirect flag,
6100 * (genCast): around line 11844, use mov2f instead of directly
6101 MOVFF'ing between operands to account for literal values,
6102 * src/pic16/genutils.c: some new debug functions for gpsim have been
6104 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
6105 float with integer part only,
6106 * src/pic16/main.c (_process_pragma): handle pragma udata access to
6107 place variables in access bank
6108 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
6109 updated sources to reflect recent changes in gen.c
6111 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
6113 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
6114 sources that searched for headers in installation path, now the
6115 device/include/pic16 is used,
6116 * src/pic16/glue.c (pic16glue),
6117 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
6118 .line directives if not in debug mode, this suppresses assembler's
6119 warnings for ignored directives
6121 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6123 * src/port.h: made reset_regparms prototype void parameter explicit.
6124 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
6125 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
6126 * doc/sdccman.lyx: documented warning disabling and how to use
6127 printf_large to make it print floats.
6128 * device/include/stdbool.h: NEW
6129 * device/lib/_atof.c,
6130 * device/lib/_divuint.c,
6131 * device/lib/_divulong.c,
6132 * device/lib/expf.c,
6133 * device/lib/printf_large.c,
6134 * device/lib/sincosf.c,
6135 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
6136 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
6137 a completely reentrant lib.
6139 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
6141 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
6142 * device/include/pic16/stdio.h: fixed bug with colon
6144 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
6146 * device/include/pic16/stdio.h,
6147 * device/include/pic16/stdlib.h,
6148 * device/include/pic16/math.h: NEW
6149 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
6150 declared as _naked to reduce overhead
6151 * device/lib/Makefile.in (target port-specific-objects-pic16):
6152 changed * to *.* so to ignore the CVS directory,
6153 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
6154 stacked variables back in stack,
6155 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
6158 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
6160 * .version: bumped version number to 2.4.5
6161 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
6162 * support/Util/SDCCerr.c (messages structure): added entry for
6165 Large cumulative patch for pic16 port and libraries.
6166 * device/include/pic16/sdcc-lib.h,
6167 * device/include/pic16/stdarg.h,
6168 * device/include/asm/pic16/features.h,
6169 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
6170 * device/include/pic16/float.h: changes reentrant keyword with
6171 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
6172 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
6173 updated target build-libraries to include objects from gptr,
6174 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
6175 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
6176 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
6177 all function headings,
6178 * src/SDCCmain.c: added global parameter userIncDirsSet,
6179 * (parseCmdLine): when option -I is encountered add directory to
6181 * src/version.awk: added space between control and long,
6182 * src/pic16/NOTES: added some notes for the port,
6183 * src/pic16/gen.c: added prototype for mov2fp function,
6184 * (fReturnpic16[]): properly named return value registers,
6185 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
6186 * (aopForSym): added code to handle symbols with onStack flag set,
6187 symbols onStack are allocated PTRSIZE bytes,
6188 * (aopFreeAsmop): handles special case where asmops are stack objects,
6189 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
6190 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
6191 added argument lock to trace flaws in allocating temporary registers
6192 when developing port,
6193 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
6194 * (pic16_popRegFromString): reenabled allocating a direct register
6196 * (assignResultValue): various beautifications,
6197 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
6198 referenced function argument,
6199 * (genIpush): reenabled to allow stacked arguments, handles only
6200 ic->parmPush iCodes,
6201 * (genCall, genPcall): major changes to allow for variable argument
6202 functions, fixed a bug with falsely restoring stack pointer after
6203 returning from call,
6204 * (genFunction): pending code for critical function,
6205 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
6206 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
6207 * (genNearPointerGet): fixed bug with indirect reading, was always
6209 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
6211 * (genAddrOf): rewrote code to take address of a stacked function parameter
6212 * (genCast): fixed casting to generic pointer type,
6213 * src/pic16/gen.h: added AOP_STA,
6214 * (struct asmop): added field stk,
6215 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
6216 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
6217 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
6218 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
6219 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
6220 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
6222 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
6224 * (pic16_port structure): generic pointer size is set to 3,
6225 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
6226 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
6228 * src/pic16/ralloc.c (allocReg): prevent allocating register when
6229 operand is an iTemp,
6231 2004-09-24 Martin Helmling <mh AT octo-soft.de>
6233 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
6234 * debugger/mcs51/simi.c: addapt new syntax of s51
6236 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
6238 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
6239 * src/pic16/pcode.c: commented out some calls to free() in order to
6242 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6245 * src/SDCCicode.c (isiCodeInFunctionCall),
6246 * src/avr/ralloc.c (selectSpil),
6247 * src/pic/ralloc.c (selectSpil),
6248 * src/pic16/ralloc.c (selectSpil),
6249 * src/ds390/ralloc.c (selectSpil),
6250 * src/hc08/ralloc.c (selectSpil),
6251 * src/xa51/ralloc.c (selectSpil),
6252 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
6253 stack in the middle of a function call sequence (fixes bug #1020268)
6254 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
6255 costs associated with the minimum switch case.
6257 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6259 * src/SDCC.lex: fixed bug #1030549
6261 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6263 * src/SDCCcse.h (struct cseDef),
6264 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
6265 over a function call if the CSE is derived from a symbol whose
6266 address has been taken (fixes bug #1029883)
6267 * support/regression/tests/bug-1029883: a new regression test for
6270 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6272 * src/hc08/gen.c (emitinline): fixed bug #1029778
6273 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
6274 to a cast object is no longer a syntax error ("fixes" bug #1030006,
6275 and starts toward RFE #905167)
6277 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
6279 * src/pic16/gen.c (mov2f): New function to move an operand to
6280 another without considering if it is a literal or a register,
6281 * (pic16_sameRegs): don't check if they are both AOP_REG,
6282 * (AccRsh): removed andmask=0 lines,
6283 * (genLeftShift): duplicated to be improved in future versions,
6284 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
6285 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
6286 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
6287 * (pic16initMnemonics): added initialization for POC_INFSNZW,
6288 * (insertBankSwitch): fixed inserting banksel directives algorithm
6289 for instructions that follow a skip instruction, this fixes a report
6290 for broken subtraction code generation,
6291 * src/pic16/ralloc.c (deassignLRs): do not free register if current
6292 iCode is a left op, just in case result and right share the same
6295 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6298 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
6300 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
6301 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
6302 on 2004-09-12; it was buggy
6304 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
6306 * src/SDCCsymt.h: removed RESULT_CHECK
6311 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
6313 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
6315 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
6316 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
6317 configuration values no more rejected by compiler, they are assigned
6318 to configuration registers with a warning message instead,
6319 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
6320 the for-loop so last conf register is emitted too,
6321 * (_pic16_initPaths): link library libsdcc.lib by default,
6322 * (_hasNativeMulFor): modified test for multiplication according to
6323 Raphael Neider's remarks. Integer multiplication is also done with
6325 * device/include/pic16/pic18fregs.h: corrected type error in while
6326 testing and including 18f6720 header file
6328 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
6330 * src/pic16/device.h (pic16_options): removed field use_crt,
6331 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
6332 until an optimization to handle single bits is added,
6333 * (pic16_loadFSR0): moved before genUnpackBits,
6334 * (genAnd): some white lines removed,
6335 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
6336 leave_reset flags in pic16_options when using crt modules,
6338 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
6340 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
6341 for bugs 898889 & 979599. Also used some safer print instructions.
6343 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
6345 * src/pic16/device.h (pic16_options_t): added field use_crt,
6347 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
6348 catch a probable future bug,
6349 * src/pic16/gen.c: aopIdx function commented out,
6350 * (genAssign): commented out old code which used aopIdx,
6351 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
6352 code, added if conditionals to take into account the --use-crt
6353 command line options,
6354 * src/pic16/main.c (pic16_optionsTable): added new command line
6355 options, --use-crt= and --no-crt,
6356 * (_pic16_linkEdit): now the proper crt object is added in the
6357 linker command line except than when --no-crt is specified,
6358 * src/pic16/pcode.c,
6359 * src/pic16/pcode.h: added some structures and functions for a new
6360 optimization scheme to compansate for instruction overhead between
6361 same iCodes, this scheme is currently under development and is not
6363 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
6365 * device/lib/pic16/startup/crt0i.c,
6366 * device/lib/pic16/startup/crt0iz.c: added global char variable
6367 __uflags to force the generation of an idata section
6369 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
6372 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
6373 * doc/sdccman.lyx: updated sdcc version to 2.4.4
6375 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6377 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
6378 Frieder) and clarified the default code optimization mode
6380 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6382 * src/SDCC.lex (doPragma, process_pragma),
6383 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
6384 "opt_code_size", and "opt_code_balanced"
6385 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
6386 regrouped options by category, added support for category headers
6387 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
6388 and "--opt-code-size"
6389 * doc/sdccman.lyx: documented these new options and pragmas
6390 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
6391 preference into account
6393 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6395 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
6396 geniCodePreDec): Fixed bug 904237 by generating a warning
6398 * src/SDCCerr.c: added warning W_SIZEOF_VOID
6400 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
6402 * src/pic/device.c : When no max ram set validate full memory range.
6404 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
6406 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6408 * device/lib/_gptrget.c,
6409 * device/lib/_gptrput.c: updated comment
6410 * device/lib/calloc.c,
6411 * device/lib/free.c,
6412 * device/lib/malloc.c,
6413 * device/lib/realloc.c: added LGPL, made them reentrant-safe
6414 * src/SDCCcse.c (cseBBlock),
6415 * src/SDCCicode.c (printOperand, geniCodeArray),
6416 * src/SDCCicode.h (struct operand): fixed bug 868103
6417 * support/regression/tests/bug-868103.c: added
6418 * src/SDCCast.c (searchLitOp),
6419 * src/SDCCcse.h (struct cseDef),
6420 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
6421 * src/SDCCicode.h (struct operand),
6422 * src/SDCCsymt.h (struct sym_link),
6423 * src/avr/gen.c (hasInc),
6424 * src/ds390/gen.c (hasInc),
6425 * src/hc08/gen.c (genPlusIncr, hasInc),
6426 * src/mcs51/gen.c (hasInc),
6427 * src/pic16/glue.c (pic16_printIvalChar),
6428 * src/pic16/ralloc.c (regWithIdx),
6429 * src/xa51/gen.c (hasInc) : removed warnings
6430 * src/SDCCast.c (createBlock): added comment ???
6431 * src/hc08/ralloc.c: updated comments
6433 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6435 * doc/sdccman.lyx: updated section on switch statements, added
6436 section about semaphore locking
6437 * doc/Makefile: added option -info for latex2html
6438 * device/lib/_gptrget.c,
6439 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
6441 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
6445 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
6446 maxram is less than 0x100.
6448 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
6450 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
6452 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6463 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
6464 a jump table is the best form for a switch statement, including
6465 automatic insertion of missing cases to make the case range
6466 continuous. Developed in collaboration with Frieder Ferlemann.
6468 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6470 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
6471 accumulator result if it needs sign extension
6473 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6475 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
6477 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6479 * device/lib/gbz80/printf.c,
6480 * device/lib/z80/printf.c: removed define for NULL
6482 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
6484 * as/xa51/xa_link.c,
6485 * device/examples/ds390/ow390/ad26.c,
6486 * device/examples/ds390/ow390/cnt1d.c,
6487 * device/examples/ds390/ow390/counter.c,
6488 * device/examples/ds390/ow390/ds2480.h,
6489 * device/examples/ds390/ow390/ds2480ut.c,
6490 * device/examples/ds390/ow390/findtype.c,
6491 * device/examples/ds390/ow390/gethumd.c,
6492 * device/examples/ds390/ow390/owllu.c,
6493 * device/examples/ds390/ow390/ownetu.c,
6494 * device/examples/ds390/ow390/swt12.c,
6495 * device/examples/ds390/ow390/swtloop.c,
6496 * device/examples/ds390/ow390/temp.c,
6497 * device/examples/ds390/ow390/temp10.c,
6498 * device/examples/ds390/ow390/thermo21.c,
6499 * device/examples/ds390/ow390/tinilnk.c,
6500 * device/examples/ds390/ow390/tstfind.c,
6501 * device/examples/serialcomm/windows/serial.cpp,
6502 * device/examples/serialcomm/windows/test_serialcomm.cpp,
6503 * device/include/reg51.h: fixed line endings for cvs
6505 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6507 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
6508 packRegsForAccUse, packRegisters): new accumulator register
6510 * support/regression/ports/hc08/support.c (_putchar): suppress
6511 warning of unused variable
6512 * src/SDCCicode.c: added SWAP entry to codeTable
6514 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
6516 * device/lib/sprintf.c: forgot to add this file before previous commit
6518 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
6520 * src/pic16/gen.c (genPackBits): added operand right in function
6521 parameters, load result directly if p_type is POINTER (that is
6522 called by genNearPointerSet)
6523 * (genUnPackBits): added operand left in function parameters,
6524 * (genNearPointerGet, genNearPointerSet): prevent the loading of
6525 FSR0 if accessing bitfields,
6527 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
6529 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
6530 _print_format; updated printf, sprintf, vsprintf
6531 * device/include/asm/default/features.h: corrected comment/define
6532 * device/lib/Makefile.in: added sprintf.c
6533 * device/lib/libsdcc.lib: added sprintf module
6534 * device/lib/printf_large.c,
6535 * device/lib/vprintf.c,
6536 * device/lib/sprintf.c: totally refactored printf_large and vprintf
6538 * support/regression/Makefile: changed ALL_PORTS into a usefull default
6539 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
6540 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
6542 * support/regression/tests/zeropad.c: define idata as data for hc08
6544 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6546 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
6547 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
6548 labels are referenced at least once (even if a reference is not found)
6549 * src/hc08/gen.c (emitcode): set isComment flag for comments
6550 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
6551 loads), rules 6a..6b (optimize jumps to return)
6553 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6555 * device/lib/acosf.c (acosf),
6556 * device/lib/asinf.c (asinf),
6557 * device/lib/atanf.c (atanf),
6558 * device/lib/ceilf.c (ceilf),
6559 * device/lib/cosf.c (cosf),
6560 * device/lib/coshf.c (coshf),
6561 * device/lib/cotf.c (cotf),
6562 * device/lib/fabsf.c (fabsf),
6563 * device/lib/floorf.c (floorf),
6564 * device/lib/log10f.c (log10f),
6565 * device/lib/logf.c (logf),
6566 * device/lib/sinf.c (sinf),
6567 * device/lib/sinhf.c (sinhf),
6568 * device/lib/sqrtf.c (sqrtf),
6569 * device/lib/tanf.c (tanf),
6570 * device/lib/tanhf.c (tanhf),
6571 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
6572 replaced all instances of "reentrant" in the library functions
6573 defined in math.h with this macro.
6574 * support/regression/tests/float_trans.c: reenabled test for hc08
6576 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
6578 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
6581 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6583 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
6584 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
6585 multi-byte volatile operands are used
6586 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
6587 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
6588 initialization to area GSINIT0 so that it would always precede
6589 any static initializers in GSINIT
6590 * support/regression/tests/zeropad.c: fixed idata define for hc08
6591 * support/regression/tests/bug-927659.c,
6592 * support/regression/tests/float_trans.c: disabled tests for hc08
6593 pending missing library routines
6594 * .version: increased version number to 2.4.4 - hc08 port now passes
6598 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
6600 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
6601 * Makefile.common.in,
6603 * as/hc08/Makefile.in,
6604 * as/mcs51/Makefile.in,
6605 * as/z80/Makefile.in,
6606 * debugger/mcs51/Makefile.in,
6607 * device/include/Makefile.in,
6608 * device/lib/Makefile.in,
6611 * link/z80/Makefile.in,
6612 * packihx/Makefile.in,
6613 * sim/ucsim/main_in.mk,
6614 * sim/ucsim/avr.src/Makefile.in,
6615 * sim/ucsim/doc/Makefile.in,
6616 * sim/ucsim/gui.src/serio.src/Makefile.in,
6617 * sim/ucsim/hc08.src/Makefile.in,
6618 * sim/ucsim/s51.src/Makefile.in,
6619 * sim/ucsim/xa.src/Makefile.in,
6620 * sim/ucsim/z80.src/Makefile.in,
6622 * support/cpp2/Makefile.in,
6623 * support/librarian/Makefile,
6624 * support/makebin/Makefile: added DESTDIR to the install path proposed
6625 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
6626 * doc/sdccman.lyx: added DESTDIR documentation
6628 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
6630 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
6631 instruction for interrupt handlers, use fast returns when returning
6632 from high priority interrupts
6634 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6636 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
6638 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
6639 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
6640 bugs, ported much of Bernhard's code from mcs51
6641 * src/mcs51/gen.c (genSend),
6642 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
6643 than one when calling a reentrant function
6644 * device/lib/_mullong.c: defined an alternate struct layout for big
6647 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6649 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
6652 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6654 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
6655 are sane and complete before asking the port its prefered parameter
6656 passing method (fixes bug #1017633)
6657 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
6660 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6662 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
6663 problem in bitfields >= 8 bits.
6665 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
6667 * src/SDCCsymt.c: undid changes that were not meant to be committed
6669 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
6671 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
6673 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
6675 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
6676 copied and wrong bit got inverted
6678 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6680 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
6681 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
6682 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
6683 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
6684 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
6685 assignments to bitfields at known addresses
6686 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
6687 reads from bitfields at known addresses
6688 * src/hc08/ralloc.c (packRegisters),
6689 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
6690 genhc08Code): optimize pointer get values used as conditionals
6691 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
6694 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6696 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
6697 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
6698 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
6701 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6703 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
6705 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6707 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
6710 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
6712 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
6714 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6716 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
6719 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
6721 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
6723 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6725 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
6726 cases use more compact code.
6728 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
6730 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
6732 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6734 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
6736 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6739 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
6740 parameter of changePointer() from symbol* to sym_link*
6741 * src/SDCCast.c (decorateType): call changePointer() for CAST op
6742 * src/SDCCsymt.c (compareType): void* type is castable to other
6743 pointers, but not necesarily an exact match.
6744 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
6745 is no longer blindly treated as an exact match.
6746 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
6748 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
6750 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
6752 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
6757 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
6759 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
6763 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
6765 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6767 * src/mcs51/gen.c (emitcode): fixed bug #992819
6769 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
6771 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
6772 there's no need to make it worse
6774 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6776 * src/mcs51/ralloc.c (deassignLR),
6777 * src/ds390/ralloc.c (deassignLR),
6778 * src/hc08/ralloc.c (deassignLR),
6779 * src/z80/ralloc.c (deassignLR),
6780 * src/pic/ralloc.c (deassignLR),
6781 * src/pic16/ralloc.c (deassignLR),
6782 * src/avr/ralloc.c (deassignLR),
6783 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
6784 rlivePoint): fixed another part of bug #971834
6786 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6788 * src/z80/main.c: enabled "critical" keyword
6789 * src/z80/mappings.i,
6790 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
6791 functions (fixes bug #979646)
6792 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
6794 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6796 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
6799 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
6801 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
6802 doesn't disable too much optimizations
6804 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
6806 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
6808 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
6810 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
6812 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
6814 * src/pic/gen.c tidied up tabs
6815 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
6816 * src/pic/main.c tidied up tabs
6817 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
6818 * src/pic/pcoderegs.c tidied up tabs
6819 * src/pic/ralloc.c tidied up tabs
6821 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
6823 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
6824 to S_FIXED for pic16 port and when symbol is not in level 0,
6825 allocate for S_REGISTER storage class and pic16 port, too,
6826 * src/pic16/device.h: prototype for checkSym,
6827 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
6828 * (pic16_assignConfigWordValue): test the value and the mask to
6829 validate that the value is suitable for the configuration word,
6830 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
6831 collect extern declared symbols, don't emit symbol twice, check
6832 first if symbol is in publics set first,
6833 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
6834 * added command line '--fstack' which enables an experimental
6835 feature for stack access, too buggy to be used yet...
6836 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
6837 * (pic16_allocDirReg): when register has storage class S_REGISTER
6838 allocate in pic16_dynAccessRegs,
6839 * device/include/pic16/pic18f????.h: modified configuration word
6840 naming convention, words started as CONFIG0H but should be CONFIG1H
6842 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
6844 * device/include/mcs51reg.h: fixed bug 970993
6846 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
6848 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
6849 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
6850 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
6851 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
6852 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
6853 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
6854 error/warning numbers,
6855 added function setWarningDisabled()
6856 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
6857 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
6858 _memcmp.c _memmove.c calloc.c realloc.c free.c
6859 * support/regression/tests/malloc.c: added tests for new functionality
6860 * support/regression/tests/zeropad.c: added tests for truncated initializers
6861 and initialized char arrays starting with '\x0'
6862 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
6864 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
6866 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
6868 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6870 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
6871 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
6872 peephole 177.e. Thanks to anonymous
6874 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
6876 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
6877 function isn't used in the source but referenced as a
6878 variable initializer then declare it as extern in .asm file
6880 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
6882 * .version: increased version number to 2.4.3
6884 Adding version extension according to ChangeLog CVS revision
6885 * src/Makefile.in (target all): added dependency 'version.h'
6886 * (rule version.h): added rule to create version.h from ChangeLog,
6887 * (rule dep): added dependency version.h,
6888 * src/version.awk: AWK script to create version.h
6889 * src/SDCCdwarf2.c (dwWriteModule),
6890 * src/SDCCglue.c (initialComments),
6891 * src/SDCCmain.c (printVersionInfo): modified to write after
6892 version string the version extension number,
6893 * src/SDCCutil.c: included "version.h"
6894 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
6896 * src/SDCCutil.h: added prototype for getBuildNumber
6898 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
6899 includeDirsSet, too,
6900 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
6901 const char [] is found in function prototype...
6903 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
6904 moving to WREG with source is already in WREG,
6905 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
6906 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
6907 * (aopForSym): stack'ed symbols are partially supported, added
6908 if-clause to support symbols in FARSPACE,
6909 * (sameRegs): added test for AOP_ACC to see if registers are same,
6910 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
6911 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
6912 * (pic16_popRegFromString): will not allocate a new register if it
6913 doesn't find one by name, bug may have introduced...
6914 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
6915 * (genIpush): revived to use pic16 port's stack,
6916 * (genAddrOf): added incomplete case for stack'ed operand,
6917 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
6918 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
6919 can handle multibyte operands,
6920 * src/pic16/glue.c (pic16_printIval*): some debug info added,
6921 * (pic16initialComments): added message for MPLAB compatibility
6923 * src/pic16/main.h: prototype for pic16_mplab_comp,
6924 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
6925 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
6926 * (_pic16_linkEdit): NEW, handles link stage, transferred here
6927 because of increased complexity of procedure,
6928 * (_process_pragma): stack pragma changed to format 'stack pos len',
6929 emit symbol '_stack_end' to conform with gplink,
6930 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
6931 to search for register,
6932 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
6934 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
6935 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
6936 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6937 case for PO_GPR_REGISTER,
6938 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
6939 dies, the new era is ahead !...
6940 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
6941 pic16_dynInternalRegs,
6942 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
6943 * (pic16_allocDirReg): minor optimizations and bug fixes,
6944 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
6946 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
6947 load stack and frame pointer with address of 'stack_end' symbol
6949 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
6951 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
6952 without source code but only variable initializers
6954 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
6956 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
6957 external are not declared as extern to reduce overhead while linking
6959 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
6961 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
6963 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
6965 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
6966 Yee Keat for the patch
6967 * src/SDCCast.c (decorateType): fixed bug #979599
6968 * src/ds390/gen.h: removed local fReturnSizeDS390
6969 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
6970 * src/ds390/gen.c (genAnd, genOr, genXor),
6971 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
6973 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
6975 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
6976 add relFilesSet to $3, manipulate $2 to handle linking of object
6977 files without source files in command line,
6978 * device/include/pic16 (all headers): added ID location macros,
6979 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
6980 entries for ID location bytes,
6981 * (pic16_assignIdByteValue): NEW,
6982 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
6983 added field dumpcalltree to pic16_options_t,
6984 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
6985 is used instead of pic16_Gstack_base_addr, check if (ifx) before
6986 emitting rFalseIfx label after check_carry label,
6987 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
6988 pic16_emitDIRegs), NEW
6989 * (pic16glue): dump .calltree file when option --calltree found,
6990 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
6991 * (_pic16_genAssemblerPreamble): emit ID locations after
6992 configuration registers,
6993 * (pic16_linkCmd): modifications of the link command,
6994 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
6995 * (pic16_pCodeInitRegisters): don't init stack registers,
6996 * (pic16_findPrevInstruction): fixed bug,
6997 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
6998 bug with immediate registers,
6999 * (buildCallTree): traces stack push and pop,
7000 * (pct2): dump also stack usage for each function,
7001 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
7002 * (pic16_allocDirReg): various modifications,
7003 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
7006 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
7008 * src/pic16/pcode.c: removed buggy double colon
7010 2004-07-01 Borut Razem <borut.razem AT siol.net>
7012 * support/scripts/sdcc.nsi: added include/pic16 to setup
7014 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
7016 * device/lib/Makefile.in: fixed bug in target objects-pic16,
7017 * device/lib/pic16/Makefile: prefixed with dash (-) command under
7019 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
7020 specific command line arguments. Also added sample lkr script
7021 for placing a variable at a specific memory bank.
7022 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
7023 at a specific memory bank,
7024 * (pic16_dump_isection): fixed bug which caused string literals to
7025 be omitted when dumping idata section,
7026 * (pic16_groupRegistersInSection): added code to handle registers
7027 in specific memory banks,
7028 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
7029 public, all references are renamed too,
7030 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
7032 * (pic16_storeForReturn): added case to handle when dest is WREG,
7033 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
7034 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
7035 pic16_rel_udata, check to see if that register is marked as being
7036 a member of a specific memory bank,
7037 * (pic16_printIvalCharPtr): added code to add string literals either
7038 to code or the idata sections,
7039 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
7040 also accept the 'udata' pragma,
7041 * src/pic16/main.h: new structure types sectName and sectSym
7042 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
7043 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
7044 * (pic16_findPrevInstruction): fixed, it returned nothing,
7045 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
7046 instruction combinations,
7047 * (pic16_FixRegisterBanking): heavily reorganised,
7048 * (pic16_AnalyzeBanking): if generating banksel directives is
7049 disabled, then don't call FixRegisterBanking at all,
7050 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
7052 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
7054 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
7056 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
7057 Phuah Yee Keat <yk.phuah AT nestac.com>
7059 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
7061 * src/pic16/glue.c (pic16createInterruptVect): function now emits
7062 correctly the IVT even if it is relocated to some other location
7064 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
7066 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
7067 * device/include/pic16/pic18f2220.h: NEW,
7068 * device/lib/pic16/libdev/pic18f2220.c: NEW,
7069 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
7070 * src/pic16/device.c (struct Pics16): added info for 18f2220,
7071 * src/pic16/device.h (struct pic16_options): added ivt_loc and
7072 nodefaultlibs, ivt_loc is the location of the interrupt vector
7073 table, and nodefaultlibs signs that default libraries should not be
7074 linked in link stage,
7075 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
7076 according to --ivt-loc argument,
7077 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
7078 when pragma stack is found,
7080 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7082 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
7083 256 (range check), 257 (do while), 258.a-f (bit banging
7084 f.e. on 3-wire SPI bus)
7086 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7088 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
7089 variables used exclusively within a loop
7091 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
7093 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
7095 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7097 * src/SDCClrange.c (computeClash): fixed bug #971834
7099 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7101 * src/mcs51/gen.c (genCmp): fixed bug #975903
7102 * src/hc08/gen.c (operandsEqu),
7103 * src/ds390/gen.c (operandsEqu),
7104 * src/z80/gen.c (operandsEqu),
7105 * src/pic/gen.c (operandsEqu),
7106 * src/pic16/gen.c (operandsEqu),
7107 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
7108 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
7110 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7112 * src/SDCCcse.c (cseBBlock): fixed bug #966963
7114 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
7116 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
7117 default case in switch statement,
7118 * glue.c (pic16_initPointer): expr is initialised via decoarteType
7119 to eliminate problem with initialisation of pointers, but problem
7121 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
7122 * (emitStaticSegment): removed various lines emitting debug info,
7123 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
7124 added processor registers for utilizing EEPROM,
7125 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
7126 configurable and set 8
7128 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
7130 * .version: increased version number to 2.4.2,
7132 Cumulative patch for pic16 port
7133 * src/pic16/device.c: changed scheme to dump initial values for
7134 variables in idata segment, all print_idata* functions were removed,
7135 now the pic16_printIval* will be called,
7136 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
7137 * _pic16_printPointerType, pic16_printPointerType,
7138 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
7139 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
7140 NEW, similar to the respective functions in SDCCglue.c,
7141 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
7142 way, emitting hex bytes,
7143 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
7145 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7147 * src/avr/ralloc.c (serialRegAssign),
7148 * src/xa51/ralloc.c (serialRegAssign),
7149 * src/pic/ralloc.c (serialRegAssign),
7150 * src/pic16/ralloc.c (serialRegAssign),
7151 * src/hc08/ralloc.c (serialRegAssign),
7152 * src/z80/ralloc.c (serialRegAssign),
7153 * src/ds390/ralloc.c (serialRegAssign),
7154 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
7156 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7158 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
7159 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
7161 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
7163 Cumulative patch for pic16 port:
7164 * src/pic16/device.h (typedef PIC16_device) modified fields for
7165 defining microcontrollers,
7166 * src/pic16/device.c: added new info for all devices in Pics16 array,
7167 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
7168 to be optimised out by the pCode optimiser,
7169 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
7170 specially, bug reported by G.M. Gallant,
7171 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
7172 as force'd so that cannot be optimised out by pCode optimiser,
7173 * src/pic16/pcode.c,
7174 * src/pic16/pcodepeeph.c,
7175 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
7176 they are disabled by default, but can be enabled explicit with
7177 command argument --denable-peeps, for testing,
7178 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
7179 --pomit-ivt in COMPILE_FLAGS
7181 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
7183 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
7186 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
7188 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
7190 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7192 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
7193 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
7195 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
7197 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
7198 would only assign 0x300001 register.
7200 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
7202 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
7203 in COMPILE_FLAGS. Thanks to G. Gallant for report.
7205 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7207 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
7209 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
7210 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
7211 added peephole 254 (left shift), 255 (jump table)
7213 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
7215 * device/lib/Makefile.in: removed comment line with model-pic16,
7216 * (target port-specific-objects-pic16): the libraries and objects
7217 are copied to the build directory form the device/lib/pic16/bin
7220 Cumulative patch concerning pic16 port:
7221 * library directory has been re-organized,
7222 * added support for PIC18F1220,
7223 * added headers and library sources for chips 18f1220,18f6520,
7224 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
7226 * configuration registers setting has changed, now each supported
7227 device has a complete description of the registers it uses,
7228 * all initialisations are moved to idata sections, these section
7229 can be absolute or relocatable,
7230 * fixed initialisation of codespace variables,
7231 * fixed warning about PCLATU and gpsim,
7232 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
7233 * (genAssign): use table reads when assigning from variables in codespace,
7234 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
7235 char/int variables placed in codespace,
7236 * (pic16_emitConfigRegs): NEW, emits a list with configuration
7237 registers set in .asm file, no need for --pomit-config-words anymore,
7238 * (pic16glue): some 8051 legacy segments are commented out
7239 (to be removed completely),
7240 * added support for alternative assembler and linker with --asm=
7241 and --link= command line arguments,
7242 * peepholes are disabled automatically in the port, no need to
7243 specify on command line,
7244 * port supports natively char/int/long multiplication, but converts
7245 all divisions to support functions,
7246 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
7247 to the file set in variable $2,
7248 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
7249 strings in ASCII format and not in hex,
7250 * ralloc.c (serialRegAssign): added a triplet of conditional calls
7251 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
7252 allocate proper register if iCodes aren't temporary,
7254 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
7256 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
7258 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
7260 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
7263 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7265 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
7266 computed address is reused
7267 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
7268 multi-byte bitfields
7270 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
7272 * src/z80/gen.c: (genArrayInit): must check for pointers too
7274 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
7276 * support/regression/tests/zeropad.c: never meant to commit the
7277 nestedstruct test: removed, added check for GCC version
7279 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
7281 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
7282 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
7283 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
7284 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
7285 bugs 928906 and 954082 half-empty initializers
7287 * src/SDCCsymt.c (getAllocSize): added for above fix
7288 * src/z80/gen.c (genArrayInit): fixed bug 741044
7289 * support/regression/tests/zeropad.c: added tests
7291 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
7293 * src/pic16/device.c (pic16_dump_section): corrected bug which
7294 caused some symbols of the libraries to be misplaced
7296 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
7299 * src/pic16/ralloc.h,
7300 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
7301 to fix conflict with pic port
7303 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
7305 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
7306 externs configuration variables,
7307 * src/pic16/ralloc.h,
7308 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
7309 prototype in header, commented out some debug messages
7311 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
7315 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
7316 for gpasm COFF object generation. Thanks to D. Hawkins for
7319 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7322 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
7323 Brock for spotting this)
7324 * src/ds390/gen.c (genEndFunction),
7325 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
7326 interrupt handler and critical. Disable push/pop optimizations when
7327 peephole optimizations disabled.
7329 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
7331 Updated pic16 library sources and headers.
7332 * device/lib/pic16/pic18f*/ ,
7333 * device/include/pic16/*.h: modified to handle structured SFR
7336 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
7338 * src/port.h (PORT structure): added hook initPaths, now each
7339 port can declare its own default search paths,
7340 which can been seen with the --print-search-dirs option,
7341 see pic16 port for example,
7342 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
7343 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
7344 * (doPrintSearchDirs): NEW, replaces in a central manner the
7345 printing of search dirs which was split in set*Paths functions,
7346 * (main): added call to port->initPaths and doPrintSearchDirs,
7351 * src/izt/tlcs900h.c,
7354 * src/pic16/main.c: modified port structures to reflect addition of
7357 * src/pic16/device.c (regCompare): registers are finally sorted by name,
7358 * (pic16_dump_section): for registers in same address reserve memory once,
7359 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
7361 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
7362 result is greater in size than right or left,
7363 * (pic16_genUMult8X8_8): there are some cases where the result can
7364 be 16 bits size, so handle these,
7365 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
7366 * (pic16_outBitC): modified to emit pcodes,
7367 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
7369 * (genDivOneByte): implemented algorithm to divide 8-bits,
7370 * (genCmp): uncommented goto, but issues still exist,
7371 * (genAnd): fixed a bug with variables >8bits,
7372 * (genPackBits): optimization added that uses BCF/BSF to change a
7374 * (genAssign): fixed bug when assigning floating point literals,
7375 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
7376 __sdcc_gsinit_startup label,
7377 * src/pic16/main.c (_pic16_init): removed search directory
7379 * (_pic16_initPaths): NEW, used to initialise search directories,
7380 * (_hasNativeMulFor): support functions for all except char/int
7381 multiplication, and char division,
7382 * (PIC16_port struct): modified entry for native mul support,
7383 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
7385 * (buildCallTree): call to register_usage is ifdef'ed out,
7387 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7389 * device/include/string.h: applied Stas Sergeev's patch to make this
7390 header file compatible with the preprocessor -Wundef option
7391 * src/SDCCmain.c (main): abort compilation if preprocessor reports
7392 failure (fixes bug #941458)
7394 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7396 * src/SDCCopt.c (killDeadCode): fixed bug #907733
7397 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
7398 that the variable, not the function, should be static
7399 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
7400 to be consistent with non-literal case
7402 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7404 * src/SDCCast.c (isConformingBody): fixed bug #949967
7405 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
7406 convilong): fixed bug #952086
7408 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7410 * src/SDCCmem.c (allocVariables): fixed bug #955321
7412 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7414 * src/hc08/main.c (_hc08_genAssemblerEnd),
7415 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
7416 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
7417 completely eliminated the use of a temporary file
7418 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
7419 when more than one file linked
7420 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
7422 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7424 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
7425 which fixes bug #543481
7426 * support/regression/tests/bug-751703.c: fixed comments left from a
7428 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
7429 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
7430 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
7432 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
7433 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
7434 are now changed to underscores in moduleName
7436 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7438 * as/mcs51/lkmem.c: better fix for bug #954173
7440 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7441 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7443 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
7444 * device/include/c8051f000.h,
7445 * device/include/c8051f120.h,
7446 * device/include/c8051f300.h,
7447 * device/include/c8051f310.h,
7448 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
7451 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7453 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
7454 and mailing lists, doc'ed --no-peep-comments, removed reference
7455 to knoppix (newest version has no LyX/LaTeX), other minor changes
7456 * src/SDCCglue.c (glue): save 2 bytes stack space with
7457 option --main-return. The ljmp could probably be avoided too
7459 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7461 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
7463 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7465 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
7466 * src/SDCCopt.c (isLocalWithoutDef),
7467 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
7468 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
7469 (credit to Maarten Brock for patch #949363, on which this is based)
7470 * support/regression/tests/bug-751703.c: some test cases of extern used
7471 within inner scopes.
7473 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7475 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
7477 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
7479 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
7480 dwWriteLabel): fix to create valid debugger symbols even when
7481 the module name has non-alphanumeric symbols in it
7482 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
7483 when a variable's allocation has been optimized away
7486 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7488 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
7490 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
7492 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
7494 * src/z80/gen.c (z80_emitDebuggerSymbol),
7496 * src/pic/gen.c (pic14_emitDebuggerSymbol),
7498 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
7500 * src/avr/gen.c (avr_emitDebuggerSymbol),
7502 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
7504 * src/SDCCdebug.c (emitDebuggerSymbol),
7506 * src/port.h: added a debugger struct to the port struct. Added a
7507 callback for defining debugger symbols
7509 * src/SDCCast.c (createLabel),
7510 * src/SDCC.y (labeled_statement): mark all compiler generated labels
7513 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
7514 iCode back to the ast for the function
7516 * src/hc08/ralloc.c (hc08_assignRegisters),
7517 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
7518 unneeded fields from the regs struct.
7519 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
7520 pushReg() & pullReg() functions instead of emitcode()
7522 * src/hc08/gen.c (genLabel, genhc08Code),
7523 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
7525 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
7528 * src/hc08/gen.c (genEndFunction, genhc08Code),
7530 * src/mcs51/gen.c (genEndFunction, gen51Code),
7532 * src/ds390/gen.c (genEndFunction, gen390Code),
7534 * src/z80/gen.c (genEndFunction, genZ80Code),
7537 * src/pic/gen.c (genEndFunction, genpic14Code),
7539 * src/pic16/gen.c (genEndFunction, genpic16Code),
7541 * src/avr/gen.c (genEndFunction, genAVRCode),
7543 * src/xa51/gen.c (genEndFunction, genXA51Code),
7545 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
7546 specific code to cdbFile.c and out of the backend code generators
7548 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
7549 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
7550 starting address is now 0
7554 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
7555 assembler directive for DWARF support
7556 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
7560 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
7562 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7564 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
7565 and inappropriate peephole optimization in jump tables
7567 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7570 * src/SDCCglue.c: sdccopt works for the hc08 port now
7572 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
7574 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
7576 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7578 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
7580 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7582 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
7586 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
7587 comments from the peephole optimizer replacement rules
7588 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
7590 * src/SDCCcse.c (updateSpillLocation),
7591 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
7593 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
7594 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
7595 objects far pointers
7597 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7599 * src/SDCCsymt.h: a missing part of my last change
7600 * src/pic/ralloc.c (regTypeNum),
7601 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
7603 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7606 * src/SDCCicode.c (aggrToPtrDclType),
7608 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
7609 ptrPseudoSymConvert),
7610 * src/pic/ralloc.c (regTypeNum),
7611 * src/pic16/ralloc.c (regTypeNum),
7612 * src/hc08/ralloc.c (regTypeNum),
7613 * src/ds390/ralloc.c (regTypeNum),
7614 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
7615 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
7617 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7619 * link/z80/lkmain.c (afile),
7620 * as/hc08/lkmain.c (afile),
7621 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
7622 prevent a pointer problem when a filename has no directory and
7623 no extension specified.
7625 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7627 * link/z80/lkmain.c (afile): allow periods in directory names
7628 * link/z80/lkmain.c (afile),
7629 * as/mcs51/lkmain.c (afile),
7630 * as/hc08/lkmain.c (afile): allow linker script file to have an
7631 extension other than ".lnk"
7632 * link/z80/lklex.c (getfid),
7633 * link/z80/lkmain.c (parse),
7634 * as/mcs51/lklex.c (getfid),
7635 * as/mcs51/lkmain.c (parse),
7636 * as/hc08/lklex.c (getfid),
7637 * as/hc08/lkmain.c (parse): Support comments in the linker script
7638 file on lines by themselves and after filenames
7640 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7642 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
7644 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7646 * src/z80/peeph-z80.def: removed some peephole rules that don't
7647 work with multibyte arithmetic (fixed bug #937126)
7648 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
7649 to registers and not global variables
7650 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
7651 geniCodePreInc, geniCodePostDec, geniCodePreDec,
7652 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
7653 checking for assignments not internally generated (fixed bug #931895)
7654 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
7655 structure member (fixed bug #930072)
7657 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7659 * src/SDCCmain.c (linkEdit),
7660 * src/hc08/main.c (_hc08_parseOptions),
7661 * as/hc08/Makefile.in,
7665 * as/hc08/lkrloc.c (relr, rele),
7666 * as/hc08/lkarea.c (lnkarea)
7667 * as/hc08/lkmain.c (afile, parse),
7668 * as/hc08/lkelf.c: support for ELF output
7669 * as/hc08/lks19.c (s19),
7670 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
7672 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7674 * as/mcs51/lkihx.c: Fixed bug #899105.
7676 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7678 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
7679 .dsp files from Unix to DOS.
7681 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7683 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
7684 function pointers; we have been compliant for several months now.
7685 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
7686 change that was accidently commented out
7687 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
7688 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
7691 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7693 * src/hc08/gen.c: output of all of the internal debugging information
7694 is now controlled by the D() macro; it is disabled by default
7696 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7698 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
7699 harder to keep the same registers during a CAST iCode
7700 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
7701 long via int can be done in a single cast, if the signedness is
7703 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
7704 putchar() in tinibios.c in ds390's library
7706 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
7708 * src/SDCCast.c (decorateType): fixed bug #898889,
7709 cast result of a literal complement too
7710 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
7711 fixed check for bitfields
7713 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
7715 * src/SDCCicode.c (geniCodeLogic): made it static,
7716 (geniCodeLogicAndOr): added in order to fix bug #905492,
7717 (ast2iCode): fixed bug #905492
7718 * support/regression/tests/bug-905492.c: added
7719 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
7720 (processParms): fixed bug #927659: don't copy parms, this will clear
7722 * support/regression/tests/bug-927659.c: added
7724 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
7726 * src/SDCCast.c (addCast): don't cast float to char
7727 * device/lib/libsdcc.lib: added _memmove
7729 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
7731 * device/lib/large/Makefile: fixed parallel execution by
7732 replacing `make` by `$(MAKE)`
7734 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7736 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
7737 offsets (fixes bug #923936)
7739 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
7741 * device/lib/small/Makefile: fixed parallel execution by
7742 replacing `make` by `$(MAKE)`
7744 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
7746 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
7748 2004-03-23 Scott Dattalo <scott AT dattalo.com>
7750 * src/pic/gen.c (genCpl): multi-byte complements were not working.
7751 * src/regression/Makefile: Regression test was not running.
7753 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
7755 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
7756 complement if possible
7757 * src/SDCCval.c (valComplement),
7758 * src/SDCCicode.c (operandOperation): fixed complement of literal
7759 * support/regression/tests/onebyte.c (testComplement): added
7761 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
7763 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
7764 return an optimized tree; actually replace actParm with the new tree
7765 * src/SDCCast.h: added some parantheses to remove side effects
7766 * support/regression/tests/bug-920866.c
7768 2004-03-21 Scott Dattalo <scott AT dattalo.com>
7769 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
7770 Bit operands were not being handled properly in the pic14 port.
7771 (now src/regression/add.c passes again).
7773 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7775 * src/SDCC.y (labeled_statement): case and default no longer require
7776 a following statement (RFE #893037)
7778 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7780 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
7781 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
7782 disabled (fixes bug #916294)
7783 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
7784 "mov a,acc"; patch provided by Lenny Story
7785 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
7787 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7789 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
7791 * src/ds390/gen.c (genFunction, genEndFunction),
7792 * src/ds390/ralloc.c (ds390_assignRegisters),
7793 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
7794 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
7795 pushed if there are parameters passed on the stack. Also, a cleaner
7796 way to decide if r0/r1 should be pushed/popped. (Together they fix
7799 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7802 * device/lib/mcs51/crtpagesfr.asm,
7803 * device/lib/mcs51/crtxinit.asm,
7804 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
7805 to avoid confusion with Si Lab's SFRPAGE register.
7807 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7809 * src/SDCCglue.c (emitMaps): allow public sfr variables
7810 * src/SDCCglue.c (initialComments): include compiler build date
7811 with compiler version and put the timestamp of the generated
7812 assembly file on a serperate line to be less confusing.
7813 * src/port.h: added genInitStartup hook
7820 * src/z80/main.c: genInitStartup initialize as NULL (default to
7821 historical behaviour)
7822 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
7823 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
7824 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
7825 library instead of hard coding it into the compiler.
7826 * support/regression/ports/mcs51-stack-auto/spec.mk,
7827 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
7828 * device/lib/mcs51/Makefile,
7829 * device/lib/small/Makefile,
7830 * device/lib/large/Makefile,
7831 * device/lib/mcs51/crtpagesfr.asm,
7832 * device/lib/mcs51/crtstart.asm,
7833 * device/lib/mcs51/crtxclear.asm,
7834 * device/lib/mcs51/crtxinit.asm,
7835 * device/lib/mcs51/crtclear.asm,
7836 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
7837 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
7838 and into user configurable files.
7839 * device/lib/clean.mk: clean mcs51 directory too
7840 * support/regression/tests/longlit.c: added static to T1 declaration
7841 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
7842 accesses in the initialization code
7844 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7846 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
7847 OSCTRIMVAL as noted in bug #916008
7849 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7851 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
7852 in loops with multiple exits (reported as incorrect registers
7853 used by Martin Helmling in Sdcc-user list)
7855 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7857 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
7858 made ds390 register extensions look less like error messages
7860 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7862 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
7863 reported by Adam Wozniak in Sdcc-user list
7865 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
7867 * src/SDCCast.c (decorateType): fixed with bug and promotion in
7868 arithmetic optimizations, added debug output
7870 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
7872 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
7873 * sdcc.spec: updated and split sdcc into 3 rpms
7874 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
7875 needed for literals of LEFT_OP and '+'
7876 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
7877 introduced RESULT_TYPE_NOPROM
7878 (geniCodeMultiply): fixed logic for decision if mul is optimized to
7880 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
7881 limited promotion to int only for '*'
7882 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
7884 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
7886 * src/pic16/gen.c (genSkip),
7887 (genc16bit2lit), (gencjneshort): commented out
7888 (is_LitOp): new helper function, checks operand type
7889 (genCmpEq): rewritten
7891 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
7893 * support/regression/tests/bug-908454.c: added
7895 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
7897 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
7898 * src/SDCCicode.c (usualBinaryConversions): op needs int type
7899 (geniCodeCast): cosmetic, don't preserve bit storage class
7900 (geniCodeLeftShift): added promotion
7901 (geniCodeLogic): fixed regression
7902 * src/SDCCsymt.c (computeTypeOr): accept bits too
7903 (compareType): 2nd part of fix for bug #908454, needed for bitfields
7905 2004-03-07 Borut Razem <borut.razem AT siol.net>
7907 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
7909 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
7911 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
7912 version of pic16_genPackRegisters which does not check if ic is a
7914 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
7915 function cause string1.c regression test fails
7917 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
7919 * sim/ucsim/configure.in,
7920 * sim/ucsim/configure,
7921 * sim/ucsim/doc/Makefile.in: use docdir
7922 * src/SDCC.y: fixed sbit atrributes
7923 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
7924 * src/SDCCast.c (decorateType): |^& need special promotion handling
7926 * src/SDCCsymt.h: moved definition of RESULT_TYPE
7927 * src/SDCCsymt.h (computeType),
7928 * src/SDCCicode.c: computeType() needs op
7929 * src/SDCCsymt.c (checkTypeSanity),
7930 * doc/sddman.lyx: "plain" bitfields are unsigned
7931 * src/SDCCsymt.c (computeTypeOr): added
7932 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
7934 * src/SDCCval.c (val*): computeType() needs op
7935 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
7936 * support/regression/tests/onebyte.c: added tests for |^&
7938 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
7940 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
7941 for writing icode into asm output.
7943 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
7945 * src/pic16/device.c: added some debug lines enabled
7946 with macro DEBUG_CHECK,
7947 * src/pic16/genarith.c: more debug in genPlus,
7948 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
7949 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
7950 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
7951 * (aopForSym): onStack symbols are re-placed in data memspace,
7952 and onStack flag is cleared,
7953 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
7954 copy temporary pcodeop,
7955 * (genPcall): added warning for not updating PCLATU,
7956 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
7957 always true for pic16 port,
7958 * (genMultOneWord): NEW, supports integer multiplication,
7959 * (genMult): modified to call genMultOneWord,
7960 * (ifxForOp): added warning when return NULL,
7961 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
7962 flag is set before call to operandFromSymbol for implicit
7964 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
7965 options.intlong_rent are set by default,
7966 * (_hasNativeMulFor): modified to allow port generation of integer
7968 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
7969 set regtype to REG_SFR for all registers, restricting seting the
7970 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
7972 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7974 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
7975 more than 500 times in the regression tests
7977 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7979 * support/Util/SDCCerr.h,
7980 * support/Util/SDCCerr.c,
7981 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
7983 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
7984 for symbol conflicts.
7985 * support/valdiags/tests/enum.c,
7986 * support/valdiags/tests/tentdecl.c,
7987 * support/valdiags/tests/struct.c: expect possible error messages
7988 referring to original symbol definitions.
7989 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
7991 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
7993 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
7995 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
7997 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
7999 * src/pic16/ralloc.c (newReg): fixed bug #908929
8001 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8003 * src/ds390/gen.c: added missing #include "main.h"
8005 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
8007 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
8008 checking if symbol is already in set,
8009 * src/pic16/device.h: prototype for checkAddSym,
8010 * src/pic16/gen.c: (_G): added entry interruptvector,
8011 * (assignResultValue): removed some commented out lines,
8012 * (genFunction): check for ISR via sym->type, absolute section for
8013 interrupt code is created via a new pBlock, the goto instruction is
8014 placed now correctly at the interrupt vector position, changed all
8015 references from ivec to _G.interruptvector,
8016 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
8017 is the interrupt is a high priority one, same for return from ISR,
8018 * src/pic16/glue.c: changed all calls of addSetHead for publics and
8019 externs to calls of checkAddSym,
8020 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
8021 pic16_pcode_verbose flag is set,
8022 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
8023 * src/pic16/pcoderegs.c: message about how many registers are saved
8024 will only be emitted if pic16_pcode_verbose flag is set,
8026 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8028 * src/ds390/ralloc.h,
8029 * src/ds390/ralloc.c (ds390_regWithIdx),
8030 * src/ds390/gen.c (emitcode),
8032 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
8033 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
8034 ds390operandCompare, getRegsRead, getRegsWritten,
8035 initializeAsmLineNode): customized instruction size calculation for
8036 ds390, started basis for some register optimizations
8037 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
8038 corresponding assembly output
8039 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
8040 missing push/pop of r0/r1. Optimized push/pops
8042 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8044 * src/mcs51/main.c (instructionSize): fixed ACALL size
8045 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
8047 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
8049 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
8050 the sorting of rlist with NULL elements
8051 * (print_idataType, print_idata): NEW to create idata sections
8052 * src/pic16/device.h: idataSymSet new variable
8053 * src/pic16/gen.c (genFunction): fixed some bugs in string
8054 comparing, improved the absolute section creation for ISRs,
8055 added FSR0L/FSR0H in registers that are saved in an ISR,
8056 * (genInline): fixed the processing of inline snippets,
8057 now they undergo no process by the peephole optimizer
8058 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
8059 are placed in idataSymSet,
8060 * (pic16emitStaticSeg): extern symbols are added in externs,
8061 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
8062 switching when aboslute variables are placed in access bank memory
8063 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
8064 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
8065 commented out with #if,
8066 * (pic16_packRegisters): reintroduce the check for CAST because some
8067 symbols are not correctly handled,
8068 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
8069 pCodeInstruction instead of pCode,
8070 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
8071 pCodeAsmDir definition,
8072 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
8073 directive, then the argument directive is emitted without the leading
8074 tab, hack for inline labels which must be in the first column,
8075 * (compareLabel,pic16_findNextInstruction),
8076 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
8077 * (insertBankSwitch): modified for the new pCodeAsmDir,
8079 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8080 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
8082 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
8084 * (pushSide): commented out with #if,
8085 * (assignResultValue): fixed some typos in saving
8087 * (genPcall): FIXED and sync'ed with genCall,
8088 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
8089 * (genNearPointerGet): fixed to handle some more cases,
8090 implementation scheme via table reads,
8091 * (genConstPointerGet): modified to access code memory correct,
8092 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
8093 and improved to handle some cases
8094 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
8095 instead of "RETLW" for init data
8096 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
8097 not IN_DIRSPACE, work around to reduce bank switching when aboslute
8098 variables are placed in access bank memory (<0x80 and >=0xf80),
8099 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
8100 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
8101 TBLWT_POSTDEC,TBLWT_PREINC
8102 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
8103 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
8105 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
8106 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
8107 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
8108 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
8110 2004-02-29 Borut Razem <borut.razem AT siol.net>
8112 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
8113 support/Util/findme.h, support/Util/system.h: enhance binary relative
8114 search for lib and include by using findProgramPath()
8116 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8119 * src/SDCCpeeph.c (pcDistance),
8121 * src/mcs51/ralloc.h,
8122 * src/mcs51/ralloc.c (mcs51_regWithIdx),
8124 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
8125 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
8126 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
8127 size calculation port specific, started basis for some register
8129 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
8130 missing push/pop of r0/r1. Optimized push/pops
8131 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
8132 * device/lib/_modsint.c (_modsint),
8133 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
8134 and stack version so regression tests pass
8136 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
8138 * src/Makefile.in (dep): include SLIBOBJS in dependency check
8139 * src/SDCCast.c (decorateType): catch another small optimization
8141 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
8142 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
8143 modified to finally use computeType() all over SDCC,
8144 see Feature Request #877103
8145 * src/SDCCval.h: cosmetic
8146 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
8147 valCompare(); regression tested in muldiv.c
8148 * support/regression/tests/muldiv.c (testMod): mod sign follows
8151 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
8153 * src/SDCCast.c (decorateType): fixed bug #902362
8154 * doc/INSTALL.txt: fixed install instructions for win32
8156 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
8158 * device/include/Makefile.in (install): fixed by replacing spaces
8161 * doc/INSTALL.txt: updated for release
8162 * doc/sdccman.lyx: added warning for --xstack being buggy
8164 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
8166 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
8167 to eliminate build warnings.
8168 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
8170 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
8171 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8173 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
8174 removed -penable-stack, added comment for stack pragma, added
8175 warning for not initializing the stack/frame registers, removed
8176 comment at interrupts section
8178 Stack is made permanent, there is no ability to disable stack usage.
8179 * src/pic16/device.h,
8180 * src/pic16/device.c: removed all references to USE_STACK macro,
8181 * src/pic16/device.c (pic16_dump_section): when no elements in
8182 rlist, free rlist before return,
8183 * (pic16_dump_int_registers): NEW, internal registers are a new set
8184 of general purpose registers reused by each function,
8185 * (checkAddReg): returns 1 if registers is added to set,
8186 * (pic16_groupRegistersInSection): when a registers is of type
8187 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
8188 * src/pic16/device.h: memRange and Assigned Memory are deleted,
8189 SRCASECMP macro is moved here from device.c
8190 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
8191 PO_PCLATU, PO_PRODL, PO_PRODH,
8192 * (pic16_pCodeOpType, genMinus,
8193 changed compares to "a" register, with AOP_ACC,
8194 * (pic16_genPlus): fixed some bugs and indented properly,
8195 * (pic16_addSign): changed size to size+offset in the MOVWF
8197 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
8198 multiply 8-bit operand by literal, result is 8-bit,
8199 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
8200 multiply 2 8-bit operand, result is 8-bit,
8201 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
8203 * src/pic16/gen.c: changed accUse to contain WREG only,
8204 * (pic16_emitcomment): renamed to pic16_emitpcomment,
8205 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
8206 true, do not use immediate addressing any more unless sym is a
8207 pointer in codespace,
8208 * (aopForRemat): do not use immediate addressing when symbol not in
8209 codespace and when symbol's address is requested,
8210 * (aopOp): for-loop in if(sym->accUse) is modified for the new
8212 * (aopGet): added case for AOP_ACC and don't return "accumulator
8213 bug" but WREG instead,
8214 * (popGetTempReg): pushes contents of temporary register in stack,
8215 * (popReleaseTempReg): pops contents of temporary register from
8216 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
8217 * (pic16_popGet): separated case AOP_ACC to return register WREG
8218 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
8219 or PO_IMMEDIATE and initializes their instance/offset appropriately,
8220 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
8221 the use of immediate pointers to certain cases only.
8223 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
8224 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
8225 * (assignResultValue, genCall, genRet): modified to use the new
8226 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
8227 genPcall is still broken,
8228 * (genFunction): added code to create 'A' type pBlocks when
8229 interrupt functions are generated, code not extensively tested yet,
8230 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
8231 * (genEndFunction): modified so ISRs pop stored registers from stack,
8232 * (genMultOneByte): cleanup,
8233 * (AccRsh): added flag andmask, to and result with appropriate mask,
8234 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
8235 * (genDataPointerGet): fixed and reenabled its use,
8236 * (genNearDataPointerGet): bugs fixed,
8237 * (genDataPointerSet): bugs fixed,
8238 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
8239 pic16_DumpSymbol, pic16_DumpOp,
8240 * src/pic16/genutils.h: function prototypes for the above functions,
8241 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
8243 * (pic16emitRegularMap): many many many improvements, but needs a
8245 * src/pic16/main.c: enable_stack in pic16_options is removed,
8246 * (_pic16_parseOptions): removed command line options -penable-stack,
8247 * (_process_pragma): emit stack symbol only when stack pragma is
8249 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
8250 redirected to FSR0L/FSR0H pair,
8251 * (pic16_get_op, pic16_get_op2): modifications and improvements,
8252 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
8253 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
8255 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
8256 * (dumpPicOptype): NEW,
8257 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
8258 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
8259 with movff instruction,
8260 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
8261 added pic16_int_regs, some packRegsFor* functions are commented out,
8262 because produce errors,
8263 * src/pic16/NOTES: minor modifications
8265 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8267 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
8268 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
8270 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
8271 * as/mcs51/lkaomf51.c: fixed bug #895763
8273 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
8275 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
8277 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8279 * doc/sdccman.lyx: added details about the HC08 storage classes and
8280 interrupts, fixed the register usage info for z80 & gbz80
8282 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
8284 * doc/sdccman.lyx: added more pic16 port documentation
8285 * device/include/pic16/: added header pic18fregs.h
8287 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
8289 * doc/sdccman.lyx: added Vangelis' contribution
8291 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8293 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
8294 extend to the next CALL or PCALL, not just to the next CALL.
8296 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
8298 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
8300 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8302 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
8303 bug #895752 and a better fix for bug #716790
8305 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8307 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
8309 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8311 * doc/sdccman.lyx: minor changes, minor changed
8313 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
8315 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
8316 which can't handle SDCC_NEWONEBYTEOPS,
8317 (geniCodeMultiply): removed conversion from mult to shift for pic14
8320 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8323 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
8324 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
8325 thus fixing bug #895406
8327 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
8329 * device/lib/_modsint.c,
8330 * device/lib/_modslong.c: sign follows divisor only
8331 * src/hc08/gen.c (genMultOneByte): if result size is 1,
8332 signs or signedness can be ignored
8333 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
8334 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
8335 added optimization for IFX,
8336 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
8338 reenabled optimization for IFX, which was removed on 2004-01-11
8339 * src/SDCCast.h: added return type IFX
8340 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
8341 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
8342 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
8343 SDCC_OLDONEBYTEOPS selects the old behaviour
8344 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
8345 changed again and commented promotion rule
8346 * src/SDCCval.c (valDiv): promotion no longer necessary
8347 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
8348 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
8350 * support/regression/tests/onebyte.c: added
8352 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
8354 * gen.c (genInline): reverted to old code for assemnling inline
8355 code because of bug reported James Chadd
8357 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
8359 * ralloc.h: missing declarations from previous patch,
8360 seems that patch for ralloc.h was never applied, fixed
8362 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8363 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
8367 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
8368 indirect addressing. Marked FSR0 as deprecated
8369 * gen.c (pointerCode): commented out, not needed now
8370 (pic16_popGet2p): new MOVFF helper function
8372 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
8373 (shiftRLong): removed duplicate debugging info
8375 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8377 * src/ds390/gen.c (genNearPointerGet),
8378 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
8379 optimization with bits, but not bitfields.
8380 * src/ds390/ralloc.c (packRegisters),
8381 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
8383 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
8385 * src/SDCCcse.c (algebraicOpts): copy operands before modification
8387 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8390 * src/SDCCicode.c (operandFromSymbol),
8391 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
8392 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
8393 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
8394 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
8395 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
8396 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
8398 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
8399 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
8400 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
8401 * src/SDCCsymt.c (newSymbol),
8402 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
8405 * src/SDCCval.c (newiList): fixed bug #885705
8407 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8409 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
8410 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
8412 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8414 * device/include/c8051f120.h,
8415 * device/include/c8051f300.h,
8416 * device/include/c8051f310.h: added/updated header files for Silicon
8417 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
8418 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
8419 in new section Submitting patches
8421 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8423 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
8424 genFarPointerGet, genCodePointerGet, genGenPointerGet,
8425 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8427 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
8428 genFarPointerGet, genCodePointerGet, genGenPointerGet,
8429 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8431 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
8432 genFarPointerGet, genCodePointerGet, genGenPointerGet,
8433 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8435 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
8436 genFarPointerGet, genCodePointerGet, genGenPointerGet,
8437 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
8438 genGenPointerSet): fixed bug #892400
8439 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
8440 to eliminate build warnings.
8441 * src/SDCCast.c (processParms),
8442 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
8444 * support/valdiag/valdiag.py: added GCC to the list of defines active
8445 when compiling with gcc
8447 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8449 * support/Util/SDCCerr.h,
8450 * support/Util/SDCCerr.c,
8451 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
8452 with an incomplete type (fixed bug #883734)
8453 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
8455 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8457 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
8459 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8461 * src/SDCCast.c (decorateType),
8462 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
8463 function pointer implementation
8464 * support/regression/tests/funptrs.c: added tests to verify both forms
8465 of function pointers work correctly. Added tests to verify parameters
8466 are passed in the correct order.
8468 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
8470 * device.c (regCompare): registers are sorted by ascending
8471 address and increasing size,
8472 * main.c (_pic16_finaliseOptions): removed the declaration
8473 of compiler macro MCU. Now a macro of the format pic18fxxxx
8474 will be defined from the command line
8476 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
8477 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
8479 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
8480 PCOP_RLCF was overwritten!
8481 * gen.c (genSkip): commented out calls to pic16_emitcode,
8482 * (genCmpEQ): fixed "long" compares, only high word did get compared,
8484 * (genRRC): added debugging info,
8485 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
8486 overwritten while shifting,
8487 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
8488 overwritten while shifting,
8491 * (shiftLLeftOrResult),
8492 * (shiftRLeftOrResult),
8494 * (shiftLLong): Implemented with pic16_emitpcode
8495 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
8496 * (genLeftShift): Fixed bug, operand for shift by variable always
8497 was "and"ed with 0x0f,
8498 * (genLeftShiftLiteral),
8500 * (genRightShiftLiteral): added debugging info,
8501 * (genrshFour): added comment,
8502 * (genRightShift): determined signedness from operand "left"
8505 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8507 * src/SDCCicode.c (geniCodeParms),
8508 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
8509 function pointers, fixed function pointer bugs #861242 and #861896
8511 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8513 * device/include/c8051f000.h,
8514 * device/include/c8051f120.h,
8515 * device/include/c8051f300.h: added header files for Silicon
8516 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
8518 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
8520 * src/SDCCast.c (processParams): added new type flow and restructured
8521 (gatherAutoInit): added new type flow
8522 (addCast): cosmetic changes
8523 (getLeftResultType): added new type flow for array indices, patch
8524 provided by Stas, see FR #877103
8525 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
8526 array index patch by Stas
8527 * src/SDCCast.h: added prototype getResultTypeFromType()
8529 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
8530 * src/pic/glue.c (pic14emitStaticSeg),
8531 * src/pic16/glue.c (pic16emitStaticSeg),
8532 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
8533 for initialization of symbols
8534 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
8535 * support/Util/SDCCerr.h:
8536 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
8537 * .version: bumped version number to 2.3.8
8538 * device/include/Makefile.in (install),
8539 * doc/Makefile (install): changed to 'rm `find ...`' construct to
8542 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
8544 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
8545 Slade Rich fixed an optimization bug
8546 * src/pic/pcodepeep.c,
8547 * src/pic/pcoderegs.c
8548 * doc/Makefile (install): added test for directory
8550 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8552 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
8553 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
8554 * src/pic/ralloc.c (getRegPtr, getRegGpr),
8555 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
8556 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
8557 * as/mcs51/asexpr.c (term),
8558 * as/hc08/asexpr.c (term): fixed bug #887146
8560 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8562 * src/z80/gen.c (genMult): handle single byte result product
8563 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
8564 DUMMY_READ_VOLATILE (fixed bug #886367)
8566 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
8568 * support/regression/tests/libmullong.c: fixed logic, on little endian
8569 hosts we ended without a mullong_wrapper()
8571 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8573 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
8574 virus/worm forged address usage.
8576 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
8578 Fixed promotion, it should be done on AST level:
8579 * src/SDCCast.c (addCast): added promotion to int
8580 (decorateType): updated call to upCast()
8581 * src/SDCCicode.c (geniCodeLeftShift): removed call to
8582 usualUnaryConversions()
8584 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
8586 * support/regression/tests/literalop.c (mulWrapper): Added a
8587 wrapper to remove integer overflow warnings.
8589 * support/regression/tests/float_trans.c: Made work on host.
8591 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
8594 * support/regression/generate-cases.py (main): Changed from inline
8597 * doc/Makefile (install): Changed to depth first to get rid of
8598 missing directory install warning.
8600 * as/Makefile (install-doc): Made work on Mac.
8602 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
8604 * src/SDCCast.c: added an additional type flow in decorateType() of
8605 opposite direction, see feature request #860006; it's enabled at runtime
8606 by setting the environment variable SDCC_NEWTYPEFLOW
8607 * src/SDCCast.h: changed prototype of decorateType()
8608 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
8609 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
8610 'char' to 'int' can be omitted, if both operands are 'unsigned char';
8611 see feature request #877103
8612 * src/SDCCval.c: updated call of decorateType()
8613 (valBitwise): fixed bug #882876
8614 (valMinus): added promotion
8615 (valLogicAndOr): result is unsigned
8616 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
8617 * src/SDCCsymt.c (computeType),
8618 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
8619 must not cause an unsigned operation
8620 * src/pic/glue (pic14emitRegularMap),
8621 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
8623 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
8625 * src/pic/pcode.c (PCodeID): commented out left over debug code
8627 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
8629 * support/valdiag/tests/overflow.c: added shift tests
8637 * src/pic/pcodepeep.c,
8638 * src/pic/pcoderegs.c,
8640 * src/pic/ralloc.h: applied patch from Slade Rich;
8641 added support for multiple code pages and multiple RAM banks on the
8642 PIC 14 port. The ASM files now no longer simply assume all the
8643 code / RAM are in the same page / bank. This means the linker can
8644 safely allocate code/RAM of separate ASM files to different pages/banks.
8645 * doc/sdccman.lyx: added Slade's tips
8646 * src/mcs51/peeph.def: fixed bug #880768
8648 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8650 * src/hc08/ralloc.c (rematStr): fixed bug #879282
8651 * src/SDCCast.c (decorateType): fixed bug #880197
8653 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
8655 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
8658 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
8659 strtof is not part of C89 and isn't included with Mac OS X.
8661 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8663 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
8664 shiftL2Left2Result): fixed bug #879326
8665 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
8666 (genMultOneByte): fixed bug in signed vs unsigned multiplication
8667 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
8668 address fetch for clr instruction
8669 * device/lib/hc08/_mulint.c: created optimized assembly version
8670 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
8672 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
8674 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
8675 proposed in FR #877103
8677 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
8679 * src/SDCCval.c (cheapestVal): added missing checks
8680 * src/SDCCicode.c (usualBinaryConversions): fixed condition
8681 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
8683 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
8685 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
8688 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
8690 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
8691 loaded with the linker search paths (-L arguments) and the libraries
8692 to be linked with the current source (-l arguments). Changes
8693 currently will affect only the pic16 port.
8694 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
8695 include path the port specific paths and port specific libraries,
8696 * gplink command now contains the $3 argument,
8697 * src/pic16/device.h,
8698 * src/pic16/device.c,: structure PIC_device is made public and
8699 renamed to PIC16_device, the same for variable Pics which is renamed
8700 to Pics16. Updated all references to them.
8701 * src/pic16/glue.c (pic16glue): corrected bug with code
8702 initialization which bypassed the variable initializations block.
8704 * device/lib/pic16/Makefile.rules: removed --penable-stack from
8705 COMPILE_FLAGS and added the --nostdinc option
8707 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8709 * device/include/mc68hc908jb8.h: Register defs for another member
8710 of the hc08 family. Contributed by Bjorn Bringert - thanks!
8712 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
8714 Documenting changes from previous commits.
8715 * configure.in (version 1.56),
8716 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
8717 when generating output files to configure the pic16 library,
8718 but now I've commented it out, since gputils aren't installed in the
8719 SF compile farm, so library won't compile
8721 * device/lib/Makefile.in (version 1.56): initially I've added in
8722 target 'all' the prerequestive 'model-pic16' so it compiled the
8723 pic16 library, but now I've commented it out for the same reasons
8725 * added targets 'model-pic16' and 'objects-pic16' to compile the
8727 * added target 'port-specific-objects-pic16' to handle the
8728 generated libraries and copy them into the build/ directory
8729 * added target 'clean-intermediate-pic16' to clean intermediate
8730 files into pic16 directory
8731 * in target 'installdirs' added line to create directory pic16 in
8732 the installation path
8734 * device/include/Makefile.in (version 1.11): in target 'install'
8735 added lines to copy all header files to installation path,
8736 * in target 'installdirs' added line create directory for pic16
8737 headers in the installation path
8739 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
8741 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
8744 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
8747 * device/lib/configure.in,
8748 * device/lib/configure: fixed for autoconf 2.57
8750 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8752 * src/z80/main.c (_parseOptions): fixed the portmode= command line
8753 option so that it actually works. Made it specific to the z80, since
8754 the gbz80 doesn't have these kinds of I/O ports.
8756 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8758 * device/include/z180.h,
8759 * device/lib/_memcpy.c,
8760 * device/lib/_memmove.c,
8761 * device/lib/_mulint.c,
8762 * device/lib/ser_ir.c,
8763 * device/lib/ser_ir_cts_rts.c,
8764 * device/lib/_strcmp.c,
8765 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
8766 * src/z80/main.c (_process_pragma): add support for pragmas bank and
8767 portmode; added deprecation warning for bank= and protmode= forms.
8768 Also, guard against buffer overflow.
8769 * src/z80/gen.c (aopGet): generate better code for sfr banked read
8771 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8773 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
8774 changed interrupt vector table generation to only emit declared vectors.
8775 * device/include/Makefile.in: added missing backslash
8776 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
8778 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
8780 Mainly changes to support compilation of the device libraries
8781 * src/pic16/device.c: stack is allocated via symbol and not
8782 via literal number. The symbol is placed in the corresponding
8783 position of the data ram
8784 * (pic16_dump_section): relocatable and absolute uninitialized
8785 data are now emitted in sorted order to reduce section naming,
8786 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
8787 weren't marked as being in the access bank,
8789 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
8791 Added portion of GNU PIC Library under the directory
8792 device/include/pic16 and device/lib/pic16. These files
8793 contain the declarations of SFRs for the PIC18Fxx2 devices.
8794 The directory is initialized via configure from toplevel.
8796 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
8798 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
8799 the spilllocations to be compared correctly
8801 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8803 * src/SDCCast.c (decorateType): fixed bug introduced today
8805 2004-01-12 Borut Razem <borut.razem AT siol.net>
8807 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
8808 doc/sdccman.lyx: upper case pragmas are deprecated
8810 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
8812 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
8813 in simpler and even better code
8815 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
8817 * src/SDCCicode.c (operandOperation): fixed bug #874819
8818 * src/SDCCast.c (decorateType): fixed
8819 char foo (unsigned long ul) { return ul > 0; }
8821 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8823 * doc/sdccman.lyx: Moved and added some sections, small changes
8824 all over. Telling LaTeX to be less strict with word spacing
8825 to better keep the right margin. Changed some notes about
8826 maintainance of the ports in section 3.2.1 - is it OK like this?
8828 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8830 SDCC source changes:
8831 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
8832 convilong): modified to inform the pic16 port that builtin functions
8835 PIC16 PORT specific changes:
8836 * src/pic16/device.c pic16_dump_equates() added,
8837 processor registers declared internally by the port are emitted in
8838 the translation as equates,
8839 * src/pic16/gen.c: inline code is passed unprocessed to the
8841 * (pic16_popGetLit2): fnuction modified to take second operand as
8842 pCodeOp pointer and not as literal,
8843 * (popRegFromIdx): prefixed with pic16_,
8844 * (pic16_popCombine2): modified to receive already allocated pCode
8846 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
8847 * (genFunction): initializes local stack frame and pushes on stack
8848 all the registers used by this function,
8849 * (genEndFunction): restores all registers from stack and restores
8851 * src/pic16/glue.c (pic16emitRegularMap): various changes and
8853 * (pic16glue): changed the program startup sequence,
8854 * added new dbName code 'A' for functions placed in absolute section
8855 * src/pic16/main.c: added function attribute _naked,
8856 * added pragma 'code' to place a fnuction at an absolute address,
8857 * added command line arguments --debug-ralloc and --pcode-verbose,
8858 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
8859 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
8860 * (pic16_newpCodeOpLit2): modified to take the second operand as
8862 * (pic16_printpBlock): modified to emit each function in a separate
8864 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
8865 UPPER for immediate operands,
8866 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
8868 * src/pic16/peeph.def: all peepholes with movff are commented out,
8869 because there is a problem in the pcode peep optimizer,
8870 * src/pic16/ralloc.c: the register allocator can now reuse local
8871 function symbols for another function. This saves register usage.
8872 * src/pic16/ralloc.h: added flag isLocal in structure regs,
8874 Added file src/pic16/NOTES with information about program writing on
8875 the current port version.
8877 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8879 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
8880 and peephole 252 (array access)
8882 2004-01-09 Borut Razem <borut.razem AT siol.net>
8884 * src/SDCCmain.c : fixed #872250: -l command line defined library
8885 files are scanned before standard library files
8887 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8889 * src/SDCCast.c (decorateType): fixed bug #874046
8891 2004-01-09 Borut Razem <borut.razem AT siol.net>
8893 * support/scripts/sdcc.nsi: remove previous installation
8895 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8897 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
8898 bytes for last interrupt vector (mcs51)
8899 * sdcc.spec: fixed typo
8901 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8903 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
8904 gen51Code): more efficient parameter receive for --model-large
8907 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8910 * src/z80/main.c: added missed needLinkerScript flags (more than
8911 one port structure defined in these file)
8912 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
8915 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
8917 * src/SDCCmain.c: removed various references to DEFAULT_PORT
8918 * src/port.h: added flag needLinkerScript in port->linker
8919 structure to inform whether to create a .lnk file or not,
8927 * src/z80/main.c: changed appropriately to configure
8928 needLinkerScript flag
8930 * src/pic16/gen.c (genAddrOf): fixed bug #863624
8931 * src/pic/glue.c: added variable udata_section_name to
8932 override default uninitialized data segment definition for
8933 devices only with SHAREBANK memory (reported from Erik Epetrich)
8934 * (pic14emitOverlay): modified to emit a commented overlay segment
8935 directive when no overlay data exist
8936 * (picglue): modified to emit uninitialized data segment
8937 according to udata_section_name
8938 * src/pic/main.c (_pic14_parseOptions): added command line
8939 options --udata-section-name=[name] to override default
8940 udata definition name
8941 * modified _linkCmd and _asmCmd to include compiler passed
8942 arguments via -W option
8943 * src/pic16/main.c: added $l in _asmCmd, changed extension for
8944 object file from '.rel' to '.o' in port->linker structure,
8945 changed size of fptr from 2 to 3 in port structure
8947 2004-01-07 Borut Razem <borut.razem AT siol.net>
8949 * support/scripts/sdcc.nsi: update PATH
8950 * support/scripts/sdcc.ico: craeted
8952 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
8954 * device/include/Makefile.in: fix install
8955 * doc/Makefile: fix install
8957 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8959 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
8961 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
8962 how the function variable allocation summary is displayed; also
8963 include information about variables allocated to the overlay
8966 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8968 * as/mcs51/lkmain.c: Help about -Y option
8969 * as/mcs51/lkarea.c: Fixed gcc warnings
8971 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
8973 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
8975 * support/valdiag/tests/overflow.c: added
8976 * src/SDCCast.c (decorateType),
8977 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
8978 LEFT_OP (left shift)
8980 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8982 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
8983 (default behaviour).
8985 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8987 A python script to validate compiler diagnostic messages. It can be
8988 used to verify that sdcc complains about bad c source code and
8989 gives a good location of the error.
8990 * support/valdiag/Makefile,
8991 * support/valdiag/valdiag.py,
8992 * support/valdiag/tests/*
8994 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8996 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
8997 * src/SDCCsymt.c (newEnumType),
8999 * support/Util/SDCCerr.c,
9000 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
9002 * support/regression/tests/enum.c: added test for enum values that
9003 require at least 2 bytes of storage.
9005 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
9007 * src/common.h: added ifndef/define/endif macros
9008 around the header file.
9009 Bug reported from Jesus Calvino-Fraga
9011 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
9013 * sdcc.spec: updated
9014 * device/include/Makefile.in: don't install CVS directories
9015 * device/lib/Makefile.in: added removal of CVS directories after install
9016 * doc/Makefile: fixed install, added local_icons
9017 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
9018 * src/mcs51/gen.c (genRightShift): fixed bug #870788
9019 * src/ds390/gen.c (genRightShift): fixed bug #870788
9020 * src/SDCCast.c (decorateType): fixed bug #870781
9022 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
9024 PIC16 port related changes:
9025 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
9026 added variable stackPos,
9028 * gen.c: genCall, assignResultValue: added support for
9029 pushing/retrieving function parameters to/from stack,
9030 genFunction,genEndFunction: setup stack frame for the
9032 genAddrOf: will be changed according to bug 863624
9034 * added files genutils.c and genutils.h which contain gen*
9035 debugged and optimised functions extracted from gen.c
9037 * glue.c: added variable 'externs' which holds extern symbols,
9038 pic16emitRegularMap: is modified to properly handle relocatable
9039 symbols under the new scheme,
9040 pic16createInterruptVect: is modified
9041 pic16printPublics: is modified to emit 'global' assembler directives,
9042 added pic16_printExterns to print extern symbols,
9043 pic16glue: initializes stack/frame pointer in the beginning of
9044 the assembly output. Temporary hack, will be corrected later,
9045 because gplink yet does not support stack and SDCC does not
9046 yet support a type of crt0.o object to create the final binary.
9048 * Removed many lines that contain 8051 legacy code.
9049 * The code is finally placed under a 'code' directive.
9050 * Added port specific options.
9052 * _process_pragma: simplified since now we do not need *special*
9053 include file to define SFR registers. But a separate header
9054 will be needed. This will be developed later.
9055 * _pic16_parseOptions: added, parses port specific options:
9056 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
9057 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
9058 --preplace-udata-with=
9060 * _pic16_setDefaultOptions: modified to initialize section names,
9061 but hack is temporarly out of order since it needs improvement.
9062 * _pic16_genAssemblerPreamble: configuration words are emitted by
9063 their address instead of their name. This part is incomplete and
9064 supports only the 18Fxx2 devices. Other devices will emit an error
9065 during assembly since they do not contain the same set of config
9067 * _pic16_genIVT: is modified,
9069 * pcode.c: added definitions for some hardware registers that are needed
9071 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
9072 All PCI entries are updated. Now LFSR is supported.
9073 * Removed pic16_pciTRIS is mentioned by mdubuc in source
9074 * added pic16_newpCodeOpLit2 to support instructions with
9075 two literal arguments
9076 * pic16_pCode2str: corrected code that emits assembler instructions
9077 with two literal operands and those that have an access bit modifier
9078 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
9079 this fixes a bug which caused some labels to be lost, when an
9080 assembler directive was added, i.e. banksel,
9081 * pic16_FixRegisterBanking: improved logic that causes the insertion
9083 * InlineFunction: functions that are called once, are not any more
9084 inlined. This can be a port option in the future,
9086 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
9088 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
9089 hold the corresponding uninitialized symbols,
9090 * pic16_allocProcessorRegister: registers have explicit marked the
9092 * pic16_allocInternalRegister: registers are explicit marked as
9094 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
9095 processing list, so bit registers were lost,
9098 * ralloc.h: added field 'accessBank' and original symbol operand
9099 in register definition,
9100 * removed the field isMapped from register definition,
9102 ** Several functions have been removed from various sources:
9103 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
9104 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
9105 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
9106 pic16_assignRelocatableRegisters
9108 ** others have been introduced:
9109 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
9110 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
9112 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
9114 * support/scripts/inc2h.pl: changed definition of BIT_AT
9115 to emit 'sbit at' instead of 'bit at'. This was a request.
9117 PIC16 port related preliminary changes:
9118 * gen.c: prefixed function popRegFromString with
9119 pic16_ and all references to it corrected
9120 * pcode.c: all pic16_pc_* hardware registers prefixed
9121 with underscore (_),
9122 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
9123 * ralloc.c: newReg(): when register is REG_SFR then
9124 set address to rIdx,
9125 pic16_allocProcessorRegister(): marks register wasUsed=0
9126 pic16_writeUsedRegs(): added a call to assign processor
9127 registers via pic16_assignFixedRegisters
9129 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9131 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
9132 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
9133 variables in unused register banks. Also the SSEG is placed
9134 wherever there is enough space for it, and IDATA can be anywhere
9135 in internal RAM. For now compile using -Wl-Y[stack_size].
9136 The mem file is different for this option as well, since it
9137 makes no sense of talking about DSEG lenght.
9139 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
9141 * src/SDCClrange.c: fixed bug 869095 that caused segfault
9142 in certain cases, e.g. when ROM assignment, patch provided
9143 from Albert den Haan.
9145 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
9147 Many signedness and type propagation fixes:
9148 * src/SDCCicode.c: made geniCodeCast() static
9149 replaced SPEC_ by IS_ (cosmetic)
9150 (operandOperation): fixed div and mod operation
9151 (usualBinaryConversions): added support for promotion of char
9152 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
9153 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
9154 (geniCodeAdd): an array index will stay unsigned, even if promoted
9156 (geniCodeArray): ditto
9157 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
9158 * src/SDCCsymt.c (computeType): added more support for char;
9159 promotion of char is selectable by promoteCharToInt, fixed signedness
9161 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
9162 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
9163 * src/SDCCval (val*): replaced signedness calculation by
9165 rearranged if-branches (cosmetic)
9166 (valShift): added warning W_SHIFT_CHANGED
9167 (valCompare): fixed problem with different types
9168 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
9169 * support/regression/tests/literalop.c: added many cases
9170 * support/regression/tests/ast_constant_folding.c: changed finally to
9172 * .version: new year, new version: 2.3.7
9173 * src/SDCCmain.c (main): applied patch #866468
9174 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
9175 provided by Scott Bronson
9176 * doc/sdccman.lyx: updated documentation for sdcdb
9177 updated and added chapter tips
9179 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9181 * src/SDCCsymt.h: missing from yesterday's commits
9183 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9185 * src/SDCC.y (struct_or_union_specifier),
9186 * support/Util/SDCCerr.c,
9187 * support/Util/SDCCerr.h: verify that struct & union tags are used
9190 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9192 * src/SDCCglobl.h: missing from yesterday's commits
9194 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9196 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
9197 sft_attributes, struct_declaration, parameter_declaration,
9198 type_name, start_block, declaration_list),
9199 * src/SDCC.lex (check_type): support redefinition of typedef names
9201 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9203 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
9204 aligned xdata arrays. Erik helped me with the if clause.
9206 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9208 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
9211 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9214 * src/SDCCast.c (newAst_),
9216 * src/SDCCicode.c (ast2iCode, newiCode),
9218 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
9219 expr, statement, expression_statement, selection_statement,
9220 iteration_statement, expr_opt, jump_statement): foundation for tracking
9222 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
9225 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9227 * support/Util/SDCCerr.c,
9229 * src/SDCCast.c (createCase, createDefault, decorateType),
9230 * src/SDCClabel.c (labelUnreach),
9231 * src/SDCC.y (labeled_statement, jump_statement): More improvements
9233 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
9234 (with thanks to Stas Sergeev)
9235 * device/include/time.h,
9236 * device/lib/time.c (CheckTime): suppress unreachable code warning
9238 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9240 * src/SDCCast.c (createIvalCharPtr),
9241 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
9243 * support/regression/tests/nullstring.c: tests for these two bugs
9245 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9247 * support/Util/SDCCerr.h,
9248 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
9249 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
9250 about storage class and 'at' used inside struct or union
9251 * src/SDCCBBlock.c (iCodeFromeBBlock),
9252 * src/SDCCcse.c (ifxOptimize),
9253 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
9254 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
9255 printIval, emitStaticSeg, emitOverlay),
9256 * src/SDCClabel.c (deleteIfx),
9257 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
9258 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
9259 gatherAutoInit, processParms),
9260 * support/Util/SDCCerr.h,
9261 * support/Util/SDCCerr.c (werrorfl): Support for better error location
9262 reporting for post-parse errors.
9264 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9266 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
9267 implicit casts via union; they don't work on big endian systems
9268 (possible fix for bug #861138)
9270 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9272 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
9273 * src/mcs51/main.c: fixed the fix for bug #737001
9275 2003-12-15 Borut Razem <borut.razem AT siol.net>
9277 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
9279 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9281 * support/makebin/makebin.c: put output in binary mode
9283 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9285 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
9286 xdata and data memory on startup. Set the environment variable
9287 SDCC_NOGENRAMCLEAR to disable this.
9288 * src/mcs51/peephole.def,
9289 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
9290 (allows non-interrupt and interrupt code to safely compete for a resource
9291 without the non-interrupt code having to disable interrupts)
9293 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9295 * src/SDCCicode.c (geniCodeAdd),
9296 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
9297 with valFromType if type might be a pointer and host is big endian).
9298 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
9299 types, not just integer types.
9300 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
9301 multiply defined with mismatching "at" address.
9303 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9305 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
9306 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
9307 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
9308 with embedded nulls (fixed bug #753752)
9310 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9312 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
9313 Apparently this did not see much testing (endless loop)
9315 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9317 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
9319 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9321 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
9322 gracefully handle NULL memmap pointers
9324 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9326 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
9327 instead of deleting the iCode when an operand is volatile
9328 * src/z80/gen.c (genDummyRead),
9329 * src/mcs51/gen.c (genDummyRead),
9330 * src/ds390/gen.c (genDummyRead),
9331 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
9333 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
9334 * src/SDCC.y: fixed bug #850420
9336 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9338 Applied z80 i/o port patch from Peter Townson and fixed some operators
9339 to better handle operands in A register.
9340 * device/include/z180.h
9346 * src/z80/peeph-z80.def
9350 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9352 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
9354 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9356 * device/lib/hc08/_mullong.c: Removed extra #endif
9358 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9360 * sim/ucsim/hc08.src/inst.cc,
9361 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
9363 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
9364 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
9365 * device/include/stdarg.h: fixed varargs for hc08
9366 * device/lib/Makefile.in,
9367 * device/lib/hc08/Makefile,
9368 * device/lib/hc08/_mulint.c,
9369 * device/lib/hc08/_mullong.c: fixed some endian problems
9371 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9373 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
9374 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
9375 * device/lib/_gptrget.c,
9376 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
9378 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9380 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
9381 * src/SDCCast.c (astErrors): fixed bug #846007
9382 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
9384 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9386 * src/SDCCast.c (decorateType): disabled a transformation I added in
9387 revision 1.188 (access to fields of a structure at an absolute address);
9388 it breaks with bitfields, extern declarations, and gcse analysis.
9389 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
9390 could be assigned through a pointer, so don't complain.
9391 * src/SDCCast.c (astErrors),
9393 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
9395 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
9397 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
9398 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
9399 output of __config directives, since gpasm now supports them
9400 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
9401 pre-processor macro, i.e. -DMCU=p18f452
9402 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
9403 and modified to handle 'cast' icode similarly to '=' icode
9404 * src/pic16/device.h (typedef struct PIC_device): added field
9405 'extMIface' to indicate that chip has external memory interface
9406 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
9407 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
9410 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9412 * src/SDCC.y (pointer): fixed bug #846006
9413 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
9414 * src/SDCCast.c (decorateType): fixed bug #846009
9415 * src/ds390/peeph.def,
9416 * src/ds390/gen.c (genAnd, genOr),
9417 * src/mcs51/peeph.def,
9418 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
9420 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9422 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
9429 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
9433 * src/SDCCbitv.c: added function to free a bitvector
9435 * src/SDCClrange.c: added function to recompute the liveranges
9437 * src/ds390/ralloc.c,
9438 * src/hc08/ralloc.c,
9439 * src/mcs51/ralloc.c,
9441 * src/pic16/ralloc.c,
9442 * src/xa51/ralloc.c,
9443 * src/z80/ralloc.c: recompute the liveranges after register packing
9445 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
9447 * src/SDCCloop.c (newInduction): fixed bug #845630
9449 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9451 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
9452 inadvertantly left behind from my 2003-11-12 change
9454 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9456 Updated headers I neglected to commit yesterday.
9460 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9462 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
9463 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
9464 * src/SDCCopt.c (eBBlockFromiCode),
9465 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
9466 the creation of the key hash table from the sequencing so it can be used
9467 earlier (for some GCSE bug fixes still pending)
9469 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9471 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
9472 * support/regression/tests/addsub.c: testing genPlus shortcut
9474 2003-11-15 Borut Razem <borut.razem AT siol.net>
9476 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
9478 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9480 * src/SDCCcse.c (cseBBlock): fixed bug #527779
9481 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
9482 ordering is immaterial.
9483 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
9485 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9487 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
9488 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
9489 (SIGSEV) of bug #840381
9490 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
9491 unlink new file before rename if new and old filenames are the same)
9493 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9495 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
9496 uninitialized variables) for the mcs51. Set environment variable
9497 SDCC_GENRAMCLEAR to test.
9498 xdata initialization slightly shorter
9500 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9503 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
9504 #838241 & 780691 (basicly the same bug)
9505 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
9506 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
9508 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
9510 * src/SDCCmain.c (linkEdit): "fix" #834252
9512 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9514 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
9516 * src/SDCC.y: fixed bug #819403
9518 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9520 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
9521 the reentrant attribute.
9522 * src/hc08/gen.c (genPackBits): added missing stack readjustment
9523 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
9525 * src/SDCCast.c (decorateType): fixed bug with storage class not being
9526 updated during pointer dereference; f.e. ~(((char *)1)*) was being
9527 erroneously reduced to a literal.
9528 * src/hc08/ralloc.c (packRegisters, rematStr),
9529 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
9532 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9534 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
9535 * doc/sdccman.lyx: changed from 'article' to 'book'
9536 * doc/Makefile: readded test_suite_spec and cdbfileformat
9538 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
9540 * device/include/stdlib.h: include malloc.h to comply with ANSI
9541 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
9543 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9545 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
9546 * doc/clean.mk: also remove *.out files
9547 * doc/sdccman.lyx: some additions, larger top/bottom margins
9549 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9551 * src/SDCC.y: fixed bug #837365
9552 * support/regression/tests/bitopcse.c
9553 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
9554 a symbol (might be valop instead)
9555 * device/lib/Makefile.in: added errno.c to HC08SOURCES
9556 * device/lib/clean.mk: added hc08 to the cleaning list
9558 2003-11-04 Borut Razem <borut.razem AT siol.net>
9560 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
9562 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
9563 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
9564 malloc is declared in standard stdlib.h
9566 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9568 * device/lib/hc08/Makefile: need to clean .rel not .o files
9569 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
9571 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9581 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
9582 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
9583 tests (which uses the port's oclsExpense function)
9589 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
9591 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9593 * src/SDCCcse.c (ifxOptimize),
9594 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
9595 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
9596 deleting the IFX iCode.
9597 * src/hc08/ralloc.c: reduced unneeded slocs
9598 * src/hc08/gen.c: fixed bug in asmopToBoolean
9600 2003-11-04 Borut Razem <borut.razem AT siol.net>
9602 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
9603 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
9604 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
9605 transferred to configure
9607 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
9609 Use headers defined in the C[++] standards:
9610 * sim/ucsim/gui.src/serio.src/fileio.cc
9611 * sim/ucsim/gui.src/serio.src/frontend.cc
9612 * sim/ucsim/gui.src/serio.src/main.cc
9613 * sim/ucsim/gui.src/serio.src/posix_signal.cc
9614 * support/Util/NewAlloc.c
9620 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9622 * Added MSVC projects for hc08 assembler and linker:
9623 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
9624 /as/hc08/link_hc08.dsp
9626 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
9628 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
9630 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
9632 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
9634 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9636 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
9638 2003-10-31 Borut Razem <borut.razem AT siol.net>
9640 * support/cpp2/cpplib.h,
9641 support/cpp2/cpplib.c,
9642 support/cpp2/cpplex.c,
9643 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
9644 to switch _asm block preprocessing on / off. Default is
9645 #pragma preproc_asm +
9647 2003-10-31 Borut Razem <borut.razem AT siol.net>
9649 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
9650 when outputting comment blocks (when executed with -C option) and
9651 _asm (SDCPP specific) blocks
9653 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9655 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
9657 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
9659 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
9661 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
9663 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
9664 * src/SDCCast.c (decorateType): fixed bug #832664
9666 2003-10-31 Borut Razem <borut.razem AT siol.net>
9668 * support/cpp2/cpplex.c: fixed for SDCPP:
9669 comments(when executed with -C option) and _asm blocks
9670 were included even if they where in skipped #if block.
9671 Applied solution from GCC cpp 3.3.2
9673 2003-10-31 Borut Razem <borut.razem AT siol.net>
9675 * src/SDCC.lex: sdcc now understands both formats:
9676 '# <line_number> <file_name>' and
9677 '#line <line_number> <file_name>'
9678 * support/cpp2/cppmain.c: sdcpp now generates the standard
9679 '# <line_number> <file_name>' instead of former
9680 '#line <line_number> <file_name>'
9682 2003-10-30 Borut Razem <borut.razem AT siol.net>
9684 * support/cpp2/cpphash.h,
9685 * support/cpp2/cpplib.h
9686 * support/cpp2/cpplex.c,
9687 * support/cpp2/cppmain.c,
9688 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
9690 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9692 Fixed a number of problems revealed by bug #827883.
9693 * src/SDCCloop.c (loopInvariants): Spill location of the
9694 result operand should be recomputed if extracted from
9695 a loop. Also, don't extract assignments of an iTemp
9697 * src/SDCCast.c (isConformingBody): loop reversal should
9698 not occur if the control variable is involved with a
9699 relational operator.
9701 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
9703 * .version: bumped to 2.3.6 to reflect the big improvements
9704 made by Erik and Klaus. Thanks!
9706 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
9708 Replaced the livrange code.
9709 * src/SDCClrange.c: added new LR code
9711 * src/SDCCBBlock.h: removed remainig parts from old LR code
9712 * src/ds390/ralloc.c,
9713 * src/ds390/gen.c: minor fixes to make it work with new code
9715 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9720 * src/hc08/ralloc.c: Fix various warnings related to the hc08
9721 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
9722 (tweaked fix for bug #818696)
9724 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9726 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
9728 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9731 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
9732 * src/mcs51/gen.c (gencjneshort),
9733 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
9734 more efficient (per Scott Bronson's suggestion)
9736 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9738 Extended the semantics of the critical keyword to include
9739 individual statements. See RFE #827755 and #799831
9744 * support/Util/SDCCerr.c
9745 * support/Util/SDCCerr.h
9750 2003-10-19 Borut Razem <borut.razem AT siol.net>
9752 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
9754 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9756 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
9758 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
9759 and predecrement operand is displayed
9761 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
9763 * src/SDCCval.c (valMinus): fixed bug #826041
9765 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9767 Some hc08 related updates that I missed earlier
9768 * sim/ucsim/stypes.h
9769 * support/regression/ports/hc08/spec.mk
9771 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9773 New target "hc08" for the Motorola 68hc08 family of micros
9781 * sim/ucsim/hc08.src/*
9782 * sim/ucsim/configure.in
9783 * src/ucsim/configure
9784 * sim/ucsim/packages_in.mk
9787 * device/include/mc68hc908qy.h
9789 * device/lib/Makefile.in
9790 * support/regression/ports/hc08/*
9791 * support/regression/Makefile
9793 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9795 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
9797 * src/ds390/gen.c (genCast): fixed bug #821957
9799 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
9801 * device/lib/logf.c: "fixed" overlay bug
9802 * support/regression/ports/host/spec.mk: added m library
9803 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
9804 * support/regression/tests/float_trans: added (for Eric)
9806 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
9808 * src/mcs51/gen.c (genCpl): fixed bug
9809 http://sf.net/mailarchive/message.php?msg_id=6263915
9811 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
9813 * src/SDCCast.c (decorateType): added extended constant folding
9814 * src/SDCCsymt.c (computeType): cleanup
9815 * src/SDCCval.c (valShift): minor optimization
9816 * support/regression/tests/ast_constant_folding.c: added
9818 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9820 * src/SDCCmain.c: removed some unintended changes
9822 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9824 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
9825 * src/z80/gen.c: fixed part of bug #817589
9826 * src/SDCCsymt.c (checkFunction): fixed bug #817895
9828 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
9830 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
9841 * src/ds390/ralloc.c
9843 * src/mcs51/ralloc.c
9845 * src/pic16/ralloc.c
9848 * src/z80/gen.c: removed unused label "release:"
9850 2003-10-06 Borut Razem <borut.razem AT siol.net>
9852 * src/SDCC.lex: removed definition of unused variables
9853 save_optimize and save_options
9855 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
9857 * clean.mk: removed '=' in "-maxdepth=1"
9858 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
9859 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
9861 2003-10-06 Borut Razem <borut.razem AT siol.net>
9863 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
9864 my_unput() replaced by unput()
9866 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
9868 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
9869 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
9870 type-punned pointer will break strict-aliasing rules"
9871 Old LR behaviour is again default; Klaus' LR can be choosen by
9872 defining the environment variable LRKLAUS
9876 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
9877 * clean.mk: fixed removal of files in bin/CVS/
9878 * device/lib/clean.mk: fixed removal of directories small and large
9879 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
9881 * src/SDCCval.c: removed superflous test for pedantic
9883 2003-10-05 Borut Razem <borut.razem AT siol.net>
9885 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
9886 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
9887 message "unmatched #pragma SAVE and #pragma RESTORE"
9889 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9891 * doc/sdccman.lyx: various additions and updates (interrupts, inline
9892 assembly, critical functions, atomic, nojtbound)
9894 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
9896 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
9902 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9905 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9907 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9909 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
9910 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
9911 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
9913 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9915 * src/z80/gen.c (genRet): fixed bug #524753
9916 * src/z80/gen.c (genCast): fixed internal error on cast from
9918 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
9919 fix for bug #477835 to the z80
9920 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
9921 for tracking iCodes in the peephole optimizer for z80
9923 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9925 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
9926 the other part of bug #814548
9927 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
9929 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
9931 * src/SDCCcse.c: fixed part of bug #814548
9933 2003-09-28 Borut Razem <borut.razem AT siol.net>
9935 * src/asm.c: rewrite of printILine() to use temporary file instead
9937 * src/xa51/main.c: commented out declaration of int rewinds
9939 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9941 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
9943 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9945 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
9946 * src/asm.c (printILine): Fixed bug #811015
9948 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9950 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
9953 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9955 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
9956 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
9957 to correctly handle general case of AOP_PAIRPTR
9958 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
9960 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9962 * src/mcs51/ralloc.c (fillGaps),
9963 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
9964 register positioning bug)
9966 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
9968 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
9970 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9972 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
9973 genCodePointerGet, genGenPointerGet, genFarPointerSet,
9974 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
9975 (ralloc doesn't intentionally do this now, but perhaps later)
9976 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
9977 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
9978 register positioning bugs (Fixed bug #762602 and #795325)
9979 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
9981 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
9982 lines that --i-code-in-asm generates
9984 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9986 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
9987 trying to fclose a FILE* that was already closed.
9989 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9991 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
9992 of const struct should be treated as if const themselves)
9994 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
9996 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
9998 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10000 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
10001 Unix (/n) and DOS (/r/n) line terminations.
10003 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10005 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
10008 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10010 * src/mcs51/gen.c (genFunction, genEndFunction),
10011 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
10012 and restore of EA so that stack offsets to parameters are
10013 correct when using both critical and reentrant/stack-auto.
10014 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
10015 size (can be triggered in error if sloc is shared between
10016 different sized objects)
10017 * device/include/float.h: fixed macros to explicitly use
10018 unsigned long where needed
10020 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10022 Feature req. 799831: added code to allow nesting of critical functions
10023 * src/mcs51/gen.c (genFunction, genEndFunction)
10024 * src/ds390/gen.c (genFunction, genEndFunction)
10026 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10028 * src/SDCCsymt.c (sclsFromPtr),
10030 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
10031 support for standard C idiom of memory mapped variables; for
10032 example, *((xdata int*)0x1234) = 1 is now internally equivalent
10033 to xdata int at 0x1234 tempvar = 1.
10034 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
10035 provided by Akiya ISHIDA
10037 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
10039 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
10040 * src/SDCCval.c (constVal): added reduction from int to char
10041 * src/SDCCval.c (valMult, valDiv): fixed sign handling
10042 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
10043 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
10045 * support/regression/tests/shifts.c: fixed
10047 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10049 * src/z80/gen.c (genXor): Fixed bug #805445
10051 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10053 Fixed bug #621531 (const & volatile confusion in the type chain).
10054 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
10055 refer to the const or volatile state of the pointer itself.
10067 * src/pic16/ralloc.c
10068 * support/regression/tests/const.c
10070 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10072 When checking for duplicated modules, use absolute paths
10073 instead of relative paths. Files changed:
10078 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10080 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
10082 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10084 * device/include/string.h: added size_t typedef, changed
10085 prototypes to use size_t, eliminated separate reentrant and
10086 non-reentrant declarations, added _memmove declaration
10087 * device/lib/_memcpy.c: changed to use size_t instead of int,
10088 changed /4 to >>2 to avoid division library call
10089 * device/lib/_memcmp.c,
10090 * device/lib/_memset.c,
10091 * device/lib/_strncat.c,
10092 * device/lib/_strncpy.c,
10093 * device/lib/_strncmp.c: changed to use size_t instead of int
10094 * device/lib/_memmove.c: new file (fixed bug #772294)
10095 * device/lib/Makefile.in: added _memmove.c
10096 * device/lib/z80/asm_strings.s: fixed bug #772290
10097 * support/regression/tests/bitfields.c: attempt to fix host assertion
10098 failure on amd64-unknown-linux2.2
10100 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10102 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
10103 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
10104 * as/z80/asmain.c (main): fixed bug #801766
10106 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
10108 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
10111 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10113 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
10114 reported in bug #800609
10116 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
10118 * Top header beautifications in src/pic16 directory:
10119 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
10120 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
10121 pcoderegs.h, ralloc.c, ralloc.h
10122 * main.c: added top header and GPL license notice
10123 * pcode.c: fixed the if-conditional warning
10125 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
10127 * device/lib/_mullong.c: replaced int by short for gcc
10129 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10131 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
10132 and JUMPTABLE iCodes properly now (worked by accident before)
10133 * src/mcs51/gen.c (leftRightUseAcc),
10134 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
10135 iCode properly now. Use getSize instead of nRegs since a & b
10136 aren't part of the nRegs tally.
10138 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
10140 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
10141 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
10142 before instructions that use the _STATUS register
10144 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
10146 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
10147 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
10148 fetching of the pointer
10149 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
10150 copied from genNearPointerSet()
10151 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
10152 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
10153 If they pop r0/r1 they must be called in the opposite order than aopOp().
10154 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
10155 (resp. --stack-auto), prepared for --xstack
10157 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10159 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
10161 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
10163 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
10164 these ports have their own __sdcc_external_start()
10166 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
10168 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
10169 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
10170 type for bits was changed. It resulted in bit variables becoming
10171 global, which is not permitted in PIC 14 assembly output.
10173 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10175 * doc/sdccman.lyx: various additions and updates. Rearranged sections
10177 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10179 Z80 and MCS51 linkers complaint if a public symbol is defined
10180 in more than one library module:
10184 * as/mcs51/Makefile.in
10186 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10188 A few small changes that speed up the peephole optimizer.
10192 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10194 Try to make the peephole optimizer smarter by maintaining
10195 an association between the assembly source code and the
10196 iCodes that originated them. Put this information to use
10197 with a new peephole rule condition "notVolatile" so that
10198 the rules can be aggressive yet still safe.
10203 * src/mcs51/peeph.def
10205 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10209 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
10210 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
10211 if the left or right operand symbols have the accuse flag set.
10213 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10215 Changed the type of the result of the ! (NOT) operator to char;
10216 previously it returned the same type as the source. This allows
10217 us to eliminate all the genFloatNot functions (all of its target
10218 implementations were very buggy) since !float can use the same
10221 * src/SDCCicode.c (ast2iCode): ! returns char
10222 * src/mcs51/gen.c (genNot, genNotFloat),
10223 * src/ds390/gen.c (genNot, genNotFloat),
10224 * src/z80/gen.c (genNot, genNotFloat),
10225 * src/pic/gen.c (genNot, genNotFloat),
10226 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
10228 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
10230 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
10231 1. Interrupt would not compile properly. Ensure PCLATH register is saved
10232 during interrupts. Ensure WSAVE is located at a shared bank address.
10233 2. Fixed page selection in some places
10234 3. Fixed BTFSS/C to where necessary use registers directly and not simply
10235 the registers name strings.
10236 4. Fixed "signed / unsigned compare" compiler warnings.
10237 5. The PIC port manages its own allocation of the general purpose
10238 registers, but makes no attempt to reuse them. As a result when
10239 compiling it soon runs out of general purpose registers. Some
10240 additional code was added to the files pcode.c and device.c to walk
10241 through the function call tree and rename the registers so that they
10251 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
10252 genPlus() & genMinus() when the result is the same as left or right
10254 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10256 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
10258 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10260 Made bitfield a distinct type from bit so that bitfields
10261 convert as per ANSI C and bits retain their traditional
10262 boolean style behaviour. Implemented bitfield support in
10270 * src/ds390/gen.c: bit v bitfield split
10271 * src/z80/gen.c: New support for bitfields
10272 * support/regression/tests/bitfields.c: reenabled z80,
10275 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10277 Rules 246.x, 247.x relate to bitfields, the others speed up
10278 access to xdata mapped I/O devices.
10280 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
10282 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10284 Cleaned up genPackBits and genUnpackBits and added two helper
10285 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
10286 for literal assignments in genPackBits (thanks to Frieder for
10292 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10294 Fixed bug #748310 (pointer to function type mishandled when the
10295 function name is omitted). Also fixed a SIGSEGV when a function
10296 attribute (reentrant, etc) is used on a non-function or on a
10297 function but misplaced before the parameter list.
10299 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
10301 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
10302 * support/Util/SDCCerr.h,
10303 * support/Util/SDCCerr.c: Added func attr misuse error msg
10305 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
10307 Fixed bug #787649 by anonymous
10308 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
10309 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
10311 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10313 Fixed numerous bitfield problems.
10315 * src/SDCC.y: More bitfield related error checking
10317 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
10318 * support/Util/SDCCerr.h,
10319 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
10320 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
10321 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
10322 * support/regression/tests/bitfields.c: tests added
10324 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10326 Made the constant following the "interrupt" keyword optional. If
10327 omitted, the function will not automatically be given an entry
10328 in the interrupt vector table (similar to #pragma NOIV, but
10329 less syntacticly kludgy). The interrupt number is also now
10330 range checked. Also fixed a bug in the high order bit example
10337 * support/Util/SDCCerr.c
10338 * support/Util/SDCCerr.h
10341 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
10343 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
10344 * src/SDCCicode.c (operandOperation): rewritten some ops
10345 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
10346 * src/SDCCsymt.c (computeType): literals are handled the same way as any
10348 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
10349 be re-activated by defining REDUCE_LITERALS)
10350 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
10351 unsigned, but are signed by default
10352 * src/SDCCval.c (constVal): rearranged
10353 * src/SDCCval.c (valMod): preliminary fix
10354 * src/SDCCval.c (valCastLiteral): use TYPE_* types
10355 * support/regression/literalop.c: added, work in progress
10357 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10359 Generate warnings for useless declarations like "char data;"
10360 that don't do what new users expect.
10363 * support/Util/SDCCerr.h
10364 * support/Util/SDCCerr.c
10366 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
10368 * src/SDCCval.c (valMult): fix overflow detection of negative int
10370 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10372 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
10374 Changes to support big endian targets:
10387 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
10389 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
10390 * device/lib/time.c: fixed warning "integer overflow in expression"
10392 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
10394 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
10395 * src/SDCCval.c (constVal): changed default to signed; hex and octal
10396 constants are unsigned; added recognition of "u" flag for unsigned
10397 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
10398 * src/SDCCval.c (valDiv, valMod): fixed signdness
10399 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
10400 signedness of modulo, left and right shift
10401 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
10402 * support/Util/SDCCerr.h: added warning W_INT_OVL
10403 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
10404 * src/SDCCast.c (ast_print): improved output of constants
10406 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10408 Fixed some warnings when building with MSVC:
10410 * as/mcs51/asdata.c
10414 * link/z80/aslink.h
10415 * link/z80/lkdata.c
10416 * link/z80/lkeval.c
10421 * support/cpp2/cpplib.c
10425 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
10427 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
10429 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10431 * support/librarian/clean.mk: Do not remove Makefile.
10432 * support/librarian/Makefile: added.
10434 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10436 Added librarian to MSVC build:
10439 * support/librarian/librarian.dsp
10441 'configure' not needed for librarian, removed:
10442 * support/librarian/configure
10443 * support/librarian/configure.in
10444 * support/librarian/config_in.h
10445 * support/librarian/Makefile.in
10447 Hopefully these ones built the librarian and the rest of sdcc properly:
10449 * Makefile.common.in
10451 Messed up 'configure', so revert to previous version:
10455 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
10457 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
10458 there, while the mantissa of a double is "only" 53 bits wide.
10460 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10462 Adding sdcclib to the build. MSVC project coming soon.
10463 Files added/changed:
10465 * support/librarian/clean.mk
10466 * support/librarian/configure
10467 * support/librarian/configure.in
10468 * support/librarian/config_in.h
10469 * support/librarian/Makefile.bcc
10470 * support/librarian/Makefile.in
10471 * support/librarian/sdcclib.c
10474 * Makefile.common.in
10478 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10480 Linker now complaints if linked modules have conflicting options, for
10481 example, one compiled using --model-large and another one compiled with
10482 --model-small. The following files were modified:
10484 * as/mcs51/asdata.c
10485 * as/mcs51/aslink.h
10487 * as/mcs51/asmain.c
10489 * as/mcs51/i51pst.c
10490 * as/mcs51/lkdata.c
10491 * as/mcs51/lklibr.c
10492 * as/mcs51/lkmain.c
10498 * link/z80/aslink.h
10499 * link/z80/lkdata.c
10500 * link/z80/lklibr.c
10501 * link/z80/lkmain.c
10504 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10506 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
10507 as/mcs51/lklibr.c: Generate a warning when a library is not found.
10509 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
10511 * src/z80/mappings.i: fix _mul[us][int,long] entries
10513 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10515 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
10517 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
10519 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
10520 * support/regression/tests/bitopcse.c: added
10528 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10530 added support for new library format to z80, gbz80 linkers:
10536 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
10538 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
10539 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
10541 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
10543 added DUMMY_READ_VOLATILE:
10552 * src/SDCCcse.c (algebraicOpts): many improvements
10553 * src/SDCCcse.h: removed algebraicOpts()
10554 * src/SDCCicode.c (picDummyRead): added
10556 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10558 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
10559 "Insufficient space in data memory".
10561 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10563 * src/mcs51/gen.c: fixed bug #771358
10564 * src/z80/gen.c: fixed bug #759087
10566 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
10568 * src/pic16/glue.c: minor cleanup by Vangelis
10570 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10572 * device/include/regc515c.h: fixed #758477
10573 * device/lib/_gptrget.c: saving some cycles in generic pointer get
10574 * device/lib/_gptrput.c: saved a few bytes
10575 * my tab spacing is 8, yours too?)
10576 * device/lib/_ser.c: process RX bytes earlier than TX bytes
10577 * device/lib/serial.c: process RX bytes earlier than TX bytes
10578 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
10580 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10582 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
10584 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10586 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
10588 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
10590 * device/lib/Makefile.in: bad fix, reverted to 1.43
10592 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
10594 * device/lib/Makefile.in: added missing z80 object files
10596 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
10598 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
10599 pic16 progress by Vangelis:
10602 * src/pic/Makefile:
10609 * pic16/genarith.c:
10614 * pic16/pcodepeep.c:
10617 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10619 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
10621 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10623 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
10624 added gbz80 build to MSVC project.
10625 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
10626 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
10627 from 8051 stuff and setup so it links using a .lnk file.
10629 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10631 * support/librarian/sdcclib.c: sdcc librarian.
10632 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
10635 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10637 * as/mcs51/lkmain.c: properly handle extensions in function afile.
10639 2003-07-02 Borut Razem <borut.razem AT siol.net>
10641 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
10642 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
10643 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
10644 src/xa51/main.c, src/z80/main.c:
10645 virtualization of glue() function: each port has it's own glue function,
10646 which is accessed by do_glue function pointer in PORT.general structure
10648 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
10650 * DS800C400 fun, improved ROM interface and tinibios.
10652 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
10654 * More support for DS80C400. Now includes beginning of interface to ROM.
10656 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
10658 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
10660 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10662 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
10664 2003-06-19 Borut Razem <borut.razem AT siol.net>
10666 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
10668 2003-06-19 Borut Razem <borut.razem AT siol.net>
10670 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
10671 fixed Z80 port - crt0.o: cannot open.
10673 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
10675 * support/Util/MySystem.c (merge_command): revert bad fix
10677 2003-06-18 Borut Razem <borut.razem AT siol.net>
10679 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
10681 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10683 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
10684 option --use-stdout sends errors to stdout instead of stderr.
10686 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
10688 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
10690 2003-06-15 Borut Razem <borut.razem AT siol.net>
10692 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
10693 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
10694 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
10695 fixed width array of pointers replaced with sets;
10696 multiple include and lib paths ared transferred to preprocessor and linker
10697 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
10698 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
10699 fixed width array of pointers
10700 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
10701 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
10702 fixupPath(), getPathDifference()
10703 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
10704 fixed width array of pointers
10706 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
10708 * src/pic16/ralloc.c: fix warnings
10709 * src/pic16/pcode.c: fix warning
10711 2003-06-10 Scott Dattalo <scott AT dattalo.com>
10713 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
10714 know all the details, but essentially this set of changes enable
10715 the pic16 port to generate movff instructions and generate assembler
10719 * src/pic16/glue.c:
10720 * src/pic16/pcode.c:
10721 * src/pic16/device.c:
10722 * src/pic16/main.c:
10723 * src/pic16/pcode.h:
10724 * src/pic16/pcoderegs.c:
10725 * src/pic16/ralloc.c:
10726 * src/pic16/ralloc.h:
10728 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10730 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
10731 added option --vc, so sdcc errors and warnings are compatible with
10732 Microsoft Visual Studio.
10734 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10736 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
10737 device/lib/libfloat.lib: added atof function.
10739 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
10741 * doc/sdccman.lyx: updated to Lyx 1.3
10742 * doc/cdbfileformat.lyx: updated to Lyx 1.3
10743 * doc/test_suite_spec.lyx: updated to Lyx 1.3
10744 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
10746 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
10748 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
10750 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10752 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
10753 additions to the "related tools/documentation" section
10755 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
10757 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
10759 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
10761 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
10762 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
10764 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
10766 * doc/sdccman.lyx: fix double dash and other minor things
10767 * doc/Makefile: fix double dash
10769 2003-05-28 Karl Bongers(patches from Martin Helmling)
10770 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
10771 condition and ignore commands.
10773 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10775 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
10776 is in parts still quite out of date, I did changes as far as I felt makes sense
10777 for a non-native english speaker.
10778 Please feel free to add to the manual or to correct my changes.
10779 * doc/Makefile: undid touching the date of intermediate tex files.
10781 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10783 * doc/sdccman.lyx: Manual has an index now
10785 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
10787 Finalize muluint/mulsint and mululong/mulslong merging:
10788 * device/lib/_mulint.c
10789 * device/lib/_mullong.c
10790 * device/lib/gbz80/mul.s
10791 * device/lib/gbz80/stubs.s
10792 * device/lib/z80/mul.s
10793 * device/lib/z80/stubs.s
10794 * src/SDCCsymt.c (initCSupport)
10796 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10798 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
10799 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
10800 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
10801 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
10804 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10806 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
10807 the regression tests I'm not brave enough to enable 245.b, 245.c
10808 * doc/sdccman.lyx: added latex preamble for hyperref package.
10809 Using pdflatex this will give you a hyperlinked pdf file with
10810 bookmarks. (prepend '%' before /usepackage if this breaks something)
10812 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10814 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
10816 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
10818 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
10820 2003-05-21 <johan AT balder>
10822 * src/SDCCglue.c (printIval): fixed bug #739934
10824 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
10826 Applied patch from bug 737905 (renamed yylineo to mylineno):
10833 * src/pic16/pcode.c: Cleaned warnings
10834 * src/pic16/pcodeflow.c: Cleaned warnings
10835 * src/pic16/pcoderegs.c: Cleaned warnings
10837 2003-05-19 Scott Dattalo <scott AT dattalo.com>
10839 * src/pic16/pcode.c: Cleaned warnings
10840 * src/pic16/pcodepeep.c: Cleaned warnings
10841 * src/pic16/ralloc.c: Cleaned warnings
10843 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
10845 * doc/sdccman.lyx: fixed bug 739745
10846 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
10848 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
10850 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
10851 it can be defined with CFLAGS when running configure
10852 * src/SDCCmain.c: fixed compiling + linking with object files
10854 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
10856 * configure.in: configure for pic16 port,
10857 added --disable-pic16-port
10858 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
10859 * src/SDCCmain.c: linkOptions is changed to set *,
10860 added if/endif conditional macros to remove options help
10861 messages from optionsTable when a port is not configured, added
10862 support for the PIc16 port in the ports table, when executing
10863 the compiler with no port specified on command line, a default
10864 port is selected with the new macro DEFAULT_PORT which is
10865 defined in port.h, in setDefaultOptions() linkOptions is removed
10866 from initialization assignment, since now it is a set,
10867 parseCmdLine uses setParseWithComma for linkOptions, in
10868 linkEdit() linkOptions are accessed with new function indexSet()
10869 which returns the i'th item of a set variable. See SDCCset.c, in
10870 linkEdit() when calling buildCmdLine(), added linkOptions as
10871 last argument. Now users can pass arguments to gplink via the
10872 -Wl option, main() uses pic16glue() to glue up pic16 programs
10873 * src/SDCCpeeph.c: various changes to support pic16
10874 * src/SDCCset.c: added function void *indexSet(set *, int) to
10875 return the i'th item of the set
10876 * src/SDCCset.h: added function prototype for indexSet()
10877 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
10878 * src/clean.mk: added pic16 in CLEANALLPORTS variable
10879 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
10880 added macro DEFAULT_PORT
10881 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
10882 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
10884 * src/pic16/glue.c: commented out some error producing lines
10885 * src/pic16/main.c: __config directives are commented out to stop
10886 gpasm complaining and test the linkage with gplink, _linkCmd and
10887 _asmCmd changed to be more gplink and gpasm friendly
10888 * src/pic16/peeph.def: peep rule 3 is commented out, since it
10889 produced an error when parsed, peep rule 12 is added to utilize
10890 movff, but it is commented out since the pCode does not support
10891 yet a command with 2 address arguments
10893 2003-05-18 <johan AT balder>
10895 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10896 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
10897 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
10899 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
10900 Added feature to script commands from file.
10902 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
10904 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
10905 * src/SDCCutil.c: include ctype.h for win32
10907 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
10909 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
10911 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
10913 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
10914 Fixed so you can set breakpoints prior to run, run does not stop
10915 on entry now. Add tbreak. Other enhancements and fixes for use
10918 2003-05-12 Borut Razem <borut.razem AT siol.net>
10920 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
10922 2003-05-11 Borut Razem <borut.razem AT siol.net>
10924 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
10925 the path of bin directory, so that PATH is the only env. variable, which has to be set
10926 in case of standard installation.
10927 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
10928 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
10929 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
10931 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
10933 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
10934 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
10935 temp files are in the port dir; clean the gen/test directory when
10936 generating new test.c
10937 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
10938 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
10939 * support/regression/tests/zeropad.c: added
10941 2003-05-09 <johan AT balder>
10943 * src/SDCCglue.c: fixed bug #597940
10945 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
10947 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10948 cache sfr, optimize next,step, fix off by one sourceline,
10949 support ddd list function.
10950 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
10952 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
10954 * support/regression/HTMLgen.py: added compare_s2f()
10955 * support/regression/Makefile: redo 1.27
10956 * support/regression/generate-cases.py: redo 1.5
10958 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
10960 * support/regression/tests/float.c: workaround 33 bit hex constant
10961 * support/regression/tests/simplefloat.c: fix division for host
10963 2003-04-29 Scott Dattalo <scott AT dattalo.com>
10965 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
10966 that tame's the PIC's over-aggressive optimizer.
10968 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10970 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
10973 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
10975 Initial support for DS80C400. "Hello world" runs on TINIm400
10978 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
10980 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
10981 * Some notes on ddd usage added in debugger/README
10982 Martin Helmling adding more features and fixes for ddd GUI debugger.
10983 Code added for nexti, stepi, up, down, and other adjustments.
10985 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
10987 * src/pic/pCodepeep.c non-wildcard asmops are now handled
10988 * src/pic/peeph.def Added two rules to optimize carry manipulation
10989 * src/pic/* removed debug printfs
10991 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
10993 * debugger/mcs51/cmd.c: added header newalloc.h
10995 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
10997 * as/Makefile: new EXEEXT
10998 * as/z80/Makefile: remove trailing slash of BUILDIR
10999 * as/z80/clean.mk: new EXEEXT
11000 * Makefile.common.in: add to CFLAGS (and others), don't replace it
11001 * support/cpp2/Makefile.in: new EXEEXT
11002 * src/pic/glue.c (pic14emitRegularMap): fixed warning
11004 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
11006 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
11007 EXEEXT was introduced to fix all related problems with targets
11008 "clean", "install" and "uninstall"; a couple of further flaws
11009 especially with "clean" have been fixed too
11010 * as/mcs51/Makefile.in
11011 * as/mcs51/clean.mk
11015 * debugger/mcs51/Makefile.in
11016 * debugger/mcs51/clean.mk
11017 * link/z80/Makefile
11018 * link/z80/Makefile.in
11019 * link/z80/clean.mk
11021 * packihx/Makefile.in
11023 * sim/ucsim/Makefile
11024 * sim/ucsim/clean.mk
11025 * sim/ucsim/avr.src/Makefile.in
11026 * sim/ucsim/avr.src/clean.mk
11027 * sim/ucsim/s51.src/Makefile.in
11028 * sim/ucsim/s51.src/clean.mk
11029 * sim/ucsim/xa.src/Makefile.in
11030 * sim/ucsim/xa.src/clean.mk
11031 * sim/ucsim/z80.src/Makefile.in
11032 * sim/ucsim/z80.src/clean.mk
11033 * sim/ucsim/main_in.mk
11034 * sim/ucsim/packages_in.mk
11035 * sim/ucsim/gui.src/Makefile.in
11036 * sim/ucsim/gui.src/serio.src/Makefile.in
11037 * sim/ucsim/gui.src/serio.src/clean.mk
11040 * support/cpp2/Makefile.in
11041 * support/cpp2/clean.mk
11042 * support/makebin/Makefile
11043 * support/makebin/clean.mk
11044 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
11045 * doc/sdccman.lyx: --program-suffix no longer needed
11047 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
11049 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
11050 Martin Helmling added support for ddd GUI debugger.
11051 Code added to display assembly, set variables, and other commands
11052 to interface to ddd.
11054 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
11056 * as/Makefile: fix target clean
11057 * as/clean.mk: fix target clean
11058 * as/z80/clean.mk: fix target clean
11060 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
11062 * Makefile.common.in: added AT EXEEXT AT
11063 * configure.in: removed all mingw32 stuff
11064 * configure: rebuilt from configure.in
11065 * doc/sdccman.lyx: updated section "installation"
11066 * support/scripts/sdcc_mingw32: adapted to configure
11067 * support/scripts/sdcc_cygwin_mingw32: added
11069 2003-04-22 Scott Dattalo <scott AT dattalo.com>
11071 * src/pic Added object file support for the PIC port
11072 * src/pic Applied patch from Craig Franklin (this started the object file support)
11073 * src/regression Updated the PIC regression tests for object files
11075 2003-04-20 Borut Razem <borut.razem AT siol.net>
11077 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
11078 lklex.c: In function `getfid':
11079 lklex.c:203: warning: array subscript has type `char'
11080 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
11081 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
11082 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
11083 stack handling macros
11085 2003-04-19 Borut Razem <borut.razem AT siol.net>
11087 * "handling space characters in file path" task:
11088 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
11089 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
11090 * support/Util/MySystem.h: make it self-sufficient
11091 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
11092 src/z80/main.c, sdcc/as/mcs51/lklex.c:
11093 handling space characters in file path
11094 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
11095 (it will be used by assemblers, which have their own includes, e.g. gpasm)
11096 * support/Util/MySystem.c: handling space characters in executable's path
11098 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
11100 * as/z80/Makefile: fix permanent rebuild of z80
11101 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
11102 * support/regression/tests/bitfields.c: added Johan's bitfields.c
11104 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
11106 * src/SDCCopt.c: add special case optimization to replace modulo by
11107 a power of two with a bitwise AND.
11109 2003-04-18 <johan AT balder>
11111 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
11113 2003-04-17 <johan AT balder>
11115 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
11116 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
11118 2003-04-13 Borut Razem <borut.razem AT siol.net>
11120 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
11121 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
11122 fixed mingw problem in adl_NORMALIZE_PATH
11124 2003-04-12 Borut Razem <borut.razem AT siol.net>
11126 * fixed "#pragma SAVE/RESTORE can not be nested":
11127 * src/SDCC.lex: reworked pragma handling functions
11128 * sdcc/src/SDCCglobl.h: reworked stack handling macros
11129 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
11131 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11133 * src/SDCCutil.c (pathEquivalent): defined but not used
11134 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
11135 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
11136 * configure: rebuilt from configure.in
11137 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
11138 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
11139 * device/include/Makefile.in: replace sdcc_datadir
11140 * device/lib/Makefile.in: replace sdcc_datadir
11141 * Makefile.common.in: add LDFLAGS from configure
11142 * packihx/Makefile.in: use LDFLAGS
11143 * src/Makefile.in: use LDFLAGS
11144 * support/cpp2/Makefile.in: add LDFLAGS from configure
11145 * support/makebin/Makefile: use LDFLAGS
11146 * .version: bumped version number to 2.3.5
11148 2003-04-12 Borut Razem <borut.razem AT siol.net>
11150 * completed "different paths" task:
11151 * src/SDCCmacro.c: fixed bug in handling quotes
11152 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
11153 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
11155 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11157 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
11159 2003-04-11 kevin Vigor <kevin AT vigor.nu>
11161 * ds390/gen.c ds390/peeph.def: fix bug 706781
11163 2003-04-11 Borut Razem <borut.razem AT siol.net>
11165 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
11167 2003-04-10 Scott Dattalo <scott AT dattalo.com>
11169 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
11170 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
11171 set - this bit used to not be set...).
11172 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
11173 bad code in PIC Port
11174 * src/regression/and2.c added to test bug 609268
11175 * src/regression/Makefile added and2.c to regression test
11178 2003-04-08 <johan AT CP255758-A>
11180 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
11181 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
11182 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
11184 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
11186 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
11188 * support/cpp2/Makefile.in: fix bug #487815
11189 * configure: rebuilt from configure.in
11190 * Makefile.common.in: docdir changed, new path suffixes
11191 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
11192 * sdcc_vc_in.h: reflect changes from sdccconf.h
11193 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
11194 * src/SDCCutil.h: remove BINDIR hack
11195 * doc/sdccman.lyx: update new path hierarchy
11197 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
11199 * src/SDCCpeeph.c: added okToRemoveSLOC test
11201 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
11203 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
11205 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
11207 * src/SDCCpeeph.c: added labelIsReturnOnly test
11208 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
11210 2003-04-05 <johan AT balder>
11212 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
11213 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
11214 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
11215 * src/SDCCast.c: fixed a warning
11216 * src/SDCCast.h: fixed a warning
11217 * src/SDCCicode.c (operandFromAst): fixed a warning
11219 2003-04-04 <johan AT balder>
11221 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
11222 * src/SDCCast.c (decorateType): fixed bug #715076
11223 * src/SDCC.y: fixed bug #702907
11225 2003-04-03 <johan AT balder>
11227 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
11228 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
11229 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
11230 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
11231 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
11233 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
11235 * _decdptr.c: fix return values
11236 * _gptrget.c: fix return values
11237 * _gptrgetc.c: fix return values
11238 * _gptrput.c: fix return values
11239 * _mulint.c: fix return values
11240 * as/z80/Makefile: fix 'make -j' problem
11242 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
11244 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
11245 * configure.in: big cleanup, updated to autoconf 2.5x
11246 * configure: rebuilt from configure.in
11247 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
11248 * sdcc_vc_in.h: reflect changes from sdccconf.h
11249 * doc/Makefile: fixed a flaw in "make install"
11251 2003-04-02 <johan AT balder>
11253 * src/ds390/gen.c (genCmp): no comments
11254 * src/mcs51/gen.c (genCmp): no comments
11255 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
11256 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
11258 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
11260 * support/regression/generate-cases.py: place generated file in given sub directory
11261 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
11262 * support/regression/Makefile: improvements for 'make -j';
11263 side effect: it's simpler and faster now
11265 2003-03-31 Borut Razem <borut.razem AT siol.net>
11267 * src/z80/main.c: link-{port} and as-{port} defined without path
11268 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
11270 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
11272 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
11274 2003-03-30 Borut Razem <borut.razem AT siol.net>
11276 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
11277 changed type of list parameter to set
11278 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
11279 * src/port.h: changed type of do_assemble() parameter to set
11280 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
11281 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
11282 definition of "cppoutfilename" macro with NULL value in preProcess()
11283 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
11284 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
11285 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
11286 replaced with set *binPathSet
11287 * shash_add() deallocates the item, if allready exsists, before adding the new one
11288 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
11290 2003-03-30 Scott Dattalo <scott AT dattalo.com>
11292 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
11293 a nested for loop bug in the PIC port
11294 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
11297 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11299 * support/Util/dbuf.h: remove C++ stuff to make it portable
11301 2003-03-28 Borut Razem <borut.razem AT siol.net>
11303 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
11304 literal strings in stringLiteral()
11305 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
11306 * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
11309 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
11311 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
11313 2003-03-26 <johan AT balder>
11315 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
11316 * src/ds390/gen.c (saveRegisters): catched symbol abuse
11317 * src/SDCCast.c (decorateType): fixed " -v < 3"
11319 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11321 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
11322 Added Lenny Story's debug infrastructure changes:
11323 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
11324 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
11325 * src/cdbFile.c: added
11326 * src/SDCCdebug.c: added
11327 * src/SDCCdebug.h: added
11328 * src/SDCCast.c (createFunction)
11329 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
11330 * src/SDCCmain.c (parseCmdLine, main)
11331 * src/SDCCmem.c (redoStackOffsets)
11332 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
11335 * src/avr/gen.c (genAVRCode)
11336 * src/ds390/gen.c (gen390Code)
11337 * src/mcs51/gen.c (gen51Code)
11338 * src/pic/gen.c (genpic14Code)
11339 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
11340 * src/xa51/gen.c (genXA51Code)
11341 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
11343 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11345 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
11346 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
11348 2003-03-22 <johan AT balder>
11350 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
11352 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
11354 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
11355 * doc/cdbfileformat.lyx: added, written by Lenny Story
11356 * doc/Makefile: added cdbfileformat.lyx
11357 * doc/clean.mk: added cdbfileformat.lyx
11359 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
11361 * src/mcs51/peeph.def: fix bug #705773
11363 2003-03-20 <johan AT balder>
11365 An sfr/sbit can have an "at #" AND an initializer
11366 * src/SDCCsymt.c (checkSClass):
11367 * src/SDCCmem.c (allocGlobal):
11368 * src/SDCCmem.c (allocLocal):
11369 * src/SDCCast.c (createBlock):
11371 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
11373 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
11375 2003-03-16 <johan AT balder>
11377 Undid the hackup of const and volatile, the problem is much bigger
11379 * src/SDCCast.c:1.171
11380 * src/SDCCglue.c:1.138
11381 * src/SDCCicode.c:1.146
11382 * src/SDCCsymt.c:1.150
11383 * src/SDCCval.c:1.65
11385 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
11387 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
11388 * src/ds390/gen.c (genAddrOf): fixed bug #704087
11390 2003-03-13 <johan AT balder>
11392 Hackup const and volatile modifiers in type chains a bit:
11394 * src/SDCCast.c:1.169
11395 * src/SDCCglue.c:1.136
11396 * src/SDCCicode.c:1.143
11397 * src/SDCCsymt.c1.146
11398 * src/SDCCsymt.h1.59
11399 * src/SDCCval.c:1.63
11401 2003-03-12 <johan AT balder>
11403 * src/SDCCBBlock.h: more LRH debugging junk
11404 * src/SDCCcflow.h: more LRH debugging junk
11405 * src/SDCCloop.c: more LRH debugging junk
11406 * src/SDCC.y (struct_declaration): fixed bug #697590
11407 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
11408 * src/ds390/gen.c (aopForRemat): fixed bug #700031
11409 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
11411 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11412 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
11413 test function names must now match exactly).
11414 * src/SDCCcse.c: added special case in findCheaperOp to allow
11415 extending a short integer. Makes less awful code for bug 700121 test case.
11417 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11419 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
11420 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
11422 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11424 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
11425 actually called (operandsNotEqual() was called for all
11426 operandsNotEqualX tests).
11428 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
11430 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
11431 with shorter literals. Fixes bug 700121.
11433 2003-03-11 <johan AT balder>
11435 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
11437 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
11439 * src/SDCCloop.c (mergeRegions): an evil beast is dead
11440 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
11442 2003-03-10 Borut Razem <borut.razem AT siol.net>
11444 * src/SDCCmain.c: pipe preprocessor's output
11445 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
11446 * sdcc_vc_in.h: define pclose as _pclose for WIN32
11447 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
11448 which closes all pipes in pipeSet set
11449 * src/SDCCset.c: free deleted item in function deleteSetItem()
11450 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
11451 moved from z80 to src subproject
11452 * .version: increased version number to 2.3.4
11454 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11456 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
11457 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
11458 * support/regression/ports/xa51/spec.mk: fix typo
11460 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11462 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
11464 2003-03-09 Borut Razem <borut.razem AT siol.net>
11466 * src/SDCCmain.c: pipe preprocessor's output
11467 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
11468 * sdcc_vc_in.h: define pclose as _pclose for WIN32
11469 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
11470 which closes all pipes in pipeSet set
11471 * src/SDCCset.c: free deleted item in function deleteSetItem()
11472 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
11473 moved from z80 to src subproject
11475 2003-03-09 Borut Razem <borut.razem AT siol.net>
11477 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
11478 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
11479 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
11480 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
11481 * src/SDCCglobl.h: unification of WIN32 native definitions
11483 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11485 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
11487 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11489 * src/configure.in: check for endianess (even while cross-compiling)
11490 * src/configure: check for endianess (even while cross-compiling)
11491 * src/configure_in.h: check for endianess (even while cross-compiling)
11492 * src/avr/gen.c: remove old endianess stuff
11493 * src/mcs51/gen.c: remove old endianess stuff
11494 * src/ds390/gen.c: remove old endianess stuff
11495 * src/pic/gen.c: remove old endianess stuff
11496 * src/pic/genarith.c: remove old endianess stuff
11497 * src/pic/glue.c: fix endianess check
11498 * src/pic16/gen.c: remove old endianess stuff
11499 * src/pic16/genarith.c: remove old endianess stuff
11500 * src/pic16/glue.c: fix endianess check
11501 * src/xa51/gen.c: remove old endianess stuff
11502 * src/z80/gen.c: fix endianess check
11503 * src/SDCCglue.c: fix endianess check
11504 * src/ds390/peeph.def: fix bug 700036
11506 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11508 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
11509 * src/configure: find appropriate data-types on host for SDCC's int and long
11510 * src/configure.in: find appropriate data-types on host for SDCC's int and long
11511 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
11512 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
11514 2003-03-07 <johan AT balder>
11517 some minor cleanups before the big shot
11518 OP_DEFS and OP_USES now use Kevin's protection
11519 new option --nolabelopt
11521 * src/SDCCBBlock.c:
11530 * src/ds390/ralloc.c:
11531 * src/mcs51/ralloc.c:
11532 * src/pic/ralloc.c:
11533 * src/xa51/ralloc.c:
11534 * src/z80/ralloc.c:
11536 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11538 * src/pic/pcode.c (get_op): fix 64 bit warnings
11539 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
11540 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
11541 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
11542 * support/regression/tests/malloc.c: fix 64 bit warnings
11544 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
11546 * src/mcs51/gen.c (genMinus): fixed bug 696436
11548 2003-03-02 Borut Razem <borut.razem AT siol.net>
11550 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
11552 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11554 * configure.in: test for mkstemp
11555 * sdccconf_in.h: add HAVE_MKSTEMP
11557 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
11559 * device/include/ctype.h: removed warning while using --stack-auto
11560 * device/include/malloc.h: removed warning while using --stack-auto
11561 * device/include/string.h: removed warning while using --stack-auto
11563 2003-02-23 Borut Razem <borut.razem AT siol.net>
11565 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
11566 because NDEBUG is defined (see man assert)
11567 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
11569 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11571 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
11572 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
11574 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11576 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
11577 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
11579 2003-02-18 <johan AT balder>
11581 * as/mcs51/asmain.c (asmbl): module can start with a digit
11582 * as/z80/asmain.c (asmbl): module can start with a digit
11584 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11586 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
11587 * src/asm.c: fix pipe() for Mingw32
11589 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
11591 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
11592 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
11593 make -V work again; --c1mode reads now from stdin
11594 * doc/sdccman.lyx: added --c1mode
11595 * support/Util/SDCCerr.c: new messages for c1 mode
11596 * support/Util/SDCCerr.h: new messages for c1 mode
11597 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
11599 2003-02-15 <johan AT balder>
11601 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
11603 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
11605 * doc/sdccman.lyx: Environment variables, -o and other minor things
11607 2003-02-14 <johan AT balder>
11609 * src/xa51/main.c: before anyone really tries to use it :)
11611 * Install doc's in share/sdcc/doc
11612 * removed some obsolete files
11613 * Do a proper make distclean and uninstall
11614 M Makefile.common.in
11617 M device/include/Makefile.in
11618 M device/lib/Makefile.in
11621 M sim/ucsim/doc/Makefile.in
11623 R src/avr/peeph.rul
11624 R src/xa51/peeph.rul
11625 M support/cpp2/Makefile.in
11626 M support/makebin/Makefile
11629 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11631 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
11633 2003-02-10 Borut Razem <borut.razem AT siol.net>
11635 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
11636 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
11637 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
11638 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
11639 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
11640 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
11641 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
11642 src/z80/Makefile.bcc: Borland Makefile cleanup
11643 * as/z80/Makefile.bcc: Added Borland Makefile
11644 * support/cpp2/borland.h: Removed
11646 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
11648 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
11649 * src/SDCC.lex: new pragma NOIV
11650 * src/SDCCglobl.h: new pragma NOIV
11651 * src/SDCCmem.c: new pragma NOIV
11653 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11655 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
11657 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11659 * src/SDCCmain.c: signal handling is switched off by --debug
11660 * doc/Makefile: small fix for install; use clean.mk again
11661 * doc/clean.mk: clean *.pdf and *.html too
11663 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
11665 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
11666 * device/lib/printfl.c: fix a ds390 bug by making it portable
11667 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
11668 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
11669 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
11670 * debugger/mcs51/cmd.c: converted multi-line string literals
11671 * sim/ucsim/globals.cc: converted multi-line string literals
11672 * src/SDCCmain.c: introduced signal handler to remove temp files
11673 * doc/Makefile: small tweaks, implement clean
11674 * doc: removed generated files
11676 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11678 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
11679 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
11680 Address Record is not correctly generated for DS390."
11682 2003-02-02 Borut Razem <borut.razem AT siol.net>
11684 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
11685 * as/mcs51/asm.h: fixed compilation with Borland C
11686 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
11687 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
11688 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
11689 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
11690 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
11691 src/z80/Makefile.bcc: delete $(LIB) only if exist
11692 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
11694 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
11696 * device/include/malloc.h: introduced NULL
11697 * device/include/string.h: introduced NULL
11698 * device/include/stdlib.h: introduced NULL
11699 * device/lib/_memcpy.c: removed NULL
11700 * device/lib/_strcat.c: removed NULL
11701 * device/lib/_strchr.c: removed NULL
11702 * device/lib/_strcmp.c: removed NULL
11703 * device/lib/_strcpy.c: removed NULL
11704 * device/lib/_strcspn.c: removed NULL
11705 * device/lib/_strlen.c: removed NULL
11706 * device/lib/_strncat.c: removed NULL
11707 * device/lib/_strncmp.c: removed NULL
11708 * device/lib/_strncpy.c: removed NULL
11709 * device/lib/_strpbrk.c: removed NULL
11710 * device/lib/_strrchr.c: removed NULL
11711 * device/lib/_strspn.c: removed NULL
11712 * device/lib/_strstr.c: removed NULL
11713 * device/lib/_strtok.c: removed NULL
11714 * device/lib/malloc.c: removed NULL, include own header
11716 2003-02-02 <johan AT balder>
11718 * 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
11719 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
11720 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
11721 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
11722 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
11723 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
11725 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11727 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
11730 2003-02-01 <johan AT balder>
11732 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
11734 2003-01-31 <johan AT CP255758-A>
11736 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
11738 2003-01-30 <johan AT balder>
11740 * src/SDCCBBlock.c: automatic bug detection
11741 * src/SDCCicode.c: automatic bug detection
11743 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11745 * src/SDCCglobl.h: now --xram-size 0 works
11746 * src/SDCCmain.c: now --xram-size 0 works
11748 2003-01-29 <johan AT balder>
11750 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
11752 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11754 * as/mcs51/aslink.h: Added options --xram-size and --code-size
11755 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
11756 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
11757 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
11758 * src/SDCCglobl.h: Added options --xram-size and --code-size
11759 * src/SDCCmain.c: Added options --xram-size and --code-size
11761 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
11763 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
11764 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
11766 2003-01-27 <johan AT balder>
11768 * src/SDCC.y: fixed bug #613764
11770 2003-01-26 <johan AT balder>
11772 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
11773 * src/SDCCsymt.h: fixed bug #673374
11774 * src/SDCCglue.c: fixed bug #661910
11775 * src/SDCCast.c: fixed bug #458099 and 673374
11777 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
11779 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
11780 * as/mcs51/strcmpi.h: added
11781 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
11782 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
11783 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
11784 * as/mcs51/assym.c: strcmpi -> as_strcmpi
11785 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
11786 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
11787 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
11788 * as/mcs51/Makefile.aslink: new module strcmpi
11789 * as/mcs51/Makefile.asx8051: new module strcmpi
11790 * as/mcs51/Makefil.bcc: new module strcmpi
11791 * as/mcs51/Makefile.in: new module strcmpi
11792 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
11794 2003-01-26 <johan AT balder>
11796 * src/SDCCglue.c: reverted back to 1.124
11797 * src/SDCCast.c: reverted back to 1.156
11798 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
11800 2003-01-25 <johan AT balder>
11802 * src/SDCCglue.c: A better fix for bug #661910
11803 * src/SDCCast.c: A better fix for bug #661910
11804 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
11806 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
11808 * src/Makefile.in: remove spawn.o
11809 * src/SDCCmain.c: remove spawn.h
11810 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
11811 * src/spawn.c: removed
11812 * src/spawn.h: removed
11813 * support/regression/ports/ds390/spec.mk: link with -r
11815 2003-01-24 <johan AT CP255758-A>
11817 * src/ds390/gen.c (aopOp): fixed bug #667458
11818 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
11819 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
11820 (createIvalCharPtr): an ival doesn't always have a storage class anymore
11822 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
11824 * src/mcs51/peeph.def: better assembler identation by Frieder
11825 * src/mcs51/gen.c: better assembler identation by Frieder
11827 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
11829 * as/z80/string.h: removed for gcc 3.2
11830 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
11831 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
11833 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11835 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
11836 * src/SDCCpeeph.c (replaceRule): fix bug #663503
11837 * support/regression/Makefile: separate temp files for ports
11838 * support/regression/generate-cases.py: separate temp files for ports
11839 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
11840 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
11842 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
11844 * moved tinitalk to device/examples/ds390
11846 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
11848 * as/mcs51/lkmem.c: rflag is for DS390
11849 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
11850 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
11851 (linkEdit): move mem- and map-files the same way as ihx-files
11852 * src/z80/main.c (_setDefaultOptions): removed --generic
11853 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
11854 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
11855 * src/pic/glue.c (picglue): --c1mode works again
11856 * src/pic16/glue.c (pic16glue): --c1mode works again
11857 * src/asm.c (printCLine): fix #660034
11859 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
11861 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
11862 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
11863 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
11864 * as/mcs51/lkmem (summary): better fix for sp problem
11865 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
11866 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
11867 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
11868 remove --stack-after-data
11870 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
11872 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
11873 * src/SDCCutil.c (join): ugly bug: missing '\0'
11874 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
11876 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11878 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
11880 * src/pic/main.c (_asmCmd): gpasm supports -o
11881 * src/z80/main.c: more general macros
11882 * device/lib/Makefile.in: remove intermediate files
11884 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
11886 * .version: Bumped version number to 2.3.3
11887 * src/SDCCBBlock.c: new option -o
11888 * src/SDCCglobl.h: new option -o
11889 * src/SDCCglue.c: new option -o
11890 * src/SDCCmain.c: new option -o
11891 * src/asm.c: new option -o
11892 * src/ds390/main.c: new option -o
11893 * src/pic/glue.c: new option -o
11894 * src/pic/pcode.c: new option -o
11895 * src/pic/ralloc.c: new option -o
11896 * src/pic16/glue.c: new option -o
11897 * src/pic16/pcode.c: new option -o
11898 * src/pic16/ralloc.c: new option -o
11899 * src/z80/main.c: new option -o
11900 * device/lib/Makefile.in: use -o
11901 * support/regression/ports/ds390/spec.mk: use -o
11902 * support/regression/ports/gbz80/spec.mk: use -o
11903 * support/regression/ports/mcs51/spec.mk: use -o
11904 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
11905 * support/regression/ports/z80/spec.mk: use -o
11906 * support/regression/ports/ucz80/spec.mk: use -o
11907 * support/regression/ports/xa51/spec.mk: use -o
11908 * support/regression/fwk/lib/timeout.c: fix usage string
11910 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
11911 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
11913 2003-01-07 <johan AT balder>
11915 * src/SDCCast.c (decorateType): fixed bug #600035
11917 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
11918 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
11919 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
11920 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
11921 * src/pic/pcode.c: outcommented unused variable to remove warnings
11922 * src/pic/ralloc.c: outcommented unused variable to remove warnings
11924 2003-01-06 <karl AT turbobit.com>
11925 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
11928 2003-01-06 <johan AT balder>
11930 * src/SDCCicode.c: fixed array add
11932 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
11933 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
11934 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
11936 2003-01-04 <johan AT balder>
11938 * src/SDCCval.c (getNelements): fixed the initialized array of structures
11940 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11941 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
11943 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
11944 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
11945 * support/regression/tests/bug-524697.c: fit mem usage into 8032
11947 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
11948 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
11950 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
11951 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
11953 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
11954 * src/mcs51/main.c: removed {bindir}{sep} from aslink
11956 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11958 * in /sdcc/as/mcs51/ changed these files in order to create an
11959 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
11960 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
11961 following files to include the previous two files: aslink.dsp,
11962 Makefile.aslink, Makefile.bcc, and Makefile.in.
11964 * Changed /sdcc/src/SDCCmain.c so it creates files with extension
11965 .adb instead of .cdb
11967 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11969 * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
11970 value from option --iram-size.
11972 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11974 * /sdcc/as/mcs51/lklist.c: added boundary check before using
11977 2002-09-18 <wiml AT hhhh.org>
11979 * SDCClrange.h: exposed setFromRange() and setToRange()
11980 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
11981 packRegsForAccUse() (bug 542397)
11982 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
11983 multiple times and emitting the fetch operations more than once
11984 added aopGetUsesAcc() function to allow binary operators to
11985 fetch their operands in the correct order; made genMinus() emit
11986 compact code for X = LITERAL - Y
11988 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11989 * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
11990 sprintf() in line 1267.
11992 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11993 * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
11996 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11997 Changes to aslink (All the changes are marked with 'JCF'):
11999 * /sdcc/as/mcs51/aslink.h: External definition of sflag and
12002 * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
12003 area BSEG. Also moves, if possible, the DATA area down into the internal
12004 ram so more space is available.
12006 * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
12009 * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
12010 not bytes. Function summary() which creates a memory usage summary
12011 file with extension .mem. Reports of overlaping stack and small stack
12012 size. If the space for the stack is less than 16 bytes aslink trows a
12015 * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
12016 the 8051. Option 'y' for memory summary output file.
12018 Changes to sdcc (All the changes are marked with 'JCF'):
12020 * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
12022 * /sdcc/src/SDCCglue.c: If a register bank is used, creates an
12023 overlaying area for it (uses RegBankUsed[4]).
12025 * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
12026 bank zero as used by default. By default aslink locates the stack
12027 (equivalent to --stack-after-data). Pass option 'y' to aslink for
12028 the creation of the .mem file. Delegates the allocation of data area
12029 to aslink (it is not longer 0x30 by default). If --stack-loc passes
12030 the begining of the stack area to aslink.
12032 * /sdcc/src/SDCCmem.c: If a register bank is used, marks it so
12033 glue() in SDCCglue.c creates an area for it.
12035 2002-09-03 Borut Razem <borut.razem AT siol.net>
12036 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
12037 sdcc/src/pic/glue.c:
12038 introduced atexit() handler for teporay files removal in case of
12039 errors, assertions, ...
12041 2002-08-29 Borut Razem <borut.razem AT siol.net>
12042 * sdcc/support/cpp2/auto-host_vc_in.h:
12043 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
12044 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
12045 Maybe there is a similar problem with BORLANDC? It should be checked!
12047 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
12048 corrected improper use of assert: the assignment to clr variable was done inside the assert.
12049 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
12050 was not executed, and the compiler (cl) launched a warning:
12051 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
12053 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
12054 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
12056 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
12057 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
12059 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
12060 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
12061 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
12062 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
12063 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
12064 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
12065 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
12066 - added Release configuration in VS projects
12067 - review of compiler an linker options
12068 - VC .exe files are generated in bin_vc directory, not to interfere
12069 with binaries generated from other projects (cygwin, mingw, bcc ...)
12071 * sdcc/src/yacc.dsp: added
12073 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
12074 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
12075 and insert the version number definitions from .version
12077 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
12079 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
12080 added - genarate auto-host.h using auto-host_vc_in.h as template
12083 removed from CVS, generated automatically
12085 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
12086 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
12088 2002-08-11 Borut Razem <borut.razem AT siol.net>
12089 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
12091 2002-08-10 Borut Razem <borut.razem AT siol.net>
12092 * src/SDCCmain.c (main):
12093 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
12094 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
12095 The consequence was that some temporary files were not removed.
12098 unification of code in functions tempfilename() and tempfile():
12099 function tempnam() is defined in Visual Studio 6.0 and .NET
12101 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
12103 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
12104 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
12105 - removed compiler command line option /WX: Treats all warnings as errors
12106 - update a list of source files, included into the project
12108 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
12109 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
12110 changed project type to Generic Project so that can be correcly converted to VS.NET project
12112 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
12114 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
12116 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
12118 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
12119 added return 0 statements after assert() to make compiler happy
12121 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
12122 added newline in the def file to keep MSC compiler satisfied
12124 * sdcc/src/z80/gen.c:
12125 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
12126 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
12127 - solved MSC error in function aopDump()
12129 * sdcc_vc.h: define PREFIX as "\\sdcc"
12131 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
12132 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
12134 2002-06-22 Scott Dattalo <scott AT dattalo.com>
12135 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
12136 - Rewrote the register banking algorithm.
12137 - Added pCode live-range analysis to registers (for now, only non-used and
12138 singly-used registers optimized away)
12140 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
12142 * 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.
12144 2002-05-10 Scott Dattalo <scott AT dattalo.com>
12145 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
12147 2002-04-22 Michael Hope <michaelh AT vroom>
12149 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
12151 * configure.in (DD_COPT): Added include support required for gbdk.
12153 * .version: Bumped version number just to increase it.
12155 * src/SDCCmain.c: Added -nostdinc to the default options.
12157 2002-04-15 Michael Hope <michaelh AT vroom>
12159 * device/lib/z80/printf.c (sprintf): Added.
12161 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
12163 * src/z80/peeph.def: Added transpose redundent load rule.
12165 * src/z80/main.c: Added force callee saves for jaune.
12167 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
12169 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
12171 2002-03-28 Johan Knol <johan AT balder>
12173 * src/SDCCval.c: fixed bug #532436
12175 2002-03-14 Scott Dattalo <scott AT dattalo.com>
12177 Added "char *Processor" field to the port structure.
12180 Added -p option. Allows port dependent processor to be specified.
12183 Initialized the new field char *Processor field to NULL in all ports
12186 Compiler generated registers for interrupt context saving
12187 were not getting allocated.
12189 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
12192 Fixed left shift. Will promote the left side of a left shift
12193 if a) left shifting more than size of operand or b) when assigned
12194 to something size > size of left side
12196 2002-03-14 Scott Dattalo <scott AT dattalo.com>
12198 tons of changes. Register allocation has been
12199 rewritten. Added customization for the various PICs. Flow
12200 analysis is restructured. ...
12202 * src/pic/device.h:
12205 * src/pic/device.c:
12206 Added. device.c is a PIC port hack to accomodate variations
12209 2002-03-13 Michael Hope <michaelh AT vroom>
12211 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
12213 2002-03-04 johanknol <johanknol AT manik>
12215 * /src/SDCCval.c: fixed
12217 const unsigned char arr[][2] = { { 0, 1 } };
12218 t18.c:1: error: Initializer element is not constant
12220 2002-03-04 bela <bela AT manik>
12222 * /device/include/mcs51reg.h:
12223 ds89c420 register definition update
12225 2002-03-03 <johan AT FRIJA>
12227 * support/Util/SDCCerr.c: did something, but don't no why anymore
12229 * support/regression/tests/bug-524691.c: made it a little less shy
12231 * src/SDCCast.c (decorateType): fixed bug #524697
12233 * src/SDCCast.c: made some lineno improvements
12235 * src/SDCCval.c (getNelements): changed warning to error
12237 * src/SDCCglue.c (printIvalArray): changed warning to error
12239 * src/SDCCicode.c: fixed a warning for mingw
12241 * src/SDCCast.c (decorateType): fixed the << promotion for ops
12243 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
12245 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
12247 * src/ds390/peeph.def:
12248 Added some more peephole rules
12250 * src/ds390/gen.c: Various fixes & enhancements
12252 * src/SDCClrange.c, src/SDCClrange.h:
12253 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
12255 * src/ds390/ralloc.c:
12256 various fixes & enhancements (ds390) specific
12258 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
12259 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
12262 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
12264 2002-03-02 <johan AT FRIJA>
12266 * src/SDCCast.c (decorateType): fixed bug #524708
12268 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
12270 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
12272 2002-03-01 Michael Hope <michaelh AT vroom>
12274 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
12276 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
12278 2002-03-01 <johan AT FRIJA>
12280 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
12282 * src/SDCCast.c (decorateType): fixed bug #524209
12284 * src/SDCCval.c (valNot): fixed bug #524195
12286 2002-02-26 <johan AT balder>
12288 * src/xa51/gen.c: fixed a warning
12290 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
12292 * src/SDCCast.c (decorateType): fixed bug #522534
12294 2002-02-23 <johan AT balder>
12296 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
12298 2002-02-22 <johan AT balder>
12300 * src/SDCCast.c: fixed bug #514865
12302 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
12304 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
12306 * sdcc/src/SDCCloop.c:
12307 Previous fix was not good. basic blocks that have "break" or "return" are
12308 not really partof a loop , but live ranges used in these blocks should
12309 be live thru the entire loop, so set partOfLoop but don't add them to
12312 2002-02-21 <johan AT FRIJA>
12314 * src/SDCCcse.c: fixed bug #514308
12316 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
12319 Fixed BUG #519583. If a conditional block ended in a return/break
12320 statement inside a loop, it was not being considered part of the loop.
12322 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
12324 2002-02-10 Karl Bongers <karl AT turbobit.com>
12327 Fixed up SDCDB debugger somewhat. Updated debugger/README
12328 with lots of comments and notes.
12330 * device/examples/test2.c:
12331 Fix bug, "red" variable not being initialized(compiler complained).
12333 * device/examples/Makefile, examples/test3.c:
12334 Add Makefile in device/examples folder, compiles test3.c
12335 for use as a multiple module SDCDB test case.
12337 * sim/ucsim/cmd.src/cmdset.cc:
12338 Took out debug printfs in ucsim "next" command.
12340 * sim/ucsim/xa.src:
12341 Karl and Johan start ucsim XA support. Most dissassembly working,
12342 about 75% emulation done(plenty of work remaining).
12344 * sim/ucsim/z80.src:
12345 Add Z80 support to ucsim, add test-ucz80 regression test,
12346 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
12347 Notice z80 compiler fails on examples/test3.c/crc code.
12349 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
12351 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
12352 Added support for --parms-in-bank1
12354 * src/ds390/peeph.def:
12355 added a few more peephole optimzations
12357 * src/ds390/main.c:
12358 1) added __builtin_inp & __builtin_outp used to read in data of given length
12359 from a memory mapped port
12360 2) added __builtin_memcmp
12361 3) added __builtin_swapw swap bytes of a short
12363 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
12364 1) handle multiple send & receives from register bank1
12365 2) ralloc can now allocate DPTR1 to some liveRanges
12367 * src/SDCCsymt.c, src/SDCCsymt.h:
12368 changes to handle multiple sends & receives
12370 * src/SDCCptropt.h:
12371 added some pointer arithmetic optimization
12373 * src/SDCCptropt.c:
12374 added some pointer arithmetic optimizations but not stable yet so not
12375 called from anywhere (will get this working shortly)
12377 * src/SDCCopt.c: fixed for multiple sends & receives
12380 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
12381 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
12382 set preprocessor defines (depending on options)
12384 * src/SDCCicode.c, src/SDCCicode.h:
12385 changes made to handle multiple sends & receives
12388 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
12390 * src/SDCCcse.c, src/SDCCcse.h:
12391 added function findbackward def (to be used in upcoming optimization)
12393 * src/SDCCcflow.c, src/SDCCcflow.h:
12394 added function returnAtEnd - to determine if a basic block terminates with
12397 * src/SDCCast.c, src/SDCCast.h:
12398 added option parms-in-bank1
12400 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
12401 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
12402 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
12403 adjusted for --parms-in-bank1 option
12405 * device/include/string.h:
12406 donot redefine "reentrant" keyword
12408 * device/include/ds80c390.h: Added some more SFRs
12410 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
12412 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
12414 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
12416 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
12418 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
12420 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
12422 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
12424 * Added --xram-movc option
12426 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12428 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
12430 2002-01-11 Johan Knol
12432 * Added math lib of Jesus Calvino-Fraga
12434 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
12436 * src/SDCCmain.c (processFile): fix processing of ../../src.c
12437 * support/regression/Makefile: new target test-mcs51-stack-auto
12438 * support/regression/ports/mcs51-stack-auto/spec.mk: added
12440 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
12442 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
12444 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
12446 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
12448 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
12450 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
12452 * src/SDCCglue.h: add definition for printIvalChar()
12454 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
12456 * src/SDCCast.c: fix #498138 by Johan
12458 * src/SDCCglue.c: fix #498138 by Johan
12460 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
12462 * support/regression/Makefile: fix clean
12464 * support/regression/ports/ds390/support.c: fix transmission of last character
12466 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
12468 * /sdcc/src/ds390/gen.c:
12469 a) improved computing address of stack variable
12470 b) took out some #if 0 code
12471 c) improved parmBytes adjustment
12472 d) improved genPlusIncr & genMinusIncr
12473 e) genCmp could generate bad code (when left assigned to DPTR)
12474 f) Fixed bug in hasInc
12476 * /sdcc/src/ds390/ralloc.c:
12477 a) packRegsForSupport could mess up live information (Fixed)
12478 b) packRegsDPTRuse could be incorrect for left & right shift
12480 * /sdcc/src/mcs51/ralloc.c:
12481 packRegsForSupport could mess up the live information (Fixed)
12483 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
12485 * /sdcc/src/SDCCast.c:
12486 can reverse a loop even if function call is present as long
12487 as the loop control variable is local & is not passed as parameter
12489 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
12491 * /sdcc/ChangeLog: *** empty log message ***
12493 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
12494 More builtin function additions for TININative
12496 * /sdcc/src/ds390/ralloc.c:
12497 Had broken the regression testsuite
12499 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
12501 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
12502 Added funcattr hasStackParms will be set for reentrant functions when there
12503 are paramteres on the stack, this helps in minimizing frame pointer generation
12504 typeFromStr can handle function pointers now
12506 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
12507 *** empty log message ***
12509 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
12511 * /src/ds390/gen.c, /src/ds390/main.c:
12512 More builtin function additions for TININative
12514 * /src/ds390/ralloc.c:
12515 Had broken the regression testsuite
12517 * /src/SDCCast.c: Fixed a bug in dumptree
12519 * /src/SDCCsymt.c, /src/SDCCsymt.h:
12520 Added funcattr hasStackParms will be set for reentrant functions when there
12521 are paramteres on the stack, this helps in minimizing frame pointer generation
12522 typeFromStr can handle function pointers now
12524 * /doc/builtins.txt, /doc/TININative.txt:
12525 *** empty log message ***
12528 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
12530 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
12531 ALPHA version for -mTININative
12533 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
12534 updated to reflect changes in the port structure
12537 added function do_assemble (similar to do_link) if non-null this function
12538 will be called to do assembly (-mTININative) requires a multi command
12540 added function genAssemblerEnd will be called to generate assembler Epilogue
12543 added _JavaNative to debug info printing
12545 * /src/SDCCmain.c: added option --tini-libid
12546 added port->do_assemble function (-mTININative) has a multi command assemble
12548 * /src/SDCCglue.c: Disabled "constExpr" check
12549 added port->genAssemblerEnd function
12551 * /src/SDCCglobl.h: Added option --tini-libid value
12554 tookout optimizeCompare from the header (has no external references)
12556 * /src/SDCCast.c: made one more function "static"
12558 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
12560 * src/z80/mappings.i: Added z80asm support.
12562 * src/z80/main.c: Added z80asm support on --asm=z80asm
12564 * src/z80/gen.c: Fixed asm portability issues.
12566 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
12568 * src/SDCCglue.c (printExterns): Added global/extern split.
12570 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
12572 * support/regression/Makefile: added test for mcs51 model large
12574 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
12576 * support/regression/ports/gbz80/spec.mk: added -mgbz80
12578 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
12580 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
12582 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
12584 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
12586 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
12588 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
12590 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
12592 * support/regression/tests/simplefloat.c: Port to mcs51.
12594 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
12595 * support/regression/tests/bug-485362.c: Added.
12597 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
12599 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
12601 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
12603 * src/z80/gen.c (aopDump): Added a dump function.
12605 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
12606 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
12608 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
12610 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
12612 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
12614 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
12616 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
12618 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
12620 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
12622 * support/regression/ports/ds390/support.c: Use tinibios.
12624 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
12626 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
12628 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
12629 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
12631 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
12633 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
12635 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
12637 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
12639 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
12640 (packRegsForIYUse): Created and optimised.
12642 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
12644 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
12645 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
12647 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
12649 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
12651 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
12653 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
12655 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
12657 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
12659 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
12661 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
12663 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
12665 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
12667 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
12669 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
12670 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
12671 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
12673 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
12675 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
12676 (genNotFloat): Added.
12677 (genUminusFloat): Added.
12679 * device/lib/z80/Makefile: Added floating pt stubs.
12681 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
12683 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
12685 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
12687 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
12689 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
12691 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
12693 * sdcc/support/regression/Makefile: Add port ds390.
12695 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
12697 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
12699 * sdcc/support/regression/ports/ds390/spec.mk: Added.
12701 * sdcc/support/regression/ports/ds390/support.c: Added.
12703 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
12705 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
12707 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
12709 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
12711 * device/include/malloc.h: Added z80 and gbz80 support.
12713 * device/lib/gbz80/heap.s: Added.
12715 * device/lib/z80/heap.s: Added.
12717 * device/lib/malloc.c: Added z80 and gbz80 support.
12719 * support/regression/tests/malloc.c (testMalloc): Added.
12721 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
12723 * support/regression/tests/bug-478094.c: Added.
12725 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
12727 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
12729 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
12731 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
12733 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
12735 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
12737 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
12739 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
12741 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
12743 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
12745 * support/regression/tests/bug-477927.c: Added.
12747 * src/z80/peeph.def: Added minor rules.
12749 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
12751 * src/z80/peeph.def: Added jump optimisation modification.
12753 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
12755 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
12757 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
12759 * support/regression/tests/funptrs.c: Added.
12761 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
12763 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
12765 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
12767 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
12769 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
12771 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
12772 (movLeft2ResultLong): Created.
12774 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
12775 (joinPushes): Added. Joins two char pushes into a word push.
12777 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
12779 * support/cpp2/Makefile.in (install): Added creation of dest dir.
12781 * support/makebin/Makefile (install): Added creation of dest dir.
12783 2001-10-24 Karl Bongers <karl AT turbobit.com>
12785 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
12787 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
12789 * src/z80/ralloc.c: Turned off faulty pack for one use.
12791 * src/z80/peeph-gbz80.def: Removed redundent restart options.
12793 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
12795 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
12797 * support/regression/Makefile: Improved clean
12799 * support/regression/ports/gbz80/spec.mk: Added clean
12801 * support/regression/ports/host/spec.mk: Added clean
12803 * support/regression/ports/z80/spec.mk: Added clean
12805 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
12807 * support/regression/ports/mcs51/timeout.c: little improvements
12809 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
12811 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
12813 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
12815 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
12817 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
12819 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
12821 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
12823 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
12824 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
12826 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
12828 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
12830 * src/mcs51/main.c (_linkCmd): Added bin path to command.
12832 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
12834 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
12836 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
12838 * support/regression/tests/longor.c: Added.
12840 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
12842 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
12844 * as/mcs51/aslink.h: define PATH_MAX
12846 * as/mcs51/asm.h: define PATH_MAX
12848 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
12850 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
12852 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
12854 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
12856 * src/SDCCglobl.h: define PATH_MAX
12858 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
12860 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
12862 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
12864 * src/z80/gen.c (gencjneshort): Fixed
12866 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
12868 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
12870 * support/regression/tests/bug-469671.c: Added.
12872 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
12874 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
12876 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
12878 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
12880 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
12882 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
12884 * src/device/lib/_mulint.c : removed hint: nooverlay bug
12886 * src/device/lib/_mullong.c : removed hint: nooverlay bug
12888 * src/device/lib/_divuint.c : removed hint: nooverlay bug
12890 * src/device/lib/_divulong.c: removed hint: nooverlay bug
12892 * src/device/lib/_moduint.c : removed hint: nooverlay bug
12894 * src/device/lib/_modulong.c: removed hint: nooverlay bug
12896 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
12898 * 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.
12900 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
12902 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
12904 2001-10-07 <johan AT FRIJA>
12906 * device/lib/gets.c (gets): fixed the return value.
12908 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
12909 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
12911 * 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.
12913 * 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.
12915 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
12917 * src/pic/gen.c: Removed Safe_strdup.
12919 * configure.in: Added option to enable libgc support.
12921 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
12922 (bitVectUnion): Optimised.
12923 (bitVectIntersect): Optimised.
12924 (bitVectBitsInCommon): Optimised.
12925 (bitVectCplAnd): Optimised.
12927 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
12929 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12931 * src/SDCCmain.c: distinguish between assembler debug and plain options
12933 * src/avr/main.c: remove standard assembler options
12935 * src/ds390/main.c: remove standard assembler options
12937 * src/mcs51/main.c: remove standard assembler options
12939 * src/port.h: removed "PENDING" comment
12941 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12943 * src/device/lib/_mulint.c : new, with assember functions
12945 * src/device/lib/_mullong.c : new, with assember functions
12947 * src/device/lib/_divuint.c : with assember functions
12949 * src/device/lib/_divsint.c : with assember functions
12951 * src/device/lib/_divulong.c: with assember functions
12953 * src/device/lib/_divslong.c: with assember functions
12955 * src/device/lib/_moduint.c : with assember functions
12957 * src/device/lib/_modsint.c : with assember functions
12959 * src/device/lib/_modulong.c: with assember functions
12961 * src/device/lib/_modslong.c: with assember functions
12963 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
12965 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
12967 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
12968 replaced _mululong.c and _mulslong.c by _mullong.c
12970 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
12972 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
12974 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12976 * src/SDCCglue.c: test, if win32api is available for MINGW
12978 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
12980 * src/SDCCsymt.c: no more _modifier in printTypeChain()
12981 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
12982 * support/regression/ports/gbz80/spec.mk: removed GENERIC
12983 * support/regression/ports/host/spec.mk: removed GENERIC
12984 * support/regression/ports/mcs51/spec.mk: removed GENERIC
12985 * support/regression/ports/z80/spec.mk: removed GENERIC
12987 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
12989 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
12991 * support/regression/tests/bug-467035.c: Created.
12993 2001-10-01 <johan AT FRIJA>
12995 * src/SDCC.y: fixed bug #466586 part 1
12997 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
12999 * SDCCicode.c: z80 has no generic pointers
13000 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
13002 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
13004 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
13006 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
13008 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
13010 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
13012 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
13014 * configure.in: Fixed up so that ucsim is only configured once.
13016 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
13018 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
13019 (getPathDifference): As above.
13021 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
13023 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
13025 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
13026 * .version: Updated to 2.3.1
13028 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
13029 Added copyright header.
13031 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
13032 (assemble): Added support for macro based assembler commands.
13033 (linkEdit): Added support for macro based linker commands.
13034 (preProcess): Changed the pre-processor to use macros.
13035 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
13036 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
13038 * device/lib/z80/crt0.s: Added module name for debugging.
13040 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
13042 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
13044 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
13046 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
13048 * src/Makefile.in: Added SDCCmacro and SDCCutil
13050 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
13052 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
13054 2001-09-16 <johan AT FRIJA>
13056 * 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.
13058 2001-09-15 <johan AT FRIJA>
13060 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
13061 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
13063 2001-09-11 <johan AT FRIJA>
13065 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
13067 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
13069 * support/regression/tests/bug-460444.c: Added test case.
13071 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
13072 (genCast): Added justification for all of the asserts.
13074 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
13076 * support/regression/support.c: _xdata replaced by xdata
13078 * support/regression/spec.mk: removed _generic
13080 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
13082 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
13084 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
13085 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
13087 * src/z80/peeph.def: Added a rule to optimise shift then compare.
13089 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
13091 * support/regression/tests/bug-460010.c: Added test case.
13093 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
13095 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
13097 * support/regression/Makefile: inter-port-clean adjusted for mcs51
13099 * support/regression/testfwk.c: removed workaround for bug #436344
13101 * support/regression/tests/bp.c: use less memory with mcs51
13103 * support/regression/tests/bug-441448.c: use less memory
13105 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
13107 * support/regression/collate-results.py: typo
13109 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
13111 * support/regression/tests/fetchoverlap.c: Added new test case.
13113 * support/regression/tests/bp.c: Added new test case.
13115 * support/regression/tests/bug-448984.c: Added new test case.
13117 * support/regression/tests/pow2shifts.c: Added new test case.
13119 * src/z80/gen.c: Turned off the noise it normally generates for the release.
13120 (genlshTwo): Fixed right shift for count > 8.
13122 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
13124 2001-09-08 <johan AT FRIJA>
13126 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
13128 2001-09-07 <johan AT FRIJA>
13130 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
13132 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
13134 2001-09-06 <johan AT FRIJA>
13136 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
13137 * bernhard noted me at this: "() equals to (void)" (1.38)
13139 2001-09-05 <johan AT FRIJA>
13141 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
13143 2001-09-04 <johan AT FRIJA>
13145 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
13148 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
13150 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
13152 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
13154 * link/z80/aslink.h: Fixed path for PATH_MAX
13156 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
13158 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
13160 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
13162 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
13164 * 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.
13166 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
13168 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
13169 (genCmp): Fixed up genCmp for the GB with longs.
13171 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
13173 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
13175 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
13177 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
13179 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
13181 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
13183 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
13185 * 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.
13187 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
13189 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
13191 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
13193 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
13195 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
13197 * sim/ucsim/configure: little improvement of Cygwin-detection
13198 * sim/ucsim/configure.in: little improvement of Cygwin-detection
13199 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
13200 * support/regression/tests/bug-221100.c: small changes for mcs51
13201 * support/regression/tests/bug-221168.c: small changes for mcs51
13202 * support/regression/tests/bug-227710.c: small changes for mcs51
13203 * support/regression/tests/staticinit.c: small changes for mcs51
13204 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
13205 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
13206 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601