1 2008-12-26 Philipp Klaus Krause <pkk AT spth.de>
3 * src/z80/peeph-z80.def: fixed a bug in peephole 0zf
4 * src/z80/peep.c: improved checks for unused data
6 src/z80/main.c: Implemented RFE #1899189
8 2008-12-25 Borut Razem <borut.razem AT siol.net>
10 * support/regression/Makefile.in:
11 add -I$(INC_DIR) to SDCCFLAGS only if INC_DIR is defined
13 2008-12-25 Philipp Klaus Krause <pkk AT spth.de>
15 * src/z80/peeph-z80.def: minor peephole improvements
17 2008-12-21 Borut Razem <borut.razem AT siol.net>
19 * support/librarian/sdcclib.c: fixed build failure on Mac OS X
20 due to redefinition of symbol __assert
21 sdcclib.c:53:1:warning: "__assert" redefined
22 /Xcode2.5/SDKs/MacOSX10.4u.sdk/usr/include/assert.h:80:1:
23 warning: this is the location of the previous definition
25 2008-12-20 Raphael Neider <rneider AT web.de>
27 * debugger/mcs51/break.c, debugger/mcs51/cmd.c,
28 debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
29 support/cpp/libcpp/macro.c: fix format string errors
31 * sim/ucsim/s51.src/timer2.cc: add clarifying parens
33 * src/pic/device.c: partial rewrite using strtok,
34 quieten compiler warnings, adopt SDCC coding style
36 * as/link/hc08/lkelf.c, as/link/lkaomf51.c, as/link/lklibr.c,
37 as/link/z80/lkgb.c, as/z80/asout.c, debugger/mcs51/cmd.c,
38 sim/ucsim/utils.cc, src/SDCCasm.c, support/Util/dbuf_string.c,
39 support/cpp/c-ppoutput.c, support/cpp/libcpp/lex.c,
40 support/librarian/sdcclib.c, support/makebin/makebin.c:
41 quieten most compiler warnings
43 * sim/ucsim/avr.src/arith_inst.cc: quieten compiler warnings,
44 probably fix operator precedence bug
46 * doc/clean.mk: quieten rm if no .lyx is present
48 2008-12-19 Borut Razem <borut.razem AT siol.net>
50 * doc/sdccman.lyx, doc/random-notes.txt, doc/avr/avr_design.txt,
51 doc/TININative.txt, doc/macro-sys-design.txt, doc/libdoc.txt,
52 doc/README.txt, doc/test_suite_spec.lyx:
53 applied patch 2446381: Dcoumentation spelling correcitons
54 thanks to Steven Borley
56 2008-12-16 Raphael Neider <rneider AT web.de>
58 * device/include/pic/pic12f629.h,
59 device/include/pic/pic12f675.h,
60 device/lib/pic/libdev/pic12f629.c,
61 device/lib/pic/libdev/pic12f675.c: consolidated, added TRISIO bits
63 2008-12-14 Borut Razem <borut.razem AT siol.net>
65 * doc/sdccman.lyx, cdbfileformat.lyx, test_suite_spec.lyx:
66 converted to LyX 1.5.7 (\lyxformat 276) format
68 2008-12-07 Borut Razem <borut.razem AT siol.net>
70 * support/regression/tests/bitfields.c:
71 added test case for bug #2366757
73 2008-12-07 Raphael Neider <rneider AT web.de>
75 * src/pic16/glue.c (pic16_printIvalBitFields): prevent
76 NULL pointer dereference, closes #2366757
78 2008-11-25 Raphael Neider <rneider AT web.de>
80 * device/include/pic16/pic16devices.txt,
81 sdcc/src/pic16/device.c,
82 sdcc/src/pic16/device.h: implicitly disable XINST
83 whenever CONFIG4L is set via an additional optional
84 argument to the configword directive in pic16devices.txt
86 2008-11-24 Raphael Neider <rneider AT web.de>
88 * device/lib/pic16/configure.ac,
89 device/lib/pic16/Makefile.common: fixed quoting issues
91 * device/lib/pic16/configure,
92 device/lib/pic16/debug/Makefile.in,
93 device/lib/pic16/libc/Makefile.in,
94 device/lib/pic16/libdev/Makefile.in,
95 device/lib/pic16/libio/Makefile.in,
96 device/lib/pic16/libm/Makefile.in,
97 device/lib/pic16/libsdcc/Makefile.in,
98 device/lib/pic16/Makefile.in,
99 device/lib/pic16/startup/Makefile.in: regenerated
101 * src/pic16/main.c (_pic16_finaliseOptions): revert to
104 2008-11-24 Raphael Neider <rneider AT web.de>
106 * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
107 argument of --asm= or --link= to allow for
108 --asm="sh script --options", the user can double quote the
109 argument if needed: --asm="'c:/program files/gpasm' -q",
110 also fix some potential buffer overflows
112 2008-11-19 Borut Razem <borut.razem AT siol.net>
115 fixed 2314467: sdccman.lyx: fix "--" in command line parameters
116 thanks Mauro Giachero
118 2008-11-16 Borut Razem <borut.razem AT siol.net>
120 * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
121 * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
123 2008-11-15 Borut Razem <borut.razem AT siol.net>
125 * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
126 src/SDCCsymt.c, src/SDCCsymt.h:
127 fixed RFE #2291335 : Unnamed bit-field initialization
128 * support/regression/tests/bitfields.c:
129 added test case for RFE #2291335
130 * support/regression/tests/bug-1981238.c:
131 don't initialize unnamed bit-fields
133 2008-11-11 Raphael Neider <rneider AT web.de>
135 * device/include/pic16/pic18f25j10.h,
136 device/include/pic16/pic18f45j10.h: remove useless boilerplate
138 * device/include/pic16/adc.h,
139 device/lib/pic16/libio/adc/adcbusy.c,
140 device/lib/pic16/libio/adc/adcclose.c,
141 device/lib/pic16/libio/adc/adcconv.c,
142 device/lib/pic16/libio/adc/adcopen.c,
143 device/lib/pic16/libio/adc/adcread.c,
144 device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
145 and fixed ADC routines to work for more target devices,
146 incorporates patch #2036130 by Nick Materer
148 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
150 * device/include/ctype.h,
151 * device/include/ds400rom.h,
152 * device/include/ds80c390.h,
153 * device/include/float.h,
154 * device/include/math.h,
155 * device/include/serial.h,
156 * device/include/stdbool.h,
157 * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
159 * device/include/mcs51/C8051F336.h,
160 * device/include/mcs51/C8051T600.h,
161 * device/include/mcs51/C8051T610.h,
162 * device/include/mcs51/C8051T630.h: new, added, patch 2183334
163 (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
165 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
167 * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
169 2008-11-10 Raphael Neider <rneider AT web.de>
171 * device/lib/pic16/libdev/mkmk.sh: obey pics.all
172 * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
173 .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
174 (patch by Nick Materer, #2253980)
176 * device/lib/pic16/libio/adc.ignore,
177 device/lib/pic16/libio/i2c.ignore,
178 device/lib/pic16/libio/usart.ignore,
179 device/lib/pic16/pics.all: updated to build more device libs
181 * device/lib/pic16/libdev/Makefile.am,
182 device/lib/pic16/libdev/Makefile.in,
183 device/lib/pic16/libio/Makefile.am,
184 device/lib/pic16/libio/Makefile.in: regenerated
186 * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
187 names per memory location, applied SDCC style to more functions
189 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
191 * device/include/mcs51/p89lpc933_4.h: new NXP header file
192 * device/include/mcs51/p89lpc935_6.h: new NXP header file
193 * device/include/mcs51/p89v66x.h: minor changes
194 (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
196 2008-11-09 Raphael Neider <rneider AT web.de>
198 * device/include/pic/pic14devices.txt: fixed memory description for
199 12f629 and 12f675, closes #2236240
201 2008-11-06 Borut Razem <borut.razem AT siol.net>
203 * src/SDCCmain.c: #fixed bug 2224960: sdcc -MM no working correctly
204 pass system include paths with -isystem to sdcpp
205 * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
206 functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
208 2008-11-02 Raphael Neider <rneider AT web.de>
210 * doc/sdccman.lyx: updated the sections on the library build process
211 and on how to add support for new devices, and documented known
212 problems with the extended instruction set including a workaround
214 2008-11-01 Raphael Neider <rneider AT web.de>
216 * device/include/pic16/adc.h,
217 device/include/pic16/pic16devices.txt,
218 device/include/pic16/pic18f2410.h,
219 device/include/pic16/pic18f2510.h,
220 device/include/pic16/pic18f2515.h,
221 device/include/pic16/pic18f2610.h,
222 device/include/pic16/pic18f4410.h,
223 device/include/pic16/pic18f4510.h,
224 device/include/pic16/pic18f4515.h,
225 device/include/pic16/pic18f4610.h,
226 device/include/pic16/pic18fregs.h,
227 device/lib/pic16/libdev/Makefile.am,
228 device/lib/pic16/libdev/Makefile.in,
229 device/lib/pic16/libdev/pic18f2410.c,
230 device/lib/pic16/libdev/pic18f2510.c,
231 device/lib/pic16/libdev/pic18f2515.c,
232 device/lib/pic16/libdev/pic18f2610.c,
233 device/lib/pic16/libdev/pic18f4410.c,
234 device/lib/pic16/libdev/pic18f4510.c,
235 device/lib/pic16/libdev/pic18f4515.c,
236 device/lib/pic16/libdev/pic18f4610.c,
237 device/lib/pic16/libio/Makefile.am,
238 device/lib/pic16/libio/Makefile.in,
239 device/lib/pic16/pics.all: added support for 18f[24][456]10
240 and 18f[24]515 devices
241 * doc/sdccman.lyx: updated list of supported PIC16 devices
243 * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
244 src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
245 src/xa51/gen.c: avoid compiler warnings
246 * support/scripts/inc2h-pic16.pl: removed trailing whitespace
248 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
250 * device/include/mcs51/p89v66x.h: NXP header file
251 * device/include/mcs51/p89c66x.h: fixed an SBIT definition
252 (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
254 2008-10-14 Raphael Neider <rneider AT web.de>
256 * device/lib/pic16/libdev/Makefile.am,
257 device/lib/pic16/libio/Makefile.am: enable building libraries for
258 18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
259 18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
260 * device/lib/pic16/libdev/Makefile.in,
261 device/lib/pic16/libio/Makefile.in: regenerated
263 2008-10-14 Raphael Neider <rneider AT web.de>
265 * device/include/pic16/pic18f2450.h,
266 device/include/pic16/pic18f4450.h,
267 device/lib/pic16/libdev/pic18f2450.c,
268 device/lib/pic16/libdev/pic18f4450.c,
269 device/include/pic16/adc.h,
270 device/include/pic16/pic16devices.txt,
271 device/include/pic16/pic18fregs.h,
272 device/lib/pic16/libdev/Makefile.am,
273 device/lib/pic16/libdev/Makefile.in,
274 device/lib/pic16/libio/Makefile.am,
275 device/lib/pic16/libio/Makefile.in,
276 device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
278 * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
279 stack to a fixed location, relax it to automatically work with all
280 but the smallest devices (256 byte RAM devices need #pragma stack)
282 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
284 * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
285 * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
286 * device/lib/_strcspn.c: fixed bug 2140931
288 2008-10-06 Raphael Neider <rneider AT web.de>
290 * device/include/pic16/stdio.h,
291 device/lib/pic16/libc/stdio/putchar.c: putchar should not be
292 declared __naked for convenience, named all arguments
293 * device/lib/pic16/libc/stdio/strmgpsim.c,
294 device/lib/pic16/libc/stdio/strmmssp.c,
295 device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
297 * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
298 empty __naked functions,
299 * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
300 corner cases (unlink first/last pCode in list), reuse more code
302 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
304 * src/ds390/main.c (_ds390_genInitStartup): added
305 * src/SDCCpeeph.c (getPatternVar): new, added,
306 (labelInRange): fixed bug 2115959
307 * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
308 * src/SDCCicode.h: added newiTempOperand
309 * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
310 added optimizations for 0/x and x/-1, see also patch 2142900
311 * support/regression/tests/onebyte.c (testMul): added test cases
313 2008-09-20 Borut Razem <borut.razem AT siol.net>
316 definition of absolute address symbols without initial value,
317 fixed SDCC crash "do not know how to intialize symbol"
319 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
321 * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
322 * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
323 __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
324 * device/lib/z80/stubs.s: added stubs for above functions
325 * src/SDCCopt.c (convilong),
326 * src/SDCCsymt.c (initCSupport): fixed bug 1900961
327 * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
328 * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
329 * support/regression/tests/onebyte.c: enabled all tests for z80
331 2008-09-15 Borut Razem <borut.razem AT siol.net>
333 * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
334 device/lib/pic16/libc/stdio/printf.c,
335 device/lib/pic16/libc/stdio/strmusart.c,
336 device/lib/pic16/libc/stdio/printf_tiny.c,
337 device/lib/pic16/libc/stdio/sprintf.c,
338 device/lib/pic16/libc/stdio/strmgpsim.c,
339 device/lib/pic16/libc/stdio/putchar.c,
340 device/lib/pic16/libc/stdio/fprintf.c,
341 device/lib/pic16/libc/stdio/strmmssp.c,
342 device/device/lib/pic16/libc/stdio/vprintf.c,
343 device/lib/pic16/libc/stdio/printf_small.c,
344 device/lib/pic16/libc/stdio/vsprintf.c,
345 device/lib/pic16/libc/stdio/strmputchar.c,
346 device/lib/pic16/libc/Makefile.am,
347 device/lib/pic16/libc/Makefile.in:
348 *printf now returns int, puchar.c moved from stdlib to stdio,
349 *printf format parameter type changed from char * to const char *,
350 added GNU link excetion text to library source files,
351 applyed GNU coding style, removed useless svn ids,
352 added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
353 binary specifier: "%b", "%hb" and "%lb"
354 * device/lib/pic16/libc/stdio/vfprintf.c:
355 applied patch #2044424: PIC16: vfprintf
356 thanks Mauro Giachero
357 * support/regression/tests/bug1057979.c:
358 removed old pic16 sprintf specifics
359 * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
360 * doc/sdccman.lyx: documented 'b' binary format specifier removal
362 2008-09-15 Raphael Neider <rneider AT web.de>
364 * src/pic16/device.c (pic16_dump_usection): force udata sections
365 into the addressable range (0..0xFFF), workaround for a gpsim
366 bug preventing simulation of regtest bug1750318
367 * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
368 (serialRegAssign): fixed regtest bug-971834,
369 (pic16_packRegisters): avoid null-pointer dereference
371 2008-09-14 Raphael Neider <rneider AT web.de>
373 * src/pic16/gen.c, src/pic16/ralloc.c: use
374 SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
375 * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
377 2008-09-12 Borut Razem <borut.razem AT siol.net>
379 * support/regression/fwk/testfwk.h:
380 define pdata as data for pic16 target
381 thanks Mauro Giachero
383 2008-09-11 Borut Razem <borut.razem AT siol.net>
385 * support/regression/tests/bug-221100.c, support/regression/shifts.c,
386 support/regression/absolute.c:
387 applied patch #2105615: Some PIC16 testcase fixlets
388 thanks Mauro Giachero
390 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
392 * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
393 * support/regression/tests/bug2094505.c: new, added
395 2008-09-07 Borut Razem <borut.razem AT siol.net>
397 * src/SDCCglue.c, src/SDCCast.c:
398 fixed throw of "excess elements" warning for char arrays
399 * support/regression/tests/nullstring.c:
400 disable warning about excess elements in array of chars initializer
402 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
404 * as/z80/aslist.c (lstsym): changed old K&R to ANSI
405 * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
406 * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
407 * support/regression/tests/bug2077267.c: new, added
409 2008-09-05 Raphael Neider <rneider AT web.de>
411 * configure.in, Makefile.common.in: add support for ccache,
412 remove spurious $VERSION output, detect doc-tools even without
413 --enable-doc to facilitate later manual doc-builds, minor cleanup
414 * configure: regenerated
416 * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
417 avoid races in parallel VPATH builds
418 * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
419 * doc/sdccman.lyx: mention --without-ccache configure option
421 2008-09-01 Raphael Neider <rneider AT web.de>
423 * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
424 * (genConstPointerGet): fix reading bitfields from __code space
425 * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
426 bitfield initializers (fix regression test bug1856409.c)
427 * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
430 2008-08-31 Raphael Neider <rneider AT web.de>
432 * src/pic16/gen.c (genAssign): removed useless compiler output
433 * (genPointerGet,genPointerSet,genCast),
434 src/pic16/glue.c (pic16_printGPointerType):
435 also handle PPOINTERs just to avoid spurious asserts
436 * (pic16_printIvalType,pic16_printIvalBitFields):
437 generalized to arbitrary type/bitfield sizes, allows compilation of
438 regression test bug-1981238.c
439 * (pic16_printIvalChar): fix regression test structflexarray.c
440 * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
441 in initialized structs and fix #1843745
442 * (pic16_printIvalStruct): always output initializers for all fields,
443 even those not explicitly given, fixes zeropad.c regression test
444 * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
445 #2073635, #1567098, and #1485812)
446 * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
448 2008-08-31 Borut Razem <borut.razem AT siol.net>
450 * support/regression/tests/bug-895992.c,
451 support/regression/tests/onebyte.c:
452 enabled pic16 regression testing since the bugs
453 1511794: pic16: regression test bug-895992.c fails
454 1444425: onebyte.c regression tes fails on pic16
455 are fixed, probably by fixing
456 2048464: PIC16: fix genUminus - addresses not.c regression test
457 * src/SDCCsymt.c, src/SDCCglue.c,
458 support/regression/tests/bug-1981238.c:
459 applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
462 2008-08-30 Borut Razem <borut.razem AT siol.net>
464 * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
465 release version 4.3.2
467 2008-08-24 Raphael Neider <rneider AT web.de>
469 * device/lib/pic16/configure, device/lib/pic16/configure.ac:
470 always use the sdcc from the current build tree (ignore $CC from
471 the environment, fixes compile farm builds)
472 * device/lib/Makefile.in: rename .a into .lib for compatibility,
473 remove more build products from install directory
474 * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
475 * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
477 2008-08-24 Borut Razem <borut.razem AT siol.net>
479 * src/SDCC.y: applied patch
480 2050245: Fix # 1963382
482 1963382: Listing File - C file comment is incorrect
485 2008-08-23 Borut Razem <borut.razem AT siol.net>
487 * src/pic16/gen.c: applied patch
488 2048464: PIC16: fix genUminus - addresses not.c regression test
489 thanks Mauro Giachero
491 2008-08-22 Borut Razem <borut.razem AT siol.net>
493 * device/lib/pic16/configure, device/lib/pic16/configure.ac,
494 src/pic16/main.c: allow spaces in gpasm and gplink paths
496 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
499 * src/z80/peeph-z80.def: minor peephole improvement
501 2008-08-15 Raphael Neider <rneider AT web.de>
503 * src/z80/gen.c (_vemit2): suppress compiler warning
505 * src/pic/*.[ch]: make proper use of header files and avoid
506 ad-hoc extern declarations, mark module-local helpers 'static',
507 removed dead/replaced code, no functional changes
508 * src/pic16/pcode.c: disentangled from pic14 backend
510 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
512 * src/z80/gen.c: fixed #2051348
513 * support/regression/tests/bug-2051348.c: regression test for #2051348
515 2008-08-10 Raphael Neider <rneider AT web.de>
518 * Makefile.common.in: export PACKAGE for $docdir,
519 fixes #1957036, avoid some "underquoted definition" warnings
520 * configure: regenerated
522 2008-08-10 Raphael Neider <rneider AT web.de>
524 * device/lib/pic16/**: build pic16 library using autotools for
525 improved dependency tracking
527 * device/lib/Makefile.in,
529 * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
531 2008-08-10 Raphael Neider <rneider AT web.de>
533 * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
534 local variables if --nooverlay is given, workaround for #2023121
536 2008-08-08 Raphael Neider <rneider AT web.de>
538 * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
540 2008-08-08 Raphael Neider <rneider AT web.de>
542 * src/pic/pcoderegs.c,
544 * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
546 2008-08-07 Borut Razem <borut.razem AT siol.net>
548 * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
549 device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
550 device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
551 support/cpp/libcpp/lex.c, doc/sdccman.lyx:
552 applied modified patch 2038174: Add support for binary constants v2
553 thanks Mauro Giachero
554 * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
556 2008-08-04 Raphael Neider <rneider AT web.de>
559 * src/pic16/device.h,
561 * src/pic16/main.c: enable --optimize-goto by default
563 * device/lib/pic16/Makefile.common.in: suppress removed option
566 * src/pic16/genutils.c: avoid too long relative branches (#2031890)
568 2008-07-30 Borut Razem <borut.razem AT siol.net>
570 * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
571 applied patch 22032433: PIC16: fix constant strings,
572 thanks Mauro Giachero
574 2008-07-29 Borut Razem <borut.razem AT siol.net>
576 * src/pic16/gen.c: applied patches:
577 2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
578 2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
579 2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
580 thanks Mauro Giachero
582 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
584 * src/port.h: Fixed typo in comment
586 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
588 * src/z80/mappings.i: Implemented RFE #1919415
589 * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
590 #1880202, #1914434, prepared for RFE #1703943
592 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
595 * src/z80/peeph-z80.def,
596 * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
597 preparation for Z80 peephole improvements
599 2008-06-21 Raphael Neider <rneider AT web.de>
601 * device/include/pic16/pic18f66j60.h,
602 * device/include/pic16/pic18f66j65.h,
603 * device/include/pic16/pic18f67j60.h,
604 * device/include/pic16/pic18f86j60.h,
605 * device/include/pic16/pic18f86j65.h,
606 * device/include/pic16/pic18f87j60.h,
607 * device/include/pic16/pic18f96j60.h,
608 * device/include/pic16/pic18f96j65.h,
609 * device/include/pic16/pic18f97j60.h,
610 * device/lib/pic16/libdev/pic18f66j60.c,
611 * device/lib/pic16/libdev/pic18f66j65.c,
612 * device/lib/pic16/libdev/pic18f67j60.c,
613 * device/lib/pic16/libdev/pic18f86j60.c,
614 * device/lib/pic16/libdev/pic18f86j65.c,
615 * device/lib/pic16/libdev/pic18f87j60.c,
616 * device/lib/pic16/libdev/pic18f96j60.c,
617 * device/lib/pic16/libdev/pic18f96j65.c,
618 * device/lib/pic16/libdev/pic18f97j60.c,
619 * device/include/pic16/pic16devices.txt,
620 * device/include/pic16/pic18fregs.h,
621 * device/lib/pic16/pics.all: added new devices
623 * device/include/pic16/adc.h,
624 * device/lib/pic16/libio/adc/adcbusy.c,
625 * device/lib/pic16/libio/adc/adcopen.c,
626 * device/lib/pic16/libio/adc/adcsetch.c,
627 * device/lib/pic16/libio/i2c/i2copen.c,
628 * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
629 all changes from a patch by Anton Strobl
631 2008-06-12 Borut Razem <borut.razem AT siol.net>
633 * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
634 sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
635 sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
636 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
637 sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
638 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
639 sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
640 sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
641 fixed bug 1990586: s51 simulator, uc::disass() unimplemented
642 by applying the modified patch from Risto Huotari
644 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
647 * doc/sdccman.lyx: bumped sdcc version to 2.8.2
648 * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
649 * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
650 * support/regression/tests/bug1938300.c: new, added
652 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
654 * device/include/asm/ds390/features.h,
655 * device/include/asm/mcs51/features.h,
656 * device/include/mcs51/regc515c.h: inserted LGPL notice
658 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
660 * device/lib/gbz80/div.s,
661 * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
662 patch 1597883, Thanks Robert Ramey
664 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
666 * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
667 createIvalCharPtr, createIvalPtr, createIval),
669 * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
670 initializers for local auto variables
671 * support/regression/tests/zeropad.c: added testcase for auto initializers
673 2008-05-26 Raphael Neider <rneider AT web.de>
675 * device/lib/pic16/startup/crt0.c,
676 * device/lib/pic16/startup/crt0i.c,
677 * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
678 explicit, fixed curr_entry loop for >= 256 initializer records,
679 removed debug code (write to 0xf7e)
681 2008-05-25 Raphael Neider <rneider AT web.de>
683 * device/include/pic/pic16f627a.h,
684 * device/include/pic/pic16f628a.h,
685 * device/include/pic/pic16f648a.h: added missing ports
687 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
689 * device/include/float.h: added __INFINITY
690 * device/lib/_fsadd.c: handle overflows
691 * device/lib/_fsmul.c,
692 * device/lib/_fsdiv.c: use __INFINITY
693 * device/lib/_fseq.c,
694 * device/lib/_fsneq.c: handle -0.0
695 * sim/ucsim/s51.src/uc89c51r.cc,
696 * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
697 * sim/ucsim/sim.src/hwcl.h: */* confuses VC
698 * src/mcs51/gen.c (genSend): fixed bug with --xstack
699 * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
700 * support/regression/tests/snprintf.c: test bug with --xstack
702 2008-05-19 Philipp Klaus Krause <pkk AT spth.de>
704 * src/SDCCpeeph.c (callFuncByName):
705 Support nested parenthesis in peephole function arguments (#1967300)
707 2008-05-19 Raphael Neider <rneider AT web.de>
709 * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
710 fixed duplicate labels (#1911325)
712 2008-05-19 Raphael Neider <rneider AT web.de>
714 * src/regression/empty.c: suppress warning
715 * src/regression/pointer1.c: enabled index_by_pointer()
716 * src/regression/inline.c: now works for pic16 as well
718 * src/pic16/device.c: include dbuf declarations
719 * src/pic16/device.h: removed obsolete prototypes
721 * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
722 * src/pic16/glue.c: made purely local functions static,
723 (pic16_printGPointerType, pic16_printIvalCharPtr,
724 pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
725 generic pointers' tags (#1961866)
727 * src/pic16/pcode.c (assignValnums): optimize literal assignments
729 2008-05-19 Borut Razem <borut.razem AT siol.net>
731 * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
732 fixed typo, uninstall include/pic16/pic16devices.txt
734 2008-05-18 Borut Razem <borut.razem AT siol.net>
736 * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
737 the buffer is null terminated
738 * src/device/pic16.c:
739 applied modified patch 1965676: Patch for Win32 16 bit PIC
740 * sdcc_vc_in.h: defined YY_NO_UNISTD_H
742 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
744 * src/SDCC.lex (check_type),
745 * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
748 * as/z80/clean.mk: also clean *.dep
749 * device/lib/pic16/libsdcc/stack/Makefile,
750 * sim/ucsim/libtool: removed as they are rebuild by configure
751 * src/clean.mk: removed izt, so Makefile is not deleted for distclean
753 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
755 * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
756 fixupInline instead of createFunction to fix bug 1864577
757 (inlineFindMaxBlockno): removed, use global blockNo
758 * src/SDCCglobl.h: added blockNo
760 * src/z80/peep.h: modified properties
761 * support/regression/tests/bug1864577.c: new, added
763 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
766 * as/mcs51/asm.h: added org_cnt
767 * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
768 * as/mcs51/asout.c: changed old K&R to ANSI
769 * as/mcs51/Makefile.in: use common identifiers
775 * as/hc08/Makefile.bcc,
776 * as/hc08/Makefile.in: synchronized with as/mcs51/*
777 * sdcc_vc_in.h: added define __func__
778 * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
779 Thanks Ruud van Silfhout
780 * support/regression/tests/bug1717305.c: new, added
782 2008-05-05 Borut Razem <borut.razem AT siol.net>
784 * support/regression/Makefile.in,
785 support/regression/ports/ds390/spec.mk,
786 support/regression/ports/hc08/spec.mk,
787 support/regression/ports/mcs51-common/spec.mk,
788 support/regression/ports/pic14/spec.mk,
789 support/regression/ports/pic16/spec.mk,
790 support/regression/ports/ucz80/spec.mk,
791 support/regression/ports/z80/spec.mk:
792 added INC_DIR and LIBDIR paths
793 * src/ds390/gen.c: removed duplicated selicolon
795 2008-05-04 Borut Razem <borut.razem AT siol.net>
797 * support/regression/Makefile.in,
798 support/regression/fwk/lib/testfwk.c,
799 support/regression/ports/ds390/spec.mk,
800 support/regression/ports/hc08/spec.mk,
801 support/regression/ports/mcs51-common/spec.mk,
802 support/regression/ports/mcs51-large/spec.mk,
803 support/regression/ports/mcs51-medium/spec.mk,
804 support/regression/ports/mcs51-small/spec.mk,
805 support/regression/ports/mcs51-stack-auto/spec.mk,
806 support/regression/ports/mcs51-xstack-auto/spec.mk,
807 support/regression/ports/pic14/spec.mk,
808 support/regression/ports/pic16/spec.mk,
809 support/regression/ports/ucz80/spec.mk:
810 added possibility to define the sdcc binary directory SDCC_BIN_PATH
811 used to run regeression tests
813 2008-05-01 Raphael Neider <rneider AT web.de>
815 * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
816 supported devices and instructions to add new ones
818 2008-05-01 Raphael Neider <rneider AT web.de>
820 * device/include/pic16/adc.h,
821 device/lib/pic16/libio/adc/adcbusy.c,
822 device/lib/pic16/libio/adc/adcopen.c,
823 device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
824 18f2455 style ADC devices, based on patch #1776197
825 * device/lib/pic16/libio/adc/adcclose.c,
826 device/lib/pic16/libio/adc/adcconv.c,
827 device/lib/pic16/libio/adc/adcread.c: cosmetic changes
828 * device/include/pic16/{pic18f2331.h,pic18f2431.h},
829 device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
830 * device/include/pic16/pic18f4431.h,
831 device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
832 * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
834 2008-05-01 Raphael Neider <rneider AT web.de>
836 * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
837 moved xinst flag into pic16_options_t
838 * src/pic16/device.c (default_device, pic16_list_devices,
839 pic16_find_device): removed references to sfrrange
840 * src/pic16/gen.c (genFunction),
841 src/pic16/glue.c (pic16initialComments),
842 src/pic16/main.c (pic16_optionsTable),
843 src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
845 * device/include/pic16/pic16devices.txt: removed sfrrange lines
847 2008-04-29 Raphael Neider <rneider AT web.de>
849 * src/pic16/devices.inc,
850 device/include/pic16/pic16devices.txt: replaced compiled-in list
851 of devices with a variant parsed at runtime
852 * src/pic16/device.c: added support for parsing pic16devices.txt,
854 * src/pic16/device.h: removed (now) unused fields from PIC_device
855 * src/pic16/main.c: removed #pragma maxram,
856 (_pic16_initPaths): removed bogus generation of search paths,
857 setup the port proper only after the search paths (for
858 pic16devices.txt) are set up,
859 (_pic16_finaliseOptions): moved processor dependant code here
860 from _pic16_initPaths(), clean up
861 * src/pic16/ralloc.c (pic16_init_stack),
862 * src/pic16/ralloc.h,
863 * src/pic16/pcode.c: clean up
864 * device/include/Makefile.in,
865 support/scripts/sdcc.nsi: also install/package pic16devices.txt
866 * support/scripts/inc2h-pic16.pl: updated instructions
868 2008-04-29 Raphael Neider <rneider AT web.de>
870 * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
871 pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
872 device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
873 pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
874 added missing family members and 18f2480/2580/4480/4580 family
875 * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
876 * device/include/pic16/pic18f2525.h: use 18f4620.h
877 * device/include/pic16/pic18f6680.h: use 18f8680.h
878 * device/include/pic16/pic18fregs.h,
879 device/lib/pic16/pics.all,
880 src/pic16/devices.inc: add new devices
881 * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
882 * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
883 * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
884 * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
885 prevent attempting to build the libio for some new devices
887 2008-04-29 Raphael Neider <rneider AT web.de>
889 * debugger/mcs51/Makefile.in: fixed paths to sources
891 2008-04-25 Borut Razem <borut.razem AT siol.net>
893 * as/link/lklibr.c: moved from as/link/z80/lklibr.c
894 * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
895 * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
896 * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
897 as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
898 as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
899 as/link/z80/linkz80.dsp: lklibr.c moved
900 * doc/INSTALL.txt: binary archives in bz2 format
901 * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
903 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
905 * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
906 * support/regression/tests/bug1856409.c: new, added
908 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
911 * src/mcs51/peep.c: Use werror for error messages.
912 * src/SDCCicode.c (geniCodeConditional),
913 * src/SDCCsymt.c (structElemType): fixed bug 1839321
914 * src/z80/Makefile.bcc,
915 * src/z80/z80.dsp: added src/z80/peep.c/h
916 * support/regression/tests/bug1839321.c: new, added
918 2008-04-20 Raphael Neider <rneider AT web.de>
920 * device/include/pic16/pic18f2455.h: added bitfields for port C
922 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
924 * src/z80/peep.c: Use werror for error messages.
926 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
928 * src/z80/peep.h (declaration of notUsed()),
929 * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
931 * src/z80/z80.h (added dependency on peep.h),
932 * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
935 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
937 * src/SDCCpeeph.c (added support for notUsed()),
938 * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
940 * src/port.h (removed dependency on mcs51/peep.h, added declaration
941 for notUsed()): Implemented generic (that is not port-specific) part
944 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
946 * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
947 * device/lib/libsdcc.lib,
948 * device/lib/Makefile.in,
949 * support/regression/ports/mcs51-xstack-auto/spec.mk,
950 * device/lib/calloc.c: renamed to _calloc.c
951 * device/lib/free.c: renamed to _free.c
952 * device/lib/malloc.c: renamed to _malloc.c
953 * device/lib/realloc.c: renamed to _realloc.c
954 * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
955 genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
956 * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
957 genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
958 * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
959 ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
960 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
961 genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
963 * src/mcs51/gen.c: throughout cosmetic changes for syncing both
964 * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
965 * support/regression/tests/bug1509084.c: new, added
967 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
969 * device/include/mcs51/cc2510fx.h: added _XPAGE
970 * device/include/mcs51/compiler.h: cosmetic changes
972 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
974 * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
977 2008-03-31 Borut Razem <borut.razem AT siol.net>
979 * support/cpp2 renamed to support/cpp
980 * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
981 support/cpp2/libiberty/splay-tree.c,
982 support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
983 support/cpp2/libcpp/directives.c,
984 support/cpp2/libcpp/include/cpplib.h,
985 support/cpp2/libcpp/include/symtab.h,
986 support/cpp2/libcpp/include/line-map.h,
987 support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
988 support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
989 support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
990 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
991 support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
992 release version 4.3.0
993 * configure.in, configure, Makefile.in, Makefile.bcc:
994 adapted for moved cpp2
996 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
998 * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
999 thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
1001 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
1003 * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
1005 * support/regression/tests/bug1717943.c: new, added
1007 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1009 * src/z80/gen.c (assignResultValue): Reverted reversal of order of
1010 bytewise return value assignments introduced in last commit.
1012 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1014 * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
1015 genMult, genJumpTab):
1016 Use 16-bit instructions for addition in some additional cases,
1017 implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
1019 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
1021 * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
1022 Implemented RFE #1921450, changed some debug messages.
1024 2008-03-30 Borut Razem <borut.razem AT siol.net>
1026 * Small Device C Compiler 2.8.0 released
1027 * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
1028 * support/scripts/sdcc.nsi: added finish page; this version
1029 was used for 2.8.0 release
1030 * doc/knownbugs.html: removed; magically generated by the build
1031 process using gen_known_bugs.pl from now on
1033 2008-03-23 Borut Razem <borut.razem AT siol.net>
1035 * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
1036 and reverted it, since it was already fixed by Raphael ;-)
1037 * doc/knownbugs.html: updated for RC2
1039 2008-03-22 Raphael Neider <rneider AT web.de>
1041 * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
1044 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
1046 * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
1047 * support/regression/tests/bug1839277.c: added related testBug1839299
1049 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
1051 * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
1052 * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
1054 * src/mcs51/gen.c: throughout only output hex constants
1055 * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
1056 * support/regression/tests/bug1839277.c: new, added
1058 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
1060 * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
1061 compilation warning about nested comments.
1063 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
1065 * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
1066 * support/regression/tests/bug1921073.c: new, added
1068 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1070 * src/z80/SDCCpeeph.c.c (callFuncByName):
1071 Commented function parameters.
1073 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
1075 * src/z80/ralloc.c (packRegsForAccUse2):
1076 disabled a broken accumulator packing optimization (fixed #1292721).
1077 * support/regression/tests/bug-1292721: Regression test for #1292721.
1079 2008-03-16 Raphael Neider <rneider AT web.de>
1081 * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
1082 fixed code bloat regression using a variant of patch #1915618
1084 2008-03-16 Borut Razem <borut.razem AT siol.net>
1086 * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1087 icon, changed startup menu for release distribution, code cleaning,
1088 create url files instead links in startup menu
1090 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1092 * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1093 * support/regression/tests/bug1579949.c: new, added
1095 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1097 * device/lib/printf_fast.c: fixed bug 1255403
1099 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1101 * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1102 * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1104 2008-03-14 Borut Razem <borut.razem AT siol.net>
1106 * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1107 command line options
1108 * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1109 is correctly displayed
1110 * as/link/z80/lkmain.c: usage line commented out
1112 2008-03-13 Borut Razem <borut.razem AT siol.net>
1114 * doc/sdccman.lyx: corrected to be able to convert to PDF,
1115 updated the list pf supported pic14 devices
1117 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1119 * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1121 2008-03-12 Borut Razem <borut.razem AT siol.net>
1123 * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1124 fixed documentation request #1718191
1125 * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1126 * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1129 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1131 * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1132 * support/regression/tests/bug1505811.c: new, added
1134 2008-03-09 Raphael Neider <rneider AT web.de>
1136 * device/include/pic16/pic18f2620.h,
1137 * device/include/pic16/pic18f4620.h,
1138 * device/lib/pic16/libdev/pic18f2620.c,
1139 * device/lib/pic16/libdev/pic18f4525.c,
1140 * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1141 family to consistently use pic18f4620.[ch], fixes #1832562
1143 2008-03-09 Borut Razem <borut.razem AT siol.net>
1145 * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1146 changed sdcc version to 2.8.0
1147 * knownbugs.html: regenerated
1148 * support/scripts/gen_known_bugs.pl: added number of open bugs
1150 2008-03-09 Raphael Neider <rneider AT web.de>
1152 * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1153 (genOr): read volatile operand even if the result is known,
1155 (genOr,genXor): removed unused legacy code,
1156 (genDummyRead): use pic16_mov2w_volatile()
1158 2008-03-08 Borut Razem <borut.razem AT siol.net>
1160 * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1161 cons w. --model-large
1162 * support/regression/staticinit.c: added regression test for bug
1165 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1167 * src/ds390/gen.c (pushSide, genPcall),
1168 * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1169 * src/mcs51/gen.c: cosmetic changes
1170 * support/regression/fwk/include/testfwk.h: added macro reentrant
1171 * support/regression/tests/bug1908493.c: new, added
1173 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1175 * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1177 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1179 * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1180 * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1181 already set in ds390/main.c and mcs51/main.c
1183 2008-03-07 Raphael Neider <rneider AT web.de>
1185 * src/regression/init0.c: new test for initialized arrays of function
1187 * src/regression/Makefile: made a bit more flexible, added init0.c
1188 * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1189 pointers, closes #1427663
1191 2008-03-05 Borut Razem <borut.razem AT siol.net>
1193 * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1194 SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1196 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1198 * support/librarian/sdcclib.c:Added feature request 1908061:
1199 Synchronise sdcclib commands with ar.
1201 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1203 * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1204 and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1205 SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1206 * device/include/mcs51/compiler.h: removed umlauts, added double
1209 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1211 * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1212 * support/regression/tests/bug1536762.c: new, added
1214 * src/SDCCutil.h: added getBuildDate()
1215 * src/SDCCmain.c (printVersionInfo),
1216 * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1218 * src/*/ralloc.c: removed IS_OP_RUONLY macro
1219 * src/ds390/ralloc.c (packRegisters),
1220 * src/mcs51/ralloc.c (packRegisters),
1221 * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1223 * support/regression/tests/bug1618050.c: new, added
1224 * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1225 * support/regression/fwk/include/testfwk.h,
1226 * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1229 2008-03-04 Raphael Neider <rneider AT web.de>
1231 * src/pic/gen.c: removed unused prototypes, prevent internal errors
1232 on accessing OP_SYM_TYPE(op)
1233 * src/pic/gen.h: removed unused prototype of genMinusDec()
1234 * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1235 fix #1876953 (invalid subtraction code), removed unused code
1237 2008-03-03 Raphael Neider <rneider AT web.de>
1241 * src/pic/genarith.c,
1243 * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1244 AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1246 2008-03-03 Raphael Neider <rneider AT web.de>
1248 * src/pic/device.c (find_device): search user-specified paths first
1249 for pic14devices.txt, fixes #1900827
1251 2008-03-02 Borut Razem <borut.razem AT siol.net>
1253 * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1254 AddToPath and RemoveFromPath
1256 2008-03-01 Borut Razem <borut.razem AT siol.net>
1258 * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1259 work correctly, added debugging support if -DSDCC.DEBUG command line
1262 2008-02-28 Borut Razem <borut.razem AT siol.net>
1264 * doc/sdccman.lyx: cosmetic changes
1266 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1268 * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1269 * doc/sdccman.lyx: fixed unmeant removal of spaces
1271 2008-02-27 Borut Razem <borut.razem AT siol.net>
1273 * support/scripts/sdcc.nsi: corrected installation directory for
1274 current user installation mode
1275 * doc/README.txt: added Philipp Klaus Krause to the developers list
1277 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1279 * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1280 return ifx condition
1281 (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1282 genCodePointerGet, genGenPointerGet): cleanup aop before generating
1283 ifxJump to fix bug 1838000
1284 * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1285 * support/regression/tests/bug1838000.c: new, added
1286 * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1288 2008-02-26 Borut Razem <borut.razem AT siol.net>
1290 * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1292 * support/scripts/sdcc.nsi: added MULTIUSER page,
1293 NSIS upgraded to version 2.35
1295 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1297 * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1298 * support/regression/tests/bug1565152.c: new, added
1300 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1302 * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1303 * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1304 * support/regression/tests/bug1670148.c: new, added
1306 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1308 * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1310 2008-02-24 Borut Razem <borut.razem AT siol.net>
1312 * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1313 is ineffective for unsigned char parameter
1315 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1317 * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1318 * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1319 * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1320 * support/Util/MySystem.c (my_system): output errorcode when verbose
1322 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1324 * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1327 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1329 * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1332 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1334 * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1336 2008-02-21 Borut Razem <borut.razem AT siol.net>
1338 * support/regression/Makefile.in,
1339 support/regression/ports/ds390/spec.mk,
1340 support/regression/ports/hc08/spec.mk,
1341 support/regression/ports/mcs51-common/spec.mk,
1342 support/regression/ports/pic14/spec.mk,
1343 support/regression/ports/pic16/spec.mk,
1344 support/regression/ports/ucz80/spec.mk,
1345 support/regression/ports/xa51/spec.mk:
1346 added CFLAGS when compiling timeout
1348 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1350 * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1353 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1355 * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1356 * support/regression/tests/bug1888147.c: new, added
1358 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1360 * src/z80/gen.c: fixed bugs #1596270, #1736867
1362 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1364 * src/z80/gen.c: fixed bug in register pair loading when swapping register
1365 contents, mostly fixes #1596270
1367 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1369 * src/z80/peeph.def,
1370 * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1371 peepholes, fixes #1806565
1373 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1375 * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1376 * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1377 fixes bug 1739475, thanks Robert Larice
1378 (rule 271): new, added
1380 2008-02-18 Borut Razem <borut.razem AT siol.net>
1382 * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1384 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1386 * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1388 2008-02-17 Raphael Neider <rneider AT web.de>
1390 * src/pic16/genarith.c,
1393 * src/pic16/genutils.c: removed unused legacy code,
1394 removed unused fields from struct asmop and struct _G
1396 2008-02-17 Raphael Neider <rneider AT web.de>
1398 * src/pic16/gen.c (AccRsh): cosmetic changes,
1399 (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1400 genRightShiftLiteral): fixed to work with SFRs as result by
1401 assigning only once to result,
1402 removed a lot of unused/excluded code fragments
1404 2008-02-17 Raphael Neider <rneider AT web.de>
1406 * device/include/pic/pic16f88.h,
1407 * device/include/pic/pic16f886.h,
1408 * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1410 2008-02-17 Borut Razem <borut.razem AT siol.net>
1412 * src/z80/peeph.def: applied patch
1413 #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1414 * src/z80/gen.c, src/z80/peeph.def: applied patch
1415 #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1416 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1417 sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1418 sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1419 sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1420 enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1422 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1424 * as/link/mcs51/aslink.dsp: removed SDK define
1425 * as/link/z80/clean.mk: brought in sync with other ports
1426 * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1427 * as/hc08/Makefile.bcc,
1428 * as/mcs51/Makefile.bcc,
1429 * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1430 * src/z80/main.c (_setValues): use the now capitalized -Z,
1431 (z80_port, gbz80_port): generate debug information when asked
1433 2008-02-16 Borut Razem <borut.razem AT siol.net>
1435 * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1436 as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1437 as/z80/Makefile.in. as/z80/Makefile.bcc:
1438 applied patch #1893393: patch for as-z80 and link-z80 to generate
1439 cdb, thanks to Armin Diehl
1440 * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1441 as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1442 asnoice.c moved to as/asxxsrc/asnoice.c
1443 * src/z80/peeph-gbz80.def: applied patch
1444 #1880235: Z80 return peephole, thanks to Philipp Krause
1446 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1449 * doc/sdccman.lyx: bumped version to 2.7.5
1450 * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1452 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1454 * device/include/pic16/stdlib.h,
1455 * device/lib/pic16/libc/stdlib/ltoa.c,
1456 * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1458 2008-02-13 Borut Razem <borut.razem AT siol.net>
1460 * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1461 * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1462 src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1463 src/SDCCopt.c, src/SDCCval.c:
1464 fixed bug #1890273: SDCC Warning 154 shows wrong filename
1466 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1468 * src/SDCCsymt.c (compareType): fixed bug 1309013
1470 2008-02-09 Borut Razem <borut.razem AT siol.net>
1472 * src/SDCCval.c, src/SDCCval.h:
1473 code cleaning, added function constChrVal()
1474 * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
1475 call constChrVal() instead constVal()
1477 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
1479 * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
1482 * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
1483 * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1486 2008-02-01 Raphael Neider <rneider AT web.de>
1488 * device/include/pic/pic16f886.h,
1489 * device/include/pic/pic16f887.h: added RA6 and RA7
1491 2008-01-24 Raphael Neider <rneider AT web.de>
1493 * device/include/pic/pic16f88.h: added RA6 and RA7
1494 * device/lib/pic/libdev/disabled_pic16f886.c,
1495 * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
1497 * src/pic16/devices.inc,
1498 * device/include/pic16/pic18f2423.h,
1499 * device/include/pic16/pic18f2523.h,
1500 * device/include/pic16/pic18fregs.h,
1501 * device/lib/pic16/pics.all
1502 * device/lib/pic16/libdev/pic18f2423.c,
1503 * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
1504 * device/lib/pic16/libio/i2c.ignore,
1505 * device/lib/pic16/libio/usart.ignore,
1506 * device/lib/pic16/libio/adc.ignore: ignore new devices
1508 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
1510 * src/SDCCast.c (createRMW): fixed bug 1582651
1512 2008-01-20 Borut Razem <borut.razem AT siol.net>
1514 * src/SDCCcse.c: partially fixed enhancement request
1515 #1793872 - multiply by -1 not collapsed
1516 * support/regression/tests/arithcsi.c: added regression test
1518 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
1520 * as/mcs51/asx8051.dsp: removed define SDK
1521 * as/mcs51/i51mch.c (machine): fixed bug 1865114
1522 * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1524 * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1525 cosmetic changes, brought more in sync, changed old K&R to ANSI
1527 2008-01-13 Borut Razem <borut.razem AT siol.net>
1529 * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1530 * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1532 2007-12-30 Borut Razem <borut.razem AT siol.net>
1534 * src/pic16/gen.c: fixed implementation of bitwise operations for
1536 * support/regression/tests/bitwise.c: added test cases
1538 2007-12-29 Borut Razem <borut.razem AT siol.net>
1540 * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1541 * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1542 src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1543 * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1544 * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1545 src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1546 src/pic16/pcode.[ch]: added const qualifier
1547 * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1548 as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1549 as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1550 as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1551 * as/asxxsrc/aslex.c: use dbuf_getline()
1552 * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1553 as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1554 as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1555 as/z80/asm.h, as/z80/z80adr.c:
1556 changed type of ib and ip to const char *
1558 2007-12-28 Borut Razem <borut.razem AT siol.net>
1560 * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1561 introduced (readlin) - long lines are turuncated
1562 * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1563 as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1564 as/z80/Makefile.in: moved aslex.c to asxxsrc
1565 * as/hc08/aslex.c, as/z80/aslex.c: deleted
1566 * as/hc08/asmain.c, as/mcs51/asmain.c:
1567 added missing initialization of a_addr field
1568 * support/regression/tests/long_asm_line.c: added regtest for long
1571 2007-12-22 Borut Razem <borut.razem AT siol.net>
1573 * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1575 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1577 * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1579 2007-12-16 Borut Razem <borut.razem AT siol.net>
1581 * device/include/pic16/stdbool.h: removed, since already exists in
1582 device/include/; this also fixes bitopcse.c regression test for pic16
1584 * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1585 * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1586 dereference doesn't work; covered by regression test bug1399290
1588 2007-12-05 Borut Razem <borut.razem AT siol.net>
1590 * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1593 2007-12-01 Borut Razem <borut.razem AT siol.net>
1595 * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1596 corrected handling of the highest_valid_address
1598 2007-11-17 Raphael Neider <rneider AT web.de>
1600 * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1601 * src/pic/glue.c (picglue): emit .file if --debug is given
1603 2007-11-17 Raphael Neider <rneider AT web.de>
1605 * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1606 care when left or right operand resides in result, fixes #1830220
1608 2007-11-17 Borut Razem <borut.razem AT siol.net>
1610 * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1611 #983491 - "Merge duplicate strings function is ineffective"
1612 * support/regression/tests/bug-983491.c: regtest disabled
1613 * as/asxxsrc: created
1614 as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1615 as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1616 as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1617 as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1618 as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1619 as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1620 as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1621 as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1622 as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1623 as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1624 as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1625 as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1626 created as/asxxsrc directory, assym.c and strcpi.c moved into it
1628 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1630 * device/include/stdarg.h: added and removed some casts
1631 * src/SDCCsymt.c (compareType): Fully check types between generic and
1632 non-generic pointers, also accept ptr-ptr to void-ptr assignments
1634 2007-11-13 Borut Razem <borut.razem AT siol.net>
1636 * support/regression/tests/bug-1817005.c:
1637 added regtest for bug #1817005 - as-z80 chokes on long labels
1639 2007-11-12 Borut Razem <borut.razem AT siol.net>
1641 * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1642 as/z80/asout.c, as/z80/aslist.c:
1643 fixed bug #1817005 - as-z80 chokes on long labels
1645 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1648 * as/z80/asmain.c: cosmetic changes
1651 * as/z80/alloc.h: removed
1653 * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1654 * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1655 * as/link/hc08/Makefile.in,
1656 * as/link/mcs51/Makefile.in,
1657 * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1659 * as/link/mcs51/lkarea.c,
1660 * as/link/mcs51/lkmain.c: cosmetic changes
1661 * as/link/hc08/lklibr.c,
1662 * as/link/z80/lklibr.c,
1663 * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1664 used cygwin_conv_to_full_posix_path,
1665 added warnings, cosmetic changes, brought more in sync
1666 changed old K&R into ANSI function declarations
1667 * as/link/z80/lklibr.c (loadAdb): added
1668 * as/link/z80/lkmain.c: removed -- option from usage text
1670 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1672 * src/mcs51/gen.c (outBitC): optimized for no result
1674 2007-10-31 Borut Razem <borut.razem AT siol.net>
1676 * src/SDCCsymt.c: fixed (hopeful properly) bug
1677 #1805702 - order of extern matters
1678 * support/regression/tests/bug-1805702.c: enabled regtest for bug
1681 2007-10-29 Borut Razem <borut.razem AT siol.net>
1683 * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1684 - order of extern matters
1685 * support/regression/tests/bug-1805702.c: disabled regtest for bug
1688 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1690 * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1691 24bitMode, portIsDS390
1692 * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1693 * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1694 (notVolatileVariable): also check sloc names,
1695 (callFuncByName): moved ftab[] out of function and sorted it by use
1697 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1699 * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1700 * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1701 aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1702 * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1703 * support/regression/tests/bug-880197.c: new, added
1705 2007-10-28 Borut Razem <borut.razem AT siol.net>
1707 * support/regression/Makefile.in,
1708 support/regression/ports/mcs51-large/spec.mk,
1709 support/regression/ports/mcs51-xstack-auto/spec.mk,
1710 support/regression/ports/mcs51-stack-auto/spec.mk,
1711 support/regression/ports/mcs51-medium/spec.mk,
1712 support/regression/ports/mcs51-common/spec.mk,
1713 support/regression/ports/mcs51-common/*,
1714 support/regression/ports/mcs51-small/*:
1715 mcs51 renamed to mcs51-common, created mcs51-small
1716 * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1717 * support/regression/tests/bug-1805702.c: added regtest for bug
1720 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1722 * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1723 added new rules 265 - 270
1724 * support/regression/tests/bug1721024.c:new, added
1725 * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1726 introduced new test-mcs51 to run all mcs51 tests
1728 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1730 * support/regression/tests/bug1816470.c: new, added
1732 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1734 * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1735 propagate for *,+,- with float, fixed bug 1816470
1736 (decorateType): cast to resultTypeProp instead of resultType
1738 2007-10-19 Borut Razem <borut.razem AT siol.net>
1740 * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1741 function is ineffective" for pic16 tareget
1742 * support/scripts/listerr.c: corrected include path
1743 * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1746 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1748 * support/regression/tests/using.c: new, added
1749 * support/regression/tests/vaargs.c: fixed and enabled test
1751 2007-10-18 Borut Razem <borut.razem AT siol.net>
1753 * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1755 * support/regression/tests/bug-983491.c: added regtest for bug #983491
1757 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1759 * doc/sdccman.lyx: documented option --Werror
1760 * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1761 RegBankUsed[] earlier
1763 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1765 * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1769 * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1771 * src/SDCCast.c (decorateType): improved optimization of tri-op
1772 * src/SDCCerr.c (vwerror, setWError),
1774 * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1775 warnings as errors, thanks Stas Sergeev for PATCH 1813211
1777 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1779 * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1780 * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1781 * support/regression/tests/bug-223113.c,
1782 * support/regression/tests/bug-426632.c,
1783 * support/regression/tests/bug-468811.c,
1784 * support/regression/tests/bug-477835.c,
1785 * support/regression/tests/bug-478094.c,
1786 * support/regression/tests/bug-499644.c,
1787 * support/regression/tests/bug-524209.c,
1788 * support/regression/tests/bug-524211.c,
1789 * support/regression/tests/packcast.c,
1790 * support/regression/tests/structidx.c: added empty tests
1791 * support/regression/tests/bug-607243.c: enabled test
1793 2007-10-06 Borut Razem <borut.razem AT siol.net>
1795 * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1796 support of universal binaries on Mac OS X
1798 2007-10-02 Borut Razem <borut.razem AT siol.net>
1800 * src/SDCCval.h: unified double2ul macro for all platforms
1801 * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1802 * support/regression/tests/bitwise.c: added regtest for bug #1777758
1804 2007-09-30 Borut Razem <borut.razem AT siol.net>
1806 * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1808 * sdcc_vc_in.h: enabled warnings
1809 * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1810 unsigned type, result still unsigned
1811 * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1813 2007-09-28 Raphael Neider <rneider AT web.de>
1815 * src/pic/device.c (find_device): prevent buffer underflow error
1816 * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1817 the just destroyed list entry
1819 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1821 * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1824 2007-09-18 Borut Razem <borut.razem AT siol.net>
1826 * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1827 applied to unsigned type, result still unsigned
1829 2007-09-17 Borut Razem <borut.razem AT siol.net>
1831 * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1832 src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1833 src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1834 src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1835 src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1836 src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1837 src/z80/gen.c, src/z80/ralloc.c:
1838 fixed bug #1739860 - sdcc does not work correctly on some platforms
1840 introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1842 2007-09-17 Raphael Neider <rneider AT web.de>
1844 * src/pic16/device.c: reverted to previous version
1845 * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1847 2007-09-16 Raphael Neider <rneider AT web.de>
1849 * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1850 as this raises a ton of gpasm warnings, just emit a second label
1851 * src/pic16/devices.inc,
1852 * device/lib/pic16/pics.all,
1853 * device/lib/pic16/libdev/pic18f2585.c,
1854 * device/lib/pic16/libdev/pic18f2680.c,
1855 * device/lib/pic16/libdev/pic18f2682.c,
1856 * device/lib/pic16/libdev/pic18f2685.c,
1857 * device/lib/pic16/libdev/pic18f4585.c,
1858 * device/lib/pic16/libdev/pic18f4680.c,
1859 * device/lib/pic16/libdev/pic18f4682.c,
1860 * device/lib/pic16/libdev/pic18f4685.c,
1861 * device/include/pic16/pic18f2585.h,
1862 * device/include/pic16/pic18f2680.h,
1863 * device/include/pic16/pic18f2682.h,
1864 * device/include/pic16/pic18f2685.h,
1865 * device/include/pic16/pic18f4585.h,
1866 * device/include/pic16/pic18f4680.h,
1867 * device/include/pic16/pic18f4682.h,
1868 * device/include/pic16/pic18f4685.h,
1869 * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1870 18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1871 patch contributed by Anton Strobl, applied with changes
1873 2007-09-16 Raphael Neider <rneider AT web.de>
1875 * device/include/pic16/pic18f2431.h,
1876 * device/include/pic16/pic18f25j10.h,
1877 * device/include/pic16/pic18f4431.h,
1878 * device/include/pic16/pic18f45j10.h: adopted common include style
1879 * device/include/pic16/pic18f1320.h,
1880 * device/include/pic16/pic18f2320.h,
1881 * device/include/pic16/pic18f2525.h,
1882 * device/include/pic16/pic18f4320.h,
1883 * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1884 * device/include/pic16/pic18fregs.h: prepared for automatic include
1885 file selection by having DEVICE.h for every DEVICE
1886 * device/lib/pic16/libdev/pic18f2320.c,
1887 * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1889 * device/lib/pic16/configure.in,
1890 * device/lib/pic16/configure: use rm -rf instead of rmdir
1891 * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1892 * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1894 2007-09-09 Borut Razem <borut.razem AT siol.net>
1896 * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1897 distingush between i386 and ppc Mac OS X versions
1899 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1901 * src/mcs51/gen.c (genReceive): fixed bug 1788177
1902 * support/regression/tests/bug1788177.c: new, added
1904 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1906 * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1907 * device/include/mcs51/lint.h added keyword __naked
1909 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1913 * src/SDCCmem.h: removed maxRegBank
1914 * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1915 RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1916 * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1917 * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1918 name and behaviour to handle banked functions
1919 (scan4op): and use it to fix bug 1786213
1921 2007-09-03 Raphael Neider <rneider AT web.de>
1923 * device/include/pic16/pic18f248.h,
1924 * device/include/pic16/pic18f258.h,
1925 * device/include/pic16/pic18f448.h,
1926 * device/lib/pic16/libdev/pic18f248.c,
1927 * device/lib/pic16/libdev/pic18f258.c,
1928 * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1929 added T0CONbits, fixes #1786891
1931 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1933 * src/ds390/gen.c (genFarPointerSet),
1934 * src/hc08/ralloc.c (packRegisters),
1935 * src/mcs51/ralloc.c (packRegisters),
1936 * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1938 * src/SDCCicode.h: POINTER_SET can be true for literals too
1939 * support/regression/tests/bug1750318.c: new, added
1941 2007-08-23 Borut Razem <borut.razem AT siol.net>
1943 * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1944 library versions without the completition functionality
1946 2007-08-22 Raphael Neider <rneider AT web.de>
1948 * device/include/pic16/pic18f1220.h,
1949 * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1951 2007-08-12 Borut Razem <borut.razem AT siol.net>
1953 * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1955 2007-08-11 Borut Razem <borut.razem AT siol.net>
1957 * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1958 src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1959 support/Util/SDCCerr.[ch] moved to src
1960 * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1961 as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1962 device/examples/ds390/tinitalk/tinitalk.dsp,
1963 device/examples/serialcomm/windows/serialcomm.dsp,
1964 support/librarian/librarian.dsp:
1965 removed linking of unused odbc32.lib and odbccp32.lib
1966 * support/scripts/winres.h:
1967 added for compilation with Visual C++ 2005 Express Edition
1969 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1971 * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1974 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1976 * sdccconf_in.h: update the endian test so that SPARC Solaris
1977 does not throw syntax errors
1979 2007-08-06 Borut Razem <borut.razem AT siol.net>
1981 * doc/sdccman.lyx: removed two index entries which prevented the
1982 generation of sdcc doc archive
1984 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1986 * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1987 instead of lyx 1.5.0.
1989 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1991 * device/include/hc08/mc68hc908apxx.h: new header contributed by
1992 Lucas Loizaga, with minor modifications. Thanks!
1994 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1996 * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1999 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2001 * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
2002 src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
2005 2007-07-22 Borut Razem <borut.razem AT siol.net>
2007 * configure.in, configure: re-introduced .version
2008 * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
2009 the version reverted to 2.7.0
2011 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
2014 * doc/sdccman.lyx: bumped version to 2.7.3
2015 * device/include/mcs51/compiler.h: fixed elif->else
2016 * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
2017 * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
2018 (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
2019 enable accuse for bit operands
2020 * src/SDCCmain.c (printVersionInfo),
2021 * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
2022 environment descriptor
2023 * src/SDCCutil.h: added getBuildEnvironment
2024 * src/SDCCglue.c (initialComments): use getBuildEnvironment
2025 * support/regression/tests/bug1464657.c: enabled test test_Peephole251
2026 * support/regression/tests/bug-408972.c: enabled test leftShiftLong
2027 * support/regression/tests/bug1348008.c,
2028 * support/regression/tests/bug1496419.c,
2029 * support/regression/tests/bug1503067.c,
2030 * support/regression/tests/preproc.c: added empty tests
2032 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2034 * support/regression/tests/bug1678803.c: new, added
2036 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
2039 * as/link/hc08/lkihx.c,
2040 * as/link/hc08/lkrloc.c,
2041 * as/link/mcs51/lkihx.c,
2042 * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
2043 ihxExtendedLinearAddress
2044 * as/link/mcs51/lkrloc.c (relr),
2045 * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
2046 acall/ajmp, see bug 830513
2048 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
2050 * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
2051 (cseBBlock): remember aggr2ptr has been used
2052 * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
2053 (geniCodeAssign): fixed bug 868103
2054 * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
2055 added operandSize prototype
2056 * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
2057 (genDataPointerSet): use max of size of right and result,
2058 (gencjne): added parameter useCarry for optimization,
2059 (genCmpEq): use carry if appropriate,
2060 (genXor): check if operand already in carry
2061 * support/regression/tests/bug-868103.c: enabled test
2063 2007-07-12 Raphael Neider <rneider AT web.de>
2065 * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
2067 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
2069 * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
2070 from Robert Larice, thanks
2071 * support/regression/tests/bitopcse.c,
2072 * support/regression/tests/bitvars.c,
2073 * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
2074 * support/regression/tests/bug-927659.c: enabled test for z80
2075 * support/regression/tests/bug1738367.c: added extra tests by Frieder
2076 * support/regression/tests/bug1745717.c: new, added
2077 * support/regression/tests/literalop.c,
2078 * support/regression/tests/nullstring.c: removed storage definitions that
2079 are now in testfwk.h
2081 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
2083 * device/include/stdbool.h: do not define __bool_true_false_are_defined
2084 and bool for targets that do not fully support it.
2085 * support/regression/tests/bug1546986.c,
2086 * support/regression/tests/bug1723128.c,
2087 * support/regression/tests/bug1734654.c,
2088 * support/regression/tests/bug1738367.c,
2089 * support/regression/tests/constantRange.c: only use bool if allowed
2091 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2093 * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2094 Larice, also handle function pointers
2095 * support/regression/tests/bug1749275.c: new, added
2097 2007-07-03 Borut Razem <borut.razem AT siol.net>
2099 * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2100 src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2101 #1746528: SDCC should ignore ':' in inline assembler comments
2102 * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2104 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2106 * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2107 * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2109 2007-06-29 Borut Razem <borut.razem AT siol.net>
2111 * src/SDCCmain.c: fixed bug
2112 #1744746: SDCC #4867: broken option --xram-size
2114 2007-06-28 Borut Razem <borut.razem AT siol.net>
2116 * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2117 find out the endianess of host machine for ucsim
2119 2007-06-27 Borut Razem <borut.razem AT siol.net>
2121 * support/regression/generate-cases.py: corrected the file name
2123 * configure.in, configure, sdccconf_in.h: find out the endianess of
2125 * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2128 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2130 * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2132 2007-06-26 Borut Razem <borut.razem AT siol.net>
2134 * support/regression/generate-cases.py: display warning if function
2135 list is empty; implemented more flexible rule for detection of
2136 testing functions, allowing return type 'void' in the same line as
2137 the function name in the function definition
2138 * support/regression/tests/bug-1654060.c: corrected test
2139 * support/librarian/sdcclib.c: fixed warning:
2140 format '%s' expects type 'char *', but argument 2 has type 'int'
2142 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2144 * support/librarian/sdcclib.c: Added feature Requests [1510635]
2145 Multiple infiles for sdcclib.
2147 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2149 * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2152 2007-06-18 Borut Razem <borut.razem AT siol.net>
2154 * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2155 how to handle comments, so they have to be removed by the
2156 preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2157 * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2158 src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2159 support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2160 table driven option hadling
2162 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2164 * src/SDCCast.c (decorateType),
2165 * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2166 iCode to ast level to fix bug 1738367
2167 * support/regression/tests/bug1738367.c: new, added
2169 2007-06-15 Raphael Neider <rneider AT web.de>
2171 * src/pic16/devices.inc,
2172 * device/lib/pic16/pics.all,
2173 * device/include/pic16/pic18fregs.h,
2174 * device/include/pic16/pic18f[24][45]20.h,
2175 * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2176 18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2177 * device/lib/pic16/Makefile.in: faster cleanup
2179 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2181 * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2183 2007-06-13 Raphael Neider <rneider AT web.de>
2185 * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2187 2007-06-12 Raphael Neider <rneider AT web.de>
2189 * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2190 suppress bit defines if NO_BIT_DEFINES is #define'd
2191 * device/include/pic/pic*.h: recreated all headers to include
2192 conditional bit defines
2193 * device/include/pic/pic16f886.h,
2194 * device/include/pic/pic16f887.h: fixed based on newer .inc file
2195 * device/include/pic/recreate.sh: script to recreate the complete
2196 device library files based on the currently supported devices
2198 2007-06-12 Borut Razem <borut.razem AT siol.net>
2200 * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2201 support/regression/Makefile.in, support/scripts/build.mak,
2202 support/scripts/Makefile.snapshot:
2203 use new svn URL scheme
2204 * doc/sdccman.lyx: SDCC Wiki moved to
2205 http://sdcc.wiki.sourceforge.net/
2207 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2209 * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2210 * support/regression/tests/bug1734654.c: added
2212 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2214 * src/SDCCast.c (decorateType): optimized '?' for equal operands
2215 * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2216 with literal operands
2218 2007-06-10 Borut Razem <borut.razem AT siol.net>
2220 * as/link/z80/lklibr.c: fixed mingw build warning
2221 lklibr.c:575: warning: implicit declaration of function 'tolower'
2222 * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2223 src/z80/main.c: move target specific options from src/SDCCmain.c
2224 to src/<target>/main.c
2226 2007-06-09 Borut Razem <borut.razem AT siol.net>
2228 * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2229 removed unused swap_sense; removed outBitCLong, replaced with outBitC
2230 * support/regression/tests/bug-1294691.c: added
2232 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2234 * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2235 can also be static, fixes bug 1733438
2236 * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2237 have absolute address too
2238 (computeType): added optimization for 'cond ? true : false'
2239 * support/regression/tests/absolute.c: added test for static absolute var
2241 2007-06-08 Raphael Neider <rneider AT web.de>
2243 * src/regression/Makefile: suppress parallel builds, allow easy
2244 switching between pic14/pic16 ports
2245 * src/regression/picregs.h: added pic14/16 header file switch
2246 * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2247 inline.c,nestfor.c,string1.c}: include "picregs.h"
2249 2007-06-07 Borut Razem <borut.razem AT siol.net>
2251 * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2252 permanent solution to suppress GCC 4.2.0 c++ warning:
2253 deprecated conversion from string constant to `char *'
2254 use 'const char *' where ever required
2255 * support/regression/generate-cases.py: implemented more flexible rule
2256 for detection of testing functions, allowing white-spaces surrounding
2257 the function name and the 'void' parameter.
2258 * support/regression/tests/constantRange.c,
2259 support/regression/tests/scott-compare3.c: fixed failing regression
2260 tests, uncovered by implementation of more flexible rule for detection
2261 of testing functions
2263 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2265 * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2267 2007-06-04 Borut Razem <borut.razem AT siol.net>
2269 * configure.in, configure, config_vc.awk: sdcc version number is now
2270 stored in configure.in; removed .version
2271 * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2272 doc/INSTALL.txt: version bumped to 2.7.2
2273 * sim/ucsim/configure.in, sim/ucsim/configure:
2274 use "read" to read from .version
2276 2007-06-03 Borut Razem <borut.razem AT siol.net>
2278 * */Makefile.in: removed annoying warning:
2279 Makefile:xx: Makefile.dep: No such file or directory
2281 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2283 * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2284 (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2285 * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2286 * src/SDCCast.c (resultTypePropagate): propagate for '!',
2287 (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2288 bugfix: only use newBoolLink for bit result type
2289 * src/SDCCicode.c (geniCodeLogic): added param tree,
2290 bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2291 (geniCodeLogicAndOr): use IS_BIT,
2292 (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2293 (ast2iCode): added tree param to geniCodeLogic for comparisons
2294 * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2295 * support/regression/tests/bug1723128.c: added test NotZero
2297 2007-06-01 Borut Razem <borut.razem AT siol.net>
2299 * SDCPP synchronized with GCC CPP release version 4.2.0,
2300 currently the latest release:
2301 * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2302 support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2303 support/cpp2/cppdefault.h, support/cpp2/except.h,
2304 support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2305 support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2306 support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2307 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2308 support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2309 support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2310 support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2311 support/cpp2/opts.h, support/cpp2/output.h,
2312 support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2313 support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2314 support/cpp2/system.h, support/cpp2/version.c,
2315 support/cpp2/Makefile.in: modified
2316 * support/cpp2/opts-common.c: added
2317 * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2318 * device/lib/pic16/libdev/pic18f[24]5j10.c:
2319 search for included source file in local directory
2320 * sim/ucsim/configure, sim/ucsim/configure.in:
2321 temporary solution to suppress GCC 4.2.0 c++ warning:
2322 deprecated conversion from string constant to `char *'
2324 2007-06-01 Raphael Neider <rneider AT web.de>
2326 * device/lib/pic/libdev/pic12f683.c,
2327 * device/include/pic/pic12f683.h: added GPIO bits
2329 2007-06-01 Raphael Neider <rneider AT web.de>
2331 * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2332 quotation marks, clarified role of PIC14 vs. PIC16 ports
2333 * src/pic16/devices.inc,
2334 * device/include/pic16/pic18fregs.h,
2335 * device/include/pic16/pic18f[24][45]j10.h,
2336 * device/lib/pic16/pics.all,
2337 * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2338 18f24j10, 18f25j10, 18f44j10, and 18f45j10
2339 * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2340 for new devices as they are not yet supported by gputils
2342 2007-05-31 Borut Razem <borut.razem AT siol.net>
2344 * Small Device C Compiler 2.7.0 released
2345 * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2346 changed sdcc version to 2.7.1
2347 * support/scripts/sdcc.nsi: added How to create WIN32 release
2350 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2352 * doc/sdccman.lyx: documented initialization and allocation of absolute
2353 variables, bit parameter passing, the need for function pointers to be
2354 reentrant and alpha quality support of inline and retrict
2356 2007-05-26 Borut Razem <borut.razem AT siol.net>
2358 * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2359 support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2360 * docs/knownbugs.html: updated
2362 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2364 * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2366 * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2368 (gencjneshort): optimized when left is AOP_DIR
2369 * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2370 initializing unions in a struct/array
2371 * support/regression/fwk/include/testfwk.h: added defines for data, near
2372 and far for host and z80
2373 * support/regression/tests/bug1723128.c: new, added
2375 2007-05-22 Borut Razem <borut.razem AT siol.net>
2377 * doc/knownbugs.html: updated
2379 2007-05-21 Raphael Neider <rneider AT web.de>
2381 * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2382 error message instead
2383 * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2385 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2387 * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2389 2007-05-21 Raphael Neider <rneider AT web.de>
2391 * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2393 * src/regression/gpsim_assert.h,
2394 * src/regression/Makefile,
2395 * src/regression/pcodeopt.c: regression test for the above fix
2397 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2399 * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2400 jumps to self, fixed bug 1717281
2402 2007-05-10 Borut Razem <borut.razem AT siol.net>
2404 * support/scripts/gen_known_bugs.pl: cosmetic fix
2405 * doc/knownbugs.html: generated by gen_known_bugs.pl
2407 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2409 * src/SDCCast.c (createFunction): also generate non-inlined version of
2410 function for functions declared as "static inline"
2411 * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2412 function can be inlined after non-inlined version generated.
2414 2007-05-10 Borut Razem <borut.razem AT siol.net>
2416 * support/scripts/gen_known_bugs.pl: added script
2417 which generates knownbugs.html
2419 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2421 * doc/knownbugs.html: updated for release 2.7.0
2423 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2425 * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2427 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2429 * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2430 (throughout): updated generating comments
2431 * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2432 (throughout): updated generating comments
2433 * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2434 rule instead of at the second, or it might skip lines when removing the
2436 * support/regression/tests/bug1714204.c: changed test to foo
2438 2007-05-08 Borut Razem <borut.razem AT siol.net>
2440 * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2441 thanks to SDCC Distributed Compile Farm members,
2442 added Z80 and GBZ80 command line options
2443 * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2445 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2447 * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2448 * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2449 * support/regression/tests/longlit.c: modified to be tested at all and
2450 to pass the actual test
2452 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2454 * device/include/mcs51/uPSD33xx.h: Added.
2456 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2458 * device/lib/_gptrput.c,
2459 * device/lib/_gptrget.c: removed old code,
2461 * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2462 * support/regression/tests/bug1714204.c: new, added
2464 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2466 * support/regression/tests/regtrack.c: test was never executed
2467 because of the regression test being picky about white spaces.
2468 * device/lib/mcs51/crtclear.asm: added comment
2470 2007-05-06 Raphael Neider <rneider AT web.de>
2472 * device/lib/pic/Makefile.rules,
2473 * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
2474 made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
2476 2007-05-06 Raphael Neider <rneider AT web.de>
2478 * src/pic16/device.h,
2480 * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
2481 _pic16_setDefaultOptions): removed/reordered command-line args
2482 * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
2483 devices, regrouped command line args, environment variables),
2484 clarified sone points, added sections on how to add devices to the
2487 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
2489 * src/z80/peeph.def: fixed bug in rule 2
2491 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
2493 * src/port.h: added TARGET_MCS51_LIKE
2494 * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
2495 take advantage of it too
2496 * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
2497 (shiftR2Left2Result): Optimized: don't check shifting by 0
2498 * src/z80/peeph-z80.def,
2499 * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
2500 modifications, see patch 1700823
2501 * src/mcs51/peep.c (): fixed bug 1712928
2502 * support/regression/tests/bug1712928.c: new, added
2504 2007-05-05 Borut Razem <borut.razem AT siol.net>
2506 * device/lib/pic16/Makefile.common.in,
2507 device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
2508 removed bash dependencies
2510 2007-05-01 Borut Razem <borut.razem AT siol.net>
2513 fixed bug #1710507: --i-code-in-asm makes compile fail
2514 all iCode comments are now one liners
2515 * src/mcs51/gen.c: fixed memory leak
2517 2007-05-01 Raphael Neider <rneider AT web.de>
2519 * device/lib/pic/libdev/*.c
2520 * device/include/pic/*.h: regenerated all device libs from updated
2522 * support/scripts/inc2h.pl: documented usage, now uses strict to
2525 2007-04-30 Borut Razem <borut.razem AT siol.net>
2528 fixed bug #1669175: Problem with space in output paths
2529 documented how to use paths with spaces for Windows users
2531 2007-04-29 Borut Razem <borut.razem AT siol.net>
2533 * Fixed svn:eol-style and svn:keywords properties
2534 * src/SDCCval.c: fixed bug
2535 #1592871: Segfault with "large" const arrays of characters
2536 replaced recursion with iteration
2537 * Removed svn:executable property from non-executable files
2539 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2541 * src/mcs51/gen.c (genRet): fixed bug 1707003
2543 2007-04-27 Raphael Neider <rneider AT web.de>
2545 * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2546 createReachingDefinitions,assignValnums,pic16_destructDF,
2547 pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2548 prevent NULL pointer dereferences
2549 * device/lib/pic/libdev/pic16f886.c,
2550 * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2551 prevent building them, gputils do not really support them yet
2553 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2555 * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2556 helps printf_small. 32 bytes more __idata mem.
2558 2007-04-27 Raphael Neider <rneider AT web.de>
2560 * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2561 return early when pb or pb->pcHead is NULL (patch #1708427)
2562 * src/regression/empty.c,
2563 * src/regression/Makefile: added test with empty functions
2564 * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2566 2007-04-27 Borut Razem <borut.razem AT siol.net>
2568 * src/SDCCast.c: fixed feature request
2569 #1547512: Redundant strings linked when using sizeof("abc")
2571 2007-04-23 Borut Razem <borut.razem AT siol.net>
2573 * doc/sdccman.lyx, src/SDCCmain.c:
2574 peep-hole comments are generated only if --fverbose-asm option is
2575 specified and --no-peep-comments is not, as proposed by Frieder.
2576 * support/regression/Makefile.in: compile regression tests with
2577 --fverbose-asm option so one can "grep" whether a new (or an old)
2578 peephole is (still) applied; requested by Frieder.
2580 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2582 * device/include/pic/pic16f886.h,
2583 * device/include/pic/pic16f887.h,
2584 * device/lib/pic/libdev/pic16f886.c,
2585 * device/lib/pic/libdev/pic16f887.c,
2586 * device/include/pic/pic14devices.txt,
2587 * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2589 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2591 * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2594 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2596 * device/lib/_memset.c: assembler version for mcs51
2598 2007-04-22 Borut Razem <borut.razem AT siol.net>
2600 * support/scripts/listerr.c: program to create the list of errors and
2601 warnings list from - added
2602 * doc/sdccman.lyx: removed the note
2603 "For list of warnings and corresponding codes, see err_warn.txt"
2604 * src/SDCCsymt.c: fixed bug #1699804:
2605 Bug with some uses of sizeof(static local array) (MCS51)
2606 * support/regression/tests/bug-1699804.c: added
2608 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2610 * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2611 (main): added option -i,
2612 (asmbl, case S_INCL): use search_path_fopen,
2613 mostly from patch 1579668 by Peter Miller, thanks
2614 * src/z80/main.c: fixed typo --callee-saves-bc
2615 * device/include/mcs51/compiler.h: added sfrword for Tasking
2617 2007-04-20 Borut Razem <borut.razem AT siol.net>
2619 * src/z80/main.c: replaced reserved keyword asm with asmblr
2621 2007-04-19 Borut Razem <borut.razem AT siol.net>
2623 * src/port.h: use const pointers to strings
2624 * src/SDCCargs.h: declared getStringArg() and getIntArg()
2625 * src/pic16/main.c: include SDCCargs.h
2626 * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2627 const char, since the strings are dynamically allocated
2628 * src/SDCCmain.c: options.code_seg and options.const_seg are
2629 dynamically allocated; check port specific command line options
2630 before the general ones
2631 * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2633 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2635 * device/include/ds400rom.h,
2636 * device/lib/ds390/lcd390.c,
2637 * device/lib/ds390/memcpyx.c,
2638 * device/lib/ds390/rtc390.c,
2639 * device/lib/ds400/ds400rom.c,
2640 * device/lib/ds400/memcpyx.c,
2641 * device/lib/hc08/_ret.c: more replacements of keywords with their
2642 double underscore equivalents
2643 * device/lib/ds390/Makefile.in,
2644 * device/lib/ds400/Makefile.in,
2645 * device/lib/gbz80/Makefile.in,
2646 * device/lib/hc08/Makefile.in,
2647 * device/lib/mcs51/Makefile.in,
2648 * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2650 2007-04-17 Borut Razem <borut.razem AT siol.net>
2652 * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2653 src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2654 fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2655 to --fverbose-asm, to be gcc'ish
2657 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2659 * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2661 2007-04-17 Borut Razem <borut.razem AT siol.net>
2663 * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2664 * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2665 device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2666 with their double underscore equivalent
2668 2007-04-14 Borut Razem <borut.razem AT siol.net>
2670 * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2673 2007-04-13 Borut Razem <borut.razem AT siol.net>
2675 * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2677 * device/examples/serialcomm/windows/serial.[ch],
2678 device/examples/serialcomm/windows/test_serialcomm.cpp:
2679 updated by Bela Torok
2680 * device/examples/serialcomm/windows/serialcomm.dsw,
2681 device/examples/serialcomm/windows/serialcomm.dsp: added
2683 2007-04-13 Jan Waclawek <wek AT efton.sk>
2685 * doc/sdccman.lyx: additions and changes at various places
2686 (submitted as #1697136).
2687 (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2689 2007-04-10 Borut Razem <borut.razem AT siol.net>
2691 * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2692 LyX file format changed to 245
2693 * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2694 "FreeWare" replaced with "free open source"
2696 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2698 * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2700 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2702 * device/include/pic16/pic18fregs.h,
2704 * device/lib/_decdptr.c,
2705 * device/lib/_divsint.c,
2706 * device/lib/_divslong.c,
2707 * device/lib/_divuint.c,
2708 * device/lib/_divulong.c,
2709 * device/lib/_fs2schar.c,
2710 * device/lib/_fs2sint.c,
2711 * device/lib/_fs2slong.c,
2712 * device/lib/_fs2uchar.c,
2713 * device/lib/_fs2uint.c,
2714 * device/lib/_fs2ulong.c,
2715 * device/lib/_fsadd.c,
2716 * device/lib/_fscmp.c,
2717 * device/lib/_fsdiv.c,
2718 * device/lib/_fseq.c,
2719 * device/lib/_fsget1arg.c,
2720 * device/lib/_fsget2args.c,
2721 * device/lib/_fsgt.c,
2722 * device/lib/_fslt.c,
2723 * device/lib/_fsmul.c,
2724 * device/lib/_fsneq.c,
2725 * device/lib/_fsnormalize.c,
2726 * device/lib/_fsreturnval.c,
2727 * device/lib/_fsrshift.c,
2728 * device/lib/_fssub.c,
2729 * device/lib/_fsswapargs.c,
2730 * device/lib/_gptrget.c,
2731 * device/lib/_gptrgetc.c,
2732 * device/lib/_gptrput.c,
2733 * device/lib/_logexpf.c,
2734 * device/lib/_modsint.c,
2735 * device/lib/_modslong.c,
2736 * device/lib/_moduint.c,
2737 * device/lib/_modulong.c,
2738 * device/lib/_mulint.c,
2739 * device/lib/_mullong.c,
2740 * device/lib/_schar2fs.c,
2741 * device/lib/_ser.c,
2742 * device/lib/_setjmp.c,
2743 * device/lib/_sint2fs.c,
2744 * device/lib/_slong2fs.c,
2745 * device/lib/_spx.c,
2746 * device/lib/_uchar2fs.c,
2747 * device/lib/_uint2fs.c,
2748 * device/lib/_ulong2fs.c,
2749 * device/lib/asincosf.c,
2750 * device/lib/atanf.c,
2751 * device/lib/calloc.c,
2752 * device/lib/ds390/tinibios.c,
2753 * device/lib/ds400/tinibios.c,
2754 * device/lib/expf.c,
2755 * device/lib/free.c,
2756 * device/lib/hc08/_mulint.c,
2757 * device/lib/logf.c,
2758 * device/lib/malloc.c,
2759 * device/lib/printf_fast.c,
2760 * device/lib/printf_tiny.c,
2761 * device/lib/printfl.c,
2762 * device/lib/realloc.c,
2763 * device/lib/ser_ir.c,
2764 * device/lib/serial.c,
2765 * support/regression/tests/libmullong.c: replaced all special keywords
2766 with their double underscore equivalent
2767 * support/regression/ports/mcs51-xstack-auto/spec.mk,
2768 * device/lib/Makefile.in: compile libs with --std-c99 instead of
2770 * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2771 (genRet): if the bit-symbol is ruonly it already is in the carry
2772 * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2773 * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2774 * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2775 type UCHAR if dest is not bit
2777 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2779 * device/include/math.h,
2780 * device/lib/cotf.c,
2781 * device/lib/expf.c,
2782 * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2784 2007-04-01 Borut Razem <borut.razem AT siol.net>
2786 * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2787 fixed bug #1692042: input buffer overflow...scanner uses REJECT
2788 * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2789 gcc_unreachable() called internal_error()...
2791 2007-03-30 Raphael Neider <rneider AT web.de>
2793 * src/pic/ralloc.c (isData): suppress garbage debug output
2795 2007-03-28 Borut Razem <borut.razem AT siol.net>
2798 "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2799 is developed, built and used worldwide, and the word "night" doesn't
2802 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2804 * device/include/mcs51/C8051F360.h: new, added
2805 * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2807 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2809 * src/SDCC.y (declaration_specifiers, function_specifier),
2810 * support/Util/SDCCerr.c,
2811 * support/Util/SDCCerr.h,
2813 * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2815 * src/SDCCmem.c (deallocParms),
2816 * src/SDCCast.c: support for function inlining, not quite complete
2817 * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2818 'restrict' qualifier
2820 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2822 * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2823 (saveRBank, unsaveRBank): don't save bits,
2824 (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2825 * support/regression/tests/bug1535242.c: new, added
2826 * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2827 thanks Alexey Shamrin <shamrin AT gmail.com>,
2828 made assert.h header ANSI compliant (added a check for NDEBUG macro,
2829 removed header guard)
2831 * sdcc.spec: bumped version to 2.6.5
2832 * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2834 2007-03-22 Borut Razem <borut.razem AT siol.net>
2836 * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2837 fixed bug #1653671: sdcdb integration into ddd is broken
2839 2007-03-22 Raphael Neider <rneider AT web.de>
2841 * src/pic/gen.c (popGetExternal): augmented to also create references
2842 to external variables (not only labels),
2843 (genCall): comment on plan to reduce PAGESEL overhead,
2844 (genFunction, genEndFunction): also save/restore FSR around interrupt
2845 handling code, removed lots of unused code
2846 (genDivOneByte): release acquired temp register
2847 * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2849 * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2850 for registers that need to be saved during interrupts (FSR, STATUS,
2851 PCLATH; W needs special handling), currently only FSR is used
2853 2007-03-22 Raphael Neider <rneider AT web.de>
2855 * device/include/pic/pic14devices.txt: 16f688 has only one config word
2857 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2859 * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2861 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2863 * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2865 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2867 * as/link/aslink.h: added LKOBJEXT
2868 * as/link/hc08/link_hc08.dsp,
2869 * as/link/hc08/Makefile.bcc,
2870 * as/link/hc08/Makefile.in,
2871 * as/link/mcs51/aslink.dsp,
2872 * as/link/mcs51/Makefile.bcc,
2873 * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2874 * as/link/hc08/lkaomf51.c, as/link/mcs51/lkaomf51.c,
2875 * as/link/lkaomf51.c: merged and moved
2876 * as/link/hc08/lkdata.c, as/link/mcs51/lkdata.c,
2877 * as/link/z80/lkdata.c,
2878 * as/link/lkdata.c: merged and moved
2879 * as/link/hc08/lkmain.c,
2880 * as/link/mcs51/lkmain.c: cosmetic changes
2881 * as/link/z80/lkeval.c, as/link/lkeval.c: merged
2882 * as/link/lklex.c: use LKOBJEXT
2883 * as/link/z80/lklist.c, as/link/lklist.c: merged,
2884 ANSI-fied functions, removed bubble-sorts
2885 * as/link/z80/lksym.c as/link/lksym.c: merged,
2887 * as/link/z80/linkgbz80.dsp,
2888 * as/link/z80/linkz80.dsp,
2889 * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2890 moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2891 * as/link/z80/lkhead.c,
2892 * as/link/z80/lklex.c: deleted
2893 * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2894 * as/link/z80/lkmain.c: added copyfile()
2896 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2898 * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2900 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2902 * device/lib/_strlen.c: assembler version for mcs51
2904 2007-03-13 Raphael Neider <rneider AT web.de>
2906 * device/include/pic16/pic18f2221.h,
2907 * device/include/pic16/pic18f2321.h,
2908 * device/include/pic16/pic18f2331.h,
2909 * device/include/pic16/pic18f4221.h,
2910 * device/include/pic16/pic18f4321.h,
2911 * device/include/pic16/pic18f4331.h: fixed config byte location names
2912 * support/scripts/inc2h-pic16.pl: removed debug output, emit
2913 consistently named config byte locations
2915 2007-03-13 Borut Razem <borut.razem AT siol.net>
2917 * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2918 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2919 sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2920 as/link/z80/Makefile.in, as/z80/Makefile.in:
2923 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2925 * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2926 * device/lib/printf_large.c: pointer was converted to generic
2927 pointer for mcs51 models other than model-small (Maarten noticed)
2929 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2931 * device/include/mcs51/ADuC84x.h: Added.
2933 2007-03-10 Borut Razem <borut.razem AT siol.net>
2935 * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2936 fixed RFE #1624219: double backslashes in filenames;
2937 functions hexEscape(), octalEscape() and copyStr() moved from
2938 SDCCval.c to SDCCutil.c and made them glovbally available
2940 2007-03-09 Borut Razem <borut.razem AT siol.net>
2942 * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2943 src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2944 1673361: Missaligned comments in output files
2946 2007-03-09 Raphael Neider <rneider AT web.de>
2948 * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2950 2007-03-09 Raphael Neider <rneider AT web.de>
2954 * src/pic/ralloc.c: suppress undesired debug output
2955 * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2957 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2959 * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2961 2007-03-07 Borut Razem <borut.razem AT siol.net>
2963 * device/lib/pic16/libdev/pic18f[24][34]31.c:
2964 search include files in the current directory
2966 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2968 * src/SDCCglue.c (emitMaps, glue),
2969 * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2971 * support/regression/tests/absolute.c: added xdata test
2973 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2975 * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2976 added condition to macro, fixes bug 1666080
2978 2007-03-02 Raphael Neider <rneider AT web.de>
2980 * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2982 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2984 * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2985 be cleared. Unconditionally set __XPAGE
2986 * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2988 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2993 * src/mcs51/rtrack.c,
2995 * doc/sdccman.lyx: added --no-gen-comments
2996 * src/mcs51/peeph.def: added 192.b, disabled 185
2998 2007-02-25 Raphael Neider <rneider AT web.de>
3000 * src/pic16/gen.c (genCast): fixed typo
3001 * device/lib/pic16/Makefile.subdir: only install existing files
3002 * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
3004 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
3006 * device/lib/mcs51/crtcall.asm: new, added for indirect calls
3007 * device/lib/mcs51/crtclear.asm,
3008 * device/lib/mcs51/crtxclear.asm: renumbered labels
3009 * device/lib/mcs51/Makefile.in: added crtcall.asm
3010 * doc/sdccman.lyx: documented mcs51 crt* library startup code
3011 * src/mcs51/gen.c (movc): removed,
3012 (aopGet, genPlusBits): clear a after loading the carry (possibly from
3014 (toCarry, genSend, genRet): added function toCarry,
3015 (genPcall): use "lcall @a+dptr" for functions w/o parameters,
3016 (assignBit, genAssign, genCast): added function assignBit
3017 * src/mcs51/Makefile.bcc: added rtrack.c
3018 * src/mcs51/ralloc.h: made valueKnown a bitfield
3019 * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
3020 fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
3021 disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
3022 * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
3023 * src/z80/gen.c: added AOP_IS_PAIRPTR,
3024 (_pop): only pop valid pairs, see gencjneshort,
3025 (gencjneshort): return pair that still needs to be popped, restructured,
3026 (gencjne, genCmpEq): call _pop
3028 2007-02-23 Raphael Neider <rneider AT web.de>
3030 * device/include/pic/pic14devices.txt: 16f684 has only one config word
3032 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3034 * device/include/mcs51/P89LPC925.h: Added.
3036 2007-02-18 Raphael Neider <rneider AT web.de>
3038 * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
3040 2007-02-17 Borut Razem <borut.razem AT siol.net>
3042 * support/cpp2/directives.c, support/cpp2/version.c:
3043 synchronized with GCC CPP 4.1.2
3045 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3047 * src/mcs51/rtrack.h,
3048 * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
3049 by checking the strings passed by emitcode() to the assembler.
3050 Feel free to change. This in part addresses RFE #482179.
3051 Set environment variable SDCC_RTRACK to enable.
3052 * src/mcs51/gen.c: inserted hooks
3053 * src/mcs51/ralloc.h: added two members to struct regs
3054 * support/regression/tests/regtrack.c: added
3056 2007-02-14 Borut Razem <borut.razem AT siol.net>
3058 * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
3059 * Makefile.in: applied patch from Makefile related part of
3060 #1469393: Compiler does not initialize static data
3062 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
3064 * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
3065 for better fix of bug 1273984, compiles pic16 rand.c
3067 2007-02-12 Borut Razem <borut.razem AT siol.net>
3069 * src/pic16/main.c: fixed pic16 standard library directory bug
3071 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3073 * src/hc08/gen.c (genSwap): fix swap regression test
3075 2007-02-10 Borut Razem <borut.razem AT siol.net>
3077 * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
3079 * support/regression/tests/bug-1654060.c: added regression test for
3082 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
3084 * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3085 bit moves in return statement
3087 2007-02-09 Borut Razem <borut.razem AT siol.net>
3089 * src/SDCC.y: fixed bug #1654060 typedef within function causes
3092 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3094 * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3095 * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3097 2007-02-07 Raphael Neider <rneider AT web.de>
3099 * src/pic16/devices.inc,
3100 * device/include/pic16/pic18fregs.h,
3101 * device/include/pic16/pic18f[24][34]31.h,
3102 * device/lib/pic16/libdev/pic18f[24][34]31.c,
3103 * device/lib/pic16/pics.all: added 18f[24][34]31 family
3104 * device/lib/pic16/libio/i2c.ignore: do not build i2c
3106 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3108 * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3109 can this have lived here for so many years?
3110 * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3111 fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3112 * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3114 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3116 * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3117 appended by loop induction must be at the very end of the eBBlock
3119 2007-02-05 Kevin Vigor
3121 * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3123 2007-02-05 Borut Razem <borut.razem AT siol.net>
3125 * support/regression/fwk/lib/timeout.c: native WIN32 port,
3126 implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3128 2007-02-03 Borut Razem <borut.razem AT siol.net>
3130 * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3131 applied patch #1646602 option to set default signedness of char to
3132 unsigned, added -funsigned-char command line option,
3133 thanks to Gunther Jehle
3134 * device/lib/Makefile.in: added the -f option to rm so it doesn't
3135 prompt for file deletion a few hundred times (especially the
3136 subversion files, which have ro permissions so it asks for
3137 confirmation), thanks to Simon McAuliffe;
3138 added {} + option to find in order to remove multiple files from a
3141 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3143 * device/include/mcs51/SST89x5xRDx.h: Added.
3145 2007-02-02 Raphael Neider <rneider AT web.de>
3147 * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3148 * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3150 2007-02-01 Raphael Neider <rneider AT web.de>
3152 * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3155 2007-01-31 Borut Razem <borut.razem AT siol.net>
3157 * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3158 if compiled with GCC. Thanks to Raphael Neider
3160 2007-01-31 Raphael Neider <rneider AT web.de>
3162 * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3163 operand names, handles name and (name + n) for all n,
3164 (sameBank): restructured, also check bank allocation policy,
3165 * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3166 (pic14_operandsAllocatedInSameBank): check whether to operands
3167 will be allocated into the same bank (i.e., section) to reduce
3168 BANKSEL overhead, queried from pcode.c:sameBank,
3169 (pic14printLocals): reintroduced clustering registers into a single
3170 section: all compiler generated symbols will now reside in one
3171 bank (per file), reducing BANKSEL overhead and code size,
3172 (showAllMemmaps): use local dbuf where possible
3174 2007-01-29 Raphael Neider <rneider AT web.de>
3176 * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3177 (call_libraryfunc): retrieve/create symbol and mark as used,
3178 (genFunction): mark defined functions as non-extern and add again
3179 to code memmap for later output
3180 * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3181 (pic14printLocals): reworked for new symbol emission,
3182 (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3183 showAllMemmaps): reworked symbol output using dbufs, added handling
3184 of string literals (still incomplete),
3185 (picglue): removed symbol emission, moved into showAllMemmaps,
3186 (emitSymbolSet): new workhorse for symbol output,
3187 (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3189 2007-01-29 Borut Razem <borut.razem AT siol.net>
3191 * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3192 component contains the extension separator.
3194 2007-01-28 Borut Razem <borut.razem AT siol.net>
3196 * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3198 * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3199 src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3200 src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3201 src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3202 src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3203 src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3204 src/z80/gen.c, support/Util/MySystem.c:
3205 accept slash and backslash as directory separator on WIN32 and
3208 2007-01-28 Raphael Neider <rneider AT web.de>
3210 * src/pic16/devices.inc,
3211 * device/include/pic16/pic18f[24][23]21.h,
3212 * device/include/pic16/pic18fregs.h,
3213 * device/lib/pic16/libdev/pic18f[24][23]21.c,
3214 * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3215 * device/lib/pic16/libio/adc.ignore,
3216 * device/lib/pic16/libio/i2c.ignore,
3217 * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3218 family, as gputils do not yet support the devices
3219 * device/lib/pic16/Makefile.subdir: ignore errors on install
3220 * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3221 headers and libraries from gputils .inc files
3223 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3225 * doc/sdccman.lyx: add printf_fast_f precision limitation note
3227 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3229 * doc/sdccman.lyx: add printf benchmarks
3231 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3233 * device/lib/printf_fast.c: fix %c, char promoted to int
3234 * device/lib/printf_tiny.c: fix %c, char promoted to int
3236 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3238 * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3240 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3242 * support/regression/tests/swap.c: 64 bit hosts failed
3243 * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3245 2007-01-25 Raphael Neider <rneider AT web.de>
3247 * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3248 based on absolute register address, patch by Alex Blond
3250 2007-01-22 Raphael Neider <rneider AT web.de>
3252 * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3253 emitted, do not emit them again...
3255 2007-01-22 Raphael Neider <rneider AT web.de>
3257 * src/regression/bank1.c, src/regression/compare6.c,
3258 src/regression/add.c: cosmetic changes
3259 * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3260 * src/pic/gen.c: fixed global zero and one,
3261 (aopForSym): removed unued code,
3262 (aopGet): assert aop is defined, check and use `index' of
3263 pCodeImmd operands (fixes #1630908),
3264 * src/pic/pcode.c (get_op): added output of generic pointer tag,
3265 (register_reassign): prevent accidental register unification,
3266 (ReuseReg): cosmetic changes (also above)
3267 * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3268 pic14emitStaticSeg): do not emit initialized data,
3269 (printIval*): replaced with working versions,
3270 (pic14createInterruptVect,picglue): use idata for initialized data,
3271 now init data should work in all modules (not only main()),
3272 * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3274 2007-01-21 Borut Razem <borut.razem AT siol.net>
3276 * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3277 use -fPIC or -fpic if they are supported and not ignored
3278 * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3279 * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3281 2007-01-20 Borut Razem <borut.razem AT siol.net>
3283 * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3284 implemented RFE #1470316: allow "$" in variable names
3286 2007-01-20 Raphael Neider <rneider AT web.de>
3288 * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3290 2007-01-20 Raphael Neider <rneider AT web.de>
3292 * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3293 * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3294 * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3295 * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3296 applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3297 * device/lib/pic/libdev/pic*.c,
3298 * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3299 * device/lib/pic/libdev/Makefile.in: show progress
3301 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3303 * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3304 * support/scripts/sdcc_cygwin_mingw32,
3305 * support/scripts/sdcc_mingw32,
3306 * support/scripts/build.mak: replaced --datadir by --datarootdir for
3307 conformance with autoconf 2.6
3309 2007-01-19 Raphael Neider <rneider AT web.de>
3311 * src/pic/device.c (register_map): fixed list construction
3312 * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3313 (genMod): removed case for genModbits,
3314 (genModbits): removed as now unused/unimplemented
3315 * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3317 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3319 * support/regression/tests/swap.c: added in response to #1638622
3320 * doc/sdccman.lyx: synced version, minor changes
3322 2007-01-18 Borut Razem <borut.razem AT siol.net>
3324 * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3325 thanks to Gunther Jehle
3326 * src/asm.c: don't die if the file drfined in #line couldn't be opened
3327 * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3328 src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3329 use filename in lineno instead.
3330 * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3331 print the file name in ast_print()
3333 2007-01-18 Borut Razem <borut.razem AT siol.net>
3335 * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3337 * src/SDCC.lex: stringLiteral() returns const char pointer,
3338 EOF detection in stringLiteral(), fixed asmbuf memory leak,
3339 fixed column counting
3340 * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3341 accept const char pointer as parameter
3342 * src/SDCCdwarf2.c: corrected buffer size
3344 2007-01-17 Borut Razem <borut.razem AT siol.net>
3346 * support/Util/dbuf_string.c: fixed for amd64
3348 2007-01-15 Borut Razem <borut.razem AT siol.net>
3350 * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3351 removed terminal symbol ELIPSIS, since it was never generated by the
3352 lexer and it was wrongly used in parameter_identifier_list rule
3354 2007-01-15 Raphael Neider <rneider AT web.de>
3356 * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3357 code page and data banking description
3358 * src/pic/genarith.c,
3359 * src/pic/gen.h: removed bit arithmetic functions,
3360 updated exit(1) to exit(EXIT_FAILURE)
3361 * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3362 * device/include/pic16/pic18f2455.h,
3363 * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3364 TRISD and TRISE, fixed/added some bit names
3365 * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3366 * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3367 updated pic18f2455.{c,h} instead of duplicating them
3369 2007-01-14 Borut Razem <borut.razem AT siol.net>
3371 * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3372 Cannot debug files that contain spaces in the path name
3373 by converting spaces in asm file name to underscores
3375 2007-01-13 Borut Razem <borut.razem AT siol.net>
3377 * doc/sdccman.lyx: fixed format errors
3379 2007-01-10 Borut Razem <borut.razem AT siol.net>
3381 * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3382 codeseg/constseg #pragma fail
3383 * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3384 * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3385 suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3386 suppoprt/cpp2/sdcpp.[ch]: house cleaning
3388 2007-01-09 Borut Razem <borut.razem AT siol.net>
3390 * get rid of diagnistic.[ch], pretty-print.[ch],
3391 c-pretty-print.[ch], ... used just for error, warning, ...
3393 * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3394 suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3395 suppoprt/cpp2/pretty-print.[ch]:
3397 * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3398 suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3399 suppoprt/cpp2/sdcpp.dsp:
3402 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3404 * device/lib/printf_large.c (output_float): removed recursion,
3405 use smaller buffer on stack for mcs51,
3406 fixed bug printing 1.96
3407 * support/regression/tests/snprintf.c: added test
3409 2007-01-07 Borut Razem <borut.razem AT siol.net>
3411 * use dynamic memory buffers instead temporary files
3412 * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3414 * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3415 src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3416 src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3417 src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3418 src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3419 src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3420 src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3421 src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3422 src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3423 src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3424 src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3425 support/Util/dbuf.c, support/Util/dbuf.h:
3427 * .version, sdcc.spec: bumped version to 2.6.4
3429 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3431 * src/port.h: added TARGET_Z80_LIKE macro
3432 * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3433 output PSEG location if --xram-loc or --xstack-loc was used
3434 * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3436 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3438 * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3439 * as/as_z80.dsp, as/z80/as_z80.dsp,
3440 * as/asx8051.dsp, as/mcs51/asx8051.dsp,
3441 * sdcc.dsw: moved project files into subdir
3442 * as/hc08/as_hc08.dsp,
3443 * as/hc08/Makefile.bcc,
3444 * as/hc08/Makefile.in,
3445 * as/mcs51/Makefile.bcc,
3446 * as/mcs51/Makefile.in,
3447 * as/z80/Makefile.bcc,
3448 * as/z80/Makefile.in,
3449 * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3452 * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3455 * as/mcs51/asmain.c,
3457 * as/z80/assym.c: removed include "strcmpi.h"
3458 * as/hc08/strcmpi.c,
3459 * as/hc08/strcmpi.h,
3460 * as/mcs51/strcmpi.c,
3461 * as/mcs51/strcmpi.h,
3462 * support/Util/strcmpi.c,
3463 * support/Util/strcmpi.h: removed files
3464 * as/strcmpi.c: added as_strncmpi()
3466 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3468 * sdcc.dsw: Added some dependencies on project config.dsp
3470 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
3472 * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
3473 with [di]ram_start to fix a regresion
3475 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3477 * configure.in: added missing mcs51 in status output
3478 * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
3480 * debugger/mcs51/clean.mk (distclean): remove config.h
3481 * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
3482 * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
3483 options.h, s-options-h and options.c
3484 * support/cpp2/clean.mk: unused, removed
3485 * Makefile.common.in,
3488 * as/hc08/Makefile.in,
3490 * as/mcs51/Makefile.in,
3491 * as/mcs51/clean.mk,
3494 * as/z80/Makefile.in,
3496 * as/link/Makefile.in,
3497 * as/link/hc08/Makefile.in,
3498 * as/link/hc08/clean.mk,
3499 * as/link/mcs51/Makefile.in,
3500 * as/link/mcs51/clean.mk,
3501 * as/link/z80/Makefile.in,
3502 * as/link/z80/clean.mk,
3503 * as/link/z80/conf.mk,
3504 * debugger/mcs51/Makefile.in,
3505 * debugger/mcs51/clean.mk,
3506 * device/include/Makefile.in,
3507 * device/lib/Makefile.in,
3508 * device/lib/mcs51/Makefile.in,
3509 * device/lib/pic/Makefile.in,
3510 * device/lib/pic/Makefile.common.in,
3511 * device/lib/pic/Makefile.subdir,
3512 * device/lib/pic/Makefile.rules,
3513 * device/lib/pic16/libio/Makefile.in,
3514 * device/lib/pic16/Makefile.subdir,
3515 * device/lib/pic16/libdev/Makefile.in,
3516 * device/lib/pic16/Makefile.rules,
3517 * device/lib/pic16/Makefile.common.in,
3518 * sim/ucsim/avr.src/Makefile.in,
3519 * sim/ucsim/main_in.mk,
3520 * sim/ucsim/cmd.src/Makefile.in,
3521 * sim/ucsim/doc/Makefile.in,
3522 * sim/ucsim/gui.src/Makefile.in,
3523 * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3524 * sim/ucsim/gui.src/serio.src/Makefile.in,
3525 * sim/ucsim/hc08.src/Makefile.in,
3526 * sim/ucsim/libltdl/Makefile.in,
3527 * sim/ucsim/s51.src/Makefile.in,
3528 * sim/ucsim/sim.src/Makefile.in,
3529 * sim/ucsim/sim.src/conf.mk,
3530 * sim/ucsim/xa.src/Makefile.in,
3531 * sim/ucsim/z80.src/Makefile.in,
3535 * support/cpp2/Makefile.in,
3536 * support/librarian/Makefile.in,
3537 * support/librarian/clean.mk,
3538 * support/makebin/Makefile.in,
3539 * support/makebin/clean.mk,
3540 * support/packihx/Makefile.in,
3541 * support/regression/Makefile.in,
3542 * support/regression/ports/ds390/spec.mk,
3543 * support/regression/ports/gbz80/spec.mk,
3544 * support/regression/ports/hc08/spec.mk,
3545 * support/regression/ports/mcs51/spec.mk,
3546 * support/regression/ports/mcs51-large/spec.mk,
3547 * support/regression/ports/mcs51-medium/spec.mk,
3548 * support/regression/ports/mcs51-xstack-auto/spec.mk,
3549 * support/regression/ports/pic14/spec.mk,
3550 * support/regression/ports/pic16/spec.mk,
3551 * support/regression/ports/mcs51-stack-auto/spec.mk,
3552 * support/regression/ports/ucz80/spec.mk,
3553 * support/regression/ports/xa51/spec.mk,
3554 * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3555 adding a slash after $(top_builddir) and/or adding @datarootdir@
3557 * debugger/mcs51/configure.in,
3558 * device/lib/pic/configure.in,
3559 * device/lib/pic16/configure.in,
3560 * sim/ucsim/configure.in,
3561 * support/cpp2/configure.in,
3562 * support/packihx/configure.in: changed AC_PREREQ to 2.60
3564 * debugger/mcs51/configure,
3565 * device/lib/pic/configure,
3566 * device/lib/pic16/configure,
3567 * sim/ucsim/configure,
3568 * support/cpp2/configure,
3569 * support/packihx/configure: generated with autoconf 2.60
3571 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3573 * as/link/hc08/lkihx.c (newArea),
3574 * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3576 2007-01-02 Borut Razem <borut.razem AT siol.net>
3578 * doc/sdccman.lyx: documented #pragma sdcc_hash
3579 * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3581 * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3583 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3585 * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3586 empty 'while'-loop to work correctly, see regression test 'while.c'
3587 * support/regression/tests/while.c: added
3589 2007-01-01 Borut Razem <borut.razem AT siol.net>
3591 * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3592 support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3593 support/cpp2/libcpp/sdcpp.c:
3594 sdcpp specific pragma/directive/option handling moved to sdcpp.c
3595 * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3596 * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3598 2006-12-31 Borut Razem <borut.razem AT siol.net>
3600 * SDCPP synchronized with GCC CPP release version 4.1.1,
3601 currently the latest release:
3602 * support/cpp2/libcpp, support/cpp2/libcpp/include,
3603 support/cpp2/libcpp/include/cpp-id-data.h
3604 support/cpp2/libiberty/fopen_unlocked.c
3605 support/cpp2/libiberty/md5.c
3607 support/cpp2/opt-functions.awk
3608 support/cpp2/opt-gather.awk
3609 support/cpp2/optc-gen.awk
3610 support/cpp2/opth-gen.awk:
3612 * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3613 support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3614 support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3615 support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3616 support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3617 support/cpp2/diagnostic.h, support/cpp2/except.h,
3618 support/cpp2/hwint.h, support/cpp2/input.h,
3619 support/cpp2/intl.h, support/cpp2/move-if-change,
3620 support/cpp2/opts.c, support/cpp2/opts.h,
3621 support/cpp2/output.h, support/cpp2/prefix.c,
3622 support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3623 support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3624 support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3625 support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3626 support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3627 support/cpp2/version.c:
3629 * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3630 support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3631 support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3632 support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3633 support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3634 support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3635 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3636 support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3637 support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3638 support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3639 support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3641 * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3642 support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3643 support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3644 support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3645 support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3646 support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3647 support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3648 support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3649 support/cpp2/hashtable.h, support/cpp2/line-map.c,
3650 support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3651 support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3652 support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3653 support/cpp2/system.h:
3656 2006-12-31 Borut Razem <borut.razem AT siol.net>
3658 * configure.in, configure: fixed bug #1538756: configure dies if bison
3659 and flex are not installed, 2nd try
3661 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3663 * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3664 400.x for better code in RFE 899102
3666 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3668 * src/SDCCpeeph.c (deadMove),
3670 * src/mcs51/peep.h: renamed 'op' by 'reg'
3671 * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3672 (scan4op): small change for removeDeadMove(), added support for
3673 'callee saves' and/or PACLL function calls,
3674 (removeDeadMove): added, removes superflous 'mov r%1,%2',
3675 (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3676 left in new dispatcher mcs51DeadMove()
3677 (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3679 * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3681 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3683 * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3684 support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3686 2006-12-30 Borut Razem <borut.razem AT siol.net>
3688 * support/cpp2/spacs.h: deleted from svn
3689 * configure.in, configure: fixed bug #1538756: configure dies if bison
3690 and flex are not installed
3692 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3694 * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3695 with this z80 passes printf float test when enabled
3696 * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3698 2006-12-28 Borut Razem <borut.razem AT siol.net>
3700 * support/cpp2/config.in, support/cpp2/configure.in,
3701 support/cpp2/configure, support/cpp2/Makefile.in:
3702 fix for the solaris build
3704 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3706 * src/SDCC.y (type_specifier2, pointer),
3708 * src/SDCCsymt.c (mergeSpec, checkSClass),
3709 * support/Util/SDCCerr.c,
3710 * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3711 * support/valdiag/valdiag.py: Allow test cases to specify
3712 required language standard
3713 * support/valdiag/tests/restrict.c: New file to test restrict keyword
3714 * support/valdiag/tests/tentdecl.c: Supress empty source file error
3716 2006-12-27 Borut Razem <borut.razem AT siol.net>
3718 * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3719 * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3721 * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3723 * support/cpp2/libiberty/Makefile.bcc: updated
3724 * src/pic16/main.c: fixed #pragma udata handling
3725 * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3727 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3729 * src/SDCCpeeph.c: made labelHashEntry global,
3730 made pcDistance, FBYNAME static,
3731 (pcDistance): made static, use isComment and isLabel,
3733 (getLabelRef): added, extracted from labelRefCount(),
3734 (labelRefCount): use new getLabelRef(),
3735 (callFuncByName): made static, added deadMove,
3736 use isComment and isLabel,
3737 (newPeepRule): made static, set isLabel,
3738 (isLabelDefinition): added parameter isPeepRule to allow '%' in
3739 labels from peephole rules,
3740 (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3741 when isComment or isLabel is set
3742 * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3743 added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3745 * src/mcs51/peep.h: added
3746 * src/mcs51/peep.c: added, implements mcs51DeadMove()
3747 * src/port.h: added peep->deadMove to port structure
3748 * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3749 * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3750 deadMove, finally removed no. 1 and 2
3757 * src/hc08/gen.c: mark lines with isComment or isLabel
3758 * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3760 * sdcc.spec: bumped version to 2.6.3
3762 2006-12-26 Borut Razem <borut.razem AT siol.net>
3764 * support/cpp2/Makefile.in: added dependency on options.h
3765 * configure: regenerated
3766 * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3767 * support/cpp2/Makefile.in: added vasprintf.c
3769 2006-12-25 Borut Razem <borut.razem AT siol.net>
3771 * SDCPP synchronized with GCC CPP release version 3.4.6,
3772 the latest release before 4.x:
3773 * support/cpp2/Makefile.in, support/cpp2/config.h,
3774 support/cpp2/configure, support/cpp2/configure.in,
3775 support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3776 support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3777 support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3778 support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3779 support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3780 support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3781 support/cpp2/cpptrad.c, support/cpp2/except.h,
3782 support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3783 support/cpp2/hwint.h, support/cpp2/intl.h,
3784 support/cpp2/line-map.c, support/cpp2/line-map.h,
3785 support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3786 support/cpp2/output.h, support/cpp2/prefix.c,
3787 support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3788 support/cpp2/system.h, support/cpp2/version.c:
3790 * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3791 support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3792 support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3793 support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3794 support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3795 support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3796 support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3797 support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3798 support/cpp2/move-if-change, support/cpp2/opts.c,
3799 support/cpp2/opts.h, support/cpp2/opts.sh,
3800 support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3801 support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3802 support/cpp2/win32, support/cpp2/win32/dirent.c,
3803 support/cpp2/win32/dirent.h:
3805 * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3806 * support/cpp2/sdcpp.h: renamed from sdcc.h
3807 * sdcppinit.c: deleted
3809 2006-12-23 Borut Razem <borut.razem AT siol.net>
3811 * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3812 support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3813 preproc.c: an other try to fix bug #982435: introduced
3814 -pedantic-parse-number command line option and pedantic_parse_number
3817 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3819 * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3821 (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3822 corrected overlayed areax addresses, warn about memory overlaps
3823 * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3832 * src/port.h: added xabs_name and iabs_name
3833 * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3834 (glue, emitMaps): create and emit maps d_abs and i_abs
3835 * src/SDCCglue.h: cosmetic changes
3836 * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3838 * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3839 (allocDefault): put absolute, initialized globals in them
3840 * support/regression/tests/absolute.c: added absolute bdata test
3841 * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3843 2006-12-20 Borut Razem <borut.razem AT siol.net>
3845 * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3846 * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3847 added regression test for bug #982435
3849 2006-12-18 Borut Razem <borut.razem AT siol.net>
3851 * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3852 * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3853 small cosmetic changes
3854 * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3855 * support/regression/tests/bug-1351710.c: added regression test
3857 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3859 * doc/sdccman.lyx: added the long missed iCode table
3860 "<where is figure II?>", added links to wiki
3862 2006-12-17 Borut Razem <borut.razem AT siol.net>
3864 * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3865 src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3866 support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3867 unified table driven pragma handling, pragma argument type checking
3868 * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3869 current one - version 1.1.3
3870 * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3872 2006-12-13 Raphael Neider <rneider AT web.de>
3874 * src/pic/device.h: removed AssignedMemory structure and macros
3875 * src/pic/device.c: removed global finalMapping (linker assigns
3877 (register_map): add SFRs to remembered memRanges
3878 (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3879 assignFixedRegisters,assignRelocatableRegisters): removed,
3880 (setMaxRAM,validAddress): adapted accordingly,
3881 (pic14_hasSharebank,pic14_getSharedStack): only report and use
3882 reasonably sized sharebanks,
3883 * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3884 (allDefsOutOfRange): removed unused code,
3885 * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3887 * src/pic/pcode.c (register_reassign): removed recursion warning,
3888 fired far too often,
3889 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3890 to use existing pic14_stringInSet() to avoid duplicate symbols,
3891 tidied up the code a bit,
3892 (pic14printLocals): added in symmetry to printExterns, replaces
3893 writeUsedRegs more or less,
3894 (picglue): call new pic14_printLocals(),
3895 * device/include/pic/pic*.h: removed #pragma memmap directives,
3896 information gathered from include/pic/pic14devices.txt
3897 * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3899 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3901 * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3903 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3905 * device/include/mcs51/cc2430.h: fixed missing ';'
3907 2006-12-10 Raphael Neider <rneider AT web.de>
3909 * device/lib/pic16/libc/stdio/vfprintf.c,
3910 * device/lib/pic16/libc/stdio/printf_small.c,
3911 * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3912 char arguments, as char varargs are cast to int by the caller,
3913 hopefully fixes #1604915 (other device libraries are still affected)
3915 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3917 * src/mcs51/ralloc.c (packRegsForAssign),
3918 * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3920 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3922 * device/include/malloc.h: removed init_dynamic_memory
3923 * device/lib/malloc.c: made init_dynamic_memory static and automatically
3924 call it once from malloc. Also use _sdcc_heap[] from _heap.c
3925 * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3926 * device/lib/libsdcc.lib,
3927 * device/lib/Makefile.in,
3928 * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3929 * doc/sdccman.lyx: documented use of new _heap.c
3930 * support/regression/tests/malloc.c: removed init_dynamic_memory
3931 * src/cdbFile.c(spacesToUnderscores): new function,
3932 (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3934 * device/include/tinibios.h: removed defines for putchar and getchar
3935 * device/lib/ds390/Makefile.in: added putchar.c
3936 * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3938 2006-12-09 Borut Razem <borut.razem AT siol.net>
3940 * support/cpp2/sdcc.h: prevent multiple inclusion
3941 * support/cpp2/options.h: deleted
3943 2006-12-08 Borut Razem <borut.razem AT siol.net>
3945 * support/cpp2/sdcc.h: removed x*alloc() macros
3946 * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3947 * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3948 support/cpp2/sdcpp.sdc: x*alloc files added to the project
3949 * support/cpp2/system.h: moved #include "sdcc.h"
3950 * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3951 support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3953 * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3954 -funsigned-char options
3955 * support/cpp2/sdcppmain.c: fixed bug 1611411
3957 2006-12-07 Borut Razem <borut.razem AT siol.net>
3959 * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3962 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3964 * src/SDCCsymt.c (addDecl): fixed bug 1609244
3965 * src/SDCCmain.c (linkEdit): fixed bug 1609279
3967 * .version: bumped to 2.6.2 because a) it's been a while
3968 b) the linker sources have moved c) the preprocessor is upgraded
3970 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3972 * support/regression/tests/snprintf.c: some checks
3973 * lib/src/printf_large.c: %bc: read char instead of int from stack
3975 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3977 * device/include/mcs51/cc2430.h: inserted _XPAGE
3979 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3981 * device/include/mcs51/cc2430.h: added
3983 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3985 * device/include/asm/default/features.h,
3986 * device/include/asm/ds390/features.h,
3987 * device/include/mcs51/at89s53.h,
3988 * device/include/ser.h,
3989 * device/include/ser_ir.h,
3990 * device/include/serial.h: changed keywords to double underscore variants,
3991 fixes bug 1590261 some more, thanks Steven Borley
3993 2006-12-01 Raphael Neider <rneider AT web.de>
3995 * src/pic/pcode.c (register_reassign): do not crash on recursive code
3996 but emit warning (recursion is not supported for pic14)
3998 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4000 * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
4001 * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
4003 2006-11-30 Raphael Neider <rneider AT web.de>
4005 * src/pic/device.c (dump_sfr): always emit symbols
4006 * src/pic/glue.c (pic14printPublics): fixed typo
4008 2006-11-30 Raphael Neider <rneider AT web.de>
4010 * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
4011 (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
4012 (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
4013 pic14_getSharedStack): NEW, evaluate the memRange entries to locate
4014 a sharebank, use a non-shared bank for the stack if none available
4015 * src/pic/device.h (struct memRange): added linked list next field,
4016 added prototypes for above functions
4017 * src/pic/ralloc.c (initStack): handle shared and banked stacks,
4018 (typeRegWithIdx): accept fixed and unfixed stack registers
4019 * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
4020 the stack, handle shared and banked stack (except for WSAVE),
4021 (insertBankSel): removed useless optimization (will never fire),
4022 (FixRegisterBanking): added optimization for devices with only one
4023 possibly aliased bank of memory, like 16f84
4024 * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
4025 devices have no SHAREBANK in the linker script
4026 * device/include/pic/pic14devices.txt: documented memmap
4027 * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
4029 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4031 * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
4032 storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
4033 genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
4034 genhc08Code): switched most of the D (debug) macros to DD (detailed
4035 debug) macros to better control clutter in the generated .asm file.
4036 * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
4037 genRightShift): fixed bug with non-constant bit shift stored to
4038 a volatile result (SF Open Discussion forum thread #1616749).
4039 Single byte case is not yet optimized.
4041 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
4043 * device/include/asm/mcs51/features.h,
4044 * device/include/malloc.h,
4045 * device/include/stdio.h: changed keywords to double underscore variants,
4048 2006-11-27 Borut Razem <borut.razem AT siol.net>
4050 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4051 support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
4052 support/cpp2/output.h, support/cpp2/cppinit.c,
4053 support/cpp2/cpplib.c, support/cpp2/cpplib.h,
4054 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4055 support/cpp2/cppdefault.c, support/cpp2/system.h,
4056 support/cpp2/cpphash.h, support/cpp2/cpplex.c,
4057 support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
4058 support/cpp2/prefix.c, support/cpp2/except.h,
4059 support/cpp2/hwint.h, support/cpp2/cppmacro.c,
4060 support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
4061 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4062 support/cpp2/version.c, support/cpp2/cppmain.c,
4063 support/cpp2/version.h, support/cpp2/hashtable.c,
4064 support/cpp2/cpperror.c:
4065 synchronized with GCC CPP release version 3.3.6,
4066 the latest where cppmain.c still exists.
4067 * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
4068 support/cpp2/sdcppinit.c: added
4070 2006-11-27 Borut Razem <borut.razem AT siol.net>
4072 * support/cpp2/cpplex.c:
4073 fixed _asm ... _endasm handling bug, introduce with GCC CPP
4075 * support/cpp2/cpplib.c: removed definitions of unused variables
4077 2006-11-26 Borut Razem <borut.razem AT siol.net>
4079 * support/cpp2/libiberty.h: commented out x*alloc() declarations
4080 since they are redefined by macros in support/cpp2/sdcc.h
4081 * support/cpp2/sdcc.h: x*alloc macro redefinition
4083 2006-11-25 Borut Razem <borut.razem AT siol.net>
4085 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4086 support/cpp2/configure, support/cpp2/Makefile.in,
4087 support/cpp2/cppfiles.c, support/cpp2/output.h,
4088 support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4089 support/cpp2/config.h, support/cpp2/cpplib.h,
4090 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4091 support/cpp2/cppdefault.c, support/cpp2/config.in,
4092 support/cpp2/system.h, support/cpp2/cpplex.c,
4093 support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4094 support/cpp2/cppdefault.h, support/cpp2/prefix.c
4095 support/cpp2/hwint.h, support/cpp2/mbchar.h,
4096 support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4097 support/cpp2/configure.in, support/cpp2/intl.h,
4098 support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4099 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4100 support/cpp2/version.c, support/cpp2/cppmain.c,
4101 support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4102 support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4103 support/cpp2/cpperror.c,
4104 support/cpp2/libiberty/safe-ctype.c,
4105 support/cpp2/libiberty/safe-ctype.h,
4106 support/cpp2/libiberty/splay-tree.c,
4107 support/cpp2/libiberty/obstack.c,
4108 support/cpp2/libiberty/lbasename.c,
4109 support/cpp2/libiberty/splay-tree.h,
4110 support/cpp2/libiberty/obstack.h:
4111 synchronized with GCC CPP release version 3.2.3,
4112 the latest before integration of cpp into gcc
4113 * support/cpp2/except.h, support/cpp2/line-map.c,
4114 support/cpp2/line-map.h,
4115 support/cpp2/libiberty/hex.c,
4116 support/cpp2/libiberty/concat.c,
4117 support/cpp2/libiberty/filenames.h: added
4118 * support/cpp2/intl.c: deleted
4120 2006-11-24 Borut Razem <borut.razem AT siol.net>
4122 * src/SDCC.y: enabled compilation of empty source file
4123 * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4124 "ISO C forbids an empty source file"
4125 * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4126 if all the code is ifdefed out.
4128 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4130 * src/hc08/gen.c (genPcall): fix for bug #1601032
4132 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4134 * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4135 * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4136 * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4137 * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4138 * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4139 * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4140 * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4141 * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4142 * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4143 * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4144 * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4145 * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4146 * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4147 * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4148 * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4149 Renamed to all upper case as per the standard set by SiLabs
4151 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4153 * device/include/mcs51/C8051F520.h: new, added
4154 * device/include/mcs51/compiler.h: added link about predefined macros
4156 2006-11-23 Raphael Neider <rneider AT web.de>
4158 * src/regression/Makefile: add -L path to fresh library
4159 * src/regression/simulate: emphasize FAILED output
4160 * src/regression/create_stc: output _failures from gpsim
4161 * src/regression/compare4.c,
4162 * src/regression/rotate6.c: fixed char literals,
4163 all compile, all run =8-D
4165 * src/pic/pcode.h: added isPCASMDIR macro
4166 * src/pic/gen.c (genAnd): fixed bit offset
4167 * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4168 packBits): unified register numbering schemes,
4169 (newReg): do not insert stack registers into hash table,
4170 (initStack): unpinned pseudo stack, simplified,
4171 (typeRegWithIdx): fixed retrieval of stack registers,
4172 * src/pic/pcode.c (addpCodeComment,sameBank): added,
4173 (pCodeReplace): removed invalid assertion,
4174 (insertPCodeInstruction): fixed newly added labels,
4175 (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4176 FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4177 DumpFlow): removed unsed (broken?) code,
4178 (insertBankSel): prevent STATUS from being BANKSELed,
4179 (FixRegisterBanking): rewritten from scratch, implemented generic
4180 optimizations (suppress BANKSELs to same register and to registers
4181 present in all banks),
4182 (AnalyzeBanking): update flow after BANKSELection
4184 * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4185 sharebank, let linker place it, mark STKxx symbols as emitted
4187 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4189 * src/regression/arrays.c,
4190 * src/regression/bank1.c,
4191 * src/regression/bool2.c,
4192 * src/regression/compare7.c,
4193 * src/regression/compare8.c,
4194 * src/regression/compare9.c,
4195 * src/regression/compare10.c,
4196 * src/regression/configword.c,
4197 * src/regression/for.c,
4198 * src/regression/mult1.c,
4199 * src/regression/pointer1.c,
4200 * src/regression/rotate6.c,
4201 * src/regression/string1.c,
4202 * src/regression/struct1.c,
4203 * src/regression/Makefile: make PIC14 regression tests run again
4204 (3 fail, 6 won't compile)
4206 2006-11-21 Raphael Neider <rneider AT web.de>
4208 * device/include/pic16/pic18f4550.h,
4209 * device/include/pic16/pic18f4455.h,
4210 * device/lib/pic16/libdev/pic18f4550.c,
4211 * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4212 * configure.in: removed superfluous closing bracket
4214 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4216 * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4219 2006-11-21 Raphael Neider <rneider AT web.de>
4221 * src/pic/device.{c,h}: added pic14_getPIC()
4222 * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4223 (genAnd): added PIC code for one case, fixes #1597044
4224 * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4225 SFRs that are present in all banks (e.g., STATUS)
4227 2006-11-20 Raphael Neider <rneider AT web.de>
4229 * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4230 INCFSZ/INCFSZW and declared them as changing Z bit,
4231 (insertPCodeInstruction): correctly invert the above instructions,
4233 (DoBankSelect): don't panic on po_immediates
4235 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4238 * as/link/mcs51/lkihx.c (newArea),
4239 * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4240 * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4242 2006-11-11 Raphael Neider <rneider AT web.de>
4244 * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4245 bitfield symbols, fixes #1579535 (once more...).
4247 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4249 * support/regression/generate-cases.py,
4250 * support/regression/fwk/include/testfwk.h,
4251 * support/regression/fwk/lib/testfwk.c: used code pointers,
4252 (about 50kByte less code generated for mcs51)
4254 2006-11-06 Borut Razem <borut.razem AT siol.net>
4256 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4257 debugger/mcs51/configure: fixed failed check because the function
4258 rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4259 who submitted the patch for gpsim.
4260 * debugger/mcs51/configure.in: removed the result message
4261 * debugger/mcs51/Makefile.in: fixed the config.status warning
4262 "... seems to ignore the --datarootdir setting"
4264 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4266 * device/include/mcs51/c8051f020.h,
4267 * device/include/mcs51/c8051f040.h,
4268 * device/include/mcs51/c8051f060.h,
4269 * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4270 * src/z80/gen.c (gencjneshort),
4271 * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4273 2006-10-31 Borut Razem <borut.razem AT siol.net>
4275 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4276 debugger/mcs51/configure: get readline version
4278 2006-10-30 Borut Razem <borut.razem AT siol.net>
4280 * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4281 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4282 debugger/mcs51/configure: locate readline even when cross compiling
4283 * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4285 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4287 * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4290 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4292 * device/include/malloc.h,
4293 * device/lib/calloc.c,
4294 * device/lib/free.c,
4295 * device/lib/malloc.c,
4296 * device/lib/realloc.c: moved definition of struct into sources
4297 * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4299 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4301 * as/asx8051.dsp: corrected output directories
4302 * as/link/hc08: new directory for hc08 linker
4303 * as/hc08/aslink.h, as/link/aslink.h,
4304 * as/hc08/aslink.mak, as/link/hc08/aslink.mak,
4305 * as/hc08/clean.mk, as/link/hc08/clean.mk,
4306 * as/hc08/link_hc08.dsp, as/link/hc08/link_hc08.dsp,
4307 * as/hc08/lkaomf51.c, as/link/hc08/lkaomf51.c,
4308 * as/hc08/lkarea.c, as/link/hc08/lkarea.c,
4309 * as/hc08/lkdata.c, as/link/hc08/lkdata.c,
4310 * as/hc08/lkelf.c, as/link/hc08/lkelf.c,
4311 * as/hc08/lkihx.c, as/link/hc08/lkihx.c,
4312 * as/hc08/lklibr.c, as/link/hc08/lklibr.c,
4313 * as/hc08/lkmain.c, as/link/hc08/lkmain.c,
4314 * as/hc08/lkmem.c, as/link/hc08/lkmem.c,
4315 * as/hc08/lkrloc.c, as/link/hc08/lkrloc.c,
4316 * as/hc08/lks19.c, as/link/hc08/lks19.c,
4317 * as/hc08/Makefile.aslink, as/link/hc08/Makefile.aslink,
4318 * as/hc08/Makefile.bcc, as/link/hc08/Makefile.bcc,
4319 * as/hc08/Makefile.in, as/link/hc08/Makefile.in,
4320 * as/link/hc08/conf.mk,
4324 * sdcc.dsw: moved hc08 linker to as/link/hc08
4325 * as/hc08/lkeval.c, as/link/mcs51/lkeval.c, as/link/lkeval.c,
4326 * as/hc08/lkhead.c, as/link/mcs51/lkhead.c, as/link/lkhead.c,
4327 * as/hc08/lklex.c, as/link/mcs51/lklex.c, as/link/lklex.c,
4328 * as/hc08/lklist.c, as/link/mcs51/lklist.c, as/link/lklist.c,
4329 * as/hc08/lknoice.c, as/link/mcs51/lknoice.c, as/link/lknoice.c,
4330 * as/hc08/lksym.c, as/link/mcs51/lksym.c, as/link/lksym.c,
4331 * as/link/mcs51/aslink.dsp,
4332 * as/link/mcs51/Makefile.in: factored out the common files
4333 * as/hc08/lkstore.c: deleted, use the one already in as/link/
4334 * as/clean.mk: extra cleaning common files
4335 * as/link/mcs51/strcmpi.c, as/strcmpi.c: moved
4336 * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4337 * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4339 2006-10-29 Raphael Neider <rneider AT web.de>
4341 * src/pic/ralloc.c (newReg): create aliases for registers with
4342 multiple names to fix #1579535 and #1584001,
4343 (regWithIdx,dirregWithName): resolve aliases on lookup
4344 * src/pic/pcode.c (DoBankSelect): die with error message on failing
4346 * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4347 to prevent build errors on small devices
4349 2006-10-28 Raphael Neider <rneider AT web.de>
4351 * src/pic/gen.c (genFunction,genCall): drop "same code page"
4352 assumption within interrupt handlers, fixes #1584940
4353 * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4354 "emitted" to avoid emitting them again in udata
4356 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4358 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4361 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4363 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4364 Initialize uart only if SM0 and SM1 are zero. Also, use flag to turn
4365 on/off CR to CRLF conversion.
4367 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4369 * doc/sdccman.lyx: updated IRQ section
4371 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4373 * device/lib/serial_io.c: removed
4374 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4375 replacements for serial_io.c
4377 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4379 * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4381 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4383 * device/lib/serial_io.c: Default putchar() and getchar() for
4384 mcs51 uses serial port.
4386 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4388 * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4390 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4392 * support/regression/ports/mcs51/support.c: smaller
4393 _sdcc_external_startup()
4394 * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4396 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4398 * device/lib/gbz80/crt0.s,
4399 * device/lib/gbz80/crt0_rle.s,
4400 * device/lib/gbz80/div.s,
4401 * device/lib/gbz80/fstubs.s,
4402 * device/lib/gbz80/heap.s,
4403 * device/lib/gbz80/mul.s,
4404 * device/lib/gbz80/putchar.s,
4405 * device/lib/gbz80/stubs.s,
4406 * device/lib/z80/crt0.s,
4407 * device/lib/z80/crt0_rle.s,
4408 * device/lib/z80/div.s,
4409 * device/lib/z80/fstubs.s,
4410 * device/lib/z80/heap.s,
4411 * device/lib/z80/mul.s,
4412 * device/lib/z80/putchar.s,
4413 * device/lib/z80/stubs.s: reverted, I was mistaken
4415 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4417 * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4418 * support/regression/ports/mcs51/support.c: removed race
4419 condition on TI in _putchar allowing to use serial port mode 0
4421 2006-10-20 Borut Razem <borut.razem AT siol.net>
4423 * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4425 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4427 * device/lib/gbz80/crt0.s,
4428 * device/lib/gbz80/crt0_rle.s,
4429 * device/lib/gbz80/div.s,
4430 * device/lib/gbz80/fstubs.s,
4431 * device/lib/gbz80/heap.s,
4432 * device/lib/gbz80/mul.s,
4433 * device/lib/gbz80/putchar.s,
4434 * device/lib/gbz80/stubs.s,
4435 * device/lib/z80/crt0.s,
4436 * device/lib/z80/crt0_rle.s,
4437 * device/lib/z80/div.s,
4438 * device/lib/z80/fstubs.s,
4439 * device/lib/z80/heap.s,
4440 * device/lib/z80/mul.s,
4441 * device/lib/z80/putchar.s,
4442 * device/lib/z80/stubs.s: removed all leading underscores from area names
4444 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4446 * support/regression/ports/mcs51/support.c: use highest baudrate so the
4447 regression tests are not waiting in the simulator for simulated
4448 transmission of debug output
4450 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4452 * device/lib/printf_large.c: slightly smaller
4453 * doc/sdccman.lyx: do not use spaces within html links
4455 2006-10-16 Borut Razem <borut.razem AT siol.net>
4457 * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4458 debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4459 debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4460 debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4461 debugger/mcs51/configure:
4462 [ 1185668 ] add gnu readline support to sdcdb - enabled
4464 2006-10-16 Raphael Neider <rneider AT web.de>
4466 * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4467 fixes #1577882, removes close to all banking optimizations
4469 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4471 * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
4472 variables in code memory
4473 * support/regression/tests/absolute.c: added test for this
4475 2006-10-15 Raphael Neider <rneider AT web.de>
4477 * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
4479 (BankSelect): emit BANKSEL before touching linker-placed regs,
4482 2006-10-10 Raphael Neider <rneider AT web.de>
4484 * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4485 * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4486 * src/pic/main.c (_pic14_parseOptions),
4487 * src/pic/main.h: mostly reverted to previous state, now use results
4488 from SDCCmain.c's argument parsing
4490 2006-10-10 Borut Razem <borut.razem AT siol.net>
4492 * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
4493 debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
4494 [ 1185668 ] add gnu readline support to sdcdb -
4495 prepared for READLINE, not enabled yet,
4496 thanks to <tal.bav AT gmail.com>
4498 2006-10-10 Raphael Neider <rneider AT web.de>
4500 * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
4501 * src/pic16/devices.inc,
4502 * device/include/pic16 (pic18f[24]620.h),
4503 * device/include/pic18fregs.h,
4504 * device/lib/pic16/pics.all,
4505 * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
4506 18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
4507 Gary Plumbridge and Anton Strobl
4509 2006-10-10 Raphael Neider <rneider AT web.de>
4511 * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
4512 --stack-siz=NUM options to configure the argument passing stack
4513 * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
4514 * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
4515 (pic14_getSharebankSize): obey --stack-siz=NUM,
4516 (pic14_getSharebankAddress): obey --stack-loc=NUM
4518 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4520 * doc/sdccman.lyx: added to the manual
4521 * doc/figures/ddd_example.png: added (neither pdflatex nor
4522 most browsers seem to like the .eps file)
4524 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4526 * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4527 to /tmp and /var/tmp acc. LSB
4528 * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4530 * support/regression/tests/onebyte.c: added test
4532 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4534 * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4536 2006-10-05 Borut Razem <borut.razem AT siol.net>
4538 * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4540 - sdcc.dsw: changed property eol-style to CRLF
4541 - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4543 2006-10-04 Raphael Neider <rneider AT web.de>
4545 * device/include/pic/{pic16f84.h,pic16f84a.h},
4546 * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4547 from patch #1522504, thanks to Robas Teodor
4549 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4551 * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4554 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4556 * src/pic16/glue.c (pic16emitMaps),
4557 * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4558 * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4559 * device/lib/pic16/libc/string/memcpypgm2ram.c,
4560 * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4562 * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4563 * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4565 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4567 * support/librarian/sdcclib.c: Added option -l.
4568 * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4570 * device/lib/make51lib.bat: added. Allows building mcs51 libraries easily
4571 using Windows command prompt.
4573 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4575 * device/lib/libsdcc.lib: added module rand
4576 * src/ds390/ralloc.c (rematStr),
4577 * src/hc08/ralloc.c (rematStr),
4578 * src/mcs51/ralloc.c (rematStr),
4579 * src/z80/ralloc.c (rematStr): made output more consistent
4580 * src/mcs51/gen.c: cosmetic changes
4582 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4584 * src/port.h: added mem.cabs_name to PORT
4591 * src/z80/main.c: added cabs_name initializers
4592 * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4594 (emitMaps): emit absolutes in code memory into cabs_name
4596 * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4597 * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4598 * support/regression/fwk/include/testfwk.h: added define for at
4599 * support/regression/tests/absolute.c: added, new
4601 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4603 * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4604 optimizations, see also patch 887161 by Stas Sergeev
4605 * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4606 to be necessary anymore,
4607 (102, 103, 104, 127): renamed all occurances of bp to _bp
4609 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4611 * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4612 thanks Weston T. Schmidt for patch 1555221
4613 * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4614 * src/SDCCicode.c(geniCodeMultiply): small optimization
4616 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4618 * device/include/stdlib.h: added rand prototypes
4619 * device/lib/rand.c: new, added
4620 * device/lib/Makefile.in: added rand.c
4621 * src/z80/peeph.def,
4622 * src/z80/peeph-gbz80.def,
4623 * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4625 2006-09-20 Raphael Neider <rneider AT web.de>
4627 * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4629 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4631 * as/link/aslink.h: cosmetic changes
4632 * as/link/mcs51/Makefile.in,
4633 * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4635 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4638 * as/link/mcs51/aslink.h,
4639 * as/link/z80/aslink.h: merged and moved to as/link/
4640 * as/link/lkstore.c,
4641 * as/link/mcs51/lkstore.c: moved to as/link/
4642 * as/link/clean.mk: remove *.o
4643 * as/link/mcs51/alloc.h: deleted
4644 * as/link/mcs51/lkarea.c: added lnksect prototype
4645 * as/link/mcs51/lkdata.c,
4646 * as/link/mcs51/lklex.c,
4647 * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4648 * as/link/mcs51/lkmem.c,
4649 * as/link/mcs51/lknoice.c: removed include strcmpi.h
4650 * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4651 * as/link/mcs51/aslink.dsp,
4652 * as/link/mcs51/Makefile.aslink,
4653 * as/link/mcs51/Makefile.bcc,
4654 * as/link/mcs51/Makefile.in: updated for moved files
4655 * as/link/z80/lkarea.c,
4656 * as/link/z80/lkhead.c,
4657 * as/link/z80/lklex.c,
4658 * as/link/z80/lklibr.c,
4659 * as/link/z80/lklist.c,
4660 * as/link/z80/lkmain.c,
4661 * as/link/z80/lkrloc.c,
4662 * as/link/z80/lksym.c: synced with mcs51
4663 * as/link/z80/lkdata.c,
4664 * as/link/z80/lkeval.c,
4665 * as/link/z80/lkihx.c,
4666 * as/link/z80/lks19.c: cosmetic changes
4667 * as/link/z80/Makefile.in,
4668 * as/link/z80/linkgbz80.dsp,
4669 * as/link/z80/linkz80.dsp: updated for moved files
4671 2006-09-16 Borut Razem <borut.razem AT siol.net>
4673 * debugger/mcs51/sdcdb.c: partially fixed
4674 [ 1203664 ] sdcdb fails to open files w. two "." periods
4675 * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4676 debugger/mcs51/symtab.h: fixed indenting
4677 * configure.in, configure: up to date with latest Maarten's changes
4679 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4682 as/aslink.dsp, as/link/mcs51/aslink.dsp,
4683 as/link/mcs51/aslink.h, as/mcs51/aslink.h,
4684 as/link/mcs51/aslink.mak, as/mcs51/aslink.mak,
4685 as/link/mcs51/lkaomf51.c, as/mcs51/lkaomf51.c,
4686 as/link/mcs51/lkarea.c, as/mcs51/lkarea.c,
4687 as/link/mcs51/lkdata.c, as/mcs51/lkdata.c,
4688 as/link/mcs51/lkeval.c, as/mcs51/lkeval.c,
4689 as/link/mcs51/lkhead.c, as/mcs51/lkhead.c,
4690 as/link/mcs51/lkihx.c, as/mcs51/lkihx.c,
4691 as/link/mcs51/lklex.c, as/mcs51/lklex.c,
4692 as/link/mcs51/lklibr.c, as/mcs51/lklibr.c,
4693 as/link/mcs51/lklist.c, as/mcs51/lklist.c,
4694 as/link/mcs51/lkmain.c, as/mcs51/lkmain.c,
4695 as/link/mcs51/lkmem.c, as/mcs51/lkmem.c,
4696 as/link/mcs51/lknoice.c, as/mcs51/lknoice.c,
4697 as/link/mcs51/lkrloc.c, as/mcs51/lkrloc.c,
4698 as/link/mcs51/lks19.c, as/mcs51/lks19.c,
4699 as/link/mcs51/lkstore.c, as/mcs51/lkstore.c,
4700 as/link/mcs51/lksym.c, as/mcs51/lksym.c,
4701 as/link/mcs51/Makefile.aslink, as/mcs51/Makefile.aslink,
4702 as/link/mcs51/alloc.h,
4703 as/link/mcs51/clean.mk,
4704 as/link/mcs51/conf.mk,
4705 as/link/mcs51/Makefile.bcc,
4706 as/link/mcs51/Makefile.in,
4707 as/link/mcs51/readme.390,
4708 as/link/mcs51/strcmpi.c,
4709 as/link/mcs51/strcmpi.h,
4711 as/mcs51/Makefile.bcc,
4712 as/mcs51/Makefile.in,
4715 sdcc.dsw: moved mcs51 linker to as/link/mcs51
4717 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4720 * as/link/Makefile.in,
4721 * as/link/z80/linkgbz80.dsp,
4722 * as/link/z80/linkz80.dsp,
4729 * link/z80/aslink.h,
4730 * link/z80/clean.mk,
4732 * link/z80/linkgbz80.dsp,
4733 * link/z80/linkz80.dsp,
4734 * link/z80/lkarea.c,
4735 * link/z80/lkdata.c,
4736 * link/z80/lkeval.c,
4739 * link/z80/lkhead.c,
4742 * link/z80/lklibr.c,
4743 * link/z80/lklist.c,
4744 * link/z80/lkmain.c,
4745 * link/z80/lkrloc.c,
4748 * link/z80/Makefile.in,
4750 * sdcc.dsw: moved link/ to as/link/
4752 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4754 * as/mcs51/i51mch.c (machine): fixed warning
4756 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4758 * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4760 2006-09-09 Borut Razem <borut.razem AT siol.net>
4762 * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4763 sdcdb WIN32 native port
4764 * src/clean.mk: fixed
4766 2006-09-08 Borut Razem <borut.razem AT siol.net>
4768 * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4770 2006-09-08 Raphael Neider <rneider AT web.de>
4772 * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4773 * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4774 to gplink to disable processor mismatch warning and to allow
4775 the use of devices with only aliased (shared) memory banks,
4776 (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4778 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4780 * doc/sdccman.lyx: Some re-formating plus example on using
4781 #pragma preproc_asm +/-
4783 2006-09-07 Borut Razem <borut.razem AT siol.net>
4785 * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4788 2006-09-06 Borut Razem <borut.razem AT siol.net>
4790 * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4791 line at sdcc.nsi:153
4792 * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4794 2006-09-05 Borut Razem <borut.razem AT siol.net>
4796 * configure.in, configure: support for winsock2
4797 * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4798 debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4799 debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4800 debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4801 debugger/mcs51/symtab.h: sdcdb WIN32 native port
4803 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4805 * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4807 * support/regression/tests/bug1551947.c: new, added
4808 * src/SDCCsymt.h: strings are char* not byte*
4810 2006-09-05 Raphael Neider <rneider AT web.de>
4812 * device/lib/pic16/libdev/pic18f4550.c,
4813 device/include/pic16/pic18f4550.h: added PORTD/TRISD
4814 declarations/definitions from patch #1520949
4816 2006-09-05 Raphael Neider <rneider AT web.de>
4818 * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4819 byte-aligned bitfields, fixes #1539278
4821 2006-09-05 Raphael Neider <rneider AT web.de>
4823 * src/pic/gen.c (genReceive): skip unreferenced arguments,
4826 2006-09-04 Borut Razem <borut.razem AT siol.net>
4828 * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4829 * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4830 -mno-cygwin is a part of the compiler name
4831 * support/scripts/sdcc_mingw32: don't disable ucsim
4833 2006-09-03 Borut Razem <borut.razem AT siol.net>
4835 * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4836 * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4838 2006-09-03 Raphael Neider <rneider AT web.de>
4841 * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4842 indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4845 2006-09-01 Borut Razem <borut.razem AT siol.net>
4847 * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4848 to make ppc-osx happy
4850 2006-08-31 Borut Razem <borut.razem AT siol.net>
4852 * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4853 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4854 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4855 * support/regression/ports/ds390/spec.mk,
4856 support/regression/ports/mcs51/spec.mk,
4857 support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4858 To run regression tests in mingw environment:
4859 make DEV_NULL=NUL CC=gcc
4861 2006-08-30 Borut Razem <borut.razem AT siol.net>
4863 * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4864 sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4865 sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4866 sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4867 sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4868 sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4869 sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4870 sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4871 sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4872 sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4873 sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4874 sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4875 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4876 sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4877 sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4878 sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4879 sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4880 sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4881 sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4882 sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4883 sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4884 sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4885 sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4886 sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4887 sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4888 sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4889 sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4890 sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4891 sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4892 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4893 sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4894 sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4895 sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4896 sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4897 sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4898 sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4899 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4900 sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4901 sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4902 ucsim WIN32 native port
4904 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4906 * doc/sdccman.lyx: added note on dynamic memory heap initialization
4908 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4910 * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4911 * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4913 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4915 * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4916 * support/regression/tests/bug1546986.c: new, added
4917 * as/mcs51/.cvsignore,
4918 * debugger/mcs51/.cvsignore,
4919 * src/.cvsignore: deleted
4921 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4923 * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4926 2006-08-20 Borut Razem <borut.razem AT siol.net>
4928 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4929 removed cl_listen_console::match(), cl_console::match(),
4930 restructured cl_commander::proc_input()
4932 2006-08-16 Borut Razem <borut.razem AT siol.net>
4934 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4935 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4936 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4938 2006-08-14 Borut Razem <borut.razem AT siol.net>
4940 * support/regression/Makefile.in,
4941 support/regression/ports/pic14/gpsim.cmd,
4942 support/regression/ports/pic14/spec.mk,
4943 support/regression/ports/pic14/support.c:
4944 added pic14 regression test
4946 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4948 * as/doc/asxhtm.html: documented changed ABS behaviour
4949 * as/doc/README: fixed some typos
4951 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4953 * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4956 2006-08-12 Borut Razem <borut.razem AT siol.net>
4958 * support/regression/fwk/include/testfwk.h,
4959 support/regression/fwk/lib/testfwk.c,
4960 support/regression/generate-cases.py,
4961 support/regression/Makefile.in:
4962 regression test framework does not depend on function pointers and
4965 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4967 * device/include/stddef.h: c temporary hack to fix bug 1518273
4969 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4971 * device/include/mcs51/cc2510fx.h: added
4972 * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4975 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4977 * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4978 * as/z80/Makefile.in: added strcmpi.c
4979 * as/z80/z80adr.c: added upper case registers and lower case conditionals
4980 * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4982 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4984 * device/lib/gbz80/asm_strings.s,
4985 * device/lib/gbz80/crt0_rle.s,
4986 * device/lib/gbz80/div.s,
4987 * device/lib/gbz80/mul.s,
4988 * device/lib/gbz80/shift.s,
4989 * device/lib/z80/asm_strings.s,
4990 * device/lib/z80/crt0_rle.s,
4991 * device/lib/z80/div.s,
4992 * device/lib/z80/mul.s,
4993 * device/lib/z80/shift.s: changed to all lower case menmonics except the
4994 flags which are all upper case
4996 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4998 * as/z80/asm.h: made CASE_SENSITIVE 1
4999 * link/z80/aslink.h: made CASE_SENSITIVE 1
5000 * src/z80/gen.c (throughout): made all conditionals upper case
5001 * support/regression/tests/bug1503067.c: new
5003 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
5005 * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
5006 (shiftIntoPair): added case 2 for PAIR_IY,
5007 (setupToPreserveCarry): replaced parameters with iCode and check if
5008 PAIR_DE is in use to fix bug 1399290,
5009 (genPlus, genMinus): updated call to setupToPreserveCarry
5010 * support/regression/tests/bug1399290.c: new
5012 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
5014 * device/lib/Makefile.in (Z80SOURCES): enabled float support
5015 * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
5016 * src/ds390/gen.c (shiftRLong),
5017 * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
5018 * src/mcs51/gen.c (sameReg): changed to sameByte,
5019 (xch_a_aopGet): new,
5020 (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
5021 shiftRLong): fixed bug 1533966
5022 * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
5023 genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
5024 * support/regression/Makefile.in: disabled z80, enabled ucz80
5025 * support/regression/tests/float_trans.c: enabled test for z80 and host
5026 * support/regression/tests/shifts2.c: new, for testing bug 1533966
5028 2006-08-01 Borut Razem <borut.razem AT siol.net>
5030 * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
5031 comparison is always false due to limited range of data type
5032 on PPC64 machine (openpower-linux1) where "char = unsigned char"
5034 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
5036 * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
5037 * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
5038 * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
5039 * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
5041 2006-07-31 Borut Razem <borut.razem AT siol.net>
5043 * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
5044 sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
5045 sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
5046 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
5047 sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
5048 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
5049 sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
5050 sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
5051 enable ucsim mingw compilation. Serial port is disabled,
5052 since it uses termios.h API, which is not available on native
5055 2006-07-31 Borut Razem <borut.razem AT siol.net>
5057 * Small Device C Compiler 2.6.0 released
5058 * support/scripts/sdcc.nsi: added FULL_DOC option
5059 * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
5061 2006-07-28 Borut Razem <borut.razem AT siol.net>
5063 * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
5064 * doc/INSTALL.txt: updated
5066 2006-07-27 Borut Razem <borut.razem AT siol.net>
5068 * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
5069 device/lib/pic/libdev/Makefile.in: fixed bug
5070 [ 1438354 ] pic libsdcc: distclean doesn't work
5071 * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
5072 device/lib/pic16/libio/Makefile.in: fixed bug
5073 [ 1438344 ] pic16 lib: clean doesn't work properly
5074 * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
5076 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
5078 * device/lib/pic/libsdcc/fsdiv.c,
5079 * device/lib/pic/libsdcc/fsmul.c,
5080 * device/lib/pic16/libsdcc/float/fsdiv.c,
5081 * device/lib/pic16/libsdcc/float/fsmul.c,
5082 * device/lib/_fsdiv.c,
5083 * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
5084 * support/regression/tests/bug1520966.c: added
5085 * doc/knownbugs.html: removed [ 1520966 ] from the list
5087 2006-07-25 Borut Razem <borut.razem AT siol.net>
5089 * configure.in, configure, sdccconf_in.h: fixed bug
5090 [ 1519095 ] regression test onebyte.c fails on ppc64 host
5091 * doc/knownbugs.html: removed [ 1519095 ] from the list
5093 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5095 * doc/knownbugs.html: added, contains list of known bugs at release
5096 * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5098 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5100 * device/include/mcs51/compiler.h: added SFRX for xdata based special
5101 function registers and corrected defaults with additional warning
5102 * device/lib/malloc.c: cosmetic changes
5103 * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5104 * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5105 (fillGaps): and used it
5107 2006-07-20 Raphael Neider <rneider AT web.de>
5109 * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5110 output unless SDCCPICDEBUG is set
5111 * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5112 output if SILENT is set
5114 2006-07-11 Borut Razem <borut.razem AT siol.net>
5116 * doc/README.txt: updated
5118 2006-07-10 Borut Razem <borut.razem AT siol.net>
5120 * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5121 device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5122 in WIN32 installation
5123 * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5126 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5128 * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5129 * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5131 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5133 * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5135 2006-07-06 Borut Razem <borut.razem AT siol.net>
5137 * support/regression/tests/bitfields.c:
5138 fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5139 * support/regression/tests/constantRange.c:
5140 fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5142 2006-07-04 Borut Razem <borut.razem AT siol.net>
5144 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5146 src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5147 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5148 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5149 reverted changes from 2006-07-03
5150 * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5151 * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5152 added CPPFLAGS, used by the host port
5154 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5156 * support/regression/valdiag/tests/switch.c,
5157 * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5158 * support/regression/tests/libmullong.c: fixed for host
5159 * support/regression/ports/host/spec.mk: disable all warnings for host,
5160 SDCC runs with --less-pedantic too
5162 2006-07-03 Borut Razem <borut.razem AT siol.net>
5164 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5166 * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5167 * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5168 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5169 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5171 * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5172 sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5173 sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5174 sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5176 2006-07-02 Raphael Neider <rneider AT web.de>
5178 * src/pic16/devices.inc,
5179 * device/include/pic16/pic18fregs.h,
5180 * device/include/pic16/pic18f4550.h,
5181 * device/lib/pic16/pics.all,
5182 * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5184 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5186 * as/hc08/lkaomf51.c (OutputName),
5187 * as/mcs51/lkaomf51.c (OutputName),
5188 * as/z80/asmain.c (asmbl),
5189 * src/ds390/main.c (asmLineNodeFromLineNode),
5190 * src/hc08/ralloc.c (hc08_assignRegisters),
5191 * src/mcs51/main.c (asmLineNodeFromLineNode),
5192 * src/xa51/ralloc.c (checkRegMask),
5193 * src/xa51/gen.c (emitcode),
5194 * src/z80/gen.c (_emit2),
5195 * src/SDCCast.c (searchLitOp),
5197 * support/packihx/packihx.c,
5198 * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5199 * src/ds390/gen.c (aopPutUsesAcc),
5200 * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5201 * support/regression/tests/libmullong.c (mullong_wrapper),
5202 * src/SDCCsymt.c (powof2),
5204 * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5205 * src/SDCCsymt.h: added TYPE_TARGET_*
5206 * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5207 * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5208 SDCCast because 1) header problems 2) this is the right place
5209 * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5210 * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5213 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5215 * src/SDCCicode.h: removed buggy semicolon in unused macro
5216 * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5217 search for previous definiton of auto symbols too,
5218 (findPrevUse): fixed logic of emitWarnings
5220 2006-06-26 Raphael Neider <rneider AT web.de>
5222 * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5223 PCLATH and PCLATU on interrupts, potentially fixes #1505141
5225 2006-06-25 Raphael Neider <rneider AT web.de>
5227 * device/lib/pic/libm: NEW, added math library functions
5228 * device/lib/pic/libsdcc: NEW; added float support functions
5229 * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5230 * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5231 NEW, added math related headers
5232 * device/include/asm/pic/features.h: NEW
5233 * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5234 (popGet): allow larger offsets for AOP_PCODE,
5235 (genDataPointerSet): handle literals explicitly, more debug output,
5236 (genAssign): fixed for float using aopLiteral ;-)
5237 * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5238 GOTO initialisation routine
5239 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5240 flag on registers, fixes #1469043 (local variables do not work)
5241 * src/pic/main.c (_pic14_do_link),
5242 * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5245 2006-06-25 Borut Razem <borut.razem AT siol.net>
5247 * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5248 characters printed (not including the trailing '\0' used to end
5249 output to strings). Problem detected in regression test bug-927659.c.
5250 NOTE: printf() family functions should return int instead
5252 * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5253 specifier are printed as themselves
5254 * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5255 support flags, width and precision specifiers
5257 2006-06-24 Borut Razem <borut.razem AT siol.net>
5259 * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5260 to the list of sdcc tagrets not supporting bit type
5261 * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5262 testfor pic16 due to bug:
5263 [ 1511794 ] pic16: regression test bug-895992.c fails
5265 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5267 * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5268 * src/SDCCglue.c (initPointer), fixed bug 1496419
5269 * support/regression/tests/bug1496419.c: new, added
5271 2006-06-22 Borut Razem <borut.razem AT siol.net>
5273 * support/regression/ports/pic16/support.c: use gpsim usart module from
5274 libgpsim_modules library
5276 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5278 * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5281 2006-06-19 Raphael Neider <rneider AT web.de>
5283 * src/pic/glue.h,src/pic16/glue.h: added prototypes
5284 * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5285 pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5286 (pic14printExterns,pic14printPublics,pic16printPublics,
5287 pic16_printExterns): use new functions to emit symbols
5288 (picglue,pic16glue): emit publics before emitting externs
5289 * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5290 locally defined functions to avoid bug #1443651
5291 * support/regression/tests/bug-716242.c: removed pic16 workaround
5292 * support/regression/ports/pic16/spec.mk: ignore errors during build
5294 2006-06-19 Raphael Neider <rneider AT web.de>
5296 * src/pic/glue.h: added pic14aopLiteral prototype
5297 * src/pic/glue.c (pic14aopLiteral): return unsigned int
5298 * src/pic/gen.c: removed stdint.h dependency
5299 (aopGet): use Safe_strdup()
5300 (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5301 (genDataPointerSet): use pic14aopLiteral()
5302 * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5303 for pic16; thanks to Bernhard and Maarten
5305 2006-06-18 Borut Razem <borut.razem AT siol.net>
5307 * support/regression/tests/structflexarray.c: flexible array members
5308 not supported by gcc < 3
5309 * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5311 * src/pic/gen.c: don't include [p]strdin.h on solaris
5312 * support/Util/pstdint.h: addad svn attributes
5313 * support/regression/tests/constantRange.c,
5314 support/regression/tests/rotate.c: include inttypes.h instead
5315 stdint.h on solaris, addad svn attributes
5317 2006-06-18 Raphael Neider <rneider AT web.de>
5319 * src/SDCCsymt.c (initCSupport): change return type of divschar to
5321 * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5322 (pic16_genMinusBits): simplified sign-extension
5323 (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5324 pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5325 adjusted to correctly handle mixed-signed operands, disabled
5326 now unused multiplciation routines
5327 * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5328 (assignResultValue): added argument denoting the size of the result
5329 as returned by the function (fixes upcasts in assigning from
5330 function calls: char foo(); int i = foo();)
5331 (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5332 function result to assignResultValue
5333 (genMult): disabled inlined multiplication code
5334 (genDiv): augmented to also handle the modulus operator, fixed to
5335 handle mixed-signed operands correctly
5336 (genMod): simply call genDiv, disabled unused code
5337 (genAssign): fixed missing (sign-)extension on result
5338 * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5339 valid char operands, allow signed operands for native code, added
5340 division and modulo operator handling
5341 * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5343 As a consequence, onebyte.c (if split into two files) and muldiv.c
5344 pass regression tests.
5346 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5348 * doc/Makefile.in: two runs of makeindex seem needed to get
5349 correct page references in the index of sdccman.pdf
5350 * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5352 2006-06-17 Borut Razem <borut.razem AT siol.net>
5354 * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5356 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5358 * doc/sdccman.lyx: updated, added (porting source code, debugging),
5359 mentioned ec2drv and paulmon
5361 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5363 * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5364 consecutive abs areas
5365 (find_empty_space, allocate_space): added map to handle codemap or
5367 (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5368 absolute idata and xdata
5369 * as/mcs51/lkmem.c (summary2): updated legend
5371 2006-06-16 Raphael Neider <rneider AT web.de>
5373 * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5375 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5377 * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5379 * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5381 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5383 * src/port.h (struct PORT): added field gp_tags, to hold the tag
5384 value of generic pointers,
5394 src/z80/main.c: PORT structure, added elements for gp_tags field,
5395 * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5396 fields in the PORT structure of each port,
5397 * src/SDCCast.c (decorateType): allow processing of generic pointers
5398 for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5401 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5407 * src/pic16/pcode.c,
5409 * src/pic/pcoderegs.c,
5412 * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5413 bug 1504689 on minGW
5415 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5417 * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5419 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5421 * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5423 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5425 * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5428 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5430 * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5431 to a char variable. Fixed bug #1504211
5432 * device/include/pic16/adc.h,
5433 device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5434 and fixed bug #1364390
5436 2006-06-10 Borut Razem <borut.razem AT siol.net>
5438 * CVSROOT: removed the CVS left-over
5440 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5442 * as/hc08/asmain.c (asexit),
5443 * as/hc08/lkmain.c (lkexit),
5444 * as/mcs51/asmain.c (asexit),
5445 * as/mcs51/lkmain.c (lkexit),
5446 * src/SDCCglue.c (DEFSETFUNC),
5447 * src/SDCCmain.c (linkEdit, assemble),
5448 * support/librarian/sdcclib.c (AddRel),
5449 replaced unlink() by standard C remove()
5450 * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5451 * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5452 gatherImplicitVariables): new, added to fix bug 608752,
5453 (createFunction): added gatherImplicitVariables()
5454 * src/SDCCast.h: added createRMW prototype
5455 * src/SDCCsymt.h (struct symbol): added infertype
5456 * support/regression/tests/bug608752.c: new, added
5458 2006-06-10 Raphael Neider <rneider AT web.de>
5460 * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5461 multibyte dummy reads (fixes #1503234)
5463 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5465 * device/include/mcs51/compiler.h: new, added header file to enable
5466 creating common sfr definition header files for different compilers
5468 2006-06-05 Raphael Neider <rneider AT web.de>
5470 * src/pic16/{pcode.h,genarith.c}:
5471 introduced pCodeOp combining any two pCodeOps (previously only
5472 two register operands could be combined), removed pcop2 from
5473 pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
5474 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
5475 * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
5476 rewritten to use new PO_TWO_OPS
5477 * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
5478 * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
5479 (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
5480 (pic16_newpCodeOp2): NEW, create combined pCodeOp,
5481 (pic16_get_op): embraced return arg to allow #define return(x),
5482 added new case for combined opcodes
5483 (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5484 (pic16_pCode2str,pic16_getRegFrompCodeOp,
5485 pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5487 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
5489 * src/SDCCval.c (checkConstantRange): added
5490 * src/SDCCval.h: added checkConstantRange
5491 * support/Util/SDCCerr.c,
5492 * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
5493 W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
5494 * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
5495 * src/SDCCast.c (decorateType): added checkConstantRange,
5496 added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
5497 can be emitted with the correct always true/false warning,
5498 added optimization for double '!';
5499 result of decorateType() must be assigned back to the tree, because
5500 decorateType() can change the tree
5501 * src/SDCCicode.c (geniCodeLogic),
5502 (geniCodeAssign): replaced new checkConstantRange, added warnings,
5503 (checkConstantRange): removed, it was only a fragment which never
5505 * src/SDCCsymt.c (computeType): fixed promotion for
5506 "-1 < (unsigned bit) b"
5507 * src/pic/ralloc.c (packRegsForAssign),
5508 * src/pic16/ralloc.c (packRegsForAssign),
5509 * src/hc08/ralloc.c (packRegsForAssign),
5510 * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
5512 * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
5513 * support/regression/tests/constantRange.c: added
5514 * support/valdiag/tests/constantRange.c: added
5515 * support/valdiag/valdiag.py: added -DPORT_HOST=1
5517 2006-06-02 Borut Razem <borut.razem AT siol.net>
5519 * support/regression/ports/pic16/support.c: increase stack size
5521 * support/regression/Makefile.in: sort tests by name so that the
5522 resutlts can be compared on different machines / platforms
5524 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5526 * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5527 * src/ds390/gen.c (emitLabel): new, added,
5528 (genDjnz): fixed stack overflow bug,
5529 (throughout): cosmetic changes to sync with mcs51/gen.c,
5530 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5531 * src/mcs51/gen.c (genEndFunction): small optimization,
5532 (throughout): cosmetic changes to sync with ds390/gen.c
5534 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5536 * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5537 (_print_format): fixed printing pointers
5538 * src/mcs51/gen.c (emitLabel, movb): new, added,
5539 (genAssign): small optimization,
5540 (genDjnz): fixed stack overflow bug,
5541 (throughout): replaced sprintf with SNPRINTF,
5542 replaced mcs51_regWithIdx with REG_WITH_INDEX,
5543 replaced emitcode("mov", "b,...") with MOVB(...),
5544 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5545 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5546 * src/mcs51/peeph.def: added rules 140 and 264
5547 * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5548 so they may get optimized into registers
5550 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5552 * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5553 immediately when encountered,
5554 (printUsage): always use stderr even on windows
5556 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5558 * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5559 (processParms): fixed bug #1247551
5560 * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5561 parseCmdLine, main): print '--version' to stdout,
5562 print 'help' to stdout if --help is given,
5563 print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5564 arguments are given; fixed --help
5566 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5568 * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5569 * support/regression/tests/bug-1493710.c: added
5571 2006-05-27 Borut Razem <borut.razem AT siol.net>
5573 * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5575 * support/regression/ports/pic16/support.c: increase stack size
5576 from default 64 bytes to 128 bytes
5577 * support/regression/tests/staticinit.c,
5578 support/regression/tests/float.c: regression tests fully enabled
5579 for pic16 port by putting the initialized data arrays into the code
5581 * support/regression/ports/pic16/spec.mk: don't link default libraries.
5582 This was changed by mistake in the previous version.
5584 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5586 * src/pic16/gen.c (genFunction, genEndFunction): some
5587 beautifications, fixed bug with falsely restoring FSR2 in large
5588 stack model, thanks to Beau E. Cox for reporting the bug
5590 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5592 * debugger/mcs51/break.c,
5593 * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5594 use %p to print pointers, made address variables unsigned
5595 * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5596 * debugger/mcs51/symtab.c (parseSymbol): must return something
5597 * src/mcs51/gen.c (aopForSym): small optimization,
5598 moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5599 (freeAsmop): added missing break,
5600 (aopPut): removed parameter bvolatile, determine it inside the function,
5601 (saveRegisters, unsaveRegisters): small optimization,
5602 (genIpush): removed pointless check,
5603 (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5604 replaced sprintf with SNPRINTF,
5605 replaced strcpy with strncpyz,
5606 updated aopPut calls,
5607 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5608 * src/mcs51/ralloc.h: added declarations mcs51_ptrRegReq and mcs51_nRegs
5610 2006-05-24 Borut Razem <borut.razem AT siol.net>
5612 * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5613 modification of test for the pic16 port, put the array to the code
5614 memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5616 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5618 * src/pic/gen.c: MSC 6 does not have <stdint.h>. Use pstdint.h instead.
5619 * support/Util/pstdint.h: added
5621 2006-05-22 Borut Razem <borut.razem AT siol.net>
5623 * src/regression/Makefile: removed bool2.c test, added -q linker option
5624 * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5625 src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5626 src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5627 src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5628 src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5629 src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5630 src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5631 src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5632 define SUPPORT_BIT_TYPES 0, removed unused bit variables
5634 2006-05-22 Raphael Neider <rneider AT web.de>
5636 * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5637 bug #1492360 (problematic due to generic pointers, see code)
5639 2006-05-22 Borut Razem <borut.razem AT siol.net>
5641 * support/regression/ports/pic16/specs.mk: removed stack size linker
5643 * support/regression/tests/array.c,
5644 support/regression/tests/bitopcse.c,
5645 support/regression/tests/bug-908454.c,
5646 support/regression/tests/malloc.c: modified for pic16 regression test
5647 * support/regression/tests/bitfields.c:
5648 pic16 - excluded bitfileds of size > 8
5649 * support/regression/tests/bp.c: pic16 - reduced data size
5650 * support/regression/tests/bug-221100.c: pic16 - reduced data size
5651 * support/regression/tests/bug-460010.c:
5652 pic16 - used the absolute address the fits in memory
5653 * support/regression/tests/bug-716242.c:
5654 bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5655 * support/regression/tests/float.c:
5656 pic16 - excluded - data size too big
5657 * support/regression/tests/onebyte.c:
5658 pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5659 * support/regression/tests/shifts.c:
5660 pic16 - function names probably have to differ in first X characters
5662 * support/regression/tests/staticinit.c:
5663 pic16 - excluded some tests due error: no target memory available for
5666 2006-05-22 Borut Razem <borut.razem AT siol.net>
5668 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5669 second try. Thanks Stas Sergeev once more.
5671 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5673 * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5674 (genLeftShift, genRightShift): fixed bug 1491627
5675 * src/hc08/peeph.def (rules 7, 8.x): added
5676 * support/regression/tests/shifts.c (ShiftLeftByParam,
5677 ShiftRightByParam, testShiftByParam): added to test variable shifting
5679 2006-05-20 Raphael Neider <rneider AT web.de>
5681 * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5682 * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5683 (allocReg): add only new registers to dynAllocRegs,
5684 (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5685 #1489055, #1445850, and probably #1483693
5687 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5689 * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5690 bug in for-loop that didn't emit the last of CONFIG and ID registers
5692 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5694 * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5696 * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5697 1489016, 1434401 and 1490124
5698 * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5699 1489016, 1434401 and 1490124
5701 2006-05-17 Borut Razem <borut.razem AT siol.net>
5703 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5706 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5708 * device/include/mcs51/P89c51RD2.h,
5709 * device/include/mcs51/P89LPC901.h,
5710 * device/include/mcs51/P89LPC922.h,
5711 * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5713 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5715 * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5716 to fix missing stack pragma in compiled binary object file,
5718 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5720 * support/packihx/configure.in,
5721 * support/packihx/configure: removed warning, autoconf >= 2.5x can
5722 determine sizeof basic types even while cross compiling
5724 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5726 * src/avr/gen.c (aopop),
5727 * src/ds390/gen.c (aopOp),
5728 * src/hc08/gen.c (aopOp),
5729 * src/mcs51/gen.c (aopop),
5730 * src/pic16/gen.c (pic16_aopOp),
5731 * src/pic/gen.c (aopOp),
5732 * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5733 if size of operand is smaller than spill location
5735 2006-05-12 Borut Razem <borut.razem AT siol.net>
5737 * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5738 have to have CR/LF line endings even if they are checked out on *nix
5739 or on WIN32 in cygwin binmode
5741 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5743 * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5744 * device/include/ds80c390.h: added sfr16 definitions
5748 * src/ds390/ralloc.c,
5749 * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5750 fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5751 bit returning functions
5752 * support/regression/tests/sfr16.c: enabled test on ds390
5754 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5756 * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5757 * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5759 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5761 * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5762 * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5763 (cl_address_space constructor): removed expensive initialization,
5764 (cl_address_space::get_cell): extended for late initialization,
5765 (cl_address_space::*): use late initialization,
5766 (cl_address_decoder::activate): removed expensive initialization,
5767 This reduced regression test running time by 25%
5769 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5777 * support/packihx/Makefile.in,
5778 * support/packihx/clean.mk,
5779 * support/packihx/Makefile.bcc,
5780 * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5782 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5784 * src/SDCCval.c (valNot): fix for regression test failure
5785 of not.c on big endian hosts
5787 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5789 * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5791 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5793 * device/lib/mcs51/Makefile.in: changed string comparison operator
5794 to = for POSIX compliance; == is bash extension
5796 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5798 * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5801 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5803 * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5804 allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5805 * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5806 * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5807 bug report #1478657,
5809 2006-05-05 Borut Razem <borut.razem AT siol.net>
5811 * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5814 2006-05-02 Borut Razem <borut.razem AT siol.net>
5816 * doc/Makefile.in: removed *.ind dependency since there is no rule to
5817 create *.ind, which made make to fail if invoked with -j 2
5819 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5821 * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5822 Hubert Sack for patch 1479782
5824 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5826 * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5828 2006-05-01 Raphael Neider <rneider AT web.de>
5830 * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5831 (create_pic): store only prefix-free device name,
5832 (init_pic): check for device names with "16" prefix,
5834 * src/pic/device.h (struct PIC_device),
5835 * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5837 * device/include/pic/pic12f{635,675,629,683}.h,
5838 * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5839 * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5840 * device/include/pic/pic16f505.h,
5841 * device/lib/pic/libdev/pic16f505.c: removed
5842 * device/include/pic/pic14devices.txt: added support for pic12f
5843 devices, removed unsupported non 16-bit devices
5844 [above changes provided by patch from Zik Saleeba]
5845 * src/pic/*, src/pic16/*, device/include/pic16/*,
5846 device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5848 2006-05-01 Borut Razem <borut.razem AT siol.net>
5850 * configure.in, configure, doc/Makefile.in:
5851 sync with nightly build makefile - latex, dvipdf and dvips
5854 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5856 * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5857 in the library source
5859 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5861 * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5863 2006-04-28 Raphael Neider <rneider AT web.de>
5865 * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5866 * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5867 (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5868 * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5870 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5872 * device/lib/pic/libdev/Makefile.in,
5873 * device/lib/hc08/Makefile.in,
5874 * device/lib/gbz80/Makefile.in,
5875 * device/lib/z80/Makefile.in,
5876 * device/lib/ds390/Makefile.in,
5877 * device/lib/ds400/Makefile.in: added srcdir to include search path,
5878 thanks to Borut for the bug report
5880 * configure: always create doc/Makefile independent from --enable-doc
5881 * Makefile.in: always install from directory doc independent from
5883 * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5885 * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5886 * doc/Makefile.in: install *.txt if present
5887 * device/include/Makefile.in (install): added installation of pic/*.inc
5888 and pic/*.txt files again, they were erroneously removed
5890 2006-04-28 Raphael Neider <rneider AT web.de>
5892 * src/pic/{gen.c,main.h,pcode.c},
5893 * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5894 concerning signedness with casts
5896 2006-04-28 Raphael Neider <rneider AT web.de>
5898 * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5899 definition of an interrupt handler,
5900 * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5901 interrupt handler stuff from picglue() to separate routine,
5902 (picglue): enabled definition of intr handlers in files w/o main()
5904 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5906 * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5907 compilation with MSVC 2005 Express Edition (VC8)
5909 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5911 * device/lib/Makefile: fixed build of gbz80 lib
5913 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5915 * support/regression/tests/bug-460010.c,
5916 * support/regression/tests/bug-524691.c,
5917 * support/regression/tests/bug-716242.c: removed conditional defines
5918 that are already in testfwk.h
5920 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5922 * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5923 (AccAXRsh1): added, shift right by 1,
5924 (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5926 * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5928 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5930 * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5931 remove cast to same type
5932 * src/SDCCast.c (decorateType): fix for RFE 1475742,
5933 optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5935 * link/z80/Makefile: removed, they have moved to
5938 * configure.in: replaced duplicate message about ucsim by missing sdcpp
5939 * install-sh: fix bug #1204398 by setting umask 0022
5940 * device/lib/Makefile: separate build of z80 and gbz80 lib
5942 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5944 Enabled VPATH feature: changed nearly all Makefiles (149 files).
5945 See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5947 One basic decision: e.g. src/clean.mk includes further files. In order
5948 to make this work there are two solutions:
5949 - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5950 run configure on them. This way they can use
5951 'include $(srcdir)/port-clean.mk'
5952 - always include clean.mk by the Makefile at the same level. To avoid
5953 that `make clean` tries to include and build Makefile.dep the
5954 MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5955 implemented, because now even `make uninstall` doesn't create
5956 Makefile.in. clean.mk could be eliminated by pasting it in
5959 * debugger/mcs51/Makefile.in: build own objects from library sources
5960 (SLIB, SDCC) in current directory
5962 * configure, configure.in: renamed --disable-device-lib-build in
5963 --disable-device-lib; added --enable-doc, the required tools are
5964 searched by configure; added result message; the toolchain for the
5965 belonging ports are now only built, if the port is enabled.
5967 * support/regression/*: all output is written in directory gen, because
5968 the fwk and ports directories don't livet in the build tree using vpath
5970 * doc/sdccman.lyx: renamed --disable-device-lib-build to
5971 --disable-device-lib, added --enable-doc, added section VPATH
5973 * sim/ucsim/configure.in,
5974 * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5975 z80 are enabled by default
5977 2006-04-24 Raphael Neider <rneider AT web.de>
5979 * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5980 to config word, "pic14_"-prefixed some extern functions
5981 (pic14_emitConfigWord): emit __config directive(s) if assignment to
5982 config word has been found
5983 * src/pic/device.h: added prototypes
5984 * src/pic/pcode.c: added "pic14_"-prefix where needed
5985 * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5987 * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5989 (pic14emitRegularMap): ignore config words,
5990 (pic14createInterruptVect): moved generating __config directives away
5991 (picglue): have __config directives emitted
5993 2006-04-24 Borut Razem <borut.razem AT siol.net>
5995 * doc/Makefile: sync with nightly build makefile
5997 2006-04-24 Raphael Neider <rneider AT web.de>
5999 * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
6000 registers that have not been assigned proper liveranges,
6001 fixes #1469504 and #1474602,
6002 (pCodeRegOptimizeRegUsage): fixed typo in comment
6004 2006-04-24 Borut Razem <borut.razem AT siol.net>
6006 * device/examples/main8051.c: deleted - it was removed from CVS
6007 24.mar.2000 and after that modified 18.feb.2001, so it reappered
6008 after the transition to Subversion
6009 * src/SDCCalloc.h: deleted - it was removed from CVS
6010 3.feb.2001 and after that modified 18.feb.2001, so it reappered
6011 after the transition to Subversion
6012 * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
6013 sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
6014 sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
6015 sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
6017 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
6019 * as/asx8051.dsp: added mcs51/strcmpi.h
6020 * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
6021 * as/hc08/aslink.h: updated lnksect prototype
6023 * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
6025 * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
6026 (newdot): handle A_ABS
6028 * as/mcs51/asout.c (outarea): output address
6029 * as/hc08/lkaomf51.c,
6030 * as/mcs51/lkaomf51.c: disabled unused array UsageType
6032 * as/mcs51/i51pst.c,
6033 * as/z80/z80pst.c: "ABS" is not A_OVR
6034 * as/hc08/lkarea.c (newarea): read a_addr,
6035 (lnkarea): added codemap array, sort absolute areas to the front,
6036 combine all GSINITx/GSFINAL,
6037 (find_empty_space, allocate_space): new functions,
6038 (lnksect): return next address, handle absolute sections
6039 * as/mcs51/lkarea.c (newarea): read a_addr,
6040 lnksect2 prototype changed,
6041 (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
6042 (find_empty_space, allocate_space): new, factored out of lnksect2,
6043 (lnksect2): return next address, handle absolute sections
6045 * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
6046 * as/hc08/lklibr.c (addfile, fndsym),
6047 * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
6048 index out of range and detect both '\' and '/'
6049 * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
6050 * device/include/stdbool.h: removed SDCC_ds390 from check to pass
6051 regression tests (ds390 cannot return bool yet)
6052 * doc/sdccman.lyx: changed version number, document changed --no-peep,
6053 document critical interrupts on z80, document changed SDCC define
6054 * src/asm.c (_asxxxx_mapping): fixed .org directive,
6055 (_a390_mapping): added .org directive
6056 * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
6057 (genMultOneByte): fixed warnings
6058 * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
6060 * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
6061 * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
6062 (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
6063 * src/pic16/gen.h: changed prototype for pic16_popGetLabel
6064 * src/pic16/main.c: removed newReg prototype
6065 * src/pic16/pcode.c,
6066 * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
6068 * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
6070 * src/pic16/ralloc.c
6071 * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
6073 * src/pic/pcode.c (allocInternalRegister): changed parameter optype
6074 from short to PIC_OPTYPE
6075 * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
6076 * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
6077 optype from short to PIC_OPTYPE
6078 * src/port.h: made int_size unsigned to fix warnings
6079 * src/SDCC.y: fixed warning on MSVC
6080 * src/SDCCicode.c (getArraySizePtr): return unsigned int
6081 * src/SDCCopt.c (convertToFcall): fixed warnings
6082 * src/SDCCsymt.h: removed double prototype for genSymName
6083 * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
6084 offset int to fix warnings
6086 2006-04-22 Borut Razem <borut.razem AT siol.net>
6088 * doc/sdccman.lyx, */Makefile, */Makefile.in:
6089 references to CVS replaced with Subversion
6091 2006-04-21 Borut Razem <borut.razem AT siol.net>
6093 * doc/sdccman.lyx, */Makefile, */Makefile.in:
6094 references to CVS replaced with Subversion
6096 2006-04-19 Borut Razem <borut.razem AT siol.net>
6098 * src/version.awk: adapted for svn
6099 * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6100 sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6101 sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6102 /binutils-avr/etc/*.vi, *.jin: removed all properties
6103 support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6105 2006-04-19 Borut Razem <borut.razem AT siol.net>
6107 * CVS to Subversion migration completed
6109 2006-04-18 Borut Razem <borut.razem AT siol.net>
6111 * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6112 ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6114 2006-04-17 Borut Razem <borut.razem AT siol.net>
6116 * device/include/Makefile.in: added pic/*.inc to the installation
6118 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6120 * support/regression/collate-results.py: fixed output in case of
6122 * support/regression/generate-cases.py: fixed splitting of pathnames
6124 * as/hc08/lklibr.c (addfile),
6125 * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6127 2006-04-11 Raphael Neider <rneider AT web.de>
6129 * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6130 * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6131 * src/pic16/pcode.c (assignValnums): fixed #1460578
6133 2006-04-11 Raphael Neider <rneider AT web.de>
6135 * device/lib/pic/libdev/*.c,
6136 * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6137 fixes #1468739, enables compilation in --std-c99 mode
6138 * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6140 2006-04-11 Raphael Neider <rneider AT web.de>
6142 * src/pic/device.c (find_device): removed debug output
6143 (list_valid_pics): enabled verbose listing of supported devices
6144 * device/include/stdbool.h: define bool as char for pic14/16 as well
6146 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6148 * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6150 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6152 * .version: bumped version to 2.5.6
6153 * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6155 2006-04-06 Raphael Neider <rneider AT web.de>
6157 * .version: bumped version to 2.5.6 (pic14 ABI changed)
6158 * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6159 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6160 pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6161 pic14_constructAbsMap
6162 (pic14printPublics): declare absolute global symbols as global
6163 (pic14createInterruptVect),
6164 * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6165 (newReg): assume new registers unused, use correct name in
6166 hashtable (reg->name instead of name), more debugLog output
6167 * src/pic/device.h (PIC_device): added fields for verbose output
6168 * src/pic/device.c: moved device definition to pic14devices.txt,
6169 added routines for runtime parsing of pic14devices.txt,
6170 added support for second config word
6171 * src/pic/main.c (_process_pragma): removed #pragma maxram,
6172 (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6173 (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6174 (_pic14_parseOptions): moved pCodeInitRegisters here
6175 (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6176 * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6177 (pCodeInitRegisters): rewrapped comments, perpared new approach to
6178 handling the pseudo stack
6179 * device/lib/Makefile.in: ignore failures in objects-pic16,
6180 * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6181 * device/lib/pic/NEWS: document new dependency on picXXX.lib
6182 * device/lib/pic/Makefile.subdir,
6183 * device/lib/pic16/Makefile.subdir: improved clean rules
6184 * device/lib/pic/libdev/: NEW, pic14 device libraries
6185 * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6186 * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6187 * device/include/Makefile.in: create subdir and install pic14 headers
6188 * device/include/pic/p16f_common.inc: removed unused declarations
6189 * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6190 PICs from inc2h.pl v1.6,
6191 replaced BIT_AT macros with struct declarations
6192 * device/include/pic/pic14devices.txt: definition of supported devices,
6193 all above improvements contributed by Zik Saleeba, thanks
6194 * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6195 * support/scripts/sdcc.nsi: also install pic14 device libraries and
6198 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6200 * device/include/mcs51/c8051f410.h: added interrupt numbers,
6201 * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6202 thanks to Charles Olds
6204 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6206 * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6208 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6210 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6211 * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6212 * support/regression/bug1464657.c: added, new test
6214 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6216 * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6219 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6221 * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6222 --no-peep and --peep-file <file> are used don't use default rules but
6225 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6227 * src/mcs51/gen.c (genCall): fixed bug 1457608
6229 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6231 * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6232 changes seem to cause (trigger?) problems with the build system.
6234 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6236 * src/SDCCpeeph.c (operandsLiteral): new, added,
6237 (callFuncByName): inserted operandsLiteral
6238 * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6240 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6242 * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6243 * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6245 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6247 * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6248 implemented patch 1120823 Thanks to Willy De la Court (normal
6249 interrupts need an interrupt number now if they are made critical),
6250 and enabled nesting of critical functions though not for gbz80
6251 (genCritical, genEndCritical): added functions
6252 (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6253 * src/z80/mappings.i: added "ei" to all mappings
6255 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6257 * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6258 submitted by the Debian SDCC maintainer Aurelien Jarno:
6259 "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6260 archive with gcc 4.1 on mips and wrote the patch"
6262 2006-03-16 Raphael Neider <rneider AT web.de>
6264 * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6265 the left operand is shorter than the result (c* = lit-c* + int),
6267 * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6270 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6272 * src/.version: increased version number to 2.5.5
6273 * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6274 linking is done manually in pic16 port's _linkEdit,
6275 * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6276 PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6277 * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6278 allocate asmop as AOP_ACC,
6279 (aopForRemat): added parameter 'bool result' in function declaration,
6280 (pic16_aopGet): return AOP_ACC when accessing WREG,
6281 (pic16_popGetTempReg): minor modification,
6282 (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6283 'pic16_allocWithIdx',
6284 (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6285 calling function in absolute addresses,
6286 (genAssign): take into account AOP_ACC asmop,
6287 * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6288 * src/pic16/pcoderegs.c: some debug functions and lines added,
6289 * src/pic16/ralloc.c (decodeRegType): added but commented out,
6290 * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6292 * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6293 call to allocReg, not by manually allocating a new one,
6294 (pic16_assignRegisters): now before going through the register
6295 allocating functions mark all registers as free. This eliminates some
6296 side effects resulting from peephole parser done earlier in the backbone
6298 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6300 * src/SDCCicode.c (geniCodeLogic),
6301 * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6303 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6305 * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6306 (genSend): bugfix, do not allocate and free twice,
6307 (shiftRLong): handle partially overlapping aops
6308 * support/regression/tests/bitopcse.c: fixed warning redefined idata
6310 2006-03-08 Borut Razem <borut.razem AT siol.net>
6312 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6315 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6317 * support/regression/tests/bug1409955.c: new, added
6318 * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6319 * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6320 (aopForSym, aopOp): increment asmop.allocated if reused,
6321 (freeAsmop): decrement asmop.allocated and check for zero instead of
6323 (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6324 (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6325 genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6326 genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6327 genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6328 genSignedRightShift, genRightShift, genDataPointerGet,
6329 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6330 genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6331 in reverse order from allocation,
6332 (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6333 added swappedLR to keep track
6334 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6335 pdata & code for GCC, z80, gbz80 & hc08
6336 * support/regression/tests/zeropad.c: moved defines to testfwk.h
6338 2006-03-08 Raphael Neider <rneider AT web.de>
6340 * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6342 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6344 * device/include/mcs51/c8051f410.h: new SiLabs mcu
6345 * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6346 * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6348 2006-03-06 Borut Razem <borut.razem AT siol.net>
6350 * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6351 made the linker quiet
6353 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6355 * src/pic16/gen.c (genPcall): fixed bug #1443644
6356 * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6357 which dumps before the function entry point a data byte which represents
6358 the number of the local variables used by the specified function, added
6359 'xinst' for initial support for Extended Instruction Support,
6360 * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6361 (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6362 port->fun_prefix anymore (may change later),
6363 (genFunction, genEndFunction): do not store/restore local registers for
6364 _main (this should take care the --main-return command line option in
6366 (genOr): removed some legacy pic-port instructions,
6367 * src/pic16/genarith.c (genAddLit): re-enabled old code because
6368 performing operations with SFR's causes data to be written more than
6369 once to each SFR. Perhaps SFRs should be handled in special cases...
6370 * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6372 * src/pic16/main.c (_process_pragma): stack bound checking did not take
6373 into account for stack starting position,
6374 (struct OPTIONS pic16_optionsTable): added command line argument
6375 --extended or -y for Extended Instruction Support,
6376 * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6377 (deassignLRs): *** perhaps the most important change, old 'for' code
6378 (commented out for reference), didn't account for some registers which
6379 were left marked 'not free' after a pointer operation. The change
6380 reduces register usage a lot in some cases
6382 2006-03-04 Borut Razem <borut.razem AT siol.net>
6384 * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6386 * support/regression/tests/bug-524697.c: decreased array size for
6387 mcs51 to fit into the internal RAM
6388 * support/regression/Makefile.in: a little bit more verbose
6390 2006-03-03 Borut Razem <borut.razem AT siol.net>
6392 * support/regression/fwk/lib/testfwk.c,
6393 support/regression/fwk/include/testfwk.h: introduced function
6394 _prints(), nonrecursive _printn(), call _initEmu() from main()
6395 * support/regression/ports/gbz80/support.asm,
6396 support/regression/ports/ucz80/support.asm,
6397 support/regression/ports/z80/support.asm,
6398 support/regression/ports/ds390/support.c,
6399 support/regression/ports/hc08/support.c,
6400 support/regression/ports/host/support.c,
6401 support/regression/ports/mcs51/support.c,
6402 support/regression/ports/xa51/support.c: added empty _initEmu()
6404 * support/regression/ports/pic16/gpsim.cmd,
6405 support/regression/ports/pic16/spec.mk,
6406 support/regression/ports/pic16/support.c,
6407 support/regression/Makefile.in: added pic16 regression test
6409 2006-03-01 Raphael Neider <rneider AT web.de>
6411 * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6412 genConstPointerGet): use safe way of generating MOVFF to cover
6413 literals as well as registers, fixes bug #1440527
6414 * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6416 (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6417 more correctly, fixes bug #1232186
6418 (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6419 * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6420 gplink guess the correct processor in more cases, applied patch
6421 from Till Riedel attached to and fixing bug #1436552
6423 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6425 * support/regression/tests/array.c: added, contains check for #1434401
6426 * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6428 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6430 * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6431 * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6432 * device/include/mcs51/c8051f326.h,
6433 * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6434 * device/include/mcs51/c8051f000.h,
6435 * device/include/mcs51/c8051f018.h,
6436 * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6437 PCON_IDLE,PCON_STOP and added sfr16 definitions
6439 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6441 * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6442 genGetWord): fixed bug 1409955
6444 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6446 * device/include/hc08/mc68hc908gp32.h,
6447 * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6449 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6451 * src/SDCCast.c (constExprValue): return NULL if not a value
6452 * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6453 * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6454 * support/regression/tests/bitfields.c: enabled signed bitfield for all
6456 2006-02-13 Borut Razem <borut.razem AT siol.net>
6458 * src/regression/ptrarg.c: added, fails due to bug #1430967
6459 * src/regression/Makefile: ptrarg.c added, ...
6461 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6463 * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6464 * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6466 2006-02-11 Borut Razem <borut.razem AT siol.net>
6468 * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6469 print "Processor: xxx" message to stdout only if --verbose
6471 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6473 * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
6474 * support/regression/tests/bug1426356.c: added
6475 * support/regression/tests/bitfields.c: removed 2 tests
6477 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6479 * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
6480 * device/include/mcs51/c8051f330.h,
6481 * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
6482 PCON_IDLE,PCON_STOP and added sfr16 definitions
6483 * device/lib/_divsint.c,
6484 * device/lib/_divuint.c,
6485 * device/lib/_divulong.c,
6486 * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
6487 register bank bug for small stackauto
6489 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6491 * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
6493 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
6495 * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
6496 * all.dsp: corrected several bin paths
6497 * device/include/mcs51/c8051f120.h,
6498 * device/include/mcs51/c8051f300.h,
6499 * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
6500 to PCON_IDLE,PCON_STOP
6501 * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
6502 * device/lib/printf_large.c (output_float): fixed bug 1388703
6503 * support/regression/tests/bug1057979.c: added test for bug 1388703
6505 2006-02-08 Raphael Neider <rneider AT web.de>
6507 * src/pic/pcode.c (pciTRIS): fixed typo,
6508 (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
6509 (LinkFlow): fixed handling of flows that end in a call,
6510 (ReuseReg): perform safety check earlier
6511 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
6512 to work with flows at the beginning of a pBlock,
6513 fixes #1426557 (Symbol not previously defined),
6514 (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
6516 (RemoveUnusedRegisters): update register usage info
6517 * src/pic/ralloc.c (newReg): prevent duplicate registers from being
6518 created, reuse existing ones instead
6519 * src/pic/gen.c (genPcall): fixed #1424719
6521 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
6523 * link/z80/lkmain.c,
6525 * link/z80/lkdata.c,
6526 * link/z80/aslink.h: fixed build on current cygwin:
6527 replaced getline() by lk_getline()
6529 2006-02-01 Borut Razem <borut.razem AT siol.net>
6531 * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6532 src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6533 src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6534 src/regression/bool1.c, src/regression/bool2.c,
6535 src/regression/bool3.c, src/regression/call1.c,
6536 src/regression/compare.c, src/regression/compare10.c,
6537 src/regression/compare2.c, src/regression/compare3.c,
6538 src/regression/compare4.c, src/regression/compare5.c,
6539 src/regression/compare6.c, src/regression/compare7.c,
6540 src/regression/compare8.c, src/regression/compare9.c,
6541 src/regression/configword.c, src/regression/for.c,
6542 src/regression/inline.c, src/regression/mult1.c,
6543 src/regression/nestfor.c, src/regression/or1.c,
6544 src/regression/pointer1.c, src/regression/ptrfunc.c,
6545 src/regression/rotate1.c, src/regression/rotate2.c,
6546 src/regression/rotate3.c, src/regression/rotate4.c,
6547 src/regression/rotate5.c, src/regression/rotate6.c,
6548 src/regression/rotate7.c, src/regression/string1.c,
6549 src/regression/struct1.c, src/regression/sub.c,
6550 src/regression/sub2.c, src/regression/switch1.c,
6551 src/regression/while.c, src/regression/xor.c,
6552 src/regression/create_stc, src/regression/simulate,
6553 src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6555 * src/regression/gpsim_assert.h: added
6557 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6559 * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6560 ((void (code *) (void)) 0) ();
6569 * as/mcs51/aslink.h,
6571 * as/mcs51/asmain.c,
6572 * as/mcs51/lkdata.c,
6574 * as/mcs51/lkmain.c,
6577 * as/z80/asmain.c: fixed build on current cygwin:
6578 replaced getline() by as_getline()
6580 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6582 * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6583 declarator in the symbol chain
6585 * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6586 parameter list for function pointers
6587 * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6588 * support/regression/tests/bug-716242.c: added
6590 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6592 * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6594 * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6596 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6598 * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6599 inifinitely recurseable, added static
6600 * support/regression/tests/bug-1408066.c: added
6602 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6605 * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6606 renamed, added possibility to create "postLoopLbl"-labels
6607 * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6608 newiTempLoopHeaderLabel
6609 * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6610 isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6611 addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6612 hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6613 findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6614 (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6615 (basicInduction): fixed bug #136564, made static,
6616 (loopInduction): changed parameter of basicInduction, made static,
6617 (addPostLoopBlock): added
6618 * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6619 loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6621 * support/regression/tests/bug-136564.c: added
6622 * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6623 --std-sdcc99 to LIBSDCCFLAGS
6625 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6627 * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6629 * support/regression/tests/bug-1406131.c: added
6631 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6633 * src/SDCCast.c (decorateType): fix promotion of unary minus
6634 * src/SDCCsymt.c (computeType): beautified
6635 * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6636 (valUnaryPM, valComplement): fix sign and promotion,
6637 (valNot): ANSI: result type is int (SDCC: unsigned char)
6638 * support/regression/tests/uminus.c: speedup by removing superflous
6640 * support/regression/tests/onebyte.c: added promotion and signedness
6641 tests for unary minus
6642 * support/regressions/tests/bug-477927.c: disable warning about
6643 uninitialized variables
6644 * support/regression/tests/not.c: added
6646 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6648 * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6649 * src/mcs51/gen.c (gen51Code): show final register usage after
6650 fillGaps in asm with --i-code-in-asm
6651 * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6652 markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6653 incUsed, rliveClear, adjustIChain): made static,
6654 (setFromRange): excluded because it's unused,
6655 (findPrevUseSym, markWholeLoop): added,
6656 (findPrevUse): rewritten; fixes bug 895992; now a complete search
6657 through all branches of predecessors enables sdcc to emit the warning
6658 W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6659 (rlivePoint): made static, added parameter emitWarnings which is only
6660 true during the first run out of two,
6661 (findRecursiveSucc, findRecursivePred): removed,
6662 (computeLiveRanges): made static, added parameter emitWarnings,
6663 (dumpIcRlive): added for debugging only
6664 * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6665 removed prototype of setFromRange()
6666 * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6667 in call of computeLiveRanges()
6668 * support/regression/tests/bug-895992.c: added
6669 * support/regression/tests/bug-971834.c: added
6670 * support/valdiag/tests/bug-895992.c: added
6671 * support/valdiag/tests/bug-971834.c: added
6673 2005-12-18 Raphael Neider <rneider AT web.de>
6675 * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6676 (genUnpackBits): improved code for direct operands,
6677 (genPackBits): improved code for literal assignment to bitfields
6678 and for direct destination operands (no FSR indirection),
6679 prevented redundant AND, fixes #1362800,
6680 (AccLsh): added parameter to disable masking of the result
6681 * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6682 skip instructions with side-effects (like incfsz),
6683 (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6684 * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6685 * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6688 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6690 * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6691 volatile variables as spill location
6693 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6695 * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6697 * support/regression/tests/bug-1376320.c: added
6699 2005-12-08 Raphael Neider <rneider AT web.de>
6701 * src/pic/device.c: renamed is_shared to pic14_is_shared
6702 * src/pic/gen.c (genIfx): re-enabled handling of sbits
6703 * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6704 (is_valid_identifier): added for above workaround
6706 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6708 * device/lib/Makefile.in: fixed to enable port-specific-objects
6709 * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6710 char, thanks Hubert Sack
6711 * doc/sdccman.lyx: documented --xstack-loc,
6712 elaborated a bit more on interrupts and pitfalls,
6713 removed "setjmp/longjmp unsupported",
6714 documented some unsupported C99 features
6715 * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6716 * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6717 if, thanks Hubert Sack
6718 * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6719 * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6721 * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6722 regression tests can report resource usage (rfe 700441)
6723 * support/regression/collate-results.py: report resource usage
6724 * support/regression/ports/ds390/spec.mk,
6725 * support/regression/ports/hc08/spec.mk,
6726 * support/regression/ports/mcs51/spec.mk,
6727 * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6728 * support/regression/ports/ds390/uCsim.cmd,
6729 * support/regression/ports/hc08/uCsim.cmd,
6730 * support/regression/ports/mcs51/uCsim.cmd,
6731 * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6732 * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6733 library, use the default one
6734 * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6735 building the library
6737 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6739 * config.dsp: added dependency on .version and configure_vc.awk
6740 * device/include/setjmp.h: updated for --stack-auto and --xstack
6741 * device/include/mcs51/at89c51snd1c.h: corrected line endings
6742 * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6743 * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6744 * device/lib/libsdcc.lib: added _setjmp
6745 * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6746 (decorateType): fixed bug 1372851,
6747 (optimizeGetHbit): fixed warning
6748 * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6749 array initialisation
6750 * support/regression/tests/bug1057979.c: added test for bug 1358192
6751 * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6753 2005-12-03 Borut Razem <borut.razem AT siol.net>
6755 * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6756 command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6758 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6760 * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6761 createIval): implement symbol independant "flexible array member",
6762 (createIvalCharPtr): implemented flexible array initialisation with a
6764 * src/SDCCsymt.c (copyStruct): removed,
6765 (getSize): fixed misleading comment,
6766 (getAllocSize): removed, the additional allocation size is now in
6767 sym->flexArrayLength,
6768 (checkStructFlexArray): new, syntax checks for flexible array members,
6769 (compStructSize): added syntax checks for "flexible array members"
6770 (copyStruct): removed,
6771 (copyLinkChain): removed inefficient fix for bug 770487
6772 * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6773 * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6774 symbol->flexArrayLength
6776 * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6777 E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6778 * support/regression/tests/structflexarray.c: added
6779 * support/valdiag/tests/structflexiblearray.c: added
6781 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6783 * src/SDCCast.c (decorateType): fixed bug 1368489
6784 * support/Util/SDCCerr.c,
6785 * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6787 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6789 * device/include/mcs51/at89c51snd1c.h: added file submitted by
6790 Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6792 2005-11-27 Borut Razem <borut.razem AT siol.net>
6794 * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6795 support/cpp2/mkdeps.h: added command line option
6796 -obj-ext=<extension> to SDCPP to define object file externion, used
6797 for generation of make dependencies (-M)
6798 * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6800 2005-11-26 Borut Razem <borut.razem AT siol.net>
6802 * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6803 added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6804 added pic and pic16 libraries
6806 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6808 * device/include/float.h: Corrected typo in prototype of __fsgt
6810 2005-11-25 Borut Razem <borut.razem AT siol.net>
6812 * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6813 added creation of model-mcs51-stack-auto libraries
6815 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6817 * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6819 * src/SDCCast.c (createIvalArray): removed obsolete comment
6821 2005-11-24 Borut Razem <borut.razem AT siol.net>
6823 * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6824 added missing device/lib/mcs51/crt*.asm sources
6826 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6828 * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6830 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6832 * device/lib/_fs2schar.c,
6833 * device/lib/_fs2sint.c,
6834 * device/lib/_fs2slong.c: optimized inline asm
6836 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6838 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6839 Better handling of floats between -1.0 and 0.0.
6841 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6843 * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6844 (the missing "if"s prohibited removal of redundant labels)
6846 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6848 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6849 Properly convert floats between -1.0 and 0.0 to long, int, and char
6850 types (max integer value of negative floats tends to zero).
6851 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6852 Removed changes made so to work properly with floats between
6853 -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6856 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6858 * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6859 * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6860 (genCast) cosmetic change
6861 * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6862 * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6864 * support/regression/tests/bitfields (testSignedBitfields): added
6866 2005-11-18 Borut Razem <borut.razem AT siol.net>
6868 * sdcc/device/lib/Makefile.in: remove all unnecessary files
6869 * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6870 introduced SILENT option to make building of pic16 libraries less
6872 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6874 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6875 Now they work properly with floats between -1.0 and 0.0
6876 * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6878 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6880 * src/SDCCicode.c (printOperand): added missing else
6882 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6884 * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6885 reformatted for better readability
6886 * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6889 2005-11-17 Borut Razem <borut.razem AT siol.net>
6891 * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6892 introduced SILENT option to make building of pic16 libraries less
6893 verbose - used for nightly snapshot build
6894 * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6895 available on Win32 platforms.
6896 * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6897 medium, large, pic and pic16
6899 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6901 * device/lib/printf_large.c: Temporary patch for bug 1358192:
6902 printf("%f"...) sets fraction to zero.
6904 2005-11-16 Raphael Neider <rneider AT web.de>
6906 * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6908 * src/pic/gen.c (genIfx): implemented for CARRY bit
6909 * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6910 to generic pointers, fixes #1357332,
6911 (pic16_movLit2f): NEW,
6912 (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6914 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6916 * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6918 2005-11-11 Raphael Neider <rneider AT web.de>
6920 * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6921 * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6922 compute pointer's type from operand,
6923 (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6924 improved single bit reads, fixes bug #1353379
6926 2005-11-09 Borut Razem <borut.razem AT siol.net>
6928 * support/scripts/sdcc.nsi: added lib/pic to the package
6930 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6932 * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6934 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6936 * support/regression/tests/bug1348008.c: added
6937 * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6938 * support/regression/tests/bug1337835.c: updated comment
6940 2005-11-06 Borut Razem <borut.razem AT siol.net>
6942 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6943 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6944 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6945 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6946 sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6947 dynamic construction of cl_error_class and derivates - 2.nd try
6949 2005-11-05 Borut Razem <borut.razem AT siol.net>
6951 * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6952 bug, which caused Bus Errors on sparc solaris
6954 2005-11-04 Borut Razem <borut.razem AT siol.net>
6956 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6957 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6958 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6959 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6960 sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6961 and derivates to resolve the initialization problem on OSX
6963 2005-11-02 Borut Razem <borut.razem AT siol.net>
6965 * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6966 corrected typo - #include <winsock2.h>
6968 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6970 * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6971 (_asxxxx_mapping): added org directive for future enhancements
6973 2005-11-01 Borut Razem <borut.razem AT siol.net>
6975 * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6976 enabled sockets on WIN32
6977 * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6979 2005-10-31 Borut Razem <borut.razem AT siol.net>
6981 * support/regression/generate-cases.py: escape backslashes in {testcase}:
6982 WIN32 backslash path delimiters should be escaped when used in C strings
6983 * support/regression/tests/bitfields.c: exclude failing assertions for
6984 __CYGWIN32__ and __MINGW32__ hosts
6986 2005-10-30 Borut Razem <borut.razem AT siol.net>
6988 * src/SDCCutil.c: corrected double comparison typo
6990 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6992 * device/lib/medium/Makefile: added for new memory model medium
6993 * device/include/asm/mcs51/features.h: updated for medium/pdata
6994 * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6995 added Multiply & Accumulate sbit's and MAC0_PAGE define
6996 * device/include/mcs51/c8051f300.h: added sfr16 definitions
6997 * device/include/mcs51/c8051f310.h: added sfr16 definitions
6998 * device/lib/_mullong.c: update for medium model
6999 * device/lib/incl.mk: added medium model
7000 * doc/sdccman.lyx: documented medium model
7001 * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
7002 * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
7003 * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
7004 * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
7005 (allocParms): set SCLS and OCLS to pdata for medium model
7006 * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
7008 (powof2): return <0 if not power of 2
7009 * src/avr/gen.c (genBitWise): use updated powof2
7010 * src/mcs51/gen.c (genMinusDec): use acc if necessary,
7011 (shiftR2Left2Result): small optimization in setup, save acc when storing,
7012 (shiftLLeftOrResult): use B if necessary
7013 * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
7014 * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
7015 * src/pic/main.c (_pic14_do_link): made void parameter list explicit
7016 * support/regression/Makefile.in: added test-mcs51-medium
7017 * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
7019 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7021 * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
7023 * device/lib/time.c (mktime): fixed bug 1334315
7025 2005-10-28 Raphael Neider <rneider AT web.de>
7027 * device/include/pic/p16f_common.inc: added common declarations
7028 * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
7030 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7032 * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
7033 (aopPutUsesAcc): added to predict accumulator use,
7034 (assignResultValue): save acc if necessary,
7035 (genMinusDec): store result if indirectly addressed,
7036 (genDivOneByte): save acc if necessary,
7037 (movLeft2Result): bugfix if left already in acc,
7038 (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
7039 attention to accumulator use (esp. pdata),
7040 (genReceive): receive pdata correctly
7041 * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
7042 * src/SDCCicode.h: added isOperandInPagedSpace prototype
7044 2005-10-27 Raphael Neider <rneider AT web.de>
7046 * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
7048 2005-10-27 Raphael Neider <rneider AT web.de>
7050 * .version: changed version to 2.5.4
7051 * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
7052 * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
7053 (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
7054 arithmetics support routines
7055 * device/lib/pic/Makefile.rules: have assembler sources preprocessed
7056 * device/lib/Makefile.in: also create installdir for pic
7058 * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
7060 * src/pic/device.c (dump_sfr): rewritten to delegate register
7061 placement to the linker (use `extern sym' rather than sym EQU addr),
7062 (validAddress): fixed to check last specified address
7063 * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
7064 (popGetLit): truncate literal value to 8 bit,
7065 (popGet): moved assert to more appropriate place
7066 (popGetExternal): create pCode operand from and mark the according
7067 symbol as being `extern'
7068 (popGetAddr): added sanity check on immediate's offset, provide
7069 GPOINTER tag on demand
7070 (aopPut): fixed for immediates,
7071 (mov2w_op): move operand's address or contents to WREG (depending on
7072 operand type), safer variant of mov2w,
7073 (movwf,call_libraryfunc): NEW, handy abbreviations,
7074 (get_argument_pcop,get_return_val_pcop,pass_argument,
7075 get_returnvalue): interface for accessing function parameters and
7077 (assignResultValuei,genRet): use new parameter/return value interface
7078 (pic14_getDataSize): back to old version handling generic pointers,
7079 (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
7080 provided implementation and/or fixed old one,
7081 (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
7082 calls, removed legacy 8051 reference code
7083 (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
7084 (loadSignToC): NEW, move the operands sign bit to CARRY,
7085 (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7086 genRightShiftSigned, accepts negative shift counts,
7087 (setup_fsr): load FSR and adjust IRP (indirect memory access),
7088 (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7089 generic pointers, __data pointers and __code pointers,
7090 (genUnpackBits,genPackBits): rewritten to work with generic pointers
7091 and signed bitfields, limit bitfields to 8 bit,
7092 (genDataPointerGet): fixed number of bytes read,
7093 (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7094 (genPointerGet,genPointerSet): fixed handling of __code pointers,
7095 pointers to constant data are no longer assumed to point to __code
7096 space, removed invalid pointer types,
7097 (bitpatternFromVal): retrieve the PICs representation of an integer
7099 (genDataPointerSet): fixed assigning to po_immediate operands,
7100 (genGenPointerSet): implemented as library call,
7101 (genIfx): fixed incorrect condition,
7102 (genAddrOf): limit generic pointers' addresses to 2 bytes,
7103 provide GPOINTER tag according to destination's storage class,
7104 (genCast): added code to handle casting to generic pointers, added
7105 sign-/zero extension of the result
7106 (aop_isLitLike,op_isLitLike): fixed handling of immediates
7107 * src/pic/gen.h: added macros to access IRP bit in STATUS register
7108 * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7110 * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7111 address/register resides in the shared banks
7112 (emitSymbolToFile): improved to handle global and `pinned' symbols,
7113 put all variables into separate sections (have the linker arrange
7115 (picglue): put init code and interrupt handlers in separate sections
7116 * src/pic/main.c: added port specific options table, modified to PORT
7117 structure to make GPOINTERs 3 byte, added pic14_options
7118 (_pic14_do_link): private linking routine (update paths to libraries,
7119 add libsdcc.lib by default)
7120 * src/pic/main.h: declare pic14_options
7121 * src/pic/pcode.c: fixed instructions i/o relations,
7122 (RegCond): reverted to correct version,
7123 (newpCodeOpLit): truncate literals to 8 bit,
7124 (genericPrint): added debug output,
7125 (getRegFromInstruction): fixed for various operand types, simplified
7126 (BuildFlow): fixed broken handling of isntructions with labels
7127 (LinkFlow): start at last instruction in flow (skip trailing comments),
7128 pass the flow on to the next instruction after CALL
7129 (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7130 (insertPCodeInstruction): fixed inserting after a skip instruction,
7131 (DoBankSelect): fixed for labeled instructions
7132 (OptimizepBlock): honor --nopeep switch
7133 (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7134 * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7135 * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7136 (pCodeOptime2pCodes): allow disabling this optimization via
7137 --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7138 but is still buggy), started implementation of a dataflow based
7139 pCode optimization (CSE + dead code elimination)
7140 (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7141 * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7142 names are independant of the stack location and therefore portable across
7145 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7147 * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7148 (selectSpil): fixed bug 1337835 by not spilling bit variables
7149 * support/regression/tests/bug1337835.c: added test for this bug
7150 * src/mcs51/peeph.def: restart after rule 3.c,
7151 addded rules 263.x to optimize loading constants
7153 2005-10-26 Raphael Neider <rneider AT web.de>
7155 * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7156 * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7157 (genAssign): emit warning when casting literals to generic pointer
7158 type, also applies when taking the address of a fixed variable,
7159 (genCast): improved casting to generic pointers
7160 * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7161 extern variables, added verbose error message
7162 * device/include/pic16/{string.h,errno.h}: added #pragma library c
7164 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7166 * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7167 carry must be complemented too
7168 * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7169 could be emitted by genMinus
7170 * src/SDCCval.c (constVal): fixed bug 1305065
7172 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7174 * src/SDCCast.c (addCast): added promotion for bit variables
7175 (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7176 promotion casts + optimisation
7177 (optimizeGetWord): fix warning 'i' might be used uninitialized
7178 * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7179 * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7181 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7183 * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7184 all chars are promoted to int; promotion should be handled in SDCCast.c
7186 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7188 * device/lib/_strcmp.c: Fixed bug 1326457
7190 2005-10-11 Raphael Neider <rneider AT web.de>
7192 * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7193 * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7195 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7197 * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7198 * support/regression/tests/sfr16.c: added test for the sfr32 bug
7200 2005-10-04 Raphael Neider <rneider AT web.de>
7202 * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7203 device/lib/pic16/pics.all: added pic18f1320
7204 * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7206 2005-09-30 Raphael Neider <rneider AT web.de>
7208 * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7209 * src/pic16/devices.inc: NEW, provides device descriptions
7210 * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7212 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7214 * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7217 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7219 * doc/sdccman.lyx: updated Highest Order Bit documentation,
7220 documented Any Order Bit, Higher Order Byte and Higher Order Word
7221 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7222 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7223 (optimizeGetAbit): new, to get any bit, not only the high bit,
7224 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7225 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7226 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7227 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7228 RIGHT_OP: also try GETBYTE, GETWORD optimization,
7229 GETABIT, GETBYTE, GETWORD: decorate them,
7230 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7231 (ast_print): added GETABIT, GETBYTE, GETWORD
7232 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7233 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7234 (geniCodeBinary): new generic binary icode,
7235 (ast2iCode): added GETABIT, GETBYTE, GETWORD
7236 * src/port.h: updated comment for PORT.hasExtBitOp
7237 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7238 (genGetByte): new, to get a single byte,
7239 (genGetWord): new, to get a word from a long,
7240 (gen51Code): added GETABIT, GETBYTE, GETWORD
7241 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7243 2005-09-23 Raphael Neider <rneider AT web.de>
7245 * configure.in, configure: have device/lib/pic configured
7246 * device/lib/Makefile.in: added model-pic14
7247 * device/lib/clean.mk: added pic/ to clean rule
7248 * device/lib/pic: added rudimentary pic14 library providing support
7249 functions for multiplication/division/generic pointer access
7250 * src/SDCCopt.c (convilong): mark support functions as extern
7251 for pic14 port as well
7252 * src/pic/gen.c (genMult): added assertions,
7253 (genpic14Code): emit warning on unhandled iCodes
7254 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7255 * src/pic/pcode.c (pCodeOpCopy),
7256 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7257 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7258 SFR_REGISTER}), made safe for future extensions
7259 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7260 instructions even if preceeded by SKIP instructions (also remove
7261 them); removed unused code
7262 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7263 prevents leaving parts of the structure uninitialized after copying
7265 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7267 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7269 * support/regression/tests/addsub.c: added test for the bug
7271 2005-09-21 Raphael Neider <rneider AT web.de>
7273 * device/include/pic16/pic18f1220.h,
7274 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7275 * device/lib/pic16/Makefile.rules: added missing opening paren
7276 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7277 are provided in genutils.c,
7278 (genUminusFloat,genUminus,genCmpEq): added asserts on different
7279 operand/result sizes,
7280 (genCmp): assert on NULL pointers first, then check deref'ed values
7281 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7284 2005-09-18 Raphael Neider <rneider AT web.de>
7286 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7287 as these are now unused,
7288 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7289 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7290 local, avoids uninitialized pointer dereference on r->name
7291 * src/pic16/ralloc.c (newReg): fixed indentation
7293 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7295 * src/SDCCval.c (constVal): fixed bug 730366
7296 * support/Util/SDCCerr.c,
7297 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7299 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7301 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7303 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7305 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7307 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7309 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7310 (hex2dec): made hex_digit unsigned char, removed ascii dependance
7311 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7312 (hex2dec): made hex_digit unsigned char, removed ascii dependance
7313 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7314 * packihx/packihx.c (hexDigit): made c unsigned char
7315 * as/mcs51/lklibr.c (fndsym),
7316 * link/z80/lkgb.c (gb),
7317 * link/z80/lklibr.c (fndsym),
7318 * link/z80/lkrloc.c (relr),
7319 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7320 * src/SDCC.lex (checkCurrFile, process_pragma),
7321 * src/SDCCglue.c (spacesToUnderscores),
7322 * src/SDCCmain.c (setParseWithComma, processFile),
7323 * src/asm.c (tvsprintf, printCLine),
7324 * src/avr/gen.c (emitcode, aopPut),
7325 * src/ds390/gen.c (emitcode),
7326 * src/hc08/gen.c (emitcode, emitinline),
7327 * src/mcs51/gen.c (emitcode, genInline),
7328 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7330 * src/pic/ralloc.c (debugLog),
7331 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7333 * src/pic16/ralloc.c (debugLog),
7334 * src/z80/main.c (_process_pragma):
7335 made all ctype.h function calls safe
7336 * src/SDCCopt.c: include math.h for fabs
7337 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7338 and used them throughout the code to make ctype.h function calls safe
7339 * src/ds390/main.c (asmLineNodeFromLineNode),
7340 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7341 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7343 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7344 (newpCodeAsmDir): made ctype.h function calls safe
7345 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7346 pic16_emitcode): made lbp unsigned char*
7347 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7348 (pic16_newpCodeAsmDir): made ctype.h function calls safe
7349 * src/xa51/gen.c (emitcode),
7350 * src/z80/gen.c (_emit2): made lbp unsigned char*
7351 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7354 2005-09-05 Raphael Neider <rneider AT web.de>
7356 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7357 access bank splitpoint
7359 2005-09-05 Raphael Neider <rneider AT web.de>
7361 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7363 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7365 * .version: changed to version 2.5.3
7366 * doc/sdccman.lyx: changed version to 2.5.3,
7367 documented --codeseg and --constseg and pragma codeseg and constseg,
7368 documented bit parameters (reentrant) and bit returning
7369 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7370 currFunc->recvSize, but is this ok for all ports?
7371 (ast2iCode): result of ~ on unsigned char must be cast to int for
7373 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7374 function pointers in bit space
7375 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7376 (processFuncArgs): call port.reg_parm() with reentrancy info
7384 * src/z80/main.c: port.reg_parm prototype extended with
7385 "bool reentrant" parameter
7386 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7387 options.stackAuto for allocating bit register parameters
7388 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7389 (genSend): set BitBankUsed if it is,
7390 (selectRegBank): factored out of genCall for use in genPcall,
7391 (genCall): removed redundant dtype assignmen, use selectRegBank,
7392 (genPcall): handle returning in Carry properly, save in F0 if needed,
7393 (genReceive): handle bit register parameters
7394 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7395 (mcs51_assignRegisters): enable bit registers for all reentrant
7396 functions and don't set BitBankUsed unconditionally
7397 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7398 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7399 * support/regression/tests/funptrs.c: added tests for BOOL and for return
7401 2005-08-27 Borut Razem <borut.razem AT siol.net>
7403 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7404 ppc-osx (Darwin) does not support -u option. It seems that it is
7405 supported only on Linux - GNU cp
7407 2005-08-25 Borut Razem <borut.razem AT siol.net>
7409 * sim/ucsim/gui.src/serio.src/Makefile.in,
7410 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7411 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7412 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7413 install and strip, since the strip at /usr/ccs/bin should be used
7416 2005-08-24 Borut Razem <borut.razem AT siol.net>
7418 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7420 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7422 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7425 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7427 * as/mcs51/aslink.h: completed lkrloc.c prototypes
7428 * as/mcs51/lkmain.c (link_main): fixed warning
7429 * device/include/stdbool.h: ds390 has no advanced bit support yet
7430 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7431 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7432 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7433 and updated their macros
7434 * src/SDCCval.c (constVal): updated comment for renamed b_long
7436 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7438 * as/mcs51/asdata.c: changed ctype['['] to BINOP
7439 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7440 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7441 (oprio): set priority for '['
7442 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7444 * as/mcs51/asm.h: added defines R_BIT and S_BIT
7445 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7446 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7447 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7448 added overlayable BIT_BANK area
7449 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7450 (summary2): explain 'T' in legenda
7451 * as/mcs51/lkrloc.c: replaced old K&R style,
7452 (relr): added R_BIT processing,
7453 (errmsg): added "Bit-addressable relocation error",
7454 (adb_bit): added for converting from byte- to bit-addressable space,
7455 (adb_24_bit): added for converting from byte- to bit-addressable space
7456 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7457 used in reentrant functions now even as return value
7458 * device/lib/_gptrput.c (_gptrput): removed obsolete code
7459 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7460 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7461 * src/SDCCglobl.h: added indicator BitBankUsed
7462 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7463 the bit registers b0-b7
7464 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7465 (geniCodeCast): fixed bug 1263853,
7466 (geniCodeLogicAndOr): put result in bool or char,
7467 (geniCodeReceive): added parameter func for accessing the return type,
7468 (geniCodeFunctionBody): pass func to geniCodeReceive
7469 * src/SDCCmain.c: added indicator BitBankUsed
7470 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
7471 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
7472 (checkSClass): don't put automatic bool/bit on stack,
7473 (checkFunction): removed check on function cannot return bit
7474 * src/SDCCsymt.h: added newBoolLink prototype
7475 * src/mcs51/gen.c (rb1regs): added bit registers,
7476 (movc): created for assigning to carry,
7477 (pushReg, popReg): created for pushing registers,
7478 (sameRegs): check both AOP_REG and AOP_CRY types,
7479 (aopOp): handle bit registers,
7480 (aopPut): optimization no self-assign,
7481 (saveRegisters): push reg->base (bits) only once for bit registers,
7483 (unsaveRegisters): pop reg->base only once and use popReg,
7484 (assignResultValue): added parameter func and return in carry for bits,
7485 (genIpush): optimization no reload in A if not changed,
7486 (genSend): bit parameters in reentrant functions are passed in bit
7487 registers by first assigning to bits in B, then save registers and
7489 (genCall): handle returning in Carry properly, save it in F0 if needed,
7490 (genPcall): updated assignResultValue call, this is not safe yet for bit
7491 returning function !!!
7492 (genFunction): don't generate equ's for bit registers and use pushReg,
7493 (genEndFunction): take care of bit returning functions and use popReg,
7494 (genRet): return bit in Carry,
7495 (genIfx): optimize bit registers and other directly addressable bits,
7496 (genReceive): updated assignResultValue call
7497 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
7498 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
7499 registers when using stack-auto
7500 * src/mcs51/ralloc.c (_G): added allBitregs,
7501 (regs8051): added the bit registers,
7502 (createStackSpil): use macro IS_BIT,
7503 (getRegBit): added to allocate a bit register, else spill,
7504 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
7505 (updateRegUsage): factored out to ease stepping while debugging,
7506 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
7507 also allocate bit registers,
7508 (fillGaps): handle bit registers,
7509 (findAllBitregs): added to create bit vector with all bit registers,
7510 (mcs51_allBitregs): returns this bit vector,
7511 (mcs51_assignRegisters): when using stack-auto use bit registers for
7512 passing parameters and creating local variables
7513 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
7515 2005-08-22 Borut Razem <borut.razem AT siol.net>
7517 * device/lib/Makefile.in: replaced find option -or with -o
7518 to make it run on solaris
7520 2005-08-22 Raphael Neider <rneider AT web.de>
7522 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7523 fixes #1265442 (crash on Solaris)
7525 2005-08-20 Borut Razem <borut.razem AT siol.net>
7527 * configure, configure.in: added tests for libsocket and libnsl libraries,
7528 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7529 from support/regression/Makefile.in
7530 * support/regression/Makefile.in: added
7531 * device/lib/pic16/Makefile.common.in: force make to use bash shell
7532 * sim/ucsim/libtool: regenerated on sparc-solaris
7533 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7534 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7535 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7536 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7537 sparc-solaris, which doesn't use GNU ld linker
7538 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7539 * as/Makefile: find on sparc-solaris does not support -maxdepth option
7541 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7543 * src/mcs51/peeph.def: updated comments
7545 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7547 * device/lib/_gptrget.c,
7548 * device/lib/_gptrput.c: slightly shorter
7549 * doc/sdccman.lyx: incremented version
7550 * src/mcs51/peeph.def: moved peephole comments to the line of first
7551 change to better keep line correlation, reanimated 186.e
7552 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7554 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7556 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7557 David Saxton with quotes around file name.
7559 2005-08-15 Borut Razem <borut.razem AT siol.net>
7561 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7562 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7563 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7564 make tests run on x86_64 platform
7566 2005-08-13 Raphael Neider <rneider AT web.de>
7568 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7569 as it might be executed DURING a build (parallel make is wonderful)
7571 2005-08-13 Raphael Neider <rneider AT web.de>
7573 * device/lib/Makefile.in (port-specific-objects-pic16):
7574 revert to cp $(PORT)/bin/*.* $(PORTDIR)
7575 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7577 * device/lib/pic16/Makefile.rules: build subdirs before creating
7578 the library, removed builddir rule, create $(builddir) early in
7579 recurse rule, use empty recurse rule for leaf directories
7580 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7581 mkdir errors (race condition), removed duplicate suffix "hex"
7583 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7584 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7585 prevents mkdir -p from aborting on Alpha
7587 2005-08-12 Raphael Neider <rneider AT web.de>
7589 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7590 db-statements in order to allow for arrays of pointers in code
7591 sections to be placed without interspersed 0-padding, fixes
7593 * (emitStatistics): fixed division by zero for pic18f1220
7594 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7595 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7596 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7597 * (pic16_pCodeConstString): keep track of already emitted string
7598 literals to prevent "duplicate definitions of symbol _str_NR"
7599 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7601 * device/lib/Makefile.in: ignore failing PIC16 library builds
7602 * device/lib/pic16/Makefile: do not build if gputils are missing
7603 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7605 2005-08-10 Raphael Neider <rneider AT web.de>
7607 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7610 2005-08-10 Raphael Neider <rneider AT web.de>
7612 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7613 Rokas' patch to add the new fixed point type "__fixed16x16"
7614 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7615 functions for __fixed16x16 arithmetics
7616 * device/lib/pic16: reimplemented the build system to support
7617 a separate build directory, better handling of libio (create
7618 the library in a separate subdir for each architecture) and
7619 easier configuration (centralized in Makefile.common)
7621 2005-08-07 Raphael Neider <rneider AT web.de>
7623 * src/pic16/gen.c (genrshTwo): fixed sign extension
7624 * src/pic16/device.c: added pic18f2320, 4220 and 4320
7625 * device/include/pic16/pic18f2220.h: changed some bit definitions,
7627 * device/include/pic16/pic18f4220.h: NEW, header for
7628 pic18f4220 and pic18f4320
7629 * device/include/pic16/pic18fregs.h: added new devices,
7630 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7631 * device/include/pic16/signal.h: resolved name clashes
7632 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7633 to also allow testing for interrupt enable bits, added
7634 comments on how to use the macros
7635 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7636 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7637 register definitions for the devices
7638 * device/lib/pic16/pics.all: added new devices
7639 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7641 * device/lib/pic16/libc/stdlib/memfree: do not count
7642 the block header as free memory
7643 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7644 simplified and added missing end-of-blocklist-marker
7645 (reported by Peter Onion, fixes #1252814)
7646 * (_mergeHeapBlock): fixed loop condition
7647 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7648 len==0, restructured code
7649 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7650 up a bit, reduced bitfield accesses, prevent endless loops
7651 in case of heap corruption
7652 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7653 "unreferenced arguments/must return a value" warnings
7654 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7655 replaced BAUDREG with SPBRG
7656 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7657 device/lib/pic16/debug/gstack/gstack.c: replaced
7658 _naked, _asm, _endasm with __naked, __asm, __endasm
7660 2005-08-05 Raphael Neider <rneider AT web.de>
7662 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7663 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7665 2005-08-05 Borut Razem <borut.razem AT siol.net>
7667 * device/lib/Makefile.in: added missing ';'
7668 * configure: removed ^M characters
7670 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7672 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7673 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7676 2005-08-04 Borut Razem <borut.razem AT siol.net>
7678 * configure.in: pic16 libraries build 2nd try - enable running
7679 configure in device/lib/pic16
7680 * configure: regenerated from configure.in
7681 * device/lib/Makefile.in: create $(PORT)/bin directory
7683 2005-08-03 Raphael Neider <rneider AT web.de>
7685 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7686 to get/set values via pointers
7687 * (genUnpackBits,genPackBits): changed detection of
7688 ptr->bitfield vs. sym.bitfield, fixed access via generic
7689 pointers, removed dead (wrong) code for multibyte bitfields
7690 * (genNearPointerGet, genGenPointerGet): removed useless code,
7691 fixed bitfield detection, fixes #1250594
7692 * (genNearPointerSet): removed useless code
7693 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7694 and introduced macro pic16_emitpcode that conditionally emits
7695 the origin of the following pCode (useful for debugging SDCC)
7696 * src/pic16/pcode.c: changed (and disabled) some debug outputs
7697 * (createDefmap): fixed handling of LFSR for --optimize-df
7699 2005-08-02 Borut Razem <borut.razem AT siol.net>
7701 * device/lib/Makefile.in: pic16 libraries build enabled since
7702 gputils-0.13.2 are now localy installed at sourceforge's compile farm
7704 2005-08-02 Raphael Neider <rneider AT web.de>
7706 * src/pic16/gen.c (genPackBits): removed deprecated warning
7707 * (genGenPointerSet): fixed bitfield detection
7709 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7711 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7713 2005-07-31 Raphael Neider <rneider AT web.de>
7715 * device/lib/pic16/libdev/pic18f458.c,
7716 device/include/pic16/pic18f458.h: added missing T0CONbits
7718 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7720 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7722 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7724 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7726 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7728 * device/include/mcs51/at89c51ed2.h: added.
7730 2005-07-23 Raphael Neider <rneider AT web.de>
7732 * src/pic/gen.h: added emitpcode macro for debugging
7733 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7734 and replace by macro adding debug information on demand
7735 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7736 * (gencjne): tried to fix; replaced with correct (slower) code
7737 * (gen{Unp,P}ackBits): fixed single bit access
7738 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7739 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7740 previous instruction
7741 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7742 register has to be handled with care (forbidding movement
7743 of assignments/uses, removing assignments completely, ...)
7744 * (pCodeOptime2pCodes): make use of regIsSpecial
7745 * added lots of debugging output (commented out)
7746 * src/pic/rallloc.c (deassignLRs): prevent operand registers
7747 from being reused as result UNLESS it is known to work
7749 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7751 * support/Util/dbuf.h: include <stddef.h> for size_t
7752 * .version: changed to version 2.5.2
7754 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7756 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7758 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7760 * src/hc08/gen.c (genMinus): fixed bug #1241835,
7761 (genModOneByte): removed needless psha/pula
7763 2005-07-22 Raphael Neider <rneider AT web.de>
7765 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7766 have PIC14 handled like PIC16, fixes broken pic14 linker calls
7767 * src/pic/gen.c (resolveIfx): do not "invent" labels
7768 * (genSkipc): changed to positive logic
7769 * (genSkipCond): removed as no longer needed
7770 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7772 * (genLeftShift): check operands are in different registers
7773 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7774 INCF does not update CARRY...
7775 * src/pic/main.c: fixed _linkCmd
7776 * src/pic/pcode.c (unlinkpCode): added inactive code
7777 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7778 alive (do not assign result and operand overlapping registers)
7780 2005-07-22 Raphael Neider <rneider AT web.de>
7782 * src/pic/device.c (dump_sfr): replaced register declaration with
7783 call to emitSymbolToFile() to avoid duplicate symbols
7784 * (assignRelocatableRegisters): do not declare external symbols
7785 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7786 right (take size of type, not etype)
7787 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7788 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7789 * (packRegsForAccUse): disabled assignment of WREG as
7790 the result reg to prevent occurence of just fixed #1235003,
7792 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7793 symbols (avoids duplicate symbols in .asm file)
7794 * (pic14emitRegularMap): use emitSymbolToFile()
7795 * src/pic/gen.c (aopOp): fixed spillLocation handling
7796 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7797 * (genDataPointerSet): removed unneccessary variables/output
7799 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7801 * as/mcs51/lkarea.c: enlarged codemap for banked memory
7802 * device/lib/mcs51/crtbank.asm: added # to 0x0F
7804 2005-07-21 Raphael Neider <rneider AT web.de>
7806 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7807 architecture cannot handle them efficiently, fixes bug #1235003
7808 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7809 check for empty sets before using them (fixes bug #1232190)
7811 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7813 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7814 (lnksect2): generate warnings for memory overlap
7815 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7816 constseg to set the name of these segments so you can instruct the linker
7817 to place them in banks
7818 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7819 * src/SDCCglobl.h: added MODEL_HUGE to enum,
7820 added code_seg and const_seg to options
7821 * src/SDCCglue.c (emitMaps): use options.const_seg,
7822 (createInterruptVect): put interrupt vectors in segment HOME,
7823 (glue): put HOME before static segment and put the main glue in HOME,
7824 (glue): use options.code_seg
7825 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7826 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7827 these segments so you can instruct the linker to place them in banks
7828 (linkEdit): use code_loc for HOME segment which should be the first
7829 segment in code memory now
7830 * src/SDCCmem.c: fixed more stuff like bug 1238386
7831 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7832 (changePointer): don't change function pointers to code pointers for
7834 (compareType): added exceptional check for banked function pointers
7835 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7836 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7837 after static in code memory
7838 * src/mcs51/gen.c: added aopLiteralLong prototype,
7839 (aopForSym): use getSize for functions,
7840 (genCall): generate banked calls over one trampoline __sdcc_banked_call
7841 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7842 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7844 (genPcall): use call for literal function pointers and generate banked
7845 calls over the one trampoline so there's only one place for the user to
7846 modify according to his/hers hardware,
7847 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7848 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7849 * src/mcs51/main.c: added keyword banked,
7850 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7851 * support/Util/SDCCerr.c,
7852 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7853 needed for passing the bank and address to the trampoline
7854 * device/lib/mcs51/crtbank.asm: added for bankswitching
7855 * device/lib/mcs51/Makefile: added crtbank
7857 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7859 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7860 for fields at offset 0 of a struct or union as reported
7861 on 2005-07-07 in the developer mailing list.
7863 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7865 * src/SDCCmem.c: fixed bug 1238386
7867 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7869 * src/mcs51/peeph.def: added labelrefcounting for peepholes
7870 (patch #1144962), added peephole 300, enabled 259.x
7871 * doc/sdccman.lyx: removed screenshot and provided link instead
7873 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7875 * doc/sdccman.lyx: added section about debugging with ddd
7876 * doc/figures/ddd_example.eps: screenshot of debugging session
7878 2005-07-04 Raphael Neider <rneider AT web.de>
7880 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7881 like CODE pointers, fixes #1115683
7882 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7883 call, fixes bugs #1232211, #1228110,
7884 fixed wrong casts to pCodeFlow from pCodeInstructions
7886 2005-07-04 Raphael Neider <rneider AT web.de>
7888 * src/pic/gen.c (popGet): changed assert to allow for
7890 * (popGetAddr): changed signature to provide
7891 an additional index, patched all call sites
7892 * (genCmpEq): handle literal-like operands correctly
7893 * (genAddrOf): added sanity checks on __code/__data pointers
7894 * (genAssign): added handling of symbols from __code section
7895 * (gencjne): do not generate code for comparisons whose result
7896 is neither stored nor used, fixes bug #1171114
7897 * (AccLsh, AccRsh): operate on operand instead of WREG
7898 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7899 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7901 * rewrote complete shift-by-literal logic, commented unused
7903 * (genConstPointerGet): get multiple bytes (if result size > 1),
7904 fixed handling of non-immediate addresses
7905 * (genPointerGet): handle CODE pointers like CONST pointers
7906 * (genpic14Code): insert C-SRC lines as Cource-pCodes
7907 * ({aop,op}_isLitLike): NEW, single place to decide whether an
7908 operand is to be treated as a literal or not
7909 * (mov2w,genPcall,genCmpEq),
7910 src/pic/genarith.c: use aop_isLitLike() to decide between
7911 literal/register contents
7912 * (addSign): added missing offset
7913 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7914 only emit comment in debug-mode,
7915 use {aop,op}_isLitLike throughout the file
7916 * src/pic/glue.c: fix initializers for pointers (work in progress)
7917 * src/pic/pcode.c (get_op): honor index on _const symbols
7918 * ({reset,dump}pCodeStatistics): NEW, estimate code size
7919 * (dumppBlock): added pCode size estimation
7920 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7921 check for IS_SYMOP before OP_SYMBOL'ing
7922 * fixed indentation, compacted switch-statements
7923 * (allocReg): find free register and allocate it instead of
7924 allocating new registers all the time
7925 * (deassignLRs): prevent POINTER_GET's from being assigned the same
7926 registers as its operands (necessary only for multibyte GETs)
7928 2005-07-01 Raphael Neider <rneider AT web.de>
7930 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7931 debugging .asm-output macros FENTRY + FEXIT
7932 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7934 * (emitpComment): NEW, printf to pCode
7935 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7937 * (popGetAddr): NEW, variant of popGet to access an immediates
7938 high(er) bytes instead of the n'th byte of memory they reference,
7939 replaced popGet with popGetAddr where neccessary
7940 * (genDataPointerGet): reactivated and fixed implementation
7941 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7943 * (genDataPointerSet): fixed multibyte assignments
7944 * (genpic14Code): fixed --i-code-in-asm handling
7945 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7946 * (genPlus): fixed index-out-of-bounds error
7947 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7948 * src/pic/ralloc.c: added debugging output macro FENTRY2
7949 * (spillThis): fixed indentation, enbraced for-body for clarity
7950 * (rematStr): commented out as now unused
7951 * (regTypeNum): commented out special spill case (overwrites
7953 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7955 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7957 * doc/sdccman.lyx: documented sfr16/sfr32,
7958 added example for using storage class with function pointers
7959 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7961 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7963 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7964 * device/lib/_itoa.c,
7965 * device/lib/_ltoa.c: optimized codesize
7966 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7967 but don't know how to suppress the double warning.
7968 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7969 * support/Util/SDCCerr.c,
7970 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7972 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7974 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7975 fixed old K&R prototypes
7976 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7977 * device/lib/_gptrget.c,
7978 * device/lib/_gptrgetc.c,
7979 * device/lib/_gptrput.c: changed versions for new memory indicator values,
7980 also new versions for small generic pointers and banked generic pointers
7981 * src/port.h: added const_name
7982 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7983 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7984 * src/SDCCcse.c (findPrevIc): check all associative operators
7985 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7986 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7987 * src/SDCCmem.c: updated comments,
7988 set far-space to 0 for pdata, results in optimized code
7989 * src/SDCCmem.h: added macro CONST_NAME
7990 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7991 moving the info into the highest bits, see also gptrget/gptrput
7992 * src/src.dsp: added sdcc.ico to project files
7993 * src/avr/gen.c (genCast): fixed bug 0x%d
7994 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7995 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7996 relation between ptr_type and DCL_TYPE,
7997 (genCast): fixed bug 0x%d
7998 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7999 (CODE)" for const_name
8000 * src/hc08/gen.c (genCast): fixed bug 0x%d
8001 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
8002 (hc08_port): added "CONST (CODE)" for const_name
8003 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
8004 (aopForRemat, adjustArithmeticResult): disconnected direct relation
8005 between ptr_type and DCL_TYPE,
8006 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
8007 operand* and took AOP() inside function so sfr-ness can be checked,
8008 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
8010 (genFunction, genEndFunction): optimized stack setup,
8011 (genMinus): optimized for literals with ending zeroes (in bytes),
8012 (genCast): fixed bug 0x%d
8013 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
8014 (mcs51_port): added "CONST (CODE)" for const_name
8015 * src/mcs51/peeph.def: made rule 226 more generic
8016 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
8017 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
8018 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
8019 * src/z80/main.c (z80_port): added NULL for const_name,
8020 (gbz80_port): added NULL for const_name
8021 * support/regression/tests/bug663539.c,
8022 * support/regression/tests/sfr16.c: new tests
8024 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8026 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
8028 2005-06-24 Raphael Neider <rneider AT web.de>
8030 * device/lib/pic16/libdev/pic18f[68][567]20.c:
8032 * device/include/pic16/signal.h: added USBIF
8035 2005-06-24 Raphael Neider <rneider AT web.de>
8037 * device/lib/pic16/libdev/pic18f2455.c,
8038 device/include/pic16/pic18f2455.h: NEW
8039 * device/include/pic16/pic18fregs.h,
8040 device/lib/pic16/pics.all,
8041 src/pic16/device.c: added 18f2455
8042 * device/lib/pic16/libdev/pic18f[68][567]20.c,
8043 device/include/pic16/{pic18f[68][567].h,usart.h}:
8044 replaced MULTIPLE_USARTS define with more relaible
8045 compatibility sfrs (for USART access)
8047 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
8049 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
8050 and the output asm file line is printed on two lines.
8052 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8054 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
8055 BGT, BLE, BHI, and BLS instructions
8056 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
8058 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
8059 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
8061 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
8063 2005-06-15 Raphael Neider <rneider AT web.de>
8065 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
8066 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
8067 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
8068 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
8069 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
8071 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8073 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
8074 Marcel Telka in bug #1215704
8076 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
8078 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
8079 located in shared memory bank.
8081 2005-05-31 Raphael Neider <rneider AT web.de>
8083 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
8084 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8085 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8087 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8089 * device/lib/_strncpy.c: fixed the fix
8091 2005-05-26 Raphael Neider <rneider AT web.de>
8093 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8094 initializers with \0, bug #1208187
8095 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8096 intializers with \0, bug #1208187
8098 2005-05-26 Raphael Neider <rneider AT web.de>
8100 * src/pic16/glue.c (pic16_printIvalChar): fixed string
8101 initializers with \0, bug #1208187
8102 * src/pic16/main.c (_process_pragma): added sanity checks
8103 for stack position and size, emit warnings when appropriate
8105 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8107 * device/lib/_strncpy.c: fixed not filling with \0
8109 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8111 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8113 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8114 compound_statement),
8116 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8118 2005-05-24 Raphael Neider <rneider AT web.de>
8120 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8122 2005-05-24 Raphael Neider <rneider AT web.de>
8124 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8125 TRISE definitions, closes bug #1162453
8127 2005-05-22 Raphael Neider <rneider AT web.de>
8129 * src/pic16/main.c (_process_pragma): check for missing
8130 arguments to pragmas code and udata
8131 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8132 consistency fixes to match other headers (thanks to Jim Paris)
8133 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8135 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8137 * src/SDCCicode.c (isOperandEqual): fixed missing ;
8139 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8141 * support/regression/tests/bug1198642.c: new test
8142 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8143 * src/SDCCcse.c (findPrevIc): added comment, please have a look
8144 * support/scripts/resource.h,
8145 * support/scripts/resource.rc,
8146 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8147 * support/scripts/sdcc.ico: added 32x32 icon
8149 2005-05-18 Raphael Neider <rneider AT web.de>
8151 * device/lib/pic16/libdev/pic18f*.c,
8152 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8153 keywords to "__sfr" and "__at (X)"
8154 * device/include/pic16/pic18fregs.h: added pic18f4520
8155 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8156 #1203088 (MPLAB compatibility)
8158 2005-05-17 Raphael Neider <rneider AT web.de>
8160 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8161 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8162 * device/lib/pic16/pics.all: added new devices
8163 * src/pic16/device.c: added support for pic18f4520
8165 2005-05-16 Raphael Neider <rneider AT web.de>
8166 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8167 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8168 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8169 convenience function for bit access
8171 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8173 * device/lib/printf_large.c: fixed bug 1193299
8174 * support/regression/tests/bug1057979.c: added test %3.3s
8176 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8178 * device/include/mcs51/8051.h,
8179 * device/include/mcs51/8052.h: made parseable with lint
8180 * device/include/mcs51/lint.h: added include file for (sp)lint
8181 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8182 * doc/cdbfileformat.lyx,
8183 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8185 2005-05-14 Raphael Neider <rneider AT web.de>
8187 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8188 * device/lib/pic16/libc/stdlib/itoa.c (new)
8189 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8190 * device/lib/pic16/libio/Makefile: exclude subdir according to
8191 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8192 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8193 * src/pic16/gen.c (genFunction): prevent annoying warning
8194 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8196 * support/cpp2/cppmain.c (cpp_output_string): new
8197 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8200 2005-05-13 Borut Razem <borut.razem AT siol.net>
8202 * src/SDCCmain.c (linkEdit): fixed bug 1195202
8204 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8206 * .version: changed to version 2.5.1; back to bleeding edge development
8208 2005-05-11 Borut Razem <borut.razem AT siol.net>
8210 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8211 generate PDF version 1.3 documents
8213 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8215 * .version: changed to version 2.5.0
8217 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8219 * doc/sdccman.lyx: updated weblinks, index and smaller updates
8221 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8223 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8224 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8225 well as many smaller updates.
8226 * .version: changed to version 2.5.0-pre1
8228 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8230 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8232 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8234 * support/regression/tests/bug1185672.c: added
8235 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8237 * src/mcs51/gen.c (genCall): added comments, made it look safer
8238 * src/mcs51/gen.c (genEndFunction): simplified
8240 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8242 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8244 2005-04-14 Borut Razem <borut.razem AT siol.net>
8246 * fixed bug 1045046 - SIGSEGV with really simple code?:
8247 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8248 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8250 2005-04-14 Borut Razem <borut.razem AT siol.net>
8252 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8253 src/pic16/device.h: temporarily disabled experimental #inline pragma
8256 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8258 * device/include/z80/stdio.h,
8259 * device/include/z80/string.h: removed these highly incomplete files so
8260 SDCC can use the default ones in device/include/
8262 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8264 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8266 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8269 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8271 * device/include/malloc.h: removed redundant __reentrant prototypes
8272 * device/lib/_mullong.c: added working xstack variant in asm (C version
8273 doesn't pass regression tests)
8274 * device/lib/bpx.c: used __data and made bpx char for mcs51
8275 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8276 (createFunction): fixed bug with xstackPtr
8277 * src/SDCCcse.c: corrected comments
8278 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8279 (killDeadCode, eBBlockFromiCode): removed unused code
8280 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8282 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8283 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8284 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8285 (genModOneByte): fixed warning in MSVC
8286 * src/mcs51/main.c (): added comments
8287 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8289 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8291 * src/SDCCmain.c (linkEdit): oops, changed one line too many
8293 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8295 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8297 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8299 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8300 characters arrays of larger size than the declared one.
8302 2005-04-10 Borut Razem <borut.razem AT siol.net>
8304 * src/pic/gen.c (genInline),
8305 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8306 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8307 (findNextInstruction), (findPrevInstruction),
8308 (findInstructionUsingLabel),
8309 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8310 * src/pic/pcode.c (findLabel): added missing '\n'
8311 * src/src.dsp: added SDCCdwarf2.c to the project
8313 2005-04-09 Borut Razem <borut.razem AT siol.net>
8315 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8317 2005-04-08 Raphael Neider <rneider AT web.de>
8319 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8320 into the chain after a given one) and mergeDefmapSymbols (combine
8321 defmap entries for each symbol per pcode)
8322 * (createDefmap): have defmap entries merged in the end
8323 * (defmapReplaceSymRef): split defmap entries covering two accesses to
8324 a symbol before replacing one access type's symbol, merge symbols in
8325 the end (replacement symbol might already have an entry)
8326 * (assignValnums): keep reference to written WREG intact
8328 2005-04-08 Raphael Neider <rneider AT web.de>
8330 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8333 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8335 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8338 2005-04-07 Raphael Neider <rneider AT web.de>
8340 * device/include/pic16/usart.h: added compatibility defines for
8341 devices with more than one USART
8342 * device/include/pic16/pic18f[68][567]20.h: activated above defines
8344 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8346 * device/lib/Makefile.in: updated for port specific include
8348 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8350 * support/regression/ports/mcs51/spec.mk: added mcs51 include
8352 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8354 * device/include/8051.h,
8355 * device/include/8052.h,
8356 * device/include/at89S8252.h,
8357 * device/include/at89c55.h,
8358 * device/include/at89x051.h,
8359 * device/include/at89x51.h,
8360 * device/include/at89x52.h,
8361 * device/include/mcs51reg.h,
8362 * device/include/reg51.h,
8363 * device/include/reg764.h,
8364 * device/include/regc515c.h,
8365 * device/include/sab80515.h: (re)moved these 12 files
8366 * device/include/mcs51/8051.h,
8367 * device/include/mcs51/8052.h,
8368 * device/include/mcs51/at89S8252.h,
8369 * device/include/mcs51/at89c55.h,
8370 * device/include/mcs51/at89x051.h,
8371 * device/include/mcs51/at89x51.h,
8372 * device/include/mcs51/at89x52.h,
8373 * device/include/mcs51/mcs51reg.h,
8374 * device/include/mcs51/reg51.h,
8375 * device/include/mcs51/reg764.h,
8376 * device/include/mcs51/regc515c.h,
8377 * device/include/mcs51/sab80515.h: and added them here
8379 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8381 * device/include/stdarg.h: changed SDCC specific keywords to double
8383 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8385 * device/include/hc08/mc68hc908gp32.h,
8386 * device/include/hc08/mc68hc908jb8.h,
8387 * device/include/hc08/mc68hc908jkjl.h,
8388 * device/include/hc08/mc68hc908qy.h: fixed comments
8389 * device/include/mcs51/README: updated
8390 * device/include/mcs51/c8051f120.h: added PINRSF
8391 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8392 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8393 amidst code. Also inline is not supported.
8395 2005-04-06 Raphael Neider <rneider AT web.de>
8397 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8398 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8399 callers stack/frame pointers
8401 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8403 * device/include/pic16/usart.h: added, missing in previous commit,
8404 * device/include/pic16/adc.h: fixed typo,
8405 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8407 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8409 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8410 uninitialized because a bug appears with gplink
8411 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8412 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8413 complains for unrecognised option
8415 2005-04-05 Raphael Neider <rneider AT web.de>
8417 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8418 structs as well (using memcpy)
8419 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8420 on ISRs (GOTO has no label)
8421 * src/pic16/device.h: added OF_OPTIMIZE_DF
8422 * src/pic16/main.c: added compiler switch --optimize-df to enable the
8423 new data flow analysis/optimization
8424 * src/pic16/pcode.c: added (prototypes for and implementation of)
8425 dataflow analysis functions, fixed pCodeInstructions' inCond and
8426 outCond values, made RCALL a branch instruction
8427 * (pic16_unlinkpCode): keep C line if possible
8428 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8429 C line moved if possible
8430 * (pic16_getRegFrompCodeOp): NEW, improved version of...
8431 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8432 to use new pic16_getRegFrompCodeOp (works for more SFRs)
8433 * (pic16_BuildFlow): fixed skip instructions with label (did not start
8435 * (pic16_getJumptabpCode): NEW, needed in...
8436 * (LinkFlow): fixed handling of jumptables, calls and conditional
8438 * (pic16_InsertCommentAfter): NEW
8439 * (pic16_pCodeReplace): made verbose and flow preserving
8440 * (AnalyzeFlow): added call to data flow analysis
8441 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8442 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8443 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8445 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8447 * src/SDCCast.c (decorateType): fixed bug #1105626
8449 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8451 * device/include/asm/pic16/features.h,
8452 * pic18f*.h headers,
8453 * device/include/pic16/adc.h,
8454 * device/include/pic16/delay.h,
8455 * device/include/pic16/i2c.h,
8456 * device/include/pic16/malloc.h,
8457 * device/include/pic16/stdio.h,
8458 * device/include/pic16/stdlib.h,
8459 * device/include/pic16/string.h,
8460 * device/lib/pic16/libc/stdio/printf_tiny.c,
8461 * device/lib/pic16/libc/stdio/printf_small.c,
8462 * device/lib/pic16/libc/stdio/strmgpsim.c,
8463 * device/lib/pic16/libc/stdio/strmmssp.c,
8464 * device/lib/pic16/libc/stdio/strmusart.c,
8465 * device/lib/pic16/libc/stdio/vfprintf.c,
8466 * device/lib/pic16/libc/stdlib/ltoa.c,
8467 * device/lib/pic16/libc/stdlib/putchar.c,
8468 * device/lib/pic16/libc/stdlib/x_ftoa.c,
8469 * device/lib/pic16/libc/stdlib/memchrpgm.c,
8470 * device/lib/pic16/libc/stdlib/memchrram.c,
8471 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
8472 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
8473 * device/lib/pic16/libio/adc/adcbusy.c,
8474 * device/lib/pic16/libio/adc/adcread.c,
8475 * device/lib/pic16/libio/adc/adcsetch.c,
8476 * device/lib/pic16/libio/usart/ubaud.c,
8477 * device/lib/pic16/libio/usart/ubusy.c,
8478 * device/lib/pic16/libio/usart/udrdy.c,
8479 * device/lib/pic16/libio/usart/uopen.c,
8480 * device/lib/pic16/libio/usart/uputc.c,
8481 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
8482 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
8483 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8484 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8485 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8486 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
8487 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
8488 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
8489 specific keywords to double underlined form,
8490 * device/lib/pic16/libc/Makefile.rules,
8491 * device/lib/pic16/libsdcc/Makefile.rules,
8492 * device/lib/pic16/libm/Makefile,
8493 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
8494 to compile with C standard set in Makefile.common
8495 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
8496 rand.c and crc.c in compilation process,
8497 * device/lib/pic16/libsdcc/int/divuint.c,
8498 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
8499 `c' from signed to unsigned,
8500 * device/lib/pic16/startup/crt0.c,
8501 * device/lib/pic16/startup/crt0i.c,
8502 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
8503 keywords to double underlined form, bug fixes in _do_cinit function
8504 which prevented the correct initialization of the .idata segment,
8505 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
8506 core to enter a infinite loop
8507 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
8509 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8511 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
8513 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8515 * device/include/Makefile.in: add support for hc08 subdirectory
8516 * device/include/hc08/: new subdirectory
8517 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
8518 Lucas Loizaga, thanks!
8519 * device/include/hc08/mc68hc908qy.h,
8520 * device/include/hc08/mc68hc908gp32.h,
8521 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
8522 their own directory. Changed internal macro names to use the compiler
8523 reserved namespace. Changed SDCC specific keywords to double
8525 * device/include/math.h,
8526 * device/include/malloc.h,
8527 * device/include/stdarg.h,
8528 * device/include/stdbool.h
8529 * device/include/string.h,
8530 * device/include/tinibios.h,
8531 * device/include/ds400rom.h,
8532 * device/include/8051.h,
8533 * device/include/8052.h,
8534 * device/include/80c51xa.h,
8535 * device/include/at89c55.h,
8536 * device/include/at89S8252.h,
8537 * device/include/at89x51.h,
8538 * device/include/at89x52.h,
8539 * device/include/ds80c390.h,
8540 * device/include/reg764.h,
8541 * device/include/regc515c.h,
8542 * device/include/sab80515.h,
8543 * device/include/mcs51/c8051f000.h,
8544 * device/include/mcs51/c8051f018.h,
8545 * device/include/mcs51/c8051f020.h,
8546 * device/include/mcs51/c8051f040.h,
8547 * device/include/mcs51/c8051f060.h,
8548 * device/include/mcs51/c8051f120.h,
8549 * device/include/mcs51/c8051f300.h,
8550 * device/include/mcs51/c8051f310.h,
8551 * device/include/mcs51/c8051f320.h,
8552 * device/include/mcs51/c8051f330.h,
8553 * device/include/mcs51/c8051f350.h,
8554 * device/include/z180.h: Changed SDCC specific keywords to double
8557 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8559 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8561 * (pic16_assignConfigWordValue): disable testing of configuration
8562 register value with config mask,
8563 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8564 function with port->fun_prefix,
8565 * (genFunction): when generating a naked interrupt function never
8566 create an absolute segment placed in interrupt vector address, place
8567 the actual interrupt function at IVA instead, when an interrupt
8568 function is generated with unspecified interrupt then do not create
8569 the absolute section,
8570 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8571 code for generating a call to generic pointer get/put function with
8572 a call to function pic16_callGenericPointer(),
8573 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8574 the call to the generic pointer get/put functions with prefixing the
8575 function name with port->fun_prefix,
8576 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8577 * src/pic16/main.c (_process_pragma): prefix function with
8579 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8580 calling assembler, old 18Fxxxx macro is deprecated,
8581 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8582 PC_ASMDIR in while condition,
8583 * (findInstruction): add PC_ASMDIR in while condition,
8584 * (buildCallTree): prefix main with port->fun_prefix,
8585 * (pic16_pCode2str): fixed bug that didn't emit the memory access
8586 identifier for variable with banked access in instructions BTFSS,
8587 BTFSC, BCF, BSF, BTG
8588 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8589 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8590 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8591 perform optimization when enviroment variable NO_REG_OPT is set,
8592 * (insideLRBlock): NEW, return 1 if register is inside an
8593 INF_LOCALREGS block,
8594 * (RemoveRegFromLRBlock): remove a register that is completely
8595 eliminated by register optimization, but it is still left in local
8596 register store/restore in/from stack block,
8597 * (Remove2pcodes): after removing register, check to see if it
8598 should be removed from local register store/restore in/from stack
8600 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8601 DUMMY_READ_VOLATILE,
8603 * device/include/pic16/adc.h: minor prototype modifications and
8605 * device/include/pic16/malloc.h: added GPL notice various
8607 * device/include/pic16/stdint.h: NEW, standard header for ints
8608 * device/include/pic16/delay.h: NEW, header for delay functions,
8609 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8611 * device/include/pic16/signal.h: NEW, header providing helper macros
8612 for implementing signal handlers,
8613 * device/include/pic16/stdio.h: added prototypes for functions,
8614 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8615 prototypes for stdin and stdout, added macro PUTCHAR to
8616 automatically implement putchar function prototype,
8617 * device/include/pic16/usart.h: modified and updated USART library,
8618 * device/lib/pic16/libio/adc/,
8619 * device/lib/pic16/libio/i2c: some modifications to improve library
8621 * device/lib/pic16/libc/stdio/: modifications for the new printf*
8622 family of functions,
8623 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8624 family of functions and other sources,
8625 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8626 of the PIC18Fxx[28] devices,
8627 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8628 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8629 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8630 _do_cinit function, because the previous failed when local variables
8631 where not placed in the same memory bank,
8632 * device/lib/pic16/libsdcc/char/: various modifications to improve
8633 library performance,
8634 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8635 information on the new functions of the c library and more...
8637 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8639 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8641 2005-03-26 Raphael Neider <rneider AT web.de>
8643 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8644 if condition == CARRY)
8645 * (genCmp): adapted to new genSkipc semantics
8646 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8647 on rIfx (genCmp was broken)
8649 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8651 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8652 * src/z80/main.c (_keywords[]),
8653 * src/SDCCglobal.h (struct options),
8655 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8656 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8657 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8658 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8659 always available in leading double underscore form. The C99 support is
8660 mostly missing, but it's a start.
8661 * support/regression/tests/bug-227710.c: fixed nonconforming use of
8662 reserved identifier "__data".
8664 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8666 * src/mcs51/peeph.def: fixed bug 1170013
8668 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8670 * device/include/mcs51reg.h: fixed bug 842007
8672 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8674 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8677 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8679 * src/port.h (struct PORT),
8680 * src/avr/ralloc.c (avr_assignRegisters),
8682 * src/ds390/ralloc.c (ds390_assignRegisters),
8684 * src/hc08/ralloc.c (hc08_assignRegisters),
8686 * src/mcs51/ralloc.c (mcs51_assignRegisters),
8688 * src/pic/ralloc.c (pic14_assignRegisters),
8690 * src/pic16/ralloc.c (pic16_assignRegisters),
8692 * src/xa51/ralloc.c (xa51_assignRegisters),
8694 * src/z80/ralloc.c (z80_assignRegisters),
8696 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8697 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8699 * src/SDCCdflow.c (computeDataFlow),
8701 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8703 * src/SDCCcflow.c (*),
8705 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8706 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8707 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8708 immedDom() returning wrong block; probably fixes bug #1160833)
8710 2005-03-20 Borut Razem <borut.razem AT siol.net>
8712 * support/scripts/inc2h.pl: WIN32 port
8714 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8716 * device/lib/makefile.in: added abs.c and labs.c
8718 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8720 * device/include/stdint.h: added
8721 * device/lib/abs.c: added
8722 * device/lib/labs.c: added
8723 * device/include/stdlib.h: added abs() and labs() prototypes
8724 * device/lib/libsdcc.lib: added abs and labs
8725 * device/include/float.h,
8726 * device/lib/_fsmul.c,
8727 * device/lib/printf_fast.c,
8728 * device/lib/printf_tiny.c: updated comments
8730 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8732 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8735 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8737 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8738 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8740 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8742 * device/lib/printf_large.c: removed inline assembly for portability and
8743 readability. Use printf_fast if speed or size are more important.
8744 * src/pic16/gen.c: removed conditions around use of DEBUGpc
8745 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8747 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8749 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8750 prevent compiler warning
8752 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8754 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8755 moved to level 0 and declared as static. Also they are explicit
8756 placed in access bank. This was necessery because some times they
8757 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8758 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8759 optimizations. Currently only compare to unsigned char is implemented,
8760 * src/pic16/gen.c: added fReturnIdx array,
8761 * (struct resolvedIfx) is moved to gen.h and made public,
8762 * (struct _G): added sregsAlloc and sregsAllocSet fields,
8763 * (aopForSym): added an optimization to directly store in stack of
8764 the operand of a SEND iCode,
8765 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8766 but as registers instead (AOP_REG) using the fReturnIdx array,
8767 * (pic16_freeAsmop): remove the freed register from the
8768 _G.sregsAlloc field,
8769 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8770 a compare of 'WREG',
8771 * (pic16_popGetTempRegCond): changed function prototype, now
8772 function takes also a bitVector argument v which holds the current
8773 set of registers that are allocated for stack access by aopForSym,
8774 registers allocated in aopForSym for accessing stack symbols are not
8775 any more part of the functions usedRegs field,
8776 * (genCall): some times aopOp is called for a stack variable to be
8777 send, aopForSym might perform the push, if this is true make sure
8778 that genCall doesn't push the variable twice by testing _G.resDirect,
8779 * (genFunction): changed testing for unspecified interrupt number
8780 from 256 to INTNO_UNSPEC,
8781 * modified selection scheme of frame pointer generation. Previously
8782 if function did use local registers a frame pointer was generated,
8783 now a frame pointer is generated only if function has arguments
8784 (that need PLUSW2 register access), or has stack arguments, or the
8785 compiler is not instructed to omit the frame pointer,
8786 * (genEndFunction): before restoring local registers that were saved
8787 in the function preamble, also restore the registers that *might*
8788 have been allocated for stack access,
8789 * (genRet): removed some old comments,
8790 * (genCmp, the active (RN's) version): added a call to the
8791 pic16_genCmp_special function to perform the compare with a more
8792 robust and optimized way,
8793 * (genInline): a feature has been added in inline code generation,
8794 which allows a wildcard variable substitution when writing inline
8795 assembly. Code is incomplete and experimental therefore undocumented,
8796 * (genCast): changed order of aopOp for result and right to allow
8797 aopForSym to directly load the result if possible,
8798 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8799 perform an optimized compare on some selected special occasions,
8800 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8801 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8802 generate an IVT any more,
8803 * src/pic16/main.c (pic16_optionsTable): added command line option
8805 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8806 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8808 * src/pic16/NOTES: Raphael Neider added in list of active developers
8809 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8810 jumptable_end to prevent bug #,
8811 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8812 inCond and outCond fields,
8813 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8814 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8815 turn off register spilling,
8816 * (packRegsForOneUse): synced with other ports' versions although it
8817 is not used currently,
8818 * (pic16_packRegisters): added an optimization while reading
8819 structure bitfields, some registers may be saved (malloc code is
8820 decreased by 80 bytes)
8822 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8824 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8825 left is a bitfield, if yes, then don't optimize assignment. Perhaps
8826 this can be optimized more?
8828 2005-03-10 Raphael Neider <rneider AT web.de>
8830 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8831 genNearPointerGet): (hopefully) fixed access to bitfields via
8832 pointers (p->bitN = x; and x = p->bitN; failed)
8834 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8836 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8838 2005-03-09 Raphael Neider <rneider AT web.de>
8840 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8842 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8844 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8845 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8846 (regTypeNum): set REG_BIT type if necessary
8847 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8848 * support/regression/tests/critical.c: check bug 1144613
8850 2005-03-02 Raphael Neider <rneider AT web.de>
8852 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8854 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8856 * src/avr/ralloc.c (serialRegAssign),
8857 * src/ds390/ralloc.c (serialRegAssign),
8858 * src/hc08/ralloc.c (serialRegAssign),
8859 * src/mcs51/ralloc.c (serialRegAssign),
8860 * src/pic/ralloc.c (serialRegAssign),
8861 * src/pic16/ralloc.c (serialRegAssign),
8862 * src/xa51/ralloc.c (serialRegAssign),
8863 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8865 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8867 * src/SDCCast.c (decorateType): fixed bug 1124787
8869 2005-02-20 Hubert Sack <sack AT digiplan.de>
8870 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8872 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8875 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8877 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8878 to keep the correct label reference count when adding/removing references
8879 to labels. A peephole file using this is appended to patch #1144962.
8881 2005-02-14 Raphael Neider <rneider AT web.de>
8883 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8884 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8885 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8886 retrievals of result operand's value on assignment
8888 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8890 * device/include/pic16/string.h: modified prototype for memccpy()
8891 to memccpy(void *, void *, char, size_t)
8892 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8893 check whether to omit frame pointer or not,
8894 * (genInline): convert all occurences of "\n" to LF in inline
8895 assembler blocks, this helps formatting the inline text,
8896 * (pic16_loadFSR0): modified prototype,
8897 * (genNearPointerGet, genNearPointerSet): reorganization of code,
8898 removed some 8051 legacy code,
8899 * (genPackBits): enabled handling bitfields exceeding one byte in size,
8900 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8901 before allocating temporary registers in functions,
8903 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8905 * support/regression/tests/bitvars.c: corrected the "fix"
8907 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8909 * support/regression/tests/bitvars.c,
8910 * support/regression/tests/bitwise.c,
8911 * support/regression/tests/rotate.c: "fixed" problems on Alpha
8913 2005-02-10 Raphael Neider <rneider AT web.de>
8915 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8916 different size for Alpha
8917 * src/pic16/gen.c (genCmpEq) : improved compare with 0
8919 2005-02-09 Raphael Neider <rneider AT web.de>
8921 * src/SDCC.lex(doPragma) : save and restore warning options as well
8922 (also added new stack plus clone- and copyAndFreeSDCCERRG())
8923 * have #pragma less_pedantic set the errorlevel to WARNING
8925 * (cloneOptimize) : fixed wrong malloc's size
8926 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8927 facilitate correct handling of #pragma (save|restore)
8929 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8931 * src/mcs51/gen.c: removed non-standard C nameless struct/union
8933 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8935 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8937 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8939 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8941 2005-02-02 Raphael Neider <rneider AT web.de>
8943 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8944 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8945 * (pic16_storeForReturn): fixed to allow returning function pointers
8946 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8947 * device/include/pic16/{stddef.h,stdbool.h}: added
8949 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8951 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8953 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8955 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8956 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8957 appeared to be required
8959 2005-01-31 Borut Razem <borut.razem AT siol.net>
8961 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8962 include/mcs51 and include/z80 directories to the package
8964 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8966 * src/hc08/gen.c (genFunction): fixed bug #1112752
8968 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8970 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8972 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8974 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8976 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8978 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8980 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8982 * device/include/c8051fxxx.h: removed these 6 files
8983 * device/include/mcs51/c8051fxxx.h: added these 11 new files
8985 2005-01-26 Raphael Neider <rneider AT web.de>
8987 * src/pic16/gen.c (genAssign): fixed assignment from longs
8988 in codespace (were cut to three bytes)
8989 * (genDummyRead): implemented (except for CODESPACE...),
8991 * src/pic16/glue.c (emitStatistics): beautified
8992 * device/lib/pic16/libm/Makefile: added include path
8994 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8996 * src/z80/gen.c (aopPut): fixed bug #1103902
8998 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9000 * device/lib/expf.c: fixed bug #1095792
9002 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
9004 * device/lib/pic16/libm: added Math library sources
9006 2005-01-24 Raphael Neider <rneider AT web.de>
9008 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
9009 to enable upcast to pCodeOpReg2 (there is no type tag to
9010 differenciate the two and pic16_popGet2p cast into PCOR2)
9011 * src/pic16/main.c (_process_pragma): fixed another malloc bug
9012 (sizeof(sectNames) changed to sizeof(sectName))
9013 Both patches fix segfaults under MinGW.
9015 2005-01-23 Raphael Neider <rneider AT web.de>
9017 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
9018 Safe_[mc]?alloc()'ed variables
9019 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
9020 of (byte sized) temporaries (assign them to WREG for now)
9021 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
9022 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
9023 this might fix SIGSEGVs on MinGW...
9024 * src/SDCCopt.c (killDeadCode): restored original behaviour
9025 (volatile operands might get thrown away though)
9027 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
9029 * src/pic16/gen.c: fixed bug #1106975,
9030 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
9031 pointer update, INTCON is saved, global interrupts are disabled and
9032 restored after updateing TOS.
9033 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
9034 * added function attribute 'shadowregs' to take advantage of shadow
9036 * added function attribute 'wparam' as an alternative to the wparam
9038 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
9039 user declares a non-ISR function as 'shadowregs',
9040 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
9042 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
9044 * .version: bumped version number to 2.4.8
9045 * device/lib/pic16/pics.all: list of PIC18F devices supported by
9047 * device/lib/pic16/libio/i2c/: I2C module support library,
9048 * device/include/pic16/i2c.h: I2C support library header,
9049 * device/lib/pic16/libc/stdio/: standard IO support sources,
9050 * (printf_small.c): printf_small() source, supports float print,
9051 * (printf_tiny.c): printf_tiny() source, does not support floats,
9052 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
9053 enable global optimizations for entire library source, other
9054 Makefiles in the source tree are also modified to reflect this,
9055 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
9057 * doc/sdccman.lyx: updated to reflect new changes,
9058 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
9059 sym->onStack if-case,
9060 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
9061 sbit, idata, _idata, xdata, _xdata,
9062 * added pragma library, to link an external library, (see doc),
9063 * removed command line options, --pomit-config-words, --pomit-ivt,
9064 --pleave-reset-vector,
9065 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
9066 when calling assembler to reflect memory model used, also define
9067 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
9068 reflect stack model used,
9069 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
9070 on stack return NULL,
9072 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9074 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
9075 of the operands is volatile. Fixes #1020220
9077 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
9079 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
9080 * (OptimizeRegUsage): make sure that there is really no other flow where
9081 the first pCode is used
9083 2005-01-22 Raphael Neider <rneider AT web.de>
9085 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9086 to fix #1106967 (pCode->seq are not set up correctly)
9088 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9090 * src/SDCCglue.c (glue): make sure code area is declared before the
9091 static initialization area.
9093 2005-01-21 Raphael Neider <rneider AT web.de>
9095 * device/lib/Makefile.in: fixed test for pic16 install dir
9096 * device/lib/pic16/*/Makefile*: modified compile flags to enable
9098 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9099 added --optimize-goto compiler switch and pragma wparam documentation
9100 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9101 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9102 and PRODH closing bug #1071770 (peephole optimizer)
9104 2005-01-19 Raphael Neider <rneider AT web.de>
9106 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9107 cmdLine buffers (used when calling sdcpp...) are large enough
9108 (MAX_PATH=256 truncates arguments leading to system halts when
9110 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9111 * (genUminus): rewritten to for efficiency
9112 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9113 used uninitialized in some cases)
9114 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9115 copy the third byte from the int -- now assumes 0x80 (data memory)
9116 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9117 operands (genAddLit expects the iCode's operands to swapped as
9118 well), fixed leftover bytes (crashed for short left operands)
9119 * (pic16_genMinusDec): performance improvements, removed false
9121 * (pic16_genMinus): fixed to cope with differently sized operands
9122 * src/pic16/glue.c (pic16_glue): added new banksel optimization
9124 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9125 * src/pic16/graph.[ch]: implementation of directed graphs, used by
9126 new banksel optimization
9127 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9128 analysis for temporary registers (segfaults...)
9129 * src/pic16/peeph.def: added rule
9131 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9133 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9134 which converts a float number to its ASCII representation
9135 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9136 functions to convert the fractional and integer part of a float to ASCII,
9137 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9138 realloc.c): added _MALLOC_SPEC to explicit place variables in data
9140 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9142 * device/include/pic16/adc.h: added GPL info,
9143 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9144 a pCodeOp as tested operand,
9145 * (genNearPointerGet): optimized bit testing, does not use
9146 intermediate register for bit value, test directly instead with
9147 BTFSS, BTFSC, works only for single bits,
9148 * (genpic16Code): dump the name of the iCode in the asm,
9149 * src/pic16/ralloc.c (decodeOp): removed static declaration and
9150 renamed to pic16_decodeOp,
9151 * (serialRegAssign): do not allocate a temporary register for iCode
9152 sequences that test a single bit for 1/0
9154 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9156 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9157 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9158 access stack and frame pointers. They are initially assigned to
9159 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9160 accessing SFRs. Updated all occurences of modification of stack or
9161 frame pointer in gen.c and pcode.c,
9162 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9163 assigning of a literal value to pointers,
9164 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9165 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9168 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9170 * doc/sdccman.lyx: update documentation about stack pragma, added
9171 some info for stack memory models
9173 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9175 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9177 2005-01-08 Raphael Neider <rneider AT web.de>
9179 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9180 udata sections to fix bug #1097823
9182 2005-01-05 Raphael Neider <rneider AT web.de>
9184 * src/pic16/gen.c (genGenericShift): added handling of differently
9185 sized left operand and result
9187 2005-01-04 Raphael Neider <rneider AT web.de>
9189 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9190 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9191 to hold the condition bit)
9192 * added new version of genCmp (old code available via #define)
9193 * added new version of genShiftLeft/genShiftRight in a generic
9194 way, now supports shifting by negative values
9195 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9196 shiftCount (expected by genGenericShift)
9197 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9198 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9200 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9201 is an invalid literal too...)
9203 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9205 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9206 from Raphael Neider,
9207 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9208 for 8-bit literals. This fixes some literal operands which are sign
9209 extended to 16-bits ints when instruction needs only 8-bits.
9211 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9213 * device/lib/logf.c: added mcs51 assembly version
9214 * device/lib/expf.c: added mcs51 assembly version
9215 * device/lib/_logexpf.c: new shared asm code for expf and logf
9216 * device/include/math.h: add defines for assembly math library
9217 * device/lib/Makefile.in: build new _logexpf.c
9218 * device/lib/libfloat.lib: use new _logexpf.c
9220 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9223 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9224 device types which have less than 0x7f registers.
9226 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9228 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9230 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9232 * device/lib/printf_fast.c: only build on supported arch.
9233 * device/lib/printf_tiny.c: only build on supported arch.
9234 * device/lib/printf_fast_f.c: only build if asm float lib
9235 * device/lib/_fsget1arg.c: only build if asm float lib
9236 * device/lib/_fsget2args.c: only build if asm float lib
9237 * device/lib/_fsnormalize.c: only build if asm float lib
9238 * device/lib/_fsreturnval.c: only build if asm float lib
9239 * device/lib/_fsrshift.c: only build if asm float lib
9240 * device/lib/_fsswapargs.c: only build if asm float lib
9241 * device/include/stdio.h: don't provide print_fast,
9242 print_fast_f, print_tiny prototypes if --xstack used
9244 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9246 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9247 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9250 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9252 * device/lib/printf_fast_f.c: same as printf_fast, but
9253 with floating point enabled
9254 * device/lib/printf_fast.c: minor tweaks
9255 * device/include/stdio.h: add printf_fast_f
9257 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9259 * src/SDCCmain.c: make --float-reent default for mcs51
9260 * device/lib/_fsadd.c: added mcs51 assembly version
9261 * device/lib/_fssub.c: added mcs51 assembly version
9262 * device/lib/_fsmul.c: added mcs51 assembly version
9263 * device/lib/_fsdiv.c: added mcs51 assembly version
9264 * device/lib/_fseq.c: added mcs51 assembly version
9265 * device/lib/_fsneq.c: added mcs51 assembly version
9266 * device/lib/_fsgt.c: added mcs51 assembly version
9267 * device/lib/_fslt.c: added mcs51 assembly version
9268 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9269 * device/lib/Makefile.in: add _fscmp to build
9270 * device/lib/libfloat.lib: add _fscmp to build
9272 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9274 * device/lib/_fs2slong.c: added mcs51 assembly version
9275 * device/lib/_fs2sint.c: added mcs51 assembly version
9276 * device/lib/_fs2schar.c: added mcs51 assembly version
9277 * device/lib/_fs2ulong.c: added mcs51 assembly version
9278 * device/lib/_fs2uint.c: added mcs51 assembly version
9279 * device/lib/_fs2uchar.c: added mcs51 assembly version
9280 * device/lib/_slong2fs.c: added mcs51 assembly version
9281 * device/lib/_sint2fs.c: added mcs51 assembly version
9282 * device/lib/_schar2fs.c: added mcs51 assembly version
9283 * device/lib/_ulong2fs.c: added mcs51 assembly version
9284 * device/lib/_uint2fs.c: added mcs51 assembly version
9285 * device/lib/_uchar2fs.c: added mcs51 assembly version
9286 * device/include/float.h: added #define to select asm vs c
9288 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9290 * device/lib/printf_fast.c: improvements to float output
9291 * device/include/float.h: add defines for assembly float library
9292 * device/lib/_fsget1arg.c: receive 1 float arg
9293 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9294 * device/lib/_fsnormalize.c: normalize a float
9295 * device/lib/_fsreturnval.c: return float, various helper routines
9296 * device/lib/_fsrshift.c: right shift a float's mantissa
9297 * device/lib/_fsswapargs.c: swap 2 floats
9298 * device/lib/Makefile.in: build these 6 new files for mcs51
9299 * device/lib/libfloat.lib: add these 6 files to the library
9301 2004-12-26 Borut Razem <borut.razem AT siol.net>
9303 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9306 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9308 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9309 and fully reentrant and register bank neutral.
9310 * device/lib/printf_fast.c: added float (not enabled by default),
9311 added compact/slower integer (also not enabled by default),
9312 improved size/speed of fast integer code, other minor changes
9313 * device/include/stdio.h, device/lib/Makefile.in,
9314 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9316 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9318 * src/pic16/pcode.c: declaring variables other than at the start of a
9319 block is not supported in C by VC6.
9321 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9323 * applied a previous patch from Raphael Neider that wasn't included
9324 in the previous commits, which fixes infinite loops within jumptable
9326 * made some fixes that previous patches introduced
9328 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9330 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9331 that fixes an issue with AOP_PCODE asmop's offset,
9332 * (pic16_popCopyReg): update instance field too,
9333 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9334 function of pic port,
9335 * (genCmp, genAnd, genAssign),
9336 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9338 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9340 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9341 variables initial values to idata section,
9342 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9343 variables in some functions. This utilizes parmBytes field of iCode
9344 structure to hold the offset of the variable in stack. (might be
9345 able to use the stack field too?)
9346 * applied patch from Raphael Neider # ### , # ###
9347 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9348 variable initial values in idata section,
9349 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9350 for static variables with initial value
9351 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9352 applied fix in while loop from Raphael Neider.
9354 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9356 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9357 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9358 * src/ds390/ralloc.c (serialRegAssign): spill bits
9359 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9360 * support/Util/SDCCerr.c,
9361 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9362 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9363 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9365 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9367 * device/include/sdcc-lib.h: inserted LGPL, added includes
9368 asm/ds390/features.h and asm/mcs51/features.h
9369 * device/include/asm/default/features.h,
9370 * device/include/asm/gbz80/features.h,
9371 * device/include/asm/z80/features.h: added empty _AUTOMEM
9373 * device/include/asm/ds390/features.h,
9374 * device/include/asm/mcs51/features.h: added files with defines for
9375 _AUTOMEM and _STATMEM indicating automatic and static storage class
9376 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9377 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9378 * src/SDCCicode.c (geniCodeCast),
9379 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9380 * src/SDCCloop.c (loopInduction): removed unused variable lr
9381 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9382 to convertToFcall to include char modulo (RFE 1065037), added check
9383 if left operand is unsigned and use abs of literal value
9384 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9385 as it doesn't work after conversion from peephole.def to peephole.rul
9386 * src/mcs51/gen.c (toBoolean): added check for size,
9387 (genModOneByte): optimized code for signed char modulo a literal
9388 power of 2 (thanks to Hubert Sack),
9389 (genRRC): removed unnecessary "clr c",
9390 (genRLC): replaced "add a,acc" with cheaper "rlc a"
9391 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9393 swapped rules 256.c and 256.d,
9394 extended 256.d by using new multiple checks (thanks Erik),
9395 added rules 256.e and 256.f,
9396 updated rule 261.a and 261.b to new generated code
9397 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9399 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9401 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9402 induction related bugs, including first part of bug #1074377
9404 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9406 * applied patch from bug-report #1076292,
9407 * applied patches for genAnd and Goto-optimizations for Raphael
9409 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9410 dump a less iCode information,
9411 * src/pic16/device.h (pic16_options_t): added field debgen,
9412 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9413 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9414 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9416 * (various functions): added macros FENTRY and FENTRY2 to functions,
9417 to emit function prologue,
9418 * (various functions): fixed indentation,
9419 * (genNearPointerGet): fixed loading of FSR0,
9420 * (genPackBits): applied patch from Raphael Neider to fix updating
9421 of FSR0 and touching only the modified bits,
9422 * src/pic16/genarith.c (various functions): added macros FENTRY to
9423 emit function prologue in comments,
9424 * src/pic16/pcode.h: added functions debugf2, debugf3,
9425 * src/pic16/ralloc.c: partial fix for packForPush caused
9428 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9430 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9431 <stsp AT users.sourceforge.net> with reversed byte order
9432 * support/regression/tests/rotate.c: added (ds390 skips some tests)
9434 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9436 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9438 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9439 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9441 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9443 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9445 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9447 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9449 (setFromConditionArgs): friendly operand parser for peephole rules,
9450 (operandBaseName, operandsNotRelated): new peephole condition
9451 "operandsNotRelated" -- similar to "operandsNotSame", but takes
9452 architecture specific register naming into account, handles n-way
9453 comparisons, and supports quoted literals
9454 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9456 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9458 * src/mcs51/peeph.def: fixed bug #1076940
9460 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9462 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9464 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9466 Adding support for replacing ljmps with sjmps in jumptables
9467 generated for switch statements. For now you need to set the
9468 environment variable SDCC_SJMP_JUMPTABLE to enable this.
9469 Now 4 algorithms for mcs51 jumptable generation are used:
9470 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
9471 addresses loaded pc-relative for up to 112 cases and stack-pushing
9472 target addresses loaded with offset from dptr for up to 256 cases.
9474 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
9475 * src/mcs51/main.c: adapted constants for switch table generation
9476 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
9478 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
9480 * device/lib/printf_large.c (_print_format): fixed bug 1073386
9481 * support/regression/tests/bug1057979.c: added test for bug 1073386
9483 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9485 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9488 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9490 * src/pic16/device.h,
9491 * src/pic16/genarith.c,
9494 * src/pic16/pcode.c: applied patches #1068154 and #1070213
9496 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
9498 Large cummulative patch for pic16 port.
9499 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
9500 to call when a stack overflow occurs,
9501 * (malloc.h): added CVS Id tag,
9502 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
9504 * added libc directory. The current version of LibC contains string
9505 functions, ctype functions and macros and some functions of the
9506 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
9507 be extensively tested in the future. Standard disclaimer here.
9508 Library is not automatically build yet. But one can build it by
9509 invoking 'make' inside the libc directory.
9510 * added ADC library under libio. Preliminary version yet.
9512 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
9513 * src/pic16/gen.c (aopForRemat): asmop size is filled by
9514 aopForRemat() now and not by pic16_aopOp(),
9515 * (pic16_popGetTempReg): removed warning messgae when allocating
9516 temporary registers, its a buggy feature and will be removed,
9517 * (pic16_popGet): set register instance field in AOP_CRY,
9518 * (pic16_outBitC): fixed for results in size greater than 1,
9519 * (genUminusFloat): fixed for pic16, ported code from mcs51,
9520 * (pic16_storeForReturn): optimized return of 0,
9521 * (genCmp): experimental code for new genCmp which uses PIC18's
9522 special compare&skip instructions. Initial tests fail some times
9523 with variables grater than 1 byte in size, so new code is disabled,
9524 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9526 * (genCast): began a fix to optimize the casting of a bit to another
9527 bit, now assigning a bitfield to another bitfield will fail, sorry,
9528 * src/pic16/main.c: disabled the use of lr-support feature,
9529 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9530 * added some function prototypes, added function _debugf prototype,
9531 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9532 bits with offset (case PO_GPR_BIT),
9533 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9535 * (isBankInstruction): modified to return 0 for no banking instruction,
9536 and 1 for banking instruction,
9537 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9538 caused stop processing pCodes after a inline assembly block,
9539 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9540 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9541 registers when it shouldn't,
9542 * src/pic16/ralloc.c (allocReg): add preliminary support for
9543 supporting a limited set of temporary registers,
9545 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9547 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9548 genDataPointerSet): ensure assignments always copy in MSB to LSB
9550 (loadRegFromAop): recognize CLRH optimization,
9551 (genFunction): optimize RECEIVE iCodes in reentrant functions
9553 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9555 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9556 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9558 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9559 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9560 contiguous with data
9562 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9564 * device/lib/_gptrget.c (_gptrget),
9565 * device/lib/_gptrgetc.c (_gptrgetc),
9566 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9567 instead of sjmp to ret
9568 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9569 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9571 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9573 * .version: bumped version to 2.4.7
9574 * device/lib/_gptrget.c (_gptrget): is now _naked
9575 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9576 * device/lib/_gptrput.c (_gptrput): is now _naked
9577 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9578 (createFunction): fixed xstack
9579 * src/SDCCglue.c (emitMaps): set allocation required for bit area
9580 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9582 (geniCodeCritical): store original interrupt state in an iTemp bit
9583 var unless stack-auto
9584 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9585 * src/SDCCmain.c (setIncludePath): added include/target to search path
9586 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9587 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9589 (processFuncArgs): put bit vars in bit area
9590 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9591 unsaveRBank): fixed xstack,
9592 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9593 (genFunction, genEndFunction): fixed xstack,
9594 (genAssign): optimization don't walk backwards through mem
9595 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9596 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9597 * support/regression/Makefile: also make library (for stack-auto) when
9598 making "all" and added "test-mcs51-xstack-auto"
9599 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9600 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9601 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9602 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9603 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9604 make-library by MAKE_LIBRARY
9605 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9606 regression tests for xstack
9607 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9608 * support/regression/tests/critical.c: test for critical on mcs51
9610 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9612 * support/regression/ports/ucz80/spec.mk: use include and lib files from
9613 built version of sdcc instead of installed version
9615 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9617 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9618 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9620 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9621 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9622 WARNING: remove device/lib/build/z80/printf.o by hand when
9623 updating from previous build!
9624 * device/lib/z80/printf.c: updated comment
9625 * support/regression/tests/bug1057979.c: test all ports now
9626 * support/regression/tests/bug1065458.c: file added
9628 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9630 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9631 *_start and *_end symbols for static functions
9633 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9635 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9636 and search crt0.o in all library paths,
9637 (setIncludePath): proper handling of --nostdinc,
9638 (setLibPath): proper handling of --nostdlib
9639 * support/regression/Makefile,
9640 * support/regression/ports/ds390/spec.mk,
9641 * support/regression/ports/gbz80/spec.mk,
9642 * support/regression/ports/hc08/spec.mk,
9643 * support/regression/ports/mcs51/spec.mk,
9644 * support/regression/ports/mcs51-large/spec.mk,
9645 * support/regression/ports/mcs51-stack-auto/spec.mk,
9646 * support/regression/ports/z80/spec.mk: use include and lib files from
9647 built version of sdcc instead of installed version
9648 * doc/sdccman.lyx: fixed typo in --nostdinc
9650 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9655 * src/pic/gen.c : added support to generate code for struct bit fields.
9657 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9659 * as/xa51/xa_version.h,
9660 * device/include/errno.h,
9661 * device/include/regc515c.h,
9662 * device/lib/_itoa.c,
9663 * device/lib/_ltoa.c,
9664 * device/lib/ser_ir_cts_rts.c,
9665 * sim/ucsim/xa.src/glob.cc,
9666 * sim/ucsim/xa.src/inst_gen.cc,
9667 * sim/ucsim/xa.src/xa_bit.cc,
9668 * sim/ucsim/xa.src/xa_sfr.cc,
9669 * sim/ucsim/z80.src/inst_dd.cc,
9670 * sim/ucsim/z80.src/inst_fdcb.cc,
9671 * support/scripts/keil2sdcc.pl,
9672 * src/pic16/pic16.dsp,
9673 * src/pic16/pic16a.dsp: corrected cvs line endings
9674 * device/lib/printf_large.c: fixed bug 1057979
9675 * src/pic16/gen.c: fixed non-C standard code
9676 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9677 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9678 * support/regression/ports/mcs51/support.c: reload T1 asap
9679 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9680 pdata use and clear idata startup behaviour
9681 * support/regression/tests/bug1057979.c: added
9683 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9685 * device/examples/ds390/ow390/ad26.h,
9686 * device/examples/ds390/ow390/cnt1d.h,
9687 * device/examples/ds390/ow390/crcutil.c,
9688 * device/examples/ds390/ow390/ownet.h,
9689 * device/examples/ds390/ow390/owsesu.c,
9690 * device/examples/ds390/ow390/swt12.h,
9691 * device/examples/ds390/ow390/swtoper.c,
9692 * device/examples/ds390/ow390/temp10.h,
9693 * device/examples/ds390/ow390/thermodl.c,
9694 * device/examples/ds390/tinitalk/tinitalk.dsp,
9695 * device/examples/ds390/tinitalk/tinitalk.dsw,
9696 * device/examples/mcs51/clock/hw.h,
9697 * device/examples/mcs51/simple2/go.bat,
9698 * device/examples/serialcomm/windows/serial.h,
9699 * device/examples/xa51/dummy.c,
9700 * device/examples/xa51/hello.c,
9701 * device/include/80c51xa.h,
9702 * device/include/at89x051.h: corrected cvs line endings
9704 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9706 * src/pic16/main.c (options): added command line --gstack, to trace
9707 stack over/under flows,
9708 * added pragma 'wparam' to allow passing first byte of function
9709 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9710 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9711 call to __gstack_test function and sets up the symbol as extern,
9712 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9713 * popaop): added call to pic16_testStackOverflow,
9714 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9716 * (genCall, genPcall): now all parameters are passed via stack
9717 except in functions that are pass to wparam pragma in which WREG is
9719 * (genPcall): REENTRANT flag is checked to see if variable prototype
9720 contains reentrant keyword, don't call a non-reentrant function, via
9721 a reentrant function pointer or vice versa, functions are never
9723 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9725 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9726 SIGSEGV when accessing a NULL register stucture,
9727 * (pic16_printGPointerType): modified to handle UPPER modifier for
9728 function initializers, changed prototype of function to simpler one,
9729 * (pic16_printIvalFuncPtr): check to see if function is already
9730 added in externs list,
9731 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9732 optimized a move from W to SFR with a move to the same register
9734 * device/lib/pic16/debug: NEW directory, contains debug features
9735 which are enabled when linking with libdebug.lib, currently command
9736 line option --gstack enables stack pointer tracing for over/under
9737 flow, corresponding sources are in debug/gstack
9739 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9741 * doc/sdccman.lyx: updated SDCC version,
9742 * (PIC16 port): update list of command line options,
9743 * src/pic16/device.h (structure pic16_options_t): added field gstack
9744 to enable stack overflow tracing on push/pops,
9745 * src/pic16/device.c (statistics structure): added statistics
9747 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9748 pic16_dump_int_registers): increase statistics counters for each
9749 * variable which is encountered
9750 * (pic16_dump_usection): emit each .udata variable to its own udata
9752 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9753 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9754 parameters via stack, otherwise use old scheme,
9755 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9756 assembler output file,
9757 * src/pic16/main.c: added command line options --gstack to enable
9758 push/pop tracing for stack overflow,
9759 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9760 instructions): added size of each instruction,
9761 * (pic16_countInstruction): estimate size of instructions in
9762 the_pFile list, inline assembly blocks are not counted,
9763 * (pic16_FixRegisterBanking): trace previous register usage, when
9764 banksel optimizations is greater than 0, don't emit a redudant
9767 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9769 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9770 * src/pic16/ralloc.c : applied same fix for pic16.
9771 * src/pic/gen.c : tidied it up a little.
9773 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9775 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9776 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9778 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9780 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9782 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9784 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9785 non-reentrant function __modsint in the interrupt function (thus
9786 corrupting math operations during serial I/O)
9787 * device/lib/ser_ir.c: as above, changed buffersize
9788 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9790 * doc/Makefile: added option -t for rsync
9792 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9794 * src/SDCCast.h (struct ast),
9795 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9797 2004-10-20 Borut Razem <borut.razem AT siol.net>
9799 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9802 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9804 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9806 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9807 support functions to replace long sequences of MOVFF's from access
9808 bank registers to stack and vice versa,
9809 * src/pic16/device.h: added new field opt_flags, where optimization
9810 flags can be set to enable certain features,
9811 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9812 * pBlock, (genFunction, genEndFunction): surroung loop for
9813 saving/loading used registers in stack with PC_INFO pCodes,
9814 INF_LREGS. Code in between can then be optimized by pCode optimizer
9815 to support function calls,
9816 * (genDataPointerSet): fixed bug which loaded float fields in
9817 structures with corrupt data,
9818 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9819 in a standard way debug info on stderr. Feature used for developing
9821 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9822 obsolete chunks of code,
9823 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9824 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9825 * pic16/src/pcode.c (pic16_newpCodeInfo,
9826 * (pic16_newpCodeOpLocalRegs),
9827 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9829 * (pic16_pCodeConstString): printing of the initial value of a
9830 symbol as a comment is inhibited since parsing was already done by
9831 copyStr and output is corrupt,
9832 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9834 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9836 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9838 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9840 * as/mcs51/lkarea.c: removed old K&R style,
9841 (lnksect): changed check on boundary error,
9842 (lnksect2): changed check on boundary error,
9843 (lnksect2): extend XSTK to end of page if size = 1
9844 * as/mcs51/lkmain.c: removed old K&R style,
9845 (Areas51): create l_IRAM symbol
9846 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9847 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9848 model-mcs51-stack-auto, added model-mcs51-xstack-auto
9849 * device/lib/_mullong.c: added version to be compiled with xstack
9850 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9851 * device/lib/mcs51/crtxclear.asm: clear pdata as well
9852 * device/lib/mcs51/crtxstack.asm: fixed comment
9853 * src/SDCCglue.c: maxInterrupts defaults to 0,
9854 (emitMaps): added pdata,
9855 (createInterruptVect): (re)moved default,
9856 (glue): added pdata,
9857 (glue): moved __start__xstack to XSTK with default size 1
9858 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9859 and options.float_rent when options.stackAuto is set,
9860 (linkEdit): only write XDATA_NAME if provided on command line
9862 * src/SDCCmem.c: added pdata
9863 * src/port.h: added pdata_name to PORT
9864 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9865 (saveRegisters, unsaveRegisters): removed usage of B,
9866 (genMinus): fixed accumulator clash,
9867 (genJumpTab): added comment, this needs another look
9868 * src/mcs51/gen.c: added check for "B in use" paranoia,
9869 added pushB() and popB()
9870 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9879 * src/z80/main.c: (reset_regparms) made void parameter explicit and
9880 added PSEG (PAG,XDATA) or NULL to port specifier
9881 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9882 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9883 (_mcs51_genInitStartup): removed __start__xstack equ,
9884 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9885 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9886 * src/z80/gen.c (_rleAppend): fixed warnings
9887 * support/regression/tests/zeropad.c: added pdata test
9888 * .version: bumped to 2.4.6
9890 2004-10-17 Borut Razem <borut.razem AT siol.net>
9892 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9893 as a part of nightly build
9895 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9897 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9898 WREG holds the first byte function parameters,
9899 * (aopForSym): take special case for symbols which are in FARSPACE
9900 but in CODESPACE too,
9901 * (assignResultValue): modified to take into account _G.useWreg,
9902 * (genCall): don't use wreg for parameter passing when function is
9903 declared as reentrant, too, added optimization INCF to stack
9904 pointer when stack parameter count is 1,
9905 * (genFunction, genEndFunction): refurnished and fixed to not using
9906 wreg for passing parameters when function has varargs or is
9907 reentrant, fixed bug with symbol name compare for generating
9908 functions in absolute address,
9909 * (pic16_storeForReturn): refurnished,
9910 * (genCmp): began writing a new version of the function, not ready
9911 yet, therefore it is disabled,
9912 * (genAssign): do not read code memory when assigning a function to
9914 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9915 array of characters, not pointer,
9916 * (pic16initialComments): in debug mode emit an .ident directive for
9918 * (_process_pragma): emit a new warning type (internal to pic16)
9919 when setting stack to default length, emit a similar warning when
9920 placing a function at absolute address and address is not word aligned
9921 * (_pic16_parseOptions): added 'return TRUE' statement,
9922 * (_pic16_linkEdit): if compiling a source, then add the source's
9923 file object, first in the list of objects to link,
9925 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9927 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9928 * src/pic/main.c : removed VC warning.
9929 * src/pic/gen.c : changed comment.
9931 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9933 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9934 reference to a deprecated symbol _GPTRREG was causing failure to
9935 link. Thanks G. M. Gallant for the info.
9937 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9939 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9940 comments for Bugs item #954788.
9942 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9944 * src/pic16/device.c (pic16_dump_gsection,
9945 * pic16_groupRegistersInSection): handle symbols declared to be in
9946 access bank differently,
9947 * src/pic16/gen.c (struct _G): added field resDirect,
9948 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9949 send values read from stack directly to result and don't allocate
9951 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9953 * (pic16_sameRegsOfs): NEW,
9954 * (freeAsmop): if _G.resDirect is set then do not mark registers as
9955 free because they were not allocated from temporary pool,
9956 * pic16_popRegFromString): workaround to fix a problem with
9957 allocating variables twice or never,
9958 * (genGenPointerGet): using PRODL instead of FSR0H,
9959 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9961 * (genAssign): take advantage of the _G.resDirect flag,
9962 * (genCast): around line 11844, use mov2f instead of directly
9963 MOVFF'ing between operands to account for literal values,
9964 * src/pic16/genutils.c: some new debug functions for gpsim have been
9966 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9967 float with integer part only,
9968 * src/pic16/main.c (_process_pragma): handle pragma udata access to
9969 place variables in access bank
9970 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9971 updated sources to reflect recent changes in gen.c
9973 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9975 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9976 sources that searched for headers in installation path, now the
9977 device/include/pic16 is used,
9978 * src/pic16/glue.c (pic16glue),
9979 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9980 .line directives if not in debug mode, this suppresses assembler's
9981 warnings for ignored directives
9983 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9985 * src/port.h: made reset_regparms prototype void parameter explicit.
9986 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9987 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9988 * doc/sdccman.lyx: documented warning disabling and how to use
9989 printf_large to make it print floats.
9990 * device/include/stdbool.h: NEW
9991 * device/lib/_atof.c,
9992 * device/lib/_divuint.c,
9993 * device/lib/_divulong.c,
9994 * device/lib/expf.c,
9995 * device/lib/printf_large.c,
9996 * device/lib/sincosf.c,
9997 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9998 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9999 a completely reentrant lib.
10001 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
10003 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
10004 * device/include/pic16/stdio.h: fixed bug with colon
10006 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
10008 * device/include/pic16/stdio.h,
10009 * device/include/pic16/stdlib.h,
10010 * device/include/pic16/math.h: NEW
10011 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
10012 declared as _naked to reduce overhead
10013 * device/lib/Makefile.in (target port-specific-objects-pic16):
10014 changed * to *.* so to ignore the CVS directory,
10015 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
10016 stacked variables back in stack,
10017 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
10020 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
10022 * .version: bumped version number to 2.4.5
10023 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
10024 * support/Util/SDCCerr.c (messages structure): added entry for
10027 Large cumulative patch for pic16 port and libraries.
10028 * device/include/pic16/sdcc-lib.h,
10029 * device/include/pic16/stdarg.h,
10030 * device/include/asm/pic16/features.h,
10031 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
10032 * device/include/pic16/float.h: changes reentrant keyword with
10033 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
10034 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
10035 updated target build-libraries to include objects from gptr,
10036 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
10037 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
10038 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
10039 all function headings,
10040 * src/SDCCmain.c: added global parameter userIncDirsSet,
10041 * (parseCmdLine): when option -I is encountered add directory to
10042 userIncDirsSet too,
10043 * src/version.awk: added space between control and long,
10044 * src/pic16/NOTES: added some notes for the port,
10045 * src/pic16/gen.c: added prototype for mov2fp function,
10046 * (fReturnpic16[]): properly named return value registers,
10047 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
10048 * (aopForSym): added code to handle symbols with onStack flag set,
10049 symbols onStack are allocated PTRSIZE bytes,
10050 * (aopFreeAsmop): handles special case where asmops are stack objects,
10051 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
10052 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
10053 added argument lock to trace flaws in allocating temporary registers
10054 when developing port,
10055 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
10056 * (pic16_popRegFromString): reenabled allocating a direct register
10058 * (assignResultValue): various beautifications,
10059 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
10060 referenced function argument,
10061 * (genIpush): reenabled to allow stacked arguments, handles only
10062 ic->parmPush iCodes,
10063 * (genCall, genPcall): major changes to allow for variable argument
10064 functions, fixed a bug with falsely restoring stack pointer after
10065 returning from call,
10066 * (genFunction): pending code for critical function,
10067 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
10068 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
10069 * (genNearPointerGet): fixed bug with indirect reading, was always
10071 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
10073 * (genAddrOf): rewrote code to take address of a stacked function parameter
10074 * (genCast): fixed casting to generic pointer type,
10075 * src/pic16/gen.h: added AOP_STA,
10076 * (struct asmop): added field stk,
10077 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
10078 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
10079 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
10080 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
10081 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
10082 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
10084 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10086 * (pic16_port structure): generic pointer size is set to 3,
10087 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10088 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10090 * src/pic16/ralloc.c (allocReg): prevent allocating register when
10091 operand is an iTemp,
10093 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10095 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10096 * debugger/mcs51/simi.c: addapt new syntax of s51
10098 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10100 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10101 * src/pic16/pcode.c: commented out some calls to free() in order to
10104 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10107 * src/SDCCicode.c (isiCodeInFunctionCall),
10108 * src/avr/ralloc.c (selectSpil),
10109 * src/pic/ralloc.c (selectSpil),
10110 * src/pic16/ralloc.c (selectSpil),
10111 * src/ds390/ralloc.c (selectSpil),
10112 * src/hc08/ralloc.c (selectSpil),
10113 * src/xa51/ralloc.c (selectSpil),
10114 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10115 stack in the middle of a function call sequence (fixes bug #1020268)
10116 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10117 costs associated with the minimum switch case.
10119 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10121 * src/SDCC.lex: fixed bug #1030549
10123 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10125 * src/SDCCcse.h (struct cseDef),
10126 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10127 over a function call if the CSE is derived from a symbol whose
10128 address has been taken (fixes bug #1029883)
10129 * support/regression/tests/bug-1029883: a new regression test for
10132 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10134 * src/hc08/gen.c (emitinline): fixed bug #1029778
10135 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10136 to a cast object is no longer a syntax error ("fixes" bug #1030006,
10137 and starts toward RFE #905167)
10139 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10141 * src/pic16/gen.c (mov2f): New function to move an operand to
10142 another without considering if it is a literal or a register,
10143 * (pic16_sameRegs): don't check if they are both AOP_REG,
10144 * (AccRsh): removed andmask=0 lines,
10145 * (genLeftShift): duplicated to be improved in future versions,
10146 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10147 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10148 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10149 * (pic16initMnemonics): added initialization for POC_INFSNZW,
10150 * (insertBankSwitch): fixed inserting banksel directives algorithm
10151 for instructions that follow a skip instruction, this fixes a report
10152 for broken subtraction code generation,
10153 * src/pic16/ralloc.c (deassignLRs): do not free register if current
10154 iCode is a left op, just in case result and right share the same
10157 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10160 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10162 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10163 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10164 on 2004-09-12; it was buggy
10166 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10168 * src/SDCCsymt.h: removed RESULT_CHECK
10173 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10175 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10177 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10178 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10179 configuration values no more rejected by compiler, they are assigned
10180 to configuration registers with a warning message instead,
10181 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10182 the for-loop so last conf register is emitted too,
10183 * (_pic16_initPaths): link library libsdcc.lib by default,
10184 * (_hasNativeMulFor): modified test for multiplication according to
10185 Raphael Neider's remarks. Integer multiplication is also done with
10187 * device/include/pic16/pic18fregs.h: corrected type error in while
10188 testing and including 18f6720 header file
10190 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10192 * src/pic16/device.h (pic16_options): removed field use_crt,
10193 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10194 until an optimization to handle single bits is added,
10195 * (pic16_loadFSR0): moved before genUnpackBits,
10196 * (genAnd): some white lines removed,
10197 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10198 leave_reset flags in pic16_options when using crt modules,
10200 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10202 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10203 for bugs 898889 & 979599. Also used some safer print instructions.
10205 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10207 * src/pic16/device.h (pic16_options_t): added field use_crt,
10209 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10210 catch a probable future bug,
10211 * src/pic16/gen.c: aopIdx function commented out,
10212 * (genAssign): commented out old code which used aopIdx,
10213 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10214 code, added if conditionals to take into account the --use-crt
10215 command line options,
10216 * src/pic16/main.c (pic16_optionsTable): added new command line
10217 options, --use-crt= and --no-crt,
10218 * (_pic16_linkEdit): now the proper crt object is added in the
10219 linker command line except than when --no-crt is specified,
10220 * src/pic16/pcode.c,
10221 * src/pic16/pcode.h: added some structures and functions for a new
10222 optimization scheme to compansate for instruction overhead between
10223 same iCodes, this scheme is currently under development and is not
10224 working in any way,
10225 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10227 * device/lib/pic16/startup/crt0i.c,
10228 * device/lib/pic16/startup/crt0iz.c: added global char variable
10229 __uflags to force the generation of an idata section
10231 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10234 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10235 * doc/sdccman.lyx: updated sdcc version to 2.4.4
10237 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10239 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10240 Frieder) and clarified the default code optimization mode
10242 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10244 * src/SDCC.lex (doPragma, process_pragma),
10245 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10246 "opt_code_size", and "opt_code_balanced"
10247 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10248 regrouped options by category, added support for category headers
10249 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10250 and "--opt-code-size"
10251 * doc/sdccman.lyx: documented these new options and pragmas
10252 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10253 preference into account
10255 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10257 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10258 geniCodePreDec): Fixed bug 904237 by generating a warning
10260 * src/SDCCerr.c: added warning W_SIZEOF_VOID
10262 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10264 * src/pic/device.c : When no max ram set validate full memory range.
10266 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10268 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10270 * device/lib/_gptrget.c,
10271 * device/lib/_gptrput.c: updated comment
10272 * device/lib/calloc.c,
10273 * device/lib/free.c,
10274 * device/lib/malloc.c,
10275 * device/lib/realloc.c: added LGPL, made them reentrant-safe
10276 * src/SDCCcse.c (cseBBlock),
10277 * src/SDCCicode.c (printOperand, geniCodeArray),
10278 * src/SDCCicode.h (struct operand): fixed bug 868103
10279 * support/regression/tests/bug-868103.c: added
10280 * src/SDCCast.c (searchLitOp),
10281 * src/SDCCcse.h (struct cseDef),
10282 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10283 * src/SDCCicode.h (struct operand),
10284 * src/SDCCsymt.h (struct sym_link),
10285 * src/avr/gen.c (hasInc),
10286 * src/ds390/gen.c (hasInc),
10287 * src/hc08/gen.c (genPlusIncr, hasInc),
10288 * src/mcs51/gen.c (hasInc),
10289 * src/pic16/glue.c (pic16_printIvalChar),
10290 * src/pic16/ralloc.c (regWithIdx),
10291 * src/xa51/gen.c (hasInc) : removed warnings
10292 * src/SDCCast.c (createBlock): added comment ???
10293 * src/hc08/ralloc.c: updated comments
10295 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10297 * doc/sdccman.lyx: updated section on switch statements, added
10298 section about semaphore locking
10299 * doc/Makefile: added option -info for latex2html
10300 * device/lib/_gptrget.c,
10301 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10303 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10305 * src/pic/device.h,
10306 * src/pic/device.c,
10307 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10308 maxram is less than 0x100.
10310 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10312 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10314 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10317 * src/mcs51/main.c,
10318 * src/ds390/main.c,
10322 * src/pic16/main.c,
10325 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10326 a jump table is the best form for a switch statement, including
10327 automatic insertion of missing cases to make the case range
10328 continuous. Developed in collaboration with Frieder Ferlemann.
10330 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10332 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10333 accumulator result if it needs sign extension
10335 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10337 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10339 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10341 * device/lib/gbz80/printf.c,
10342 * device/lib/z80/printf.c: removed define for NULL
10344 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10346 * as/xa51/xa_link.c,
10347 * device/examples/ds390/ow390/ad26.c,
10348 * device/examples/ds390/ow390/cnt1d.c,
10349 * device/examples/ds390/ow390/counter.c,
10350 * device/examples/ds390/ow390/ds2480.h,
10351 * device/examples/ds390/ow390/ds2480ut.c,
10352 * device/examples/ds390/ow390/findtype.c,
10353 * device/examples/ds390/ow390/gethumd.c,
10354 * device/examples/ds390/ow390/owllu.c,
10355 * device/examples/ds390/ow390/ownetu.c,
10356 * device/examples/ds390/ow390/swt12.c,
10357 * device/examples/ds390/ow390/swtloop.c,
10358 * device/examples/ds390/ow390/temp.c,
10359 * device/examples/ds390/ow390/temp10.c,
10360 * device/examples/ds390/ow390/thermo21.c,
10361 * device/examples/ds390/ow390/tinilnk.c,
10362 * device/examples/ds390/ow390/tstfind.c,
10363 * device/examples/serialcomm/windows/serial.cpp,
10364 * device/examples/serialcomm/windows/test_serialcomm.cpp,
10365 * device/include/reg51.h: fixed line endings for cvs
10367 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10369 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10370 packRegsForAccUse, packRegisters): new accumulator register
10372 * support/regression/ports/hc08/support.c (_putchar): suppress
10373 warning of unused variable
10374 * src/SDCCicode.c: added SWAP entry to codeTable
10376 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10378 * device/lib/sprintf.c: forgot to add this file before previous commit
10380 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10382 * src/pic16/gen.c (genPackBits): added operand right in function
10383 parameters, load result directly if p_type is POINTER (that is
10384 called by genNearPointerSet)
10385 * (genUnPackBits): added operand left in function parameters,
10386 * (genNearPointerGet, genNearPointerSet): prevent the loading of
10387 FSR0 if accessing bitfields,
10389 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10391 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10392 _print_format; updated printf, sprintf, vsprintf
10393 * device/include/asm/default/features.h: corrected comment/define
10394 * device/lib/Makefile.in: added sprintf.c
10395 * device/lib/libsdcc.lib: added sprintf module
10396 * device/lib/printf_large.c,
10397 * device/lib/vprintf.c,
10398 * device/lib/sprintf.c: totally refactored printf_large and vprintf
10400 * support/regression/Makefile: changed ALL_PORTS into a usefull default
10401 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10402 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10404 * support/regression/tests/zeropad.c: define idata as data for hc08
10406 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10408 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10409 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10410 labels are referenced at least once (even if a reference is not found)
10411 * src/hc08/gen.c (emitcode): set isComment flag for comments
10412 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10413 loads), rules 6a..6b (optimize jumps to return)
10415 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10417 * device/lib/acosf.c (acosf),
10418 * device/lib/asinf.c (asinf),
10419 * device/lib/atanf.c (atanf),
10420 * device/lib/ceilf.c (ceilf),
10421 * device/lib/cosf.c (cosf),
10422 * device/lib/coshf.c (coshf),
10423 * device/lib/cotf.c (cotf),
10424 * device/lib/fabsf.c (fabsf),
10425 * device/lib/floorf.c (floorf),
10426 * device/lib/log10f.c (log10f),
10427 * device/lib/logf.c (logf),
10428 * device/lib/sinf.c (sinf),
10429 * device/lib/sinhf.c (sinhf),
10430 * device/lib/sqrtf.c (sqrtf),
10431 * device/lib/tanf.c (tanf),
10432 * device/lib/tanhf.c (tanhf),
10433 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10434 replaced all instances of "reentrant" in the library functions
10435 defined in math.h with this macro.
10436 * support/regression/tests/float_trans.c: reenabled test for hc08
10438 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10440 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10441 erroneously deleted
10443 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10445 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10446 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10447 multi-byte volatile operands are used
10448 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10449 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10450 initialization to area GSINIT0 so that it would always precede
10451 any static initializers in GSINIT
10452 * support/regression/tests/zeropad.c: fixed idata define for hc08
10453 * support/regression/tests/bug-927659.c,
10454 * support/regression/tests/float_trans.c: disabled tests for hc08
10455 pending missing library routines
10456 * .version: increased version number to 2.4.4 - hc08 port now passes
10460 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10462 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10463 * Makefile.common.in,
10465 * as/hc08/Makefile.in,
10466 * as/mcs51/Makefile.in,
10467 * as/z80/Makefile.in,
10468 * debugger/mcs51/Makefile.in,
10469 * device/include/Makefile.in,
10470 * device/lib/Makefile.in,
10473 * link/z80/Makefile.in,
10474 * packihx/Makefile.in,
10475 * sim/ucsim/main_in.mk,
10476 * sim/ucsim/avr.src/Makefile.in,
10477 * sim/ucsim/doc/Makefile.in,
10478 * sim/ucsim/gui.src/serio.src/Makefile.in,
10479 * sim/ucsim/hc08.src/Makefile.in,
10480 * sim/ucsim/s51.src/Makefile.in,
10481 * sim/ucsim/xa.src/Makefile.in,
10482 * sim/ucsim/z80.src/Makefile.in,
10484 * support/cpp2/Makefile.in,
10485 * support/librarian/Makefile,
10486 * support/makebin/Makefile: added DESTDIR to the install path proposed
10487 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
10488 * doc/sdccman.lyx: added DESTDIR documentation
10490 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
10492 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
10493 instruction for interrupt handlers, use fast returns when returning
10494 from high priority interrupts
10496 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10498 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
10500 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
10501 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
10502 bugs, ported much of Bernhard's code from mcs51
10503 * src/mcs51/gen.c (genSend),
10504 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
10505 than one when calling a reentrant function
10506 * device/lib/_mullong.c: defined an alternate struct layout for big
10507 endian ports (hc08)
10509 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10511 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
10514 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10516 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
10517 are sane and complete before asking the port its prefered parameter
10518 passing method (fixes bug #1017633)
10519 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
10522 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10524 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10525 problem in bitfields >= 8 bits.
10527 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10529 * src/SDCCsymt.c: undid changes that were not meant to be committed
10531 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10533 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10535 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10537 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10538 copied and wrong bit got inverted
10540 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10542 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10543 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10544 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10545 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10546 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10547 assignments to bitfields at known addresses
10548 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10549 reads from bitfields at known addresses
10550 * src/hc08/ralloc.c (packRegisters),
10551 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10552 genhc08Code): optimize pointer get values used as conditionals
10553 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10556 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10558 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10559 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10560 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10563 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10565 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10567 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10569 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10572 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10574 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10576 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10578 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10581 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10583 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10585 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10587 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10588 cases use more compact code.
10590 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10592 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10594 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10596 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10598 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10601 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10602 parameter of changePointer() from symbol* to sym_link*
10603 * src/SDCCast.c (decorateType): call changePointer() for CAST op
10604 * src/SDCCsymt.c (compareType): void* type is castable to other
10605 pointers, but not necesarily an exact match.
10606 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10607 is no longer blindly treated as an exact match.
10608 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10610 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10612 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10614 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10618 * src/pic/ralloc.h,
10619 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10621 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10623 * src/pic/device.c,
10624 * src/pic/device.h,
10625 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10627 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10629 * src/mcs51/gen.c (emitcode): fixed bug #992819
10631 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10633 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10634 there's no need to make it worse
10636 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10638 * src/mcs51/ralloc.c (deassignLR),
10639 * src/ds390/ralloc.c (deassignLR),
10640 * src/hc08/ralloc.c (deassignLR),
10641 * src/z80/ralloc.c (deassignLR),
10642 * src/pic/ralloc.c (deassignLR),
10643 * src/pic16/ralloc.c (deassignLR),
10644 * src/avr/ralloc.c (deassignLR),
10645 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10646 rlivePoint): fixed another part of bug #971834
10648 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10650 * src/z80/main.c: enabled "critical" keyword
10651 * src/z80/mappings.i,
10652 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10653 functions (fixes bug #979646)
10654 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10656 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10658 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10661 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10663 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10664 doesn't disable too much optimizations
10666 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10668 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10670 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10672 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10674 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10676 * src/pic/gen.c tidied up tabs
10677 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10678 * src/pic/main.c tidied up tabs
10679 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10680 * src/pic/pcoderegs.c tidied up tabs
10681 * src/pic/ralloc.c tidied up tabs
10683 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10685 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10686 to S_FIXED for pic16 port and when symbol is not in level 0,
10687 allocate for S_REGISTER storage class and pic16 port, too,
10688 * src/pic16/device.h: prototype for checkSym,
10689 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10690 * (pic16_assignConfigWordValue): test the value and the mask to
10691 validate that the value is suitable for the configuration word,
10692 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10693 collect extern declared symbols, don't emit symbol twice, check
10694 first if symbol is in publics set first,
10695 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10696 * added command line '--fstack' which enables an experimental
10697 feature for stack access, too buggy to be used yet...
10698 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10699 * (pic16_allocDirReg): when register has storage class S_REGISTER
10700 allocate in pic16_dynAccessRegs,
10701 * device/include/pic16/pic18f????.h: modified configuration word
10702 naming convention, words started as CONFIG0H but should be CONFIG1H
10704 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10706 * device/include/mcs51reg.h: fixed bug 970993
10708 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10710 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10711 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10712 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10713 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10714 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10715 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10716 error/warning numbers,
10717 added function setWarningDisabled()
10718 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10719 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10720 _memcmp.c _memmove.c calloc.c realloc.c free.c
10721 * support/regression/tests/malloc.c: added tests for new functionality
10722 * support/regression/tests/zeropad.c: added tests for truncated initializers
10723 and initialized char arrays starting with '\x0'
10724 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10726 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10728 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10730 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10732 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10733 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10734 peephole 177.e. Thanks to anonymous
10736 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10738 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10739 function isn't used in the source but referenced as a
10740 variable initializer then declare it as extern in .asm file
10742 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10744 * .version: increased version number to 2.4.3
10746 Adding version extension according to ChangeLog CVS revision
10747 * src/Makefile.in (target all): added dependency 'version.h'
10748 * (rule version.h): added rule to create version.h from ChangeLog,
10749 * (rule dep): added dependency version.h,
10750 * src/version.awk: AWK script to create version.h
10751 * src/SDCCdwarf2.c (dwWriteModule),
10752 * src/SDCCglue.c (initialComments),
10753 * src/SDCCmain.c (printVersionInfo): modified to write after
10754 version string the version extension number,
10755 * src/SDCCutil.c: included "version.h"
10756 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10758 * src/SDCCutil.h: added prototype for getBuildNumber
10760 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10761 includeDirsSet, too,
10762 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10763 const char [] is found in function prototype...
10765 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10766 moving to WREG with source is already in WREG,
10767 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10768 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10769 * (aopForSym): stack'ed symbols are partially supported, added
10770 if-clause to support symbols in FARSPACE,
10771 * (sameRegs): added test for AOP_ACC to see if registers are same,
10772 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10773 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10774 * (pic16_popRegFromString): will not allocate a new register if it
10775 doesn't find one by name, bug may have introduced...
10776 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10777 * (genIpush): revived to use pic16 port's stack,
10778 * (genAddrOf): added incomplete case for stack'ed operand,
10779 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10780 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10781 can handle multibyte operands,
10782 * src/pic16/glue.c (pic16_printIval*): some debug info added,
10783 * (pic16initialComments): added message for MPLAB compatibility
10785 * src/pic16/main.h: prototype for pic16_mplab_comp,
10786 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10787 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10788 * (_pic16_linkEdit): NEW, handles link stage, transferred here
10789 because of increased complexity of procedure,
10790 * (_process_pragma): stack pragma changed to format 'stack pos len',
10791 emit symbol '_stack_end' to conform with gplink,
10792 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10793 to search for register,
10794 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10796 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10797 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10798 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10799 case for PO_GPR_REGISTER,
10800 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10801 dies, the new era is ahead !...
10802 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10803 pic16_dynInternalRegs,
10804 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10805 * (pic16_allocDirReg): minor optimizations and bug fixes,
10806 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10808 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10809 load stack and frame pointer with address of 'stack_end' symbol
10811 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10813 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10814 without source code but only variable initializers
10816 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10818 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10819 external are not declared as extern to reduce overhead while linking
10821 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10823 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10825 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10827 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10828 Yee Keat for the patch
10829 * src/SDCCast.c (decorateType): fixed bug #979599
10830 * src/ds390/gen.h: removed local fReturnSizeDS390
10831 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10832 * src/ds390/gen.c (genAnd, genOr, genXor),
10833 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10835 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10837 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10838 add relFilesSet to $3, manipulate $2 to handle linking of object
10839 files without source files in command line,
10840 * device/include/pic16 (all headers): added ID location macros,
10841 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10842 entries for ID location bytes,
10843 * (pic16_assignIdByteValue): NEW,
10844 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10845 added field dumpcalltree to pic16_options_t,
10846 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10847 is used instead of pic16_Gstack_base_addr, check if (ifx) before
10848 emitting rFalseIfx label after check_carry label,
10849 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10850 pic16_emitDIRegs), NEW
10851 * (pic16glue): dump .calltree file when option --calltree found,
10852 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10853 * (_pic16_genAssemblerPreamble): emit ID locations after
10854 configuration registers,
10855 * (pic16_linkCmd): modifications of the link command,
10856 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10857 * (pic16_pCodeInitRegisters): don't init stack registers,
10858 * (pic16_findPrevInstruction): fixed bug,
10859 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10860 bug with immediate registers,
10861 * (buildCallTree): traces stack push and pop,
10862 * (pct2): dump also stack usage for each function,
10863 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10864 * (pic16_allocDirReg): various modifications,
10865 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10868 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10870 * src/pic16/pcode.c: removed buggy double colon
10872 2004-07-01 Borut Razem <borut.razem AT siol.net>
10874 * support/scripts/sdcc.nsi: added include/pic16 to setup
10876 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10878 * device/lib/Makefile.in: fixed bug in target objects-pic16,
10879 * device/lib/pic16/Makefile: prefixed with dash (-) command under
10881 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10882 specific command line arguments. Also added sample lkr script
10883 for placing a variable at a specific memory bank.
10884 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10885 at a specific memory bank,
10886 * (pic16_dump_isection): fixed bug which caused string literals to
10887 be omitted when dumping idata section,
10888 * (pic16_groupRegistersInSection): added code to handle registers
10889 in specific memory banks,
10890 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10891 public, all references are renamed too,
10892 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10894 * (pic16_storeForReturn): added case to handle when dest is WREG,
10895 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10896 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10897 pic16_rel_udata, check to see if that register is marked as being
10898 a member of a specific memory bank,
10899 * (pic16_printIvalCharPtr): added code to add string literals either
10900 to code or the idata sections,
10901 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10902 also accept the 'udata' pragma,
10903 * src/pic16/main.h: new structure types sectName and sectSym
10904 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10905 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10906 * (pic16_findPrevInstruction): fixed, it returned nothing,
10907 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10908 instruction combinations,
10909 * (pic16_FixRegisterBanking): heavily reorganised,
10910 * (pic16_AnalyzeBanking): if generating banksel directives is
10911 disabled, then don't call FixRegisterBanking at all,
10912 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10913 completely removed,
10914 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10916 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10918 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10919 Phuah Yee Keat <yk.phuah AT nestac.com>
10921 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10923 * src/pic16/glue.c (pic16createInterruptVect): function now emits
10924 correctly the IVT even if it is relocated to some other location
10926 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10928 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10929 * device/include/pic16/pic18f2220.h: NEW,
10930 * device/lib/pic16/libdev/pic18f2220.c: NEW,
10931 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10932 * src/pic16/device.c (struct Pics16): added info for 18f2220,
10933 * src/pic16/device.h (struct pic16_options): added ivt_loc and
10934 nodefaultlibs, ivt_loc is the location of the interrupt vector
10935 table, and nodefaultlibs signs that default libraries should not be
10936 linked in link stage,
10937 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10938 according to --ivt-loc argument,
10939 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10940 when pragma stack is found,
10942 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10944 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10945 256 (range check), 257 (do while), 258.a-f (bit banging
10946 f.e. on 3-wire SPI bus)
10948 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10950 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10951 variables used exclusively within a loop
10953 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10955 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10957 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10959 * src/SDCClrange.c (computeClash): fixed bug #971834
10961 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10963 * src/mcs51/gen.c (genCmp): fixed bug #975903
10964 * src/hc08/gen.c (operandsEqu),
10965 * src/ds390/gen.c (operandsEqu),
10966 * src/z80/gen.c (operandsEqu),
10967 * src/pic/gen.c (operandsEqu),
10968 * src/pic16/gen.c (operandsEqu),
10969 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10970 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10972 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10974 * src/SDCCcse.c (cseBBlock): fixed bug #966963
10976 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10978 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10979 default case in switch statement,
10980 * glue.c (pic16_initPointer): expr is initialised via decoarteType
10981 to eliminate problem with initialisation of pointers, but problem
10983 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10984 * (emitStaticSegment): removed various lines emitting debug info,
10985 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10986 added processor registers for utilizing EEPROM,
10987 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10988 configurable and set 8
10990 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10992 * .version: increased version number to 2.4.2,
10994 Cumulative patch for pic16 port
10995 * src/pic16/device.c: changed scheme to dump initial values for
10996 variables in idata segment, all print_idata* functions were removed,
10997 now the pic16_printIval* will be called,
10998 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10999 * _pic16_printPointerType, pic16_printPointerType,
11000 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
11001 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
11002 NEW, similar to the respective functions in SDCCglue.c,
11003 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
11004 way, emitting hex bytes,
11005 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
11007 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11009 * src/avr/ralloc.c (serialRegAssign),
11010 * src/xa51/ralloc.c (serialRegAssign),
11011 * src/pic/ralloc.c (serialRegAssign),
11012 * src/pic16/ralloc.c (serialRegAssign),
11013 * src/hc08/ralloc.c (serialRegAssign),
11014 * src/z80/ralloc.c (serialRegAssign),
11015 * src/ds390/ralloc.c (serialRegAssign),
11016 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
11018 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11020 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
11021 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
11023 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
11025 Cumulative patch for pic16 port:
11026 * src/pic16/device.h (typedef PIC16_device) modified fields for
11027 defining microcontrollers,
11028 * src/pic16/device.c: added new info for all devices in Pics16 array,
11029 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
11030 to be optimised out by the pCode optimiser,
11031 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
11032 specially, bug reported by G.M. Gallant,
11033 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
11034 as force'd so that cannot be optimised out by pCode optimiser,
11035 * src/pic16/pcode.c,
11036 * src/pic16/pcodepeeph.c,
11037 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
11038 they are disabled by default, but can be enabled explicit with
11039 command argument --denable-peeps, for testing,
11040 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
11041 --pomit-ivt in COMPILE_FLAGS
11043 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11045 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
11046 compilation on MSVC
11048 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
11050 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
11052 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11054 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
11055 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
11057 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
11059 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
11060 would only assign 0x300001 register.
11062 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
11064 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
11065 in COMPILE_FLAGS. Thanks to G. Gallant for report.
11067 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11069 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
11071 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
11072 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
11073 added peephole 254 (left shift), 255 (jump table)
11075 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
11077 * device/lib/Makefile.in: removed comment line with model-pic16,
11078 * (target port-specific-objects-pic16): the libraries and objects
11079 are copied to the build directory form the device/lib/pic16/bin
11082 Cumulative patch concerning pic16 port:
11083 * library directory has been re-organized,
11084 * added support for PIC18F1220,
11085 * added headers and library sources for chips 18f1220,18f6520,
11086 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11088 * configuration registers setting has changed, now each supported
11089 device has a complete description of the registers it uses,
11090 * all initialisations are moved to idata sections, these section
11091 can be absolute or relocatable,
11092 * fixed initialisation of codespace variables,
11093 * fixed warning about PCLATU and gpsim,
11094 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11095 * (genAssign): use table reads when assigning from variables in codespace,
11096 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11097 char/int variables placed in codespace,
11098 * (pic16_emitConfigRegs): NEW, emits a list with configuration
11099 registers set in .asm file, no need for --pomit-config-words anymore,
11100 * (pic16glue): some 8051 legacy segments are commented out
11101 (to be removed completely),
11102 * added support for alternative assembler and linker with --asm=
11103 and --link= command line arguments,
11104 * peepholes are disabled automatically in the port, no need to
11105 specify on command line,
11106 * port supports natively char/int/long multiplication, but converts
11107 all divisions to support functions,
11108 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11109 to the file set in variable $2,
11110 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11111 strings in ASCII format and not in hex,
11112 * ralloc.c (serialRegAssign): added a triplet of conditional calls
11113 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11114 allocate proper register if iCodes aren't temporary,
11116 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11118 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11120 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11122 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11125 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11127 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11128 computed address is reused
11129 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11130 multi-byte bitfields
11132 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11134 * src/z80/gen.c: (genArrayInit): must check for pointers too
11136 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11138 * support/regression/tests/zeropad.c: never meant to commit the
11139 nestedstruct test: removed, added check for GCC version
11141 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11143 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11144 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11145 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11146 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11147 bugs 928906 and 954082 half-empty initializers
11149 * src/SDCCsymt.c (getAllocSize): added for above fix
11150 * src/z80/gen.c (genArrayInit): fixed bug 741044
11151 * support/regression/tests/zeropad.c: added tests
11153 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11155 * src/pic16/device.c (pic16_dump_section): corrected bug which
11156 caused some symbols of the libraries to be misplaced
11158 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11160 * src/pic16/glue.c,
11161 * src/pic16/ralloc.h,
11162 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11163 to fix conflict with pic port
11165 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11167 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11168 externs configuration variables,
11169 * src/pic16/ralloc.h,
11170 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11171 prototype in header, commented out some debug messages
11173 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11175 * src/pic16/glue.c,
11176 * src/pic16/main.c,
11177 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11178 for gpasm COFF object generation. Thanks to D. Hawkins for
11181 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11183 * src/ds390/main.c,
11184 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11185 Brock for spotting this)
11186 * src/ds390/gen.c (genEndFunction),
11187 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11188 interrupt handler and critical. Disable push/pop optimizations when
11189 peephole optimizations disabled.
11191 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11193 Updated pic16 library sources and headers.
11194 * device/lib/pic16/pic18f*/ ,
11195 * device/include/pic16/*.h: modified to handle structured SFR
11198 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11200 * src/port.h (PORT structure): added hook initPaths, now each
11201 port can declare its own default search paths,
11202 which can been seen with the --print-search-dirs option,
11203 see pic16 port for example,
11204 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11205 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11206 * (doPrintSearchDirs): NEW, replaces in a central manner the
11207 printing of search dirs which was split in set*Paths functions,
11208 * (main): added call to port->initPaths and doPrintSearchDirs,
11210 * src/ds390/main.c,
11213 * src/izt/tlcs900h.c,
11214 * src/mcs51/main.c,
11216 * src/pic16/main.c: modified port structures to reflect addition of
11219 * src/pic16/device.c (regCompare): registers are finally sorted by name,
11220 * (pic16_dump_section): for registers in same address reserve memory once,
11221 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11223 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11224 result is greater in size than right or left,
11225 * (pic16_genUMult8X8_8): there are some cases where the result can
11226 be 16 bits size, so handle these,
11227 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11228 * (pic16_outBitC): modified to emit pcodes,
11229 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11231 * (genDivOneByte): implemented algorithm to divide 8-bits,
11232 * (genCmp): uncommented goto, but issues still exist,
11233 * (genAnd): fixed a bug with variables >8bits,
11234 * (genPackBits): optimization added that uses BCF/BSF to change a
11236 * (genAssign): fixed bug when assigning floating point literals,
11237 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11238 __sdcc_gsinit_startup label,
11239 * src/pic16/main.c (_pic16_init): removed search directory
11241 * (_pic16_initPaths): NEW, used to initialise search directories,
11242 * (_hasNativeMulFor): support functions for all except char/int
11243 multiplication, and char division,
11244 * (PIC16_port struct): modified entry for native mul support,
11245 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11247 * (buildCallTree): call to register_usage is ifdef'ed out,
11249 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11251 * device/include/string.h: applied Stas Sergeev's patch to make this
11252 header file compatible with the preprocessor -Wundef option
11253 * src/SDCCmain.c (main): abort compilation if preprocessor reports
11254 failure (fixes bug #941458)
11256 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11258 * src/SDCCopt.c (killDeadCode): fixed bug #907733
11259 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11260 that the variable, not the function, should be static
11261 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11262 to be consistent with non-literal case
11264 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11266 * src/SDCCast.c (isConformingBody): fixed bug #949967
11267 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11268 convilong): fixed bug #952086
11270 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11272 * src/SDCCmem.c (allocVariables): fixed bug #955321
11274 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11276 * src/hc08/main.c (_hc08_genAssemblerEnd),
11277 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11278 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11279 completely eliminated the use of a temporary file
11280 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11281 when more than one file linked
11282 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11284 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11286 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11287 which fixes bug #543481
11288 * support/regression/tests/bug-751703.c: fixed comments left from a
11289 cut and paste error
11290 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11291 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11292 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11294 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11295 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11296 are now changed to underscores in moduleName
11298 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11300 * as/mcs51/lkmem.c: better fix for bug #954173
11302 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11303 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11305 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11306 * device/include/c8051f000.h,
11307 * device/include/c8051f120.h,
11308 * device/include/c8051f300.h,
11309 * device/include/c8051f310.h,
11310 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11311 PWM16) and detab'ed
11313 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11315 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11316 and mailing lists, doc'ed --no-peep-comments, removed reference
11317 to knoppix (newest version has no LyX/LaTeX), other minor changes
11318 * src/SDCCglue.c (glue): save 2 bytes stack space with
11319 option --main-return. The ljmp could probably be avoided too
11321 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11323 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11325 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11327 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11328 * src/SDCCopt.c (isLocalWithoutDef),
11329 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11330 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11331 (credit to Maarten Brock for patch #949363, on which this is based)
11332 * support/regression/tests/bug-751703.c: some test cases of extern used
11333 within inner scopes.
11335 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11337 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11339 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11341 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11342 dwWriteLabel): fix to create valid debugger symbols even when
11343 the module name has non-alphanumeric symbols in it
11344 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11345 when a variable's allocation has been optimized away
11348 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11350 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11352 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11353 * src/mcs51/main.c,
11354 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11355 * src/ds390/main.c,
11356 * src/z80/gen.c (z80_emitDebuggerSymbol),
11358 * src/pic/gen.c (pic14_emitDebuggerSymbol),
11360 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11361 * src/pic16/main.c,
11362 * src/avr/gen.c (avr_emitDebuggerSymbol),
11364 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11366 * src/SDCCdebug.c (emitDebuggerSymbol),
11368 * src/port.h: added a debugger struct to the port struct. Added a
11369 callback for defining debugger symbols
11371 * src/SDCCast.c (createLabel),
11372 * src/SDCC.y (labeled_statement): mark all compiler generated labels
11375 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11376 iCode back to the ast for the function
11378 * src/hc08/ralloc.c (hc08_assignRegisters),
11379 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11380 unneeded fields from the regs struct.
11381 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11382 pushReg() & pullReg() functions instead of emitcode()
11384 * src/hc08/gen.c (genLabel, genhc08Code),
11385 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11387 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11390 * src/hc08/gen.c (genEndFunction, genhc08Code),
11392 * src/mcs51/gen.c (genEndFunction, gen51Code),
11394 * src/ds390/gen.c (genEndFunction, gen390Code),
11396 * src/z80/gen.c (genEndFunction, genZ80Code),
11399 * src/pic/gen.c (genEndFunction, genpic14Code),
11401 * src/pic16/gen.c (genEndFunction, genpic16Code),
11403 * src/avr/gen.c (genEndFunction, genAVRCode),
11405 * src/xa51/gen.c (genEndFunction, genXA51Code),
11407 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11408 specific code to cdbFile.c and out of the backend code generators
11410 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11411 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11412 starting address is now 0
11415 * as/hc08/m08pst.c,
11416 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11417 assembler directive for DWARF support
11418 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11422 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11424 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11426 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11427 and inappropriate peephole optimization in jump tables
11429 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11431 * as/hc08/m08pst.c,
11432 * src/SDCCglue.c: sdccopt works for the hc08 port now
11434 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11436 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11438 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11440 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11442 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11444 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11448 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11449 comments from the peephole optimizer replacement rules
11450 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11452 * src/SDCCcse.c (updateSpillLocation),
11453 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11455 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11456 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11457 objects far pointers
11459 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11461 * src/SDCCsymt.h: a missing part of my last change
11462 * src/pic/ralloc.c (regTypeNum),
11463 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11465 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11468 * src/SDCCicode.c (aggrToPtrDclType),
11469 * src/SDCCptropt.h,
11470 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
11471 ptrPseudoSymConvert),
11472 * src/pic/ralloc.c (regTypeNum),
11473 * src/pic16/ralloc.c (regTypeNum),
11474 * src/hc08/ralloc.c (regTypeNum),
11475 * src/ds390/ralloc.c (regTypeNum),
11476 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
11477 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
11479 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11481 * link/z80/lkmain.c (afile),
11482 * as/hc08/lkmain.c (afile),
11483 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11484 prevent a pointer problem when a filename has no directory and
11485 no extension specified.
11487 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11489 * link/z80/lkmain.c (afile): allow periods in directory names
11490 * link/z80/lkmain.c (afile),
11491 * as/mcs51/lkmain.c (afile),
11492 * as/hc08/lkmain.c (afile): allow linker script file to have an
11493 extension other than ".lnk"
11494 * link/z80/lklex.c (getfid),
11495 * link/z80/lkmain.c (parse),
11496 * as/mcs51/lklex.c (getfid),
11497 * as/mcs51/lkmain.c (parse),
11498 * as/hc08/lklex.c (getfid),
11499 * as/hc08/lkmain.c (parse): Support comments in the linker script
11500 file on lines by themselves and after filenames
11502 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11504 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
11506 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11508 * src/z80/peeph-z80.def: removed some peephole rules that don't
11509 work with multibyte arithmetic (fixed bug #937126)
11510 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
11511 to registers and not global variables
11512 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
11513 geniCodePreInc, geniCodePostDec, geniCodePreDec,
11514 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
11515 checking for assignments not internally generated (fixed bug #931895)
11516 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
11517 structure member (fixed bug #930072)
11519 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11521 * src/SDCCmain.c (linkEdit),
11522 * src/hc08/main.c (_hc08_parseOptions),
11523 * as/hc08/Makefile.in,
11524 * as/hc08/aslink.h,
11526 * as/hc08/m08pst.c,
11527 * as/hc08/lkrloc.c (relr, rele),
11528 * as/hc08/lkarea.c (lnkarea)
11529 * as/hc08/lkmain.c (afile, parse),
11530 * as/hc08/lkelf.c: support for ELF output
11531 * as/hc08/lks19.c (s19),
11532 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11534 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11536 * as/mcs51/lkihx.c: Fixed bug #899105.
11538 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11540 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11541 .dsp files from Unix to DOS.
11543 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11545 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11546 function pointers; we have been compliant for several months now.
11547 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11548 change that was accidently commented out
11549 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11550 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11553 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11555 * src/hc08/gen.c: output of all of the internal debugging information
11556 is now controlled by the D() macro; it is disabled by default
11558 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11560 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11561 harder to keep the same registers during a CAST iCode
11562 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11563 long via int can be done in a single cast, if the signedness is
11565 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11566 putchar() in tinibios.c in ds390's library
11568 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11570 * src/SDCCast.c (decorateType): fixed bug #898889,
11571 cast result of a literal complement too
11572 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11573 fixed check for bitfields
11575 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11577 * src/SDCCicode.c (geniCodeLogic): made it static,
11578 (geniCodeLogicAndOr): added in order to fix bug #905492,
11579 (ast2iCode): fixed bug #905492
11580 * support/regression/tests/bug-905492.c: added
11581 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11582 (processParms): fixed bug #927659: don't copy parms, this will clear
11584 * support/regression/tests/bug-927659.c: added
11586 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11588 * src/SDCCast.c (addCast): don't cast float to char
11589 * device/lib/libsdcc.lib: added _memmove
11591 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11593 * device/lib/large/Makefile: fixed parallel execution by
11594 replacing `make` by `$(MAKE)`
11596 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11598 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11599 offsets (fixes bug #923936)
11601 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11603 * device/lib/small/Makefile: fixed parallel execution by
11604 replacing `make` by `$(MAKE)`
11606 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11608 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11610 2004-03-23 Scott Dattalo <scott AT dattalo.com>
11612 * src/pic/gen.c (genCpl): multi-byte complements were not working.
11613 * src/regression/Makefile: Regression test was not running.
11615 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11617 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11618 complement if possible
11619 * src/SDCCval.c (valComplement),
11620 * src/SDCCicode.c (operandOperation): fixed complement of literal
11621 * support/regression/tests/onebyte.c (testComplement): added
11623 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11625 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11626 return an optimized tree; actually replace actParm with the new tree
11627 * src/SDCCast.h: added some parantheses to remove side effects
11628 * support/regression/tests/bug-920866.c
11630 2004-03-21 Scott Dattalo <scott AT dattalo.com>
11631 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11632 Bit operands were not being handled properly in the pic14 port.
11633 (now src/regression/add.c passes again).
11635 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11637 * src/SDCC.y (labeled_statement): case and default no longer require
11638 a following statement (RFE #893037)
11640 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11642 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11643 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11644 disabled (fixes bug #916294)
11645 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11646 "mov a,acc"; patch provided by Lenny Story
11647 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11649 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11651 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11653 * src/ds390/gen.c (genFunction, genEndFunction),
11654 * src/ds390/ralloc.c (ds390_assignRegisters),
11655 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11656 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11657 pushed if there are parameters passed on the stack. Also, a cleaner
11658 way to decide if r0/r1 should be pushed/popped. (Together they fix
11661 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11664 * device/lib/mcs51/crtpagesfr.asm,
11665 * device/lib/mcs51/crtxinit.asm,
11666 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11667 to avoid confusion with Si Lab's SFRPAGE register.
11669 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11671 * src/SDCCglue.c (emitMaps): allow public sfr variables
11672 * src/SDCCglue.c (initialComments): include compiler build date
11673 with compiler version and put the timestamp of the generated
11674 assembly file on a serperate line to be less confusing.
11675 * src/port.h: added genInitStartup hook
11677 * src/ds390/main.c,
11680 * src/pic16/main.c,
11682 * src/z80/main.c: genInitStartup initialize as NULL (default to
11683 historical behaviour)
11684 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11685 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11686 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11687 library instead of hard coding it into the compiler.
11688 * support/regression/ports/mcs51-stack-auto/spec.mk,
11689 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11690 * device/lib/mcs51/Makefile,
11691 * device/lib/small/Makefile,
11692 * device/lib/large/Makefile,
11693 * device/lib/mcs51/crtpagesfr.asm,
11694 * device/lib/mcs51/crtstart.asm,
11695 * device/lib/mcs51/crtxclear.asm,
11696 * device/lib/mcs51/crtxinit.asm,
11697 * device/lib/mcs51/crtclear.asm,
11698 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11699 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11700 and into user configurable files.
11701 * device/lib/clean.mk: clean mcs51 directory too
11702 * support/regression/tests/longlit.c: added static to T1 declaration
11703 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11704 accesses in the initialization code
11706 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11708 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11709 OSCTRIMVAL as noted in bug #916008
11711 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11713 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11714 in loops with multiple exits (reported as incorrect registers
11715 used by Martin Helmling in Sdcc-user list)
11717 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11719 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11720 made ds390 register extensions look less like error messages
11722 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11724 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11725 reported by Adam Wozniak in Sdcc-user list
11727 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11729 * src/SDCCast.c (decorateType): fixed with bug and promotion in
11730 arithmetic optimizations, added debug output
11732 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11734 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11735 * sdcc.spec: updated and split sdcc into 3 rpms
11736 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11737 needed for literals of LEFT_OP and '+'
11738 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11739 introduced RESULT_TYPE_NOPROM
11740 (geniCodeMultiply): fixed logic for decision if mul is optimized to
11742 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11743 limited promotion to int only for '*'
11744 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11746 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11748 * src/pic16/gen.c (genSkip),
11749 (genc16bit2lit), (gencjneshort): commented out
11750 (is_LitOp): new helper function, checks operand type
11751 (genCmpEq): rewritten
11753 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11755 * support/regression/tests/bug-908454.c: added
11757 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11759 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11760 * src/SDCCicode.c (usualBinaryConversions): op needs int type
11761 (geniCodeCast): cosmetic, don't preserve bit storage class
11762 (geniCodeLeftShift): added promotion
11763 (geniCodeLogic): fixed regression
11764 * src/SDCCsymt.c (computeTypeOr): accept bits too
11765 (compareType): 2nd part of fix for bug #908454, needed for bitfields
11767 2004-03-07 Borut Razem <borut.razem AT siol.net>
11769 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11771 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11773 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11774 version of pic16_genPackRegisters which does not check if ic is a
11776 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11777 function cause string1.c regression test fails
11779 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11781 * sim/ucsim/configure.in,
11782 * sim/ucsim/configure,
11783 * sim/ucsim/doc/Makefile.in: use docdir
11784 * src/SDCC.y: fixed sbit atrributes
11785 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11786 * src/SDCCast.c (decorateType): |^& need special promotion handling
11788 * src/SDCCsymt.h: moved definition of RESULT_TYPE
11789 * src/SDCCsymt.h (computeType),
11790 * src/SDCCicode.c: computeType() needs op
11791 * src/SDCCsymt.c (checkTypeSanity),
11792 * doc/sddman.lyx: "plain" bitfields are unsigned
11793 * src/SDCCsymt.c (computeTypeOr): added
11794 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11796 * src/SDCCval.c (val*): computeType() needs op
11797 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11798 * support/regression/tests/onebyte.c: added tests for |^&
11800 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11802 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11803 for writing icode into asm output.
11805 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11807 * src/pic16/device.c: added some debug lines enabled
11808 with macro DEBUG_CHECK,
11809 * src/pic16/genarith.c: more debug in genPlus,
11810 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11811 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11812 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11813 * (aopForSym): onStack symbols are re-placed in data memspace,
11814 and onStack flag is cleared,
11815 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11816 copy temporary pcodeop,
11817 * (genPcall): added warning for not updating PCLATU,
11818 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11819 always true for pic16 port,
11820 * (genMultOneWord): NEW, supports integer multiplication,
11821 * (genMult): modified to call genMultOneWord,
11822 * (ifxForOp): added warning when return NULL,
11823 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11824 flag is set before call to operandFromSymbol for implicit
11826 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11827 options.intlong_rent are set by default,
11828 * (_hasNativeMulFor): modified to allow port generation of integer
11830 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11831 set regtype to REG_SFR for all registers, restricting seting the
11832 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11834 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11836 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11837 more than 500 times in the regression tests
11839 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11841 * support/Util/SDCCerr.h,
11842 * support/Util/SDCCerr.c,
11843 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11845 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11846 for symbol conflicts.
11847 * support/valdiags/tests/enum.c,
11848 * support/valdiags/tests/tentdecl.c,
11849 * support/valdiags/tests/struct.c: expect possible error messages
11850 referring to original symbol definitions.
11851 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11853 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11855 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11857 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11859 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11861 * src/pic16/ralloc.c (newReg): fixed bug #908929
11863 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11865 * src/ds390/gen.c: added missing #include "main.h"
11867 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11869 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11870 checking if symbol is already in set,
11871 * src/pic16/device.h: prototype for checkAddSym,
11872 * src/pic16/gen.c: (_G): added entry interruptvector,
11873 * (assignResultValue): removed some commented out lines,
11874 * (genFunction): check for ISR via sym->type, absolute section for
11875 interrupt code is created via a new pBlock, the goto instruction is
11876 placed now correctly at the interrupt vector position, changed all
11877 references from ivec to _G.interruptvector,
11878 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11879 is the interrupt is a high priority one, same for return from ISR,
11880 * src/pic16/glue.c: changed all calls of addSetHead for publics and
11881 externs to calls of checkAddSym,
11882 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11883 pic16_pcode_verbose flag is set,
11884 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11885 * src/pic16/pcoderegs.c: message about how many registers are saved
11886 will only be emitted if pic16_pcode_verbose flag is set,
11888 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11890 * src/ds390/ralloc.h,
11891 * src/ds390/ralloc.c (ds390_regWithIdx),
11892 * src/ds390/gen.c (emitcode),
11893 * src/ds390/main.h,
11894 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11895 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11896 ds390operandCompare, getRegsRead, getRegsWritten,
11897 initializeAsmLineNode): customized instruction size calculation for
11898 ds390, started basis for some register optimizations
11899 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11900 corresponding assembly output
11901 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11902 missing push/pop of r0/r1. Optimized push/pops
11904 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11906 * src/mcs51/main.c (instructionSize): fixed ACALL size
11907 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11909 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11911 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11912 the sorting of rlist with NULL elements
11913 * (print_idataType, print_idata): NEW to create idata sections
11914 * src/pic16/device.h: idataSymSet new variable
11915 * src/pic16/gen.c (genFunction): fixed some bugs in string
11916 comparing, improved the absolute section creation for ISRs,
11917 added FSR0L/FSR0H in registers that are saved in an ISR,
11918 * (genInline): fixed the processing of inline snippets,
11919 now they undergo no process by the peephole optimizer
11920 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11921 are placed in idataSymSet,
11922 * (pic16emitStaticSeg): extern symbols are added in externs,
11923 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11924 switching when aboslute variables are placed in access bank memory
11925 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11926 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11927 commented out with #if,
11928 * (pic16_packRegisters): reintroduce the check for CAST because some
11929 symbols are not correctly handled,
11930 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11931 pCodeInstruction instead of pCode,
11932 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11933 pCodeAsmDir definition,
11934 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11935 directive, then the argument directive is emitted without the leading
11936 tab, hack for inline labels which must be in the first column,
11937 * (compareLabel,pic16_findNextInstruction),
11938 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11939 * (insertBankSwitch): modified for the new pCodeAsmDir,
11941 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11942 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11944 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11946 * (pushSide): commented out with #if,
11947 * (assignResultValue): fixed some typos in saving
11949 * (genPcall): FIXED and sync'ed with genCall,
11950 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11951 * (genNearPointerGet): fixed to handle some more cases,
11952 implementation scheme via table reads,
11953 * (genConstPointerGet): modified to access code memory correct,
11954 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11955 and improved to handle some cases
11956 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11957 instead of "RETLW" for init data
11958 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11959 not IN_DIRSPACE, work around to reduce bank switching when aboslute
11960 variables are placed in access bank memory (<0x80 and >=0xf80),
11961 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11962 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11963 TBLWT_POSTDEC,TBLWT_PREINC
11964 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11965 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11967 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11968 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11969 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11970 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11972 2004-02-29 Borut Razem <borut.razem AT siol.net>
11974 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11975 support/Util/findme.h, support/Util/system.h: enhance binary relative
11976 search for lib and include by using findProgramPath()
11978 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11981 * src/SDCCpeeph.c (pcDistance),
11983 * src/mcs51/ralloc.h,
11984 * src/mcs51/ralloc.c (mcs51_regWithIdx),
11985 * src/mcs51/main.h,
11986 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11987 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11988 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11989 size calculation port specific, started basis for some register
11991 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11992 missing push/pop of r0/r1. Optimized push/pops
11993 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11994 * device/lib/_modsint.c (_modsint),
11995 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11996 and stack version so regression tests pass
11998 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
12000 * src/Makefile.in (dep): include SLIBOBJS in dependency check
12001 * src/SDCCast.c (decorateType): catch another small optimization
12003 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
12004 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
12005 modified to finally use computeType() all over SDCC,
12006 see Feature Request #877103
12007 * src/SDCCval.h: cosmetic
12008 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
12009 valCompare(); regression tested in muldiv.c
12010 * support/regression/tests/muldiv.c (testMod): mod sign follows
12013 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
12015 * src/SDCCast.c (decorateType): fixed bug #902362
12016 * doc/INSTALL.txt: fixed install instructions for win32
12018 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
12020 * device/include/Makefile.in (install): fixed by replacing spaces
12023 * doc/INSTALL.txt: updated for release
12024 * doc/sdccman.lyx: added warning for --xstack being buggy
12026 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
12028 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
12029 to eliminate build warnings.
12030 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
12032 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
12033 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12035 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
12036 removed -penable-stack, added comment for stack pragma, added
12037 warning for not initializing the stack/frame registers, removed
12038 comment at interrupts section
12040 Stack is made permanent, there is no ability to disable stack usage.
12041 * src/pic16/device.h,
12042 * src/pic16/device.c: removed all references to USE_STACK macro,
12043 * src/pic16/device.c (pic16_dump_section): when no elements in
12044 rlist, free rlist before return,
12045 * (pic16_dump_int_registers): NEW, internal registers are a new set
12046 of general purpose registers reused by each function,
12047 * (checkAddReg): returns 1 if registers is added to set,
12048 * (pic16_groupRegistersInSection): when a registers is of type
12049 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
12050 * src/pic16/device.h: memRange and Assigned Memory are deleted,
12051 SRCASECMP macro is moved here from device.c
12052 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
12053 PO_PCLATU, PO_PRODL, PO_PRODH,
12054 * (pic16_pCodeOpType, genMinus,
12055 changed compares to "a" register, with AOP_ACC,
12056 * (pic16_genPlus): fixed some bugs and indented properly,
12057 * (pic16_addSign): changed size to size+offset in the MOVWF
12059 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
12060 multiply 8-bit operand by literal, result is 8-bit,
12061 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
12062 multiply 2 8-bit operand, result is 8-bit,
12063 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
12065 * src/pic16/gen.c: changed accUse to contain WREG only,
12066 * (pic16_emitcomment): renamed to pic16_emitpcomment,
12067 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
12068 true, do not use immediate addressing any more unless sym is a
12069 pointer in codespace,
12070 * (aopForRemat): do not use immediate addressing when symbol not in
12071 codespace and when symbol's address is requested,
12072 * (aopOp): for-loop in if(sym->accUse) is modified for the new
12074 * (aopGet): added case for AOP_ACC and don't return "accumulator
12075 bug" but WREG instead,
12076 * (popGetTempReg): pushes contents of temporary register in stack,
12077 * (popReleaseTempReg): pops contents of temporary register from
12078 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
12079 * (pic16_popGet): separated case AOP_ACC to return register WREG
12080 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
12081 or PO_IMMEDIATE and initializes their instance/offset appropriately,
12082 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
12083 the use of immediate pointers to certain cases only.
12085 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12086 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12087 * (assignResultValue, genCall, genRet): modified to use the new
12088 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12089 genPcall is still broken,
12090 * (genFunction): added code to create 'A' type pBlocks when
12091 interrupt functions are generated, code not extensively tested yet,
12092 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12093 * (genEndFunction): modified so ISRs pop stored registers from stack,
12094 * (genMultOneByte): cleanup,
12095 * (AccRsh): added flag andmask, to and result with appropriate mask,
12096 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12097 * (genDataPointerGet): fixed and reenabled its use,
12098 * (genNearDataPointerGet): bugs fixed,
12099 * (genDataPointerSet): bugs fixed,
12100 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12101 pic16_DumpSymbol, pic16_DumpOp,
12102 * src/pic16/genutils.h: function prototypes for the above functions,
12103 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12105 * (pic16emitRegularMap): many many many improvements, but needs a
12107 * src/pic16/main.c: enable_stack in pic16_options is removed,
12108 * (_pic16_parseOptions): removed command line options -penable-stack,
12109 * (_process_pragma): emit stack symbol only when stack pragma is
12111 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12112 redirected to FSR0L/FSR0H pair,
12113 * (pic16_get_op, pic16_get_op2): modifications and improvements,
12114 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12115 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12117 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12118 * (dumpPicOptype): NEW,
12119 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12120 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12121 with movff instruction,
12122 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12123 added pic16_int_regs, some packRegsFor* functions are commented out,
12124 because produce errors,
12125 * src/pic16/NOTES: minor modifications
12127 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12129 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12130 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12132 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12133 * as/mcs51/lkaomf51.c: fixed bug #895763
12135 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12137 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12139 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12141 * doc/sdccman.lyx: added details about the HC08 storage classes and
12142 interrupts, fixed the register usage info for z80 & gbz80
12144 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12146 * doc/sdccman.lyx: added more pic16 port documentation
12147 * device/include/pic16/: added header pic18fregs.h
12149 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12151 * doc/sdccman.lyx: added Vangelis' contribution
12153 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12155 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12156 extend to the next CALL or PCALL, not just to the next CALL.
12158 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12160 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12162 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12164 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12165 bug #895752 and a better fix for bug #716790
12167 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12169 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12171 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12173 * doc/sdccman.lyx: minor changes, minor changed
12175 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12177 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12178 which can't handle SDCC_NEWONEBYTEOPS,
12179 (geniCodeMultiply): removed conversion from mult to shift for pic14
12182 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12185 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12186 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12187 thus fixing bug #895406
12189 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12191 * device/lib/_modsint.c,
12192 * device/lib/_modslong.c: sign follows divisor only
12193 * src/hc08/gen.c (genMultOneByte): if result size is 1,
12194 signs or signedness can be ignored
12195 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12196 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12197 added optimization for IFX,
12198 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12200 reenabled optimization for IFX, which was removed on 2004-01-11
12201 * src/SDCCast.h: added return type IFX
12202 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12203 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12204 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12205 SDCC_OLDONEBYTEOPS selects the old behaviour
12206 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12207 changed again and commented promotion rule
12208 * src/SDCCval.c (valDiv): promotion no longer necessary
12209 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12210 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12212 * support/regression/tests/onebyte.c: added
12214 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12216 * gen.c (genInline): reverted to old code for assemnling inline
12217 code because of bug reported James Chadd
12219 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12221 * ralloc.h: missing declarations from previous patch,
12222 seems that patch for ralloc.h was never applied, fixed
12224 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12225 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12229 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12230 indirect addressing. Marked FSR0 as deprecated
12231 * gen.c (pointerCode): commented out, not needed now
12232 (pic16_popGet2p): new MOVFF helper function
12233 (genGenPointerGet),
12234 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12235 (shiftRLong): removed duplicate debugging info
12237 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12239 * src/ds390/gen.c (genNearPointerGet),
12240 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12241 optimization with bits, but not bitfields.
12242 * src/ds390/ralloc.c (packRegisters),
12243 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12245 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12247 * src/SDCCcse.c (algebraicOpts): copy operands before modification
12249 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12252 * src/SDCCicode.c (operandFromSymbol),
12253 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12254 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12255 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12256 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12257 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12258 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12260 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12261 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12262 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12263 * src/SDCCsymt.c (newSymbol),
12264 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12267 * src/SDCCval.c (newiList): fixed bug #885705
12269 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12271 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12272 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12274 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12276 * device/include/c8051f120.h,
12277 * device/include/c8051f300.h,
12278 * device/include/c8051f310.h: added/updated header files for Silicon
12279 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12280 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12281 in new section Submitting patches
12283 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12285 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12286 genFarPointerGet, genCodePointerGet, genGenPointerGet,
12287 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12289 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12290 genFarPointerGet, genCodePointerGet, genGenPointerGet,
12291 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12293 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12294 genFarPointerGet, genCodePointerGet, genGenPointerGet,
12295 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12297 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12298 genFarPointerGet, genCodePointerGet, genGenPointerGet,
12299 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12300 genGenPointerSet): fixed bug #892400
12301 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12302 to eliminate build warnings.
12303 * src/SDCCast.c (processParms),
12304 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12306 * support/valdiag/valdiag.py: added GCC to the list of defines active
12307 when compiling with gcc
12309 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12311 * support/Util/SDCCerr.h,
12312 * support/Util/SDCCerr.c,
12313 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12314 with an incomplete type (fixed bug #883734)
12315 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12317 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12319 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12321 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12323 * src/SDCCast.c (decorateType),
12324 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12325 function pointer implementation
12326 * support/regression/tests/funptrs.c: added tests to verify both forms
12327 of function pointers work correctly. Added tests to verify parameters
12328 are passed in the correct order.
12330 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
12332 * device.c (regCompare): registers are sorted by ascending
12333 address and increasing size,
12334 * main.c (_pic16_finaliseOptions): removed the declaration
12335 of compiler macro MCU. Now a macro of the format pic18fxxxx
12336 will be defined from the command line
12338 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12339 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12341 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12342 PCOP_RLCF was overwritten!
12343 * gen.c (genSkip): commented out calls to pic16_emitcode,
12344 * (genCmpEQ): fixed "long" compares, only high word did get compared,
12346 * (genRRC): added debugging info,
12347 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12348 overwritten while shifting,
12349 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12350 overwritten while shifting,
12353 * (shiftLLeftOrResult),
12354 * (shiftRLeftOrResult),
12356 * (shiftLLong): Implemented with pic16_emitpcode
12357 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12358 * (genLeftShift): Fixed bug, operand for shift by variable always
12359 was "and"ed with 0x0f,
12360 * (genLeftShiftLiteral),
12362 * (genRightShiftLiteral): added debugging info,
12363 * (genrshFour): added comment,
12364 * (genRightShift): determined signedness from operand "left"
12365 instead of "result"
12367 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12369 * src/SDCCicode.c (geniCodeParms),
12370 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12371 function pointers, fixed function pointer bugs #861242 and #861896
12373 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12375 * device/include/c8051f000.h,
12376 * device/include/c8051f120.h,
12377 * device/include/c8051f300.h: added header files for Silicon
12378 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12380 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12382 * src/SDCCast.c (processParams): added new type flow and restructured
12383 (gatherAutoInit): added new type flow
12384 (addCast): cosmetic changes
12385 (getLeftResultType): added new type flow for array indices, patch
12386 provided by Stas, see FR #877103
12387 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12388 array index patch by Stas
12389 * src/SDCCast.h: added prototype getResultTypeFromType()
12391 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12392 * src/pic/glue.c (pic14emitStaticSeg),
12393 * src/pic16/glue.c (pic16emitStaticSeg),
12394 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12395 for initialization of symbols
12396 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12397 * support/Util/SDCCerr.h:
12398 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12399 * .version: bumped version number to 2.3.8
12400 * device/include/Makefile.in (install),
12401 * doc/Makefile (install): changed to 'rm `find ...`' construct to
12404 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12406 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12407 Slade Rich fixed an optimization bug
12408 * src/pic/pcodepeep.c,
12409 * src/pic/pcoderegs.c
12410 * doc/Makefile (install): added test for directory
12412 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12414 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12415 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12416 * src/pic/ralloc.c (getRegPtr, getRegGpr),
12417 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12418 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12419 * as/mcs51/asexpr.c (term),
12420 * as/hc08/asexpr.c (term): fixed bug #887146
12422 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12424 * src/z80/gen.c (genMult): handle single byte result product
12425 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12426 DUMMY_READ_VOLATILE (fixed bug #886367)
12428 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12430 * support/regression/tests/libmullong.c: fixed logic, on little endian
12431 hosts we ended without a mullong_wrapper()
12433 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12435 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12436 virus/worm forged address usage.
12438 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12440 Fixed promotion, it should be done on AST level:
12441 * src/SDCCast.c (addCast): added promotion to int
12442 (decorateType): updated call to upCast()
12443 * src/SDCCicode.c (geniCodeLeftShift): removed call to
12444 usualUnaryConversions()
12446 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
12448 * support/regression/tests/literalop.c (mulWrapper): Added a
12449 wrapper to remove integer overflow warnings.
12451 * support/regression/tests/float_trans.c: Made work on host.
12453 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12456 * support/regression/generate-cases.py (main): Changed from inline
12459 * doc/Makefile (install): Changed to depth first to get rid of
12460 missing directory install warning.
12462 * as/Makefile (install-doc): Made work on Mac.
12464 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12466 * src/SDCCast.c: added an additional type flow in decorateType() of
12467 opposite direction, see feature request #860006; it's enabled at runtime
12468 by setting the environment variable SDCC_NEWTYPEFLOW
12469 * src/SDCCast.h: changed prototype of decorateType()
12470 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
12471 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
12472 'char' to 'int' can be omitted, if both operands are 'unsigned char';
12473 see feature request #877103
12474 * src/SDCCval.c: updated call of decorateType()
12475 (valBitwise): fixed bug #882876
12476 (valMinus): added promotion
12477 (valLogicAndOr): result is unsigned
12478 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
12479 * src/SDCCsymt.c (computeType),
12480 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
12481 must not cause an unsigned operation
12482 * src/pic/glue (pic14emitRegularMap),
12483 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12485 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12487 * src/pic/pcode.c (PCodeID): commented out left over debug code
12489 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
12491 * support/valdiag/tests/overflow.c: added shift tests
12492 * src/pic/device.c,
12499 * src/pic/pcodepeep.c,
12500 * src/pic/pcoderegs.c,
12501 * src/pic/ralloc.c,
12502 * src/pic/ralloc.h: applied patch from Slade Rich;
12503 added support for multiple code pages and multiple RAM banks on the
12504 PIC 14 port. The ASM files now no longer simply assume all the
12505 code / RAM are in the same page / bank. This means the linker can
12506 safely allocate code/RAM of separate ASM files to different pages/banks.
12507 * doc/sdccman.lyx: added Slade's tips
12508 * src/mcs51/peeph.def: fixed bug #880768
12510 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12512 * src/hc08/ralloc.c (rematStr): fixed bug #879282
12513 * src/SDCCast.c (decorateType): fixed bug #880197
12515 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
12517 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
12520 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
12521 strtof is not part of C89 and isn't included with Mac OS X.
12523 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12525 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12526 shiftL2Left2Result): fixed bug #879326
12527 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12528 (genMultOneByte): fixed bug in signed vs unsigned multiplication
12529 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12530 address fetch for clr instruction
12531 * device/lib/hc08/_mulint.c: created optimized assembly version
12532 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12534 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12536 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12537 proposed in FR #877103
12539 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12541 * src/SDCCval.c (cheapestVal): added missing checks
12542 * src/SDCCicode.c (usualBinaryConversions): fixed condition
12543 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12545 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12547 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12550 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12552 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12553 loaded with the linker search paths (-L arguments) and the libraries
12554 to be linked with the current source (-l arguments). Changes
12555 currently will affect only the pic16 port.
12556 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12557 include path the port specific paths and port specific libraries,
12558 * gplink command now contains the $3 argument,
12559 * src/pic16/device.h,
12560 * src/pic16/device.c,: structure PIC_device is made public and
12561 renamed to PIC16_device, the same for variable Pics which is renamed
12562 to Pics16. Updated all references to them.
12563 * src/pic16/glue.c (pic16glue): corrected bug with code
12564 initialization which bypassed the variable initializations block.
12566 * device/lib/pic16/Makefile.rules: removed --penable-stack from
12567 COMPILE_FLAGS and added the --nostdinc option
12569 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12571 * device/include/mc68hc908jb8.h: Register defs for another member
12572 of the hc08 family. Contributed by Bjorn Bringert - thanks!
12574 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12576 Documenting changes from previous commits.
12577 * configure.in (version 1.56),
12578 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12579 when generating output files to configure the pic16 library,
12580 but now I've commented it out, since gputils aren't installed in the
12581 SF compile farm, so library won't compile
12583 * device/lib/Makefile.in (version 1.56): initially I've added in
12584 target 'all' the prerequestive 'model-pic16' so it compiled the
12585 pic16 library, but now I've commented it out for the same reasons
12587 * added targets 'model-pic16' and 'objects-pic16' to compile the
12589 * added target 'port-specific-objects-pic16' to handle the
12590 generated libraries and copy them into the build/ directory
12591 * added target 'clean-intermediate-pic16' to clean intermediate
12592 files into pic16 directory
12593 * in target 'installdirs' added line to create directory pic16 in
12594 the installation path
12596 * device/include/Makefile.in (version 1.11): in target 'install'
12597 added lines to copy all header files to installation path,
12598 * in target 'installdirs' added line create directory for pic16
12599 headers in the installation path
12601 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12603 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12606 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12609 * device/lib/configure.in,
12610 * device/lib/configure: fixed for autoconf 2.57
12612 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12614 * src/z80/main.c (_parseOptions): fixed the portmode= command line
12615 option so that it actually works. Made it specific to the z80, since
12616 the gbz80 doesn't have these kinds of I/O ports.
12618 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12620 * device/include/z180.h,
12621 * device/lib/_memcpy.c,
12622 * device/lib/_memmove.c,
12623 * device/lib/_mulint.c,
12624 * device/lib/ser_ir.c,
12625 * device/lib/ser_ir_cts_rts.c,
12626 * device/lib/_strcmp.c,
12627 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12628 * src/z80/main.c (_process_pragma): add support for pragmas bank and
12629 portmode; added deprecation warning for bank= and protmode= forms.
12630 Also, guard against buffer overflow.
12631 * src/z80/gen.c (aopGet): generate better code for sfr banked read
12633 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12635 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12636 changed interrupt vector table generation to only emit declared vectors.
12637 * device/include/Makefile.in: added missing backslash
12638 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12640 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12642 Mainly changes to support compilation of the device libraries
12643 * src/pic16/device.c: stack is allocated via symbol and not
12644 via literal number. The symbol is placed in the corresponding
12645 position of the data ram
12646 * (pic16_dump_section): relocatable and absolute uninitialized
12647 data are now emitted in sorted order to reduce section naming,
12648 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12649 weren't marked as being in the access bank,
12651 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12653 Added portion of GNU PIC Library under the directory
12654 device/include/pic16 and device/lib/pic16. These files
12655 contain the declarations of SFRs for the PIC18Fxx2 devices.
12656 The directory is initialized via configure from toplevel.
12658 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12660 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12661 the spilllocations to be compared correctly
12663 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12665 * src/SDCCast.c (decorateType): fixed bug introduced today
12667 2004-01-12 Borut Razem <borut.razem AT siol.net>
12669 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12670 doc/sdccman.lyx: upper case pragmas are deprecated
12672 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12674 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
12675 in simpler and even better code
12677 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12679 * src/SDCCicode.c (operandOperation): fixed bug #874819
12680 * src/SDCCast.c (decorateType): fixed
12681 char foo (unsigned long ul) { return ul > 0; }
12683 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12685 * doc/sdccman.lyx: Moved and added some sections, small changes
12686 all over. Telling LaTeX to be less strict with word spacing
12687 to better keep the right margin. Changed some notes about
12688 maintainance of the ports in section 3.2.1 - is it OK like this?
12690 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12692 SDCC source changes:
12693 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12694 convilong): modified to inform the pic16 port that builtin functions
12697 PIC16 PORT specific changes:
12698 * src/pic16/device.c pic16_dump_equates() added,
12699 processor registers declared internally by the port are emitted in
12700 the translation as equates,
12701 * src/pic16/gen.c: inline code is passed unprocessed to the
12703 * (pic16_popGetLit2): fnuction modified to take second operand as
12704 pCodeOp pointer and not as literal,
12705 * (popRegFromIdx): prefixed with pic16_,
12706 * (pic16_popCombine2): modified to receive already allocated pCode
12708 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12709 * (genFunction): initializes local stack frame and pushes on stack
12710 all the registers used by this function,
12711 * (genEndFunction): restores all registers from stack and restores
12713 * src/pic16/glue.c (pic16emitRegularMap): various changes and
12715 * (pic16glue): changed the program startup sequence,
12716 * added new dbName code 'A' for functions placed in absolute section
12717 * src/pic16/main.c: added function attribute _naked,
12718 * added pragma 'code' to place a fnuction at an absolute address,
12719 * added command line arguments --debug-ralloc and --pcode-verbose,
12720 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12721 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12722 * (pic16_newpCodeOpLit2): modified to take the second operand as
12724 * (pic16_printpBlock): modified to emit each function in a separate
12726 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12727 UPPER for immediate operands,
12728 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12730 * src/pic16/peeph.def: all peepholes with movff are commented out,
12731 because there is a problem in the pcode peep optimizer,
12732 * src/pic16/ralloc.c: the register allocator can now reuse local
12733 function symbols for another function. This saves register usage.
12734 * src/pic16/ralloc.h: added flag isLocal in structure regs,
12736 Added file src/pic16/NOTES with information about program writing on
12737 the current port version.
12739 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12741 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12742 and peephole 252 (array access)
12744 2004-01-09 Borut Razem <borut.razem AT siol.net>
12746 * src/SDCCmain.c : fixed #872250: -l command line defined library
12747 files are scanned before standard library files
12749 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12751 * src/SDCCast.c (decorateType): fixed bug #874046
12753 2004-01-09 Borut Razem <borut.razem AT siol.net>
12755 * support/scripts/sdcc.nsi: remove previous installation
12757 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12759 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12760 bytes for last interrupt vector (mcs51)
12761 * sdcc.spec: fixed typo
12763 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12765 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12766 gen51Code): more efficient parameter receive for --model-large
12769 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12771 * src/ds390/main.c,
12772 * src/z80/main.c: added missed needLinkerScript flags (more than
12773 one port structure defined in these file)
12774 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12777 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12779 * src/SDCCmain.c: removed various references to DEFAULT_PORT
12780 * src/port.h: added flag needLinkerScript in port->linker
12781 structure to inform whether to create a .lnk file or not,
12783 * src/ds390/main.c,
12785 * src/mcs51/main.c,
12787 * src/pic16/main.c,
12789 * src/z80/main.c: changed appropriately to configure
12790 needLinkerScript flag
12792 * src/pic16/gen.c (genAddrOf): fixed bug #863624
12793 * src/pic/glue.c: added variable udata_section_name to
12794 override default uninitialized data segment definition for
12795 devices only with SHAREBANK memory (reported from Erik Epetrich)
12796 * (pic14emitOverlay): modified to emit a commented overlay segment
12797 directive when no overlay data exist
12798 * (picglue): modified to emit uninitialized data segment
12799 according to udata_section_name
12800 * src/pic/main.c (_pic14_parseOptions): added command line
12801 options --udata-section-name=[name] to override default
12802 udata definition name
12803 * modified _linkCmd and _asmCmd to include compiler passed
12804 arguments via -W option
12805 * src/pic16/main.c: added $l in _asmCmd, changed extension for
12806 object file from '.rel' to '.o' in port->linker structure,
12807 changed size of fptr from 2 to 3 in port structure
12809 2004-01-07 Borut Razem <borut.razem AT siol.net>
12811 * support/scripts/sdcc.nsi: update PATH
12812 * support/scripts/sdcc.ico: craeted
12814 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12816 * device/include/Makefile.in: fix install
12817 * doc/Makefile: fix install
12819 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12821 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12823 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12824 how the function variable allocation summary is displayed; also
12825 include information about variables allocated to the overlay
12828 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12830 * as/mcs51/lkmain.c: Help about -Y option
12831 * as/mcs51/lkarea.c: Fixed gcc warnings
12833 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12835 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12837 * support/valdiag/tests/overflow.c: added
12838 * src/SDCCast.c (decorateType),
12839 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12840 LEFT_OP (left shift)
12842 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12844 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12845 (default behaviour).
12847 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12849 A python script to validate compiler diagnostic messages. It can be
12850 used to verify that sdcc complains about bad c source code and
12851 gives a good location of the error.
12852 * support/valdiag/Makefile,
12853 * support/valdiag/valdiag.py,
12854 * support/valdiag/tests/*
12856 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12858 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12859 * src/SDCCsymt.c (newEnumType),
12861 * support/Util/SDCCerr.c,
12862 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12864 * support/regression/tests/enum.c: added test for enum values that
12865 require at least 2 bytes of storage.
12867 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12869 * src/common.h: added ifndef/define/endif macros
12870 around the header file.
12871 Bug reported from Jesus Calvino-Fraga
12873 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12875 * sdcc.spec: updated
12876 * device/include/Makefile.in: don't install CVS directories
12877 * device/lib/Makefile.in: added removal of CVS directories after install
12878 * doc/Makefile: fixed install, added local_icons
12879 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12880 * src/mcs51/gen.c (genRightShift): fixed bug #870788
12881 * src/ds390/gen.c (genRightShift): fixed bug #870788
12882 * src/SDCCast.c (decorateType): fixed bug #870781
12884 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12886 PIC16 port related changes:
12887 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12888 added variable stackPos,
12890 * gen.c: genCall, assignResultValue: added support for
12891 pushing/retrieving function parameters to/from stack,
12892 genFunction,genEndFunction: setup stack frame for the
12893 generated function,
12894 genAddrOf: will be changed according to bug 863624
12896 * added files genutils.c and genutils.h which contain gen*
12897 debugged and optimised functions extracted from gen.c
12899 * glue.c: added variable 'externs' which holds extern symbols,
12900 pic16emitRegularMap: is modified to properly handle relocatable
12901 symbols under the new scheme,
12902 pic16createInterruptVect: is modified
12903 pic16printPublics: is modified to emit 'global' assembler directives,
12904 added pic16_printExterns to print extern symbols,
12905 pic16glue: initializes stack/frame pointer in the beginning of
12906 the assembly output. Temporary hack, will be corrected later,
12907 because gplink yet does not support stack and SDCC does not
12908 yet support a type of crt0.o object to create the final binary.
12910 * Removed many lines that contain 8051 legacy code.
12911 * The code is finally placed under a 'code' directive.
12912 * Added port specific options.
12914 * _process_pragma: simplified since now we do not need *special*
12915 include file to define SFR registers. But a separate header
12916 will be needed. This will be developed later.
12917 * _pic16_parseOptions: added, parses port specific options:
12918 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12919 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12920 --preplace-udata-with=
12922 * _pic16_setDefaultOptions: modified to initialize section names,
12923 but hack is temporarly out of order since it needs improvement.
12924 * _pic16_genAssemblerPreamble: configuration words are emitted by
12925 their address instead of their name. This part is incomplete and
12926 supports only the 18Fxx2 devices. Other devices will emit an error
12927 during assembly since they do not contain the same set of config
12929 * _pic16_genIVT: is modified,
12931 * pcode.c: added definitions for some hardware registers that are needed
12933 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12934 All PCI entries are updated. Now LFSR is supported.
12935 * Removed pic16_pciTRIS is mentioned by mdubuc in source
12936 * added pic16_newpCodeOpLit2 to support instructions with
12937 two literal arguments
12938 * pic16_pCode2str: corrected code that emits assembler instructions
12939 with two literal operands and those that have an access bit modifier
12940 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12941 this fixes a bug which caused some labels to be lost, when an
12942 assembler directive was added, i.e. banksel,
12943 * pic16_FixRegisterBanking: improved logic that causes the insertion
12945 * InlineFunction: functions that are called once, are not any more
12946 inlined. This can be a port option in the future,
12948 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12950 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12951 hold the corresponding uninitialized symbols,
12952 * pic16_allocProcessorRegister: registers have explicit marked the
12954 * pic16_allocInternalRegister: registers are explicit marked as
12956 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12957 processing list, so bit registers were lost,
12960 * ralloc.h: added field 'accessBank' and original symbol operand
12961 in register definition,
12962 * removed the field isMapped from register definition,
12964 ** Several functions have been removed from various sources:
12965 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12966 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12967 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12968 pic16_assignRelocatableRegisters
12970 ** others have been introduced:
12971 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12972 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12974 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12976 * support/scripts/inc2h.pl: changed definition of BIT_AT
12977 to emit 'sbit at' instead of 'bit at'. This was a request.
12979 PIC16 port related preliminary changes:
12980 * gen.c: prefixed function popRegFromString with
12981 pic16_ and all references to it corrected
12982 * pcode.c: all pic16_pc_* hardware registers prefixed
12983 with underscore (_),
12984 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12985 * ralloc.c: newReg(): when register is REG_SFR then
12986 set address to rIdx,
12987 pic16_allocProcessorRegister(): marks register wasUsed=0
12988 pic16_writeUsedRegs(): added a call to assign processor
12989 registers via pic16_assignFixedRegisters
12991 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12993 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12994 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12995 variables in unused register banks. Also the SSEG is placed
12996 wherever there is enough space for it, and IDATA can be anywhere
12997 in internal RAM. For now compile using -Wl-Y[stack_size].
12998 The mem file is different for this option as well, since it
12999 makes no sense of talking about DSEG lenght.
13001 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
13003 * src/SDCClrange.c: fixed bug 869095 that caused segfault
13004 in certain cases, e.g. when ROM assignment, patch provided
13005 from Albert den Haan.
13007 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
13009 Many signedness and type propagation fixes:
13010 * src/SDCCicode.c: made geniCodeCast() static
13011 replaced SPEC_ by IS_ (cosmetic)
13012 (operandOperation): fixed div and mod operation
13013 (usualBinaryConversions): added support for promotion of char
13014 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
13015 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
13016 (geniCodeAdd): an array index will stay unsigned, even if promoted
13018 (geniCodeArray): ditto
13019 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
13020 * src/SDCCsymt.c (computeType): added more support for char;
13021 promotion of char is selectable by promoteCharToInt, fixed signedness
13023 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13024 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
13025 * src/SDCCval (val*): replaced signedness calculation by
13027 rearranged if-branches (cosmetic)
13028 (valShift): added warning W_SHIFT_CHANGED
13029 (valCompare): fixed problem with different types
13030 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
13031 * support/regression/tests/literalop.c: added many cases
13032 * support/regression/tests/ast_constant_folding.c: changed finally to
13034 * .version: new year, new version: 2.3.7
13035 * src/SDCCmain.c (main): applied patch #866468
13036 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
13037 provided by Scott Bronson
13038 * doc/sdccman.lyx: updated documentation for sdcdb
13039 updated and added chapter tips
13041 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13043 * src/SDCCsymt.h: missing from yesterday's commits
13045 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13047 * src/SDCC.y (struct_or_union_specifier),
13048 * support/Util/SDCCerr.c,
13049 * support/Util/SDCCerr.h: verify that struct & union tags are used
13052 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13054 * src/SDCCglobl.h: missing from yesterday's commits
13056 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13058 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
13059 sft_attributes, struct_declaration, parameter_declaration,
13060 type_name, start_block, declaration_list),
13061 * src/SDCC.lex (check_type): support redefinition of typedef names
13063 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13065 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
13066 aligned xdata arrays. Erik helped me with the if clause.
13068 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13070 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
13073 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13076 * src/SDCCast.c (newAst_),
13078 * src/SDCCicode.c (ast2iCode, newiCode),
13080 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
13081 expr, statement, expression_statement, selection_statement,
13082 iteration_statement, expr_opt, jump_statement): foundation for tracking
13084 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13087 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13089 * support/Util/SDCCerr.c,
13091 * src/SDCCast.c (createCase, createDefault, decorateType),
13092 * src/SDCClabel.c (labelUnreach),
13093 * src/SDCC.y (labeled_statement, jump_statement): More improvements
13095 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13096 (with thanks to Stas Sergeev)
13097 * device/include/time.h,
13098 * device/lib/time.c (CheckTime): suppress unreachable code warning
13100 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13102 * src/SDCCast.c (createIvalCharPtr),
13103 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13105 * support/regression/tests/nullstring.c: tests for these two bugs
13107 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13109 * support/Util/SDCCerr.h,
13110 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13111 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13112 about storage class and 'at' used inside struct or union
13113 * src/SDCCBBlock.c (iCodeFromeBBlock),
13114 * src/SDCCcse.c (ifxOptimize),
13115 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13116 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13117 printIval, emitStaticSeg, emitOverlay),
13118 * src/SDCClabel.c (deleteIfx),
13119 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13120 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13121 gatherAutoInit, processParms),
13122 * support/Util/SDCCerr.h,
13123 * support/Util/SDCCerr.c (werrorfl): Support for better error location
13124 reporting for post-parse errors.
13126 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13128 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13129 implicit casts via union; they don't work on big endian systems
13130 (possible fix for bug #861138)
13132 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13134 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13135 * src/mcs51/main.c: fixed the fix for bug #737001
13137 2003-12-15 Borut Razem <borut.razem AT siol.net>
13139 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13141 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13143 * support/makebin/makebin.c: put output in binary mode
13145 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13147 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13148 xdata and data memory on startup. Set the environment variable
13149 SDCC_NOGENRAMCLEAR to disable this.
13150 * src/mcs51/peephole.def,
13151 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13152 (allows non-interrupt and interrupt code to safely compete for a resource
13153 without the non-interrupt code having to disable interrupts)
13155 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13157 * src/SDCCicode.c (geniCodeAdd),
13158 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13159 with valFromType if type might be a pointer and host is big endian).
13160 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13161 types, not just integer types.
13162 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13163 multiply defined with mismatching "at" address.
13165 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13167 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13168 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13169 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13170 with embedded nulls (fixed bug #753752)
13172 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13174 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13175 Apparently this did not see much testing (endless loop)
13177 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13179 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13181 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13183 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13184 gracefully handle NULL memmap pointers
13186 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13188 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13189 instead of deleting the iCode when an operand is volatile
13190 * src/z80/gen.c (genDummyRead),
13191 * src/mcs51/gen.c (genDummyRead),
13192 * src/ds390/gen.c (genDummyRead),
13193 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13195 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13196 * src/SDCC.y: fixed bug #850420
13198 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13200 Applied z80 i/o port patch from Peter Townson and fixed some operators
13201 to better handle operands in A register.
13202 * device/include/z180.h
13208 * src/z80/peeph-z80.def
13209 * src/z80/peeph.def
13212 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13214 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13216 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13218 * device/lib/hc08/_mullong.c: Removed extra #endif
13220 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13222 * sim/ucsim/hc08.src/inst.cc,
13223 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13224 carries from x to h
13225 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13226 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13227 * device/include/stdarg.h: fixed varargs for hc08
13228 * device/lib/Makefile.in,
13229 * device/lib/hc08/Makefile,
13230 * device/lib/hc08/_mulint.c,
13231 * device/lib/hc08/_mullong.c: fixed some endian problems
13233 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13235 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13236 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13237 * device/lib/_gptrget.c,
13238 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13240 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13242 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13243 * src/SDCCast.c (astErrors): fixed bug #846007
13244 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13246 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13248 * src/SDCCast.c (decorateType): disabled a transformation I added in
13249 revision 1.188 (access to fields of a structure at an absolute address);
13250 it breaks with bitfields, extern declarations, and gcse analysis.
13251 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13252 could be assigned through a pointer, so don't complain.
13253 * src/SDCCast.c (astErrors),
13255 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13257 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13259 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13260 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13261 output of __config directives, since gpasm now supports them
13262 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13263 pre-processor macro, i.e. -DMCU=p18f452
13264 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13265 and modified to handle 'cast' icode similarly to '=' icode
13266 * src/pic16/device.h (typedef struct PIC_device): added field
13267 'extMIface' to indicate that chip has external memory interface
13268 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13269 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13272 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13274 * src/SDCC.y (pointer): fixed bug #846006
13275 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13276 * src/SDCCast.c (decorateType): fixed bug #846009
13277 * src/ds390/peeph.def,
13278 * src/ds390/gen.c (genAnd, genOr),
13279 * src/mcs51/peeph.def,
13280 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13282 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13284 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13291 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13295 * src/SDCCbitv.c: added function to free a bitvector
13296 * src/SDCClrange.h,
13297 * src/SDCClrange.c: added function to recompute the liveranges
13298 * src/avr/ralloc.c,
13299 * src/ds390/ralloc.c,
13300 * src/hc08/ralloc.c,
13301 * src/mcs51/ralloc.c,
13302 * src/pic/ralloc.c,
13303 * src/pic16/ralloc.c,
13304 * src/xa51/ralloc.c,
13305 * src/z80/ralloc.c: recompute the liveranges after register packing
13307 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13309 * src/SDCCloop.c (newInduction): fixed bug #845630
13311 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13313 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13314 inadvertantly left behind from my 2003-11-12 change
13316 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13318 Updated headers I neglected to commit yesterday.
13319 * src/SDCClrange.h,
13322 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13324 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13325 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13326 * src/SDCCopt.c (eBBlockFromiCode),
13327 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13328 the creation of the key hash table from the sequencing so it can be used
13329 earlier (for some GCSE bug fixes still pending)
13331 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13333 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13334 * support/regression/tests/addsub.c: testing genPlus shortcut
13336 2003-11-15 Borut Razem <borut.razem AT siol.net>
13338 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13340 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13342 * src/SDCCcse.c (cseBBlock): fixed bug #527779
13343 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13344 ordering is immaterial.
13345 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13347 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13349 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13350 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13351 (SIGSEV) of bug #840381
13352 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13353 unlink new file before rename if new and old filenames are the same)
13355 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13357 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13358 uninitialized variables) for the mcs51. Set environment variable
13359 SDCC_GENRAMCLEAR to test.
13360 xdata initialization slightly shorter
13362 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13365 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13366 #838241 & 780691 (basicly the same bug)
13367 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13368 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13370 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13372 * src/SDCCmain.c (linkEdit): "fix" #834252
13374 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13376 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13378 * src/SDCC.y: fixed bug #819403
13380 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13382 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13383 the reentrant attribute.
13384 * src/hc08/gen.c (genPackBits): added missing stack readjustment
13385 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13387 * src/SDCCast.c (decorateType): fixed bug with storage class not being
13388 updated during pointer dereference; f.e. ~(((char *)1)*) was being
13389 erroneously reduced to a literal.
13390 * src/hc08/ralloc.c (packRegisters, rematStr),
13391 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13394 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13396 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13397 * doc/sdccman.lyx: changed from 'article' to 'book'
13398 * doc/Makefile: readded test_suite_spec and cdbfileformat
13400 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13402 * device/include/stdlib.h: include malloc.h to comply with ANSI
13403 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13405 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13407 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13408 * doc/clean.mk: also remove *.out files
13409 * doc/sdccman.lyx: some additions, larger top/bottom margins
13411 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13413 * src/SDCC.y: fixed bug #837365
13414 * support/regression/tests/bitopcse.c
13415 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13416 a symbol (might be valop instead)
13417 * device/lib/Makefile.in: added errno.c to HC08SOURCES
13418 * device/lib/clean.mk: added hc08 to the cleaning list
13420 2003-11-04 Borut Razem <borut.razem AT siol.net>
13422 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13424 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13425 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13426 malloc is declared in standard stdlib.h
13428 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13430 * device/lib/hc08/Makefile: need to clean .rel not .o files
13431 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13433 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13437 * src/mcs51/main.c,
13438 * src/ds390/main.c,
13442 * src/pic16/main.c,
13443 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13444 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13445 tests (which uses the port's oclsExpense function)
13451 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13453 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13455 * src/SDCCcse.c (ifxOptimize),
13456 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13457 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13458 deleting the IFX iCode.
13459 * src/hc08/ralloc.c: reduced unneeded slocs
13460 * src/hc08/gen.c: fixed bug in asmopToBoolean
13462 2003-11-04 Borut Razem <borut.razem AT siol.net>
13464 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13465 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13466 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13467 transferred to configure
13469 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13471 Use headers defined in the C[++] standards:
13472 * sim/ucsim/gui.src/serio.src/fileio.cc
13473 * sim/ucsim/gui.src/serio.src/frontend.cc
13474 * sim/ucsim/gui.src/serio.src/main.cc
13475 * sim/ucsim/gui.src/serio.src/posix_signal.cc
13476 * support/Util/NewAlloc.c
13478 * as/mcs51/lklibr.c
13482 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13484 * Added MSVC projects for hc08 assembler and linker:
13485 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13486 /as/hc08/link_hc08.dsp
13488 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
13490 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
13492 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
13494 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
13496 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13498 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
13500 2003-10-31 Borut Razem <borut.razem AT siol.net>
13502 * support/cpp2/cpplib.h,
13503 support/cpp2/cpplib.c,
13504 support/cpp2/cpplex.c,
13505 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
13506 to switch _asm block preprocessing on / off. Default is
13507 #pragma preproc_asm +
13509 2003-10-31 Borut Razem <borut.razem AT siol.net>
13511 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
13512 when outputting comment blocks (when executed with -C option) and
13513 _asm (SDCPP specific) blocks
13515 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13517 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
13519 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
13521 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
13523 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13525 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13526 * src/SDCCast.c (decorateType): fixed bug #832664
13528 2003-10-31 Borut Razem <borut.razem AT siol.net>
13530 * support/cpp2/cpplex.c: fixed for SDCPP:
13531 comments(when executed with -C option) and _asm blocks
13532 were included even if they where in skipped #if block.
13533 Applied solution from GCC cpp 3.3.2
13535 2003-10-31 Borut Razem <borut.razem AT siol.net>
13537 * src/SDCC.lex: sdcc now understands both formats:
13538 '# <line_number> <file_name>' and
13539 '#line <line_number> <file_name>'
13540 * support/cpp2/cppmain.c: sdcpp now generates the standard
13541 '# <line_number> <file_name>' instead of former
13542 '#line <line_number> <file_name>'
13544 2003-10-30 Borut Razem <borut.razem AT siol.net>
13546 * support/cpp2/cpphash.h,
13547 * support/cpp2/cpplib.h
13548 * support/cpp2/cpplex.c,
13549 * support/cpp2/cppmain.c,
13550 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13552 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13554 Fixed a number of problems revealed by bug #827883.
13555 * src/SDCCloop.c (loopInvariants): Spill location of the
13556 result operand should be recomputed if extracted from
13557 a loop. Also, don't extract assignments of an iTemp
13559 * src/SDCCast.c (isConformingBody): loop reversal should
13560 not occur if the control variable is involved with a
13561 relational operator.
13563 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13565 * .version: bumped to 2.3.6 to reflect the big improvements
13566 made by Erik and Klaus. Thanks!
13568 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13570 Replaced the livrange code.
13571 * src/SDCClrange.c: added new LR code
13573 * src/SDCCBBlock.h: removed remainig parts from old LR code
13574 * src/ds390/ralloc.c,
13575 * src/ds390/gen.c: minor fixes to make it work with new code
13577 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13580 * as/hc08/lkrloc.c,
13582 * src/hc08/ralloc.c: Fix various warnings related to the hc08
13583 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13584 (tweaked fix for bug #818696)
13586 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13588 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13590 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13593 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13594 * src/mcs51/gen.c (gencjneshort),
13595 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13596 more efficient (per Scott Bronson's suggestion)
13598 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13600 Extended the semantics of the critical keyword to include
13601 individual statements. See RFE #827755 and #799831
13606 * support/Util/SDCCerr.c
13607 * support/Util/SDCCerr.h
13612 2003-10-19 Borut Razem <borut.razem AT siol.net>
13614 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13616 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13618 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13620 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13621 and predecrement operand is displayed
13623 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13625 * src/SDCCval.c (valMinus): fixed bug #826041
13627 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13629 Some hc08 related updates that I missed earlier
13630 * sim/ucsim/stypes.h
13631 * support/regression/ports/hc08/spec.mk
13633 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13635 New target "hc08" for the Motorola 68hc08 family of micros
13643 * sim/ucsim/hc08.src/*
13644 * sim/ucsim/configure.in
13645 * src/ucsim/configure
13646 * sim/ucsim/packages_in.mk
13649 * device/include/mc68hc908qy.h
13650 * device/lib/hc08/*
13651 * device/lib/Makefile.in
13652 * support/regression/ports/hc08/*
13653 * support/regression/Makefile
13655 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13657 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13659 * src/ds390/gen.c (genCast): fixed bug #821957
13661 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13663 * device/lib/logf.c: "fixed" overlay bug
13664 * support/regression/ports/host/spec.mk: added m library
13665 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13666 * support/regression/tests/float_trans: added (for Eric)
13668 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13670 * src/mcs51/gen.c (genCpl): fixed bug
13671 http://sf.net/mailarchive/message.php?msg_id=6263915
13673 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13675 * src/SDCCast.c (decorateType): added extended constant folding
13676 * src/SDCCsymt.c (computeType): cleanup
13677 * src/SDCCval.c (valShift): minor optimization
13678 * support/regression/tests/ast_constant_folding.c: added
13680 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13682 * src/SDCCmain.c: removed some unintended changes
13684 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13686 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13687 * src/z80/gen.c: fixed part of bug #817589
13688 * src/SDCCsymt.c (checkFunction): fixed bug #817895
13690 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13692 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13703 * src/ds390/ralloc.c
13705 * src/mcs51/ralloc.c
13707 * src/pic16/ralloc.c
13708 * src/xa51/ralloc.c
13710 * src/z80/gen.c: removed unused label "release:"
13712 2003-10-06 Borut Razem <borut.razem AT siol.net>
13714 * src/SDCC.lex: removed definition of unused variables
13715 save_optimize and save_options
13717 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13719 * clean.mk: removed '=' in "-maxdepth=1"
13720 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13721 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13723 2003-10-06 Borut Razem <borut.razem AT siol.net>
13725 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13726 my_unput() replaced by unput()
13728 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13730 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13731 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13732 type-punned pointer will break strict-aliasing rules"
13733 Old LR behaviour is again default; Klaus' LR can be choosen by
13734 defining the environment variable LRKLAUS
13738 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13739 * clean.mk: fixed removal of files in bin/CVS/
13740 * device/lib/clean.mk: fixed removal of directories small and large
13741 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13743 * src/SDCCval.c: removed superflous test for pedantic
13745 2003-10-05 Borut Razem <borut.razem AT siol.net>
13747 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13748 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13749 message "unmatched #pragma SAVE and #pragma RESTORE"
13751 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13753 * doc/sdccman.lyx: various additions and updates (interrupts, inline
13754 assembly, critical functions, atomic, nojtbound)
13756 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13758 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13764 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13767 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13769 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13771 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13772 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13773 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13775 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13777 * src/z80/gen.c (genRet): fixed bug #524753
13778 * src/z80/gen.c (genCast): fixed internal error on cast from
13780 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13781 fix for bug #477835 to the z80
13782 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13783 for tracking iCodes in the peephole optimizer for z80
13785 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13787 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13788 the other part of bug #814548
13789 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13791 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
13793 * src/SDCCcse.c: fixed part of bug #814548
13795 2003-09-28 Borut Razem <borut.razem AT siol.net>
13797 * src/asm.c: rewrite of printILine() to use temporary file instead
13799 * src/xa51/main.c: commented out declaration of int rewinds
13801 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13803 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13805 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13807 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13808 * src/asm.c (printILine): Fixed bug #811015
13810 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13812 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13815 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13817 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13818 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13819 to correctly handle general case of AOP_PAIRPTR
13820 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13822 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13824 * src/mcs51/ralloc.c (fillGaps),
13825 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13826 register positioning bug)
13828 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
13830 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13832 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13834 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13835 genCodePointerGet, genGenPointerGet, genFarPointerSet,
13836 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13837 (ralloc doesn't intentionally do this now, but perhaps later)
13838 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13839 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13840 register positioning bugs (Fixed bug #762602 and #795325)
13841 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13842 (Fixed bug #808779)
13843 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13844 lines that --i-code-in-asm generates
13846 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13848 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13849 trying to fclose a FILE* that was already closed.
13851 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13853 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13854 of const struct should be treated as if const themselves)
13856 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
13858 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13860 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13862 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13863 Unix (/n) and DOS (/r/n) line terminations.
13865 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13867 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13870 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13872 * src/mcs51/gen.c (genFunction, genEndFunction),
13873 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13874 and restore of EA so that stack offsets to parameters are
13875 correct when using both critical and reentrant/stack-auto.
13876 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13877 size (can be triggered in error if sloc is shared between
13878 different sized objects)
13879 * device/include/float.h: fixed macros to explicitly use
13880 unsigned long where needed
13882 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
13884 Feature req. 799831: added code to allow nesting of critical functions
13885 * src/mcs51/gen.c (genFunction, genEndFunction)
13886 * src/ds390/gen.c (genFunction, genEndFunction)
13888 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13890 * src/SDCCsymt.c (sclsFromPtr),
13892 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13893 support for standard C idiom of memory mapped variables; for
13894 example, *((xdata int*)0x1234) = 1 is now internally equivalent
13895 to xdata int at 0x1234 tempvar = 1.
13896 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13897 provided by Akiya ISHIDA
13899 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
13901 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13902 * src/SDCCval.c (constVal): added reduction from int to char
13903 * src/SDCCval.c (valMult, valDiv): fixed sign handling
13904 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13905 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13907 * support/regression/tests/shifts.c: fixed
13909 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13911 * src/z80/gen.c (genXor): Fixed bug #805445
13913 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13915 Fixed bug #621531 (const & volatile confusion in the type chain).
13916 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13917 refer to the const or volatile state of the pointer itself.
13929 * src/pic16/ralloc.c
13930 * support/regression/tests/const.c
13932 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13934 When checking for duplicated modules, use absolute paths
13935 instead of relative paths. Files changed:
13940 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13942 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13944 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13946 * device/include/string.h: added size_t typedef, changed
13947 prototypes to use size_t, eliminated separate reentrant and
13948 non-reentrant declarations, added _memmove declaration
13949 * device/lib/_memcpy.c: changed to use size_t instead of int,
13950 changed /4 to >>2 to avoid division library call
13951 * device/lib/_memcmp.c,
13952 * device/lib/_memset.c,
13953 * device/lib/_strncat.c,
13954 * device/lib/_strncpy.c,
13955 * device/lib/_strncmp.c: changed to use size_t instead of int
13956 * device/lib/_memmove.c: new file (fixed bug #772294)
13957 * device/lib/Makefile.in: added _memmove.c
13958 * device/lib/z80/asm_strings.s: fixed bug #772290
13959 * support/regression/tests/bitfields.c: attempt to fix host assertion
13960 failure on amd64-unknown-linux2.2
13962 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13964 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13965 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13966 * as/z80/asmain.c (main): fixed bug #801766
13968 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
13970 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13973 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13975 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13976 reported in bug #800609
13978 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
13980 * Top header beautifications in src/pic16 directory:
13981 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13982 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13983 pcoderegs.h, ralloc.c, ralloc.h
13984 * main.c: added top header and GPL license notice
13985 * pcode.c: fixed the if-conditional warning
13987 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
13989 * device/lib/_mullong.c: replaced int by short for gcc
13991 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13993 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13994 and JUMPTABLE iCodes properly now (worked by accident before)
13995 * src/mcs51/gen.c (leftRightUseAcc),
13996 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13997 iCode properly now. Use getSize instead of nRegs since a & b
13998 aren't part of the nRegs tally.
14000 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
14002 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
14003 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
14004 before instructions that use the _STATUS register
14006 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
14008 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
14009 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
14010 fetching of the pointer
14011 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
14012 copied from genNearPointerSet()
14013 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
14014 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
14015 If they pop r0/r1 they must be called in the opposite order than aopOp().
14016 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
14017 (resp. --stack-auto), prepared for --xstack
14019 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14021 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
14023 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
14025 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
14026 these ports have their own __sdcc_external_start()
14028 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
14030 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14031 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
14032 type for bits was changed. It resulted in bit variables becoming
14033 global, which is not permitted in PIC 14 assembly output.
14035 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14037 * doc/sdccman.lyx: various additions and updates. Rearranged sections
14039 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14041 Z80 and MCS51 linkers complaint if a public symbol is defined
14042 in more than one library module:
14046 * as/mcs51/Makefile.in
14048 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14050 A few small changes that speed up the peephole optimizer.
14054 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14056 Try to make the peephole optimizer smarter by maintaining
14057 an association between the assembly source code and the
14058 iCodes that originated them. Put this information to use
14059 with a new peephole rule condition "notVolatile" so that
14060 the rules can be aggressive yet still safe.
14065 * src/mcs51/peeph.def
14067 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14071 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
14072 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
14073 if the left or right operand symbols have the accuse flag set.
14075 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14077 Changed the type of the result of the ! (NOT) operator to char;
14078 previously it returned the same type as the source. This allows
14079 us to eliminate all the genFloatNot functions (all of its target
14080 implementations were very buggy) since !float can use the same
14083 * src/SDCCicode.c (ast2iCode): ! returns char
14084 * src/mcs51/gen.c (genNot, genNotFloat),
14085 * src/ds390/gen.c (genNot, genNotFloat),
14086 * src/z80/gen.c (genNot, genNotFloat),
14087 * src/pic/gen.c (genNot, genNotFloat),
14088 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14090 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
14092 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14093 1. Interrupt would not compile properly. Ensure PCLATH register is saved
14094 during interrupts. Ensure WSAVE is located at a shared bank address.
14095 2. Fixed page selection in some places
14096 3. Fixed BTFSS/C to where necessary use registers directly and not simply
14097 the registers name strings.
14098 4. Fixed "signed / unsigned compare" compiler warnings.
14099 5. The PIC port manages its own allocation of the general purpose
14100 registers, but makes no attempt to reuse them. As a result when
14101 compiling it soon runs out of general purpose registers. Some
14102 additional code was added to the files pcode.c and device.c to walk
14103 through the function call tree and rename the registers so that they
14113 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14114 genPlus() & genMinus() when the result is the same as left or right
14116 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14118 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14120 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14122 Made bitfield a distinct type from bit so that bitfields
14123 convert as per ANSI C and bits retain their traditional
14124 boolean style behaviour. Implemented bitfield support in
14132 * src/ds390/gen.c: bit v bitfield split
14133 * src/z80/gen.c: New support for bitfields
14134 * support/regression/tests/bitfields.c: reenabled z80,
14137 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14139 Rules 246.x, 247.x relate to bitfields, the others speed up
14140 access to xdata mapped I/O devices.
14142 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14144 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14146 Cleaned up genPackBits and genUnpackBits and added two helper
14147 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14148 for literal assignments in genPackBits (thanks to Frieder for
14154 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14156 Fixed bug #748310 (pointer to function type mishandled when the
14157 function name is omitted). Also fixed a SIGSEGV when a function
14158 attribute (reentrant, etc) is used on a non-function or on a
14159 function but misplaced before the parameter list.
14161 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14163 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14164 * support/Util/SDCCerr.h,
14165 * support/Util/SDCCerr.c: Added func attr misuse error msg
14167 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
14169 Fixed bug #787649 by anonymous
14170 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14171 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14173 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14175 Fixed numerous bitfield problems.
14177 * src/SDCC.y: More bitfield related error checking
14179 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14180 * support/Util/SDCCerr.h,
14181 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14182 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14183 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14184 * support/regression/tests/bitfields.c: tests added
14186 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14188 Made the constant following the "interrupt" keyword optional. If
14189 omitted, the function will not automatically be given an entry
14190 in the interrupt vector table (similar to #pragma NOIV, but
14191 less syntacticly kludgy). The interrupt number is also now
14192 range checked. Also fixed a bug in the high order bit example
14199 * support/Util/SDCCerr.c
14200 * support/Util/SDCCerr.h
14203 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
14205 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14206 * src/SDCCicode.c (operandOperation): rewritten some ops
14207 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14208 * src/SDCCsymt.c (computeType): literals are handled the same way as any
14210 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14211 be re-activated by defining REDUCE_LITERALS)
14212 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14213 unsigned, but are signed by default
14214 * src/SDCCval.c (constVal): rearranged
14215 * src/SDCCval.c (valMod): preliminary fix
14216 * src/SDCCval.c (valCastLiteral): use TYPE_* types
14217 * support/regression/literalop.c: added, work in progress
14219 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14221 Generate warnings for useless declarations like "char data;"
14222 that don't do what new users expect.
14225 * support/Util/SDCCerr.h
14226 * support/Util/SDCCerr.c
14228 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
14230 * src/SDCCval.c (valMult): fix overflow detection of negative int
14232 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14234 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14236 Changes to support big endian targets:
14249 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
14251 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14252 * device/lib/time.c: fixed warning "integer overflow in expression"
14254 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
14256 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14257 * src/SDCCval.c (constVal): changed default to signed; hex and octal
14258 constants are unsigned; added recognition of "u" flag for unsigned
14259 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14260 * src/SDCCval.c (valDiv, valMod): fixed signdness
14261 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14262 signedness of modulo, left and right shift
14263 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14264 * support/Util/SDCCerr.h: added warning W_INT_OVL
14265 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14266 * src/SDCCast.c (ast_print): improved output of constants
14268 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14270 Fixed some warnings when building with MSVC:
14272 * as/mcs51/asdata.c
14276 * link/z80/aslink.h
14277 * link/z80/lkdata.c
14278 * link/z80/lkeval.c
14283 * support/cpp2/cpplib.c
14287 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
14289 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14291 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14293 * support/librarian/clean.mk: Do not remove Makefile.
14294 * support/librarian/Makefile: added.
14296 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14298 Added librarian to MSVC build:
14301 * support/librarian/librarian.dsp
14303 'configure' not needed for librarian, removed:
14304 * support/librarian/configure
14305 * support/librarian/configure.in
14306 * support/librarian/config_in.h
14307 * support/librarian/Makefile.in
14309 Hopefully these ones built the librarian and the rest of sdcc properly:
14311 * Makefile.common.in
14313 Messed up 'configure', so revert to previous version:
14317 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
14319 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14320 there, while the mantissa of a double is "only" 53 bits wide.
14322 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14324 Adding sdcclib to the build. MSVC project coming soon.
14325 Files added/changed:
14327 * support/librarian/clean.mk
14328 * support/librarian/configure
14329 * support/librarian/configure.in
14330 * support/librarian/config_in.h
14331 * support/librarian/Makefile.bcc
14332 * support/librarian/Makefile.in
14333 * support/librarian/sdcclib.c
14336 * Makefile.common.in
14340 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14342 Linker now complaints if linked modules have conflicting options, for
14343 example, one compiled using --model-large and another one compiled with
14344 --model-small. The following files were modified:
14346 * as/mcs51/asdata.c
14347 * as/mcs51/aslink.h
14349 * as/mcs51/asmain.c
14351 * as/mcs51/i51pst.c
14352 * as/mcs51/lkdata.c
14353 * as/mcs51/lklibr.c
14354 * as/mcs51/lkmain.c
14360 * link/z80/aslink.h
14361 * link/z80/lkdata.c
14362 * link/z80/lklibr.c
14363 * link/z80/lkmain.c
14366 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14368 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14369 as/mcs51/lklibr.c: Generate a warning when a library is not found.
14371 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
14373 * src/z80/mappings.i: fix _mul[us][int,long] entries
14375 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14377 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14379 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
14381 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14382 * support/regression/tests/bitopcse.c: added
14390 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14392 added support for new library format to z80, gbz80 linkers:
14398 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
14400 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14401 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14403 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
14405 added DUMMY_READ_VOLATILE:
14414 * src/SDCCcse.c (algebraicOpts): many improvements
14415 * src/SDCCcse.h: removed algebraicOpts()
14416 * src/SDCCicode.c (picDummyRead): added
14418 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14420 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14421 "Insufficient space in data memory".
14423 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14425 * src/mcs51/gen.c: fixed bug #771358
14426 * src/z80/gen.c: fixed bug #759087
14428 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
14430 * src/pic16/glue.c: minor cleanup by Vangelis
14432 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14434 * device/include/regc515c.h: fixed #758477
14435 * device/lib/_gptrget.c: saving some cycles in generic pointer get
14436 * device/lib/_gptrput.c: saved a few bytes
14437 * my tab spacing is 8, yours too?)
14438 * device/lib/_ser.c: process RX bytes earlier than TX bytes
14439 * device/lib/serial.c: process RX bytes earlier than TX bytes
14440 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14442 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14444 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14446 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14448 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14450 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
14452 * device/lib/Makefile.in: bad fix, reverted to 1.43
14454 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
14456 * device/lib/Makefile.in: added missing z80 object files
14458 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
14460 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14461 pic16 progress by Vangelis:
14464 * src/pic/Makefile:
14471 * pic16/genarith.c:
14476 * pic16/pcodepeep.c:
14479 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14481 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
14483 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14485 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14486 added gbz80 build to MSVC project.
14487 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
14488 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
14489 from 8051 stuff and setup so it links using a .lnk file.
14491 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14493 * support/librarian/sdcclib.c: sdcc librarian.
14494 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
14497 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14499 * as/mcs51/lkmain.c: properly handle extensions in function afile.
14501 2003-07-02 Borut Razem <borut.razem AT siol.net>
14503 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
14504 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
14505 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
14506 src/xa51/main.c, src/z80/main.c:
14507 virtualization of glue() function: each port has it's own glue function,
14508 which is accessed by do_glue function pointer in PORT.general structure
14510 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
14512 * DS800C400 fun, improved ROM interface and tinibios.
14514 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
14516 * More support for DS80C400. Now includes beginning of interface to ROM.
14518 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
14520 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
14522 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14524 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14526 2003-06-19 Borut Razem <borut.razem AT siol.net>
14528 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14530 2003-06-19 Borut Razem <borut.razem AT siol.net>
14532 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14533 fixed Z80 port - crt0.o: cannot open.
14535 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
14537 * support/Util/MySystem.c (merge_command): revert bad fix
14539 2003-06-18 Borut Razem <borut.razem AT siol.net>
14541 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14543 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14545 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14546 option --use-stdout sends errors to stdout instead of stderr.
14548 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
14550 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14552 2003-06-15 Borut Razem <borut.razem AT siol.net>
14554 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14555 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14556 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14557 fixed width array of pointers replaced with sets;
14558 multiple include and lib paths ared transferred to preprocessor and linker
14559 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14560 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14561 fixed width array of pointers
14562 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14563 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14564 fixupPath(), getPathDifference()
14565 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
14566 fixed width array of pointers
14568 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
14570 * src/pic16/ralloc.c: fix warnings
14571 * src/pic16/pcode.c: fix warning
14573 2003-06-10 Scott Dattalo <scott AT dattalo.com>
14575 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14576 know all the details, but essentially this set of changes enable
14577 the pic16 port to generate movff instructions and generate assembler
14581 * src/pic16/glue.c:
14582 * src/pic16/pcode.c:
14583 * src/pic16/device.c:
14584 * src/pic16/main.c:
14585 * src/pic16/pcode.h:
14586 * src/pic16/pcoderegs.c:
14587 * src/pic16/ralloc.c:
14588 * src/pic16/ralloc.h:
14590 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14592 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14593 added option --vc, so sdcc errors and warnings are compatible with
14594 Microsoft Visual Studio.
14596 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14598 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14599 device/lib/libfloat.lib: added atof function.
14601 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
14603 * doc/sdccman.lyx: updated to Lyx 1.3
14604 * doc/cdbfileformat.lyx: updated to Lyx 1.3
14605 * doc/test_suite_spec.lyx: updated to Lyx 1.3
14606 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14608 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
14610 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14612 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14614 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14615 additions to the "related tools/documentation" section
14617 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
14619 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14621 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
14623 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14624 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14626 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
14628 * doc/sdccman.lyx: fix double dash and other minor things
14629 * doc/Makefile: fix double dash
14631 2003-05-28 Karl Bongers(patches from Martin Helmling)
14632 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14633 condition and ignore commands.
14635 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14637 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14638 is in parts still quite out of date, I did changes as far as I felt makes sense
14639 for a non-native english speaker.
14640 Please feel free to add to the manual or to correct my changes.
14641 * doc/Makefile: undid touching the date of intermediate tex files.
14643 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14645 * doc/sdccman.lyx: Manual has an index now
14647 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
14649 Finalize muluint/mulsint and mululong/mulslong merging:
14650 * device/lib/_mulint.c
14651 * device/lib/_mullong.c
14652 * device/lib/gbz80/mul.s
14653 * device/lib/gbz80/stubs.s
14654 * device/lib/z80/mul.s
14655 * device/lib/z80/stubs.s
14656 * src/SDCCsymt.c (initCSupport)
14658 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14660 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14661 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14662 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14663 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14666 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14668 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14669 the regression tests I'm not brave enough to enable 245.b, 245.c
14670 * doc/sdccman.lyx: added latex preamble for hyperref package.
14671 Using pdflatex this will give you a hyperlinked pdf file with
14672 bookmarks. (prepend '%' before /usepackage if this breaks something)
14674 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14676 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14678 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
14680 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14682 2003-05-21 <johan AT balder>
14684 * src/SDCCglue.c (printIval): fixed bug #739934
14686 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
14688 Applied patch from bug 737905 (renamed yylineo to mylineno):
14695 * src/pic16/pcode.c: Cleaned warnings
14696 * src/pic16/pcodeflow.c: Cleaned warnings
14697 * src/pic16/pcoderegs.c: Cleaned warnings
14699 2003-05-19 Scott Dattalo <scott AT dattalo.com>
14701 * src/pic16/pcode.c: Cleaned warnings
14702 * src/pic16/pcodepeep.c: Cleaned warnings
14703 * src/pic16/ralloc.c: Cleaned warnings
14705 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
14707 * doc/sdccman.lyx: fixed bug 739745
14708 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14710 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
14712 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14713 it can be defined with CFLAGS when running configure
14714 * src/SDCCmain.c: fixed compiling + linking with object files
14716 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
14718 * configure.in: configure for pic16 port,
14719 added --disable-pic16-port
14720 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14721 * src/SDCCmain.c: linkOptions is changed to set *,
14722 added if/endif conditional macros to remove options help
14723 messages from optionsTable when a port is not configured, added
14724 support for the PIc16 port in the ports table, when executing
14725 the compiler with no port specified on command line, a default
14726 port is selected with the new macro DEFAULT_PORT which is
14727 defined in port.h, in setDefaultOptions() linkOptions is removed
14728 from initialization assignment, since now it is a set,
14729 parseCmdLine uses setParseWithComma for linkOptions, in
14730 linkEdit() linkOptions are accessed with new function indexSet()
14731 which returns the i'th item of a set variable. See SDCCset.c, in
14732 linkEdit() when calling buildCmdLine(), added linkOptions as
14733 last argument. Now users can pass arguments to gplink via the
14734 -Wl option, main() uses pic16glue() to glue up pic16 programs
14735 * src/SDCCpeeph.c: various changes to support pic16
14736 * src/SDCCset.c: added function void *indexSet(set *, int) to
14737 return the i'th item of the set
14738 * src/SDCCset.h: added function prototype for indexSet()
14739 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14740 * src/clean.mk: added pic16 in CLEANALLPORTS variable
14741 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14742 added macro DEFAULT_PORT
14743 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14744 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14746 * src/pic16/glue.c: commented out some error producing lines
14747 * src/pic16/main.c: __config directives are commented out to stop
14748 gpasm complaining and test the linkage with gplink, _linkCmd and
14749 _asmCmd changed to be more gplink and gpasm friendly
14750 * src/pic16/peeph.def: peep rule 3 is commented out, since it
14751 produced an error when parsed, peep rule 12 is added to utilize
14752 movff, but it is commented out since the pCode does not support
14753 yet a command with 2 address arguments
14755 2003-05-18 <johan AT balder>
14757 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14758 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14759 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
14761 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14762 Added feature to script commands from file.
14764 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
14766 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14767 * src/SDCCutil.c: include ctype.h for win32
14769 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
14771 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14773 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
14775 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14776 Fixed so you can set breakpoints prior to run, run does not stop
14777 on entry now. Add tbreak. Other enhancements and fixes for use
14780 2003-05-12 Borut Razem <borut.razem AT siol.net>
14782 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14784 2003-05-11 Borut Razem <borut.razem AT siol.net>
14786 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14787 the path of bin directory, so that PATH is the only env. variable, which has to be set
14788 in case of standard installation.
14789 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14790 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14791 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14793 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
14795 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14796 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14797 temp files are in the port dir; clean the gen/test directory when
14798 generating new test.c
14799 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14800 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14801 * support/regression/tests/zeropad.c: added
14803 2003-05-09 <johan AT balder>
14805 * src/SDCCglue.c: fixed bug #597940
14807 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
14809 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14810 cache sfr, optimize next,step, fix off by one sourceline,
14811 support ddd list function.
14812 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14814 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
14816 * support/regression/HTMLgen.py: added compare_s2f()
14817 * support/regression/Makefile: redo 1.27
14818 * support/regression/generate-cases.py: redo 1.5
14820 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
14822 * support/regression/tests/float.c: workaround 33 bit hex constant
14823 * support/regression/tests/simplefloat.c: fix division for host
14825 2003-04-29 Scott Dattalo <scott AT dattalo.com>
14827 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14828 that tame's the PIC's over-aggressive optimizer.
14830 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14832 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14835 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
14837 Initial support for DS80C400. "Hello world" runs on TINIm400
14840 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
14842 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14843 * Some notes on ddd usage added in debugger/README
14844 Martin Helmling adding more features and fixes for ddd GUI debugger.
14845 Code added for nexti, stepi, up, down, and other adjustments.
14847 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
14849 * src/pic/pCodepeep.c non-wildcard asmops are now handled
14850 * src/pic/peeph.def Added two rules to optimize carry manipulation
14851 * src/pic/* removed debug printfs
14853 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
14855 * debugger/mcs51/cmd.c: added header newalloc.h
14857 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
14859 * as/Makefile: new EXEEXT
14860 * as/z80/Makefile: remove trailing slash of BUILDIR
14861 * as/z80/clean.mk: new EXEEXT
14862 * Makefile.common.in: add to CFLAGS (and others), don't replace it
14863 * support/cpp2/Makefile.in: new EXEEXT
14864 * src/pic/glue.c (pic14emitRegularMap): fixed warning
14866 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
14868 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14869 EXEEXT was introduced to fix all related problems with targets
14870 "clean", "install" and "uninstall"; a couple of further flaws
14871 especially with "clean" have been fixed too
14872 * as/mcs51/Makefile.in
14873 * as/mcs51/clean.mk
14877 * debugger/mcs51/Makefile.in
14878 * debugger/mcs51/clean.mk
14879 * link/z80/Makefile
14880 * link/z80/Makefile.in
14881 * link/z80/clean.mk
14883 * packihx/Makefile.in
14885 * sim/ucsim/Makefile
14886 * sim/ucsim/clean.mk
14887 * sim/ucsim/avr.src/Makefile.in
14888 * sim/ucsim/avr.src/clean.mk
14889 * sim/ucsim/s51.src/Makefile.in
14890 * sim/ucsim/s51.src/clean.mk
14891 * sim/ucsim/xa.src/Makefile.in
14892 * sim/ucsim/xa.src/clean.mk
14893 * sim/ucsim/z80.src/Makefile.in
14894 * sim/ucsim/z80.src/clean.mk
14895 * sim/ucsim/main_in.mk
14896 * sim/ucsim/packages_in.mk
14897 * sim/ucsim/gui.src/Makefile.in
14898 * sim/ucsim/gui.src/serio.src/Makefile.in
14899 * sim/ucsim/gui.src/serio.src/clean.mk
14902 * support/cpp2/Makefile.in
14903 * support/cpp2/clean.mk
14904 * support/makebin/Makefile
14905 * support/makebin/clean.mk
14906 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14907 * doc/sdccman.lyx: --program-suffix no longer needed
14909 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
14911 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14912 Martin Helmling added support for ddd GUI debugger.
14913 Code added to display assembly, set variables, and other commands
14914 to interface to ddd.
14916 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
14918 * as/Makefile: fix target clean
14919 * as/clean.mk: fix target clean
14920 * as/z80/clean.mk: fix target clean
14922 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
14924 * Makefile.common.in: added AT EXEEXT AT
14925 * configure.in: removed all mingw32 stuff
14926 * configure: rebuilt from configure.in
14927 * doc/sdccman.lyx: updated section "installation"
14928 * support/scripts/sdcc_mingw32: adapted to configure
14929 * support/scripts/sdcc_cygwin_mingw32: added
14931 2003-04-22 Scott Dattalo <scott AT dattalo.com>
14933 * src/pic Added object file support for the PIC port
14934 * src/pic Applied patch from Craig Franklin (this started the object file support)
14935 * src/regression Updated the PIC regression tests for object files
14937 2003-04-20 Borut Razem <borut.razem AT siol.net>
14939 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14940 lklex.c: In function `getfid':
14941 lklex.c:203: warning: array subscript has type `char'
14942 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14943 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14944 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14945 stack handling macros
14947 2003-04-19 Borut Razem <borut.razem AT siol.net>
14949 * "handling space characters in file path" task:
14950 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14951 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14952 * support/Util/MySystem.h: make it self-sufficient
14953 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14954 src/z80/main.c, sdcc/as/mcs51/lklex.c:
14955 handling space characters in file path
14956 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14957 (it will be used by assemblers, which have their own includes, e.g. gpasm)
14958 * support/Util/MySystem.c: handling space characters in executable's path
14960 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
14962 * as/z80/Makefile: fix permanent rebuild of z80
14963 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14964 * support/regression/tests/bitfields.c: added Johan's bitfields.c
14966 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
14968 * src/SDCCopt.c: add special case optimization to replace modulo by
14969 a power of two with a bitwise AND.
14971 2003-04-18 <johan AT balder>
14973 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14975 2003-04-17 <johan AT balder>
14977 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14978 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14980 2003-04-13 Borut Razem <borut.razem AT siol.net>
14982 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14983 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14984 fixed mingw problem in adl_NORMALIZE_PATH
14986 2003-04-12 Borut Razem <borut.razem AT siol.net>
14988 * fixed "#pragma SAVE/RESTORE can not be nested":
14989 * src/SDCC.lex: reworked pragma handling functions
14990 * sdcc/src/SDCCglobl.h: reworked stack handling macros
14991 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14993 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
14995 * src/SDCCutil.c (pathEquivalent): defined but not used
14996 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14997 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14998 * configure: rebuilt from configure.in
14999 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15000 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
15001 * device/include/Makefile.in: replace sdcc_datadir
15002 * device/lib/Makefile.in: replace sdcc_datadir
15003 * Makefile.common.in: add LDFLAGS from configure
15004 * packihx/Makefile.in: use LDFLAGS
15005 * src/Makefile.in: use LDFLAGS
15006 * support/cpp2/Makefile.in: add LDFLAGS from configure
15007 * support/makebin/Makefile: use LDFLAGS
15008 * .version: bumped version number to 2.3.5
15010 2003-04-12 Borut Razem <borut.razem AT siol.net>
15012 * completed "different paths" task:
15013 * src/SDCCmacro.c: fixed bug in handling quotes
15014 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
15015 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
15017 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
15019 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
15021 2003-04-11 kevin Vigor <kevin AT vigor.nu>
15023 * ds390/gen.c ds390/peeph.def: fix bug 706781
15025 2003-04-11 Borut Razem <borut.razem AT siol.net>
15027 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
15029 2003-04-10 Scott Dattalo <scott AT dattalo.com>
15031 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
15032 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
15033 set - this bit used to not be set...).
15034 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
15035 bad code in PIC Port
15036 * src/regression/and2.c added to test bug 609268
15037 * src/regression/Makefile added and2.c to regression test
15040 2003-04-08 <johan AT CP255758-A>
15042 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
15043 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
15044 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
15046 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
15048 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
15050 * support/cpp2/Makefile.in: fix bug #487815
15051 * configure: rebuilt from configure.in
15052 * Makefile.common.in: docdir changed, new path suffixes
15053 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15054 * sdcc_vc_in.h: reflect changes from sdccconf.h
15055 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
15056 * src/SDCCutil.h: remove BINDIR hack
15057 * doc/sdccman.lyx: update new path hierarchy
15059 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
15061 * src/SDCCpeeph.c: added okToRemoveSLOC test
15063 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
15065 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
15067 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
15069 * src/SDCCpeeph.c: added labelIsReturnOnly test
15070 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
15072 2003-04-05 <johan AT balder>
15074 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
15075 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
15076 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
15077 * src/SDCCast.c: fixed a warning
15078 * src/SDCCast.h: fixed a warning
15079 * src/SDCCicode.c (operandFromAst): fixed a warning
15081 2003-04-04 <johan AT balder>
15083 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
15084 * src/SDCCast.c (decorateType): fixed bug #715076
15085 * src/SDCC.y: fixed bug #702907
15087 2003-04-03 <johan AT balder>
15089 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15090 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15091 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15092 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15093 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15095 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
15097 * _decdptr.c: fix return values
15098 * _gptrget.c: fix return values
15099 * _gptrgetc.c: fix return values
15100 * _gptrput.c: fix return values
15101 * _mulint.c: fix return values
15102 * as/z80/Makefile: fix 'make -j' problem
15104 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
15106 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15107 * configure.in: big cleanup, updated to autoconf 2.5x
15108 * configure: rebuilt from configure.in
15109 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15110 * sdcc_vc_in.h: reflect changes from sdccconf.h
15111 * doc/Makefile: fixed a flaw in "make install"
15113 2003-04-02 <johan AT balder>
15115 * src/ds390/gen.c (genCmp): no comments
15116 * src/mcs51/gen.c (genCmp): no comments
15117 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15118 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15120 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
15122 * support/regression/generate-cases.py: place generated file in given sub directory
15123 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15124 * support/regression/Makefile: improvements for 'make -j';
15125 side effect: it's simpler and faster now
15127 2003-03-31 Borut Razem <borut.razem AT siol.net>
15129 * src/z80/main.c: link-{port} and as-{port} defined without path
15130 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15132 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
15134 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15136 2003-03-30 Borut Razem <borut.razem AT siol.net>
15138 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15139 changed type of list parameter to set
15140 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15141 * src/port.h: changed type of do_assemble() parameter to set
15142 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15143 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15144 definition of "cppoutfilename" macro with NULL value in preProcess()
15145 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15146 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15147 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15148 replaced with set *binPathSet
15149 * shash_add() deallocates the item, if allready exsists, before adding the new one
15150 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15152 2003-03-30 Scott Dattalo <scott AT dattalo.com>
15154 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15155 a nested for loop bug in the PIC port
15156 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15159 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
15161 * support/Util/dbuf.h: remove C++ stuff to make it portable
15163 2003-03-28 Borut Razem <borut.razem AT siol.net>
15165 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15166 literal strings in stringLiteral()
15167 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15168 * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15171 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
15173 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15175 2003-03-26 <johan AT balder>
15177 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15178 * src/ds390/gen.c (saveRegisters): catched symbol abuse
15179 * src/SDCCast.c (decorateType): fixed " -v < 3"
15181 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
15183 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15184 Added Lenny Story's debug infrastructure changes:
15185 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
15186 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15187 * src/cdbFile.c: added
15188 * src/SDCCdebug.c: added
15189 * src/SDCCdebug.h: added
15190 * src/SDCCast.c (createFunction)
15191 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15192 * src/SDCCmain.c (parseCmdLine, main)
15193 * src/SDCCmem.c (redoStackOffsets)
15194 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15197 * src/avr/gen.c (genAVRCode)
15198 * src/ds390/gen.c (gen390Code)
15199 * src/mcs51/gen.c (gen51Code)
15200 * src/pic/gen.c (genpic14Code)
15201 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15202 * src/xa51/gen.c (genXA51Code)
15203 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15205 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15207 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15208 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15210 2003-03-22 <johan AT balder>
15212 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15214 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
15216 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15217 * doc/cdbfileformat.lyx: added, written by Lenny Story
15218 * doc/Makefile: added cdbfileformat.lyx
15219 * doc/clean.mk: added cdbfileformat.lyx
15221 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
15223 * src/mcs51/peeph.def: fix bug #705773
15225 2003-03-20 <johan AT balder>
15227 An sfr/sbit can have an "at #" AND an initializer
15228 * src/SDCCsymt.c (checkSClass):
15229 * src/SDCCmem.c (allocGlobal):
15230 * src/SDCCmem.c (allocLocal):
15231 * src/SDCCast.c (createBlock):
15233 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
15235 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15237 2003-03-16 <johan AT balder>
15239 Undid the hackup of const and volatile, the problem is much bigger
15241 * src/SDCCast.c:1.171
15242 * src/SDCCglue.c:1.138
15243 * src/SDCCicode.c:1.146
15244 * src/SDCCsymt.c:1.150
15245 * src/SDCCval.c:1.65
15247 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
15249 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15250 * src/ds390/gen.c (genAddrOf): fixed bug #704087
15252 2003-03-13 <johan AT balder>
15254 Hackup const and volatile modifiers in type chains a bit:
15256 * src/SDCCast.c:1.169
15257 * src/SDCCglue.c:1.136
15258 * src/SDCCicode.c:1.143
15259 * src/SDCCsymt.c1.146
15260 * src/SDCCsymt.h1.59
15261 * src/SDCCval.c:1.63
15263 2003-03-12 <johan AT balder>
15265 * src/SDCCBBlock.h: more LRH debugging junk
15266 * src/SDCCcflow.h: more LRH debugging junk
15267 * src/SDCCloop.c: more LRH debugging junk
15268 * src/SDCC.y (struct_declaration): fixed bug #697590
15269 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15270 * src/ds390/gen.c (aopForRemat): fixed bug #700031
15271 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15273 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15274 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15275 test function names must now match exactly).
15276 * src/SDCCcse.c: added special case in findCheaperOp to allow
15277 extending a short integer. Makes less awful code for bug 700121 test case.
15279 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15281 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15282 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15284 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15286 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15287 actually called (operandsNotEqual() was called for all
15288 operandsNotEqualX tests).
15290 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15292 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15293 with shorter literals. Fixes bug 700121.
15295 2003-03-11 <johan AT balder>
15297 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15299 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
15301 * src/SDCCloop.c (mergeRegions): an evil beast is dead
15302 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15304 2003-03-10 Borut Razem <borut.razem AT siol.net>
15306 * src/SDCCmain.c: pipe preprocessor's output
15307 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15308 * sdcc_vc_in.h: define pclose as _pclose for WIN32
15309 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15310 which closes all pipes in pipeSet set
15311 * src/SDCCset.c: free deleted item in function deleteSetItem()
15312 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15313 moved from z80 to src subproject
15314 * .version: increased version number to 2.3.4
15316 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
15318 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15319 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15320 * support/regression/ports/xa51/spec.mk: fix typo
15322 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
15324 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15326 2003-03-09 Borut Razem <borut.razem AT siol.net>
15328 * src/SDCCmain.c: pipe preprocessor's output
15329 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15330 * sdcc_vc_in.h: define pclose as _pclose for WIN32
15331 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15332 which closes all pipes in pipeSet set
15333 * src/SDCCset.c: free deleted item in function deleteSetItem()
15334 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15335 moved from z80 to src subproject
15337 2003-03-09 Borut Razem <borut.razem AT siol.net>
15339 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15340 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15341 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15342 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15343 * src/SDCCglobl.h: unification of WIN32 native definitions
15345 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15347 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15349 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
15351 * src/configure.in: check for endianess (even while cross-compiling)
15352 * src/configure: check for endianess (even while cross-compiling)
15353 * src/configure_in.h: check for endianess (even while cross-compiling)
15354 * src/avr/gen.c: remove old endianess stuff
15355 * src/mcs51/gen.c: remove old endianess stuff
15356 * src/ds390/gen.c: remove old endianess stuff
15357 * src/pic/gen.c: remove old endianess stuff
15358 * src/pic/genarith.c: remove old endianess stuff
15359 * src/pic/glue.c: fix endianess check
15360 * src/pic16/gen.c: remove old endianess stuff
15361 * src/pic16/genarith.c: remove old endianess stuff
15362 * src/pic16/glue.c: fix endianess check
15363 * src/xa51/gen.c: remove old endianess stuff
15364 * src/z80/gen.c: fix endianess check
15365 * src/SDCCglue.c: fix endianess check
15366 * src/ds390/peeph.def: fix bug 700036
15368 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
15370 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15371 * src/configure: find appropriate data-types on host for SDCC's int and long
15372 * src/configure.in: find appropriate data-types on host for SDCC's int and long
15373 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15374 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15376 2003-03-07 <johan AT balder>
15379 some minor cleanups before the big shot
15380 OP_DEFS and OP_USES now use Kevin's protection
15381 new option --nolabelopt
15383 * src/SDCCBBlock.c:
15392 * src/ds390/ralloc.c:
15393 * src/mcs51/ralloc.c:
15394 * src/pic/ralloc.c:
15395 * src/xa51/ralloc.c:
15396 * src/z80/ralloc.c:
15398 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
15400 * src/pic/pcode.c (get_op): fix 64 bit warnings
15401 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15402 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15403 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15404 * support/regression/tests/malloc.c: fix 64 bit warnings
15406 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
15408 * src/mcs51/gen.c (genMinus): fixed bug 696436
15410 2003-03-02 Borut Razem <borut.razem AT siol.net>
15412 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15414 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
15416 * configure.in: test for mkstemp
15417 * sdccconf_in.h: add HAVE_MKSTEMP
15419 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
15421 * device/include/ctype.h: removed warning while using --stack-auto
15422 * device/include/malloc.h: removed warning while using --stack-auto
15423 * device/include/string.h: removed warning while using --stack-auto
15425 2003-02-23 Borut Razem <borut.razem AT siol.net>
15427 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15428 because NDEBUG is defined (see man assert)
15429 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15431 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15433 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15434 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15436 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15438 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15439 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15441 2003-02-18 <johan AT balder>
15443 * as/mcs51/asmain.c (asmbl): module can start with a digit
15444 * as/z80/asmain.c (asmbl): module can start with a digit
15446 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
15448 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15449 * src/asm.c: fix pipe() for Mingw32
15451 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
15453 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15454 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15455 make -V work again; --c1mode reads now from stdin
15456 * doc/sdccman.lyx: added --c1mode
15457 * support/Util/SDCCerr.c: new messages for c1 mode
15458 * support/Util/SDCCerr.h: new messages for c1 mode
15459 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15461 2003-02-15 <johan AT balder>
15463 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15465 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
15467 * doc/sdccman.lyx: Environment variables, -o and other minor things
15469 2003-02-14 <johan AT balder>
15471 * src/xa51/main.c: before anyone really tries to use it :)
15473 * Install doc's in share/sdcc/doc
15474 * removed some obsolete files
15475 * Do a proper make distclean and uninstall
15476 M Makefile.common.in
15479 M device/include/Makefile.in
15480 M device/lib/Makefile.in
15483 M sim/ucsim/doc/Makefile.in
15485 R src/avr/peeph.rul
15486 R src/xa51/peeph.rul
15487 M support/cpp2/Makefile.in
15488 M support/makebin/Makefile
15491 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
15493 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
15495 2003-02-10 Borut Razem <borut.razem AT siol.net>
15497 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
15498 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
15499 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
15500 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
15501 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
15502 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
15503 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
15504 src/z80/Makefile.bcc: Borland Makefile cleanup
15505 * as/z80/Makefile.bcc: Added Borland Makefile
15506 * support/cpp2/borland.h: Removed
15508 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
15510 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
15511 * src/SDCC.lex: new pragma NOIV
15512 * src/SDCCglobl.h: new pragma NOIV
15513 * src/SDCCmem.c: new pragma NOIV
15515 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
15517 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
15519 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
15521 * src/SDCCmain.c: signal handling is switched off by --debug
15522 * doc/Makefile: small fix for install; use clean.mk again
15523 * doc/clean.mk: clean *.pdf and *.html too
15525 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
15527 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15528 * device/lib/printfl.c: fix a ds390 bug by making it portable
15529 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15530 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15531 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15532 * debugger/mcs51/cmd.c: converted multi-line string literals
15533 * sim/ucsim/globals.cc: converted multi-line string literals
15534 * src/SDCCmain.c: introduced signal handler to remove temp files
15535 * doc/Makefile: small tweaks, implement clean
15536 * doc: removed generated files
15538 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15540 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
15541 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15542 Address Record is not correctly generated for DS390."
15544 2003-02-02 Borut Razem <borut.razem AT siol.net>
15546 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15547 * as/mcs51/asm.h: fixed compilation with Borland C
15548 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15549 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15550 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15551 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15552 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15553 src/z80/Makefile.bcc: delete $(LIB) only if exist
15554 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
15556 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
15558 * device/include/malloc.h: introduced NULL
15559 * device/include/string.h: introduced NULL
15560 * device/include/stdlib.h: introduced NULL
15561 * device/lib/_memcpy.c: removed NULL
15562 * device/lib/_strcat.c: removed NULL
15563 * device/lib/_strchr.c: removed NULL
15564 * device/lib/_strcmp.c: removed NULL
15565 * device/lib/_strcpy.c: removed NULL
15566 * device/lib/_strcspn.c: removed NULL
15567 * device/lib/_strlen.c: removed NULL
15568 * device/lib/_strncat.c: removed NULL
15569 * device/lib/_strncmp.c: removed NULL
15570 * device/lib/_strncpy.c: removed NULL
15571 * device/lib/_strpbrk.c: removed NULL
15572 * device/lib/_strrchr.c: removed NULL
15573 * device/lib/_strspn.c: removed NULL
15574 * device/lib/_strstr.c: removed NULL
15575 * device/lib/_strtok.c: removed NULL
15576 * device/lib/malloc.c: removed NULL, include own header
15578 2003-02-02 <johan AT balder>
15580 * 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
15581 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15582 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15583 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15584 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15585 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15587 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15589 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15592 2003-02-01 <johan AT balder>
15594 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15596 2003-01-31 <johan AT CP255758-A>
15598 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15600 2003-01-30 <johan AT balder>
15602 * src/SDCCBBlock.c: automatic bug detection
15603 * src/SDCCicode.c: automatic bug detection
15605 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15607 * src/SDCCglobl.h: now --xram-size 0 works
15608 * src/SDCCmain.c: now --xram-size 0 works
15610 2003-01-29 <johan AT balder>
15612 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15614 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15616 * as/mcs51/aslink.h: Added options --xram-size and --code-size
15617 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15618 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15619 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
15620 * src/SDCCglobl.h: Added options --xram-size and --code-size
15621 * src/SDCCmain.c: Added options --xram-size and --code-size
15623 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
15625 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15626 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15628 2003-01-27 <johan AT balder>
15630 * src/SDCC.y: fixed bug #613764
15632 2003-01-26 <johan AT balder>
15634 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
15635 * src/SDCCsymt.h: fixed bug #673374
15636 * src/SDCCglue.c: fixed bug #661910
15637 * src/SDCCast.c: fixed bug #458099 and 673374
15639 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
15641 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15642 * as/mcs51/strcmpi.h: added
15643 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15644 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15645 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15646 * as/mcs51/assym.c: strcmpi -> as_strcmpi
15647 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15648 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15649 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15650 * as/mcs51/Makefile.aslink: new module strcmpi
15651 * as/mcs51/Makefile.asx8051: new module strcmpi
15652 * as/mcs51/Makefil.bcc: new module strcmpi
15653 * as/mcs51/Makefile.in: new module strcmpi
15654 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15656 2003-01-26 <johan AT balder>
15658 * src/SDCCglue.c: reverted back to 1.124
15659 * src/SDCCast.c: reverted back to 1.156
15660 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15662 2003-01-25 <johan AT balder>
15664 * src/SDCCglue.c: A better fix for bug #661910
15665 * src/SDCCast.c: A better fix for bug #661910
15666 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15668 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
15670 * src/Makefile.in: remove spawn.o
15671 * src/SDCCmain.c: remove spawn.h
15672 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15673 * src/spawn.c: removed
15674 * src/spawn.h: removed
15675 * support/regression/ports/ds390/spec.mk: link with -r
15677 2003-01-24 <johan AT CP255758-A>
15679 * src/ds390/gen.c (aopOp): fixed bug #667458
15680 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15681 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15682 (createIvalCharPtr): an ival doesn't always have a storage class anymore
15684 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
15686 * src/mcs51/peeph.def: better assembler identation by Frieder
15687 * src/mcs51/gen.c: better assembler identation by Frieder
15689 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
15691 * as/z80/string.h: removed for gcc 3.2
15692 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15693 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15695 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
15697 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15698 * src/SDCCpeeph.c (replaceRule): fix bug #663503
15699 * support/regression/Makefile: separate temp files for ports
15700 * support/regression/generate-cases.py: separate temp files for ports
15701 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15702 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15704 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
15706 * moved tinitalk to device/examples/ds390
15708 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
15710 * as/mcs51/lkmem.c: rflag is for DS390
15711 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15712 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15713 (linkEdit): move mem- and map-files the same way as ihx-files
15714 * src/z80/main.c (_setDefaultOptions): removed --generic
15715 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15716 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15717 * src/pic/glue.c (picglue): --c1mode works again
15718 * src/pic16/glue.c (pic16glue): --c1mode works again
15719 * src/asm.c (printCLine): fix #660034
15721 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
15723 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15724 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15725 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15726 * as/mcs51/lkmem (summary): better fix for sp problem
15727 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15728 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15729 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15730 remove --stack-after-data
15732 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
15734 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15735 * src/SDCCutil.c (join): ugly bug: missing '\0'
15736 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15738 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
15740 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15742 * src/pic/main.c (_asmCmd): gpasm supports -o
15743 * src/z80/main.c: more general macros
15744 * device/lib/Makefile.in: remove intermediate files
15746 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
15748 * .version: Bumped version number to 2.3.3
15749 * src/SDCCBBlock.c: new option -o
15750 * src/SDCCglobl.h: new option -o
15751 * src/SDCCglue.c: new option -o
15752 * src/SDCCmain.c: new option -o
15753 * src/asm.c: new option -o
15754 * src/ds390/main.c: new option -o
15755 * src/pic/glue.c: new option -o
15756 * src/pic/pcode.c: new option -o
15757 * src/pic/ralloc.c: new option -o
15758 * src/pic16/glue.c: new option -o
15759 * src/pic16/pcode.c: new option -o
15760 * src/pic16/ralloc.c: new option -o
15761 * src/z80/main.c: new option -o
15762 * device/lib/Makefile.in: use -o
15763 * support/regression/ports/ds390/spec.mk: use -o
15764 * support/regression/ports/gbz80/spec.mk: use -o
15765 * support/regression/ports/mcs51/spec.mk: use -o
15766 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15767 * support/regression/ports/z80/spec.mk: use -o
15768 * support/regression/ports/ucz80/spec.mk: use -o
15769 * support/regression/ports/xa51/spec.mk: use -o
15770 * support/regression/fwk/lib/timeout.c: fix usage string
15772 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
15773 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15775 2003-01-07 <johan AT balder>
15777 * src/SDCCast.c (decorateType): fixed bug #600035
15779 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
15780 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15781 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15782 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15783 * src/pic/pcode.c: outcommented unused variable to remove warnings
15784 * src/pic/ralloc.c: outcommented unused variable to remove warnings
15786 2003-01-06 <karl AT turbobit.com>
15787 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15790 2003-01-06 <johan AT balder>
15792 * src/SDCCicode.c: fixed array add
15794 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
15795 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15796 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15798 2003-01-04 <johan AT balder>
15800 * src/SDCCval.c (getNelements): fixed the initialized array of structures
15802 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15803 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15805 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
15806 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15807 * support/regression/tests/bug-524697.c: fit mem usage into 8032
15809 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
15810 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15812 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
15813 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15815 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
15816 * src/mcs51/main.c: removed {bindir}{sep} from aslink
15818 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15820 * in /sdcc/as/mcs51/ changed these files in order to create an
15821 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15822 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
15823 following files to include the previous two files: aslink.dsp,
15824 Makefile.aslink, Makefile.bcc, and Makefile.in.
15826 * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15827 .adb instead of .cdb
15829 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15831 * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15832 value from option --iram-size.
15834 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15836 * /sdcc/as/mcs51/lklist.c: added boundary check before using
15839 2002-09-18 <wiml AT hhhh.org>
15841 * SDCClrange.h: exposed setFromRange() and setToRange()
15842 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15843 packRegsForAccUse() (bug 542397)
15844 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15845 multiple times and emitting the fetch operations more than once
15846 added aopGetUsesAcc() function to allow binary operators to
15847 fetch their operands in the correct order; made genMinus() emit
15848 compact code for X = LITERAL - Y
15850 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15851 * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15852 sprintf() in line 1267.
15854 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15855 * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15858 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15859 Changes to aslink (All the changes are marked with 'JCF'):
15861 * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15864 * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15865 area BSEG. Also moves, if possible, the DATA area down into the internal
15866 ram so more space is available.
15868 * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15871 * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15872 not bytes. Function summary() which creates a memory usage summary
15873 file with extension .mem. Reports of overlaping stack and small stack
15874 size. If the space for the stack is less than 16 bytes aslink trows a
15877 * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15878 the 8051. Option 'y' for memory summary output file.
15880 Changes to sdcc (All the changes are marked with 'JCF'):
15882 * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15884 * /sdcc/src/SDCCglue.c: If a register bank is used, creates an
15885 overlaying area for it (uses RegBankUsed[4]).
15887 * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15888 bank zero as used by default. By default aslink locates the stack
15889 (equivalent to --stack-after-data). Pass option 'y' to aslink for
15890 the creation of the .mem file. Delegates the allocation of data area
15891 to aslink (it is not longer 0x30 by default). If --stack-loc passes
15892 the begining of the stack area to aslink.
15894 * /sdcc/src/SDCCmem.c: If a register bank is used, marks it so
15895 glue() in SDCCglue.c creates an area for it.
15897 2002-09-03 Borut Razem <borut.razem AT siol.net>
15898 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15899 sdcc/src/pic/glue.c:
15900 introduced atexit() handler for teporay files removal in case of
15901 errors, assertions, ...
15903 2002-08-29 Borut Razem <borut.razem AT siol.net>
15904 * sdcc/support/cpp2/auto-host_vc_in.h:
15905 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15906 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15907 Maybe there is a similar problem with BORLANDC? It should be checked!
15909 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15910 corrected improper use of assert: the assignment to clr variable was done inside the assert.
15911 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15912 was not executed, and the compiler (cl) launched a warning:
15913 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15915 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
15916 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15918 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15919 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15921 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15922 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15923 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15924 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15925 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15926 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15927 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15928 - added Release configuration in VS projects
15929 - review of compiler an linker options
15930 - VC .exe files are generated in bin_vc directory, not to interfere
15931 with binaries generated from other projects (cygwin, mingw, bcc ...)
15933 * sdcc/src/yacc.dsp: added
15935 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15936 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15937 and insert the version number definitions from .version
15939 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15941 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15942 added - genarate auto-host.h using auto-host_vc_in.h as template
15945 removed from CVS, generated automatically
15947 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
15948 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15950 2002-08-11 Borut Razem <borut.razem AT siol.net>
15951 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15953 2002-08-10 Borut Razem <borut.razem AT siol.net>
15954 * src/SDCCmain.c (main):
15955 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15956 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15957 The consequence was that some temporary files were not removed.
15960 unification of code in functions tempfilename() and tempfile():
15961 function tempnam() is defined in Visual Studio 6.0 and .NET
15963 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15965 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15966 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15967 - removed compiler command line option /WX: Treats all warnings as errors
15968 - update a list of source files, included into the project
15970 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15971 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15972 changed project type to Generic Project so that can be correcly converted to VS.NET project
15974 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15976 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15978 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15980 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15981 added return 0 statements after assert() to make compiler happy
15983 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15984 added newline in the def file to keep MSC compiler satisfied
15986 * sdcc/src/z80/gen.c:
15987 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15988 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15989 - solved MSC error in function aopDump()
15991 * sdcc_vc.h: define PREFIX as "\\sdcc"
15993 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
15994 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15996 2002-06-22 Scott Dattalo <scott AT dattalo.com>
15997 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15998 - Rewrote the register banking algorithm.
15999 - Added pCode live-range analysis to registers (for now, only non-used and
16000 singly-used registers optimized away)
16002 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
16004 * 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.
16006 2002-05-10 Scott Dattalo <scott AT dattalo.com>
16007 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
16009 2002-04-22 Michael Hope <michaelh AT vroom>
16011 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
16013 * configure.in (DD_COPT): Added include support required for gbdk.
16015 * .version: Bumped version number just to increase it.
16017 * src/SDCCmain.c: Added -nostdinc to the default options.
16019 2002-04-15 Michael Hope <michaelh AT vroom>
16021 * device/lib/z80/printf.c (sprintf): Added.
16023 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
16025 * src/z80/peeph.def: Added transpose redundent load rule.
16027 * src/z80/main.c: Added force callee saves for jaune.
16029 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
16031 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
16033 2002-03-28 Johan Knol <johan AT balder>
16035 * src/SDCCval.c: fixed bug #532436
16037 2002-03-14 Scott Dattalo <scott AT dattalo.com>
16039 Added "char *Processor" field to the port structure.
16042 Added -p option. Allows port dependent processor to be specified.
16045 Initialized the new field char *Processor field to NULL in all ports
16048 Compiler generated registers for interrupt context saving
16049 were not getting allocated.
16051 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
16054 Fixed left shift. Will promote the left side of a left shift
16055 if a) left shifting more than size of operand or b) when assigned
16056 to something size > size of left side
16058 2002-03-14 Scott Dattalo <scott AT dattalo.com>
16060 tons of changes. Register allocation has been
16061 rewritten. Added customization for the various PICs. Flow
16062 analysis is restructured. ...
16064 * src/pic/device.h:
16067 * src/pic/device.c:
16068 Added. device.c is a PIC port hack to accomodate variations
16071 2002-03-13 Michael Hope <michaelh AT vroom>
16073 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
16075 2002-03-04 johanknol <johanknol AT manik>
16077 * /src/SDCCval.c: fixed
16079 const unsigned char arr[][2] = { { 0, 1 } };
16080 t18.c:1: error: Initializer element is not constant
16082 2002-03-04 bela <bela AT manik>
16084 * /device/include/mcs51reg.h:
16085 ds89c420 register definition update
16087 2002-03-03 <johan AT FRIJA>
16089 * support/Util/SDCCerr.c: did something, but don't no why anymore
16091 * support/regression/tests/bug-524691.c: made it a little less shy
16093 * src/SDCCast.c (decorateType): fixed bug #524697
16095 * src/SDCCast.c: made some lineno improvements
16097 * src/SDCCval.c (getNelements): changed warning to error
16099 * src/SDCCglue.c (printIvalArray): changed warning to error
16101 * src/SDCCicode.c: fixed a warning for mingw
16103 * src/SDCCast.c (decorateType): fixed the << promotion for ops
16105 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16107 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
16109 * src/ds390/peeph.def:
16110 Added some more peephole rules
16112 * src/ds390/gen.c: Various fixes & enhancements
16114 * src/SDCClrange.c, src/SDCClrange.h:
16115 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16117 * src/ds390/ralloc.c:
16118 various fixes & enhancements (ds390) specific
16120 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16121 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16124 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16126 2002-03-02 <johan AT FRIJA>
16128 * src/SDCCast.c (decorateType): fixed bug #524708
16130 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16132 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16134 2002-03-01 Michael Hope <michaelh AT vroom>
16136 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16138 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16140 2002-03-01 <johan AT FRIJA>
16142 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16144 * src/SDCCast.c (decorateType): fixed bug #524209
16146 * src/SDCCval.c (valNot): fixed bug #524195
16148 2002-02-26 <johan AT balder>
16150 * src/xa51/gen.c: fixed a warning
16152 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16154 * src/SDCCast.c (decorateType): fixed bug #522534
16156 2002-02-23 <johan AT balder>
16158 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16160 2002-02-22 <johan AT balder>
16162 * src/SDCCast.c: fixed bug #514865
16164 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16166 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
16168 * sdcc/src/SDCCloop.c:
16169 Previous fix was not good. basic blocks that have "break" or "return" are
16170 not really partof a loop , but live ranges used in these blocks should
16171 be live thru the entire loop, so set partOfLoop but don't add them to
16174 2002-02-21 <johan AT FRIJA>
16176 * src/SDCCcse.c: fixed bug #514308
16178 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
16181 Fixed BUG #519583. If a conditional block ended in a return/break
16182 statement inside a loop, it was not being considered part of the loop.
16184 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16186 2002-02-10 Karl Bongers <karl AT turbobit.com>
16189 Fixed up SDCDB debugger somewhat. Updated debugger/README
16190 with lots of comments and notes.
16192 * device/examples/test2.c:
16193 Fix bug, "red" variable not being initialized(compiler complained).
16195 * device/examples/Makefile, examples/test3.c:
16196 Add Makefile in device/examples folder, compiles test3.c
16197 for use as a multiple module SDCDB test case.
16199 * sim/ucsim/cmd.src/cmdset.cc:
16200 Took out debug printfs in ucsim "next" command.
16202 * sim/ucsim/xa.src:
16203 Karl and Johan start ucsim XA support. Most dissassembly working,
16204 about 75% emulation done(plenty of work remaining).
16206 * sim/ucsim/z80.src:
16207 Add Z80 support to ucsim, add test-ucz80 regression test,
16208 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16209 Notice z80 compiler fails on examples/test3.c/crc code.
16211 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
16213 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16214 Added support for --parms-in-bank1
16216 * src/ds390/peeph.def:
16217 added a few more peephole optimzations
16219 * src/ds390/main.c:
16220 1) added __builtin_inp & __builtin_outp used to read in data of given length
16221 from a memory mapped port
16222 2) added __builtin_memcmp
16223 3) added __builtin_swapw swap bytes of a short
16225 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16226 1) handle multiple send & receives from register bank1
16227 2) ralloc can now allocate DPTR1 to some liveRanges
16229 * src/SDCCsymt.c, src/SDCCsymt.h:
16230 changes to handle multiple sends & receives
16232 * src/SDCCptropt.h:
16233 added some pointer arithmetic optimization
16235 * src/SDCCptropt.c:
16236 added some pointer arithmetic optimizations but not stable yet so not
16237 called from anywhere (will get this working shortly)
16239 * src/SDCCopt.c: fixed for multiple sends & receives
16242 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16243 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16244 set preprocessor defines (depending on options)
16246 * src/SDCCicode.c, src/SDCCicode.h:
16247 changes made to handle multiple sends & receives
16250 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16252 * src/SDCCcse.c, src/SDCCcse.h:
16253 added function findbackward def (to be used in upcoming optimization)
16255 * src/SDCCcflow.c, src/SDCCcflow.h:
16256 added function returnAtEnd - to determine if a basic block terminates with
16259 * src/SDCCast.c, src/SDCCast.h:
16260 added option parms-in-bank1
16262 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16263 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16264 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16265 adjusted for --parms-in-bank1 option
16267 * device/include/string.h:
16268 donot redefine "reentrant" keyword
16270 * device/include/ds80c390.h: Added some more SFRs
16272 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
16274 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16276 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
16278 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16280 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
16282 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16284 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
16286 * Added --xram-movc option
16288 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
16290 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16292 2002-01-11 Johan Knol
16294 * Added math lib of Jesus Calvino-Fraga
16296 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
16298 * src/SDCCmain.c (processFile): fix processing of ../../src.c
16299 * support/regression/Makefile: new target test-mcs51-stack-auto
16300 * support/regression/ports/mcs51-stack-auto/spec.mk: added
16302 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
16304 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16306 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
16308 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16310 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
16312 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16314 * src/SDCCglue.h: add definition for printIvalChar()
16316 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
16318 * src/SDCCast.c: fix #498138 by Johan
16320 * src/SDCCglue.c: fix #498138 by Johan
16322 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
16324 * support/regression/Makefile: fix clean
16326 * support/regression/ports/ds390/support.c: fix transmission of last character
16328 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
16330 * /sdcc/src/ds390/gen.c:
16331 a) improved computing address of stack variable
16332 b) took out some #if 0 code
16333 c) improved parmBytes adjustment
16334 d) improved genPlusIncr & genMinusIncr
16335 e) genCmp could generate bad code (when left assigned to DPTR)
16336 f) Fixed bug in hasInc
16338 * /sdcc/src/ds390/ralloc.c:
16339 a) packRegsForSupport could mess up live information (Fixed)
16340 b) packRegsDPTRuse could be incorrect for left & right shift
16342 * /sdcc/src/mcs51/ralloc.c:
16343 packRegsForSupport could mess up the live information (Fixed)
16345 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16347 * /sdcc/src/SDCCast.c:
16348 can reverse a loop even if function call is present as long
16349 as the loop control variable is local & is not passed as parameter
16351 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
16353 * /sdcc/ChangeLog: *** empty log message ***
16355 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16356 More builtin function additions for TININative
16358 * /sdcc/src/ds390/ralloc.c:
16359 Had broken the regression testsuite
16361 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16363 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16364 Added funcattr hasStackParms will be set for reentrant functions when there
16365 are paramteres on the stack, this helps in minimizing frame pointer generation
16366 typeFromStr can handle function pointers now
16368 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16369 *** empty log message ***
16371 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
16373 * /src/ds390/gen.c, /src/ds390/main.c:
16374 More builtin function additions for TININative
16376 * /src/ds390/ralloc.c:
16377 Had broken the regression testsuite
16379 * /src/SDCCast.c: Fixed a bug in dumptree
16381 * /src/SDCCsymt.c, /src/SDCCsymt.h:
16382 Added funcattr hasStackParms will be set for reentrant functions when there
16383 are paramteres on the stack, this helps in minimizing frame pointer generation
16384 typeFromStr can handle function pointers now
16386 * /doc/builtins.txt, /doc/TININative.txt:
16387 *** empty log message ***
16390 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
16392 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16393 ALPHA version for -mTININative
16395 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16396 updated to reflect changes in the port structure
16399 added function do_assemble (similar to do_link) if non-null this function
16400 will be called to do assembly (-mTININative) requires a multi command
16402 added function genAssemblerEnd will be called to generate assembler Epilogue
16405 added _JavaNative to debug info printing
16407 * /src/SDCCmain.c: added option --tini-libid
16408 added port->do_assemble function (-mTININative) has a multi command assemble
16410 * /src/SDCCglue.c: Disabled "constExpr" check
16411 added port->genAssemblerEnd function
16413 * /src/SDCCglobl.h: Added option --tini-libid value
16416 tookout optimizeCompare from the header (has no external references)
16418 * /src/SDCCast.c: made one more function "static"
16420 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
16422 * src/z80/mappings.i: Added z80asm support.
16424 * src/z80/main.c: Added z80asm support on --asm=z80asm
16426 * src/z80/gen.c: Fixed asm portability issues.
16428 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
16430 * src/SDCCglue.c (printExterns): Added global/extern split.
16432 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
16434 * support/regression/Makefile: added test for mcs51 model large
16436 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16438 * support/regression/ports/gbz80/spec.mk: added -mgbz80
16440 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
16442 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
16444 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
16446 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16448 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16450 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
16452 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16454 * support/regression/tests/simplefloat.c: Port to mcs51.
16456 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
16457 * support/regression/tests/bug-485362.c: Added.
16459 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16461 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16463 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16465 * src/z80/gen.c (aopDump): Added a dump function.
16467 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
16468 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16470 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
16472 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
16474 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
16476 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
16478 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
16480 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
16482 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16484 * support/regression/ports/ds390/support.c: Use tinibios.
16486 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
16488 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
16490 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
16491 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
16493 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
16495 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
16497 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
16499 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
16501 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
16502 (packRegsForIYUse): Created and optimised.
16504 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
16506 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
16507 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
16509 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
16511 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
16513 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
16515 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
16517 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
16519 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
16521 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
16523 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16525 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16527 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16529 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
16531 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16532 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16533 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16535 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16537 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16538 (genNotFloat): Added.
16539 (genUminusFloat): Added.
16541 * device/lib/z80/Makefile: Added floating pt stubs.
16543 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16545 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16547 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16549 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
16551 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16553 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16555 * sdcc/support/regression/Makefile: Add port ds390.
16557 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16559 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16561 * sdcc/support/regression/ports/ds390/spec.mk: Added.
16563 * sdcc/support/regression/ports/ds390/support.c: Added.
16565 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16567 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16569 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16571 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
16573 * device/include/malloc.h: Added z80 and gbz80 support.
16575 * device/lib/gbz80/heap.s: Added.
16577 * device/lib/z80/heap.s: Added.
16579 * device/lib/malloc.c: Added z80 and gbz80 support.
16581 * support/regression/tests/malloc.c (testMalloc): Added.
16583 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16585 * support/regression/tests/bug-478094.c: Added.
16587 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16589 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
16591 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16593 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16595 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16597 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16599 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16601 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
16603 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16605 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
16607 * support/regression/tests/bug-477927.c: Added.
16609 * src/z80/peeph.def: Added minor rules.
16611 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16613 * src/z80/peeph.def: Added jump optimisation modification.
16615 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
16617 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16619 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
16621 * support/regression/tests/funptrs.c: Added.
16623 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
16625 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16627 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
16629 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16631 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16633 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16634 (movLeft2ResultLong): Created.
16636 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16637 (joinPushes): Added. Joins two char pushes into a word push.
16639 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
16641 * support/cpp2/Makefile.in (install): Added creation of dest dir.
16643 * support/makebin/Makefile (install): Added creation of dest dir.
16645 2001-10-24 Karl Bongers <karl AT turbobit.com>
16647 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16649 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
16651 * src/z80/ralloc.c: Turned off faulty pack for one use.
16653 * src/z80/peeph-gbz80.def: Removed redundent restart options.
16655 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16657 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
16659 * support/regression/Makefile: Improved clean
16661 * support/regression/ports/gbz80/spec.mk: Added clean
16663 * support/regression/ports/host/spec.mk: Added clean
16665 * support/regression/ports/z80/spec.mk: Added clean
16667 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16669 * support/regression/ports/mcs51/timeout.c: little improvements
16671 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
16673 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16675 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16677 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16679 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
16681 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16683 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16685 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
16686 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16688 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16690 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16692 * src/mcs51/main.c (_linkCmd): Added bin path to command.
16694 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16696 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16698 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16700 * support/regression/tests/longor.c: Added.
16702 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
16704 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16706 * as/mcs51/aslink.h: define PATH_MAX
16708 * as/mcs51/asm.h: define PATH_MAX
16710 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16712 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16714 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16716 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16718 * src/SDCCglobl.h: define PATH_MAX
16720 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16722 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16724 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
16726 * src/z80/gen.c (gencjneshort): Fixed
16728 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16730 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
16732 * support/regression/tests/bug-469671.c: Added.
16734 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16736 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
16738 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16740 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
16742 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
16744 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16746 * src/device/lib/_mulint.c : removed hint: nooverlay bug
16748 * src/device/lib/_mullong.c : removed hint: nooverlay bug
16750 * src/device/lib/_divuint.c : removed hint: nooverlay bug
16752 * src/device/lib/_divulong.c: removed hint: nooverlay bug
16754 * src/device/lib/_moduint.c : removed hint: nooverlay bug
16756 * src/device/lib/_modulong.c: removed hint: nooverlay bug
16758 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
16760 * 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.
16762 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
16764 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16766 2001-10-07 <johan AT FRIJA>
16768 * device/lib/gets.c (gets): fixed the return value.
16770 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
16771 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16773 * 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.
16775 * 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.
16777 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16779 * src/pic/gen.c: Removed Safe_strdup.
16781 * configure.in: Added option to enable libgc support.
16783 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16784 (bitVectUnion): Optimised.
16785 (bitVectIntersect): Optimised.
16786 (bitVectBitsInCommon): Optimised.
16787 (bitVectCplAnd): Optimised.
16789 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
16791 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16793 * src/SDCCmain.c: distinguish between assembler debug and plain options
16795 * src/avr/main.c: remove standard assembler options
16797 * src/ds390/main.c: remove standard assembler options
16799 * src/mcs51/main.c: remove standard assembler options
16801 * src/port.h: removed "PENDING" comment
16803 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16805 * src/device/lib/_mulint.c : new, with assember functions
16807 * src/device/lib/_mullong.c : new, with assember functions
16809 * src/device/lib/_divuint.c : with assember functions
16811 * src/device/lib/_divsint.c : with assember functions
16813 * src/device/lib/_divulong.c: with assember functions
16815 * src/device/lib/_divslong.c: with assember functions
16817 * src/device/lib/_moduint.c : with assember functions
16819 * src/device/lib/_modsint.c : with assember functions
16821 * src/device/lib/_modulong.c: with assember functions
16823 * src/device/lib/_modslong.c: with assember functions
16825 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
16827 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16829 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
16830 replaced _mululong.c and _mulslong.c by _mullong.c
16832 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16834 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16836 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16838 * src/SDCCglue.c: test, if win32api is available for MINGW
16840 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16842 * src/SDCCsymt.c: no more _modifier in printTypeChain()
16843 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16844 * support/regression/ports/gbz80/spec.mk: removed GENERIC
16845 * support/regression/ports/host/spec.mk: removed GENERIC
16846 * support/regression/ports/mcs51/spec.mk: removed GENERIC
16847 * support/regression/ports/z80/spec.mk: removed GENERIC
16849 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
16851 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16853 * support/regression/tests/bug-467035.c: Created.
16855 2001-10-01 <johan AT FRIJA>
16857 * src/SDCC.y: fixed bug #466586 part 1
16859 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
16861 * SDCCicode.c: z80 has no generic pointers
16862 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16864 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
16866 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16868 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
16870 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16872 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16874 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
16876 * configure.in: Fixed up so that ucsim is only configured once.
16878 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16880 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16881 (getPathDifference): As above.
16883 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
16885 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16887 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
16888 * .version: Updated to 2.3.1
16890 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16891 Added copyright header.
16893 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16894 (assemble): Added support for macro based assembler commands.
16895 (linkEdit): Added support for macro based linker commands.
16896 (preProcess): Changed the pre-processor to use macros.
16897 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16898 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16900 * device/lib/z80/crt0.s: Added module name for debugging.
16902 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
16904 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16906 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16908 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16910 * src/Makefile.in: Added SDCCmacro and SDCCutil
16912 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
16914 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16916 2001-09-16 <johan AT FRIJA>
16918 * 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.
16920 2001-09-15 <johan AT FRIJA>
16922 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16923 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16925 2001-09-11 <johan AT FRIJA>
16927 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16929 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
16931 * support/regression/tests/bug-460444.c: Added test case.
16933 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16934 (genCast): Added justification for all of the asserts.
16936 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
16938 * support/regression/support.c: _xdata replaced by xdata
16940 * support/regression/spec.mk: removed _generic
16942 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
16944 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16946 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16947 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16949 * src/z80/peeph.def: Added a rule to optimise shift then compare.
16951 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16953 * support/regression/tests/bug-460010.c: Added test case.
16955 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16957 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
16959 * support/regression/Makefile: inter-port-clean adjusted for mcs51
16961 * support/regression/testfwk.c: removed workaround for bug #436344
16963 * support/regression/tests/bp.c: use less memory with mcs51
16965 * support/regression/tests/bug-441448.c: use less memory
16967 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16969 * support/regression/collate-results.py: typo
16971 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
16973 * support/regression/tests/fetchoverlap.c: Added new test case.
16975 * support/regression/tests/bp.c: Added new test case.
16977 * support/regression/tests/bug-448984.c: Added new test case.
16979 * support/regression/tests/pow2shifts.c: Added new test case.
16981 * src/z80/gen.c: Turned off the noise it normally generates for the release.
16982 (genlshTwo): Fixed right shift for count > 8.
16984 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16986 2001-09-08 <johan AT FRIJA>
16988 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16990 2001-09-07 <johan AT FRIJA>
16992 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16994 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16996 2001-09-06 <johan AT FRIJA>
16998 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16999 * bernhard noted me at this: "() equals to (void)" (1.38)
17001 2001-09-05 <johan AT FRIJA>
17003 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
17005 2001-09-04 <johan AT FRIJA>
17007 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
17010 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
17012 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
17014 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
17016 * link/z80/aslink.h: Fixed path for PATH_MAX
17018 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
17020 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
17022 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
17024 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
17026 * 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.
17028 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
17030 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
17031 (genCmp): Fixed up genCmp for the GB with longs.
17033 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
17035 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
17037 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
17039 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
17041 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
17043 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
17045 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
17047 * 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.
17049 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
17051 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
17053 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
17055 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
17057 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
17059 * sim/ucsim/configure: little improvement of Cygwin-detection
17060 * sim/ucsim/configure.in: little improvement of Cygwin-detection
17061 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
17062 * support/regression/tests/bug-221100.c: small changes for mcs51
17063 * support/regression/tests/bug-221168.c: small changes for mcs51
17064 * support/regression/tests/bug-227710.c: small changes for mcs51
17065 * support/regression/tests/staticinit.c: small changes for mcs51
17066 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
17067 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
17068 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601