1 2008-11-24 Raphael Neider <rneider AT web.de>
3 * device/lib/pic16/configure.ac,
4 device/lib/pic16/Makefile.common: fixed quoting issues
6 * device/lib/pic16/configure,
7 device/lib/pic16/debug/Makefile.in,
8 device/lib/pic16/libc/Makefile.in,
9 device/lib/pic16/libdev/Makefile.in,
10 device/lib/pic16/libio/Makefile.in,
11 device/lib/pic16/libm/Makefile.in,
12 device/lib/pic16/libsdcc/Makefile.in,
13 device/lib/pic16/Makefile.in,
14 device/lib/pic16/startup/Makefile.in: regenerated
16 * src/pic16/main.c (_pic16_finaliseOptions): revert to
19 2008-11-24 Raphael Neider <rneider AT web.de>
21 * src/pic16/main.c (_pic16_finaliseOptions): do not quote the
22 argument of --asm= or --link= to allow for
23 --asm="sh script --options", the user can double quote the
24 argument if needed: --asm="'c:/program files/gpasm' -q",
25 also fix some potential buffer overflows
27 2008-11-19 Borut Razem <borut.razem AT siol.net>
30 fixed 2314467: sdccman.lyx: fix "--" in command line parameters
33 2008-11-16 Borut Razem <borut.razem AT siol.net>
35 * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.5
36 * doc/sdccman.lyx: documented fixed unnamed bit-field initialization
38 2008-11-15 Borut Razem <borut.razem AT siol.net>
40 * src/pic16/glue.c, src/SDCC.y, src/SDCCast.c, src/SDCCglue.c,
41 src/SDCCsymt.c, src/SDCCsymt.h:
42 fixed RFE #2291335 : Unnamed bit-field initialization
43 * support/regression/tests/bitfields.c:
44 added test case for RFE #2291335
45 * support/regression/tests/bug-1981238.c:
46 don't initialize unnamed bit-fields
48 2008-11-11 Raphael Neider <rneider AT web.de>
50 * device/include/pic16/pic18f25j10.h,
51 device/include/pic16/pic18f45j10.h: remove useless boilerplate
53 * device/include/pic16/adc.h,
54 device/lib/pic16/libio/adc/adcbusy.c,
55 device/lib/pic16/libio/adc/adcclose.c,
56 device/lib/pic16/libio/adc/adcconv.c,
57 device/lib/pic16/libio/adc/adcopen.c,
58 device/lib/pic16/libio/adc/adcread.c,
59 device/lib/pic16/libio/adc/adcsetch.c: generalized, documented,
60 and fixed ADC routines to work for more target devices,
61 incorporates patch #2036130 by Nick Materer
63 2008-11-10 Steven Borley <steven.borley AT partnerelectronics.com>
65 * device/include/ctype.h,
66 * device/include/ds400rom.h,
67 * device/include/ds80c390.h,
68 * device/include/float.h,
69 * device/include/math.h,
70 * device/include/serial.h,
71 * device/include/stdbool.h,
72 * device/include/tinibios.h: replaced non-C89 '//' with '/* */',
74 * device/include/mcs51/C8051F336.h,
75 * device/include/mcs51/C8051T600.h,
76 * device/include/mcs51/C8051T610.h,
77 * device/include/mcs51/C8051T630.h: new, added, patch 2183334
78 (svn commit by Maarten Brock <sourceforge.brock AT dse.nl>)
80 2008-11-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
82 * device/include/mcs51/P89LPC922.h: fixed #2255989, thanks kubi57
84 2008-11-10 Raphael Neider <rneider AT web.de>
86 * device/lib/pic16/libdev/mkmk.sh: obey pics.all
87 * device/lib/pic16/libio/mkmk.sh: properly match whole lines in
88 .ignore files, fixes IO libs for 18f242, 18f252, 18f442, and 18f452
89 (patch by Nick Materer, #2253980)
91 * device/lib/pic16/libio/adc.ignore,
92 device/lib/pic16/libio/i2c.ignore,
93 device/lib/pic16/libio/usart.ignore,
94 device/lib/pic16/pics.all: updated to build more device libs
96 * device/lib/pic16/libdev/Makefile.am,
97 device/lib/pic16/libdev/Makefile.in,
98 device/lib/pic16/libio/Makefile.am,
99 device/lib/pic16/libio/Makefile.in: regenerated
101 * src/pic16/device.c (pic16_dump_usection): fixed output of multiple
102 names per memory location, applied SDCC style to more functions
104 2008-11-09 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
106 * device/include/mcs51/p89lpc933_4.h: new NXP header file
107 * device/include/mcs51/p89lpc935_6.h: new NXP header file
108 * device/include/mcs51/p89v66x.h: minor changes
109 (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
111 2008-11-09 Raphael Neider <rneider AT web.de>
113 * device/include/pic/pic14devices.txt: fixed memory description for
114 12f629 and 12f675, closes #2236240
116 2008-11-06 Borut Razem <borut.razem AT siol.net>
118 * src/SDCCmain.c: #fixed bug 2224960: sdcc -MM no working correctly
119 pass system include paths with -isystem to sdcpp
120 * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c: removed unneeded
121 functions (closePipes), (closeTmpFiles) and (rmTmpFiles)
123 2008-11-02 Raphael Neider <rneider AT web.de>
125 * doc/sdccman.lyx: updated the sections on the library build process
126 and on how to add support for new devices, and documented known
127 problems with the extended instruction set including a workaround
129 2008-11-01 Raphael Neider <rneider AT web.de>
131 * device/include/pic16/adc.h,
132 device/include/pic16/pic16devices.txt,
133 device/include/pic16/pic18f2410.h,
134 device/include/pic16/pic18f2510.h,
135 device/include/pic16/pic18f2515.h,
136 device/include/pic16/pic18f2610.h,
137 device/include/pic16/pic18f4410.h,
138 device/include/pic16/pic18f4510.h,
139 device/include/pic16/pic18f4515.h,
140 device/include/pic16/pic18f4610.h,
141 device/include/pic16/pic18fregs.h,
142 device/lib/pic16/libdev/Makefile.am,
143 device/lib/pic16/libdev/Makefile.in,
144 device/lib/pic16/libdev/pic18f2410.c,
145 device/lib/pic16/libdev/pic18f2510.c,
146 device/lib/pic16/libdev/pic18f2515.c,
147 device/lib/pic16/libdev/pic18f2610.c,
148 device/lib/pic16/libdev/pic18f4410.c,
149 device/lib/pic16/libdev/pic18f4510.c,
150 device/lib/pic16/libdev/pic18f4515.c,
151 device/lib/pic16/libdev/pic18f4610.c,
152 device/lib/pic16/libio/Makefile.am,
153 device/lib/pic16/libio/Makefile.in,
154 device/lib/pic16/pics.all: added support for 18f[24][456]10
155 and 18f[24]515 devices
156 * doc/sdccman.lyx: updated list of supported PIC16 devices
158 * src/pic/glue.c, src/pic/pcode.c, src/pic/pcodeflow.c,
159 src/pic16/glue.c, src/pic16/pcode.c, src/pic16/pcodeflow.c,
160 src/xa51/gen.c: avoid compiler warnings
161 * support/scripts/inc2h-pic16.pl: removed trailing whitespace
163 2008-10-22 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
165 * device/include/mcs51/p89v66x.h: NXP header file
166 * device/include/mcs51/p89c66x.h: fixed an SBIT definition
167 (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
169 2008-10-14 Raphael Neider <rneider AT web.de>
171 * device/lib/pic16/libdev/Makefile.am,
172 device/lib/pic16/libio/Makefile.am: enable building libraries for
173 18f2321, 18f4321, 18f2523, 18f4620, 18f66j60, 18f66j65, 18f67j60,
174 18f86j60, 18f86j65, 18f87j60, 18f96j60, 18f96j65, and 18f97j60
175 * device/lib/pic16/libdev/Makefile.in,
176 device/lib/pic16/libio/Makefile.in: regenerated
178 2008-10-14 Raphael Neider <rneider AT web.de>
180 * device/include/pic16/pic18f2450.h,
181 device/include/pic16/pic18f4450.h,
182 device/lib/pic16/libdev/pic18f2450.c,
183 device/lib/pic16/libdev/pic18f4450.c,
184 device/include/pic16/adc.h,
185 device/include/pic16/pic16devices.txt,
186 device/include/pic16/pic18fregs.h,
187 device/lib/pic16/libdev/Makefile.am,
188 device/lib/pic16/libdev/Makefile.in,
189 device/lib/pic16/libio/Makefile.am,
190 device/lib/pic16/libio/Makefile.in,
191 device/lib/pic16/pics.all: added 18f2450 and 18f4450, closes #1844525
193 * device/lib/pic16/libsdcc/stack/stack.S: there is no need to pin the
194 stack to a fixed location, relax it to automatically work with all
195 but the smallest devices (256 byte RAM devices need #pragma stack)
197 2008-10-09 Maarten Brock <sourceforge.brock AT dse.nl>
199 * debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
200 * debugger/mcs51/simi.c: bugfix from patch 1989972, thanks Risto Huotari
201 * device/lib/_strcspn.c: fixed bug 2140931
203 2008-10-06 Raphael Neider <rneider AT web.de>
205 * device/include/pic16/stdio.h,
206 device/lib/pic16/libc/stdio/putchar.c: putchar should not be
207 declared __naked for convenience, named all arguments
208 * device/lib/pic16/libc/stdio/strmgpsim.c,
209 device/lib/pic16/libc/stdio/strmmssp.c,
210 device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
212 * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
213 empty __naked functions,
214 * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
215 corner cases (unlink first/last pCode in list), reuse more code
217 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
219 * src/ds390/main.c (_ds390_genInitStartup): added
220 * src/SDCCpeeph.c (getPatternVar): new, added,
221 (labelInRange): fixed bug 2115959
222 * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
223 * src/SDCCicode.h: added newiTempOperand
224 * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
225 added optimizations for 0/x and x/-1, see also patch 2142900
226 * support/regression/tests/onebyte.c (testMul): added test cases
228 2008-09-20 Borut Razem <borut.razem AT siol.net>
231 definition of absolute address symbols without initial value,
232 fixed SDCC crash "do not know how to intialize symbol"
234 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
236 * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
237 * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
238 __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
239 * device/lib/z80/stubs.s: added stubs for above functions
240 * src/SDCCopt.c (convilong),
241 * src/SDCCsymt.c (initCSupport): fixed bug 1900961
242 * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
243 * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
244 * support/regression/tests/onebyte.c: enabled all tests for z80
246 2008-09-15 Borut Razem <borut.razem AT siol.net>
248 * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
249 device/lib/pic16/libc/stdio/printf.c,
250 device/lib/pic16/libc/stdio/strmusart.c,
251 device/lib/pic16/libc/stdio/printf_tiny.c,
252 device/lib/pic16/libc/stdio/sprintf.c,
253 device/lib/pic16/libc/stdio/strmgpsim.c,
254 device/lib/pic16/libc/stdio/putchar.c,
255 device/lib/pic16/libc/stdio/fprintf.c,
256 device/lib/pic16/libc/stdio/strmmssp.c,
257 device/device/lib/pic16/libc/stdio/vprintf.c,
258 device/lib/pic16/libc/stdio/printf_small.c,
259 device/lib/pic16/libc/stdio/vsprintf.c,
260 device/lib/pic16/libc/stdio/strmputchar.c,
261 device/lib/pic16/libc/Makefile.am,
262 device/lib/pic16/libc/Makefile.in:
263 *printf now returns int, puchar.c moved from stdlib to stdio,
264 *printf format parameter type changed from char * to const char *,
265 added GNU link excetion text to library source files,
266 applyed GNU coding style, removed useless svn ids,
267 added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
268 binary specifier: "%b", "%hb" and "%lb"
269 * device/lib/pic16/libc/stdio/vfprintf.c:
270 applied patch #2044424: PIC16: vfprintf
271 thanks Mauro Giachero
272 * support/regression/tests/bug1057979.c:
273 removed old pic16 sprintf specifics
274 * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
275 * doc/sdccman.lyx: documented 'b' binary format specifier removal
277 2008-09-15 Raphael Neider <rneider AT web.de>
279 * src/pic16/device.c (pic16_dump_usection): force udata sections
280 into the addressable range (0..0xFFF), workaround for a gpsim
281 bug preventing simulation of regtest bug1750318
282 * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
283 (serialRegAssign): fixed regtest bug-971834,
284 (pic16_packRegisters): avoid null-pointer dereference
286 2008-09-14 Raphael Neider <rneider AT web.de>
288 * src/pic16/gen.c, src/pic16/ralloc.c: use
289 SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
290 * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
292 2008-09-12 Borut Razem <borut.razem AT siol.net>
294 * support/regression/fwk/testfwk.h:
295 define pdata as data for pic16 target
296 thanks Mauro Giachero
298 2008-09-11 Borut Razem <borut.razem AT siol.net>
300 * support/regression/tests/bug-221100.c, support/regression/shifts.c,
301 support/regression/absolute.c:
302 applied patch #2105615: Some PIC16 testcase fixlets
303 thanks Mauro Giachero
305 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
307 * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
308 * support/regression/tests/bug2094505.c: new, added
310 2008-09-07 Borut Razem <borut.razem AT siol.net>
312 * src/SDCCglue.c, src/SDCCast.c:
313 fixed throw of "excess elements" warning for char arrays
314 * support/regression/tests/nullstring.c:
315 disable warning about excess elements in array of chars initializer
317 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
319 * as/z80/aslist.c (lstsym): changed old K&R to ANSI
320 * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
321 * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
322 * support/regression/tests/bug2077267.c: new, added
324 2008-09-05 Raphael Neider <rneider AT web.de>
326 * configure.in, Makefile.common.in: add support for ccache,
327 remove spurious $VERSION output, detect doc-tools even without
328 --enable-doc to facilitate later manual doc-builds, minor cleanup
329 * configure: regenerated
331 * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
332 avoid races in parallel VPATH builds
333 * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
334 * doc/sdccman.lyx: mention --without-ccache configure option
336 2008-09-01 Raphael Neider <rneider AT web.de>
338 * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
339 * (genConstPointerGet): fix reading bitfields from __code space
340 * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
341 bitfield initializers (fix regression test bug1856409.c)
342 * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
345 2008-08-31 Raphael Neider <rneider AT web.de>
347 * src/pic16/gen.c (genAssign): removed useless compiler output
348 * (genPointerGet,genPointerSet,genCast),
349 src/pic16/glue.c (pic16_printGPointerType):
350 also handle PPOINTERs just to avoid spurious asserts
351 * (pic16_printIvalType,pic16_printIvalBitFields):
352 generalized to arbitrary type/bitfield sizes, allows compilation of
353 regression test bug-1981238.c
354 * (pic16_printIvalChar): fix regression test structflexarray.c
355 * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
356 in initialized structs and fix #1843745
357 * (pic16_printIvalStruct): always output initializers for all fields,
358 even those not explicitly given, fixes zeropad.c regression test
359 * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
360 #2073635, #1567098, and #1485812)
361 * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
363 2008-08-31 Borut Razem <borut.razem AT siol.net>
365 * support/regression/tests/bug-895992.c,
366 support/regression/tests/onebyte.c:
367 enabled pic16 regression testing since the bugs
368 1511794: pic16: regression test bug-895992.c fails
369 1444425: onebyte.c regression tes fails on pic16
370 are fixed, probably by fixing
371 2048464: PIC16: fix genUminus - addresses not.c regression test
372 * src/SDCCsymt.c, src/SDCCglue.c,
373 support/regression/tests/bug-1981238.c:
374 applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
377 2008-08-30 Borut Razem <borut.razem AT siol.net>
379 * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
380 release version 4.3.2
382 2008-08-24 Raphael Neider <rneider AT web.de>
384 * device/lib/pic16/configure, device/lib/pic16/configure.ac:
385 always use the sdcc from the current build tree (ignore $CC from
386 the environment, fixes compile farm builds)
387 * device/lib/Makefile.in: rename .a into .lib for compatibility,
388 remove more build products from install directory
389 * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
390 * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
392 2008-08-24 Borut Razem <borut.razem AT siol.net>
394 * src/SDCC.y: applied patch
395 2050245: Fix # 1963382
397 1963382: Listing File - C file comment is incorrect
400 2008-08-23 Borut Razem <borut.razem AT siol.net>
402 * src/pic16/gen.c: applied patch
403 2048464: PIC16: fix genUminus - addresses not.c regression test
404 thanks Mauro Giachero
406 2008-08-22 Borut Razem <borut.razem AT siol.net>
408 * device/lib/pic16/configure, device/lib/pic16/configure.ac,
409 src/pic16/main.c: allow spaces in gpasm and gplink paths
411 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
414 * src/z80/peeph-z80.def: minor peephole improvement
416 2008-08-15 Raphael Neider <rneider AT web.de>
418 * src/z80/gen.c (_vemit2): suppress compiler warning
420 * src/pic/*.[ch]: make proper use of header files and avoid
421 ad-hoc extern declarations, mark module-local helpers 'static',
422 removed dead/replaced code, no functional changes
423 * src/pic16/pcode.c: disentangled from pic14 backend
425 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
427 * src/z80/gen.c: fixed #2051348
428 * support/regression/tests/bug-2051348.c: regression test for #2051348
430 2008-08-10 Raphael Neider <rneider AT web.de>
433 * Makefile.common.in: export PACKAGE for $docdir,
434 fixes #1957036, avoid some "underquoted definition" warnings
435 * configure: regenerated
437 2008-08-10 Raphael Neider <rneider AT web.de>
439 * device/lib/pic16/**: build pic16 library using autotools for
440 improved dependency tracking
442 * device/lib/Makefile.in,
444 * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
446 2008-08-10 Raphael Neider <rneider AT web.de>
448 * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
449 local variables if --nooverlay is given, workaround for #2023121
451 2008-08-08 Raphael Neider <rneider AT web.de>
453 * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
455 2008-08-08 Raphael Neider <rneider AT web.de>
457 * src/pic/pcoderegs.c,
459 * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
461 2008-08-07 Borut Razem <borut.razem AT siol.net>
463 * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
464 device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
465 device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
466 support/cpp/libcpp/lex.c, doc/sdccman.lyx:
467 applied modified patch 2038174: Add support for binary constants v2
468 thanks Mauro Giachero
469 * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
471 2008-08-04 Raphael Neider <rneider AT web.de>
474 * src/pic16/device.h,
476 * src/pic16/main.c: enable --optimize-goto by default
478 * device/lib/pic16/Makefile.common.in: suppress removed option
481 * src/pic16/genutils.c: avoid too long relative branches (#2031890)
483 2008-07-30 Borut Razem <borut.razem AT siol.net>
485 * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
486 applied patch 22032433: PIC16: fix constant strings,
487 thanks Mauro Giachero
489 2008-07-29 Borut Razem <borut.razem AT siol.net>
491 * src/pic16/gen.c: applied patches:
492 2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
493 2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
494 2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
495 thanks Mauro Giachero
497 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
499 * src/port.h: Fixed typo in comment
501 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
503 * src/z80/mappings.i: Implemented RFE #1919415
504 * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
505 #1880202, #1914434, prepared for RFE #1703943
507 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
510 * src/z80/peeph-z80.def,
511 * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
512 preparation for Z80 peephole improvements
514 2008-06-21 Raphael Neider <rneider AT web.de>
516 * device/include/pic16/pic18f66j60.h,
517 * device/include/pic16/pic18f66j65.h,
518 * device/include/pic16/pic18f67j60.h,
519 * device/include/pic16/pic18f86j60.h,
520 * device/include/pic16/pic18f86j65.h,
521 * device/include/pic16/pic18f87j60.h,
522 * device/include/pic16/pic18f96j60.h,
523 * device/include/pic16/pic18f96j65.h,
524 * device/include/pic16/pic18f97j60.h,
525 * device/lib/pic16/libdev/pic18f66j60.c,
526 * device/lib/pic16/libdev/pic18f66j65.c,
527 * device/lib/pic16/libdev/pic18f67j60.c,
528 * device/lib/pic16/libdev/pic18f86j60.c,
529 * device/lib/pic16/libdev/pic18f86j65.c,
530 * device/lib/pic16/libdev/pic18f87j60.c,
531 * device/lib/pic16/libdev/pic18f96j60.c,
532 * device/lib/pic16/libdev/pic18f96j65.c,
533 * device/lib/pic16/libdev/pic18f97j60.c,
534 * device/include/pic16/pic16devices.txt,
535 * device/include/pic16/pic18fregs.h,
536 * device/lib/pic16/pics.all: added new devices
538 * device/include/pic16/adc.h,
539 * device/lib/pic16/libio/adc/adcbusy.c,
540 * device/lib/pic16/libio/adc/adcopen.c,
541 * device/lib/pic16/libio/adc/adcsetch.c,
542 * device/lib/pic16/libio/i2c/i2copen.c,
543 * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
544 all changes from a patch by Anton Strobl
546 2008-06-12 Borut Razem <borut.razem AT siol.net>
548 * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
549 sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
550 sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
551 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
552 sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
553 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
554 sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
555 sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
556 fixed bug 1990586: s51 simulator, uc::disass() unimplemented
557 by applying the modified patch from Risto Huotari
559 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
562 * doc/sdccman.lyx: bumped sdcc version to 2.8.2
563 * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
564 * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
565 * support/regression/tests/bug1938300.c: new, added
567 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
569 * device/include/asm/ds390/features.h,
570 * device/include/asm/mcs51/features.h,
571 * device/include/mcs51/regc515c.h: inserted LGPL notice
573 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
575 * device/lib/gbz80/div.s,
576 * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
577 patch 1597883, Thanks Robert Ramey
579 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
581 * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
582 createIvalCharPtr, createIvalPtr, createIval),
584 * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
585 initializers for local auto variables
586 * support/regression/tests/zeropad.c: added testcase for auto initializers
588 2008-05-26 Raphael Neider <rneider AT web.de>
590 * device/lib/pic16/startup/crt0.c,
591 * device/lib/pic16/startup/crt0i.c,
592 * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
593 explicit, fixed curr_entry loop for >= 256 initializer records,
594 removed debug code (write to 0xf7e)
596 2008-05-25 Raphael Neider <rneider AT web.de>
598 * device/include/pic/pic16f627a.h,
599 * device/include/pic/pic16f628a.h,
600 * device/include/pic/pic16f648a.h: added missing ports
602 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
604 * device/include/float.h: added __INFINITY
605 * device/lib/_fsadd.c: handle overflows
606 * device/lib/_fsmul.c,
607 * device/lib/_fsdiv.c: use __INFINITY
608 * device/lib/_fseq.c,
609 * device/lib/_fsneq.c: handle -0.0
610 * sim/ucsim/s51.src/uc89c51r.cc,
611 * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
612 * sim/ucsim/sim.src/hwcl.h: */* confuses VC
613 * src/mcs51/gen.c (genSend): fixed bug with --xstack
614 * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
615 * support/regression/tests/snprintf.c: test bug with --xstack
617 2008-05-19 Philipp Klaus Krause <pkk AT spth.de>
619 * src/SDCCpeeph.c (callFuncByName):
620 Support nested parenthesis in peephole function arguments (#1967300)
622 2008-05-19 Raphael Neider <rneider AT web.de>
624 * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
625 fixed duplicate labels (#1911325)
627 2008-05-19 Raphael Neider <rneider AT web.de>
629 * src/regression/empty.c: suppress warning
630 * src/regression/pointer1.c: enabled index_by_pointer()
631 * src/regression/inline.c: now works for pic16 as well
633 * src/pic16/device.c: include dbuf declarations
634 * src/pic16/device.h: removed obsolete prototypes
636 * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
637 * src/pic16/glue.c: made purely local functions static,
638 (pic16_printGPointerType, pic16_printIvalCharPtr,
639 pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
640 generic pointers' tags (#1961866)
642 * src/pic16/pcode.c (assignValnums): optimize literal assignments
644 2008-05-19 Borut Razem <borut.razem AT siol.net>
646 * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
647 fixed typo, uninstall include/pic16/pic16devices.txt
649 2008-05-18 Borut Razem <borut.razem AT siol.net>
651 * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
652 the buffer is null terminated
653 * src/device/pic16.c:
654 applied modified patch 1965676: Patch for Win32 16 bit PIC
655 * sdcc_vc_in.h: defined YY_NO_UNISTD_H
657 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
659 * src/SDCC.lex (check_type),
660 * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
663 * as/z80/clean.mk: also clean *.dep
664 * device/lib/pic16/libsdcc/stack/Makefile,
665 * sim/ucsim/libtool: removed as they are rebuild by configure
666 * src/clean.mk: removed izt, so Makefile is not deleted for distclean
668 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
670 * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
671 fixupInline instead of createFunction to fix bug 1864577
672 (inlineFindMaxBlockno): removed, use global blockNo
673 * src/SDCCglobl.h: added blockNo
675 * src/z80/peep.h: modified properties
676 * support/regression/tests/bug1864577.c: new, added
678 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
681 * as/mcs51/asm.h: added org_cnt
682 * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
683 * as/mcs51/asout.c: changed old K&R to ANSI
684 * as/mcs51/Makefile.in: use common identifiers
690 * as/hc08/Makefile.bcc,
691 * as/hc08/Makefile.in: synchronized with as/mcs51/*
692 * sdcc_vc_in.h: added define __func__
693 * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
694 Thanks Ruud van Silfhout
695 * support/regression/tests/bug1717305.c: new, added
697 2008-05-05 Borut Razem <borut.razem AT siol.net>
699 * support/regression/Makefile.in,
700 support/regression/ports/ds390/spec.mk,
701 support/regression/ports/hc08/spec.mk,
702 support/regression/ports/mcs51-common/spec.mk,
703 support/regression/ports/pic14/spec.mk,
704 support/regression/ports/pic16/spec.mk,
705 support/regression/ports/ucz80/spec.mk,
706 support/regression/ports/z80/spec.mk:
707 added INC_DIR and LIBDIR paths
708 * src/ds390/gen.c: removed duplicated selicolon
710 2008-05-04 Borut Razem <borut.razem AT siol.net>
712 * support/regression/Makefile.in,
713 support/regression/fwk/lib/testfwk.c,
714 support/regression/ports/ds390/spec.mk,
715 support/regression/ports/hc08/spec.mk,
716 support/regression/ports/mcs51-common/spec.mk,
717 support/regression/ports/mcs51-large/spec.mk,
718 support/regression/ports/mcs51-medium/spec.mk,
719 support/regression/ports/mcs51-small/spec.mk,
720 support/regression/ports/mcs51-stack-auto/spec.mk,
721 support/regression/ports/mcs51-xstack-auto/spec.mk,
722 support/regression/ports/pic14/spec.mk,
723 support/regression/ports/pic16/spec.mk,
724 support/regression/ports/ucz80/spec.mk:
725 added possibility to define the sdcc binary directory SDCC_BIN_PATH
726 used to run regeression tests
728 2008-05-01 Raphael Neider <rneider AT web.de>
730 * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
731 supported devices and instructions to add new ones
733 2008-05-01 Raphael Neider <rneider AT web.de>
735 * device/include/pic16/adc.h,
736 device/lib/pic16/libio/adc/adcbusy.c,
737 device/lib/pic16/libio/adc/adcopen.c,
738 device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
739 18f2455 style ADC devices, based on patch #1776197
740 * device/lib/pic16/libio/adc/adcclose.c,
741 device/lib/pic16/libio/adc/adcconv.c,
742 device/lib/pic16/libio/adc/adcread.c: cosmetic changes
743 * device/include/pic16/{pic18f2331.h,pic18f2431.h},
744 device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
745 * device/include/pic16/pic18f4431.h,
746 device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
747 * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
749 2008-05-01 Raphael Neider <rneider AT web.de>
751 * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
752 moved xinst flag into pic16_options_t
753 * src/pic16/device.c (default_device, pic16_list_devices,
754 pic16_find_device): removed references to sfrrange
755 * src/pic16/gen.c (genFunction),
756 src/pic16/glue.c (pic16initialComments),
757 src/pic16/main.c (pic16_optionsTable),
758 src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
760 * device/include/pic16/pic16devices.txt: removed sfrrange lines
762 2008-04-29 Raphael Neider <rneider AT web.de>
764 * src/pic16/devices.inc,
765 device/include/pic16/pic16devices.txt: replaced compiled-in list
766 of devices with a variant parsed at runtime
767 * src/pic16/device.c: added support for parsing pic16devices.txt,
769 * src/pic16/device.h: removed (now) unused fields from PIC_device
770 * src/pic16/main.c: removed #pragma maxram,
771 (_pic16_initPaths): removed bogus generation of search paths,
772 setup the port proper only after the search paths (for
773 pic16devices.txt) are set up,
774 (_pic16_finaliseOptions): moved processor dependant code here
775 from _pic16_initPaths(), clean up
776 * src/pic16/ralloc.c (pic16_init_stack),
777 * src/pic16/ralloc.h,
778 * src/pic16/pcode.c: clean up
779 * device/include/Makefile.in,
780 support/scripts/sdcc.nsi: also install/package pic16devices.txt
781 * support/scripts/inc2h-pic16.pl: updated instructions
783 2008-04-29 Raphael Neider <rneider AT web.de>
785 * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
786 pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
787 device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
788 pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
789 added missing family members and 18f2480/2580/4480/4580 family
790 * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
791 * device/include/pic16/pic18f2525.h: use 18f4620.h
792 * device/include/pic16/pic18f6680.h: use 18f8680.h
793 * device/include/pic16/pic18fregs.h,
794 device/lib/pic16/pics.all,
795 src/pic16/devices.inc: add new devices
796 * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
797 * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
798 * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
799 * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
800 prevent attempting to build the libio for some new devices
802 2008-04-29 Raphael Neider <rneider AT web.de>
804 * debugger/mcs51/Makefile.in: fixed paths to sources
806 2008-04-25 Borut Razem <borut.razem AT siol.net>
808 * as/link/lklibr.c: moved from as/link/z80/lklibr.c
809 * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
810 * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
811 * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
812 as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
813 as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
814 as/link/z80/linkz80.dsp: lklibr.c moved
815 * doc/INSTALL.txt: binary archives in bz2 format
816 * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
818 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
820 * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
821 * support/regression/tests/bug1856409.c: new, added
823 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
826 * src/mcs51/peep.c: Use werror for error messages.
827 * src/SDCCicode.c (geniCodeConditional),
828 * src/SDCCsymt.c (structElemType): fixed bug 1839321
829 * src/z80/Makefile.bcc,
830 * src/z80/z80.dsp: added src/z80/peep.c/h
831 * support/regression/tests/bug1839321.c: new, added
833 2008-04-20 Raphael Neider <rneider AT web.de>
835 * device/include/pic16/pic18f2455.h: added bitfields for port C
837 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
839 * src/z80/peep.c: Use werror for error messages.
841 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
843 * src/z80/peep.h (declaration of notUsed()),
844 * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
846 * src/z80/z80.h (added dependency on peep.h),
847 * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
850 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
852 * src/SDCCpeeph.c (added support for notUsed()),
853 * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
855 * src/port.h (removed dependency on mcs51/peep.h, added declaration
856 for notUsed()): Implemented generic (that is not port-specific) part
859 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
861 * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
862 * device/lib/libsdcc.lib,
863 * device/lib/Makefile.in,
864 * support/regression/ports/mcs51-xstack-auto/spec.mk,
865 * device/lib/calloc.c: renamed to _calloc.c
866 * device/lib/free.c: renamed to _free.c
867 * device/lib/malloc.c: renamed to _malloc.c
868 * device/lib/realloc.c: renamed to _realloc.c
869 * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
870 genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
871 * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
872 genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
873 * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
874 ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
875 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
876 genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
878 * src/mcs51/gen.c: throughout cosmetic changes for syncing both
879 * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
880 * support/regression/tests/bug1509084.c: new, added
882 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
884 * device/include/mcs51/cc2510fx.h: added _XPAGE
885 * device/include/mcs51/compiler.h: cosmetic changes
887 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
889 * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
892 2008-03-31 Borut Razem <borut.razem AT siol.net>
894 * support/cpp2 renamed to support/cpp
895 * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
896 support/cpp2/libiberty/splay-tree.c,
897 support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
898 support/cpp2/libcpp/directives.c,
899 support/cpp2/libcpp/include/cpplib.h,
900 support/cpp2/libcpp/include/symtab.h,
901 support/cpp2/libcpp/include/line-map.h,
902 support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
903 support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
904 support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
905 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
906 support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
907 release version 4.3.0
908 * configure.in, configure, Makefile.in, Makefile.bcc:
909 adapted for moved cpp2
911 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
913 * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
914 thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
916 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
918 * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
920 * support/regression/tests/bug1717943.c: new, added
922 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
924 * src/z80/gen.c (assignResultValue): Reverted reversal of order of
925 bytewise return value assignments introduced in last commit.
927 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
929 * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
930 genMult, genJumpTab):
931 Use 16-bit instructions for addition in some additional cases,
932 implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
934 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
936 * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
937 Implemented RFE #1921450, changed some debug messages.
939 2008-03-30 Borut Razem <borut.razem AT siol.net>
941 * Small Device C Compiler 2.8.0 released
942 * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
943 * support/scripts/sdcc.nsi: added finish page; this version
944 was used for 2.8.0 release
945 * doc/knownbugs.html: removed; magically generated by the build
946 process using gen_known_bugs.pl from now on
948 2008-03-23 Borut Razem <borut.razem AT siol.net>
950 * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
951 and reverted it, since it was already fixed by Raphael ;-)
952 * doc/knownbugs.html: updated for RC2
954 2008-03-22 Raphael Neider <rneider AT web.de>
956 * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
959 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
961 * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
962 * support/regression/tests/bug1839277.c: added related testBug1839299
964 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
966 * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
967 * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
969 * src/mcs51/gen.c: throughout only output hex constants
970 * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
971 * support/regression/tests/bug1839277.c: new, added
973 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
975 * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
976 compilation warning about nested comments.
978 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
980 * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
981 * support/regression/tests/bug1921073.c: new, added
983 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
985 * src/z80/SDCCpeeph.c.c (callFuncByName):
986 Commented function parameters.
988 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
990 * src/z80/ralloc.c (packRegsForAccUse2):
991 disabled a broken accumulator packing optimization (fixed #1292721).
992 * support/regression/tests/bug-1292721: Regression test for #1292721.
994 2008-03-16 Raphael Neider <rneider AT web.de>
996 * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
997 fixed code bloat regression using a variant of patch #1915618
999 2008-03-16 Borut Razem <borut.razem AT siol.net>
1001 * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
1002 icon, changed startup menu for release distribution, code cleaning,
1003 create url files instead links in startup menu
1005 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
1007 * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
1008 * support/regression/tests/bug1579949.c: new, added
1010 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
1012 * device/lib/printf_fast.c: fixed bug 1255403
1014 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
1016 * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
1017 * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
1019 2008-03-14 Borut Razem <borut.razem AT siol.net>
1021 * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
1022 command line options
1023 * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
1024 is correctly displayed
1025 * as/link/z80/lkmain.c: usage line commented out
1027 2008-03-13 Borut Razem <borut.razem AT siol.net>
1029 * doc/sdccman.lyx: corrected to be able to convert to PDF,
1030 updated the list pf supported pic14 devices
1032 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
1034 * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
1036 2008-03-12 Borut Razem <borut.razem AT siol.net>
1038 * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
1039 fixed documentation request #1718191
1040 * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
1041 * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
1044 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
1046 * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
1047 * support/regression/tests/bug1505811.c: new, added
1049 2008-03-09 Raphael Neider <rneider AT web.de>
1051 * device/include/pic16/pic18f2620.h,
1052 * device/include/pic16/pic18f4620.h,
1053 * device/lib/pic16/libdev/pic18f2620.c,
1054 * device/lib/pic16/libdev/pic18f4525.c,
1055 * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
1056 family to consistently use pic18f4620.[ch], fixes #1832562
1058 2008-03-09 Borut Razem <borut.razem AT siol.net>
1060 * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1061 changed sdcc version to 2.8.0
1062 * knownbugs.html: regenerated
1063 * support/scripts/gen_known_bugs.pl: added number of open bugs
1065 2008-03-09 Raphael Neider <rneider AT web.de>
1067 * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
1068 (genOr): read volatile operand even if the result is known,
1070 (genOr,genXor): removed unused legacy code,
1071 (genDummyRead): use pic16_mov2w_volatile()
1073 2008-03-08 Borut Razem <borut.razem AT siol.net>
1075 * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
1076 cons w. --model-large
1077 * support/regression/staticinit.c: added regression test for bug
1080 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1082 * src/ds390/gen.c (pushSide, genPcall),
1083 * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
1084 * src/mcs51/gen.c: cosmetic changes
1085 * support/regression/fwk/include/testfwk.h: added macro reentrant
1086 * support/regression/tests/bug1908493.c: new, added
1088 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1090 * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
1092 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
1094 * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
1095 * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
1096 already set in ds390/main.c and mcs51/main.c
1098 2008-03-07 Raphael Neider <rneider AT web.de>
1100 * src/regression/init0.c: new test for initialized arrays of function
1102 * src/regression/Makefile: made a bit more flexible, added init0.c
1103 * src/pic/glue.c (emitIvals): hacky fix for initializing from function
1104 pointers, closes #1427663
1106 2008-03-05 Borut Razem <borut.razem AT siol.net>
1108 * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
1109 SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
1111 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1113 * support/librarian/sdcclib.c:Added feature request 1908061:
1114 Synchronise sdcclib commands with ar.
1116 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1118 * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
1119 and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
1120 SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
1121 * device/include/mcs51/compiler.h: removed umlauts, added double
1124 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
1126 * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
1127 * support/regression/tests/bug1536762.c: new, added
1129 * src/SDCCutil.h: added getBuildDate()
1130 * src/SDCCmain.c (printVersionInfo),
1131 * src/SDCCglue.c (initialComments): use getBuildDate() instead of
1133 * src/*/ralloc.c: removed IS_OP_RUONLY macro
1134 * src/ds390/ralloc.c (packRegisters),
1135 * src/mcs51/ralloc.c (packRegisters),
1136 * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
1138 * support/regression/tests/bug1618050.c: new, added
1139 * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
1140 * support/regression/fwk/include/testfwk.h,
1141 * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
1144 2008-03-04 Raphael Neider <rneider AT web.de>
1146 * src/pic/gen.c: removed unused prototypes, prevent internal errors
1147 on accessing OP_SYM_TYPE(op)
1148 * src/pic/gen.h: removed unused prototype of genMinusDec()
1149 * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
1150 fix #1876953 (invalid subtraction code), removed unused code
1152 2008-03-03 Raphael Neider <rneider AT web.de>
1156 * src/pic/genarith.c,
1158 * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
1159 AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
1161 2008-03-03 Raphael Neider <rneider AT web.de>
1163 * src/pic/device.c (find_device): search user-specified paths first
1164 for pic14devices.txt, fixes #1900827
1166 2008-03-02 Borut Razem <borut.razem AT siol.net>
1168 * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
1169 AddToPath and RemoveFromPath
1171 2008-03-01 Borut Razem <borut.razem AT siol.net>
1173 * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
1174 work correctly, added debugging support if -DSDCC.DEBUG command line
1177 2008-02-28 Borut Razem <borut.razem AT siol.net>
1179 * doc/sdccman.lyx: cosmetic changes
1181 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
1183 * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
1184 * doc/sdccman.lyx: fixed unmeant removal of spaces
1186 2008-02-27 Borut Razem <borut.razem AT siol.net>
1188 * support/scripts/sdcc.nsi: corrected installation directory for
1189 current user installation mode
1190 * doc/README.txt: added Philipp Klaus Krause to the developers list
1192 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
1194 * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
1195 return ifx condition
1196 (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
1197 genCodePointerGet, genGenPointerGet): cleanup aop before generating
1198 ifxJump to fix bug 1838000
1199 * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
1200 * support/regression/tests/bug1838000.c: new, added
1201 * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
1203 2008-02-26 Borut Razem <borut.razem AT siol.net>
1205 * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1207 * support/scripts/sdcc.nsi: added MULTIUSER page,
1208 NSIS upgraded to version 2.35
1210 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1212 * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1213 * support/regression/tests/bug1565152.c: new, added
1215 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1217 * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1218 * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1219 * support/regression/tests/bug1670148.c: new, added
1221 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1223 * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1225 2008-02-24 Borut Razem <borut.razem AT siol.net>
1227 * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1228 is ineffective for unsigned char parameter
1230 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1232 * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1233 * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1234 * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1235 * support/Util/MySystem.c (my_system): output errorcode when verbose
1237 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1239 * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1242 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1244 * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1247 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1249 * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1251 2008-02-21 Borut Razem <borut.razem AT siol.net>
1253 * support/regression/Makefile.in,
1254 support/regression/ports/ds390/spec.mk,
1255 support/regression/ports/hc08/spec.mk,
1256 support/regression/ports/mcs51-common/spec.mk,
1257 support/regression/ports/pic14/spec.mk,
1258 support/regression/ports/pic16/spec.mk,
1259 support/regression/ports/ucz80/spec.mk,
1260 support/regression/ports/xa51/spec.mk:
1261 added CFLAGS when compiling timeout
1263 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1265 * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1268 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1270 * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1271 * support/regression/tests/bug1888147.c: new, added
1273 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1275 * src/z80/gen.c: fixed bugs #1596270, #1736867
1277 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1279 * src/z80/gen.c: fixed bug in register pair loading when swapping register
1280 contents, mostly fixes #1596270
1282 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1284 * src/z80/peeph.def,
1285 * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1286 peepholes, fixes #1806565
1288 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1290 * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1291 * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1292 fixes bug 1739475, thanks Robert Larice
1293 (rule 271): new, added
1295 2008-02-18 Borut Razem <borut.razem AT siol.net>
1297 * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1299 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1301 * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1303 2008-02-17 Raphael Neider <rneider AT web.de>
1305 * src/pic16/genarith.c,
1308 * src/pic16/genutils.c: removed unused legacy code,
1309 removed unused fields from struct asmop and struct _G
1311 2008-02-17 Raphael Neider <rneider AT web.de>
1313 * src/pic16/gen.c (AccRsh): cosmetic changes,
1314 (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1315 genRightShiftLiteral): fixed to work with SFRs as result by
1316 assigning only once to result,
1317 removed a lot of unused/excluded code fragments
1319 2008-02-17 Raphael Neider <rneider AT web.de>
1321 * device/include/pic/pic16f88.h,
1322 * device/include/pic/pic16f886.h,
1323 * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1325 2008-02-17 Borut Razem <borut.razem AT siol.net>
1327 * src/z80/peeph.def: applied patch
1328 #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1329 * src/z80/gen.c, src/z80/peeph.def: applied patch
1330 #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1331 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1332 sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1333 sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1334 sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1335 enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1337 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1339 * as/link/mcs51/aslink.dsp: removed SDK define
1340 * as/link/z80/clean.mk: brought in sync with other ports
1341 * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1342 * as/hc08/Makefile.bcc,
1343 * as/mcs51/Makefile.bcc,
1344 * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1345 * src/z80/main.c (_setValues): use the now capitalized -Z,
1346 (z80_port, gbz80_port): generate debug information when asked
1348 2008-02-16 Borut Razem <borut.razem AT siol.net>
1350 * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1351 as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1352 as/z80/Makefile.in. as/z80/Makefile.bcc:
1353 applied patch #1893393: patch for as-z80 and link-z80 to generate
1354 cdb, thanks to Armin Diehl
1355 * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1356 as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1357 asnoice.c moved to as/asxxsrc/asnoice.c
1358 * src/z80/peeph-gbz80.def: applied patch
1359 #1880235: Z80 return peephole, thanks to Philipp Krause
1361 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1364 * doc/sdccman.lyx: bumped version to 2.7.5
1365 * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1367 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1369 * device/include/pic16/stdlib.h,
1370 * device/lib/pic16/libc/stdlib/ltoa.c,
1371 * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1373 2008-02-13 Borut Razem <borut.razem AT siol.net>
1375 * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1376 * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1377 src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1378 src/SDCCopt.c, src/SDCCval.c:
1379 fixed bug #1890273: SDCC Warning 154 shows wrong filename
1381 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1383 * src/SDCCsymt.c (compareType): fixed bug 1309013
1385 2008-02-09 Borut Razem <borut.razem AT siol.net>
1387 * src/SDCCval.c, src/SDCCval.h:
1388 code cleaning, added function constChrVal()
1389 * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
1390 call constChrVal() instead constVal()
1392 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
1394 * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
1397 * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
1398 * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1401 2008-02-01 Raphael Neider <rneider AT web.de>
1403 * device/include/pic/pic16f886.h,
1404 * device/include/pic/pic16f887.h: added RA6 and RA7
1406 2008-01-24 Raphael Neider <rneider AT web.de>
1408 * device/include/pic/pic16f88.h: added RA6 and RA7
1409 * device/lib/pic/libdev/disabled_pic16f886.c,
1410 * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
1412 * src/pic16/devices.inc,
1413 * device/include/pic16/pic18f2423.h,
1414 * device/include/pic16/pic18f2523.h,
1415 * device/include/pic16/pic18fregs.h,
1416 * device/lib/pic16/pics.all
1417 * device/lib/pic16/libdev/pic18f2423.c,
1418 * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
1419 * device/lib/pic16/libio/i2c.ignore,
1420 * device/lib/pic16/libio/usart.ignore,
1421 * device/lib/pic16/libio/adc.ignore: ignore new devices
1423 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
1425 * src/SDCCast.c (createRMW): fixed bug 1582651
1427 2008-01-20 Borut Razem <borut.razem AT siol.net>
1429 * src/SDCCcse.c: partially fixed enhancement request
1430 #1793872 - multiply by -1 not collapsed
1431 * support/regression/tests/arithcsi.c: added regression test
1433 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
1435 * as/mcs51/asx8051.dsp: removed define SDK
1436 * as/mcs51/i51mch.c (machine): fixed bug 1865114
1437 * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1439 * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1440 cosmetic changes, brought more in sync, changed old K&R to ANSI
1442 2008-01-13 Borut Razem <borut.razem AT siol.net>
1444 * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1445 * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1447 2007-12-30 Borut Razem <borut.razem AT siol.net>
1449 * src/pic16/gen.c: fixed implementation of bitwise operations for
1451 * support/regression/tests/bitwise.c: added test cases
1453 2007-12-29 Borut Razem <borut.razem AT siol.net>
1455 * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1456 * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1457 src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1458 * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1459 * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1460 src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1461 src/pic16/pcode.[ch]: added const qualifier
1462 * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1463 as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1464 as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1465 as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1466 * as/asxxsrc/aslex.c: use dbuf_getline()
1467 * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1468 as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1469 as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1470 as/z80/asm.h, as/z80/z80adr.c:
1471 changed type of ib and ip to const char *
1473 2007-12-28 Borut Razem <borut.razem AT siol.net>
1475 * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1476 introduced (readlin) - long lines are turuncated
1477 * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1478 as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1479 as/z80/Makefile.in: moved aslex.c to asxxsrc
1480 * as/hc08/aslex.c, as/z80/aslex.c: deleted
1481 * as/hc08/asmain.c, as/mcs51/asmain.c:
1482 added missing initialization of a_addr field
1483 * support/regression/tests/long_asm_line.c: added regtest for long
1486 2007-12-22 Borut Razem <borut.razem AT siol.net>
1488 * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1490 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1492 * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1494 2007-12-16 Borut Razem <borut.razem AT siol.net>
1496 * device/include/pic16/stdbool.h: removed, since already exists in
1497 device/include/; this also fixes bitopcse.c regression test for pic16
1499 * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1500 * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1501 dereference doesn't work; covered by regression test bug1399290
1503 2007-12-05 Borut Razem <borut.razem AT siol.net>
1505 * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1508 2007-12-01 Borut Razem <borut.razem AT siol.net>
1510 * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1511 corrected handling of the highest_valid_address
1513 2007-11-17 Raphael Neider <rneider AT web.de>
1515 * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1516 * src/pic/glue.c (picglue): emit .file if --debug is given
1518 2007-11-17 Raphael Neider <rneider AT web.de>
1520 * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1521 care when left or right operand resides in result, fixes #1830220
1523 2007-11-17 Borut Razem <borut.razem AT siol.net>
1525 * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1526 #983491 - "Merge duplicate strings function is ineffective"
1527 * support/regression/tests/bug-983491.c: regtest disabled
1528 * as/asxxsrc: created
1529 as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1530 as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1531 as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1532 as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1533 as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1534 as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1535 as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1536 as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1537 as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1538 as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1539 as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1540 as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1541 created as/asxxsrc directory, assym.c and strcpi.c moved into it
1543 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1545 * device/include/stdarg.h: added and removed some casts
1546 * src/SDCCsymt.c (compareType): Fully check types between generic and
1547 non-generic pointers, also accept ptr-ptr to void-ptr assignments
1549 2007-11-13 Borut Razem <borut.razem AT siol.net>
1551 * support/regression/tests/bug-1817005.c:
1552 added regtest for bug #1817005 - as-z80 chokes on long labels
1554 2007-11-12 Borut Razem <borut.razem AT siol.net>
1556 * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1557 as/z80/asout.c, as/z80/aslist.c:
1558 fixed bug #1817005 - as-z80 chokes on long labels
1560 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1563 * as/z80/asmain.c: cosmetic changes
1566 * as/z80/alloc.h: removed
1568 * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1569 * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1570 * as/link/hc08/Makefile.in,
1571 * as/link/mcs51/Makefile.in,
1572 * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1574 * as/link/mcs51/lkarea.c,
1575 * as/link/mcs51/lkmain.c: cosmetic changes
1576 * as/link/hc08/lklibr.c,
1577 * as/link/z80/lklibr.c,
1578 * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1579 used cygwin_conv_to_full_posix_path,
1580 added warnings, cosmetic changes, brought more in sync
1581 changed old K&R into ANSI function declarations
1582 * as/link/z80/lklibr.c (loadAdb): added
1583 * as/link/z80/lkmain.c: removed -- option from usage text
1585 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1587 * src/mcs51/gen.c (outBitC): optimized for no result
1589 2007-10-31 Borut Razem <borut.razem AT siol.net>
1591 * src/SDCCsymt.c: fixed (hopeful properly) bug
1592 #1805702 - order of extern matters
1593 * support/regression/tests/bug-1805702.c: enabled regtest for bug
1596 2007-10-29 Borut Razem <borut.razem AT siol.net>
1598 * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1599 - order of extern matters
1600 * support/regression/tests/bug-1805702.c: disabled regtest for bug
1603 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1605 * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1606 24bitMode, portIsDS390
1607 * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1608 * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1609 (notVolatileVariable): also check sloc names,
1610 (callFuncByName): moved ftab[] out of function and sorted it by use
1612 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1614 * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1615 * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1616 aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1617 * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1618 * support/regression/tests/bug-880197.c: new, added
1620 2007-10-28 Borut Razem <borut.razem AT siol.net>
1622 * support/regression/Makefile.in,
1623 support/regression/ports/mcs51-large/spec.mk,
1624 support/regression/ports/mcs51-xstack-auto/spec.mk,
1625 support/regression/ports/mcs51-stack-auto/spec.mk,
1626 support/regression/ports/mcs51-medium/spec.mk,
1627 support/regression/ports/mcs51-common/spec.mk,
1628 support/regression/ports/mcs51-common/*,
1629 support/regression/ports/mcs51-small/*:
1630 mcs51 renamed to mcs51-common, created mcs51-small
1631 * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1632 * support/regression/tests/bug-1805702.c: added regtest for bug
1635 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1637 * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1638 added new rules 265 - 270
1639 * support/regression/tests/bug1721024.c:new, added
1640 * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1641 introduced new test-mcs51 to run all mcs51 tests
1643 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1645 * support/regression/tests/bug1816470.c: new, added
1647 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1649 * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1650 propagate for *,+,- with float, fixed bug 1816470
1651 (decorateType): cast to resultTypeProp instead of resultType
1653 2007-10-19 Borut Razem <borut.razem AT siol.net>
1655 * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1656 function is ineffective" for pic16 tareget
1657 * support/scripts/listerr.c: corrected include path
1658 * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1661 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1663 * support/regression/tests/using.c: new, added
1664 * support/regression/tests/vaargs.c: fixed and enabled test
1666 2007-10-18 Borut Razem <borut.razem AT siol.net>
1668 * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1670 * support/regression/tests/bug-983491.c: added regtest for bug #983491
1672 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1674 * doc/sdccman.lyx: documented option --Werror
1675 * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1676 RegBankUsed[] earlier
1678 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1680 * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1684 * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1686 * src/SDCCast.c (decorateType): improved optimization of tri-op
1687 * src/SDCCerr.c (vwerror, setWError),
1689 * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1690 warnings as errors, thanks Stas Sergeev for PATCH 1813211
1692 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1694 * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1695 * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1696 * support/regression/tests/bug-223113.c,
1697 * support/regression/tests/bug-426632.c,
1698 * support/regression/tests/bug-468811.c,
1699 * support/regression/tests/bug-477835.c,
1700 * support/regression/tests/bug-478094.c,
1701 * support/regression/tests/bug-499644.c,
1702 * support/regression/tests/bug-524209.c,
1703 * support/regression/tests/bug-524211.c,
1704 * support/regression/tests/packcast.c,
1705 * support/regression/tests/structidx.c: added empty tests
1706 * support/regression/tests/bug-607243.c: enabled test
1708 2007-10-06 Borut Razem <borut.razem AT siol.net>
1710 * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1711 support of universal binaries on Mac OS X
1713 2007-10-02 Borut Razem <borut.razem AT siol.net>
1715 * src/SDCCval.h: unified double2ul macro for all platforms
1716 * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1717 * support/regression/tests/bitwise.c: added regtest for bug #1777758
1719 2007-09-30 Borut Razem <borut.razem AT siol.net>
1721 * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1723 * sdcc_vc_in.h: enabled warnings
1724 * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1725 unsigned type, result still unsigned
1726 * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1728 2007-09-28 Raphael Neider <rneider AT web.de>
1730 * src/pic/device.c (find_device): prevent buffer underflow error
1731 * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1732 the just destroyed list entry
1734 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1736 * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1739 2007-09-18 Borut Razem <borut.razem AT siol.net>
1741 * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1742 applied to unsigned type, result still unsigned
1744 2007-09-17 Borut Razem <borut.razem AT siol.net>
1746 * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1747 src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1748 src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1749 src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1750 src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1751 src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1752 src/z80/gen.c, src/z80/ralloc.c:
1753 fixed bug #1739860 - sdcc does not work correctly on some platforms
1755 introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1757 2007-09-17 Raphael Neider <rneider AT web.de>
1759 * src/pic16/device.c: reverted to previous version
1760 * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1762 2007-09-16 Raphael Neider <rneider AT web.de>
1764 * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1765 as this raises a ton of gpasm warnings, just emit a second label
1766 * src/pic16/devices.inc,
1767 * device/lib/pic16/pics.all,
1768 * device/lib/pic16/libdev/pic18f2585.c,
1769 * device/lib/pic16/libdev/pic18f2680.c,
1770 * device/lib/pic16/libdev/pic18f2682.c,
1771 * device/lib/pic16/libdev/pic18f2685.c,
1772 * device/lib/pic16/libdev/pic18f4585.c,
1773 * device/lib/pic16/libdev/pic18f4680.c,
1774 * device/lib/pic16/libdev/pic18f4682.c,
1775 * device/lib/pic16/libdev/pic18f4685.c,
1776 * device/include/pic16/pic18f2585.h,
1777 * device/include/pic16/pic18f2680.h,
1778 * device/include/pic16/pic18f2682.h,
1779 * device/include/pic16/pic18f2685.h,
1780 * device/include/pic16/pic18f4585.h,
1781 * device/include/pic16/pic18f4680.h,
1782 * device/include/pic16/pic18f4682.h,
1783 * device/include/pic16/pic18f4685.h,
1784 * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1785 18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1786 patch contributed by Anton Strobl, applied with changes
1788 2007-09-16 Raphael Neider <rneider AT web.de>
1790 * device/include/pic16/pic18f2431.h,
1791 * device/include/pic16/pic18f25j10.h,
1792 * device/include/pic16/pic18f4431.h,
1793 * device/include/pic16/pic18f45j10.h: adopted common include style
1794 * device/include/pic16/pic18f1320.h,
1795 * device/include/pic16/pic18f2320.h,
1796 * device/include/pic16/pic18f2525.h,
1797 * device/include/pic16/pic18f4320.h,
1798 * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1799 * device/include/pic16/pic18fregs.h: prepared for automatic include
1800 file selection by having DEVICE.h for every DEVICE
1801 * device/lib/pic16/libdev/pic18f2320.c,
1802 * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1804 * device/lib/pic16/configure.in,
1805 * device/lib/pic16/configure: use rm -rf instead of rmdir
1806 * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1807 * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1809 2007-09-09 Borut Razem <borut.razem AT siol.net>
1811 * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1812 distingush between i386 and ppc Mac OS X versions
1814 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1816 * src/mcs51/gen.c (genReceive): fixed bug 1788177
1817 * support/regression/tests/bug1788177.c: new, added
1819 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1821 * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1822 * device/include/mcs51/lint.h added keyword __naked
1824 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1828 * src/SDCCmem.h: removed maxRegBank
1829 * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1830 RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1831 * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1832 * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1833 name and behaviour to handle banked functions
1834 (scan4op): and use it to fix bug 1786213
1836 2007-09-03 Raphael Neider <rneider AT web.de>
1838 * device/include/pic16/pic18f248.h,
1839 * device/include/pic16/pic18f258.h,
1840 * device/include/pic16/pic18f448.h,
1841 * device/lib/pic16/libdev/pic18f248.c,
1842 * device/lib/pic16/libdev/pic18f258.c,
1843 * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1844 added T0CONbits, fixes #1786891
1846 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1848 * src/ds390/gen.c (genFarPointerSet),
1849 * src/hc08/ralloc.c (packRegisters),
1850 * src/mcs51/ralloc.c (packRegisters),
1851 * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1853 * src/SDCCicode.h: POINTER_SET can be true for literals too
1854 * support/regression/tests/bug1750318.c: new, added
1856 2007-08-23 Borut Razem <borut.razem AT siol.net>
1858 * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1859 library versions without the completition functionality
1861 2007-08-22 Raphael Neider <rneider AT web.de>
1863 * device/include/pic16/pic18f1220.h,
1864 * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1866 2007-08-12 Borut Razem <borut.razem AT siol.net>
1868 * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1870 2007-08-11 Borut Razem <borut.razem AT siol.net>
1872 * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1873 src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1874 support/Util/SDCCerr.[ch] moved to src
1875 * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1876 as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1877 device/examples/ds390/tinitalk/tinitalk.dsp,
1878 device/examples/serialcomm/windows/serialcomm.dsp,
1879 support/librarian/librarian.dsp:
1880 removed linking of unused odbc32.lib and odbccp32.lib
1881 * support/scripts/winres.h:
1882 added for compilation with Visual C++ 2005 Express Edition
1884 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1886 * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1889 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1891 * sdccconf_in.h: update the endian test so that SPARC Solaris
1892 does not throw syntax errors
1894 2007-08-06 Borut Razem <borut.razem AT siol.net>
1896 * doc/sdccman.lyx: removed two index entries which prevented the
1897 generation of sdcc doc archive
1899 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1901 * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1902 instead of lyx 1.5.0.
1904 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1906 * device/include/hc08/mc68hc908apxx.h: new header contributed by
1907 Lucas Loizaga, with minor modifications. Thanks!
1909 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1911 * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1914 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1916 * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1917 src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1920 2007-07-22 Borut Razem <borut.razem AT siol.net>
1922 * configure.in, configure: re-introduced .version
1923 * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1924 the version reverted to 2.7.0
1926 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1929 * doc/sdccman.lyx: bumped version to 2.7.3
1930 * device/include/mcs51/compiler.h: fixed elif->else
1931 * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1932 * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1933 (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1934 enable accuse for bit operands
1935 * src/SDCCmain.c (printVersionInfo),
1936 * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1937 environment descriptor
1938 * src/SDCCutil.h: added getBuildEnvironment
1939 * src/SDCCglue.c (initialComments): use getBuildEnvironment
1940 * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1941 * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1942 * support/regression/tests/bug1348008.c,
1943 * support/regression/tests/bug1496419.c,
1944 * support/regression/tests/bug1503067.c,
1945 * support/regression/tests/preproc.c: added empty tests
1947 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1949 * support/regression/tests/bug1678803.c: new, added
1951 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1954 * as/link/hc08/lkihx.c,
1955 * as/link/hc08/lkrloc.c,
1956 * as/link/mcs51/lkihx.c,
1957 * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1958 ihxExtendedLinearAddress
1959 * as/link/mcs51/lkrloc.c (relr),
1960 * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1961 acall/ajmp, see bug 830513
1963 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1965 * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1966 (cseBBlock): remember aggr2ptr has been used
1967 * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1968 (geniCodeAssign): fixed bug 868103
1969 * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1970 added operandSize prototype
1971 * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1972 (genDataPointerSet): use max of size of right and result,
1973 (gencjne): added parameter useCarry for optimization,
1974 (genCmpEq): use carry if appropriate,
1975 (genXor): check if operand already in carry
1976 * support/regression/tests/bug-868103.c: enabled test
1978 2007-07-12 Raphael Neider <rneider AT web.de>
1980 * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1982 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1984 * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1985 from Robert Larice, thanks
1986 * support/regression/tests/bitopcse.c,
1987 * support/regression/tests/bitvars.c,
1988 * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1989 * support/regression/tests/bug-927659.c: enabled test for z80
1990 * support/regression/tests/bug1738367.c: added extra tests by Frieder
1991 * support/regression/tests/bug1745717.c: new, added
1992 * support/regression/tests/literalop.c,
1993 * support/regression/tests/nullstring.c: removed storage definitions that
1994 are now in testfwk.h
1996 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1998 * device/include/stdbool.h: do not define __bool_true_false_are_defined
1999 and bool for targets that do not fully support it.
2000 * support/regression/tests/bug1546986.c,
2001 * support/regression/tests/bug1723128.c,
2002 * support/regression/tests/bug1734654.c,
2003 * support/regression/tests/bug1738367.c,
2004 * support/regression/tests/constantRange.c: only use bool if allowed
2006 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
2008 * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
2009 Larice, also handle function pointers
2010 * support/regression/tests/bug1749275.c: new, added
2012 2007-07-03 Borut Razem <borut.razem AT siol.net>
2014 * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
2015 src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
2016 #1746528: SDCC should ignore ':' in inline assembler comments
2017 * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
2019 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
2021 * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
2022 * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
2024 2007-06-29 Borut Razem <borut.razem AT siol.net>
2026 * src/SDCCmain.c: fixed bug
2027 #1744746: SDCC #4867: broken option --xram-size
2029 2007-06-28 Borut Razem <borut.razem AT siol.net>
2031 * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
2032 find out the endianess of host machine for ucsim
2034 2007-06-27 Borut Razem <borut.razem AT siol.net>
2036 * support/regression/generate-cases.py: corrected the file name
2038 * configure.in, configure, sdccconf_in.h: find out the endianess of
2040 * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
2043 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
2045 * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
2047 2007-06-26 Borut Razem <borut.razem AT siol.net>
2049 * support/regression/generate-cases.py: display warning if function
2050 list is empty; implemented more flexible rule for detection of
2051 testing functions, allowing return type 'void' in the same line as
2052 the function name in the function definition
2053 * support/regression/tests/bug-1654060.c: corrected test
2054 * support/librarian/sdcclib.c: fixed warning:
2055 format '%s' expects type 'char *', but argument 2 has type 'int'
2057 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2059 * support/librarian/sdcclib.c: Added feature Requests [1510635]
2060 Multiple infiles for sdcclib.
2062 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2064 * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
2067 2007-06-18 Borut Razem <borut.razem AT siol.net>
2069 * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
2070 how to handle comments, so they have to be removed by the
2071 preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
2072 * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
2073 src/pic16/main.c, src/pic/main.c, src/z80/main.c,
2074 support/Util/SDCCerr.c, support/Util/SDCCerr.h:
2075 table driven option hadling
2077 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
2079 * src/SDCCast.c (decorateType),
2080 * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
2081 iCode to ast level to fix bug 1738367
2082 * support/regression/tests/bug1738367.c: new, added
2084 2007-06-15 Raphael Neider <rneider AT web.de>
2086 * src/pic16/devices.inc,
2087 * device/lib/pic16/pics.all,
2088 * device/include/pic16/pic18fregs.h,
2089 * device/include/pic16/pic18f[24][45]20.h,
2090 * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
2091 18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
2092 * device/lib/pic16/Makefile.in: faster cleanup
2094 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2096 * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
2098 2007-06-13 Raphael Neider <rneider AT web.de>
2100 * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
2102 2007-06-12 Raphael Neider <rneider AT web.de>
2104 * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
2105 suppress bit defines if NO_BIT_DEFINES is #define'd
2106 * device/include/pic/pic*.h: recreated all headers to include
2107 conditional bit defines
2108 * device/include/pic/pic16f886.h,
2109 * device/include/pic/pic16f887.h: fixed based on newer .inc file
2110 * device/include/pic/recreate.sh: script to recreate the complete
2111 device library files based on the currently supported devices
2113 2007-06-12 Borut Razem <borut.razem AT siol.net>
2115 * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
2116 support/regression/Makefile.in, support/scripts/build.mak,
2117 support/scripts/Makefile.snapshot:
2118 use new svn URL scheme
2119 * doc/sdccman.lyx: SDCC Wiki moved to
2120 http://sdcc.wiki.sourceforge.net/
2122 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2124 * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
2125 * support/regression/tests/bug1734654.c: added
2127 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
2129 * src/SDCCast.c (decorateType): optimized '?' for equal operands
2130 * src/SDCCicode.c (geniCodeConditional): optimization for bit result
2131 with literal operands
2133 2007-06-10 Borut Razem <borut.razem AT siol.net>
2135 * as/link/z80/lklibr.c: fixed mingw build warning
2136 lklibr.c:575: warning: implicit declaration of function 'tolower'
2137 * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
2138 src/z80/main.c: move target specific options from src/SDCCmain.c
2139 to src/<target>/main.c
2141 2007-06-09 Borut Razem <borut.razem AT siol.net>
2143 * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
2144 removed unused swap_sense; removed outBitCLong, replaced with outBitC
2145 * support/regression/tests/bug-1294691.c: added
2147 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
2149 * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
2150 can also be static, fixes bug 1733438
2151 * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
2152 have absolute address too
2153 (computeType): added optimization for 'cond ? true : false'
2154 * support/regression/tests/absolute.c: added test for static absolute var
2156 2007-06-08 Raphael Neider <rneider AT web.de>
2158 * src/regression/Makefile: suppress parallel builds, allow easy
2159 switching between pic14/pic16 ports
2160 * src/regression/picregs.h: added pic14/16 header file switch
2161 * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
2162 inline.c,nestfor.c,string1.c}: include "picregs.h"
2164 2007-06-07 Borut Razem <borut.razem AT siol.net>
2166 * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
2167 permanent solution to suppress GCC 4.2.0 c++ warning:
2168 deprecated conversion from string constant to `char *'
2169 use 'const char *' where ever required
2170 * support/regression/generate-cases.py: implemented more flexible rule
2171 for detection of testing functions, allowing white-spaces surrounding
2172 the function name and the 'void' parameter.
2173 * support/regression/tests/constantRange.c,
2174 support/regression/tests/scott-compare3.c: fixed failing regression
2175 tests, uncovered by implementation of more flexible rule for detection
2176 of testing functions
2178 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
2180 * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
2182 2007-06-04 Borut Razem <borut.razem AT siol.net>
2184 * configure.in, configure, config_vc.awk: sdcc version number is now
2185 stored in configure.in; removed .version
2186 * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
2187 doc/INSTALL.txt: version bumped to 2.7.2
2188 * sim/ucsim/configure.in, sim/ucsim/configure:
2189 use "read" to read from .version
2191 2007-06-03 Borut Razem <borut.razem AT siol.net>
2193 * */Makefile.in: removed annoying warning:
2194 Makefile:xx: Makefile.dep: No such file or directory
2196 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
2198 * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
2199 (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
2200 * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
2201 * src/SDCCast.c (resultTypePropagate): propagate for '!',
2202 (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
2203 bugfix: only use newBoolLink for bit result type
2204 * src/SDCCicode.c (geniCodeLogic): added param tree,
2205 bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2206 (geniCodeLogicAndOr): use IS_BIT,
2207 (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2208 (ast2iCode): added tree param to geniCodeLogic for comparisons
2209 * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2210 * support/regression/tests/bug1723128.c: added test NotZero
2212 2007-06-01 Borut Razem <borut.razem AT siol.net>
2214 * SDCPP synchronized with GCC CPP release version 4.2.0,
2215 currently the latest release:
2216 * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2217 support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2218 support/cpp2/cppdefault.h, support/cpp2/except.h,
2219 support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2220 support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2221 support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2222 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2223 support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2224 support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2225 support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2226 support/cpp2/opts.h, support/cpp2/output.h,
2227 support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2228 support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2229 support/cpp2/system.h, support/cpp2/version.c,
2230 support/cpp2/Makefile.in: modified
2231 * support/cpp2/opts-common.c: added
2232 * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2233 * device/lib/pic16/libdev/pic18f[24]5j10.c:
2234 search for included source file in local directory
2235 * sim/ucsim/configure, sim/ucsim/configure.in:
2236 temporary solution to suppress GCC 4.2.0 c++ warning:
2237 deprecated conversion from string constant to `char *'
2239 2007-06-01 Raphael Neider <rneider AT web.de>
2241 * device/lib/pic/libdev/pic12f683.c,
2242 * device/include/pic/pic12f683.h: added GPIO bits
2244 2007-06-01 Raphael Neider <rneider AT web.de>
2246 * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2247 quotation marks, clarified role of PIC14 vs. PIC16 ports
2248 * src/pic16/devices.inc,
2249 * device/include/pic16/pic18fregs.h,
2250 * device/include/pic16/pic18f[24][45]j10.h,
2251 * device/lib/pic16/pics.all,
2252 * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2253 18f24j10, 18f25j10, 18f44j10, and 18f45j10
2254 * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2255 for new devices as they are not yet supported by gputils
2257 2007-05-31 Borut Razem <borut.razem AT siol.net>
2259 * Small Device C Compiler 2.7.0 released
2260 * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2261 changed sdcc version to 2.7.1
2262 * support/scripts/sdcc.nsi: added How to create WIN32 release
2265 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2267 * doc/sdccman.lyx: documented initialization and allocation of absolute
2268 variables, bit parameter passing, the need for function pointers to be
2269 reentrant and alpha quality support of inline and retrict
2271 2007-05-26 Borut Razem <borut.razem AT siol.net>
2273 * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2274 support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2275 * docs/knownbugs.html: updated
2277 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2279 * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2281 * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2283 (gencjneshort): optimized when left is AOP_DIR
2284 * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2285 initializing unions in a struct/array
2286 * support/regression/fwk/include/testfwk.h: added defines for data, near
2287 and far for host and z80
2288 * support/regression/tests/bug1723128.c: new, added
2290 2007-05-22 Borut Razem <borut.razem AT siol.net>
2292 * doc/knownbugs.html: updated
2294 2007-05-21 Raphael Neider <rneider AT web.de>
2296 * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2297 error message instead
2298 * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2300 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2302 * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2304 2007-05-21 Raphael Neider <rneider AT web.de>
2306 * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2308 * src/regression/gpsim_assert.h,
2309 * src/regression/Makefile,
2310 * src/regression/pcodeopt.c: regression test for the above fix
2312 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2314 * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2315 jumps to self, fixed bug 1717281
2317 2007-05-10 Borut Razem <borut.razem AT siol.net>
2319 * support/scripts/gen_known_bugs.pl: cosmetic fix
2320 * doc/knownbugs.html: generated by gen_known_bugs.pl
2322 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2324 * src/SDCCast.c (createFunction): also generate non-inlined version of
2325 function for functions declared as "static inline"
2326 * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2327 function can be inlined after non-inlined version generated.
2329 2007-05-10 Borut Razem <borut.razem AT siol.net>
2331 * support/scripts/gen_known_bugs.pl: added script
2332 which generates knownbugs.html
2334 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2336 * doc/knownbugs.html: updated for release 2.7.0
2338 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2340 * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2342 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2344 * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2345 (throughout): updated generating comments
2346 * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2347 (throughout): updated generating comments
2348 * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2349 rule instead of at the second, or it might skip lines when removing the
2351 * support/regression/tests/bug1714204.c: changed test to foo
2353 2007-05-08 Borut Razem <borut.razem AT siol.net>
2355 * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2356 thanks to SDCC Distributed Compile Farm members,
2357 added Z80 and GBZ80 command line options
2358 * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2360 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2362 * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2363 * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2364 * support/regression/tests/longlit.c: modified to be tested at all and
2365 to pass the actual test
2367 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2369 * device/include/mcs51/uPSD33xx.h: Added.
2371 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2373 * device/lib/_gptrput.c,
2374 * device/lib/_gptrget.c: removed old code,
2376 * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2377 * support/regression/tests/bug1714204.c: new, added
2379 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2381 * support/regression/tests/regtrack.c: test was never executed
2382 because of the regression test being picky about white spaces.
2383 * device/lib/mcs51/crtclear.asm: added comment
2385 2007-05-06 Raphael Neider <rneider AT web.de>
2387 * device/lib/pic/Makefile.rules,
2388 * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
2389 made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
2391 2007-05-06 Raphael Neider <rneider AT web.de>
2393 * src/pic16/device.h,
2395 * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
2396 _pic16_setDefaultOptions): removed/reordered command-line args
2397 * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
2398 devices, regrouped command line args, environment variables),
2399 clarified sone points, added sections on how to add devices to the
2402 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
2404 * src/z80/peeph.def: fixed bug in rule 2
2406 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
2408 * src/port.h: added TARGET_MCS51_LIKE
2409 * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
2410 take advantage of it too
2411 * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
2412 (shiftR2Left2Result): Optimized: don't check shifting by 0
2413 * src/z80/peeph-z80.def,
2414 * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
2415 modifications, see patch 1700823
2416 * src/mcs51/peep.c (): fixed bug 1712928
2417 * support/regression/tests/bug1712928.c: new, added
2419 2007-05-05 Borut Razem <borut.razem AT siol.net>
2421 * device/lib/pic16/Makefile.common.in,
2422 device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
2423 removed bash dependencies
2425 2007-05-01 Borut Razem <borut.razem AT siol.net>
2428 fixed bug #1710507: --i-code-in-asm makes compile fail
2429 all iCode comments are now one liners
2430 * src/mcs51/gen.c: fixed memory leak
2432 2007-05-01 Raphael Neider <rneider AT web.de>
2434 * device/lib/pic/libdev/*.c
2435 * device/include/pic/*.h: regenerated all device libs from updated
2437 * support/scripts/inc2h.pl: documented usage, now uses strict to
2440 2007-04-30 Borut Razem <borut.razem AT siol.net>
2443 fixed bug #1669175: Problem with space in output paths
2444 documented how to use paths with spaces for Windows users
2446 2007-04-29 Borut Razem <borut.razem AT siol.net>
2448 * Fixed svn:eol-style and svn:keywords properties
2449 * src/SDCCval.c: fixed bug
2450 #1592871: Segfault with "large" const arrays of characters
2451 replaced recursion with iteration
2452 * Removed svn:executable property from non-executable files
2454 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2456 * src/mcs51/gen.c (genRet): fixed bug 1707003
2458 2007-04-27 Raphael Neider <rneider AT web.de>
2460 * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2461 createReachingDefinitions,assignValnums,pic16_destructDF,
2462 pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2463 prevent NULL pointer dereferences
2464 * device/lib/pic/libdev/pic16f886.c,
2465 * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2466 prevent building them, gputils do not really support them yet
2468 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2470 * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2471 helps printf_small. 32 bytes more __idata mem.
2473 2007-04-27 Raphael Neider <rneider AT web.de>
2475 * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2476 return early when pb or pb->pcHead is NULL (patch #1708427)
2477 * src/regression/empty.c,
2478 * src/regression/Makefile: added test with empty functions
2479 * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2481 2007-04-27 Borut Razem <borut.razem AT siol.net>
2483 * src/SDCCast.c: fixed feature request
2484 #1547512: Redundant strings linked when using sizeof("abc")
2486 2007-04-23 Borut Razem <borut.razem AT siol.net>
2488 * doc/sdccman.lyx, src/SDCCmain.c:
2489 peep-hole comments are generated only if --fverbose-asm option is
2490 specified and --no-peep-comments is not, as proposed by Frieder.
2491 * support/regression/Makefile.in: compile regression tests with
2492 --fverbose-asm option so one can "grep" whether a new (or an old)
2493 peephole is (still) applied; requested by Frieder.
2495 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2497 * device/include/pic/pic16f886.h,
2498 * device/include/pic/pic16f887.h,
2499 * device/lib/pic/libdev/pic16f886.c,
2500 * device/lib/pic/libdev/pic16f887.c,
2501 * device/include/pic/pic14devices.txt,
2502 * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2504 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2506 * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2509 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2511 * device/lib/_memset.c: assembler version for mcs51
2513 2007-04-22 Borut Razem <borut.razem AT siol.net>
2515 * support/scripts/listerr.c: program to create the list of errors and
2516 warnings list from - added
2517 * doc/sdccman.lyx: removed the note
2518 "For list of warnings and corresponding codes, see err_warn.txt"
2519 * src/SDCCsymt.c: fixed bug #1699804:
2520 Bug with some uses of sizeof(static local array) (MCS51)
2521 * support/regression/tests/bug-1699804.c: added
2523 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2525 * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2526 (main): added option -i,
2527 (asmbl, case S_INCL): use search_path_fopen,
2528 mostly from patch 1579668 by Peter Miller, thanks
2529 * src/z80/main.c: fixed typo --callee-saves-bc
2530 * device/include/mcs51/compiler.h: added sfrword for Tasking
2532 2007-04-20 Borut Razem <borut.razem AT siol.net>
2534 * src/z80/main.c: replaced reserved keyword asm with asmblr
2536 2007-04-19 Borut Razem <borut.razem AT siol.net>
2538 * src/port.h: use const pointers to strings
2539 * src/SDCCargs.h: declared getStringArg() and getIntArg()
2540 * src/pic16/main.c: include SDCCargs.h
2541 * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2542 const char, since the strings are dynamically allocated
2543 * src/SDCCmain.c: options.code_seg and options.const_seg are
2544 dynamically allocated; check port specific command line options
2545 before the general ones
2546 * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2548 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2550 * device/include/ds400rom.h,
2551 * device/lib/ds390/lcd390.c,
2552 * device/lib/ds390/memcpyx.c,
2553 * device/lib/ds390/rtc390.c,
2554 * device/lib/ds400/ds400rom.c,
2555 * device/lib/ds400/memcpyx.c,
2556 * device/lib/hc08/_ret.c: more replacements of keywords with their
2557 double underscore equivalents
2558 * device/lib/ds390/Makefile.in,
2559 * device/lib/ds400/Makefile.in,
2560 * device/lib/gbz80/Makefile.in,
2561 * device/lib/hc08/Makefile.in,
2562 * device/lib/mcs51/Makefile.in,
2563 * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2565 2007-04-17 Borut Razem <borut.razem AT siol.net>
2567 * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2568 src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2569 fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2570 to --fverbose-asm, to be gcc'ish
2572 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2574 * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2576 2007-04-17 Borut Razem <borut.razem AT siol.net>
2578 * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2579 * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2580 device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2581 with their double underscore equivalent
2583 2007-04-14 Borut Razem <borut.razem AT siol.net>
2585 * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2588 2007-04-13 Borut Razem <borut.razem AT siol.net>
2590 * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2592 * device/examples/serialcomm/windows/serial.[ch],
2593 device/examples/serialcomm/windows/test_serialcomm.cpp:
2594 updated by Bela Torok
2595 * device/examples/serialcomm/windows/serialcomm.dsw,
2596 device/examples/serialcomm/windows/serialcomm.dsp: added
2598 2007-04-13 Jan Waclawek <wek AT efton.sk>
2600 * doc/sdccman.lyx: additions and changes at various places
2601 (submitted as #1697136).
2602 (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2604 2007-04-10 Borut Razem <borut.razem AT siol.net>
2606 * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2607 LyX file format changed to 245
2608 * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2609 "FreeWare" replaced with "free open source"
2611 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2613 * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2615 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2617 * device/include/pic16/pic18fregs.h,
2619 * device/lib/_decdptr.c,
2620 * device/lib/_divsint.c,
2621 * device/lib/_divslong.c,
2622 * device/lib/_divuint.c,
2623 * device/lib/_divulong.c,
2624 * device/lib/_fs2schar.c,
2625 * device/lib/_fs2sint.c,
2626 * device/lib/_fs2slong.c,
2627 * device/lib/_fs2uchar.c,
2628 * device/lib/_fs2uint.c,
2629 * device/lib/_fs2ulong.c,
2630 * device/lib/_fsadd.c,
2631 * device/lib/_fscmp.c,
2632 * device/lib/_fsdiv.c,
2633 * device/lib/_fseq.c,
2634 * device/lib/_fsget1arg.c,
2635 * device/lib/_fsget2args.c,
2636 * device/lib/_fsgt.c,
2637 * device/lib/_fslt.c,
2638 * device/lib/_fsmul.c,
2639 * device/lib/_fsneq.c,
2640 * device/lib/_fsnormalize.c,
2641 * device/lib/_fsreturnval.c,
2642 * device/lib/_fsrshift.c,
2643 * device/lib/_fssub.c,
2644 * device/lib/_fsswapargs.c,
2645 * device/lib/_gptrget.c,
2646 * device/lib/_gptrgetc.c,
2647 * device/lib/_gptrput.c,
2648 * device/lib/_logexpf.c,
2649 * device/lib/_modsint.c,
2650 * device/lib/_modslong.c,
2651 * device/lib/_moduint.c,
2652 * device/lib/_modulong.c,
2653 * device/lib/_mulint.c,
2654 * device/lib/_mullong.c,
2655 * device/lib/_schar2fs.c,
2656 * device/lib/_ser.c,
2657 * device/lib/_setjmp.c,
2658 * device/lib/_sint2fs.c,
2659 * device/lib/_slong2fs.c,
2660 * device/lib/_spx.c,
2661 * device/lib/_uchar2fs.c,
2662 * device/lib/_uint2fs.c,
2663 * device/lib/_ulong2fs.c,
2664 * device/lib/asincosf.c,
2665 * device/lib/atanf.c,
2666 * device/lib/calloc.c,
2667 * device/lib/ds390/tinibios.c,
2668 * device/lib/ds400/tinibios.c,
2669 * device/lib/expf.c,
2670 * device/lib/free.c,
2671 * device/lib/hc08/_mulint.c,
2672 * device/lib/logf.c,
2673 * device/lib/malloc.c,
2674 * device/lib/printf_fast.c,
2675 * device/lib/printf_tiny.c,
2676 * device/lib/printfl.c,
2677 * device/lib/realloc.c,
2678 * device/lib/ser_ir.c,
2679 * device/lib/serial.c,
2680 * support/regression/tests/libmullong.c: replaced all special keywords
2681 with their double underscore equivalent
2682 * support/regression/ports/mcs51-xstack-auto/spec.mk,
2683 * device/lib/Makefile.in: compile libs with --std-c99 instead of
2685 * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2686 (genRet): if the bit-symbol is ruonly it already is in the carry
2687 * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2688 * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2689 * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2690 type UCHAR if dest is not bit
2692 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2694 * device/include/math.h,
2695 * device/lib/cotf.c,
2696 * device/lib/expf.c,
2697 * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2699 2007-04-01 Borut Razem <borut.razem AT siol.net>
2701 * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2702 fixed bug #1692042: input buffer overflow...scanner uses REJECT
2703 * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2704 gcc_unreachable() called internal_error()...
2706 2007-03-30 Raphael Neider <rneider AT web.de>
2708 * src/pic/ralloc.c (isData): suppress garbage debug output
2710 2007-03-28 Borut Razem <borut.razem AT siol.net>
2713 "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2714 is developed, built and used worldwide, and the word "night" doesn't
2717 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2719 * device/include/mcs51/C8051F360.h: new, added
2720 * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2722 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2724 * src/SDCC.y (declaration_specifiers, function_specifier),
2725 * support/Util/SDCCerr.c,
2726 * support/Util/SDCCerr.h,
2728 * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2730 * src/SDCCmem.c (deallocParms),
2731 * src/SDCCast.c: support for function inlining, not quite complete
2732 * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2733 'restrict' qualifier
2735 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2737 * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2738 (saveRBank, unsaveRBank): don't save bits,
2739 (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2740 * support/regression/tests/bug1535242.c: new, added
2741 * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2742 thanks Alexey Shamrin <shamrin AT gmail.com>,
2743 made assert.h header ANSI compliant (added a check for NDEBUG macro,
2744 removed header guard)
2746 * sdcc.spec: bumped version to 2.6.5
2747 * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2749 2007-03-22 Borut Razem <borut.razem AT siol.net>
2751 * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2752 fixed bug #1653671: sdcdb integration into ddd is broken
2754 2007-03-22 Raphael Neider <rneider AT web.de>
2756 * src/pic/gen.c (popGetExternal): augmented to also create references
2757 to external variables (not only labels),
2758 (genCall): comment on plan to reduce PAGESEL overhead,
2759 (genFunction, genEndFunction): also save/restore FSR around interrupt
2760 handling code, removed lots of unused code
2761 (genDivOneByte): release acquired temp register
2762 * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2764 * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2765 for registers that need to be saved during interrupts (FSR, STATUS,
2766 PCLATH; W needs special handling), currently only FSR is used
2768 2007-03-22 Raphael Neider <rneider AT web.de>
2770 * device/include/pic/pic14devices.txt: 16f688 has only one config word
2772 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2774 * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2776 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2778 * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2780 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2782 * as/link/aslink.h: added LKOBJEXT
2783 * as/link/hc08/link_hc08.dsp,
2784 * as/link/hc08/Makefile.bcc,
2785 * as/link/hc08/Makefile.in,
2786 * as/link/mcs51/aslink.dsp,
2787 * as/link/mcs51/Makefile.bcc,
2788 * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2789 * as/link/hc08/lkaomf51.c, as/link/mcs51/lkaomf51.c,
2790 * as/link/lkaomf51.c: merged and moved
2791 * as/link/hc08/lkdata.c, as/link/mcs51/lkdata.c,
2792 * as/link/z80/lkdata.c,
2793 * as/link/lkdata.c: merged and moved
2794 * as/link/hc08/lkmain.c,
2795 * as/link/mcs51/lkmain.c: cosmetic changes
2796 * as/link/z80/lkeval.c, as/link/lkeval.c: merged
2797 * as/link/lklex.c: use LKOBJEXT
2798 * as/link/z80/lklist.c, as/link/lklist.c: merged,
2799 ANSI-fied functions, removed bubble-sorts
2800 * as/link/z80/lksym.c as/link/lksym.c: merged,
2802 * as/link/z80/linkgbz80.dsp,
2803 * as/link/z80/linkz80.dsp,
2804 * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2805 moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2806 * as/link/z80/lkhead.c,
2807 * as/link/z80/lklex.c: deleted
2808 * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2809 * as/link/z80/lkmain.c: added copyfile()
2811 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2813 * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2815 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2817 * device/lib/_strlen.c: assembler version for mcs51
2819 2007-03-13 Raphael Neider <rneider AT web.de>
2821 * device/include/pic16/pic18f2221.h,
2822 * device/include/pic16/pic18f2321.h,
2823 * device/include/pic16/pic18f2331.h,
2824 * device/include/pic16/pic18f4221.h,
2825 * device/include/pic16/pic18f4321.h,
2826 * device/include/pic16/pic18f4331.h: fixed config byte location names
2827 * support/scripts/inc2h-pic16.pl: removed debug output, emit
2828 consistently named config byte locations
2830 2007-03-13 Borut Razem <borut.razem AT siol.net>
2832 * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2833 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2834 sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2835 as/link/z80/Makefile.in, as/z80/Makefile.in:
2838 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2840 * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2841 * device/lib/printf_large.c: pointer was converted to generic
2842 pointer for mcs51 models other than model-small (Maarten noticed)
2844 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2846 * device/include/mcs51/ADuC84x.h: Added.
2848 2007-03-10 Borut Razem <borut.razem AT siol.net>
2850 * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2851 fixed RFE #1624219: double backslashes in filenames;
2852 functions hexEscape(), octalEscape() and copyStr() moved from
2853 SDCCval.c to SDCCutil.c and made them glovbally available
2855 2007-03-09 Borut Razem <borut.razem AT siol.net>
2857 * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2858 src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2859 1673361: Missaligned comments in output files
2861 2007-03-09 Raphael Neider <rneider AT web.de>
2863 * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2865 2007-03-09 Raphael Neider <rneider AT web.de>
2869 * src/pic/ralloc.c: suppress undesired debug output
2870 * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2872 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2874 * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2876 2007-03-07 Borut Razem <borut.razem AT siol.net>
2878 * device/lib/pic16/libdev/pic18f[24][34]31.c:
2879 search include files in the current directory
2881 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2883 * src/SDCCglue.c (emitMaps, glue),
2884 * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2886 * support/regression/tests/absolute.c: added xdata test
2888 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2890 * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2891 added condition to macro, fixes bug 1666080
2893 2007-03-02 Raphael Neider <rneider AT web.de>
2895 * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2897 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2899 * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2900 be cleared. Unconditionally set __XPAGE
2901 * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2903 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2908 * src/mcs51/rtrack.c,
2910 * doc/sdccman.lyx: added --no-gen-comments
2911 * src/mcs51/peeph.def: added 192.b, disabled 185
2913 2007-02-25 Raphael Neider <rneider AT web.de>
2915 * src/pic16/gen.c (genCast): fixed typo
2916 * device/lib/pic16/Makefile.subdir: only install existing files
2917 * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2919 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2921 * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2922 * device/lib/mcs51/crtclear.asm,
2923 * device/lib/mcs51/crtxclear.asm: renumbered labels
2924 * device/lib/mcs51/Makefile.in: added crtcall.asm
2925 * doc/sdccman.lyx: documented mcs51 crt* library startup code
2926 * src/mcs51/gen.c (movc): removed,
2927 (aopGet, genPlusBits): clear a after loading the carry (possibly from
2929 (toCarry, genSend, genRet): added function toCarry,
2930 (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2931 (assignBit, genAssign, genCast): added function assignBit
2932 * src/mcs51/Makefile.bcc: added rtrack.c
2933 * src/mcs51/ralloc.h: made valueKnown a bitfield
2934 * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2935 fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2936 disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2937 * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2938 * src/z80/gen.c: added AOP_IS_PAIRPTR,
2939 (_pop): only pop valid pairs, see gencjneshort,
2940 (gencjneshort): return pair that still needs to be popped, restructured,
2941 (gencjne, genCmpEq): call _pop
2943 2007-02-23 Raphael Neider <rneider AT web.de>
2945 * device/include/pic/pic14devices.txt: 16f684 has only one config word
2947 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2949 * device/include/mcs51/P89LPC925.h: Added.
2951 2007-02-18 Raphael Neider <rneider AT web.de>
2953 * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2955 2007-02-17 Borut Razem <borut.razem AT siol.net>
2957 * support/cpp2/directives.c, support/cpp2/version.c:
2958 synchronized with GCC CPP 4.1.2
2960 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2962 * src/mcs51/rtrack.h,
2963 * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2964 by checking the strings passed by emitcode() to the assembler.
2965 Feel free to change. This in part addresses RFE #482179.
2966 Set environment variable SDCC_RTRACK to enable.
2967 * src/mcs51/gen.c: inserted hooks
2968 * src/mcs51/ralloc.h: added two members to struct regs
2969 * support/regression/tests/regtrack.c: added
2971 2007-02-14 Borut Razem <borut.razem AT siol.net>
2973 * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2974 * Makefile.in: applied patch from Makefile related part of
2975 #1469393: Compiler does not initialize static data
2977 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2979 * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2980 for better fix of bug 1273984, compiles pic16 rand.c
2982 2007-02-12 Borut Razem <borut.razem AT siol.net>
2984 * src/pic16/main.c: fixed pic16 standard library directory bug
2986 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2988 * src/hc08/gen.c (genSwap): fix swap regression test
2990 2007-02-10 Borut Razem <borut.razem AT siol.net>
2992 * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2994 * support/regression/tests/bug-1654060.c: added regression test for
2997 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2999 * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
3000 bit moves in return statement
3002 2007-02-09 Borut Razem <borut.razem AT siol.net>
3004 * src/SDCC.y: fixed bug #1654060 typedef within function causes
3007 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3009 * src/mcs51/gen.c (aopPut): use direct name for pushing registers
3010 * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
3012 2007-02-07 Raphael Neider <rneider AT web.de>
3014 * src/pic16/devices.inc,
3015 * device/include/pic16/pic18fregs.h,
3016 * device/include/pic16/pic18f[24][34]31.h,
3017 * device/lib/pic16/libdev/pic18f[24][34]31.c,
3018 * device/lib/pic16/pics.all: added 18f[24][34]31 family
3019 * device/lib/pic16/libio/i2c.ignore: do not build i2c
3021 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
3023 * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
3024 can this have lived here for so many years?
3025 * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
3026 fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
3027 * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
3029 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
3031 * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
3032 appended by loop induction must be at the very end of the eBBlock
3034 2007-02-05 Kevin Vigor
3036 * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
3038 2007-02-05 Borut Razem <borut.razem AT siol.net>
3040 * support/regression/fwk/lib/timeout.c: native WIN32 port,
3041 implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
3043 2007-02-03 Borut Razem <borut.razem AT siol.net>
3045 * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
3046 applied patch #1646602 option to set default signedness of char to
3047 unsigned, added -funsigned-char command line option,
3048 thanks to Gunther Jehle
3049 * device/lib/Makefile.in: added the -f option to rm so it doesn't
3050 prompt for file deletion a few hundred times (especially the
3051 subversion files, which have ro permissions so it asks for
3052 confirmation), thanks to Simon McAuliffe;
3053 added {} + option to find in order to remove multiple files from a
3056 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3058 * device/include/mcs51/SST89x5xRDx.h: Added.
3060 2007-02-02 Raphael Neider <rneider AT web.de>
3062 * src/pic/glue.c (emitSymbolSet): check sym->etype before use
3063 * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
3065 2007-02-01 Raphael Neider <rneider AT web.de>
3067 * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
3070 2007-01-31 Borut Razem <borut.razem AT siol.net>
3072 * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
3073 if compiled with GCC. Thanks to Raphael Neider
3075 2007-01-31 Raphael Neider <rneider AT web.de>
3077 * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
3078 operand names, handles name and (name + n) for all n,
3079 (sameBank): restructured, also check bank allocation policy,
3080 * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
3081 (pic14_operandsAllocatedInSameBank): check whether to operands
3082 will be allocated into the same bank (i.e., section) to reduce
3083 BANKSEL overhead, queried from pcode.c:sameBank,
3084 (pic14printLocals): reintroduced clustering registers into a single
3085 section: all compiler generated symbols will now reside in one
3086 bank (per file), reducing BANKSEL overhead and code size,
3087 (showAllMemmaps): use local dbuf where possible
3089 2007-01-29 Raphael Neider <rneider AT web.de>
3091 * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
3092 (call_libraryfunc): retrieve/create symbol and mark as used,
3093 (genFunction): mark defined functions as non-extern and add again
3094 to code memmap for later output
3095 * src/pic/glue.c (emitPseudoStack): put into own subroutine,
3096 (pic14printLocals): reworked for new symbol emission,
3097 (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
3098 showAllMemmaps): reworked symbol output using dbufs, added handling
3099 of string literals (still incomplete),
3100 (picglue): removed symbol emission, moved into showAllMemmaps,
3101 (emitSymbolSet): new workhorse for symbol output,
3102 (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
3104 2007-01-29 Borut Razem <borut.razem AT siol.net>
3106 * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
3107 component contains the extension separator.
3109 2007-01-28 Borut Razem <borut.razem AT siol.net>
3111 * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
3113 * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
3114 src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
3115 src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
3116 src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
3117 src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
3118 src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
3119 src/z80/gen.c, support/Util/MySystem.c:
3120 accept slash and backslash as directory separator on WIN32 and
3123 2007-01-28 Raphael Neider <rneider AT web.de>
3125 * src/pic16/devices.inc,
3126 * device/include/pic16/pic18f[24][23]21.h,
3127 * device/include/pic16/pic18fregs.h,
3128 * device/lib/pic16/libdev/pic18f[24][23]21.c,
3129 * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
3130 * device/lib/pic16/libio/adc.ignore,
3131 * device/lib/pic16/libio/i2c.ignore,
3132 * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
3133 family, as gputils do not yet support the devices
3134 * device/lib/pic16/Makefile.subdir: ignore errors on install
3135 * support/scripts/inc2h-pic16.pl: script to generate pic16 device
3136 headers and libraries from gputils .inc files
3138 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3140 * doc/sdccman.lyx: add printf_fast_f precision limitation note
3142 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
3144 * doc/sdccman.lyx: add printf benchmarks
3146 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3148 * device/lib/printf_fast.c: fix %c, char promoted to int
3149 * device/lib/printf_tiny.c: fix %c, char promoted to int
3151 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
3153 * device/lib/printf_fast.c: fix float overflow check, bug #1525093
3155 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3157 * support/regression/tests/swap.c: 64 bit hosts failed
3158 * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
3160 2007-01-25 Raphael Neider <rneider AT web.de>
3162 * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
3163 based on absolute register address, patch by Alex Blond
3165 2007-01-22 Raphael Neider <rneider AT web.de>
3167 * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
3168 emitted, do not emit them again...
3170 2007-01-22 Raphael Neider <rneider AT web.de>
3172 * src/regression/bank1.c, src/regression/compare6.c,
3173 src/regression/add.c: cosmetic changes
3174 * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
3175 * src/pic/gen.c: fixed global zero and one,
3176 (aopForSym): removed unued code,
3177 (aopGet): assert aop is defined, check and use `index' of
3178 pCodeImmd operands (fixes #1630908),
3179 * src/pic/pcode.c (get_op): added output of generic pointer tag,
3180 (register_reassign): prevent accidental register unification,
3181 (ReuseReg): cosmetic changes (also above)
3182 * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
3183 pic14emitStaticSeg): do not emit initialized data,
3184 (printIval*): replaced with working versions,
3185 (pic14createInterruptVect,picglue): use idata for initialized data,
3186 now init data should work in all modules (not only main()),
3187 * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
3189 2007-01-21 Borut Razem <borut.razem AT siol.net>
3191 * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
3192 use -fPIC or -fpic if they are supported and not ignored
3193 * src/SDCCval.c: fixed bug introduced by me in rev. #4577
3194 * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
3196 2007-01-20 Borut Razem <borut.razem AT siol.net>
3198 * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
3199 implemented RFE #1470316: allow "$" in variable names
3201 2007-01-20 Raphael Neider <rneider AT web.de>
3203 * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3205 2007-01-20 Raphael Neider <rneider AT web.de>
3207 * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3208 * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3209 * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3210 * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3211 applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3212 * device/lib/pic/libdev/pic*.c,
3213 * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3214 * device/lib/pic/libdev/Makefile.in: show progress
3216 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3218 * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3219 * support/scripts/sdcc_cygwin_mingw32,
3220 * support/scripts/sdcc_mingw32,
3221 * support/scripts/build.mak: replaced --datadir by --datarootdir for
3222 conformance with autoconf 2.6
3224 2007-01-19 Raphael Neider <rneider AT web.de>
3226 * src/pic/device.c (register_map): fixed list construction
3227 * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3228 (genMod): removed case for genModbits,
3229 (genModbits): removed as now unused/unimplemented
3230 * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3232 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3234 * support/regression/tests/swap.c: added in response to #1638622
3235 * doc/sdccman.lyx: synced version, minor changes
3237 2007-01-18 Borut Razem <borut.razem AT siol.net>
3239 * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3240 thanks to Gunther Jehle
3241 * src/asm.c: don't die if the file drfined in #line couldn't be opened
3242 * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3243 src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3244 use filename in lineno instead.
3245 * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3246 print the file name in ast_print()
3248 2007-01-18 Borut Razem <borut.razem AT siol.net>
3250 * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3252 * src/SDCC.lex: stringLiteral() returns const char pointer,
3253 EOF detection in stringLiteral(), fixed asmbuf memory leak,
3254 fixed column counting
3255 * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3256 accept const char pointer as parameter
3257 * src/SDCCdwarf2.c: corrected buffer size
3259 2007-01-17 Borut Razem <borut.razem AT siol.net>
3261 * support/Util/dbuf_string.c: fixed for amd64
3263 2007-01-15 Borut Razem <borut.razem AT siol.net>
3265 * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3266 removed terminal symbol ELIPSIS, since it was never generated by the
3267 lexer and it was wrongly used in parameter_identifier_list rule
3269 2007-01-15 Raphael Neider <rneider AT web.de>
3271 * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3272 code page and data banking description
3273 * src/pic/genarith.c,
3274 * src/pic/gen.h: removed bit arithmetic functions,
3275 updated exit(1) to exit(EXIT_FAILURE)
3276 * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3277 * device/include/pic16/pic18f2455.h,
3278 * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3279 TRISD and TRISE, fixed/added some bit names
3280 * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3281 * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3282 updated pic18f2455.{c,h} instead of duplicating them
3284 2007-01-14 Borut Razem <borut.razem AT siol.net>
3286 * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3287 Cannot debug files that contain spaces in the path name
3288 by converting spaces in asm file name to underscores
3290 2007-01-13 Borut Razem <borut.razem AT siol.net>
3292 * doc/sdccman.lyx: fixed format errors
3294 2007-01-10 Borut Razem <borut.razem AT siol.net>
3296 * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3297 codeseg/constseg #pragma fail
3298 * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3299 * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3300 suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3301 suppoprt/cpp2/sdcpp.[ch]: house cleaning
3303 2007-01-09 Borut Razem <borut.razem AT siol.net>
3305 * get rid of diagnistic.[ch], pretty-print.[ch],
3306 c-pretty-print.[ch], ... used just for error, warning, ...
3308 * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3309 suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3310 suppoprt/cpp2/pretty-print.[ch]:
3312 * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3313 suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3314 suppoprt/cpp2/sdcpp.dsp:
3317 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3319 * device/lib/printf_large.c (output_float): removed recursion,
3320 use smaller buffer on stack for mcs51,
3321 fixed bug printing 1.96
3322 * support/regression/tests/snprintf.c: added test
3324 2007-01-07 Borut Razem <borut.razem AT siol.net>
3326 * use dynamic memory buffers instead temporary files
3327 * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3329 * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3330 src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3331 src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3332 src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3333 src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3334 src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3335 src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3336 src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3337 src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3338 src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3339 src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3340 support/Util/dbuf.c, support/Util/dbuf.h:
3342 * .version, sdcc.spec: bumped version to 2.6.4
3344 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3346 * src/port.h: added TARGET_Z80_LIKE macro
3347 * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3348 output PSEG location if --xram-loc or --xstack-loc was used
3349 * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3351 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3353 * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3354 * as/as_z80.dsp, as/z80/as_z80.dsp,
3355 * as/asx8051.dsp, as/mcs51/asx8051.dsp,
3356 * sdcc.dsw: moved project files into subdir
3357 * as/hc08/as_hc08.dsp,
3358 * as/hc08/Makefile.bcc,
3359 * as/hc08/Makefile.in,
3360 * as/mcs51/Makefile.bcc,
3361 * as/mcs51/Makefile.in,
3362 * as/z80/Makefile.bcc,
3363 * as/z80/Makefile.in,
3364 * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3367 * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3370 * as/mcs51/asmain.c,
3372 * as/z80/assym.c: removed include "strcmpi.h"
3373 * as/hc08/strcmpi.c,
3374 * as/hc08/strcmpi.h,
3375 * as/mcs51/strcmpi.c,
3376 * as/mcs51/strcmpi.h,
3377 * support/Util/strcmpi.c,
3378 * support/Util/strcmpi.h: removed files
3379 * as/strcmpi.c: added as_strncmpi()
3381 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3383 * sdcc.dsw: Added some dependencies on project config.dsp
3385 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
3387 * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
3388 with [di]ram_start to fix a regresion
3390 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3392 * configure.in: added missing mcs51 in status output
3393 * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
3395 * debugger/mcs51/clean.mk (distclean): remove config.h
3396 * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
3397 * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
3398 options.h, s-options-h and options.c
3399 * support/cpp2/clean.mk: unused, removed
3400 * Makefile.common.in,
3403 * as/hc08/Makefile.in,
3405 * as/mcs51/Makefile.in,
3406 * as/mcs51/clean.mk,
3409 * as/z80/Makefile.in,
3411 * as/link/Makefile.in,
3412 * as/link/hc08/Makefile.in,
3413 * as/link/hc08/clean.mk,
3414 * as/link/mcs51/Makefile.in,
3415 * as/link/mcs51/clean.mk,
3416 * as/link/z80/Makefile.in,
3417 * as/link/z80/clean.mk,
3418 * as/link/z80/conf.mk,
3419 * debugger/mcs51/Makefile.in,
3420 * debugger/mcs51/clean.mk,
3421 * device/include/Makefile.in,
3422 * device/lib/Makefile.in,
3423 * device/lib/mcs51/Makefile.in,
3424 * device/lib/pic/Makefile.in,
3425 * device/lib/pic/Makefile.common.in,
3426 * device/lib/pic/Makefile.subdir,
3427 * device/lib/pic/Makefile.rules,
3428 * device/lib/pic16/libio/Makefile.in,
3429 * device/lib/pic16/Makefile.subdir,
3430 * device/lib/pic16/libdev/Makefile.in,
3431 * device/lib/pic16/Makefile.rules,
3432 * device/lib/pic16/Makefile.common.in,
3433 * sim/ucsim/avr.src/Makefile.in,
3434 * sim/ucsim/main_in.mk,
3435 * sim/ucsim/cmd.src/Makefile.in,
3436 * sim/ucsim/doc/Makefile.in,
3437 * sim/ucsim/gui.src/Makefile.in,
3438 * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3439 * sim/ucsim/gui.src/serio.src/Makefile.in,
3440 * sim/ucsim/hc08.src/Makefile.in,
3441 * sim/ucsim/libltdl/Makefile.in,
3442 * sim/ucsim/s51.src/Makefile.in,
3443 * sim/ucsim/sim.src/Makefile.in,
3444 * sim/ucsim/sim.src/conf.mk,
3445 * sim/ucsim/xa.src/Makefile.in,
3446 * sim/ucsim/z80.src/Makefile.in,
3450 * support/cpp2/Makefile.in,
3451 * support/librarian/Makefile.in,
3452 * support/librarian/clean.mk,
3453 * support/makebin/Makefile.in,
3454 * support/makebin/clean.mk,
3455 * support/packihx/Makefile.in,
3456 * support/regression/Makefile.in,
3457 * support/regression/ports/ds390/spec.mk,
3458 * support/regression/ports/gbz80/spec.mk,
3459 * support/regression/ports/hc08/spec.mk,
3460 * support/regression/ports/mcs51/spec.mk,
3461 * support/regression/ports/mcs51-large/spec.mk,
3462 * support/regression/ports/mcs51-medium/spec.mk,
3463 * support/regression/ports/mcs51-xstack-auto/spec.mk,
3464 * support/regression/ports/pic14/spec.mk,
3465 * support/regression/ports/pic16/spec.mk,
3466 * support/regression/ports/mcs51-stack-auto/spec.mk,
3467 * support/regression/ports/ucz80/spec.mk,
3468 * support/regression/ports/xa51/spec.mk,
3469 * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3470 adding a slash after $(top_builddir) and/or adding @datarootdir@
3472 * debugger/mcs51/configure.in,
3473 * device/lib/pic/configure.in,
3474 * device/lib/pic16/configure.in,
3475 * sim/ucsim/configure.in,
3476 * support/cpp2/configure.in,
3477 * support/packihx/configure.in: changed AC_PREREQ to 2.60
3479 * debugger/mcs51/configure,
3480 * device/lib/pic/configure,
3481 * device/lib/pic16/configure,
3482 * sim/ucsim/configure,
3483 * support/cpp2/configure,
3484 * support/packihx/configure: generated with autoconf 2.60
3486 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3488 * as/link/hc08/lkihx.c (newArea),
3489 * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3491 2007-01-02 Borut Razem <borut.razem AT siol.net>
3493 * doc/sdccman.lyx: documented #pragma sdcc_hash
3494 * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3496 * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3498 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3500 * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3501 empty 'while'-loop to work correctly, see regression test 'while.c'
3502 * support/regression/tests/while.c: added
3504 2007-01-01 Borut Razem <borut.razem AT siol.net>
3506 * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3507 support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3508 support/cpp2/libcpp/sdcpp.c:
3509 sdcpp specific pragma/directive/option handling moved to sdcpp.c
3510 * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3511 * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3513 2006-12-31 Borut Razem <borut.razem AT siol.net>
3515 * SDCPP synchronized with GCC CPP release version 4.1.1,
3516 currently the latest release:
3517 * support/cpp2/libcpp, support/cpp2/libcpp/include,
3518 support/cpp2/libcpp/include/cpp-id-data.h
3519 support/cpp2/libiberty/fopen_unlocked.c
3520 support/cpp2/libiberty/md5.c
3522 support/cpp2/opt-functions.awk
3523 support/cpp2/opt-gather.awk
3524 support/cpp2/optc-gen.awk
3525 support/cpp2/opth-gen.awk:
3527 * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3528 support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3529 support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3530 support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3531 support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3532 support/cpp2/diagnostic.h, support/cpp2/except.h,
3533 support/cpp2/hwint.h, support/cpp2/input.h,
3534 support/cpp2/intl.h, support/cpp2/move-if-change,
3535 support/cpp2/opts.c, support/cpp2/opts.h,
3536 support/cpp2/output.h, support/cpp2/prefix.c,
3537 support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3538 support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3539 support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3540 support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3541 support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3542 support/cpp2/version.c:
3544 * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3545 support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3546 support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3547 support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3548 support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3549 support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3550 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3551 support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3552 support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3553 support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3554 support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3556 * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3557 support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3558 support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3559 support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3560 support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3561 support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3562 support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3563 support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3564 support/cpp2/hashtable.h, support/cpp2/line-map.c,
3565 support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3566 support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3567 support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3568 support/cpp2/system.h:
3571 2006-12-31 Borut Razem <borut.razem AT siol.net>
3573 * configure.in, configure: fixed bug #1538756: configure dies if bison
3574 and flex are not installed, 2nd try
3576 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3578 * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3579 400.x for better code in RFE 899102
3581 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3583 * src/SDCCpeeph.c (deadMove),
3585 * src/mcs51/peep.h: renamed 'op' by 'reg'
3586 * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3587 (scan4op): small change for removeDeadMove(), added support for
3588 'callee saves' and/or PACLL function calls,
3589 (removeDeadMove): added, removes superflous 'mov r%1,%2',
3590 (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3591 left in new dispatcher mcs51DeadMove()
3592 (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3594 * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3596 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3598 * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3599 support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3601 2006-12-30 Borut Razem <borut.razem AT siol.net>
3603 * support/cpp2/spacs.h: deleted from svn
3604 * configure.in, configure: fixed bug #1538756: configure dies if bison
3605 and flex are not installed
3607 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3609 * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3610 with this z80 passes printf float test when enabled
3611 * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3613 2006-12-28 Borut Razem <borut.razem AT siol.net>
3615 * support/cpp2/config.in, support/cpp2/configure.in,
3616 support/cpp2/configure, support/cpp2/Makefile.in:
3617 fix for the solaris build
3619 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3621 * src/SDCC.y (type_specifier2, pointer),
3623 * src/SDCCsymt.c (mergeSpec, checkSClass),
3624 * support/Util/SDCCerr.c,
3625 * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3626 * support/valdiag/valdiag.py: Allow test cases to specify
3627 required language standard
3628 * support/valdiag/tests/restrict.c: New file to test restrict keyword
3629 * support/valdiag/tests/tentdecl.c: Supress empty source file error
3631 2006-12-27 Borut Razem <borut.razem AT siol.net>
3633 * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3634 * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3636 * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3638 * support/cpp2/libiberty/Makefile.bcc: updated
3639 * src/pic16/main.c: fixed #pragma udata handling
3640 * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3642 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3644 * src/SDCCpeeph.c: made labelHashEntry global,
3645 made pcDistance, FBYNAME static,
3646 (pcDistance): made static, use isComment and isLabel,
3648 (getLabelRef): added, extracted from labelRefCount(),
3649 (labelRefCount): use new getLabelRef(),
3650 (callFuncByName): made static, added deadMove,
3651 use isComment and isLabel,
3652 (newPeepRule): made static, set isLabel,
3653 (isLabelDefinition): added parameter isPeepRule to allow '%' in
3654 labels from peephole rules,
3655 (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3656 when isComment or isLabel is set
3657 * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3658 added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3660 * src/mcs51/peep.h: added
3661 * src/mcs51/peep.c: added, implements mcs51DeadMove()
3662 * src/port.h: added peep->deadMove to port structure
3663 * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3664 * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3665 deadMove, finally removed no. 1 and 2
3672 * src/hc08/gen.c: mark lines with isComment or isLabel
3673 * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3675 * sdcc.spec: bumped version to 2.6.3
3677 2006-12-26 Borut Razem <borut.razem AT siol.net>
3679 * support/cpp2/Makefile.in: added dependency on options.h
3680 * configure: regenerated
3681 * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3682 * support/cpp2/Makefile.in: added vasprintf.c
3684 2006-12-25 Borut Razem <borut.razem AT siol.net>
3686 * SDCPP synchronized with GCC CPP release version 3.4.6,
3687 the latest release before 4.x:
3688 * support/cpp2/Makefile.in, support/cpp2/config.h,
3689 support/cpp2/configure, support/cpp2/configure.in,
3690 support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3691 support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3692 support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3693 support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3694 support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3695 support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3696 support/cpp2/cpptrad.c, support/cpp2/except.h,
3697 support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3698 support/cpp2/hwint.h, support/cpp2/intl.h,
3699 support/cpp2/line-map.c, support/cpp2/line-map.h,
3700 support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3701 support/cpp2/output.h, support/cpp2/prefix.c,
3702 support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3703 support/cpp2/system.h, support/cpp2/version.c:
3705 * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3706 support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3707 support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3708 support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3709 support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3710 support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3711 support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3712 support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3713 support/cpp2/move-if-change, support/cpp2/opts.c,
3714 support/cpp2/opts.h, support/cpp2/opts.sh,
3715 support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3716 support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3717 support/cpp2/win32, support/cpp2/win32/dirent.c,
3718 support/cpp2/win32/dirent.h:
3720 * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3721 * support/cpp2/sdcpp.h: renamed from sdcc.h
3722 * sdcppinit.c: deleted
3724 2006-12-23 Borut Razem <borut.razem AT siol.net>
3726 * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3727 support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3728 preproc.c: an other try to fix bug #982435: introduced
3729 -pedantic-parse-number command line option and pedantic_parse_number
3732 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3734 * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3736 (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3737 corrected overlayed areax addresses, warn about memory overlaps
3738 * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3747 * src/port.h: added xabs_name and iabs_name
3748 * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3749 (glue, emitMaps): create and emit maps d_abs and i_abs
3750 * src/SDCCglue.h: cosmetic changes
3751 * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3753 * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3754 (allocDefault): put absolute, initialized globals in them
3755 * support/regression/tests/absolute.c: added absolute bdata test
3756 * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3758 2006-12-20 Borut Razem <borut.razem AT siol.net>
3760 * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3761 * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3762 added regression test for bug #982435
3764 2006-12-18 Borut Razem <borut.razem AT siol.net>
3766 * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3767 * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3768 small cosmetic changes
3769 * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3770 * support/regression/tests/bug-1351710.c: added regression test
3772 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3774 * doc/sdccman.lyx: added the long missed iCode table
3775 "<where is figure II?>", added links to wiki
3777 2006-12-17 Borut Razem <borut.razem AT siol.net>
3779 * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3780 src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3781 support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3782 unified table driven pragma handling, pragma argument type checking
3783 * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3784 current one - version 1.1.3
3785 * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3787 2006-12-13 Raphael Neider <rneider AT web.de>
3789 * src/pic/device.h: removed AssignedMemory structure and macros
3790 * src/pic/device.c: removed global finalMapping (linker assigns
3792 (register_map): add SFRs to remembered memRanges
3793 (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3794 assignFixedRegisters,assignRelocatableRegisters): removed,
3795 (setMaxRAM,validAddress): adapted accordingly,
3796 (pic14_hasSharebank,pic14_getSharedStack): only report and use
3797 reasonably sized sharebanks,
3798 * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3799 (allDefsOutOfRange): removed unused code,
3800 * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3802 * src/pic/pcode.c (register_reassign): removed recursion warning,
3803 fired far too often,
3804 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3805 to use existing pic14_stringInSet() to avoid duplicate symbols,
3806 tidied up the code a bit,
3807 (pic14printLocals): added in symmetry to printExterns, replaces
3808 writeUsedRegs more or less,
3809 (picglue): call new pic14_printLocals(),
3810 * device/include/pic/pic*.h: removed #pragma memmap directives,
3811 information gathered from include/pic/pic14devices.txt
3812 * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3814 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3816 * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3818 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3820 * device/include/mcs51/cc2430.h: fixed missing ';'
3822 2006-12-10 Raphael Neider <rneider AT web.de>
3824 * device/lib/pic16/libc/stdio/vfprintf.c,
3825 * device/lib/pic16/libc/stdio/printf_small.c,
3826 * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3827 char arguments, as char varargs are cast to int by the caller,
3828 hopefully fixes #1604915 (other device libraries are still affected)
3830 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3832 * src/mcs51/ralloc.c (packRegsForAssign),
3833 * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3835 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3837 * device/include/malloc.h: removed init_dynamic_memory
3838 * device/lib/malloc.c: made init_dynamic_memory static and automatically
3839 call it once from malloc. Also use _sdcc_heap[] from _heap.c
3840 * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3841 * device/lib/libsdcc.lib,
3842 * device/lib/Makefile.in,
3843 * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3844 * doc/sdccman.lyx: documented use of new _heap.c
3845 * support/regression/tests/malloc.c: removed init_dynamic_memory
3846 * src/cdbFile.c(spacesToUnderscores): new function,
3847 (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3849 * device/include/tinibios.h: removed defines for putchar and getchar
3850 * device/lib/ds390/Makefile.in: added putchar.c
3851 * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3853 2006-12-09 Borut Razem <borut.razem AT siol.net>
3855 * support/cpp2/sdcc.h: prevent multiple inclusion
3856 * support/cpp2/options.h: deleted
3858 2006-12-08 Borut Razem <borut.razem AT siol.net>
3860 * support/cpp2/sdcc.h: removed x*alloc() macros
3861 * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3862 * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3863 support/cpp2/sdcpp.sdc: x*alloc files added to the project
3864 * support/cpp2/system.h: moved #include "sdcc.h"
3865 * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3866 support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3868 * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3869 -funsigned-char options
3870 * support/cpp2/sdcppmain.c: fixed bug 1611411
3872 2006-12-07 Borut Razem <borut.razem AT siol.net>
3874 * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3877 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3879 * src/SDCCsymt.c (addDecl): fixed bug 1609244
3880 * src/SDCCmain.c (linkEdit): fixed bug 1609279
3882 * .version: bumped to 2.6.2 because a) it's been a while
3883 b) the linker sources have moved c) the preprocessor is upgraded
3885 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3887 * support/regression/tests/snprintf.c: some checks
3888 * lib/src/printf_large.c: %bc: read char instead of int from stack
3890 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3892 * device/include/mcs51/cc2430.h: inserted _XPAGE
3894 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3896 * device/include/mcs51/cc2430.h: added
3898 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3900 * device/include/asm/default/features.h,
3901 * device/include/asm/ds390/features.h,
3902 * device/include/mcs51/at89s53.h,
3903 * device/include/ser.h,
3904 * device/include/ser_ir.h,
3905 * device/include/serial.h: changed keywords to double underscore variants,
3906 fixes bug 1590261 some more, thanks Steven Borley
3908 2006-12-01 Raphael Neider <rneider AT web.de>
3910 * src/pic/pcode.c (register_reassign): do not crash on recursive code
3911 but emit warning (recursion is not supported for pic14)
3913 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3915 * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3916 * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3918 2006-11-30 Raphael Neider <rneider AT web.de>
3920 * src/pic/device.c (dump_sfr): always emit symbols
3921 * src/pic/glue.c (pic14printPublics): fixed typo
3923 2006-11-30 Raphael Neider <rneider AT web.de>
3925 * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3926 (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3927 (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3928 pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3929 a sharebank, use a non-shared bank for the stack if none available
3930 * src/pic/device.h (struct memRange): added linked list next field,
3931 added prototypes for above functions
3932 * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3933 (typeRegWithIdx): accept fixed and unfixed stack registers
3934 * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3935 the stack, handle shared and banked stack (except for WSAVE),
3936 (insertBankSel): removed useless optimization (will never fire),
3937 (FixRegisterBanking): added optimization for devices with only one
3938 possibly aliased bank of memory, like 16f84
3939 * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3940 devices have no SHAREBANK in the linker script
3941 * device/include/pic/pic14devices.txt: documented memmap
3942 * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3944 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3946 * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3947 storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3948 genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3949 genhc08Code): switched most of the D (debug) macros to DD (detailed
3950 debug) macros to better control clutter in the generated .asm file.
3951 * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3952 genRightShift): fixed bug with non-constant bit shift stored to
3953 a volatile result (SF Open Discussion forum thread #1616749).
3954 Single byte case is not yet optimized.
3956 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3958 * device/include/asm/mcs51/features.h,
3959 * device/include/malloc.h,
3960 * device/include/stdio.h: changed keywords to double underscore variants,
3963 2006-11-27 Borut Razem <borut.razem AT siol.net>
3965 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3966 support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3967 support/cpp2/output.h, support/cpp2/cppinit.c,
3968 support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3969 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3970 support/cpp2/cppdefault.c, support/cpp2/system.h,
3971 support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3972 support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3973 support/cpp2/prefix.c, support/cpp2/except.h,
3974 support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3975 support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3976 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3977 support/cpp2/version.c, support/cpp2/cppmain.c,
3978 support/cpp2/version.h, support/cpp2/hashtable.c,
3979 support/cpp2/cpperror.c:
3980 synchronized with GCC CPP release version 3.3.6,
3981 the latest where cppmain.c still exists.
3982 * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3983 support/cpp2/sdcppinit.c: added
3985 2006-11-27 Borut Razem <borut.razem AT siol.net>
3987 * support/cpp2/cpplex.c:
3988 fixed _asm ... _endasm handling bug, introduce with GCC CPP
3990 * support/cpp2/cpplib.c: removed definitions of unused variables
3992 2006-11-26 Borut Razem <borut.razem AT siol.net>
3994 * support/cpp2/libiberty.h: commented out x*alloc() declarations
3995 since they are redefined by macros in support/cpp2/sdcc.h
3996 * support/cpp2/sdcc.h: x*alloc macro redefinition
3998 2006-11-25 Borut Razem <borut.razem AT siol.net>
4000 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
4001 support/cpp2/configure, support/cpp2/Makefile.in,
4002 support/cpp2/cppfiles.c, support/cpp2/output.h,
4003 support/cpp2/cppinit.c, support/cpp2/cpplib.c,
4004 support/cpp2/config.h, support/cpp2/cpplib.h,
4005 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
4006 support/cpp2/cppdefault.c, support/cpp2/config.in,
4007 support/cpp2/system.h, support/cpp2/cpplex.c,
4008 support/cpp2/cpphash.h, support/cpp2/mbchar.c,
4009 support/cpp2/cppdefault.h, support/cpp2/prefix.c
4010 support/cpp2/hwint.h, support/cpp2/mbchar.h,
4011 support/cpp2/prefix.h, support/cpp2/cppmacro.c,
4012 support/cpp2/configure.in, support/cpp2/intl.h,
4013 support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
4014 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
4015 support/cpp2/version.c, support/cpp2/cppmain.c,
4016 support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
4017 support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
4018 support/cpp2/cpperror.c,
4019 support/cpp2/libiberty/safe-ctype.c,
4020 support/cpp2/libiberty/safe-ctype.h,
4021 support/cpp2/libiberty/splay-tree.c,
4022 support/cpp2/libiberty/obstack.c,
4023 support/cpp2/libiberty/lbasename.c,
4024 support/cpp2/libiberty/splay-tree.h,
4025 support/cpp2/libiberty/obstack.h:
4026 synchronized with GCC CPP release version 3.2.3,
4027 the latest before integration of cpp into gcc
4028 * support/cpp2/except.h, support/cpp2/line-map.c,
4029 support/cpp2/line-map.h,
4030 support/cpp2/libiberty/hex.c,
4031 support/cpp2/libiberty/concat.c,
4032 support/cpp2/libiberty/filenames.h: added
4033 * support/cpp2/intl.c: deleted
4035 2006-11-24 Borut Razem <borut.razem AT siol.net>
4037 * src/SDCC.y: enabled compilation of empty source file
4038 * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
4039 "ISO C forbids an empty source file"
4040 * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
4041 if all the code is ifdefed out.
4043 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4045 * src/hc08/gen.c (genPcall): fix for bug #1601032
4047 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4049 * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
4050 * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
4051 * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
4052 * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
4053 * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
4054 * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
4055 * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
4056 * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
4057 * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
4058 * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
4059 * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
4060 * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
4061 * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
4062 * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
4063 * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
4064 Renamed to all upper case as per the standard set by SiLabs
4066 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
4068 * device/include/mcs51/C8051F520.h: new, added
4069 * device/include/mcs51/compiler.h: added link about predefined macros
4071 2006-11-23 Raphael Neider <rneider AT web.de>
4073 * src/regression/Makefile: add -L path to fresh library
4074 * src/regression/simulate: emphasize FAILED output
4075 * src/regression/create_stc: output _failures from gpsim
4076 * src/regression/compare4.c,
4077 * src/regression/rotate6.c: fixed char literals,
4078 all compile, all run =8-D
4080 * src/pic/pcode.h: added isPCASMDIR macro
4081 * src/pic/gen.c (genAnd): fixed bit offset
4082 * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
4083 packBits): unified register numbering schemes,
4084 (newReg): do not insert stack registers into hash table,
4085 (initStack): unpinned pseudo stack, simplified,
4086 (typeRegWithIdx): fixed retrieval of stack registers,
4087 * src/pic/pcode.c (addpCodeComment,sameBank): added,
4088 (pCodeReplace): removed invalid assertion,
4089 (insertPCodeInstruction): fixed newly added labels,
4090 (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
4091 FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
4092 DumpFlow): removed unsed (broken?) code,
4093 (insertBankSel): prevent STATUS from being BANKSELed,
4094 (FixRegisterBanking): rewritten from scratch, implemented generic
4095 optimizations (suppress BANKSELs to same register and to registers
4096 present in all banks),
4097 (AnalyzeBanking): update flow after BANKSELection
4099 * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
4100 sharebank, let linker place it, mark STKxx symbols as emitted
4102 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4104 * src/regression/arrays.c,
4105 * src/regression/bank1.c,
4106 * src/regression/bool2.c,
4107 * src/regression/compare7.c,
4108 * src/regression/compare8.c,
4109 * src/regression/compare9.c,
4110 * src/regression/compare10.c,
4111 * src/regression/configword.c,
4112 * src/regression/for.c,
4113 * src/regression/mult1.c,
4114 * src/regression/pointer1.c,
4115 * src/regression/rotate6.c,
4116 * src/regression/string1.c,
4117 * src/regression/struct1.c,
4118 * src/regression/Makefile: make PIC14 regression tests run again
4119 (3 fail, 6 won't compile)
4121 2006-11-21 Raphael Neider <rneider AT web.de>
4123 * device/include/pic16/pic18f4550.h,
4124 * device/include/pic16/pic18f4455.h,
4125 * device/lib/pic16/libdev/pic18f4550.c,
4126 * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
4127 * configure.in: removed superfluous closing bracket
4129 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4131 * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
4134 2006-11-21 Raphael Neider <rneider AT web.de>
4136 * src/pic/device.{c,h}: added pic14_getPIC()
4137 * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
4138 (genAnd): added PIC code for one case, fixes #1597044
4139 * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
4140 SFRs that are present in all banks (e.g., STATUS)
4142 2006-11-20 Raphael Neider <rneider AT web.de>
4144 * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
4145 INCFSZ/INCFSZW and declared them as changing Z bit,
4146 (insertPCodeInstruction): correctly invert the above instructions,
4148 (DoBankSelect): don't panic on po_immediates
4150 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4153 * as/link/mcs51/lkihx.c (newArea),
4154 * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
4155 * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
4157 2006-11-11 Raphael Neider <rneider AT web.de>
4159 * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
4160 bitfield symbols, fixes #1579535 (once more...).
4162 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4164 * support/regression/generate-cases.py,
4165 * support/regression/fwk/include/testfwk.h,
4166 * support/regression/fwk/lib/testfwk.c: used code pointers,
4167 (about 50kByte less code generated for mcs51)
4169 2006-11-06 Borut Razem <borut.razem AT siol.net>
4171 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4172 debugger/mcs51/configure: fixed failed check because the function
4173 rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
4174 who submitted the patch for gpsim.
4175 * debugger/mcs51/configure.in: removed the result message
4176 * debugger/mcs51/Makefile.in: fixed the config.status warning
4177 "... seems to ignore the --datarootdir setting"
4179 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
4181 * device/include/mcs51/c8051f020.h,
4182 * device/include/mcs51/c8051f040.h,
4183 * device/include/mcs51/c8051f060.h,
4184 * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
4185 * src/z80/gen.c (gencjneshort),
4186 * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
4188 2006-10-31 Borut Razem <borut.razem AT siol.net>
4190 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4191 debugger/mcs51/configure: get readline version
4193 2006-10-30 Borut Razem <borut.razem AT siol.net>
4195 * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
4196 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
4197 debugger/mcs51/configure: locate readline even when cross compiling
4198 * support/scripts/sdcc.nsi: include readline5.dll into the setup package
4200 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4202 * device/include/mcs51/serial_IO.h: putchar() and getchar() using
4205 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4207 * device/include/malloc.h,
4208 * device/lib/calloc.c,
4209 * device/lib/free.c,
4210 * device/lib/malloc.c,
4211 * device/lib/realloc.c: moved definition of struct into sources
4212 * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4214 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4216 * as/asx8051.dsp: corrected output directories
4217 * as/link/hc08: new directory for hc08 linker
4218 * as/hc08/aslink.h, as/link/aslink.h,
4219 * as/hc08/aslink.mak, as/link/hc08/aslink.mak,
4220 * as/hc08/clean.mk, as/link/hc08/clean.mk,
4221 * as/hc08/link_hc08.dsp, as/link/hc08/link_hc08.dsp,
4222 * as/hc08/lkaomf51.c, as/link/hc08/lkaomf51.c,
4223 * as/hc08/lkarea.c, as/link/hc08/lkarea.c,
4224 * as/hc08/lkdata.c, as/link/hc08/lkdata.c,
4225 * as/hc08/lkelf.c, as/link/hc08/lkelf.c,
4226 * as/hc08/lkihx.c, as/link/hc08/lkihx.c,
4227 * as/hc08/lklibr.c, as/link/hc08/lklibr.c,
4228 * as/hc08/lkmain.c, as/link/hc08/lkmain.c,
4229 * as/hc08/lkmem.c, as/link/hc08/lkmem.c,
4230 * as/hc08/lkrloc.c, as/link/hc08/lkrloc.c,
4231 * as/hc08/lks19.c, as/link/hc08/lks19.c,
4232 * as/hc08/Makefile.aslink, as/link/hc08/Makefile.aslink,
4233 * as/hc08/Makefile.bcc, as/link/hc08/Makefile.bcc,
4234 * as/hc08/Makefile.in, as/link/hc08/Makefile.in,
4235 * as/link/hc08/conf.mk,
4239 * sdcc.dsw: moved hc08 linker to as/link/hc08
4240 * as/hc08/lkeval.c, as/link/mcs51/lkeval.c, as/link/lkeval.c,
4241 * as/hc08/lkhead.c, as/link/mcs51/lkhead.c, as/link/lkhead.c,
4242 * as/hc08/lklex.c, as/link/mcs51/lklex.c, as/link/lklex.c,
4243 * as/hc08/lklist.c, as/link/mcs51/lklist.c, as/link/lklist.c,
4244 * as/hc08/lknoice.c, as/link/mcs51/lknoice.c, as/link/lknoice.c,
4245 * as/hc08/lksym.c, as/link/mcs51/lksym.c, as/link/lksym.c,
4246 * as/link/mcs51/aslink.dsp,
4247 * as/link/mcs51/Makefile.in: factored out the common files
4248 * as/hc08/lkstore.c: deleted, use the one already in as/link/
4249 * as/clean.mk: extra cleaning common files
4250 * as/link/mcs51/strcmpi.c, as/strcmpi.c: moved
4251 * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4252 * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4254 2006-10-29 Raphael Neider <rneider AT web.de>
4256 * src/pic/ralloc.c (newReg): create aliases for registers with
4257 multiple names to fix #1579535 and #1584001,
4258 (regWithIdx,dirregWithName): resolve aliases on lookup
4259 * src/pic/pcode.c (DoBankSelect): die with error message on failing
4261 * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4262 to prevent build errors on small devices
4264 2006-10-28 Raphael Neider <rneider AT web.de>
4266 * src/pic/gen.c (genFunction,genCall): drop "same code page"
4267 assumption within interrupt handlers, fixes #1584940
4268 * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4269 "emitted" to avoid emitting them again in udata
4271 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4273 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4276 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4278 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4279 Initialize uart only if SM0 and SM1 are zero. Also, use flag to turn
4280 on/off CR to CRLF conversion.
4282 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4284 * doc/sdccman.lyx: updated IRQ section
4286 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4288 * device/lib/serial_io.c: removed
4289 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4290 replacements for serial_io.c
4292 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4294 * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4296 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4298 * device/lib/serial_io.c: Default putchar() and getchar() for
4299 mcs51 uses serial port.
4301 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4303 * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4305 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4307 * support/regression/ports/mcs51/support.c: smaller
4308 _sdcc_external_startup()
4309 * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4311 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4313 * device/lib/gbz80/crt0.s,
4314 * device/lib/gbz80/crt0_rle.s,
4315 * device/lib/gbz80/div.s,
4316 * device/lib/gbz80/fstubs.s,
4317 * device/lib/gbz80/heap.s,
4318 * device/lib/gbz80/mul.s,
4319 * device/lib/gbz80/putchar.s,
4320 * device/lib/gbz80/stubs.s,
4321 * device/lib/z80/crt0.s,
4322 * device/lib/z80/crt0_rle.s,
4323 * device/lib/z80/div.s,
4324 * device/lib/z80/fstubs.s,
4325 * device/lib/z80/heap.s,
4326 * device/lib/z80/mul.s,
4327 * device/lib/z80/putchar.s,
4328 * device/lib/z80/stubs.s: reverted, I was mistaken
4330 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4332 * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4333 * support/regression/ports/mcs51/support.c: removed race
4334 condition on TI in _putchar allowing to use serial port mode 0
4336 2006-10-20 Borut Razem <borut.razem AT siol.net>
4338 * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4340 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4342 * device/lib/gbz80/crt0.s,
4343 * device/lib/gbz80/crt0_rle.s,
4344 * device/lib/gbz80/div.s,
4345 * device/lib/gbz80/fstubs.s,
4346 * device/lib/gbz80/heap.s,
4347 * device/lib/gbz80/mul.s,
4348 * device/lib/gbz80/putchar.s,
4349 * device/lib/gbz80/stubs.s,
4350 * device/lib/z80/crt0.s,
4351 * device/lib/z80/crt0_rle.s,
4352 * device/lib/z80/div.s,
4353 * device/lib/z80/fstubs.s,
4354 * device/lib/z80/heap.s,
4355 * device/lib/z80/mul.s,
4356 * device/lib/z80/putchar.s,
4357 * device/lib/z80/stubs.s: removed all leading underscores from area names
4359 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4361 * support/regression/ports/mcs51/support.c: use highest baudrate so the
4362 regression tests are not waiting in the simulator for simulated
4363 transmission of debug output
4365 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4367 * device/lib/printf_large.c: slightly smaller
4368 * doc/sdccman.lyx: do not use spaces within html links
4370 2006-10-16 Borut Razem <borut.razem AT siol.net>
4372 * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4373 debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4374 debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4375 debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4376 debugger/mcs51/configure:
4377 [ 1185668 ] add gnu readline support to sdcdb - enabled
4379 2006-10-16 Raphael Neider <rneider AT web.de>
4381 * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4382 fixes #1577882, removes close to all banking optimizations
4384 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4386 * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
4387 variables in code memory
4388 * support/regression/tests/absolute.c: added test for this
4390 2006-10-15 Raphael Neider <rneider AT web.de>
4392 * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
4394 (BankSelect): emit BANKSEL before touching linker-placed regs,
4397 2006-10-10 Raphael Neider <rneider AT web.de>
4399 * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4400 * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4401 * src/pic/main.c (_pic14_parseOptions),
4402 * src/pic/main.h: mostly reverted to previous state, now use results
4403 from SDCCmain.c's argument parsing
4405 2006-10-10 Borut Razem <borut.razem AT siol.net>
4407 * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
4408 debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
4409 [ 1185668 ] add gnu readline support to sdcdb -
4410 prepared for READLINE, not enabled yet,
4411 thanks to <tal.bav AT gmail.com>
4413 2006-10-10 Raphael Neider <rneider AT web.de>
4415 * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
4416 * src/pic16/devices.inc,
4417 * device/include/pic16 (pic18f[24]620.h),
4418 * device/include/pic18fregs.h,
4419 * device/lib/pic16/pics.all,
4420 * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
4421 18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
4422 Gary Plumbridge and Anton Strobl
4424 2006-10-10 Raphael Neider <rneider AT web.de>
4426 * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
4427 --stack-siz=NUM options to configure the argument passing stack
4428 * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
4429 * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
4430 (pic14_getSharebankSize): obey --stack-siz=NUM,
4431 (pic14_getSharebankAddress): obey --stack-loc=NUM
4433 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4435 * doc/sdccman.lyx: added to the manual
4436 * doc/figures/ddd_example.png: added (neither pdflatex nor
4437 most browsers seem to like the .eps file)
4439 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4441 * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4442 to /tmp and /var/tmp acc. LSB
4443 * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4445 * support/regression/tests/onebyte.c: added test
4447 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4449 * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4451 2006-10-05 Borut Razem <borut.razem AT siol.net>
4453 * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4455 - sdcc.dsw: changed property eol-style to CRLF
4456 - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4458 2006-10-04 Raphael Neider <rneider AT web.de>
4460 * device/include/pic/{pic16f84.h,pic16f84a.h},
4461 * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4462 from patch #1522504, thanks to Robas Teodor
4464 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4466 * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4469 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4471 * src/pic16/glue.c (pic16emitMaps),
4472 * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4473 * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4474 * device/lib/pic16/libc/string/memcpypgm2ram.c,
4475 * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4477 * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4478 * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4480 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4482 * support/librarian/sdcclib.c: Added option -l.
4483 * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4485 * device/lib/make51lib.bat: added. Allows building mcs51 libraries easily
4486 using Windows command prompt.
4488 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4490 * device/lib/libsdcc.lib: added module rand
4491 * src/ds390/ralloc.c (rematStr),
4492 * src/hc08/ralloc.c (rematStr),
4493 * src/mcs51/ralloc.c (rematStr),
4494 * src/z80/ralloc.c (rematStr): made output more consistent
4495 * src/mcs51/gen.c: cosmetic changes
4497 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4499 * src/port.h: added mem.cabs_name to PORT
4506 * src/z80/main.c: added cabs_name initializers
4507 * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4509 (emitMaps): emit absolutes in code memory into cabs_name
4511 * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4512 * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4513 * support/regression/fwk/include/testfwk.h: added define for at
4514 * support/regression/tests/absolute.c: added, new
4516 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4518 * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4519 optimizations, see also patch 887161 by Stas Sergeev
4520 * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4521 to be necessary anymore,
4522 (102, 103, 104, 127): renamed all occurances of bp to _bp
4524 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4526 * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4527 thanks Weston T. Schmidt for patch 1555221
4528 * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4529 * src/SDCCicode.c(geniCodeMultiply): small optimization
4531 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4533 * device/include/stdlib.h: added rand prototypes
4534 * device/lib/rand.c: new, added
4535 * device/lib/Makefile.in: added rand.c
4536 * src/z80/peeph.def,
4537 * src/z80/peeph-gbz80.def,
4538 * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4540 2006-09-20 Raphael Neider <rneider AT web.de>
4542 * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4544 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4546 * as/link/aslink.h: cosmetic changes
4547 * as/link/mcs51/Makefile.in,
4548 * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4550 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4553 * as/link/mcs51/aslink.h,
4554 * as/link/z80/aslink.h: merged and moved to as/link/
4555 * as/link/lkstore.c,
4556 * as/link/mcs51/lkstore.c: moved to as/link/
4557 * as/link/clean.mk: remove *.o
4558 * as/link/mcs51/alloc.h: deleted
4559 * as/link/mcs51/lkarea.c: added lnksect prototype
4560 * as/link/mcs51/lkdata.c,
4561 * as/link/mcs51/lklex.c,
4562 * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4563 * as/link/mcs51/lkmem.c,
4564 * as/link/mcs51/lknoice.c: removed include strcmpi.h
4565 * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4566 * as/link/mcs51/aslink.dsp,
4567 * as/link/mcs51/Makefile.aslink,
4568 * as/link/mcs51/Makefile.bcc,
4569 * as/link/mcs51/Makefile.in: updated for moved files
4570 * as/link/z80/lkarea.c,
4571 * as/link/z80/lkhead.c,
4572 * as/link/z80/lklex.c,
4573 * as/link/z80/lklibr.c,
4574 * as/link/z80/lklist.c,
4575 * as/link/z80/lkmain.c,
4576 * as/link/z80/lkrloc.c,
4577 * as/link/z80/lksym.c: synced with mcs51
4578 * as/link/z80/lkdata.c,
4579 * as/link/z80/lkeval.c,
4580 * as/link/z80/lkihx.c,
4581 * as/link/z80/lks19.c: cosmetic changes
4582 * as/link/z80/Makefile.in,
4583 * as/link/z80/linkgbz80.dsp,
4584 * as/link/z80/linkz80.dsp: updated for moved files
4586 2006-09-16 Borut Razem <borut.razem AT siol.net>
4588 * debugger/mcs51/sdcdb.c: partially fixed
4589 [ 1203664 ] sdcdb fails to open files w. two "." periods
4590 * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4591 debugger/mcs51/symtab.h: fixed indenting
4592 * configure.in, configure: up to date with latest Maarten's changes
4594 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4597 as/aslink.dsp, as/link/mcs51/aslink.dsp,
4598 as/link/mcs51/aslink.h, as/mcs51/aslink.h,
4599 as/link/mcs51/aslink.mak, as/mcs51/aslink.mak,
4600 as/link/mcs51/lkaomf51.c, as/mcs51/lkaomf51.c,
4601 as/link/mcs51/lkarea.c, as/mcs51/lkarea.c,
4602 as/link/mcs51/lkdata.c, as/mcs51/lkdata.c,
4603 as/link/mcs51/lkeval.c, as/mcs51/lkeval.c,
4604 as/link/mcs51/lkhead.c, as/mcs51/lkhead.c,
4605 as/link/mcs51/lkihx.c, as/mcs51/lkihx.c,
4606 as/link/mcs51/lklex.c, as/mcs51/lklex.c,
4607 as/link/mcs51/lklibr.c, as/mcs51/lklibr.c,
4608 as/link/mcs51/lklist.c, as/mcs51/lklist.c,
4609 as/link/mcs51/lkmain.c, as/mcs51/lkmain.c,
4610 as/link/mcs51/lkmem.c, as/mcs51/lkmem.c,
4611 as/link/mcs51/lknoice.c, as/mcs51/lknoice.c,
4612 as/link/mcs51/lkrloc.c, as/mcs51/lkrloc.c,
4613 as/link/mcs51/lks19.c, as/mcs51/lks19.c,
4614 as/link/mcs51/lkstore.c, as/mcs51/lkstore.c,
4615 as/link/mcs51/lksym.c, as/mcs51/lksym.c,
4616 as/link/mcs51/Makefile.aslink, as/mcs51/Makefile.aslink,
4617 as/link/mcs51/alloc.h,
4618 as/link/mcs51/clean.mk,
4619 as/link/mcs51/conf.mk,
4620 as/link/mcs51/Makefile.bcc,
4621 as/link/mcs51/Makefile.in,
4622 as/link/mcs51/readme.390,
4623 as/link/mcs51/strcmpi.c,
4624 as/link/mcs51/strcmpi.h,
4626 as/mcs51/Makefile.bcc,
4627 as/mcs51/Makefile.in,
4630 sdcc.dsw: moved mcs51 linker to as/link/mcs51
4632 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4635 * as/link/Makefile.in,
4636 * as/link/z80/linkgbz80.dsp,
4637 * as/link/z80/linkz80.dsp,
4644 * link/z80/aslink.h,
4645 * link/z80/clean.mk,
4647 * link/z80/linkgbz80.dsp,
4648 * link/z80/linkz80.dsp,
4649 * link/z80/lkarea.c,
4650 * link/z80/lkdata.c,
4651 * link/z80/lkeval.c,
4654 * link/z80/lkhead.c,
4657 * link/z80/lklibr.c,
4658 * link/z80/lklist.c,
4659 * link/z80/lkmain.c,
4660 * link/z80/lkrloc.c,
4663 * link/z80/Makefile.in,
4665 * sdcc.dsw: moved link/ to as/link/
4667 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4669 * as/mcs51/i51mch.c (machine): fixed warning
4671 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4673 * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4675 2006-09-09 Borut Razem <borut.razem AT siol.net>
4677 * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4678 sdcdb WIN32 native port
4679 * src/clean.mk: fixed
4681 2006-09-08 Borut Razem <borut.razem AT siol.net>
4683 * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4685 2006-09-08 Raphael Neider <rneider AT web.de>
4687 * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4688 * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4689 to gplink to disable processor mismatch warning and to allow
4690 the use of devices with only aliased (shared) memory banks,
4691 (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4693 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4695 * doc/sdccman.lyx: Some re-formating plus example on using
4696 #pragma preproc_asm +/-
4698 2006-09-07 Borut Razem <borut.razem AT siol.net>
4700 * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4703 2006-09-06 Borut Razem <borut.razem AT siol.net>
4705 * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4706 line at sdcc.nsi:153
4707 * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4709 2006-09-05 Borut Razem <borut.razem AT siol.net>
4711 * configure.in, configure: support for winsock2
4712 * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4713 debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4714 debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4715 debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4716 debugger/mcs51/symtab.h: sdcdb WIN32 native port
4718 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4720 * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4722 * support/regression/tests/bug1551947.c: new, added
4723 * src/SDCCsymt.h: strings are char* not byte*
4725 2006-09-05 Raphael Neider <rneider AT web.de>
4727 * device/lib/pic16/libdev/pic18f4550.c,
4728 device/include/pic16/pic18f4550.h: added PORTD/TRISD
4729 declarations/definitions from patch #1520949
4731 2006-09-05 Raphael Neider <rneider AT web.de>
4733 * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4734 byte-aligned bitfields, fixes #1539278
4736 2006-09-05 Raphael Neider <rneider AT web.de>
4738 * src/pic/gen.c (genReceive): skip unreferenced arguments,
4741 2006-09-04 Borut Razem <borut.razem AT siol.net>
4743 * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4744 * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4745 -mno-cygwin is a part of the compiler name
4746 * support/scripts/sdcc_mingw32: don't disable ucsim
4748 2006-09-03 Borut Razem <borut.razem AT siol.net>
4750 * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4751 * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4753 2006-09-03 Raphael Neider <rneider AT web.de>
4756 * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4757 indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4760 2006-09-01 Borut Razem <borut.razem AT siol.net>
4762 * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4763 to make ppc-osx happy
4765 2006-08-31 Borut Razem <borut.razem AT siol.net>
4767 * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4768 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4769 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4770 * support/regression/ports/ds390/spec.mk,
4771 support/regression/ports/mcs51/spec.mk,
4772 support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4773 To run regression tests in mingw environment:
4774 make DEV_NULL=NUL CC=gcc
4776 2006-08-30 Borut Razem <borut.razem AT siol.net>
4778 * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4779 sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4780 sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4781 sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4782 sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4783 sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4784 sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4785 sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4786 sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4787 sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4788 sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4789 sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4790 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4791 sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4792 sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4793 sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4794 sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4795 sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4796 sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4797 sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4798 sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4799 sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4800 sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4801 sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4802 sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4803 sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4804 sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4805 sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4806 sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4807 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4808 sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4809 sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4810 sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4811 sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4812 sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4813 sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4814 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4815 sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4816 sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4817 ucsim WIN32 native port
4819 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4821 * doc/sdccman.lyx: added note on dynamic memory heap initialization
4823 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4825 * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4826 * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4828 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4830 * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4831 * support/regression/tests/bug1546986.c: new, added
4832 * as/mcs51/.cvsignore,
4833 * debugger/mcs51/.cvsignore,
4834 * src/.cvsignore: deleted
4836 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4838 * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4841 2006-08-20 Borut Razem <borut.razem AT siol.net>
4843 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4844 removed cl_listen_console::match(), cl_console::match(),
4845 restructured cl_commander::proc_input()
4847 2006-08-16 Borut Razem <borut.razem AT siol.net>
4849 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4850 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4851 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4853 2006-08-14 Borut Razem <borut.razem AT siol.net>
4855 * support/regression/Makefile.in,
4856 support/regression/ports/pic14/gpsim.cmd,
4857 support/regression/ports/pic14/spec.mk,
4858 support/regression/ports/pic14/support.c:
4859 added pic14 regression test
4861 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4863 * as/doc/asxhtm.html: documented changed ABS behaviour
4864 * as/doc/README: fixed some typos
4866 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4868 * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4871 2006-08-12 Borut Razem <borut.razem AT siol.net>
4873 * support/regression/fwk/include/testfwk.h,
4874 support/regression/fwk/lib/testfwk.c,
4875 support/regression/generate-cases.py,
4876 support/regression/Makefile.in:
4877 regression test framework does not depend on function pointers and
4880 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4882 * device/include/stddef.h: c temporary hack to fix bug 1518273
4884 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4886 * device/include/mcs51/cc2510fx.h: added
4887 * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4890 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4892 * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4893 * as/z80/Makefile.in: added strcmpi.c
4894 * as/z80/z80adr.c: added upper case registers and lower case conditionals
4895 * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4897 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4899 * device/lib/gbz80/asm_strings.s,
4900 * device/lib/gbz80/crt0_rle.s,
4901 * device/lib/gbz80/div.s,
4902 * device/lib/gbz80/mul.s,
4903 * device/lib/gbz80/shift.s,
4904 * device/lib/z80/asm_strings.s,
4905 * device/lib/z80/crt0_rle.s,
4906 * device/lib/z80/div.s,
4907 * device/lib/z80/mul.s,
4908 * device/lib/z80/shift.s: changed to all lower case menmonics except the
4909 flags which are all upper case
4911 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4913 * as/z80/asm.h: made CASE_SENSITIVE 1
4914 * link/z80/aslink.h: made CASE_SENSITIVE 1
4915 * src/z80/gen.c (throughout): made all conditionals upper case
4916 * support/regression/tests/bug1503067.c: new
4918 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4920 * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4921 (shiftIntoPair): added case 2 for PAIR_IY,
4922 (setupToPreserveCarry): replaced parameters with iCode and check if
4923 PAIR_DE is in use to fix bug 1399290,
4924 (genPlus, genMinus): updated call to setupToPreserveCarry
4925 * support/regression/tests/bug1399290.c: new
4927 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4929 * device/lib/Makefile.in (Z80SOURCES): enabled float support
4930 * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4931 * src/ds390/gen.c (shiftRLong),
4932 * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4933 * src/mcs51/gen.c (sameReg): changed to sameByte,
4934 (xch_a_aopGet): new,
4935 (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4936 shiftRLong): fixed bug 1533966
4937 * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4938 genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4939 * support/regression/Makefile.in: disabled z80, enabled ucz80
4940 * support/regression/tests/float_trans.c: enabled test for z80 and host
4941 * support/regression/tests/shifts2.c: new, for testing bug 1533966
4943 2006-08-01 Borut Razem <borut.razem AT siol.net>
4945 * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4946 comparison is always false due to limited range of data type
4947 on PPC64 machine (openpower-linux1) where "char = unsigned char"
4949 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4951 * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4952 * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4953 * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4954 * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4956 2006-07-31 Borut Razem <borut.razem AT siol.net>
4958 * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4959 sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4960 sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4961 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4962 sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4963 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4964 sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4965 sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4966 enable ucsim mingw compilation. Serial port is disabled,
4967 since it uses termios.h API, which is not available on native
4970 2006-07-31 Borut Razem <borut.razem AT siol.net>
4972 * Small Device C Compiler 2.6.0 released
4973 * support/scripts/sdcc.nsi: added FULL_DOC option
4974 * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4976 2006-07-28 Borut Razem <borut.razem AT siol.net>
4978 * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4979 * doc/INSTALL.txt: updated
4981 2006-07-27 Borut Razem <borut.razem AT siol.net>
4983 * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4984 device/lib/pic/libdev/Makefile.in: fixed bug
4985 [ 1438354 ] pic libsdcc: distclean doesn't work
4986 * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4987 device/lib/pic16/libio/Makefile.in: fixed bug
4988 [ 1438344 ] pic16 lib: clean doesn't work properly
4989 * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4991 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4993 * device/lib/pic/libsdcc/fsdiv.c,
4994 * device/lib/pic/libsdcc/fsmul.c,
4995 * device/lib/pic16/libsdcc/float/fsdiv.c,
4996 * device/lib/pic16/libsdcc/float/fsmul.c,
4997 * device/lib/_fsdiv.c,
4998 * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4999 * support/regression/tests/bug1520966.c: added
5000 * doc/knownbugs.html: removed [ 1520966 ] from the list
5002 2006-07-25 Borut Razem <borut.razem AT siol.net>
5004 * configure.in, configure, sdccconf_in.h: fixed bug
5005 [ 1519095 ] regression test onebyte.c fails on ppc64 host
5006 * doc/knownbugs.html: removed [ 1519095 ] from the list
5008 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
5010 * doc/knownbugs.html: added, contains list of known bugs at release
5011 * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
5013 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
5015 * device/include/mcs51/compiler.h: added SFRX for xdata based special
5016 function registers and corrected defaults with additional warning
5017 * device/lib/malloc.c: cosmetic changes
5018 * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
5019 * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
5020 (fillGaps): and used it
5022 2006-07-20 Raphael Neider <rneider AT web.de>
5024 * src/pic/device.c (addMemRange,assignRegister): suppress verbose
5025 output unless SDCCPICDEBUG is set
5026 * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
5027 output if SILENT is set
5029 2006-07-11 Borut Razem <borut.razem AT siol.net>
5031 * doc/README.txt: updated
5033 2006-07-10 Borut Razem <borut.razem AT siol.net>
5035 * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
5036 device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
5037 in WIN32 installation
5038 * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
5041 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
5043 * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
5044 * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
5046 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
5048 * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
5050 2006-07-06 Borut Razem <borut.razem AT siol.net>
5052 * support/regression/tests/bitfields.c:
5053 fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
5054 * support/regression/tests/constantRange.c:
5055 fixed bug [ 1518317 ] regression test constantRange fails on alpha host
5057 2006-07-04 Borut Razem <borut.razem AT siol.net>
5059 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
5061 src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5062 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5063 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5064 reverted changes from 2006-07-03
5065 * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
5066 * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
5067 added CPPFLAGS, used by the host port
5069 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
5071 * support/regression/valdiag/tests/switch.c,
5072 * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
5073 * support/regression/tests/libmullong.c: fixed for host
5074 * support/regression/ports/host/spec.mk: disable all warnings for host,
5075 SDCC runs with --less-pedantic too
5077 2006-07-03 Borut Razem <borut.razem AT siol.net>
5079 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
5081 * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
5082 * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
5083 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
5084 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
5086 * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
5087 sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
5088 sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
5089 sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
5091 2006-07-02 Raphael Neider <rneider AT web.de>
5093 * src/pic16/devices.inc,
5094 * device/include/pic16/pic18fregs.h,
5095 * device/include/pic16/pic18f4550.h,
5096 * device/lib/pic16/pics.all,
5097 * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
5099 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
5101 * as/hc08/lkaomf51.c (OutputName),
5102 * as/mcs51/lkaomf51.c (OutputName),
5103 * as/z80/asmain.c (asmbl),
5104 * src/ds390/main.c (asmLineNodeFromLineNode),
5105 * src/hc08/ralloc.c (hc08_assignRegisters),
5106 * src/mcs51/main.c (asmLineNodeFromLineNode),
5107 * src/xa51/ralloc.c (checkRegMask),
5108 * src/xa51/gen.c (emitcode),
5109 * src/z80/gen.c (_emit2),
5110 * src/SDCCast.c (searchLitOp),
5112 * support/packihx/packihx.c,
5113 * support/Util/MySystem.c (split_command): fix gcc 4 warnings
5114 * src/ds390/gen.c (aopPutUsesAcc),
5115 * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
5116 * support/regression/tests/libmullong.c (mullong_wrapper),
5117 * src/SDCCsymt.c (powof2),
5119 * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
5120 * src/SDCCsymt.h: added TYPE_TARGET_*
5121 * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
5122 * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
5123 SDCCast because 1) header problems 2) this is the right place
5124 * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
5125 * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
5128 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5130 * src/SDCCicode.h: removed buggy semicolon in unused macro
5131 * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
5132 search for previous definiton of auto symbols too,
5133 (findPrevUse): fixed logic of emitWarnings
5135 2006-06-26 Raphael Neider <rneider AT web.de>
5137 * src/pic16/gen.c (genFunction, genEndFunction): also preserve
5138 PCLATH and PCLATU on interrupts, potentially fixes #1505141
5140 2006-06-25 Raphael Neider <rneider AT web.de>
5142 * device/lib/pic/libm: NEW, added math library functions
5143 * device/lib/pic/libsdcc: NEW; added float support functions
5144 * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
5145 * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
5146 NEW, added math related headers
5147 * device/include/asm/pic/features.h: NEW
5148 * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
5149 (popGet): allow larger offsets for AOP_PCODE,
5150 (genDataPointerSet): handle literals explicitly, more debug output,
5151 (genAssign): fixed for float using aopLiteral ;-)
5152 * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
5153 GOTO initialisation routine
5154 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
5155 flag on registers, fixes #1469043 (local variables do not work)
5156 * src/pic/main.c (_pic14_do_link),
5157 * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
5160 2006-06-25 Borut Razem <borut.razem AT siol.net>
5162 * device/lib/pic16/libc/stdio/sprintf.c: return the number of
5163 characters printed (not including the trailing '\0' used to end
5164 output to strings). Problem detected in regression test bug-927659.c.
5165 NOTE: printf() family functions should return int instead
5167 * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
5168 specifier are printed as themselves
5169 * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
5170 support flags, width and precision specifiers
5172 2006-06-24 Borut Razem <borut.razem AT siol.net>
5174 * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
5175 to the list of sdcc tagrets not supporting bit type
5176 * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
5177 testfor pic16 due to bug:
5178 [ 1511794 ] pic16: regression test bug-895992.c fails
5180 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
5182 * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
5183 * src/SDCCglue.c (initPointer), fixed bug 1496419
5184 * support/regression/tests/bug1496419.c: new, added
5186 2006-06-22 Borut Razem <borut.razem AT siol.net>
5188 * support/regression/ports/pic16/support.c: use gpsim usart module from
5189 libgpsim_modules library
5191 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5193 * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
5196 2006-06-19 Raphael Neider <rneider AT web.de>
5198 * src/pic/glue.h,src/pic16/glue.h: added prototypes
5199 * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
5200 pic1x_emitSymbolIfNew): NEW, check for a string in a set,
5201 (pic14printExterns,pic14printPublics,pic16printPublics,
5202 pic16_printExterns): use new functions to emit symbols
5203 (picglue,pic16glue): emit publics before emitting externs
5204 * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5205 locally defined functions to avoid bug #1443651
5206 * support/regression/tests/bug-716242.c: removed pic16 workaround
5207 * support/regression/ports/pic16/spec.mk: ignore errors during build
5209 2006-06-19 Raphael Neider <rneider AT web.de>
5211 * src/pic/glue.h: added pic14aopLiteral prototype
5212 * src/pic/glue.c (pic14aopLiteral): return unsigned int
5213 * src/pic/gen.c: removed stdint.h dependency
5214 (aopGet): use Safe_strdup()
5215 (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5216 (genDataPointerSet): use pic14aopLiteral()
5217 * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5218 for pic16; thanks to Bernhard and Maarten
5220 2006-06-18 Borut Razem <borut.razem AT siol.net>
5222 * support/regression/tests/structflexarray.c: flexible array members
5223 not supported by gcc < 3
5224 * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5226 * src/pic/gen.c: don't include [p]strdin.h on solaris
5227 * support/Util/pstdint.h: addad svn attributes
5228 * support/regression/tests/constantRange.c,
5229 support/regression/tests/rotate.c: include inttypes.h instead
5230 stdint.h on solaris, addad svn attributes
5232 2006-06-18 Raphael Neider <rneider AT web.de>
5234 * src/SDCCsymt.c (initCSupport): change return type of divschar to
5236 * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5237 (pic16_genMinusBits): simplified sign-extension
5238 (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5239 pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5240 adjusted to correctly handle mixed-signed operands, disabled
5241 now unused multiplciation routines
5242 * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5243 (assignResultValue): added argument denoting the size of the result
5244 as returned by the function (fixes upcasts in assigning from
5245 function calls: char foo(); int i = foo();)
5246 (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5247 function result to assignResultValue
5248 (genMult): disabled inlined multiplication code
5249 (genDiv): augmented to also handle the modulus operator, fixed to
5250 handle mixed-signed operands correctly
5251 (genMod): simply call genDiv, disabled unused code
5252 (genAssign): fixed missing (sign-)extension on result
5253 * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5254 valid char operands, allow signed operands for native code, added
5255 division and modulo operator handling
5256 * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5258 As a consequence, onebyte.c (if split into two files) and muldiv.c
5259 pass regression tests.
5261 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5263 * doc/Makefile.in: two runs of makeindex seem needed to get
5264 correct page references in the index of sdccman.pdf
5265 * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5267 2006-06-17 Borut Razem <borut.razem AT siol.net>
5269 * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5271 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5273 * doc/sdccman.lyx: updated, added (porting source code, debugging),
5274 mentioned ec2drv and paulmon
5276 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5278 * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5279 consecutive abs areas
5280 (find_empty_space, allocate_space): added map to handle codemap or
5282 (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5283 absolute idata and xdata
5284 * as/mcs51/lkmem.c (summary2): updated legend
5286 2006-06-16 Raphael Neider <rneider AT web.de>
5288 * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5290 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5292 * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5294 * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5296 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5298 * src/port.h (struct PORT): added field gp_tags, to hold the tag
5299 value of generic pointers,
5309 src/z80/main.c: PORT structure, added elements for gp_tags field,
5310 * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5311 fields in the PORT structure of each port,
5312 * src/SDCCast.c (decorateType): allow processing of generic pointers
5313 for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5316 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5322 * src/pic16/pcode.c,
5324 * src/pic/pcoderegs.c,
5327 * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5328 bug 1504689 on minGW
5330 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5332 * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5334 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5336 * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5338 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5340 * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5343 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5345 * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5346 to a char variable. Fixed bug #1504211
5347 * device/include/pic16/adc.h,
5348 device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5349 and fixed bug #1364390
5351 2006-06-10 Borut Razem <borut.razem AT siol.net>
5353 * CVSROOT: removed the CVS left-over
5355 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5357 * as/hc08/asmain.c (asexit),
5358 * as/hc08/lkmain.c (lkexit),
5359 * as/mcs51/asmain.c (asexit),
5360 * as/mcs51/lkmain.c (lkexit),
5361 * src/SDCCglue.c (DEFSETFUNC),
5362 * src/SDCCmain.c (linkEdit, assemble),
5363 * support/librarian/sdcclib.c (AddRel),
5364 replaced unlink() by standard C remove()
5365 * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5366 * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5367 gatherImplicitVariables): new, added to fix bug 608752,
5368 (createFunction): added gatherImplicitVariables()
5369 * src/SDCCast.h: added createRMW prototype
5370 * src/SDCCsymt.h (struct symbol): added infertype
5371 * support/regression/tests/bug608752.c: new, added
5373 2006-06-10 Raphael Neider <rneider AT web.de>
5375 * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5376 multibyte dummy reads (fixes #1503234)
5378 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5380 * device/include/mcs51/compiler.h: new, added header file to enable
5381 creating common sfr definition header files for different compilers
5383 2006-06-05 Raphael Neider <rneider AT web.de>
5385 * src/pic16/{pcode.h,genarith.c}:
5386 introduced pCodeOp combining any two pCodeOps (previously only
5387 two register operands could be combined), removed pcop2 from
5388 pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
5389 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
5390 * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
5391 rewritten to use new PO_TWO_OPS
5392 * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
5393 * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
5394 (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
5395 (pic16_newpCodeOp2): NEW, create combined pCodeOp,
5396 (pic16_get_op): embraced return arg to allow #define return(x),
5397 added new case for combined opcodes
5398 (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5399 (pic16_pCode2str,pic16_getRegFrompCodeOp,
5400 pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5402 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
5404 * src/SDCCval.c (checkConstantRange): added
5405 * src/SDCCval.h: added checkConstantRange
5406 * support/Util/SDCCerr.c,
5407 * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
5408 W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
5409 * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
5410 * src/SDCCast.c (decorateType): added checkConstantRange,
5411 added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
5412 can be emitted with the correct always true/false warning,
5413 added optimization for double '!';
5414 result of decorateType() must be assigned back to the tree, because
5415 decorateType() can change the tree
5416 * src/SDCCicode.c (geniCodeLogic),
5417 (geniCodeAssign): replaced new checkConstantRange, added warnings,
5418 (checkConstantRange): removed, it was only a fragment which never
5420 * src/SDCCsymt.c (computeType): fixed promotion for
5421 "-1 < (unsigned bit) b"
5422 * src/pic/ralloc.c (packRegsForAssign),
5423 * src/pic16/ralloc.c (packRegsForAssign),
5424 * src/hc08/ralloc.c (packRegsForAssign),
5425 * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
5427 * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
5428 * support/regression/tests/constantRange.c: added
5429 * support/valdiag/tests/constantRange.c: added
5430 * support/valdiag/valdiag.py: added -DPORT_HOST=1
5432 2006-06-02 Borut Razem <borut.razem AT siol.net>
5434 * support/regression/ports/pic16/support.c: increase stack size
5436 * support/regression/Makefile.in: sort tests by name so that the
5437 resutlts can be compared on different machines / platforms
5439 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5441 * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5442 * src/ds390/gen.c (emitLabel): new, added,
5443 (genDjnz): fixed stack overflow bug,
5444 (throughout): cosmetic changes to sync with mcs51/gen.c,
5445 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5446 * src/mcs51/gen.c (genEndFunction): small optimization,
5447 (throughout): cosmetic changes to sync with ds390/gen.c
5449 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5451 * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5452 (_print_format): fixed printing pointers
5453 * src/mcs51/gen.c (emitLabel, movb): new, added,
5454 (genAssign): small optimization,
5455 (genDjnz): fixed stack overflow bug,
5456 (throughout): replaced sprintf with SNPRINTF,
5457 replaced mcs51_regWithIdx with REG_WITH_INDEX,
5458 replaced emitcode("mov", "b,...") with MOVB(...),
5459 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5460 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5461 * src/mcs51/peeph.def: added rules 140 and 264
5462 * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5463 so they may get optimized into registers
5465 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5467 * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5468 immediately when encountered,
5469 (printUsage): always use stderr even on windows
5471 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5473 * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5474 (processParms): fixed bug #1247551
5475 * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5476 parseCmdLine, main): print '--version' to stdout,
5477 print 'help' to stdout if --help is given,
5478 print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5479 arguments are given; fixed --help
5481 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5483 * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5484 * support/regression/tests/bug-1493710.c: added
5486 2006-05-27 Borut Razem <borut.razem AT siol.net>
5488 * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5490 * support/regression/ports/pic16/support.c: increase stack size
5491 from default 64 bytes to 128 bytes
5492 * support/regression/tests/staticinit.c,
5493 support/regression/tests/float.c: regression tests fully enabled
5494 for pic16 port by putting the initialized data arrays into the code
5496 * support/regression/ports/pic16/spec.mk: don't link default libraries.
5497 This was changed by mistake in the previous version.
5499 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5501 * src/pic16/gen.c (genFunction, genEndFunction): some
5502 beautifications, fixed bug with falsely restoring FSR2 in large
5503 stack model, thanks to Beau E. Cox for reporting the bug
5505 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5507 * debugger/mcs51/break.c,
5508 * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5509 use %p to print pointers, made address variables unsigned
5510 * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5511 * debugger/mcs51/symtab.c (parseSymbol): must return something
5512 * src/mcs51/gen.c (aopForSym): small optimization,
5513 moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5514 (freeAsmop): added missing break,
5515 (aopPut): removed parameter bvolatile, determine it inside the function,
5516 (saveRegisters, unsaveRegisters): small optimization,
5517 (genIpush): removed pointless check,
5518 (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5519 replaced sprintf with SNPRINTF,
5520 replaced strcpy with strncpyz,
5521 updated aopPut calls,
5522 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5523 * src/mcs51/ralloc.h: added declarations mcs51_ptrRegReq and mcs51_nRegs
5525 2006-05-24 Borut Razem <borut.razem AT siol.net>
5527 * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5528 modification of test for the pic16 port, put the array to the code
5529 memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5531 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5533 * src/pic/gen.c: MSC 6 does not have <stdint.h>. Use pstdint.h instead.
5534 * support/Util/pstdint.h: added
5536 2006-05-22 Borut Razem <borut.razem AT siol.net>
5538 * src/regression/Makefile: removed bool2.c test, added -q linker option
5539 * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5540 src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5541 src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5542 src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5543 src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5544 src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5545 src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5546 src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5547 define SUPPORT_BIT_TYPES 0, removed unused bit variables
5549 2006-05-22 Raphael Neider <rneider AT web.de>
5551 * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5552 bug #1492360 (problematic due to generic pointers, see code)
5554 2006-05-22 Borut Razem <borut.razem AT siol.net>
5556 * support/regression/ports/pic16/specs.mk: removed stack size linker
5558 * support/regression/tests/array.c,
5559 support/regression/tests/bitopcse.c,
5560 support/regression/tests/bug-908454.c,
5561 support/regression/tests/malloc.c: modified for pic16 regression test
5562 * support/regression/tests/bitfields.c:
5563 pic16 - excluded bitfileds of size > 8
5564 * support/regression/tests/bp.c: pic16 - reduced data size
5565 * support/regression/tests/bug-221100.c: pic16 - reduced data size
5566 * support/regression/tests/bug-460010.c:
5567 pic16 - used the absolute address the fits in memory
5568 * support/regression/tests/bug-716242.c:
5569 bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5570 * support/regression/tests/float.c:
5571 pic16 - excluded - data size too big
5572 * support/regression/tests/onebyte.c:
5573 pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5574 * support/regression/tests/shifts.c:
5575 pic16 - function names probably have to differ in first X characters
5577 * support/regression/tests/staticinit.c:
5578 pic16 - excluded some tests due error: no target memory available for
5581 2006-05-22 Borut Razem <borut.razem AT siol.net>
5583 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5584 second try. Thanks Stas Sergeev once more.
5586 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5588 * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5589 (genLeftShift, genRightShift): fixed bug 1491627
5590 * src/hc08/peeph.def (rules 7, 8.x): added
5591 * support/regression/tests/shifts.c (ShiftLeftByParam,
5592 ShiftRightByParam, testShiftByParam): added to test variable shifting
5594 2006-05-20 Raphael Neider <rneider AT web.de>
5596 * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5597 * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5598 (allocReg): add only new registers to dynAllocRegs,
5599 (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5600 #1489055, #1445850, and probably #1483693
5602 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5604 * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5605 bug in for-loop that didn't emit the last of CONFIG and ID registers
5607 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5609 * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5611 * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5612 1489016, 1434401 and 1490124
5613 * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5614 1489016, 1434401 and 1490124
5616 2006-05-17 Borut Razem <borut.razem AT siol.net>
5618 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5621 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5623 * device/include/mcs51/P89c51RD2.h,
5624 * device/include/mcs51/P89LPC901.h,
5625 * device/include/mcs51/P89LPC922.h,
5626 * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5628 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5630 * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5631 to fix missing stack pragma in compiled binary object file,
5633 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5635 * support/packihx/configure.in,
5636 * support/packihx/configure: removed warning, autoconf >= 2.5x can
5637 determine sizeof basic types even while cross compiling
5639 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5641 * src/avr/gen.c (aopop),
5642 * src/ds390/gen.c (aopOp),
5643 * src/hc08/gen.c (aopOp),
5644 * src/mcs51/gen.c (aopop),
5645 * src/pic16/gen.c (pic16_aopOp),
5646 * src/pic/gen.c (aopOp),
5647 * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5648 if size of operand is smaller than spill location
5650 2006-05-12 Borut Razem <borut.razem AT siol.net>
5652 * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5653 have to have CR/LF line endings even if they are checked out on *nix
5654 or on WIN32 in cygwin binmode
5656 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5658 * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5659 * device/include/ds80c390.h: added sfr16 definitions
5663 * src/ds390/ralloc.c,
5664 * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5665 fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5666 bit returning functions
5667 * support/regression/tests/sfr16.c: enabled test on ds390
5669 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5671 * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5672 * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5674 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5676 * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5677 * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5678 (cl_address_space constructor): removed expensive initialization,
5679 (cl_address_space::get_cell): extended for late initialization,
5680 (cl_address_space::*): use late initialization,
5681 (cl_address_decoder::activate): removed expensive initialization,
5682 This reduced regression test running time by 25%
5684 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5692 * support/packihx/Makefile.in,
5693 * support/packihx/clean.mk,
5694 * support/packihx/Makefile.bcc,
5695 * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5697 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5699 * src/SDCCval.c (valNot): fix for regression test failure
5700 of not.c on big endian hosts
5702 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5704 * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5706 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5708 * device/lib/mcs51/Makefile.in: changed string comparison operator
5709 to = for POSIX compliance; == is bash extension
5711 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5713 * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5716 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5718 * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5719 allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5720 * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5721 * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5722 bug report #1478657,
5724 2006-05-05 Borut Razem <borut.razem AT siol.net>
5726 * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5729 2006-05-02 Borut Razem <borut.razem AT siol.net>
5731 * doc/Makefile.in: removed *.ind dependency since there is no rule to
5732 create *.ind, which made make to fail if invoked with -j 2
5734 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5736 * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5737 Hubert Sack for patch 1479782
5739 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5741 * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5743 2006-05-01 Raphael Neider <rneider AT web.de>
5745 * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5746 (create_pic): store only prefix-free device name,
5747 (init_pic): check for device names with "16" prefix,
5749 * src/pic/device.h (struct PIC_device),
5750 * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5752 * device/include/pic/pic12f{635,675,629,683}.h,
5753 * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5754 * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5755 * device/include/pic/pic16f505.h,
5756 * device/lib/pic/libdev/pic16f505.c: removed
5757 * device/include/pic/pic14devices.txt: added support for pic12f
5758 devices, removed unsupported non 16-bit devices
5759 [above changes provided by patch from Zik Saleeba]
5760 * src/pic/*, src/pic16/*, device/include/pic16/*,
5761 device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5763 2006-05-01 Borut Razem <borut.razem AT siol.net>
5765 * configure.in, configure, doc/Makefile.in:
5766 sync with nightly build makefile - latex, dvipdf and dvips
5769 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5771 * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5772 in the library source
5774 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5776 * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5778 2006-04-28 Raphael Neider <rneider AT web.de>
5780 * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5781 * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5782 (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5783 * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5785 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5787 * device/lib/pic/libdev/Makefile.in,
5788 * device/lib/hc08/Makefile.in,
5789 * device/lib/gbz80/Makefile.in,
5790 * device/lib/z80/Makefile.in,
5791 * device/lib/ds390/Makefile.in,
5792 * device/lib/ds400/Makefile.in: added srcdir to include search path,
5793 thanks to Borut for the bug report
5795 * configure: always create doc/Makefile independent from --enable-doc
5796 * Makefile.in: always install from directory doc independent from
5798 * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5800 * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5801 * doc/Makefile.in: install *.txt if present
5802 * device/include/Makefile.in (install): added installation of pic/*.inc
5803 and pic/*.txt files again, they were erroneously removed
5805 2006-04-28 Raphael Neider <rneider AT web.de>
5807 * src/pic/{gen.c,main.h,pcode.c},
5808 * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5809 concerning signedness with casts
5811 2006-04-28 Raphael Neider <rneider AT web.de>
5813 * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5814 definition of an interrupt handler,
5815 * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5816 interrupt handler stuff from picglue() to separate routine,
5817 (picglue): enabled definition of intr handlers in files w/o main()
5819 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5821 * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5822 compilation with MSVC 2005 Express Edition (VC8)
5824 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5826 * device/lib/Makefile: fixed build of gbz80 lib
5828 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5830 * support/regression/tests/bug-460010.c,
5831 * support/regression/tests/bug-524691.c,
5832 * support/regression/tests/bug-716242.c: removed conditional defines
5833 that are already in testfwk.h
5835 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5837 * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5838 (AccAXRsh1): added, shift right by 1,
5839 (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5841 * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5843 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5845 * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5846 remove cast to same type
5847 * src/SDCCast.c (decorateType): fix for RFE 1475742,
5848 optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5850 * link/z80/Makefile: removed, they have moved to
5853 * configure.in: replaced duplicate message about ucsim by missing sdcpp
5854 * install-sh: fix bug #1204398 by setting umask 0022
5855 * device/lib/Makefile: separate build of z80 and gbz80 lib
5857 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5859 Enabled VPATH feature: changed nearly all Makefiles (149 files).
5860 See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5862 One basic decision: e.g. src/clean.mk includes further files. In order
5863 to make this work there are two solutions:
5864 - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5865 run configure on them. This way they can use
5866 'include $(srcdir)/port-clean.mk'
5867 - always include clean.mk by the Makefile at the same level. To avoid
5868 that `make clean` tries to include and build Makefile.dep the
5869 MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5870 implemented, because now even `make uninstall` doesn't create
5871 Makefile.in. clean.mk could be eliminated by pasting it in
5874 * debugger/mcs51/Makefile.in: build own objects from library sources
5875 (SLIB, SDCC) in current directory
5877 * configure, configure.in: renamed --disable-device-lib-build in
5878 --disable-device-lib; added --enable-doc, the required tools are
5879 searched by configure; added result message; the toolchain for the
5880 belonging ports are now only built, if the port is enabled.
5882 * support/regression/*: all output is written in directory gen, because
5883 the fwk and ports directories don't livet in the build tree using vpath
5885 * doc/sdccman.lyx: renamed --disable-device-lib-build to
5886 --disable-device-lib, added --enable-doc, added section VPATH
5888 * sim/ucsim/configure.in,
5889 * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5890 z80 are enabled by default
5892 2006-04-24 Raphael Neider <rneider AT web.de>
5894 * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5895 to config word, "pic14_"-prefixed some extern functions
5896 (pic14_emitConfigWord): emit __config directive(s) if assignment to
5897 config word has been found
5898 * src/pic/device.h: added prototypes
5899 * src/pic/pcode.c: added "pic14_"-prefix where needed
5900 * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5902 * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5904 (pic14emitRegularMap): ignore config words,
5905 (pic14createInterruptVect): moved generating __config directives away
5906 (picglue): have __config directives emitted
5908 2006-04-24 Borut Razem <borut.razem AT siol.net>
5910 * doc/Makefile: sync with nightly build makefile
5912 2006-04-24 Raphael Neider <rneider AT web.de>
5914 * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5915 registers that have not been assigned proper liveranges,
5916 fixes #1469504 and #1474602,
5917 (pCodeRegOptimizeRegUsage): fixed typo in comment
5919 2006-04-24 Borut Razem <borut.razem AT siol.net>
5921 * device/examples/main8051.c: deleted - it was removed from CVS
5922 24.mar.2000 and after that modified 18.feb.2001, so it reappered
5923 after the transition to Subversion
5924 * src/SDCCalloc.h: deleted - it was removed from CVS
5925 3.feb.2001 and after that modified 18.feb.2001, so it reappered
5926 after the transition to Subversion
5927 * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5928 sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5929 sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5930 sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5932 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5934 * as/asx8051.dsp: added mcs51/strcmpi.h
5935 * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5936 * as/hc08/aslink.h: updated lnksect prototype
5938 * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5940 * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5941 (newdot): handle A_ABS
5943 * as/mcs51/asout.c (outarea): output address
5944 * as/hc08/lkaomf51.c,
5945 * as/mcs51/lkaomf51.c: disabled unused array UsageType
5947 * as/mcs51/i51pst.c,
5948 * as/z80/z80pst.c: "ABS" is not A_OVR
5949 * as/hc08/lkarea.c (newarea): read a_addr,
5950 (lnkarea): added codemap array, sort absolute areas to the front,
5951 combine all GSINITx/GSFINAL,
5952 (find_empty_space, allocate_space): new functions,
5953 (lnksect): return next address, handle absolute sections
5954 * as/mcs51/lkarea.c (newarea): read a_addr,
5955 lnksect2 prototype changed,
5956 (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5957 (find_empty_space, allocate_space): new, factored out of lnksect2,
5958 (lnksect2): return next address, handle absolute sections
5960 * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5961 * as/hc08/lklibr.c (addfile, fndsym),
5962 * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5963 index out of range and detect both '\' and '/'
5964 * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5965 * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5966 regression tests (ds390 cannot return bool yet)
5967 * doc/sdccman.lyx: changed version number, document changed --no-peep,
5968 document critical interrupts on z80, document changed SDCC define
5969 * src/asm.c (_asxxxx_mapping): fixed .org directive,
5970 (_a390_mapping): added .org directive
5971 * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5972 (genMultOneByte): fixed warnings
5973 * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5975 * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5976 * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5977 (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5978 * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5979 * src/pic16/main.c: removed newReg prototype
5980 * src/pic16/pcode.c,
5981 * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5983 * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5985 * src/pic16/ralloc.c
5986 * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5988 * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5989 from short to PIC_OPTYPE
5990 * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5991 * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5992 optype from short to PIC_OPTYPE
5993 * src/port.h: made int_size unsigned to fix warnings
5994 * src/SDCC.y: fixed warning on MSVC
5995 * src/SDCCicode.c (getArraySizePtr): return unsigned int
5996 * src/SDCCopt.c (convertToFcall): fixed warnings
5997 * src/SDCCsymt.h: removed double prototype for genSymName
5998 * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5999 offset int to fix warnings
6001 2006-04-22 Borut Razem <borut.razem AT siol.net>
6003 * doc/sdccman.lyx, */Makefile, */Makefile.in:
6004 references to CVS replaced with Subversion
6006 2006-04-21 Borut Razem <borut.razem AT siol.net>
6008 * doc/sdccman.lyx, */Makefile, */Makefile.in:
6009 references to CVS replaced with Subversion
6011 2006-04-19 Borut Razem <borut.razem AT siol.net>
6013 * src/version.awk: adapted for svn
6014 * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
6015 sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
6016 sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
6017 /binutils-avr/etc/*.vi, *.jin: removed all properties
6018 support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
6020 2006-04-19 Borut Razem <borut.razem AT siol.net>
6022 * CVS to Subversion migration completed
6024 2006-04-18 Borut Razem <borut.razem AT siol.net>
6026 * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
6027 ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
6029 2006-04-17 Borut Razem <borut.razem AT siol.net>
6031 * device/include/Makefile.in: added pic/*.inc to the installation
6033 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
6035 * support/regression/collate-results.py: fixed output in case of
6037 * support/regression/generate-cases.py: fixed splitting of pathnames
6039 * as/hc08/lklibr.c (addfile),
6040 * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
6042 2006-04-11 Raphael Neider <rneider AT web.de>
6044 * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
6045 * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
6046 * src/pic16/pcode.c (assignValnums): fixed #1460578
6048 2006-04-11 Raphael Neider <rneider AT web.de>
6050 * device/lib/pic/libdev/*.c,
6051 * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
6052 fixes #1468739, enables compilation in --std-c99 mode
6053 * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
6055 2006-04-11 Raphael Neider <rneider AT web.de>
6057 * src/pic/device.c (find_device): removed debug output
6058 (list_valid_pics): enabled verbose listing of supported devices
6059 * device/include/stdbool.h: define bool as char for pic14/16 as well
6061 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6063 * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
6065 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
6067 * .version: bumped version to 2.5.6
6068 * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
6070 2006-04-06 Raphael Neider <rneider AT web.de>
6072 * .version: bumped version to 2.5.6 (pic14 ABI changed)
6073 * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
6074 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
6075 pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
6076 pic14_constructAbsMap
6077 (pic14printPublics): declare absolute global symbols as global
6078 (pic14createInterruptVect),
6079 * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
6080 (newReg): assume new registers unused, use correct name in
6081 hashtable (reg->name instead of name), more debugLog output
6082 * src/pic/device.h (PIC_device): added fields for verbose output
6083 * src/pic/device.c: moved device definition to pic14devices.txt,
6084 added routines for runtime parsing of pic14devices.txt,
6085 added support for second config word
6086 * src/pic/main.c (_process_pragma): removed #pragma maxram,
6087 (_pic14_keywords): no longer accept "bit" and "sbit" keywords
6088 (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
6089 (_pic14_parseOptions): moved pCodeInitRegisters here
6090 (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
6091 * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
6092 (pCodeInitRegisters): rewrapped comments, perpared new approach to
6093 handling the pseudo stack
6094 * device/lib/Makefile.in: ignore failures in objects-pic16,
6095 * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
6096 * device/lib/pic/NEWS: document new dependency on picXXX.lib
6097 * device/lib/pic/Makefile.subdir,
6098 * device/lib/pic16/Makefile.subdir: improved clean rules
6099 * device/lib/pic/libdev/: NEW, pic14 device libraries
6100 * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
6101 * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
6102 * device/include/Makefile.in: create subdir and install pic14 headers
6103 * device/include/pic/p16f_common.inc: removed unused declarations
6104 * device/include/pic/pic16*.h: added header files for 100+ 14 bit
6105 PICs from inc2h.pl v1.6,
6106 replaced BIT_AT macros with struct declarations
6107 * device/include/pic/pic14devices.txt: definition of supported devices,
6108 all above improvements contributed by Zik Saleeba, thanks
6109 * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
6110 * support/scripts/sdcc.nsi: also install pic14 device libraries and
6113 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6115 * device/include/mcs51/c8051f410.h: added interrupt numbers,
6116 * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
6117 thanks to Charles Olds
6119 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6121 * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
6123 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
6125 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
6126 * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
6127 * support/regression/bug1464657.c: added, new test
6129 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6131 * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
6134 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6136 * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
6137 --no-peep and --peep-file <file> are used don't use default rules but
6140 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
6142 * src/mcs51/gen.c (genCall): fixed bug 1457608
6144 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6146 * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
6147 changes seem to cause (trigger?) problems with the build system.
6149 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
6151 * src/SDCCpeeph.c (operandsLiteral): new, added,
6152 (callFuncByName): inserted operandsLiteral
6153 * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
6155 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6157 * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
6158 * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
6160 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
6162 * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
6163 implemented patch 1120823 Thanks to Willy De la Court (normal
6164 interrupts need an interrupt number now if they are made critical),
6165 and enabled nesting of critical functions though not for gbz80
6166 (genCritical, genEndCritical): added functions
6167 (genZ80Code): added cases for CRITICAL and ENDCRITICAL
6168 * src/z80/mappings.i: added "ei" to all mappings
6170 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6172 * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
6173 submitted by the Debian SDCC maintainer Aurelien Jarno:
6174 "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
6175 archive with gcc 4.1 on mips and wrote the patch"
6177 2006-03-16 Raphael Neider <rneider AT web.de>
6179 * src/pic16/genarith.c (genAddLit): simplified and fixed case where
6180 the left operand is shorter than the result (c* = lit-c* + int),
6182 * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
6185 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
6187 * src/.version: increased version number to 2.5.5
6188 * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
6189 linking is done manually in pic16 port's _linkEdit,
6190 * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
6191 PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
6192 * src/pic16/gen.c (aopForSym): when direct register name is WREG then
6193 allocate asmop as AOP_ACC,
6194 (aopForRemat): added parameter 'bool result' in function declaration,
6195 (pic16_aopGet): return AOP_ACC when accessing WREG,
6196 (pic16_popGetTempReg): minor modification,
6197 (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
6198 'pic16_allocWithIdx',
6199 (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
6200 calling function in absolute addresses,
6201 (genAssign): take into account AOP_ACC asmop,
6202 * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
6203 * src/pic16/pcoderegs.c: some debug functions and lines added,
6204 * src/pic16/ralloc.c (decodeRegType): added but commented out,
6205 * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6207 * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6208 call to allocReg, not by manually allocating a new one,
6209 (pic16_assignRegisters): now before going through the register
6210 allocating functions mark all registers as free. This eliminates some
6211 side effects resulting from peephole parser done earlier in the backbone
6213 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6215 * src/SDCCicode.c (geniCodeLogic),
6216 * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6218 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6220 * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6221 (genSend): bugfix, do not allocate and free twice,
6222 (shiftRLong): handle partially overlapping aops
6223 * support/regression/tests/bitopcse.c: fixed warning redefined idata
6225 2006-03-08 Borut Razem <borut.razem AT siol.net>
6227 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6230 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6232 * support/regression/tests/bug1409955.c: new, added
6233 * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6234 * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6235 (aopForSym, aopOp): increment asmop.allocated if reused,
6236 (freeAsmop): decrement asmop.allocated and check for zero instead of
6238 (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6239 (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6240 genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6241 genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6242 genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6243 genSignedRightShift, genRightShift, genDataPointerGet,
6244 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6245 genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6246 in reverse order from allocation,
6247 (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6248 added swappedLR to keep track
6249 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6250 pdata & code for GCC, z80, gbz80 & hc08
6251 * support/regression/tests/zeropad.c: moved defines to testfwk.h
6253 2006-03-08 Raphael Neider <rneider AT web.de>
6255 * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6257 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6259 * device/include/mcs51/c8051f410.h: new SiLabs mcu
6260 * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6261 * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6263 2006-03-06 Borut Razem <borut.razem AT siol.net>
6265 * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6266 made the linker quiet
6268 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6270 * src/pic16/gen.c (genPcall): fixed bug #1443644
6271 * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6272 which dumps before the function entry point a data byte which represents
6273 the number of the local variables used by the specified function, added
6274 'xinst' for initial support for Extended Instruction Support,
6275 * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6276 (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6277 port->fun_prefix anymore (may change later),
6278 (genFunction, genEndFunction): do not store/restore local registers for
6279 _main (this should take care the --main-return command line option in
6281 (genOr): removed some legacy pic-port instructions,
6282 * src/pic16/genarith.c (genAddLit): re-enabled old code because
6283 performing operations with SFR's causes data to be written more than
6284 once to each SFR. Perhaps SFRs should be handled in special cases...
6285 * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6287 * src/pic16/main.c (_process_pragma): stack bound checking did not take
6288 into account for stack starting position,
6289 (struct OPTIONS pic16_optionsTable): added command line argument
6290 --extended or -y for Extended Instruction Support,
6291 * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6292 (deassignLRs): *** perhaps the most important change, old 'for' code
6293 (commented out for reference), didn't account for some registers which
6294 were left marked 'not free' after a pointer operation. The change
6295 reduces register usage a lot in some cases
6297 2006-03-04 Borut Razem <borut.razem AT siol.net>
6299 * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6301 * support/regression/tests/bug-524697.c: decreased array size for
6302 mcs51 to fit into the internal RAM
6303 * support/regression/Makefile.in: a little bit more verbose
6305 2006-03-03 Borut Razem <borut.razem AT siol.net>
6307 * support/regression/fwk/lib/testfwk.c,
6308 support/regression/fwk/include/testfwk.h: introduced function
6309 _prints(), nonrecursive _printn(), call _initEmu() from main()
6310 * support/regression/ports/gbz80/support.asm,
6311 support/regression/ports/ucz80/support.asm,
6312 support/regression/ports/z80/support.asm,
6313 support/regression/ports/ds390/support.c,
6314 support/regression/ports/hc08/support.c,
6315 support/regression/ports/host/support.c,
6316 support/regression/ports/mcs51/support.c,
6317 support/regression/ports/xa51/support.c: added empty _initEmu()
6319 * support/regression/ports/pic16/gpsim.cmd,
6320 support/regression/ports/pic16/spec.mk,
6321 support/regression/ports/pic16/support.c,
6322 support/regression/Makefile.in: added pic16 regression test
6324 2006-03-01 Raphael Neider <rneider AT web.de>
6326 * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6327 genConstPointerGet): use safe way of generating MOVFF to cover
6328 literals as well as registers, fixes bug #1440527
6329 * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6331 (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6332 more correctly, fixes bug #1232186
6333 (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6334 * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6335 gplink guess the correct processor in more cases, applied patch
6336 from Till Riedel attached to and fixing bug #1436552
6338 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6340 * support/regression/tests/array.c: added, contains check for #1434401
6341 * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6343 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6345 * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6346 * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6347 * device/include/mcs51/c8051f326.h,
6348 * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6349 * device/include/mcs51/c8051f000.h,
6350 * device/include/mcs51/c8051f018.h,
6351 * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6352 PCON_IDLE,PCON_STOP and added sfr16 definitions
6354 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6356 * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6357 genGetWord): fixed bug 1409955
6359 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6361 * device/include/hc08/mc68hc908gp32.h,
6362 * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6364 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6366 * src/SDCCast.c (constExprValue): return NULL if not a value
6367 * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6368 * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6369 * support/regression/tests/bitfields.c: enabled signed bitfield for all
6371 2006-02-13 Borut Razem <borut.razem AT siol.net>
6373 * src/regression/ptrarg.c: added, fails due to bug #1430967
6374 * src/regression/Makefile: ptrarg.c added, ...
6376 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6378 * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6379 * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6381 2006-02-11 Borut Razem <borut.razem AT siol.net>
6383 * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6384 print "Processor: xxx" message to stdout only if --verbose
6386 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6388 * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
6389 * support/regression/tests/bug1426356.c: added
6390 * support/regression/tests/bitfields.c: removed 2 tests
6392 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6394 * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
6395 * device/include/mcs51/c8051f330.h,
6396 * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
6397 PCON_IDLE,PCON_STOP and added sfr16 definitions
6398 * device/lib/_divsint.c,
6399 * device/lib/_divuint.c,
6400 * device/lib/_divulong.c,
6401 * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
6402 register bank bug for small stackauto
6404 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6406 * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
6408 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
6410 * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
6411 * all.dsp: corrected several bin paths
6412 * device/include/mcs51/c8051f120.h,
6413 * device/include/mcs51/c8051f300.h,
6414 * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
6415 to PCON_IDLE,PCON_STOP
6416 * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
6417 * device/lib/printf_large.c (output_float): fixed bug 1388703
6418 * support/regression/tests/bug1057979.c: added test for bug 1388703
6420 2006-02-08 Raphael Neider <rneider AT web.de>
6422 * src/pic/pcode.c (pciTRIS): fixed typo,
6423 (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
6424 (LinkFlow): fixed handling of flows that end in a call,
6425 (ReuseReg): perform safety check earlier
6426 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
6427 to work with flows at the beginning of a pBlock,
6428 fixes #1426557 (Symbol not previously defined),
6429 (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
6431 (RemoveUnusedRegisters): update register usage info
6432 * src/pic/ralloc.c (newReg): prevent duplicate registers from being
6433 created, reuse existing ones instead
6434 * src/pic/gen.c (genPcall): fixed #1424719
6436 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
6438 * link/z80/lkmain.c,
6440 * link/z80/lkdata.c,
6441 * link/z80/aslink.h: fixed build on current cygwin:
6442 replaced getline() by lk_getline()
6444 2006-02-01 Borut Razem <borut.razem AT siol.net>
6446 * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6447 src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6448 src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6449 src/regression/bool1.c, src/regression/bool2.c,
6450 src/regression/bool3.c, src/regression/call1.c,
6451 src/regression/compare.c, src/regression/compare10.c,
6452 src/regression/compare2.c, src/regression/compare3.c,
6453 src/regression/compare4.c, src/regression/compare5.c,
6454 src/regression/compare6.c, src/regression/compare7.c,
6455 src/regression/compare8.c, src/regression/compare9.c,
6456 src/regression/configword.c, src/regression/for.c,
6457 src/regression/inline.c, src/regression/mult1.c,
6458 src/regression/nestfor.c, src/regression/or1.c,
6459 src/regression/pointer1.c, src/regression/ptrfunc.c,
6460 src/regression/rotate1.c, src/regression/rotate2.c,
6461 src/regression/rotate3.c, src/regression/rotate4.c,
6462 src/regression/rotate5.c, src/regression/rotate6.c,
6463 src/regression/rotate7.c, src/regression/string1.c,
6464 src/regression/struct1.c, src/regression/sub.c,
6465 src/regression/sub2.c, src/regression/switch1.c,
6466 src/regression/while.c, src/regression/xor.c,
6467 src/regression/create_stc, src/regression/simulate,
6468 src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6470 * src/regression/gpsim_assert.h: added
6472 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6474 * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6475 ((void (code *) (void)) 0) ();
6484 * as/mcs51/aslink.h,
6486 * as/mcs51/asmain.c,
6487 * as/mcs51/lkdata.c,
6489 * as/mcs51/lkmain.c,
6492 * as/z80/asmain.c: fixed build on current cygwin:
6493 replaced getline() by as_getline()
6495 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6497 * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6498 declarator in the symbol chain
6500 * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6501 parameter list for function pointers
6502 * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6503 * support/regression/tests/bug-716242.c: added
6505 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6507 * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6509 * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6511 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6513 * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6514 inifinitely recurseable, added static
6515 * support/regression/tests/bug-1408066.c: added
6517 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6520 * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6521 renamed, added possibility to create "postLoopLbl"-labels
6522 * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6523 newiTempLoopHeaderLabel
6524 * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6525 isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6526 addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6527 hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6528 findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6529 (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6530 (basicInduction): fixed bug #136564, made static,
6531 (loopInduction): changed parameter of basicInduction, made static,
6532 (addPostLoopBlock): added
6533 * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6534 loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6536 * support/regression/tests/bug-136564.c: added
6537 * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6538 --std-sdcc99 to LIBSDCCFLAGS
6540 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6542 * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6544 * support/regression/tests/bug-1406131.c: added
6546 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6548 * src/SDCCast.c (decorateType): fix promotion of unary minus
6549 * src/SDCCsymt.c (computeType): beautified
6550 * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6551 (valUnaryPM, valComplement): fix sign and promotion,
6552 (valNot): ANSI: result type is int (SDCC: unsigned char)
6553 * support/regression/tests/uminus.c: speedup by removing superflous
6555 * support/regression/tests/onebyte.c: added promotion and signedness
6556 tests for unary minus
6557 * support/regressions/tests/bug-477927.c: disable warning about
6558 uninitialized variables
6559 * support/regression/tests/not.c: added
6561 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6563 * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6564 * src/mcs51/gen.c (gen51Code): show final register usage after
6565 fillGaps in asm with --i-code-in-asm
6566 * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6567 markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6568 incUsed, rliveClear, adjustIChain): made static,
6569 (setFromRange): excluded because it's unused,
6570 (findPrevUseSym, markWholeLoop): added,
6571 (findPrevUse): rewritten; fixes bug 895992; now a complete search
6572 through all branches of predecessors enables sdcc to emit the warning
6573 W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6574 (rlivePoint): made static, added parameter emitWarnings which is only
6575 true during the first run out of two,
6576 (findRecursiveSucc, findRecursivePred): removed,
6577 (computeLiveRanges): made static, added parameter emitWarnings,
6578 (dumpIcRlive): added for debugging only
6579 * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6580 removed prototype of setFromRange()
6581 * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6582 in call of computeLiveRanges()
6583 * support/regression/tests/bug-895992.c: added
6584 * support/regression/tests/bug-971834.c: added
6585 * support/valdiag/tests/bug-895992.c: added
6586 * support/valdiag/tests/bug-971834.c: added
6588 2005-12-18 Raphael Neider <rneider AT web.de>
6590 * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6591 (genUnpackBits): improved code for direct operands,
6592 (genPackBits): improved code for literal assignment to bitfields
6593 and for direct destination operands (no FSR indirection),
6594 prevented redundant AND, fixes #1362800,
6595 (AccLsh): added parameter to disable masking of the result
6596 * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6597 skip instructions with side-effects (like incfsz),
6598 (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6599 * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6600 * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6603 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6605 * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6606 volatile variables as spill location
6608 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6610 * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6612 * support/regression/tests/bug-1376320.c: added
6614 2005-12-08 Raphael Neider <rneider AT web.de>
6616 * src/pic/device.c: renamed is_shared to pic14_is_shared
6617 * src/pic/gen.c (genIfx): re-enabled handling of sbits
6618 * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6619 (is_valid_identifier): added for above workaround
6621 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6623 * device/lib/Makefile.in: fixed to enable port-specific-objects
6624 * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6625 char, thanks Hubert Sack
6626 * doc/sdccman.lyx: documented --xstack-loc,
6627 elaborated a bit more on interrupts and pitfalls,
6628 removed "setjmp/longjmp unsupported",
6629 documented some unsupported C99 features
6630 * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6631 * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6632 if, thanks Hubert Sack
6633 * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6634 * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6636 * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6637 regression tests can report resource usage (rfe 700441)
6638 * support/regression/collate-results.py: report resource usage
6639 * support/regression/ports/ds390/spec.mk,
6640 * support/regression/ports/hc08/spec.mk,
6641 * support/regression/ports/mcs51/spec.mk,
6642 * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6643 * support/regression/ports/ds390/uCsim.cmd,
6644 * support/regression/ports/hc08/uCsim.cmd,
6645 * support/regression/ports/mcs51/uCsim.cmd,
6646 * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6647 * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6648 library, use the default one
6649 * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6650 building the library
6652 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6654 * config.dsp: added dependency on .version and configure_vc.awk
6655 * device/include/setjmp.h: updated for --stack-auto and --xstack
6656 * device/include/mcs51/at89c51snd1c.h: corrected line endings
6657 * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6658 * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6659 * device/lib/libsdcc.lib: added _setjmp
6660 * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6661 (decorateType): fixed bug 1372851,
6662 (optimizeGetHbit): fixed warning
6663 * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6664 array initialisation
6665 * support/regression/tests/bug1057979.c: added test for bug 1358192
6666 * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6668 2005-12-03 Borut Razem <borut.razem AT siol.net>
6670 * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6671 command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6673 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6675 * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6676 createIval): implement symbol independant "flexible array member",
6677 (createIvalCharPtr): implemented flexible array initialisation with a
6679 * src/SDCCsymt.c (copyStruct): removed,
6680 (getSize): fixed misleading comment,
6681 (getAllocSize): removed, the additional allocation size is now in
6682 sym->flexArrayLength,
6683 (checkStructFlexArray): new, syntax checks for flexible array members,
6684 (compStructSize): added syntax checks for "flexible array members"
6685 (copyStruct): removed,
6686 (copyLinkChain): removed inefficient fix for bug 770487
6687 * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6688 * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6689 symbol->flexArrayLength
6691 * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6692 E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6693 * support/regression/tests/structflexarray.c: added
6694 * support/valdiag/tests/structflexiblearray.c: added
6696 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6698 * src/SDCCast.c (decorateType): fixed bug 1368489
6699 * support/Util/SDCCerr.c,
6700 * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6702 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6704 * device/include/mcs51/at89c51snd1c.h: added file submitted by
6705 Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6707 2005-11-27 Borut Razem <borut.razem AT siol.net>
6709 * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6710 support/cpp2/mkdeps.h: added command line option
6711 -obj-ext=<extension> to SDCPP to define object file externion, used
6712 for generation of make dependencies (-M)
6713 * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6715 2005-11-26 Borut Razem <borut.razem AT siol.net>
6717 * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6718 added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6719 added pic and pic16 libraries
6721 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6723 * device/include/float.h: Corrected typo in prototype of __fsgt
6725 2005-11-25 Borut Razem <borut.razem AT siol.net>
6727 * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6728 added creation of model-mcs51-stack-auto libraries
6730 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6732 * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6734 * src/SDCCast.c (createIvalArray): removed obsolete comment
6736 2005-11-24 Borut Razem <borut.razem AT siol.net>
6738 * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6739 added missing device/lib/mcs51/crt*.asm sources
6741 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6743 * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6745 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6747 * device/lib/_fs2schar.c,
6748 * device/lib/_fs2sint.c,
6749 * device/lib/_fs2slong.c: optimized inline asm
6751 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6753 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6754 Better handling of floats between -1.0 and 0.0.
6756 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6758 * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6759 (the missing "if"s prohibited removal of redundant labels)
6761 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6763 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6764 Properly convert floats between -1.0 and 0.0 to long, int, and char
6765 types (max integer value of negative floats tends to zero).
6766 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6767 Removed changes made so to work properly with floats between
6768 -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6771 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6773 * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6774 * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6775 (genCast) cosmetic change
6776 * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6777 * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6779 * support/regression/tests/bitfields (testSignedBitfields): added
6781 2005-11-18 Borut Razem <borut.razem AT siol.net>
6783 * sdcc/device/lib/Makefile.in: remove all unnecessary files
6784 * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6785 introduced SILENT option to make building of pic16 libraries less
6787 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6789 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6790 Now they work properly with floats between -1.0 and 0.0
6791 * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6793 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6795 * src/SDCCicode.c (printOperand): added missing else
6797 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6799 * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6800 reformatted for better readability
6801 * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6804 2005-11-17 Borut Razem <borut.razem AT siol.net>
6806 * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6807 introduced SILENT option to make building of pic16 libraries less
6808 verbose - used for nightly snapshot build
6809 * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6810 available on Win32 platforms.
6811 * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6812 medium, large, pic and pic16
6814 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6816 * device/lib/printf_large.c: Temporary patch for bug 1358192:
6817 printf("%f"...) sets fraction to zero.
6819 2005-11-16 Raphael Neider <rneider AT web.de>
6821 * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6823 * src/pic/gen.c (genIfx): implemented for CARRY bit
6824 * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6825 to generic pointers, fixes #1357332,
6826 (pic16_movLit2f): NEW,
6827 (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6829 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6831 * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6833 2005-11-11 Raphael Neider <rneider AT web.de>
6835 * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6836 * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6837 compute pointer's type from operand,
6838 (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6839 improved single bit reads, fixes bug #1353379
6841 2005-11-09 Borut Razem <borut.razem AT siol.net>
6843 * support/scripts/sdcc.nsi: added lib/pic to the package
6845 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6847 * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6849 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6851 * support/regression/tests/bug1348008.c: added
6852 * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6853 * support/regression/tests/bug1337835.c: updated comment
6855 2005-11-06 Borut Razem <borut.razem AT siol.net>
6857 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6858 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6859 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6860 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6861 sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6862 dynamic construction of cl_error_class and derivates - 2.nd try
6864 2005-11-05 Borut Razem <borut.razem AT siol.net>
6866 * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6867 bug, which caused Bus Errors on sparc solaris
6869 2005-11-04 Borut Razem <borut.razem AT siol.net>
6871 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6872 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6873 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6874 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6875 sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6876 and derivates to resolve the initialization problem on OSX
6878 2005-11-02 Borut Razem <borut.razem AT siol.net>
6880 * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6881 corrected typo - #include <winsock2.h>
6883 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6885 * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6886 (_asxxxx_mapping): added org directive for future enhancements
6888 2005-11-01 Borut Razem <borut.razem AT siol.net>
6890 * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6891 enabled sockets on WIN32
6892 * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6894 2005-10-31 Borut Razem <borut.razem AT siol.net>
6896 * support/regression/generate-cases.py: escape backslashes in {testcase}:
6897 WIN32 backslash path delimiters should be escaped when used in C strings
6898 * support/regression/tests/bitfields.c: exclude failing assertions for
6899 __CYGWIN32__ and __MINGW32__ hosts
6901 2005-10-30 Borut Razem <borut.razem AT siol.net>
6903 * src/SDCCutil.c: corrected double comparison typo
6905 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6907 * device/lib/medium/Makefile: added for new memory model medium
6908 * device/include/asm/mcs51/features.h: updated for medium/pdata
6909 * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6910 added Multiply & Accumulate sbit's and MAC0_PAGE define
6911 * device/include/mcs51/c8051f300.h: added sfr16 definitions
6912 * device/include/mcs51/c8051f310.h: added sfr16 definitions
6913 * device/lib/_mullong.c: update for medium model
6914 * device/lib/incl.mk: added medium model
6915 * doc/sdccman.lyx: documented medium model
6916 * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6917 * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6918 * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6919 * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6920 (allocParms): set SCLS and OCLS to pdata for medium model
6921 * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6923 (powof2): return <0 if not power of 2
6924 * src/avr/gen.c (genBitWise): use updated powof2
6925 * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6926 (shiftR2Left2Result): small optimization in setup, save acc when storing,
6927 (shiftLLeftOrResult): use B if necessary
6928 * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6929 * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6930 * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6931 * support/regression/Makefile.in: added test-mcs51-medium
6932 * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6934 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6936 * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6938 * device/lib/time.c (mktime): fixed bug 1334315
6940 2005-10-28 Raphael Neider <rneider AT web.de>
6942 * device/include/pic/p16f_common.inc: added common declarations
6943 * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6945 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6947 * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6948 (aopPutUsesAcc): added to predict accumulator use,
6949 (assignResultValue): save acc if necessary,
6950 (genMinusDec): store result if indirectly addressed,
6951 (genDivOneByte): save acc if necessary,
6952 (movLeft2Result): bugfix if left already in acc,
6953 (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6954 attention to accumulator use (esp. pdata),
6955 (genReceive): receive pdata correctly
6956 * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6957 * src/SDCCicode.h: added isOperandInPagedSpace prototype
6959 2005-10-27 Raphael Neider <rneider AT web.de>
6961 * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6963 2005-10-27 Raphael Neider <rneider AT web.de>
6965 * .version: changed version to 2.5.4
6966 * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6967 * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6968 (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6969 arithmetics support routines
6970 * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6971 * device/lib/Makefile.in: also create installdir for pic
6973 * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6975 * src/pic/device.c (dump_sfr): rewritten to delegate register
6976 placement to the linker (use `extern sym' rather than sym EQU addr),
6977 (validAddress): fixed to check last specified address
6978 * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6979 (popGetLit): truncate literal value to 8 bit,
6980 (popGet): moved assert to more appropriate place
6981 (popGetExternal): create pCode operand from and mark the according
6982 symbol as being `extern'
6983 (popGetAddr): added sanity check on immediate's offset, provide
6984 GPOINTER tag on demand
6985 (aopPut): fixed for immediates,
6986 (mov2w_op): move operand's address or contents to WREG (depending on
6987 operand type), safer variant of mov2w,
6988 (movwf,call_libraryfunc): NEW, handy abbreviations,
6989 (get_argument_pcop,get_return_val_pcop,pass_argument,
6990 get_returnvalue): interface for accessing function parameters and
6992 (assignResultValuei,genRet): use new parameter/return value interface
6993 (pic14_getDataSize): back to old version handling generic pointers,
6994 (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6995 provided implementation and/or fixed old one,
6996 (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6997 calls, removed legacy 8051 reference code
6998 (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6999 (loadSignToC): NEW, move the operands sign bit to CARRY,
7000 (genGenericShift): NEW, replaces genLeftShift, genRightShift and
7001 genRightShiftSigned, accepts negative shift counts,
7002 (setup_fsr): load FSR and adjust IRP (indirect memory access),
7003 (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
7004 generic pointers, __data pointers and __code pointers,
7005 (genUnpackBits,genPackBits): rewritten to work with generic pointers
7006 and signed bitfields, limit bitfields to 8 bit,
7007 (genDataPointerGet): fixed number of bytes read,
7008 (genGenPointerGet,genConstPointerGet): fixed bitfield access,
7009 (genPointerGet,genPointerSet): fixed handling of __code pointers,
7010 pointers to constant data are no longer assumed to point to __code
7011 space, removed invalid pointer types,
7012 (bitpatternFromVal): retrieve the PICs representation of an integer
7014 (genDataPointerSet): fixed assigning to po_immediate operands,
7015 (genGenPointerSet): implemented as library call,
7016 (genIfx): fixed incorrect condition,
7017 (genAddrOf): limit generic pointers' addresses to 2 bytes,
7018 provide GPOINTER tag according to destination's storage class,
7019 (genCast): added code to handle casting to generic pointers, added
7020 sign-/zero extension of the result
7021 (aop_isLitLike,op_isLitLike): fixed handling of immediates
7022 * src/pic/gen.h: added macros to access IRP bit in STATUS register
7023 * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
7025 * src/pic/glue.c (is_shared_address,is_shared): check whether a given
7026 address/register resides in the shared banks
7027 (emitSymbolToFile): improved to handle global and `pinned' symbols,
7028 put all variables into separate sections (have the linker arrange
7030 (picglue): put init code and interrupt handlers in separate sections
7031 * src/pic/main.c: added port specific options table, modified to PORT
7032 structure to make GPOINTERs 3 byte, added pic14_options
7033 (_pic14_do_link): private linking routine (update paths to libraries,
7034 add libsdcc.lib by default)
7035 * src/pic/main.h: declare pic14_options
7036 * src/pic/pcode.c: fixed instructions i/o relations,
7037 (RegCond): reverted to correct version,
7038 (newpCodeOpLit): truncate literals to 8 bit,
7039 (genericPrint): added debug output,
7040 (getRegFromInstruction): fixed for various operand types, simplified
7041 (BuildFlow): fixed broken handling of isntructions with labels
7042 (LinkFlow): start at last instruction in flow (skip trailing comments),
7043 pass the flow on to the next instruction after CALL
7044 (pCodeReplace): NEW, replace a pCode and move meta data to the new one
7045 (insertPCodeInstruction): fixed inserting after a skip instruction,
7046 (DoBankSelect): fixed for labeled instructions
7047 (OptimizepBlock): honor --nopeep switch
7048 (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
7049 * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
7050 * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
7051 (pCodeOptime2pCodes): allow disabling this optimization via
7052 --no-pcode-opt due seldomly occuring bugs, fixed some conditions
7053 but is still buggy), started implementation of a dataflow based
7054 pCode optimization (CSE + dead code elimination)
7055 (pCodeRegMapLiveRangesInFlow): removed bogus inCond
7056 * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
7057 names are independant of the stack location and therefore portable across
7060 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
7062 * src/mcs51/ralloc.c (bitType): added to detect bit variables,
7063 (selectSpil): fixed bug 1337835 by not spilling bit variables
7064 * support/regression/tests/bug1337835.c: added test for this bug
7065 * src/mcs51/peeph.def: restart after rule 3.c,
7066 addded rules 263.x to optimize loading constants
7068 2005-10-26 Raphael Neider <rneider AT web.de>
7070 * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
7071 * src/pic16/gen.c (genUnpackBits): support signed bitfields,
7072 (genAssign): emit warning when casting literals to generic pointer
7073 type, also applies when taking the address of a fixed variable,
7074 (genCast): improved casting to generic pointers
7075 * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
7076 extern variables, added verbose error message
7077 * device/include/pic16/{string.h,errno.h}: added #pragma library c
7079 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
7081 * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
7082 carry must be complemented too
7083 * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
7084 could be emitted by genMinus
7085 * src/SDCCval.c (constVal): fixed bug 1305065
7087 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
7089 * src/SDCCast.c (addCast): added promotion for bit variables
7090 (decorateType): emit W_COMPLEMENT before the problem vanishes behind
7091 promotion casts + optimisation
7092 (optimizeGetWord): fix warning 'i' might be used uninitialized
7093 * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
7094 * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
7096 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
7098 * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
7099 all chars are promoted to int; promotion should be handled in SDCCast.c
7101 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7103 * device/lib/_strcmp.c: Fixed bug 1326457
7105 2005-10-11 Raphael Neider <rneider AT web.de>
7107 * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
7108 * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
7110 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
7112 * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
7113 * support/regression/tests/sfr16.c: added test for the sfr32 bug
7115 2005-10-04 Raphael Neider <rneider AT web.de>
7117 * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
7118 device/lib/pic16/pics.all: added pic18f1320
7119 * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
7121 2005-09-30 Raphael Neider <rneider AT web.de>
7123 * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
7124 * src/pic16/devices.inc: NEW, provides device descriptions
7125 * src/pic16/gen.c (genInline): fixed handling of ';'-comments
7127 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
7129 * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
7132 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
7134 * doc/sdccman.lyx: updated Highest Order Bit documentation,
7135 documented Any Order Bit, Higher Order Byte and Higher Order Word
7136 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
7137 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
7138 (optimizeGetAbit): new, to get any bit, not only the high bit,
7139 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
7140 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
7141 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
7142 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
7143 RIGHT_OP: also try GETBYTE, GETWORD optimization,
7144 GETABIT, GETBYTE, GETWORD: decorate them,
7145 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
7146 (ast_print): added GETABIT, GETBYTE, GETWORD
7147 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
7148 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
7149 (geniCodeBinary): new generic binary icode,
7150 (ast2iCode): added GETABIT, GETBYTE, GETWORD
7151 * src/port.h: updated comment for PORT.hasExtBitOp
7152 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
7153 (genGetByte): new, to get a single byte,
7154 (genGetWord): new, to get a word from a long,
7155 (gen51Code): added GETABIT, GETBYTE, GETWORD
7156 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
7158 2005-09-23 Raphael Neider <rneider AT web.de>
7160 * configure.in, configure: have device/lib/pic configured
7161 * device/lib/Makefile.in: added model-pic14
7162 * device/lib/clean.mk: added pic/ to clean rule
7163 * device/lib/pic: added rudimentary pic14 library providing support
7164 functions for multiplication/division/generic pointer access
7165 * src/SDCCopt.c (convilong): mark support functions as extern
7166 for pic14 port as well
7167 * src/pic/gen.c (genMult): added assertions,
7168 (genpic14Code): emit warning on unhandled iCodes
7169 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
7170 * src/pic/pcode.c (pCodeOpCopy),
7171 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
7172 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
7173 SFR_REGISTER}), made safe for future extensions
7174 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
7175 instructions even if preceeded by SKIP instructions (also remove
7176 them); removed unused code
7177 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
7178 prevents leaving parts of the structure uninitialized after copying
7180 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
7182 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
7184 * support/regression/tests/addsub.c: added test for the bug
7186 2005-09-21 Raphael Neider <rneider AT web.de>
7188 * device/include/pic16/pic18f1220.h,
7189 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
7190 * device/lib/pic16/Makefile.rules: added missing opening paren
7191 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
7192 are provided in genutils.c,
7193 (genUminusFloat,genUminus,genCmpEq): added asserts on different
7194 operand/result sizes,
7195 (genCmp): assert on NULL pointers first, then check deref'ed values
7196 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
7199 2005-09-18 Raphael Neider <rneider AT web.de>
7201 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
7202 as these are now unused,
7203 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7204 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7205 local, avoids uninitialized pointer dereference on r->name
7206 * src/pic16/ralloc.c (newReg): fixed indentation
7208 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7210 * src/SDCCval.c (constVal): fixed bug 730366
7211 * support/Util/SDCCerr.c,
7212 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7214 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7216 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7218 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7220 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7222 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7224 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7225 (hex2dec): made hex_digit unsigned char, removed ascii dependance
7226 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7227 (hex2dec): made hex_digit unsigned char, removed ascii dependance
7228 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7229 * packihx/packihx.c (hexDigit): made c unsigned char
7230 * as/mcs51/lklibr.c (fndsym),
7231 * link/z80/lkgb.c (gb),
7232 * link/z80/lklibr.c (fndsym),
7233 * link/z80/lkrloc.c (relr),
7234 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7235 * src/SDCC.lex (checkCurrFile, process_pragma),
7236 * src/SDCCglue.c (spacesToUnderscores),
7237 * src/SDCCmain.c (setParseWithComma, processFile),
7238 * src/asm.c (tvsprintf, printCLine),
7239 * src/avr/gen.c (emitcode, aopPut),
7240 * src/ds390/gen.c (emitcode),
7241 * src/hc08/gen.c (emitcode, emitinline),
7242 * src/mcs51/gen.c (emitcode, genInline),
7243 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7245 * src/pic/ralloc.c (debugLog),
7246 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7248 * src/pic16/ralloc.c (debugLog),
7249 * src/z80/main.c (_process_pragma):
7250 made all ctype.h function calls safe
7251 * src/SDCCopt.c: include math.h for fabs
7252 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7253 and used them throughout the code to make ctype.h function calls safe
7254 * src/ds390/main.c (asmLineNodeFromLineNode),
7255 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7256 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7258 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7259 (newpCodeAsmDir): made ctype.h function calls safe
7260 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7261 pic16_emitcode): made lbp unsigned char*
7262 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7263 (pic16_newpCodeAsmDir): made ctype.h function calls safe
7264 * src/xa51/gen.c (emitcode),
7265 * src/z80/gen.c (_emit2): made lbp unsigned char*
7266 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7269 2005-09-05 Raphael Neider <rneider AT web.de>
7271 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7272 access bank splitpoint
7274 2005-09-05 Raphael Neider <rneider AT web.de>
7276 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7278 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7280 * .version: changed to version 2.5.3
7281 * doc/sdccman.lyx: changed version to 2.5.3,
7282 documented --codeseg and --constseg and pragma codeseg and constseg,
7283 documented bit parameters (reentrant) and bit returning
7284 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7285 currFunc->recvSize, but is this ok for all ports?
7286 (ast2iCode): result of ~ on unsigned char must be cast to int for
7288 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7289 function pointers in bit space
7290 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7291 (processFuncArgs): call port.reg_parm() with reentrancy info
7299 * src/z80/main.c: port.reg_parm prototype extended with
7300 "bool reentrant" parameter
7301 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7302 options.stackAuto for allocating bit register parameters
7303 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7304 (genSend): set BitBankUsed if it is,
7305 (selectRegBank): factored out of genCall for use in genPcall,
7306 (genCall): removed redundant dtype assignmen, use selectRegBank,
7307 (genPcall): handle returning in Carry properly, save in F0 if needed,
7308 (genReceive): handle bit register parameters
7309 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7310 (mcs51_assignRegisters): enable bit registers for all reentrant
7311 functions and don't set BitBankUsed unconditionally
7312 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7313 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7314 * support/regression/tests/funptrs.c: added tests for BOOL and for return
7316 2005-08-27 Borut Razem <borut.razem AT siol.net>
7318 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7319 ppc-osx (Darwin) does not support -u option. It seems that it is
7320 supported only on Linux - GNU cp
7322 2005-08-25 Borut Razem <borut.razem AT siol.net>
7324 * sim/ucsim/gui.src/serio.src/Makefile.in,
7325 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7326 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7327 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7328 install and strip, since the strip at /usr/ccs/bin should be used
7331 2005-08-24 Borut Razem <borut.razem AT siol.net>
7333 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7335 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7337 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7340 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7342 * as/mcs51/aslink.h: completed lkrloc.c prototypes
7343 * as/mcs51/lkmain.c (link_main): fixed warning
7344 * device/include/stdbool.h: ds390 has no advanced bit support yet
7345 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7346 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7347 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7348 and updated their macros
7349 * src/SDCCval.c (constVal): updated comment for renamed b_long
7351 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7353 * as/mcs51/asdata.c: changed ctype['['] to BINOP
7354 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7355 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7356 (oprio): set priority for '['
7357 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7359 * as/mcs51/asm.h: added defines R_BIT and S_BIT
7360 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7361 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7362 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7363 added overlayable BIT_BANK area
7364 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7365 (summary2): explain 'T' in legenda
7366 * as/mcs51/lkrloc.c: replaced old K&R style,
7367 (relr): added R_BIT processing,
7368 (errmsg): added "Bit-addressable relocation error",
7369 (adb_bit): added for converting from byte- to bit-addressable space,
7370 (adb_24_bit): added for converting from byte- to bit-addressable space
7371 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7372 used in reentrant functions now even as return value
7373 * device/lib/_gptrput.c (_gptrput): removed obsolete code
7374 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7375 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7376 * src/SDCCglobl.h: added indicator BitBankUsed
7377 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7378 the bit registers b0-b7
7379 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7380 (geniCodeCast): fixed bug 1263853,
7381 (geniCodeLogicAndOr): put result in bool or char,
7382 (geniCodeReceive): added parameter func for accessing the return type,
7383 (geniCodeFunctionBody): pass func to geniCodeReceive
7384 * src/SDCCmain.c: added indicator BitBankUsed
7385 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
7386 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
7387 (checkSClass): don't put automatic bool/bit on stack,
7388 (checkFunction): removed check on function cannot return bit
7389 * src/SDCCsymt.h: added newBoolLink prototype
7390 * src/mcs51/gen.c (rb1regs): added bit registers,
7391 (movc): created for assigning to carry,
7392 (pushReg, popReg): created for pushing registers,
7393 (sameRegs): check both AOP_REG and AOP_CRY types,
7394 (aopOp): handle bit registers,
7395 (aopPut): optimization no self-assign,
7396 (saveRegisters): push reg->base (bits) only once for bit registers,
7398 (unsaveRegisters): pop reg->base only once and use popReg,
7399 (assignResultValue): added parameter func and return in carry for bits,
7400 (genIpush): optimization no reload in A if not changed,
7401 (genSend): bit parameters in reentrant functions are passed in bit
7402 registers by first assigning to bits in B, then save registers and
7404 (genCall): handle returning in Carry properly, save it in F0 if needed,
7405 (genPcall): updated assignResultValue call, this is not safe yet for bit
7406 returning function !!!
7407 (genFunction): don't generate equ's for bit registers and use pushReg,
7408 (genEndFunction): take care of bit returning functions and use popReg,
7409 (genRet): return bit in Carry,
7410 (genIfx): optimize bit registers and other directly addressable bits,
7411 (genReceive): updated assignResultValue call
7412 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
7413 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
7414 registers when using stack-auto
7415 * src/mcs51/ralloc.c (_G): added allBitregs,
7416 (regs8051): added the bit registers,
7417 (createStackSpil): use macro IS_BIT,
7418 (getRegBit): added to allocate a bit register, else spill,
7419 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
7420 (updateRegUsage): factored out to ease stepping while debugging,
7421 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
7422 also allocate bit registers,
7423 (fillGaps): handle bit registers,
7424 (findAllBitregs): added to create bit vector with all bit registers,
7425 (mcs51_allBitregs): returns this bit vector,
7426 (mcs51_assignRegisters): when using stack-auto use bit registers for
7427 passing parameters and creating local variables
7428 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
7430 2005-08-22 Borut Razem <borut.razem AT siol.net>
7432 * device/lib/Makefile.in: replaced find option -or with -o
7433 to make it run on solaris
7435 2005-08-22 Raphael Neider <rneider AT web.de>
7437 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7438 fixes #1265442 (crash on Solaris)
7440 2005-08-20 Borut Razem <borut.razem AT siol.net>
7442 * configure, configure.in: added tests for libsocket and libnsl libraries,
7443 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7444 from support/regression/Makefile.in
7445 * support/regression/Makefile.in: added
7446 * device/lib/pic16/Makefile.common.in: force make to use bash shell
7447 * sim/ucsim/libtool: regenerated on sparc-solaris
7448 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7449 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7450 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7451 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7452 sparc-solaris, which doesn't use GNU ld linker
7453 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7454 * as/Makefile: find on sparc-solaris does not support -maxdepth option
7456 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7458 * src/mcs51/peeph.def: updated comments
7460 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7462 * device/lib/_gptrget.c,
7463 * device/lib/_gptrput.c: slightly shorter
7464 * doc/sdccman.lyx: incremented version
7465 * src/mcs51/peeph.def: moved peephole comments to the line of first
7466 change to better keep line correlation, reanimated 186.e
7467 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7469 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7471 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7472 David Saxton with quotes around file name.
7474 2005-08-15 Borut Razem <borut.razem AT siol.net>
7476 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7477 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7478 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7479 make tests run on x86_64 platform
7481 2005-08-13 Raphael Neider <rneider AT web.de>
7483 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7484 as it might be executed DURING a build (parallel make is wonderful)
7486 2005-08-13 Raphael Neider <rneider AT web.de>
7488 * device/lib/Makefile.in (port-specific-objects-pic16):
7489 revert to cp $(PORT)/bin/*.* $(PORTDIR)
7490 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7492 * device/lib/pic16/Makefile.rules: build subdirs before creating
7493 the library, removed builddir rule, create $(builddir) early in
7494 recurse rule, use empty recurse rule for leaf directories
7495 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7496 mkdir errors (race condition), removed duplicate suffix "hex"
7498 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7499 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7500 prevents mkdir -p from aborting on Alpha
7502 2005-08-12 Raphael Neider <rneider AT web.de>
7504 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7505 db-statements in order to allow for arrays of pointers in code
7506 sections to be placed without interspersed 0-padding, fixes
7508 * (emitStatistics): fixed division by zero for pic18f1220
7509 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7510 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7511 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7512 * (pic16_pCodeConstString): keep track of already emitted string
7513 literals to prevent "duplicate definitions of symbol _str_NR"
7514 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7516 * device/lib/Makefile.in: ignore failing PIC16 library builds
7517 * device/lib/pic16/Makefile: do not build if gputils are missing
7518 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7520 2005-08-10 Raphael Neider <rneider AT web.de>
7522 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7525 2005-08-10 Raphael Neider <rneider AT web.de>
7527 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7528 Rokas' patch to add the new fixed point type "__fixed16x16"
7529 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7530 functions for __fixed16x16 arithmetics
7531 * device/lib/pic16: reimplemented the build system to support
7532 a separate build directory, better handling of libio (create
7533 the library in a separate subdir for each architecture) and
7534 easier configuration (centralized in Makefile.common)
7536 2005-08-07 Raphael Neider <rneider AT web.de>
7538 * src/pic16/gen.c (genrshTwo): fixed sign extension
7539 * src/pic16/device.c: added pic18f2320, 4220 and 4320
7540 * device/include/pic16/pic18f2220.h: changed some bit definitions,
7542 * device/include/pic16/pic18f4220.h: NEW, header for
7543 pic18f4220 and pic18f4320
7544 * device/include/pic16/pic18fregs.h: added new devices,
7545 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7546 * device/include/pic16/signal.h: resolved name clashes
7547 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7548 to also allow testing for interrupt enable bits, added
7549 comments on how to use the macros
7550 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7551 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7552 register definitions for the devices
7553 * device/lib/pic16/pics.all: added new devices
7554 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7556 * device/lib/pic16/libc/stdlib/memfree: do not count
7557 the block header as free memory
7558 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7559 simplified and added missing end-of-blocklist-marker
7560 (reported by Peter Onion, fixes #1252814)
7561 * (_mergeHeapBlock): fixed loop condition
7562 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7563 len==0, restructured code
7564 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7565 up a bit, reduced bitfield accesses, prevent endless loops
7566 in case of heap corruption
7567 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7568 "unreferenced arguments/must return a value" warnings
7569 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7570 replaced BAUDREG with SPBRG
7571 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7572 device/lib/pic16/debug/gstack/gstack.c: replaced
7573 _naked, _asm, _endasm with __naked, __asm, __endasm
7575 2005-08-05 Raphael Neider <rneider AT web.de>
7577 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7578 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7580 2005-08-05 Borut Razem <borut.razem AT siol.net>
7582 * device/lib/Makefile.in: added missing ';'
7583 * configure: removed ^M characters
7585 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7587 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7588 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7591 2005-08-04 Borut Razem <borut.razem AT siol.net>
7593 * configure.in: pic16 libraries build 2nd try - enable running
7594 configure in device/lib/pic16
7595 * configure: regenerated from configure.in
7596 * device/lib/Makefile.in: create $(PORT)/bin directory
7598 2005-08-03 Raphael Neider <rneider AT web.de>
7600 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7601 to get/set values via pointers
7602 * (genUnpackBits,genPackBits): changed detection of
7603 ptr->bitfield vs. sym.bitfield, fixed access via generic
7604 pointers, removed dead (wrong) code for multibyte bitfields
7605 * (genNearPointerGet, genGenPointerGet): removed useless code,
7606 fixed bitfield detection, fixes #1250594
7607 * (genNearPointerSet): removed useless code
7608 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7609 and introduced macro pic16_emitpcode that conditionally emits
7610 the origin of the following pCode (useful for debugging SDCC)
7611 * src/pic16/pcode.c: changed (and disabled) some debug outputs
7612 * (createDefmap): fixed handling of LFSR for --optimize-df
7614 2005-08-02 Borut Razem <borut.razem AT siol.net>
7616 * device/lib/Makefile.in: pic16 libraries build enabled since
7617 gputils-0.13.2 are now localy installed at sourceforge's compile farm
7619 2005-08-02 Raphael Neider <rneider AT web.de>
7621 * src/pic16/gen.c (genPackBits): removed deprecated warning
7622 * (genGenPointerSet): fixed bitfield detection
7624 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7626 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7628 2005-07-31 Raphael Neider <rneider AT web.de>
7630 * device/lib/pic16/libdev/pic18f458.c,
7631 device/include/pic16/pic18f458.h: added missing T0CONbits
7633 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7635 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7637 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7639 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7641 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7643 * device/include/mcs51/at89c51ed2.h: added.
7645 2005-07-23 Raphael Neider <rneider AT web.de>
7647 * src/pic/gen.h: added emitpcode macro for debugging
7648 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7649 and replace by macro adding debug information on demand
7650 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7651 * (gencjne): tried to fix; replaced with correct (slower) code
7652 * (gen{Unp,P}ackBits): fixed single bit access
7653 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7654 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7655 previous instruction
7656 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7657 register has to be handled with care (forbidding movement
7658 of assignments/uses, removing assignments completely, ...)
7659 * (pCodeOptime2pCodes): make use of regIsSpecial
7660 * added lots of debugging output (commented out)
7661 * src/pic/rallloc.c (deassignLRs): prevent operand registers
7662 from being reused as result UNLESS it is known to work
7664 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7666 * support/Util/dbuf.h: include <stddef.h> for size_t
7667 * .version: changed to version 2.5.2
7669 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7671 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7673 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7675 * src/hc08/gen.c (genMinus): fixed bug #1241835,
7676 (genModOneByte): removed needless psha/pula
7678 2005-07-22 Raphael Neider <rneider AT web.de>
7680 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7681 have PIC14 handled like PIC16, fixes broken pic14 linker calls
7682 * src/pic/gen.c (resolveIfx): do not "invent" labels
7683 * (genSkipc): changed to positive logic
7684 * (genSkipCond): removed as no longer needed
7685 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7687 * (genLeftShift): check operands are in different registers
7688 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7689 INCF does not update CARRY...
7690 * src/pic/main.c: fixed _linkCmd
7691 * src/pic/pcode.c (unlinkpCode): added inactive code
7692 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7693 alive (do not assign result and operand overlapping registers)
7695 2005-07-22 Raphael Neider <rneider AT web.de>
7697 * src/pic/device.c (dump_sfr): replaced register declaration with
7698 call to emitSymbolToFile() to avoid duplicate symbols
7699 * (assignRelocatableRegisters): do not declare external symbols
7700 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7701 right (take size of type, not etype)
7702 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7703 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7704 * (packRegsForAccUse): disabled assignment of WREG as
7705 the result reg to prevent occurence of just fixed #1235003,
7707 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7708 symbols (avoids duplicate symbols in .asm file)
7709 * (pic14emitRegularMap): use emitSymbolToFile()
7710 * src/pic/gen.c (aopOp): fixed spillLocation handling
7711 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7712 * (genDataPointerSet): removed unneccessary variables/output
7714 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7716 * as/mcs51/lkarea.c: enlarged codemap for banked memory
7717 * device/lib/mcs51/crtbank.asm: added # to 0x0F
7719 2005-07-21 Raphael Neider <rneider AT web.de>
7721 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7722 architecture cannot handle them efficiently, fixes bug #1235003
7723 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7724 check for empty sets before using them (fixes bug #1232190)
7726 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7728 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7729 (lnksect2): generate warnings for memory overlap
7730 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7731 constseg to set the name of these segments so you can instruct the linker
7732 to place them in banks
7733 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7734 * src/SDCCglobl.h: added MODEL_HUGE to enum,
7735 added code_seg and const_seg to options
7736 * src/SDCCglue.c (emitMaps): use options.const_seg,
7737 (createInterruptVect): put interrupt vectors in segment HOME,
7738 (glue): put HOME before static segment and put the main glue in HOME,
7739 (glue): use options.code_seg
7740 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7741 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7742 these segments so you can instruct the linker to place them in banks
7743 (linkEdit): use code_loc for HOME segment which should be the first
7744 segment in code memory now
7745 * src/SDCCmem.c: fixed more stuff like bug 1238386
7746 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7747 (changePointer): don't change function pointers to code pointers for
7749 (compareType): added exceptional check for banked function pointers
7750 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7751 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7752 after static in code memory
7753 * src/mcs51/gen.c: added aopLiteralLong prototype,
7754 (aopForSym): use getSize for functions,
7755 (genCall): generate banked calls over one trampoline __sdcc_banked_call
7756 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7757 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7759 (genPcall): use call for literal function pointers and generate banked
7760 calls over the one trampoline so there's only one place for the user to
7761 modify according to his/hers hardware,
7762 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7763 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7764 * src/mcs51/main.c: added keyword banked,
7765 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7766 * support/Util/SDCCerr.c,
7767 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7768 needed for passing the bank and address to the trampoline
7769 * device/lib/mcs51/crtbank.asm: added for bankswitching
7770 * device/lib/mcs51/Makefile: added crtbank
7772 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7774 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7775 for fields at offset 0 of a struct or union as reported
7776 on 2005-07-07 in the developer mailing list.
7778 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7780 * src/SDCCmem.c: fixed bug 1238386
7782 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7784 * src/mcs51/peeph.def: added labelrefcounting for peepholes
7785 (patch #1144962), added peephole 300, enabled 259.x
7786 * doc/sdccman.lyx: removed screenshot and provided link instead
7788 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7790 * doc/sdccman.lyx: added section about debugging with ddd
7791 * doc/figures/ddd_example.eps: screenshot of debugging session
7793 2005-07-04 Raphael Neider <rneider AT web.de>
7795 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7796 like CODE pointers, fixes #1115683
7797 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7798 call, fixes bugs #1232211, #1228110,
7799 fixed wrong casts to pCodeFlow from pCodeInstructions
7801 2005-07-04 Raphael Neider <rneider AT web.de>
7803 * src/pic/gen.c (popGet): changed assert to allow for
7805 * (popGetAddr): changed signature to provide
7806 an additional index, patched all call sites
7807 * (genCmpEq): handle literal-like operands correctly
7808 * (genAddrOf): added sanity checks on __code/__data pointers
7809 * (genAssign): added handling of symbols from __code section
7810 * (gencjne): do not generate code for comparisons whose result
7811 is neither stored nor used, fixes bug #1171114
7812 * (AccLsh, AccRsh): operate on operand instead of WREG
7813 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7814 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7816 * rewrote complete shift-by-literal logic, commented unused
7818 * (genConstPointerGet): get multiple bytes (if result size > 1),
7819 fixed handling of non-immediate addresses
7820 * (genPointerGet): handle CODE pointers like CONST pointers
7821 * (genpic14Code): insert C-SRC lines as Cource-pCodes
7822 * ({aop,op}_isLitLike): NEW, single place to decide whether an
7823 operand is to be treated as a literal or not
7824 * (mov2w,genPcall,genCmpEq),
7825 src/pic/genarith.c: use aop_isLitLike() to decide between
7826 literal/register contents
7827 * (addSign): added missing offset
7828 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7829 only emit comment in debug-mode,
7830 use {aop,op}_isLitLike throughout the file
7831 * src/pic/glue.c: fix initializers for pointers (work in progress)
7832 * src/pic/pcode.c (get_op): honor index on _const symbols
7833 * ({reset,dump}pCodeStatistics): NEW, estimate code size
7834 * (dumppBlock): added pCode size estimation
7835 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7836 check for IS_SYMOP before OP_SYMBOL'ing
7837 * fixed indentation, compacted switch-statements
7838 * (allocReg): find free register and allocate it instead of
7839 allocating new registers all the time
7840 * (deassignLRs): prevent POINTER_GET's from being assigned the same
7841 registers as its operands (necessary only for multibyte GETs)
7843 2005-07-01 Raphael Neider <rneider AT web.de>
7845 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7846 debugging .asm-output macros FENTRY + FEXIT
7847 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7849 * (emitpComment): NEW, printf to pCode
7850 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7852 * (popGetAddr): NEW, variant of popGet to access an immediates
7853 high(er) bytes instead of the n'th byte of memory they reference,
7854 replaced popGet with popGetAddr where neccessary
7855 * (genDataPointerGet): reactivated and fixed implementation
7856 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7858 * (genDataPointerSet): fixed multibyte assignments
7859 * (genpic14Code): fixed --i-code-in-asm handling
7860 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7861 * (genPlus): fixed index-out-of-bounds error
7862 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7863 * src/pic/ralloc.c: added debugging output macro FENTRY2
7864 * (spillThis): fixed indentation, enbraced for-body for clarity
7865 * (rematStr): commented out as now unused
7866 * (regTypeNum): commented out special spill case (overwrites
7868 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7870 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7872 * doc/sdccman.lyx: documented sfr16/sfr32,
7873 added example for using storage class with function pointers
7874 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7876 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7878 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7879 * device/lib/_itoa.c,
7880 * device/lib/_ltoa.c: optimized codesize
7881 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7882 but don't know how to suppress the double warning.
7883 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7884 * support/Util/SDCCerr.c,
7885 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7887 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7889 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7890 fixed old K&R prototypes
7891 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7892 * device/lib/_gptrget.c,
7893 * device/lib/_gptrgetc.c,
7894 * device/lib/_gptrput.c: changed versions for new memory indicator values,
7895 also new versions for small generic pointers and banked generic pointers
7896 * src/port.h: added const_name
7897 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7898 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7899 * src/SDCCcse.c (findPrevIc): check all associative operators
7900 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7901 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7902 * src/SDCCmem.c: updated comments,
7903 set far-space to 0 for pdata, results in optimized code
7904 * src/SDCCmem.h: added macro CONST_NAME
7905 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7906 moving the info into the highest bits, see also gptrget/gptrput
7907 * src/src.dsp: added sdcc.ico to project files
7908 * src/avr/gen.c (genCast): fixed bug 0x%d
7909 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7910 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7911 relation between ptr_type and DCL_TYPE,
7912 (genCast): fixed bug 0x%d
7913 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7914 (CODE)" for const_name
7915 * src/hc08/gen.c (genCast): fixed bug 0x%d
7916 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7917 (hc08_port): added "CONST (CODE)" for const_name
7918 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7919 (aopForRemat, adjustArithmeticResult): disconnected direct relation
7920 between ptr_type and DCL_TYPE,
7921 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7922 operand* and took AOP() inside function so sfr-ness can be checked,
7923 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7925 (genFunction, genEndFunction): optimized stack setup,
7926 (genMinus): optimized for literals with ending zeroes (in bytes),
7927 (genCast): fixed bug 0x%d
7928 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7929 (mcs51_port): added "CONST (CODE)" for const_name
7930 * src/mcs51/peeph.def: made rule 226 more generic
7931 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7932 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7933 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7934 * src/z80/main.c (z80_port): added NULL for const_name,
7935 (gbz80_port): added NULL for const_name
7936 * support/regression/tests/bug663539.c,
7937 * support/regression/tests/sfr16.c: new tests
7939 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7941 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7943 2005-06-24 Raphael Neider <rneider AT web.de>
7945 * device/lib/pic16/libdev/pic18f[68][567]20.c:
7947 * device/include/pic16/signal.h: added USBIF
7950 2005-06-24 Raphael Neider <rneider AT web.de>
7952 * device/lib/pic16/libdev/pic18f2455.c,
7953 device/include/pic16/pic18f2455.h: NEW
7954 * device/include/pic16/pic18fregs.h,
7955 device/lib/pic16/pics.all,
7956 src/pic16/device.c: added 18f2455
7957 * device/lib/pic16/libdev/pic18f[68][567]20.c,
7958 device/include/pic16/{pic18f[68][567].h,usart.h}:
7959 replaced MULTIPLE_USARTS define with more relaible
7960 compatibility sfrs (for USART access)
7962 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7964 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7965 and the output asm file line is printed on two lines.
7967 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7969 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7970 BGT, BLE, BHI, and BLS instructions
7971 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7973 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7974 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7976 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7978 2005-06-15 Raphael Neider <rneider AT web.de>
7980 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7981 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7982 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7983 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7984 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7986 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7988 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7989 Marcel Telka in bug #1215704
7991 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7993 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7994 located in shared memory bank.
7996 2005-05-31 Raphael Neider <rneider AT web.de>
7998 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7999 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
8000 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
8002 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
8004 * device/lib/_strncpy.c: fixed the fix
8006 2005-05-26 Raphael Neider <rneider AT web.de>
8008 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
8009 initializers with \0, bug #1208187
8010 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
8011 intializers with \0, bug #1208187
8013 2005-05-26 Raphael Neider <rneider AT web.de>
8015 * src/pic16/glue.c (pic16_printIvalChar): fixed string
8016 initializers with \0, bug #1208187
8017 * src/pic16/main.c (_process_pragma): added sanity checks
8018 for stack position and size, emit warnings when appropriate
8020 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
8022 * device/lib/_strncpy.c: fixed not filling with \0
8024 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8026 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
8028 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
8029 compound_statement),
8031 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
8033 2005-05-24 Raphael Neider <rneider AT web.de>
8035 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
8037 2005-05-24 Raphael Neider <rneider AT web.de>
8039 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
8040 TRISE definitions, closes bug #1162453
8042 2005-05-22 Raphael Neider <rneider AT web.de>
8044 * src/pic16/main.c (_process_pragma): check for missing
8045 arguments to pragmas code and udata
8046 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
8047 consistency fixes to match other headers (thanks to Jim Paris)
8048 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
8050 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
8052 * src/SDCCicode.c (isOperandEqual): fixed missing ;
8054 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
8056 * support/regression/tests/bug1198642.c: new test
8057 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
8058 * src/SDCCcse.c (findPrevIc): added comment, please have a look
8059 * support/scripts/resource.h,
8060 * support/scripts/resource.rc,
8061 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
8062 * support/scripts/sdcc.ico: added 32x32 icon
8064 2005-05-18 Raphael Neider <rneider AT web.de>
8066 * device/lib/pic16/libdev/pic18f*.c,
8067 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
8068 keywords to "__sfr" and "__at (X)"
8069 * device/include/pic16/pic18fregs.h: added pic18f4520
8070 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
8071 #1203088 (MPLAB compatibility)
8073 2005-05-17 Raphael Neider <rneider AT web.de>
8075 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
8076 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
8077 * device/lib/pic16/pics.all: added new devices
8078 * src/pic16/device.c: added support for pic18f4520
8080 2005-05-16 Raphael Neider <rneider AT web.de>
8081 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
8082 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
8083 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
8084 convenience function for bit access
8086 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
8088 * device/lib/printf_large.c: fixed bug 1193299
8089 * support/regression/tests/bug1057979.c: added test %3.3s
8091 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8093 * device/include/mcs51/8051.h,
8094 * device/include/mcs51/8052.h: made parseable with lint
8095 * device/include/mcs51/lint.h: added include file for (sp)lint
8096 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
8097 * doc/cdbfileformat.lyx,
8098 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
8100 2005-05-14 Raphael Neider <rneider AT web.de>
8102 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
8103 * device/lib/pic16/libc/stdlib/itoa.c (new)
8104 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
8105 * device/lib/pic16/libio/Makefile: exclude subdir according to
8106 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
8107 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
8108 * src/pic16/gen.c (genFunction): prevent annoying warning
8109 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
8111 * support/cpp2/cppmain.c (cpp_output_string): new
8112 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
8115 2005-05-13 Borut Razem <borut.razem AT siol.net>
8117 * src/SDCCmain.c (linkEdit): fixed bug 1195202
8119 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8121 * .version: changed to version 2.5.1; back to bleeding edge development
8123 2005-05-11 Borut Razem <borut.razem AT siol.net>
8125 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
8126 generate PDF version 1.3 documents
8128 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8130 * .version: changed to version 2.5.0
8132 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8134 * doc/sdccman.lyx: updated weblinks, index and smaller updates
8136 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8138 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
8139 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
8140 well as many smaller updates.
8141 * .version: changed to version 2.5.0-pre1
8143 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8145 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
8147 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
8149 * support/regression/tests/bug1185672.c: added
8150 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
8152 * src/mcs51/gen.c (genCall): added comments, made it look safer
8153 * src/mcs51/gen.c (genEndFunction): simplified
8155 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
8157 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
8159 2005-04-14 Borut Razem <borut.razem AT siol.net>
8161 * fixed bug 1045046 - SIGSEGV with really simple code?:
8162 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
8163 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
8165 2005-04-14 Borut Razem <borut.razem AT siol.net>
8167 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
8168 src/pic16/device.h: temporarily disabled experimental #inline pragma
8171 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
8173 * device/include/z80/stdio.h,
8174 * device/include/z80/string.h: removed these highly incomplete files so
8175 SDCC can use the default ones in device/include/
8177 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8179 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
8181 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
8184 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8186 * device/include/malloc.h: removed redundant __reentrant prototypes
8187 * device/lib/_mullong.c: added working xstack variant in asm (C version
8188 doesn't pass regression tests)
8189 * device/lib/bpx.c: used __data and made bpx char for mcs51
8190 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
8191 (createFunction): fixed bug with xstackPtr
8192 * src/SDCCcse.c: corrected comments
8193 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
8194 (killDeadCode, eBBlockFromiCode): removed unused code
8195 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
8197 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
8198 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
8199 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
8200 (genModOneByte): fixed warning in MSVC
8201 * src/mcs51/main.c (): added comments
8202 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
8204 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8206 * src/SDCCmain.c (linkEdit): oops, changed one line too many
8208 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8210 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8212 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8214 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8215 characters arrays of larger size than the declared one.
8217 2005-04-10 Borut Razem <borut.razem AT siol.net>
8219 * src/pic/gen.c (genInline),
8220 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8221 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8222 (findNextInstruction), (findPrevInstruction),
8223 (findInstructionUsingLabel),
8224 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8225 * src/pic/pcode.c (findLabel): added missing '\n'
8226 * src/src.dsp: added SDCCdwarf2.c to the project
8228 2005-04-09 Borut Razem <borut.razem AT siol.net>
8230 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8232 2005-04-08 Raphael Neider <rneider AT web.de>
8234 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8235 into the chain after a given one) and mergeDefmapSymbols (combine
8236 defmap entries for each symbol per pcode)
8237 * (createDefmap): have defmap entries merged in the end
8238 * (defmapReplaceSymRef): split defmap entries covering two accesses to
8239 a symbol before replacing one access type's symbol, merge symbols in
8240 the end (replacement symbol might already have an entry)
8241 * (assignValnums): keep reference to written WREG intact
8243 2005-04-08 Raphael Neider <rneider AT web.de>
8245 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8248 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8250 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8253 2005-04-07 Raphael Neider <rneider AT web.de>
8255 * device/include/pic16/usart.h: added compatibility defines for
8256 devices with more than one USART
8257 * device/include/pic16/pic18f[68][567]20.h: activated above defines
8259 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8261 * device/lib/Makefile.in: updated for port specific include
8263 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8265 * support/regression/ports/mcs51/spec.mk: added mcs51 include
8267 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8269 * device/include/8051.h,
8270 * device/include/8052.h,
8271 * device/include/at89S8252.h,
8272 * device/include/at89c55.h,
8273 * device/include/at89x051.h,
8274 * device/include/at89x51.h,
8275 * device/include/at89x52.h,
8276 * device/include/mcs51reg.h,
8277 * device/include/reg51.h,
8278 * device/include/reg764.h,
8279 * device/include/regc515c.h,
8280 * device/include/sab80515.h: (re)moved these 12 files
8281 * device/include/mcs51/8051.h,
8282 * device/include/mcs51/8052.h,
8283 * device/include/mcs51/at89S8252.h,
8284 * device/include/mcs51/at89c55.h,
8285 * device/include/mcs51/at89x051.h,
8286 * device/include/mcs51/at89x51.h,
8287 * device/include/mcs51/at89x52.h,
8288 * device/include/mcs51/mcs51reg.h,
8289 * device/include/mcs51/reg51.h,
8290 * device/include/mcs51/reg764.h,
8291 * device/include/mcs51/regc515c.h,
8292 * device/include/mcs51/sab80515.h: and added them here
8294 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8296 * device/include/stdarg.h: changed SDCC specific keywords to double
8298 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8300 * device/include/hc08/mc68hc908gp32.h,
8301 * device/include/hc08/mc68hc908jb8.h,
8302 * device/include/hc08/mc68hc908jkjl.h,
8303 * device/include/hc08/mc68hc908qy.h: fixed comments
8304 * device/include/mcs51/README: updated
8305 * device/include/mcs51/c8051f120.h: added PINRSF
8306 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8307 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8308 amidst code. Also inline is not supported.
8310 2005-04-06 Raphael Neider <rneider AT web.de>
8312 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8313 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8314 callers stack/frame pointers
8316 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8318 * device/include/pic16/usart.h: added, missing in previous commit,
8319 * device/include/pic16/adc.h: fixed typo,
8320 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8322 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8324 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8325 uninitialized because a bug appears with gplink
8326 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8327 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8328 complains for unrecognised option
8330 2005-04-05 Raphael Neider <rneider AT web.de>
8332 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8333 structs as well (using memcpy)
8334 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8335 on ISRs (GOTO has no label)
8336 * src/pic16/device.h: added OF_OPTIMIZE_DF
8337 * src/pic16/main.c: added compiler switch --optimize-df to enable the
8338 new data flow analysis/optimization
8339 * src/pic16/pcode.c: added (prototypes for and implementation of)
8340 dataflow analysis functions, fixed pCodeInstructions' inCond and
8341 outCond values, made RCALL a branch instruction
8342 * (pic16_unlinkpCode): keep C line if possible
8343 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8344 C line moved if possible
8345 * (pic16_getRegFrompCodeOp): NEW, improved version of...
8346 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8347 to use new pic16_getRegFrompCodeOp (works for more SFRs)
8348 * (pic16_BuildFlow): fixed skip instructions with label (did not start
8350 * (pic16_getJumptabpCode): NEW, needed in...
8351 * (LinkFlow): fixed handling of jumptables, calls and conditional
8353 * (pic16_InsertCommentAfter): NEW
8354 * (pic16_pCodeReplace): made verbose and flow preserving
8355 * (AnalyzeFlow): added call to data flow analysis
8356 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8357 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8358 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8360 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8362 * src/SDCCast.c (decorateType): fixed bug #1105626
8364 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8366 * device/include/asm/pic16/features.h,
8367 * pic18f*.h headers,
8368 * device/include/pic16/adc.h,
8369 * device/include/pic16/delay.h,
8370 * device/include/pic16/i2c.h,
8371 * device/include/pic16/malloc.h,
8372 * device/include/pic16/stdio.h,
8373 * device/include/pic16/stdlib.h,
8374 * device/include/pic16/string.h,
8375 * device/lib/pic16/libc/stdio/printf_tiny.c,
8376 * device/lib/pic16/libc/stdio/printf_small.c,
8377 * device/lib/pic16/libc/stdio/strmgpsim.c,
8378 * device/lib/pic16/libc/stdio/strmmssp.c,
8379 * device/lib/pic16/libc/stdio/strmusart.c,
8380 * device/lib/pic16/libc/stdio/vfprintf.c,
8381 * device/lib/pic16/libc/stdlib/ltoa.c,
8382 * device/lib/pic16/libc/stdlib/putchar.c,
8383 * device/lib/pic16/libc/stdlib/x_ftoa.c,
8384 * device/lib/pic16/libc/stdlib/memchrpgm.c,
8385 * device/lib/pic16/libc/stdlib/memchrram.c,
8386 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
8387 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
8388 * device/lib/pic16/libio/adc/adcbusy.c,
8389 * device/lib/pic16/libio/adc/adcread.c,
8390 * device/lib/pic16/libio/adc/adcsetch.c,
8391 * device/lib/pic16/libio/usart/ubaud.c,
8392 * device/lib/pic16/libio/usart/ubusy.c,
8393 * device/lib/pic16/libio/usart/udrdy.c,
8394 * device/lib/pic16/libio/usart/uopen.c,
8395 * device/lib/pic16/libio/usart/uputc.c,
8396 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
8397 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
8398 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8399 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8400 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8401 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
8402 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
8403 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
8404 specific keywords to double underlined form,
8405 * device/lib/pic16/libc/Makefile.rules,
8406 * device/lib/pic16/libsdcc/Makefile.rules,
8407 * device/lib/pic16/libm/Makefile,
8408 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
8409 to compile with C standard set in Makefile.common
8410 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
8411 rand.c and crc.c in compilation process,
8412 * device/lib/pic16/libsdcc/int/divuint.c,
8413 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
8414 `c' from signed to unsigned,
8415 * device/lib/pic16/startup/crt0.c,
8416 * device/lib/pic16/startup/crt0i.c,
8417 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
8418 keywords to double underlined form, bug fixes in _do_cinit function
8419 which prevented the correct initialization of the .idata segment,
8420 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
8421 core to enter a infinite loop
8422 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
8424 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8426 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
8428 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8430 * device/include/Makefile.in: add support for hc08 subdirectory
8431 * device/include/hc08/: new subdirectory
8432 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
8433 Lucas Loizaga, thanks!
8434 * device/include/hc08/mc68hc908qy.h,
8435 * device/include/hc08/mc68hc908gp32.h,
8436 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
8437 their own directory. Changed internal macro names to use the compiler
8438 reserved namespace. Changed SDCC specific keywords to double
8440 * device/include/math.h,
8441 * device/include/malloc.h,
8442 * device/include/stdarg.h,
8443 * device/include/stdbool.h
8444 * device/include/string.h,
8445 * device/include/tinibios.h,
8446 * device/include/ds400rom.h,
8447 * device/include/8051.h,
8448 * device/include/8052.h,
8449 * device/include/80c51xa.h,
8450 * device/include/at89c55.h,
8451 * device/include/at89S8252.h,
8452 * device/include/at89x51.h,
8453 * device/include/at89x52.h,
8454 * device/include/ds80c390.h,
8455 * device/include/reg764.h,
8456 * device/include/regc515c.h,
8457 * device/include/sab80515.h,
8458 * device/include/mcs51/c8051f000.h,
8459 * device/include/mcs51/c8051f018.h,
8460 * device/include/mcs51/c8051f020.h,
8461 * device/include/mcs51/c8051f040.h,
8462 * device/include/mcs51/c8051f060.h,
8463 * device/include/mcs51/c8051f120.h,
8464 * device/include/mcs51/c8051f300.h,
8465 * device/include/mcs51/c8051f310.h,
8466 * device/include/mcs51/c8051f320.h,
8467 * device/include/mcs51/c8051f330.h,
8468 * device/include/mcs51/c8051f350.h,
8469 * device/include/z180.h: Changed SDCC specific keywords to double
8472 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8474 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8476 * (pic16_assignConfigWordValue): disable testing of configuration
8477 register value with config mask,
8478 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8479 function with port->fun_prefix,
8480 * (genFunction): when generating a naked interrupt function never
8481 create an absolute segment placed in interrupt vector address, place
8482 the actual interrupt function at IVA instead, when an interrupt
8483 function is generated with unspecified interrupt then do not create
8484 the absolute section,
8485 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8486 code for generating a call to generic pointer get/put function with
8487 a call to function pic16_callGenericPointer(),
8488 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8489 the call to the generic pointer get/put functions with prefixing the
8490 function name with port->fun_prefix,
8491 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8492 * src/pic16/main.c (_process_pragma): prefix function with
8494 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8495 calling assembler, old 18Fxxxx macro is deprecated,
8496 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8497 PC_ASMDIR in while condition,
8498 * (findInstruction): add PC_ASMDIR in while condition,
8499 * (buildCallTree): prefix main with port->fun_prefix,
8500 * (pic16_pCode2str): fixed bug that didn't emit the memory access
8501 identifier for variable with banked access in instructions BTFSS,
8502 BTFSC, BCF, BSF, BTG
8503 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8504 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8505 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8506 perform optimization when enviroment variable NO_REG_OPT is set,
8507 * (insideLRBlock): NEW, return 1 if register is inside an
8508 INF_LOCALREGS block,
8509 * (RemoveRegFromLRBlock): remove a register that is completely
8510 eliminated by register optimization, but it is still left in local
8511 register store/restore in/from stack block,
8512 * (Remove2pcodes): after removing register, check to see if it
8513 should be removed from local register store/restore in/from stack
8515 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8516 DUMMY_READ_VOLATILE,
8518 * device/include/pic16/adc.h: minor prototype modifications and
8520 * device/include/pic16/malloc.h: added GPL notice various
8522 * device/include/pic16/stdint.h: NEW, standard header for ints
8523 * device/include/pic16/delay.h: NEW, header for delay functions,
8524 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8526 * device/include/pic16/signal.h: NEW, header providing helper macros
8527 for implementing signal handlers,
8528 * device/include/pic16/stdio.h: added prototypes for functions,
8529 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8530 prototypes for stdin and stdout, added macro PUTCHAR to
8531 automatically implement putchar function prototype,
8532 * device/include/pic16/usart.h: modified and updated USART library,
8533 * device/lib/pic16/libio/adc/,
8534 * device/lib/pic16/libio/i2c: some modifications to improve library
8536 * device/lib/pic16/libc/stdio/: modifications for the new printf*
8537 family of functions,
8538 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8539 family of functions and other sources,
8540 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8541 of the PIC18Fxx[28] devices,
8542 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8543 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8544 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8545 _do_cinit function, because the previous failed when local variables
8546 where not placed in the same memory bank,
8547 * device/lib/pic16/libsdcc/char/: various modifications to improve
8548 library performance,
8549 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8550 information on the new functions of the c library and more...
8552 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8554 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8556 2005-03-26 Raphael Neider <rneider AT web.de>
8558 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8559 if condition == CARRY)
8560 * (genCmp): adapted to new genSkipc semantics
8561 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8562 on rIfx (genCmp was broken)
8564 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8566 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8567 * src/z80/main.c (_keywords[]),
8568 * src/SDCCglobal.h (struct options),
8570 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8571 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8572 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8573 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8574 always available in leading double underscore form. The C99 support is
8575 mostly missing, but it's a start.
8576 * support/regression/tests/bug-227710.c: fixed nonconforming use of
8577 reserved identifier "__data".
8579 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8581 * src/mcs51/peeph.def: fixed bug 1170013
8583 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8585 * device/include/mcs51reg.h: fixed bug 842007
8587 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8589 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8592 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8594 * src/port.h (struct PORT),
8595 * src/avr/ralloc.c (avr_assignRegisters),
8597 * src/ds390/ralloc.c (ds390_assignRegisters),
8599 * src/hc08/ralloc.c (hc08_assignRegisters),
8601 * src/mcs51/ralloc.c (mcs51_assignRegisters),
8603 * src/pic/ralloc.c (pic14_assignRegisters),
8605 * src/pic16/ralloc.c (pic16_assignRegisters),
8607 * src/xa51/ralloc.c (xa51_assignRegisters),
8609 * src/z80/ralloc.c (z80_assignRegisters),
8611 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8612 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8614 * src/SDCCdflow.c (computeDataFlow),
8616 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8618 * src/SDCCcflow.c (*),
8620 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8621 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8622 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8623 immedDom() returning wrong block; probably fixes bug #1160833)
8625 2005-03-20 Borut Razem <borut.razem AT siol.net>
8627 * support/scripts/inc2h.pl: WIN32 port
8629 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8631 * device/lib/makefile.in: added abs.c and labs.c
8633 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8635 * device/include/stdint.h: added
8636 * device/lib/abs.c: added
8637 * device/lib/labs.c: added
8638 * device/include/stdlib.h: added abs() and labs() prototypes
8639 * device/lib/libsdcc.lib: added abs and labs
8640 * device/include/float.h,
8641 * device/lib/_fsmul.c,
8642 * device/lib/printf_fast.c,
8643 * device/lib/printf_tiny.c: updated comments
8645 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8647 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8650 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8652 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8653 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8655 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8657 * device/lib/printf_large.c: removed inline assembly for portability and
8658 readability. Use printf_fast if speed or size are more important.
8659 * src/pic16/gen.c: removed conditions around use of DEBUGpc
8660 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8662 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8664 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8665 prevent compiler warning
8667 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8669 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8670 moved to level 0 and declared as static. Also they are explicit
8671 placed in access bank. This was necessery because some times they
8672 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8673 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8674 optimizations. Currently only compare to unsigned char is implemented,
8675 * src/pic16/gen.c: added fReturnIdx array,
8676 * (struct resolvedIfx) is moved to gen.h and made public,
8677 * (struct _G): added sregsAlloc and sregsAllocSet fields,
8678 * (aopForSym): added an optimization to directly store in stack of
8679 the operand of a SEND iCode,
8680 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8681 but as registers instead (AOP_REG) using the fReturnIdx array,
8682 * (pic16_freeAsmop): remove the freed register from the
8683 _G.sregsAlloc field,
8684 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8685 a compare of 'WREG',
8686 * (pic16_popGetTempRegCond): changed function prototype, now
8687 function takes also a bitVector argument v which holds the current
8688 set of registers that are allocated for stack access by aopForSym,
8689 registers allocated in aopForSym for accessing stack symbols are not
8690 any more part of the functions usedRegs field,
8691 * (genCall): some times aopOp is called for a stack variable to be
8692 send, aopForSym might perform the push, if this is true make sure
8693 that genCall doesn't push the variable twice by testing _G.resDirect,
8694 * (genFunction): changed testing for unspecified interrupt number
8695 from 256 to INTNO_UNSPEC,
8696 * modified selection scheme of frame pointer generation. Previously
8697 if function did use local registers a frame pointer was generated,
8698 now a frame pointer is generated only if function has arguments
8699 (that need PLUSW2 register access), or has stack arguments, or the
8700 compiler is not instructed to omit the frame pointer,
8701 * (genEndFunction): before restoring local registers that were saved
8702 in the function preamble, also restore the registers that *might*
8703 have been allocated for stack access,
8704 * (genRet): removed some old comments,
8705 * (genCmp, the active (RN's) version): added a call to the
8706 pic16_genCmp_special function to perform the compare with a more
8707 robust and optimized way,
8708 * (genInline): a feature has been added in inline code generation,
8709 which allows a wildcard variable substitution when writing inline
8710 assembly. Code is incomplete and experimental therefore undocumented,
8711 * (genCast): changed order of aopOp for result and right to allow
8712 aopForSym to directly load the result if possible,
8713 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8714 perform an optimized compare on some selected special occasions,
8715 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8716 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8717 generate an IVT any more,
8718 * src/pic16/main.c (pic16_optionsTable): added command line option
8720 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8721 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8723 * src/pic16/NOTES: Raphael Neider added in list of active developers
8724 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8725 jumptable_end to prevent bug #,
8726 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8727 inCond and outCond fields,
8728 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8729 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8730 turn off register spilling,
8731 * (packRegsForOneUse): synced with other ports' versions although it
8732 is not used currently,
8733 * (pic16_packRegisters): added an optimization while reading
8734 structure bitfields, some registers may be saved (malloc code is
8735 decreased by 80 bytes)
8737 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8739 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8740 left is a bitfield, if yes, then don't optimize assignment. Perhaps
8741 this can be optimized more?
8743 2005-03-10 Raphael Neider <rneider AT web.de>
8745 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8746 genNearPointerGet): (hopefully) fixed access to bitfields via
8747 pointers (p->bitN = x; and x = p->bitN; failed)
8749 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8751 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8753 2005-03-09 Raphael Neider <rneider AT web.de>
8755 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8757 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8759 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8760 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8761 (regTypeNum): set REG_BIT type if necessary
8762 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8763 * support/regression/tests/critical.c: check bug 1144613
8765 2005-03-02 Raphael Neider <rneider AT web.de>
8767 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8769 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8771 * src/avr/ralloc.c (serialRegAssign),
8772 * src/ds390/ralloc.c (serialRegAssign),
8773 * src/hc08/ralloc.c (serialRegAssign),
8774 * src/mcs51/ralloc.c (serialRegAssign),
8775 * src/pic/ralloc.c (serialRegAssign),
8776 * src/pic16/ralloc.c (serialRegAssign),
8777 * src/xa51/ralloc.c (serialRegAssign),
8778 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8780 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8782 * src/SDCCast.c (decorateType): fixed bug 1124787
8784 2005-02-20 Hubert Sack <sack AT digiplan.de>
8785 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8787 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8790 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8792 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8793 to keep the correct label reference count when adding/removing references
8794 to labels. A peephole file using this is appended to patch #1144962.
8796 2005-02-14 Raphael Neider <rneider AT web.de>
8798 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8799 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8800 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8801 retrievals of result operand's value on assignment
8803 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8805 * device/include/pic16/string.h: modified prototype for memccpy()
8806 to memccpy(void *, void *, char, size_t)
8807 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8808 check whether to omit frame pointer or not,
8809 * (genInline): convert all occurences of "\n" to LF in inline
8810 assembler blocks, this helps formatting the inline text,
8811 * (pic16_loadFSR0): modified prototype,
8812 * (genNearPointerGet, genNearPointerSet): reorganization of code,
8813 removed some 8051 legacy code,
8814 * (genPackBits): enabled handling bitfields exceeding one byte in size,
8815 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8816 before allocating temporary registers in functions,
8818 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8820 * support/regression/tests/bitvars.c: corrected the "fix"
8822 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8824 * support/regression/tests/bitvars.c,
8825 * support/regression/tests/bitwise.c,
8826 * support/regression/tests/rotate.c: "fixed" problems on Alpha
8828 2005-02-10 Raphael Neider <rneider AT web.de>
8830 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8831 different size for Alpha
8832 * src/pic16/gen.c (genCmpEq) : improved compare with 0
8834 2005-02-09 Raphael Neider <rneider AT web.de>
8836 * src/SDCC.lex(doPragma) : save and restore warning options as well
8837 (also added new stack plus clone- and copyAndFreeSDCCERRG())
8838 * have #pragma less_pedantic set the errorlevel to WARNING
8840 * (cloneOptimize) : fixed wrong malloc's size
8841 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8842 facilitate correct handling of #pragma (save|restore)
8844 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8846 * src/mcs51/gen.c: removed non-standard C nameless struct/union
8848 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8850 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8852 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8854 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8856 2005-02-02 Raphael Neider <rneider AT web.de>
8858 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8859 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8860 * (pic16_storeForReturn): fixed to allow returning function pointers
8861 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8862 * device/include/pic16/{stddef.h,stdbool.h}: added
8864 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8866 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8868 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8870 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8871 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8872 appeared to be required
8874 2005-01-31 Borut Razem <borut.razem AT siol.net>
8876 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8877 include/mcs51 and include/z80 directories to the package
8879 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8881 * src/hc08/gen.c (genFunction): fixed bug #1112752
8883 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8885 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8887 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8889 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8891 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8893 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8895 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8897 * device/include/c8051fxxx.h: removed these 6 files
8898 * device/include/mcs51/c8051fxxx.h: added these 11 new files
8900 2005-01-26 Raphael Neider <rneider AT web.de>
8902 * src/pic16/gen.c (genAssign): fixed assignment from longs
8903 in codespace (were cut to three bytes)
8904 * (genDummyRead): implemented (except for CODESPACE...),
8906 * src/pic16/glue.c (emitStatistics): beautified
8907 * device/lib/pic16/libm/Makefile: added include path
8909 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8911 * src/z80/gen.c (aopPut): fixed bug #1103902
8913 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8915 * device/lib/expf.c: fixed bug #1095792
8917 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8919 * device/lib/pic16/libm: added Math library sources
8921 2005-01-24 Raphael Neider <rneider AT web.de>
8923 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8924 to enable upcast to pCodeOpReg2 (there is no type tag to
8925 differenciate the two and pic16_popGet2p cast into PCOR2)
8926 * src/pic16/main.c (_process_pragma): fixed another malloc bug
8927 (sizeof(sectNames) changed to sizeof(sectName))
8928 Both patches fix segfaults under MinGW.
8930 2005-01-23 Raphael Neider <rneider AT web.de>
8932 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8933 Safe_[mc]?alloc()'ed variables
8934 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8935 of (byte sized) temporaries (assign them to WREG for now)
8936 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8937 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8938 this might fix SIGSEGVs on MinGW...
8939 * src/SDCCopt.c (killDeadCode): restored original behaviour
8940 (volatile operands might get thrown away though)
8942 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8944 * src/pic16/gen.c: fixed bug #1106975,
8945 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8946 pointer update, INTCON is saved, global interrupts are disabled and
8947 restored after updateing TOS.
8948 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8949 * added function attribute 'shadowregs' to take advantage of shadow
8951 * added function attribute 'wparam' as an alternative to the wparam
8953 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8954 user declares a non-ISR function as 'shadowregs',
8955 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8957 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8959 * .version: bumped version number to 2.4.8
8960 * device/lib/pic16/pics.all: list of PIC18F devices supported by
8962 * device/lib/pic16/libio/i2c/: I2C module support library,
8963 * device/include/pic16/i2c.h: I2C support library header,
8964 * device/lib/pic16/libc/stdio/: standard IO support sources,
8965 * (printf_small.c): printf_small() source, supports float print,
8966 * (printf_tiny.c): printf_tiny() source, does not support floats,
8967 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8968 enable global optimizations for entire library source, other
8969 Makefiles in the source tree are also modified to reflect this,
8970 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8972 * doc/sdccman.lyx: updated to reflect new changes,
8973 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8974 sym->onStack if-case,
8975 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8976 sbit, idata, _idata, xdata, _xdata,
8977 * added pragma library, to link an external library, (see doc),
8978 * removed command line options, --pomit-config-words, --pomit-ivt,
8979 --pleave-reset-vector,
8980 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8981 when calling assembler to reflect memory model used, also define
8982 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8983 reflect stack model used,
8984 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8985 on stack return NULL,
8987 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8989 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8990 of the operands is volatile. Fixes #1020220
8992 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8994 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8995 * (OptimizeRegUsage): make sure that there is really no other flow where
8996 the first pCode is used
8998 2005-01-22 Raphael Neider <rneider AT web.de>
9000 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
9001 to fix #1106967 (pCode->seq are not set up correctly)
9003 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9005 * src/SDCCglue.c (glue): make sure code area is declared before the
9006 static initialization area.
9008 2005-01-21 Raphael Neider <rneider AT web.de>
9010 * device/lib/Makefile.in: fixed test for pic16 install dir
9011 * device/lib/pic16/*/Makefile*: modified compile flags to enable
9013 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
9014 added --optimize-goto compiler switch and pragma wparam documentation
9015 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
9016 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
9017 and PRODH closing bug #1071770 (peephole optimizer)
9019 2005-01-19 Raphael Neider <rneider AT web.de>
9021 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
9022 cmdLine buffers (used when calling sdcpp...) are large enough
9023 (MAX_PATH=256 truncates arguments leading to system halts when
9025 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
9026 * (genUminus): rewritten to for efficiency
9027 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
9028 used uninitialized in some cases)
9029 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
9030 copy the third byte from the int -- now assumes 0x80 (data memory)
9031 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
9032 operands (genAddLit expects the iCode's operands to swapped as
9033 well), fixed leftover bytes (crashed for short left operands)
9034 * (pic16_genMinusDec): performance improvements, removed false
9036 * (pic16_genMinus): fixed to cope with differently sized operands
9037 * src/pic16/glue.c (pic16_glue): added new banksel optimization
9039 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
9040 * src/pic16/graph.[ch]: implementation of directed graphs, used by
9041 new banksel optimization
9042 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
9043 analysis for temporary registers (segfaults...)
9044 * src/pic16/peeph.def: added rule
9046 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
9048 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
9049 which converts a float number to its ASCII representation
9050 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
9051 functions to convert the fractional and integer part of a float to ASCII,
9052 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
9053 realloc.c): added _MALLOC_SPEC to explicit place variables in data
9055 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
9057 * device/include/pic16/adc.h: added GPL info,
9058 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
9059 a pCodeOp as tested operand,
9060 * (genNearPointerGet): optimized bit testing, does not use
9061 intermediate register for bit value, test directly instead with
9062 BTFSS, BTFSC, works only for single bits,
9063 * (genpic16Code): dump the name of the iCode in the asm,
9064 * src/pic16/ralloc.c (decodeOp): removed static declaration and
9065 renamed to pic16_decodeOp,
9066 * (serialRegAssign): do not allocate a temporary register for iCode
9067 sequences that test a single bit for 1/0
9069 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
9071 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
9072 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
9073 access stack and frame pointers. They are initially assigned to
9074 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
9075 accessing SFRs. Updated all occurences of modification of stack or
9076 frame pointer in gen.c and pcode.c,
9077 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
9078 assigning of a literal value to pointers,
9079 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
9080 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
9083 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
9085 * doc/sdccman.lyx: update documentation about stack pragma, added
9086 some info for stack memory models
9088 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9090 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
9092 2005-01-08 Raphael Neider <rneider AT web.de>
9094 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
9095 udata sections to fix bug #1097823
9097 2005-01-05 Raphael Neider <rneider AT web.de>
9099 * src/pic16/gen.c (genGenericShift): added handling of differently
9100 sized left operand and result
9102 2005-01-04 Raphael Neider <rneider AT web.de>
9104 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
9105 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
9106 to hold the condition bit)
9107 * added new version of genCmp (old code available via #define)
9108 * added new version of genShiftLeft/genShiftRight in a generic
9109 way, now supports shifting by negative values
9110 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
9111 shiftCount (expected by genGenericShift)
9112 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
9113 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
9115 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
9116 is an invalid literal too...)
9118 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
9120 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
9121 from Raphael Neider,
9122 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
9123 for 8-bit literals. This fixes some literal operands which are sign
9124 extended to 16-bits ints when instruction needs only 8-bits.
9126 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
9128 * device/lib/logf.c: added mcs51 assembly version
9129 * device/lib/expf.c: added mcs51 assembly version
9130 * device/lib/_logexpf.c: new shared asm code for expf and logf
9131 * device/include/math.h: add defines for assembly math library
9132 * device/lib/Makefile.in: build new _logexpf.c
9133 * device/lib/libfloat.lib: use new _logexpf.c
9135 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9138 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
9139 device types which have less than 0x7f registers.
9141 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
9143 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
9145 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9147 * device/lib/printf_fast.c: only build on supported arch.
9148 * device/lib/printf_tiny.c: only build on supported arch.
9149 * device/lib/printf_fast_f.c: only build if asm float lib
9150 * device/lib/_fsget1arg.c: only build if asm float lib
9151 * device/lib/_fsget2args.c: only build if asm float lib
9152 * device/lib/_fsnormalize.c: only build if asm float lib
9153 * device/lib/_fsreturnval.c: only build if asm float lib
9154 * device/lib/_fsrshift.c: only build if asm float lib
9155 * device/lib/_fsswapargs.c: only build if asm float lib
9156 * device/include/stdio.h: don't provide print_fast,
9157 print_fast_f, print_tiny prototypes if --xstack used
9159 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
9161 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
9162 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
9165 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
9167 * device/lib/printf_fast_f.c: same as printf_fast, but
9168 with floating point enabled
9169 * device/lib/printf_fast.c: minor tweaks
9170 * device/include/stdio.h: add printf_fast_f
9172 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9174 * src/SDCCmain.c: make --float-reent default for mcs51
9175 * device/lib/_fsadd.c: added mcs51 assembly version
9176 * device/lib/_fssub.c: added mcs51 assembly version
9177 * device/lib/_fsmul.c: added mcs51 assembly version
9178 * device/lib/_fsdiv.c: added mcs51 assembly version
9179 * device/lib/_fseq.c: added mcs51 assembly version
9180 * device/lib/_fsneq.c: added mcs51 assembly version
9181 * device/lib/_fsgt.c: added mcs51 assembly version
9182 * device/lib/_fslt.c: added mcs51 assembly version
9183 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
9184 * device/lib/Makefile.in: add _fscmp to build
9185 * device/lib/libfloat.lib: add _fscmp to build
9187 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
9189 * device/lib/_fs2slong.c: added mcs51 assembly version
9190 * device/lib/_fs2sint.c: added mcs51 assembly version
9191 * device/lib/_fs2schar.c: added mcs51 assembly version
9192 * device/lib/_fs2ulong.c: added mcs51 assembly version
9193 * device/lib/_fs2uint.c: added mcs51 assembly version
9194 * device/lib/_fs2uchar.c: added mcs51 assembly version
9195 * device/lib/_slong2fs.c: added mcs51 assembly version
9196 * device/lib/_sint2fs.c: added mcs51 assembly version
9197 * device/lib/_schar2fs.c: added mcs51 assembly version
9198 * device/lib/_ulong2fs.c: added mcs51 assembly version
9199 * device/lib/_uint2fs.c: added mcs51 assembly version
9200 * device/lib/_uchar2fs.c: added mcs51 assembly version
9201 * device/include/float.h: added #define to select asm vs c
9203 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9205 * device/lib/printf_fast.c: improvements to float output
9206 * device/include/float.h: add defines for assembly float library
9207 * device/lib/_fsget1arg.c: receive 1 float arg
9208 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9209 * device/lib/_fsnormalize.c: normalize a float
9210 * device/lib/_fsreturnval.c: return float, various helper routines
9211 * device/lib/_fsrshift.c: right shift a float's mantissa
9212 * device/lib/_fsswapargs.c: swap 2 floats
9213 * device/lib/Makefile.in: build these 6 new files for mcs51
9214 * device/lib/libfloat.lib: add these 6 files to the library
9216 2004-12-26 Borut Razem <borut.razem AT siol.net>
9218 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9221 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9223 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9224 and fully reentrant and register bank neutral.
9225 * device/lib/printf_fast.c: added float (not enabled by default),
9226 added compact/slower integer (also not enabled by default),
9227 improved size/speed of fast integer code, other minor changes
9228 * device/include/stdio.h, device/lib/Makefile.in,
9229 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9231 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9233 * src/pic16/pcode.c: declaring variables other than at the start of a
9234 block is not supported in C by VC6.
9236 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9238 * applied a previous patch from Raphael Neider that wasn't included
9239 in the previous commits, which fixes infinite loops within jumptable
9241 * made some fixes that previous patches introduced
9243 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9245 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9246 that fixes an issue with AOP_PCODE asmop's offset,
9247 * (pic16_popCopyReg): update instance field too,
9248 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9249 function of pic port,
9250 * (genCmp, genAnd, genAssign),
9251 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9253 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9255 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9256 variables initial values to idata section,
9257 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9258 variables in some functions. This utilizes parmBytes field of iCode
9259 structure to hold the offset of the variable in stack. (might be
9260 able to use the stack field too?)
9261 * applied patch from Raphael Neider # ### , # ###
9262 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9263 variable initial values in idata section,
9264 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9265 for static variables with initial value
9266 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9267 applied fix in while loop from Raphael Neider.
9269 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9271 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9272 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9273 * src/ds390/ralloc.c (serialRegAssign): spill bits
9274 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9275 * support/Util/SDCCerr.c,
9276 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9277 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9278 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9280 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9282 * device/include/sdcc-lib.h: inserted LGPL, added includes
9283 asm/ds390/features.h and asm/mcs51/features.h
9284 * device/include/asm/default/features.h,
9285 * device/include/asm/gbz80/features.h,
9286 * device/include/asm/z80/features.h: added empty _AUTOMEM
9288 * device/include/asm/ds390/features.h,
9289 * device/include/asm/mcs51/features.h: added files with defines for
9290 _AUTOMEM and _STATMEM indicating automatic and static storage class
9291 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9292 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9293 * src/SDCCicode.c (geniCodeCast),
9294 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9295 * src/SDCCloop.c (loopInduction): removed unused variable lr
9296 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9297 to convertToFcall to include char modulo (RFE 1065037), added check
9298 if left operand is unsigned and use abs of literal value
9299 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9300 as it doesn't work after conversion from peephole.def to peephole.rul
9301 * src/mcs51/gen.c (toBoolean): added check for size,
9302 (genModOneByte): optimized code for signed char modulo a literal
9303 power of 2 (thanks to Hubert Sack),
9304 (genRRC): removed unnecessary "clr c",
9305 (genRLC): replaced "add a,acc" with cheaper "rlc a"
9306 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9308 swapped rules 256.c and 256.d,
9309 extended 256.d by using new multiple checks (thanks Erik),
9310 added rules 256.e and 256.f,
9311 updated rule 261.a and 261.b to new generated code
9312 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9314 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9316 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9317 induction related bugs, including first part of bug #1074377
9319 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9321 * applied patch from bug-report #1076292,
9322 * applied patches for genAnd and Goto-optimizations for Raphael
9324 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9325 dump a less iCode information,
9326 * src/pic16/device.h (pic16_options_t): added field debgen,
9327 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9328 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9329 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9331 * (various functions): added macros FENTRY and FENTRY2 to functions,
9332 to emit function prologue,
9333 * (various functions): fixed indentation,
9334 * (genNearPointerGet): fixed loading of FSR0,
9335 * (genPackBits): applied patch from Raphael Neider to fix updating
9336 of FSR0 and touching only the modified bits,
9337 * src/pic16/genarith.c (various functions): added macros FENTRY to
9338 emit function prologue in comments,
9339 * src/pic16/pcode.h: added functions debugf2, debugf3,
9340 * src/pic16/ralloc.c: partial fix for packForPush caused
9343 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9345 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9346 <stsp AT users.sourceforge.net> with reversed byte order
9347 * support/regression/tests/rotate.c: added (ds390 skips some tests)
9349 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9351 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9353 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9354 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9356 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9358 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9360 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9362 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9364 (setFromConditionArgs): friendly operand parser for peephole rules,
9365 (operandBaseName, operandsNotRelated): new peephole condition
9366 "operandsNotRelated" -- similar to "operandsNotSame", but takes
9367 architecture specific register naming into account, handles n-way
9368 comparisons, and supports quoted literals
9369 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9371 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9373 * src/mcs51/peeph.def: fixed bug #1076940
9375 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9377 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9379 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9381 Adding support for replacing ljmps with sjmps in jumptables
9382 generated for switch statements. For now you need to set the
9383 environment variable SDCC_SJMP_JUMPTABLE to enable this.
9384 Now 4 algorithms for mcs51 jumptable generation are used:
9385 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
9386 addresses loaded pc-relative for up to 112 cases and stack-pushing
9387 target addresses loaded with offset from dptr for up to 256 cases.
9389 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
9390 * src/mcs51/main.c: adapted constants for switch table generation
9391 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
9393 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
9395 * device/lib/printf_large.c (_print_format): fixed bug 1073386
9396 * support/regression/tests/bug1057979.c: added test for bug 1073386
9398 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9400 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9403 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9405 * src/pic16/device.h,
9406 * src/pic16/genarith.c,
9409 * src/pic16/pcode.c: applied patches #1068154 and #1070213
9411 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
9413 Large cummulative patch for pic16 port.
9414 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
9415 to call when a stack overflow occurs,
9416 * (malloc.h): added CVS Id tag,
9417 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
9419 * added libc directory. The current version of LibC contains string
9420 functions, ctype functions and macros and some functions of the
9421 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
9422 be extensively tested in the future. Standard disclaimer here.
9423 Library is not automatically build yet. But one can build it by
9424 invoking 'make' inside the libc directory.
9425 * added ADC library under libio. Preliminary version yet.
9427 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
9428 * src/pic16/gen.c (aopForRemat): asmop size is filled by
9429 aopForRemat() now and not by pic16_aopOp(),
9430 * (pic16_popGetTempReg): removed warning messgae when allocating
9431 temporary registers, its a buggy feature and will be removed,
9432 * (pic16_popGet): set register instance field in AOP_CRY,
9433 * (pic16_outBitC): fixed for results in size greater than 1,
9434 * (genUminusFloat): fixed for pic16, ported code from mcs51,
9435 * (pic16_storeForReturn): optimized return of 0,
9436 * (genCmp): experimental code for new genCmp which uses PIC18's
9437 special compare&skip instructions. Initial tests fail some times
9438 with variables grater than 1 byte in size, so new code is disabled,
9439 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9441 * (genCast): began a fix to optimize the casting of a bit to another
9442 bit, now assigning a bitfield to another bitfield will fail, sorry,
9443 * src/pic16/main.c: disabled the use of lr-support feature,
9444 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9445 * added some function prototypes, added function _debugf prototype,
9446 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9447 bits with offset (case PO_GPR_BIT),
9448 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9450 * (isBankInstruction): modified to return 0 for no banking instruction,
9451 and 1 for banking instruction,
9452 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9453 caused stop processing pCodes after a inline assembly block,
9454 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9455 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9456 registers when it shouldn't,
9457 * src/pic16/ralloc.c (allocReg): add preliminary support for
9458 supporting a limited set of temporary registers,
9460 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9462 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9463 genDataPointerSet): ensure assignments always copy in MSB to LSB
9465 (loadRegFromAop): recognize CLRH optimization,
9466 (genFunction): optimize RECEIVE iCodes in reentrant functions
9468 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9470 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9471 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9473 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9474 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9475 contiguous with data
9477 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9479 * device/lib/_gptrget.c (_gptrget),
9480 * device/lib/_gptrgetc.c (_gptrgetc),
9481 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9482 instead of sjmp to ret
9483 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9484 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9486 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9488 * .version: bumped version to 2.4.7
9489 * device/lib/_gptrget.c (_gptrget): is now _naked
9490 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9491 * device/lib/_gptrput.c (_gptrput): is now _naked
9492 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9493 (createFunction): fixed xstack
9494 * src/SDCCglue.c (emitMaps): set allocation required for bit area
9495 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9497 (geniCodeCritical): store original interrupt state in an iTemp bit
9498 var unless stack-auto
9499 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9500 * src/SDCCmain.c (setIncludePath): added include/target to search path
9501 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9502 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9504 (processFuncArgs): put bit vars in bit area
9505 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9506 unsaveRBank): fixed xstack,
9507 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9508 (genFunction, genEndFunction): fixed xstack,
9509 (genAssign): optimization don't walk backwards through mem
9510 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9511 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9512 * support/regression/Makefile: also make library (for stack-auto) when
9513 making "all" and added "test-mcs51-xstack-auto"
9514 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9515 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9516 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9517 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9518 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9519 make-library by MAKE_LIBRARY
9520 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9521 regression tests for xstack
9522 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9523 * support/regression/tests/critical.c: test for critical on mcs51
9525 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9527 * support/regression/ports/ucz80/spec.mk: use include and lib files from
9528 built version of sdcc instead of installed version
9530 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9532 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9533 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9535 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9536 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9537 WARNING: remove device/lib/build/z80/printf.o by hand when
9538 updating from previous build!
9539 * device/lib/z80/printf.c: updated comment
9540 * support/regression/tests/bug1057979.c: test all ports now
9541 * support/regression/tests/bug1065458.c: file added
9543 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9545 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9546 *_start and *_end symbols for static functions
9548 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9550 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9551 and search crt0.o in all library paths,
9552 (setIncludePath): proper handling of --nostdinc,
9553 (setLibPath): proper handling of --nostdlib
9554 * support/regression/Makefile,
9555 * support/regression/ports/ds390/spec.mk,
9556 * support/regression/ports/gbz80/spec.mk,
9557 * support/regression/ports/hc08/spec.mk,
9558 * support/regression/ports/mcs51/spec.mk,
9559 * support/regression/ports/mcs51-large/spec.mk,
9560 * support/regression/ports/mcs51-stack-auto/spec.mk,
9561 * support/regression/ports/z80/spec.mk: use include and lib files from
9562 built version of sdcc instead of installed version
9563 * doc/sdccman.lyx: fixed typo in --nostdinc
9565 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9570 * src/pic/gen.c : added support to generate code for struct bit fields.
9572 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9574 * as/xa51/xa_version.h,
9575 * device/include/errno.h,
9576 * device/include/regc515c.h,
9577 * device/lib/_itoa.c,
9578 * device/lib/_ltoa.c,
9579 * device/lib/ser_ir_cts_rts.c,
9580 * sim/ucsim/xa.src/glob.cc,
9581 * sim/ucsim/xa.src/inst_gen.cc,
9582 * sim/ucsim/xa.src/xa_bit.cc,
9583 * sim/ucsim/xa.src/xa_sfr.cc,
9584 * sim/ucsim/z80.src/inst_dd.cc,
9585 * sim/ucsim/z80.src/inst_fdcb.cc,
9586 * support/scripts/keil2sdcc.pl,
9587 * src/pic16/pic16.dsp,
9588 * src/pic16/pic16a.dsp: corrected cvs line endings
9589 * device/lib/printf_large.c: fixed bug 1057979
9590 * src/pic16/gen.c: fixed non-C standard code
9591 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9592 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9593 * support/regression/ports/mcs51/support.c: reload T1 asap
9594 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9595 pdata use and clear idata startup behaviour
9596 * support/regression/tests/bug1057979.c: added
9598 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9600 * device/examples/ds390/ow390/ad26.h,
9601 * device/examples/ds390/ow390/cnt1d.h,
9602 * device/examples/ds390/ow390/crcutil.c,
9603 * device/examples/ds390/ow390/ownet.h,
9604 * device/examples/ds390/ow390/owsesu.c,
9605 * device/examples/ds390/ow390/swt12.h,
9606 * device/examples/ds390/ow390/swtoper.c,
9607 * device/examples/ds390/ow390/temp10.h,
9608 * device/examples/ds390/ow390/thermodl.c,
9609 * device/examples/ds390/tinitalk/tinitalk.dsp,
9610 * device/examples/ds390/tinitalk/tinitalk.dsw,
9611 * device/examples/mcs51/clock/hw.h,
9612 * device/examples/mcs51/simple2/go.bat,
9613 * device/examples/serialcomm/windows/serial.h,
9614 * device/examples/xa51/dummy.c,
9615 * device/examples/xa51/hello.c,
9616 * device/include/80c51xa.h,
9617 * device/include/at89x051.h: corrected cvs line endings
9619 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9621 * src/pic16/main.c (options): added command line --gstack, to trace
9622 stack over/under flows,
9623 * added pragma 'wparam' to allow passing first byte of function
9624 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9625 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9626 call to __gstack_test function and sets up the symbol as extern,
9627 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9628 * popaop): added call to pic16_testStackOverflow,
9629 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9631 * (genCall, genPcall): now all parameters are passed via stack
9632 except in functions that are pass to wparam pragma in which WREG is
9634 * (genPcall): REENTRANT flag is checked to see if variable prototype
9635 contains reentrant keyword, don't call a non-reentrant function, via
9636 a reentrant function pointer or vice versa, functions are never
9638 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9640 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9641 SIGSEGV when accessing a NULL register stucture,
9642 * (pic16_printGPointerType): modified to handle UPPER modifier for
9643 function initializers, changed prototype of function to simpler one,
9644 * (pic16_printIvalFuncPtr): check to see if function is already
9645 added in externs list,
9646 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9647 optimized a move from W to SFR with a move to the same register
9649 * device/lib/pic16/debug: NEW directory, contains debug features
9650 which are enabled when linking with libdebug.lib, currently command
9651 line option --gstack enables stack pointer tracing for over/under
9652 flow, corresponding sources are in debug/gstack
9654 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9656 * doc/sdccman.lyx: updated SDCC version,
9657 * (PIC16 port): update list of command line options,
9658 * src/pic16/device.h (structure pic16_options_t): added field gstack
9659 to enable stack overflow tracing on push/pops,
9660 * src/pic16/device.c (statistics structure): added statistics
9662 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9663 pic16_dump_int_registers): increase statistics counters for each
9664 * variable which is encountered
9665 * (pic16_dump_usection): emit each .udata variable to its own udata
9667 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9668 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9669 parameters via stack, otherwise use old scheme,
9670 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9671 assembler output file,
9672 * src/pic16/main.c: added command line options --gstack to enable
9673 push/pop tracing for stack overflow,
9674 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9675 instructions): added size of each instruction,
9676 * (pic16_countInstruction): estimate size of instructions in
9677 the_pFile list, inline assembly blocks are not counted,
9678 * (pic16_FixRegisterBanking): trace previous register usage, when
9679 banksel optimizations is greater than 0, don't emit a redudant
9682 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9684 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9685 * src/pic16/ralloc.c : applied same fix for pic16.
9686 * src/pic/gen.c : tidied it up a little.
9688 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9690 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9691 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9693 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9695 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9697 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9699 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9700 non-reentrant function __modsint in the interrupt function (thus
9701 corrupting math operations during serial I/O)
9702 * device/lib/ser_ir.c: as above, changed buffersize
9703 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9705 * doc/Makefile: added option -t for rsync
9707 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9709 * src/SDCCast.h (struct ast),
9710 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9712 2004-10-20 Borut Razem <borut.razem AT siol.net>
9714 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9717 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9719 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9721 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9722 support functions to replace long sequences of MOVFF's from access
9723 bank registers to stack and vice versa,
9724 * src/pic16/device.h: added new field opt_flags, where optimization
9725 flags can be set to enable certain features,
9726 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9727 * pBlock, (genFunction, genEndFunction): surroung loop for
9728 saving/loading used registers in stack with PC_INFO pCodes,
9729 INF_LREGS. Code in between can then be optimized by pCode optimizer
9730 to support function calls,
9731 * (genDataPointerSet): fixed bug which loaded float fields in
9732 structures with corrupt data,
9733 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9734 in a standard way debug info on stderr. Feature used for developing
9736 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9737 obsolete chunks of code,
9738 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9739 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9740 * pic16/src/pcode.c (pic16_newpCodeInfo,
9741 * (pic16_newpCodeOpLocalRegs),
9742 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9744 * (pic16_pCodeConstString): printing of the initial value of a
9745 symbol as a comment is inhibited since parsing was already done by
9746 copyStr and output is corrupt,
9747 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9749 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9751 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9753 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9755 * as/mcs51/lkarea.c: removed old K&R style,
9756 (lnksect): changed check on boundary error,
9757 (lnksect2): changed check on boundary error,
9758 (lnksect2): extend XSTK to end of page if size = 1
9759 * as/mcs51/lkmain.c: removed old K&R style,
9760 (Areas51): create l_IRAM symbol
9761 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9762 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9763 model-mcs51-stack-auto, added model-mcs51-xstack-auto
9764 * device/lib/_mullong.c: added version to be compiled with xstack
9765 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9766 * device/lib/mcs51/crtxclear.asm: clear pdata as well
9767 * device/lib/mcs51/crtxstack.asm: fixed comment
9768 * src/SDCCglue.c: maxInterrupts defaults to 0,
9769 (emitMaps): added pdata,
9770 (createInterruptVect): (re)moved default,
9771 (glue): added pdata,
9772 (glue): moved __start__xstack to XSTK with default size 1
9773 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9774 and options.float_rent when options.stackAuto is set,
9775 (linkEdit): only write XDATA_NAME if provided on command line
9777 * src/SDCCmem.c: added pdata
9778 * src/port.h: added pdata_name to PORT
9779 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9780 (saveRegisters, unsaveRegisters): removed usage of B,
9781 (genMinus): fixed accumulator clash,
9782 (genJumpTab): added comment, this needs another look
9783 * src/mcs51/gen.c: added check for "B in use" paranoia,
9784 added pushB() and popB()
9785 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9794 * src/z80/main.c: (reset_regparms) made void parameter explicit and
9795 added PSEG (PAG,XDATA) or NULL to port specifier
9796 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9797 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9798 (_mcs51_genInitStartup): removed __start__xstack equ,
9799 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9800 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9801 * src/z80/gen.c (_rleAppend): fixed warnings
9802 * support/regression/tests/zeropad.c: added pdata test
9803 * .version: bumped to 2.4.6
9805 2004-10-17 Borut Razem <borut.razem AT siol.net>
9807 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9808 as a part of nightly build
9810 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9812 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9813 WREG holds the first byte function parameters,
9814 * (aopForSym): take special case for symbols which are in FARSPACE
9815 but in CODESPACE too,
9816 * (assignResultValue): modified to take into account _G.useWreg,
9817 * (genCall): don't use wreg for parameter passing when function is
9818 declared as reentrant, too, added optimization INCF to stack
9819 pointer when stack parameter count is 1,
9820 * (genFunction, genEndFunction): refurnished and fixed to not using
9821 wreg for passing parameters when function has varargs or is
9822 reentrant, fixed bug with symbol name compare for generating
9823 functions in absolute address,
9824 * (pic16_storeForReturn): refurnished,
9825 * (genCmp): began writing a new version of the function, not ready
9826 yet, therefore it is disabled,
9827 * (genAssign): do not read code memory when assigning a function to
9829 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9830 array of characters, not pointer,
9831 * (pic16initialComments): in debug mode emit an .ident directive for
9833 * (_process_pragma): emit a new warning type (internal to pic16)
9834 when setting stack to default length, emit a similar warning when
9835 placing a function at absolute address and address is not word aligned
9836 * (_pic16_parseOptions): added 'return TRUE' statement,
9837 * (_pic16_linkEdit): if compiling a source, then add the source's
9838 file object, first in the list of objects to link,
9840 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9842 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9843 * src/pic/main.c : removed VC warning.
9844 * src/pic/gen.c : changed comment.
9846 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9848 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9849 reference to a deprecated symbol _GPTRREG was causing failure to
9850 link. Thanks G. M. Gallant for the info.
9852 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9854 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9855 comments for Bugs item #954788.
9857 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9859 * src/pic16/device.c (pic16_dump_gsection,
9860 * pic16_groupRegistersInSection): handle symbols declared to be in
9861 access bank differently,
9862 * src/pic16/gen.c (struct _G): added field resDirect,
9863 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9864 send values read from stack directly to result and don't allocate
9866 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9868 * (pic16_sameRegsOfs): NEW,
9869 * (freeAsmop): if _G.resDirect is set then do not mark registers as
9870 free because they were not allocated from temporary pool,
9871 * pic16_popRegFromString): workaround to fix a problem with
9872 allocating variables twice or never,
9873 * (genGenPointerGet): using PRODL instead of FSR0H,
9874 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9876 * (genAssign): take advantage of the _G.resDirect flag,
9877 * (genCast): around line 11844, use mov2f instead of directly
9878 MOVFF'ing between operands to account for literal values,
9879 * src/pic16/genutils.c: some new debug functions for gpsim have been
9881 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9882 float with integer part only,
9883 * src/pic16/main.c (_process_pragma): handle pragma udata access to
9884 place variables in access bank
9885 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9886 updated sources to reflect recent changes in gen.c
9888 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9890 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9891 sources that searched for headers in installation path, now the
9892 device/include/pic16 is used,
9893 * src/pic16/glue.c (pic16glue),
9894 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9895 .line directives if not in debug mode, this suppresses assembler's
9896 warnings for ignored directives
9898 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9900 * src/port.h: made reset_regparms prototype void parameter explicit.
9901 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9902 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9903 * doc/sdccman.lyx: documented warning disabling and how to use
9904 printf_large to make it print floats.
9905 * device/include/stdbool.h: NEW
9906 * device/lib/_atof.c,
9907 * device/lib/_divuint.c,
9908 * device/lib/_divulong.c,
9909 * device/lib/expf.c,
9910 * device/lib/printf_large.c,
9911 * device/lib/sincosf.c,
9912 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9913 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9914 a completely reentrant lib.
9916 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9918 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9919 * device/include/pic16/stdio.h: fixed bug with colon
9921 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9923 * device/include/pic16/stdio.h,
9924 * device/include/pic16/stdlib.h,
9925 * device/include/pic16/math.h: NEW
9926 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9927 declared as _naked to reduce overhead
9928 * device/lib/Makefile.in (target port-specific-objects-pic16):
9929 changed * to *.* so to ignore the CVS directory,
9930 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9931 stacked variables back in stack,
9932 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9935 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9937 * .version: bumped version number to 2.4.5
9938 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9939 * support/Util/SDCCerr.c (messages structure): added entry for
9942 Large cumulative patch for pic16 port and libraries.
9943 * device/include/pic16/sdcc-lib.h,
9944 * device/include/pic16/stdarg.h,
9945 * device/include/asm/pic16/features.h,
9946 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9947 * device/include/pic16/float.h: changes reentrant keyword with
9948 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9949 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9950 updated target build-libraries to include objects from gptr,
9951 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9952 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9953 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9954 all function headings,
9955 * src/SDCCmain.c: added global parameter userIncDirsSet,
9956 * (parseCmdLine): when option -I is encountered add directory to
9958 * src/version.awk: added space between control and long,
9959 * src/pic16/NOTES: added some notes for the port,
9960 * src/pic16/gen.c: added prototype for mov2fp function,
9961 * (fReturnpic16[]): properly named return value registers,
9962 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9963 * (aopForSym): added code to handle symbols with onStack flag set,
9964 symbols onStack are allocated PTRSIZE bytes,
9965 * (aopFreeAsmop): handles special case where asmops are stack objects,
9966 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9967 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9968 added argument lock to trace flaws in allocating temporary registers
9969 when developing port,
9970 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9971 * (pic16_popRegFromString): reenabled allocating a direct register
9973 * (assignResultValue): various beautifications,
9974 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9975 referenced function argument,
9976 * (genIpush): reenabled to allow stacked arguments, handles only
9977 ic->parmPush iCodes,
9978 * (genCall, genPcall): major changes to allow for variable argument
9979 functions, fixed a bug with falsely restoring stack pointer after
9980 returning from call,
9981 * (genFunction): pending code for critical function,
9982 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9983 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9984 * (genNearPointerGet): fixed bug with indirect reading, was always
9986 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9988 * (genAddrOf): rewrote code to take address of a stacked function parameter
9989 * (genCast): fixed casting to generic pointer type,
9990 * src/pic16/gen.h: added AOP_STA,
9991 * (struct asmop): added field stk,
9992 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9993 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9994 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9995 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9996 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9997 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9999 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
10001 * (pic16_port structure): generic pointer size is set to 3,
10002 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
10003 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
10005 * src/pic16/ralloc.c (allocReg): prevent allocating register when
10006 operand is an iTemp,
10008 2004-09-24 Martin Helmling <mh AT octo-soft.de>
10010 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
10011 * debugger/mcs51/simi.c: addapt new syntax of s51
10013 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
10015 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
10016 * src/pic16/pcode.c: commented out some calls to free() in order to
10019 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10022 * src/SDCCicode.c (isiCodeInFunctionCall),
10023 * src/avr/ralloc.c (selectSpil),
10024 * src/pic/ralloc.c (selectSpil),
10025 * src/pic16/ralloc.c (selectSpil),
10026 * src/ds390/ralloc.c (selectSpil),
10027 * src/hc08/ralloc.c (selectSpil),
10028 * src/xa51/ralloc.c (selectSpil),
10029 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
10030 stack in the middle of a function call sequence (fixes bug #1020268)
10031 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
10032 costs associated with the minimum switch case.
10034 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10036 * src/SDCC.lex: fixed bug #1030549
10038 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10040 * src/SDCCcse.h (struct cseDef),
10041 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
10042 over a function call if the CSE is derived from a symbol whose
10043 address has been taken (fixes bug #1029883)
10044 * support/regression/tests/bug-1029883: a new regression test for
10047 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10049 * src/hc08/gen.c (emitinline): fixed bug #1029778
10050 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
10051 to a cast object is no longer a syntax error ("fixes" bug #1030006,
10052 and starts toward RFE #905167)
10054 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
10056 * src/pic16/gen.c (mov2f): New function to move an operand to
10057 another without considering if it is a literal or a register,
10058 * (pic16_sameRegs): don't check if they are both AOP_REG,
10059 * (AccRsh): removed andmask=0 lines,
10060 * (genLeftShift): duplicated to be improved in future versions,
10061 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
10062 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
10063 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
10064 * (pic16initMnemonics): added initialization for POC_INFSNZW,
10065 * (insertBankSwitch): fixed inserting banksel directives algorithm
10066 for instructions that follow a skip instruction, this fixes a report
10067 for broken subtraction code generation,
10068 * src/pic16/ralloc.c (deassignLRs): do not free register if current
10069 iCode is a left op, just in case result and right share the same
10072 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10075 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
10077 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
10078 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
10079 on 2004-09-12; it was buggy
10081 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
10083 * src/SDCCsymt.h: removed RESULT_CHECK
10088 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
10090 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
10092 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
10093 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
10094 configuration values no more rejected by compiler, they are assigned
10095 to configuration registers with a warning message instead,
10096 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
10097 the for-loop so last conf register is emitted too,
10098 * (_pic16_initPaths): link library libsdcc.lib by default,
10099 * (_hasNativeMulFor): modified test for multiplication according to
10100 Raphael Neider's remarks. Integer multiplication is also done with
10102 * device/include/pic16/pic18fregs.h: corrected type error in while
10103 testing and including 18f6720 header file
10105 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
10107 * src/pic16/device.h (pic16_options): removed field use_crt,
10108 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
10109 until an optimization to handle single bits is added,
10110 * (pic16_loadFSR0): moved before genUnpackBits,
10111 * (genAnd): some white lines removed,
10112 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
10113 leave_reset flags in pic16_options when using crt modules,
10115 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
10117 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
10118 for bugs 898889 & 979599. Also used some safer print instructions.
10120 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
10122 * src/pic16/device.h (pic16_options_t): added field use_crt,
10124 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
10125 catch a probable future bug,
10126 * src/pic16/gen.c: aopIdx function commented out,
10127 * (genAssign): commented out old code which used aopIdx,
10128 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
10129 code, added if conditionals to take into account the --use-crt
10130 command line options,
10131 * src/pic16/main.c (pic16_optionsTable): added new command line
10132 options, --use-crt= and --no-crt,
10133 * (_pic16_linkEdit): now the proper crt object is added in the
10134 linker command line except than when --no-crt is specified,
10135 * src/pic16/pcode.c,
10136 * src/pic16/pcode.h: added some structures and functions for a new
10137 optimization scheme to compansate for instruction overhead between
10138 same iCodes, this scheme is currently under development and is not
10139 working in any way,
10140 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
10142 * device/lib/pic16/startup/crt0i.c,
10143 * device/lib/pic16/startup/crt0iz.c: added global char variable
10144 __uflags to force the generation of an idata section
10146 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
10149 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
10150 * doc/sdccman.lyx: updated sdcc version to 2.4.4
10152 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10154 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
10155 Frieder) and clarified the default code optimization mode
10157 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10159 * src/SDCC.lex (doPragma, process_pragma),
10160 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
10161 "opt_code_size", and "opt_code_balanced"
10162 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
10163 regrouped options by category, added support for category headers
10164 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
10165 and "--opt-code-size"
10166 * doc/sdccman.lyx: documented these new options and pragmas
10167 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
10168 preference into account
10170 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10172 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
10173 geniCodePreDec): Fixed bug 904237 by generating a warning
10175 * src/SDCCerr.c: added warning W_SIZEOF_VOID
10177 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
10179 * src/pic/device.c : When no max ram set validate full memory range.
10181 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
10183 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
10185 * device/lib/_gptrget.c,
10186 * device/lib/_gptrput.c: updated comment
10187 * device/lib/calloc.c,
10188 * device/lib/free.c,
10189 * device/lib/malloc.c,
10190 * device/lib/realloc.c: added LGPL, made them reentrant-safe
10191 * src/SDCCcse.c (cseBBlock),
10192 * src/SDCCicode.c (printOperand, geniCodeArray),
10193 * src/SDCCicode.h (struct operand): fixed bug 868103
10194 * support/regression/tests/bug-868103.c: added
10195 * src/SDCCast.c (searchLitOp),
10196 * src/SDCCcse.h (struct cseDef),
10197 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
10198 * src/SDCCicode.h (struct operand),
10199 * src/SDCCsymt.h (struct sym_link),
10200 * src/avr/gen.c (hasInc),
10201 * src/ds390/gen.c (hasInc),
10202 * src/hc08/gen.c (genPlusIncr, hasInc),
10203 * src/mcs51/gen.c (hasInc),
10204 * src/pic16/glue.c (pic16_printIvalChar),
10205 * src/pic16/ralloc.c (regWithIdx),
10206 * src/xa51/gen.c (hasInc) : removed warnings
10207 * src/SDCCast.c (createBlock): added comment ???
10208 * src/hc08/ralloc.c: updated comments
10210 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10212 * doc/sdccman.lyx: updated section on switch statements, added
10213 section about semaphore locking
10214 * doc/Makefile: added option -info for latex2html
10215 * device/lib/_gptrget.c,
10216 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10218 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10220 * src/pic/device.h,
10221 * src/pic/device.c,
10222 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10223 maxram is less than 0x100.
10225 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10227 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10229 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10232 * src/mcs51/main.c,
10233 * src/ds390/main.c,
10237 * src/pic16/main.c,
10240 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10241 a jump table is the best form for a switch statement, including
10242 automatic insertion of missing cases to make the case range
10243 continuous. Developed in collaboration with Frieder Ferlemann.
10245 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10247 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10248 accumulator result if it needs sign extension
10250 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10252 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10254 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10256 * device/lib/gbz80/printf.c,
10257 * device/lib/z80/printf.c: removed define for NULL
10259 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10261 * as/xa51/xa_link.c,
10262 * device/examples/ds390/ow390/ad26.c,
10263 * device/examples/ds390/ow390/cnt1d.c,
10264 * device/examples/ds390/ow390/counter.c,
10265 * device/examples/ds390/ow390/ds2480.h,
10266 * device/examples/ds390/ow390/ds2480ut.c,
10267 * device/examples/ds390/ow390/findtype.c,
10268 * device/examples/ds390/ow390/gethumd.c,
10269 * device/examples/ds390/ow390/owllu.c,
10270 * device/examples/ds390/ow390/ownetu.c,
10271 * device/examples/ds390/ow390/swt12.c,
10272 * device/examples/ds390/ow390/swtloop.c,
10273 * device/examples/ds390/ow390/temp.c,
10274 * device/examples/ds390/ow390/temp10.c,
10275 * device/examples/ds390/ow390/thermo21.c,
10276 * device/examples/ds390/ow390/tinilnk.c,
10277 * device/examples/ds390/ow390/tstfind.c,
10278 * device/examples/serialcomm/windows/serial.cpp,
10279 * device/examples/serialcomm/windows/test_serialcomm.cpp,
10280 * device/include/reg51.h: fixed line endings for cvs
10282 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10284 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10285 packRegsForAccUse, packRegisters): new accumulator register
10287 * support/regression/ports/hc08/support.c (_putchar): suppress
10288 warning of unused variable
10289 * src/SDCCicode.c: added SWAP entry to codeTable
10291 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10293 * device/lib/sprintf.c: forgot to add this file before previous commit
10295 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10297 * src/pic16/gen.c (genPackBits): added operand right in function
10298 parameters, load result directly if p_type is POINTER (that is
10299 called by genNearPointerSet)
10300 * (genUnPackBits): added operand left in function parameters,
10301 * (genNearPointerGet, genNearPointerSet): prevent the loading of
10302 FSR0 if accessing bitfields,
10304 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10306 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10307 _print_format; updated printf, sprintf, vsprintf
10308 * device/include/asm/default/features.h: corrected comment/define
10309 * device/lib/Makefile.in: added sprintf.c
10310 * device/lib/libsdcc.lib: added sprintf module
10311 * device/lib/printf_large.c,
10312 * device/lib/vprintf.c,
10313 * device/lib/sprintf.c: totally refactored printf_large and vprintf
10315 * support/regression/Makefile: changed ALL_PORTS into a usefull default
10316 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10317 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10319 * support/regression/tests/zeropad.c: define idata as data for hc08
10321 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10323 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10324 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10325 labels are referenced at least once (even if a reference is not found)
10326 * src/hc08/gen.c (emitcode): set isComment flag for comments
10327 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10328 loads), rules 6a..6b (optimize jumps to return)
10330 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10332 * device/lib/acosf.c (acosf),
10333 * device/lib/asinf.c (asinf),
10334 * device/lib/atanf.c (atanf),
10335 * device/lib/ceilf.c (ceilf),
10336 * device/lib/cosf.c (cosf),
10337 * device/lib/coshf.c (coshf),
10338 * device/lib/cotf.c (cotf),
10339 * device/lib/fabsf.c (fabsf),
10340 * device/lib/floorf.c (floorf),
10341 * device/lib/log10f.c (log10f),
10342 * device/lib/logf.c (logf),
10343 * device/lib/sinf.c (sinf),
10344 * device/lib/sinhf.c (sinhf),
10345 * device/lib/sqrtf.c (sqrtf),
10346 * device/lib/tanf.c (tanf),
10347 * device/lib/tanhf.c (tanhf),
10348 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10349 replaced all instances of "reentrant" in the library functions
10350 defined in math.h with this macro.
10351 * support/regression/tests/float_trans.c: reenabled test for hc08
10353 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10355 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10356 erroneously deleted
10358 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10360 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10361 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10362 multi-byte volatile operands are used
10363 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10364 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10365 initialization to area GSINIT0 so that it would always precede
10366 any static initializers in GSINIT
10367 * support/regression/tests/zeropad.c: fixed idata define for hc08
10368 * support/regression/tests/bug-927659.c,
10369 * support/regression/tests/float_trans.c: disabled tests for hc08
10370 pending missing library routines
10371 * .version: increased version number to 2.4.4 - hc08 port now passes
10375 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10377 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10378 * Makefile.common.in,
10380 * as/hc08/Makefile.in,
10381 * as/mcs51/Makefile.in,
10382 * as/z80/Makefile.in,
10383 * debugger/mcs51/Makefile.in,
10384 * device/include/Makefile.in,
10385 * device/lib/Makefile.in,
10388 * link/z80/Makefile.in,
10389 * packihx/Makefile.in,
10390 * sim/ucsim/main_in.mk,
10391 * sim/ucsim/avr.src/Makefile.in,
10392 * sim/ucsim/doc/Makefile.in,
10393 * sim/ucsim/gui.src/serio.src/Makefile.in,
10394 * sim/ucsim/hc08.src/Makefile.in,
10395 * sim/ucsim/s51.src/Makefile.in,
10396 * sim/ucsim/xa.src/Makefile.in,
10397 * sim/ucsim/z80.src/Makefile.in,
10399 * support/cpp2/Makefile.in,
10400 * support/librarian/Makefile,
10401 * support/makebin/Makefile: added DESTDIR to the install path proposed
10402 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
10403 * doc/sdccman.lyx: added DESTDIR documentation
10405 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
10407 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
10408 instruction for interrupt handlers, use fast returns when returning
10409 from high priority interrupts
10411 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10413 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
10415 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
10416 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
10417 bugs, ported much of Bernhard's code from mcs51
10418 * src/mcs51/gen.c (genSend),
10419 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
10420 than one when calling a reentrant function
10421 * device/lib/_mullong.c: defined an alternate struct layout for big
10422 endian ports (hc08)
10424 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10426 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
10429 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10431 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
10432 are sane and complete before asking the port its prefered parameter
10433 passing method (fixes bug #1017633)
10434 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
10437 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10439 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10440 problem in bitfields >= 8 bits.
10442 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10444 * src/SDCCsymt.c: undid changes that were not meant to be committed
10446 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10448 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10450 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10452 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10453 copied and wrong bit got inverted
10455 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10457 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10458 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10459 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10460 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10461 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10462 assignments to bitfields at known addresses
10463 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10464 reads from bitfields at known addresses
10465 * src/hc08/ralloc.c (packRegisters),
10466 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10467 genhc08Code): optimize pointer get values used as conditionals
10468 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10471 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10473 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10474 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10475 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10478 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10480 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10482 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10484 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10487 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10489 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10491 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10493 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10496 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10498 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10500 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10502 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10503 cases use more compact code.
10505 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10507 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10509 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10511 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10513 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10516 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10517 parameter of changePointer() from symbol* to sym_link*
10518 * src/SDCCast.c (decorateType): call changePointer() for CAST op
10519 * src/SDCCsymt.c (compareType): void* type is castable to other
10520 pointers, but not necesarily an exact match.
10521 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10522 is no longer blindly treated as an exact match.
10523 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10525 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10527 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10529 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10533 * src/pic/ralloc.h,
10534 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10536 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10538 * src/pic/device.c,
10539 * src/pic/device.h,
10540 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10542 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10544 * src/mcs51/gen.c (emitcode): fixed bug #992819
10546 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10548 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10549 there's no need to make it worse
10551 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10553 * src/mcs51/ralloc.c (deassignLR),
10554 * src/ds390/ralloc.c (deassignLR),
10555 * src/hc08/ralloc.c (deassignLR),
10556 * src/z80/ralloc.c (deassignLR),
10557 * src/pic/ralloc.c (deassignLR),
10558 * src/pic16/ralloc.c (deassignLR),
10559 * src/avr/ralloc.c (deassignLR),
10560 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10561 rlivePoint): fixed another part of bug #971834
10563 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10565 * src/z80/main.c: enabled "critical" keyword
10566 * src/z80/mappings.i,
10567 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10568 functions (fixes bug #979646)
10569 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10571 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10573 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10576 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10578 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10579 doesn't disable too much optimizations
10581 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10583 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10585 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10587 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10589 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10591 * src/pic/gen.c tidied up tabs
10592 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10593 * src/pic/main.c tidied up tabs
10594 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10595 * src/pic/pcoderegs.c tidied up tabs
10596 * src/pic/ralloc.c tidied up tabs
10598 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10600 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10601 to S_FIXED for pic16 port and when symbol is not in level 0,
10602 allocate for S_REGISTER storage class and pic16 port, too,
10603 * src/pic16/device.h: prototype for checkSym,
10604 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10605 * (pic16_assignConfigWordValue): test the value and the mask to
10606 validate that the value is suitable for the configuration word,
10607 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10608 collect extern declared symbols, don't emit symbol twice, check
10609 first if symbol is in publics set first,
10610 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10611 * added command line '--fstack' which enables an experimental
10612 feature for stack access, too buggy to be used yet...
10613 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10614 * (pic16_allocDirReg): when register has storage class S_REGISTER
10615 allocate in pic16_dynAccessRegs,
10616 * device/include/pic16/pic18f????.h: modified configuration word
10617 naming convention, words started as CONFIG0H but should be CONFIG1H
10619 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10621 * device/include/mcs51reg.h: fixed bug 970993
10623 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10625 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10626 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10627 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10628 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10629 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10630 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10631 error/warning numbers,
10632 added function setWarningDisabled()
10633 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10634 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10635 _memcmp.c _memmove.c calloc.c realloc.c free.c
10636 * support/regression/tests/malloc.c: added tests for new functionality
10637 * support/regression/tests/zeropad.c: added tests for truncated initializers
10638 and initialized char arrays starting with '\x0'
10639 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10641 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10643 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10645 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10647 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10648 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10649 peephole 177.e. Thanks to anonymous
10651 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10653 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10654 function isn't used in the source but referenced as a
10655 variable initializer then declare it as extern in .asm file
10657 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10659 * .version: increased version number to 2.4.3
10661 Adding version extension according to ChangeLog CVS revision
10662 * src/Makefile.in (target all): added dependency 'version.h'
10663 * (rule version.h): added rule to create version.h from ChangeLog,
10664 * (rule dep): added dependency version.h,
10665 * src/version.awk: AWK script to create version.h
10666 * src/SDCCdwarf2.c (dwWriteModule),
10667 * src/SDCCglue.c (initialComments),
10668 * src/SDCCmain.c (printVersionInfo): modified to write after
10669 version string the version extension number,
10670 * src/SDCCutil.c: included "version.h"
10671 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10673 * src/SDCCutil.h: added prototype for getBuildNumber
10675 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10676 includeDirsSet, too,
10677 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10678 const char [] is found in function prototype...
10680 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10681 moving to WREG with source is already in WREG,
10682 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10683 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10684 * (aopForSym): stack'ed symbols are partially supported, added
10685 if-clause to support symbols in FARSPACE,
10686 * (sameRegs): added test for AOP_ACC to see if registers are same,
10687 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10688 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10689 * (pic16_popRegFromString): will not allocate a new register if it
10690 doesn't find one by name, bug may have introduced...
10691 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10692 * (genIpush): revived to use pic16 port's stack,
10693 * (genAddrOf): added incomplete case for stack'ed operand,
10694 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10695 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10696 can handle multibyte operands,
10697 * src/pic16/glue.c (pic16_printIval*): some debug info added,
10698 * (pic16initialComments): added message for MPLAB compatibility
10700 * src/pic16/main.h: prototype for pic16_mplab_comp,
10701 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10702 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10703 * (_pic16_linkEdit): NEW, handles link stage, transferred here
10704 because of increased complexity of procedure,
10705 * (_process_pragma): stack pragma changed to format 'stack pos len',
10706 emit symbol '_stack_end' to conform with gplink,
10707 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10708 to search for register,
10709 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10711 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10712 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10713 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10714 case for PO_GPR_REGISTER,
10715 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10716 dies, the new era is ahead !...
10717 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10718 pic16_dynInternalRegs,
10719 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10720 * (pic16_allocDirReg): minor optimizations and bug fixes,
10721 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10723 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10724 load stack and frame pointer with address of 'stack_end' symbol
10726 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10728 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10729 without source code but only variable initializers
10731 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10733 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10734 external are not declared as extern to reduce overhead while linking
10736 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10738 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10740 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10742 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10743 Yee Keat for the patch
10744 * src/SDCCast.c (decorateType): fixed bug #979599
10745 * src/ds390/gen.h: removed local fReturnSizeDS390
10746 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10747 * src/ds390/gen.c (genAnd, genOr, genXor),
10748 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10750 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10752 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10753 add relFilesSet to $3, manipulate $2 to handle linking of object
10754 files without source files in command line,
10755 * device/include/pic16 (all headers): added ID location macros,
10756 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10757 entries for ID location bytes,
10758 * (pic16_assignIdByteValue): NEW,
10759 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10760 added field dumpcalltree to pic16_options_t,
10761 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10762 is used instead of pic16_Gstack_base_addr, check if (ifx) before
10763 emitting rFalseIfx label after check_carry label,
10764 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10765 pic16_emitDIRegs), NEW
10766 * (pic16glue): dump .calltree file when option --calltree found,
10767 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10768 * (_pic16_genAssemblerPreamble): emit ID locations after
10769 configuration registers,
10770 * (pic16_linkCmd): modifications of the link command,
10771 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10772 * (pic16_pCodeInitRegisters): don't init stack registers,
10773 * (pic16_findPrevInstruction): fixed bug,
10774 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10775 bug with immediate registers,
10776 * (buildCallTree): traces stack push and pop,
10777 * (pct2): dump also stack usage for each function,
10778 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10779 * (pic16_allocDirReg): various modifications,
10780 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10783 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10785 * src/pic16/pcode.c: removed buggy double colon
10787 2004-07-01 Borut Razem <borut.razem AT siol.net>
10789 * support/scripts/sdcc.nsi: added include/pic16 to setup
10791 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10793 * device/lib/Makefile.in: fixed bug in target objects-pic16,
10794 * device/lib/pic16/Makefile: prefixed with dash (-) command under
10796 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10797 specific command line arguments. Also added sample lkr script
10798 for placing a variable at a specific memory bank.
10799 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10800 at a specific memory bank,
10801 * (pic16_dump_isection): fixed bug which caused string literals to
10802 be omitted when dumping idata section,
10803 * (pic16_groupRegistersInSection): added code to handle registers
10804 in specific memory banks,
10805 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10806 public, all references are renamed too,
10807 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10809 * (pic16_storeForReturn): added case to handle when dest is WREG,
10810 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10811 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10812 pic16_rel_udata, check to see if that register is marked as being
10813 a member of a specific memory bank,
10814 * (pic16_printIvalCharPtr): added code to add string literals either
10815 to code or the idata sections,
10816 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10817 also accept the 'udata' pragma,
10818 * src/pic16/main.h: new structure types sectName and sectSym
10819 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10820 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10821 * (pic16_findPrevInstruction): fixed, it returned nothing,
10822 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10823 instruction combinations,
10824 * (pic16_FixRegisterBanking): heavily reorganised,
10825 * (pic16_AnalyzeBanking): if generating banksel directives is
10826 disabled, then don't call FixRegisterBanking at all,
10827 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10828 completely removed,
10829 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10831 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10833 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10834 Phuah Yee Keat <yk.phuah AT nestac.com>
10836 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10838 * src/pic16/glue.c (pic16createInterruptVect): function now emits
10839 correctly the IVT even if it is relocated to some other location
10841 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10843 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10844 * device/include/pic16/pic18f2220.h: NEW,
10845 * device/lib/pic16/libdev/pic18f2220.c: NEW,
10846 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10847 * src/pic16/device.c (struct Pics16): added info for 18f2220,
10848 * src/pic16/device.h (struct pic16_options): added ivt_loc and
10849 nodefaultlibs, ivt_loc is the location of the interrupt vector
10850 table, and nodefaultlibs signs that default libraries should not be
10851 linked in link stage,
10852 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10853 according to --ivt-loc argument,
10854 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10855 when pragma stack is found,
10857 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10859 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10860 256 (range check), 257 (do while), 258.a-f (bit banging
10861 f.e. on 3-wire SPI bus)
10863 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10865 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10866 variables used exclusively within a loop
10868 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10870 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10872 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10874 * src/SDCClrange.c (computeClash): fixed bug #971834
10876 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10878 * src/mcs51/gen.c (genCmp): fixed bug #975903
10879 * src/hc08/gen.c (operandsEqu),
10880 * src/ds390/gen.c (operandsEqu),
10881 * src/z80/gen.c (operandsEqu),
10882 * src/pic/gen.c (operandsEqu),
10883 * src/pic16/gen.c (operandsEqu),
10884 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10885 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10887 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10889 * src/SDCCcse.c (cseBBlock): fixed bug #966963
10891 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10893 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10894 default case in switch statement,
10895 * glue.c (pic16_initPointer): expr is initialised via decoarteType
10896 to eliminate problem with initialisation of pointers, but problem
10898 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10899 * (emitStaticSegment): removed various lines emitting debug info,
10900 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10901 added processor registers for utilizing EEPROM,
10902 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10903 configurable and set 8
10905 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10907 * .version: increased version number to 2.4.2,
10909 Cumulative patch for pic16 port
10910 * src/pic16/device.c: changed scheme to dump initial values for
10911 variables in idata segment, all print_idata* functions were removed,
10912 now the pic16_printIval* will be called,
10913 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10914 * _pic16_printPointerType, pic16_printPointerType,
10915 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10916 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10917 NEW, similar to the respective functions in SDCCglue.c,
10918 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10919 way, emitting hex bytes,
10920 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10922 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10924 * src/avr/ralloc.c (serialRegAssign),
10925 * src/xa51/ralloc.c (serialRegAssign),
10926 * src/pic/ralloc.c (serialRegAssign),
10927 * src/pic16/ralloc.c (serialRegAssign),
10928 * src/hc08/ralloc.c (serialRegAssign),
10929 * src/z80/ralloc.c (serialRegAssign),
10930 * src/ds390/ralloc.c (serialRegAssign),
10931 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10933 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10935 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10936 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10938 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10940 Cumulative patch for pic16 port:
10941 * src/pic16/device.h (typedef PIC16_device) modified fields for
10942 defining microcontrollers,
10943 * src/pic16/device.c: added new info for all devices in Pics16 array,
10944 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10945 to be optimised out by the pCode optimiser,
10946 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10947 specially, bug reported by G.M. Gallant,
10948 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10949 as force'd so that cannot be optimised out by pCode optimiser,
10950 * src/pic16/pcode.c,
10951 * src/pic16/pcodepeeph.c,
10952 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10953 they are disabled by default, but can be enabled explicit with
10954 command argument --denable-peeps, for testing,
10955 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10956 --pomit-ivt in COMPILE_FLAGS
10958 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10960 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10961 compilation on MSVC
10963 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10965 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10967 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10969 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10970 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10972 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10974 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10975 would only assign 0x300001 register.
10977 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10979 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10980 in COMPILE_FLAGS. Thanks to G. Gallant for report.
10982 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10984 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10986 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10987 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10988 added peephole 254 (left shift), 255 (jump table)
10990 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10992 * device/lib/Makefile.in: removed comment line with model-pic16,
10993 * (target port-specific-objects-pic16): the libraries and objects
10994 are copied to the build directory form the device/lib/pic16/bin
10997 Cumulative patch concerning pic16 port:
10998 * library directory has been re-organized,
10999 * added support for PIC18F1220,
11000 * added headers and library sources for chips 18f1220,18f6520,
11001 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
11003 * configuration registers setting has changed, now each supported
11004 device has a complete description of the registers it uses,
11005 * all initialisations are moved to idata sections, these section
11006 can be absolute or relocatable,
11007 * fixed initialisation of codespace variables,
11008 * fixed warning about PCLATU and gpsim,
11009 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
11010 * (genAssign): use table reads when assigning from variables in codespace,
11011 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
11012 char/int variables placed in codespace,
11013 * (pic16_emitConfigRegs): NEW, emits a list with configuration
11014 registers set in .asm file, no need for --pomit-config-words anymore,
11015 * (pic16glue): some 8051 legacy segments are commented out
11016 (to be removed completely),
11017 * added support for alternative assembler and linker with --asm=
11018 and --link= command line arguments,
11019 * peepholes are disabled automatically in the port, no need to
11020 specify on command line,
11021 * port supports natively char/int/long multiplication, but converts
11022 all divisions to support functions,
11023 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
11024 to the file set in variable $2,
11025 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
11026 strings in ASCII format and not in hex,
11027 * ralloc.c (serialRegAssign): added a triplet of conditional calls
11028 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
11029 allocate proper register if iCodes aren't temporary,
11031 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
11033 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
11035 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
11037 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
11040 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11042 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
11043 computed address is reused
11044 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
11045 multi-byte bitfields
11047 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11049 * src/z80/gen.c: (genArrayInit): must check for pointers too
11051 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
11053 * support/regression/tests/zeropad.c: never meant to commit the
11054 nestedstruct test: removed, added check for GCC version
11056 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
11058 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
11059 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
11060 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
11061 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
11062 bugs 928906 and 954082 half-empty initializers
11064 * src/SDCCsymt.c (getAllocSize): added for above fix
11065 * src/z80/gen.c (genArrayInit): fixed bug 741044
11066 * support/regression/tests/zeropad.c: added tests
11068 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
11070 * src/pic16/device.c (pic16_dump_section): corrected bug which
11071 caused some symbols of the libraries to be misplaced
11073 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11075 * src/pic16/glue.c,
11076 * src/pic16/ralloc.h,
11077 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
11078 to fix conflict with pic port
11080 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
11082 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
11083 externs configuration variables,
11084 * src/pic16/ralloc.h,
11085 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
11086 prototype in header, commented out some debug messages
11088 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
11090 * src/pic16/glue.c,
11091 * src/pic16/main.c,
11092 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
11093 for gpasm COFF object generation. Thanks to D. Hawkins for
11096 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11098 * src/ds390/main.c,
11099 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
11100 Brock for spotting this)
11101 * src/ds390/gen.c (genEndFunction),
11102 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
11103 interrupt handler and critical. Disable push/pop optimizations when
11104 peephole optimizations disabled.
11106 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11108 Updated pic16 library sources and headers.
11109 * device/lib/pic16/pic18f*/ ,
11110 * device/include/pic16/*.h: modified to handle structured SFR
11113 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
11115 * src/port.h (PORT structure): added hook initPaths, now each
11116 port can declare its own default search paths,
11117 which can been seen with the --print-search-dirs option,
11118 see pic16 port for example,
11119 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
11120 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
11121 * (doPrintSearchDirs): NEW, replaces in a central manner the
11122 printing of search dirs which was split in set*Paths functions,
11123 * (main): added call to port->initPaths and doPrintSearchDirs,
11125 * src/ds390/main.c,
11128 * src/izt/tlcs900h.c,
11129 * src/mcs51/main.c,
11131 * src/pic16/main.c: modified port structures to reflect addition of
11134 * src/pic16/device.c (regCompare): registers are finally sorted by name,
11135 * (pic16_dump_section): for registers in same address reserve memory once,
11136 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
11138 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
11139 result is greater in size than right or left,
11140 * (pic16_genUMult8X8_8): there are some cases where the result can
11141 be 16 bits size, so handle these,
11142 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
11143 * (pic16_outBitC): modified to emit pcodes,
11144 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
11146 * (genDivOneByte): implemented algorithm to divide 8-bits,
11147 * (genCmp): uncommented goto, but issues still exist,
11148 * (genAnd): fixed a bug with variables >8bits,
11149 * (genPackBits): optimization added that uses BCF/BSF to change a
11151 * (genAssign): fixed bug when assigning floating point literals,
11152 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
11153 __sdcc_gsinit_startup label,
11154 * src/pic16/main.c (_pic16_init): removed search directory
11156 * (_pic16_initPaths): NEW, used to initialise search directories,
11157 * (_hasNativeMulFor): support functions for all except char/int
11158 multiplication, and char division,
11159 * (PIC16_port struct): modified entry for native mul support,
11160 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
11162 * (buildCallTree): call to register_usage is ifdef'ed out,
11164 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11166 * device/include/string.h: applied Stas Sergeev's patch to make this
11167 header file compatible with the preprocessor -Wundef option
11168 * src/SDCCmain.c (main): abort compilation if preprocessor reports
11169 failure (fixes bug #941458)
11171 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11173 * src/SDCCopt.c (killDeadCode): fixed bug #907733
11174 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
11175 that the variable, not the function, should be static
11176 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
11177 to be consistent with non-literal case
11179 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11181 * src/SDCCast.c (isConformingBody): fixed bug #949967
11182 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
11183 convilong): fixed bug #952086
11185 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11187 * src/SDCCmem.c (allocVariables): fixed bug #955321
11189 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11191 * src/hc08/main.c (_hc08_genAssemblerEnd),
11192 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
11193 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
11194 completely eliminated the use of a temporary file
11195 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
11196 when more than one file linked
11197 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
11199 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11201 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
11202 which fixes bug #543481
11203 * support/regression/tests/bug-751703.c: fixed comments left from a
11204 cut and paste error
11205 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11206 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11207 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11209 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11210 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11211 are now changed to underscores in moduleName
11213 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11215 * as/mcs51/lkmem.c: better fix for bug #954173
11217 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11218 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11220 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11221 * device/include/c8051f000.h,
11222 * device/include/c8051f120.h,
11223 * device/include/c8051f300.h,
11224 * device/include/c8051f310.h,
11225 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11226 PWM16) and detab'ed
11228 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11230 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11231 and mailing lists, doc'ed --no-peep-comments, removed reference
11232 to knoppix (newest version has no LyX/LaTeX), other minor changes
11233 * src/SDCCglue.c (glue): save 2 bytes stack space with
11234 option --main-return. The ljmp could probably be avoided too
11236 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11238 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11240 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11242 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11243 * src/SDCCopt.c (isLocalWithoutDef),
11244 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11245 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11246 (credit to Maarten Brock for patch #949363, on which this is based)
11247 * support/regression/tests/bug-751703.c: some test cases of extern used
11248 within inner scopes.
11250 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11252 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11254 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11256 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11257 dwWriteLabel): fix to create valid debugger symbols even when
11258 the module name has non-alphanumeric symbols in it
11259 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11260 when a variable's allocation has been optimized away
11263 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11265 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11267 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11268 * src/mcs51/main.c,
11269 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11270 * src/ds390/main.c,
11271 * src/z80/gen.c (z80_emitDebuggerSymbol),
11273 * src/pic/gen.c (pic14_emitDebuggerSymbol),
11275 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11276 * src/pic16/main.c,
11277 * src/avr/gen.c (avr_emitDebuggerSymbol),
11279 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11281 * src/SDCCdebug.c (emitDebuggerSymbol),
11283 * src/port.h: added a debugger struct to the port struct. Added a
11284 callback for defining debugger symbols
11286 * src/SDCCast.c (createLabel),
11287 * src/SDCC.y (labeled_statement): mark all compiler generated labels
11290 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11291 iCode back to the ast for the function
11293 * src/hc08/ralloc.c (hc08_assignRegisters),
11294 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11295 unneeded fields from the regs struct.
11296 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11297 pushReg() & pullReg() functions instead of emitcode()
11299 * src/hc08/gen.c (genLabel, genhc08Code),
11300 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11302 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11305 * src/hc08/gen.c (genEndFunction, genhc08Code),
11307 * src/mcs51/gen.c (genEndFunction, gen51Code),
11309 * src/ds390/gen.c (genEndFunction, gen390Code),
11311 * src/z80/gen.c (genEndFunction, genZ80Code),
11314 * src/pic/gen.c (genEndFunction, genpic14Code),
11316 * src/pic16/gen.c (genEndFunction, genpic16Code),
11318 * src/avr/gen.c (genEndFunction, genAVRCode),
11320 * src/xa51/gen.c (genEndFunction, genXA51Code),
11322 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11323 specific code to cdbFile.c and out of the backend code generators
11325 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11326 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11327 starting address is now 0
11330 * as/hc08/m08pst.c,
11331 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11332 assembler directive for DWARF support
11333 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11337 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11339 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11341 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11342 and inappropriate peephole optimization in jump tables
11344 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11346 * as/hc08/m08pst.c,
11347 * src/SDCCglue.c: sdccopt works for the hc08 port now
11349 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11351 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11353 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11355 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11357 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11359 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11363 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11364 comments from the peephole optimizer replacement rules
11365 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11367 * src/SDCCcse.c (updateSpillLocation),
11368 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11370 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11371 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11372 objects far pointers
11374 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11376 * src/SDCCsymt.h: a missing part of my last change
11377 * src/pic/ralloc.c (regTypeNum),
11378 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11380 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11383 * src/SDCCicode.c (aggrToPtrDclType),
11384 * src/SDCCptropt.h,
11385 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
11386 ptrPseudoSymConvert),
11387 * src/pic/ralloc.c (regTypeNum),
11388 * src/pic16/ralloc.c (regTypeNum),
11389 * src/hc08/ralloc.c (regTypeNum),
11390 * src/ds390/ralloc.c (regTypeNum),
11391 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
11392 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
11394 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11396 * link/z80/lkmain.c (afile),
11397 * as/hc08/lkmain.c (afile),
11398 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11399 prevent a pointer problem when a filename has no directory and
11400 no extension specified.
11402 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11404 * link/z80/lkmain.c (afile): allow periods in directory names
11405 * link/z80/lkmain.c (afile),
11406 * as/mcs51/lkmain.c (afile),
11407 * as/hc08/lkmain.c (afile): allow linker script file to have an
11408 extension other than ".lnk"
11409 * link/z80/lklex.c (getfid),
11410 * link/z80/lkmain.c (parse),
11411 * as/mcs51/lklex.c (getfid),
11412 * as/mcs51/lkmain.c (parse),
11413 * as/hc08/lklex.c (getfid),
11414 * as/hc08/lkmain.c (parse): Support comments in the linker script
11415 file on lines by themselves and after filenames
11417 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11419 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
11421 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11423 * src/z80/peeph-z80.def: removed some peephole rules that don't
11424 work with multibyte arithmetic (fixed bug #937126)
11425 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
11426 to registers and not global variables
11427 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
11428 geniCodePreInc, geniCodePostDec, geniCodePreDec,
11429 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
11430 checking for assignments not internally generated (fixed bug #931895)
11431 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
11432 structure member (fixed bug #930072)
11434 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11436 * src/SDCCmain.c (linkEdit),
11437 * src/hc08/main.c (_hc08_parseOptions),
11438 * as/hc08/Makefile.in,
11439 * as/hc08/aslink.h,
11441 * as/hc08/m08pst.c,
11442 * as/hc08/lkrloc.c (relr, rele),
11443 * as/hc08/lkarea.c (lnkarea)
11444 * as/hc08/lkmain.c (afile, parse),
11445 * as/hc08/lkelf.c: support for ELF output
11446 * as/hc08/lks19.c (s19),
11447 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11449 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11451 * as/mcs51/lkihx.c: Fixed bug #899105.
11453 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11455 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11456 .dsp files from Unix to DOS.
11458 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11460 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11461 function pointers; we have been compliant for several months now.
11462 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11463 change that was accidently commented out
11464 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11465 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11468 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11470 * src/hc08/gen.c: output of all of the internal debugging information
11471 is now controlled by the D() macro; it is disabled by default
11473 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11475 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11476 harder to keep the same registers during a CAST iCode
11477 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11478 long via int can be done in a single cast, if the signedness is
11480 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11481 putchar() in tinibios.c in ds390's library
11483 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11485 * src/SDCCast.c (decorateType): fixed bug #898889,
11486 cast result of a literal complement too
11487 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11488 fixed check for bitfields
11490 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11492 * src/SDCCicode.c (geniCodeLogic): made it static,
11493 (geniCodeLogicAndOr): added in order to fix bug #905492,
11494 (ast2iCode): fixed bug #905492
11495 * support/regression/tests/bug-905492.c: added
11496 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11497 (processParms): fixed bug #927659: don't copy parms, this will clear
11499 * support/regression/tests/bug-927659.c: added
11501 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11503 * src/SDCCast.c (addCast): don't cast float to char
11504 * device/lib/libsdcc.lib: added _memmove
11506 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11508 * device/lib/large/Makefile: fixed parallel execution by
11509 replacing `make` by `$(MAKE)`
11511 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11513 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11514 offsets (fixes bug #923936)
11516 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11518 * device/lib/small/Makefile: fixed parallel execution by
11519 replacing `make` by `$(MAKE)`
11521 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11523 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11525 2004-03-23 Scott Dattalo <scott AT dattalo.com>
11527 * src/pic/gen.c (genCpl): multi-byte complements were not working.
11528 * src/regression/Makefile: Regression test was not running.
11530 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11532 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11533 complement if possible
11534 * src/SDCCval.c (valComplement),
11535 * src/SDCCicode.c (operandOperation): fixed complement of literal
11536 * support/regression/tests/onebyte.c (testComplement): added
11538 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11540 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11541 return an optimized tree; actually replace actParm with the new tree
11542 * src/SDCCast.h: added some parantheses to remove side effects
11543 * support/regression/tests/bug-920866.c
11545 2004-03-21 Scott Dattalo <scott AT dattalo.com>
11546 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11547 Bit operands were not being handled properly in the pic14 port.
11548 (now src/regression/add.c passes again).
11550 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11552 * src/SDCC.y (labeled_statement): case and default no longer require
11553 a following statement (RFE #893037)
11555 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11557 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11558 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11559 disabled (fixes bug #916294)
11560 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11561 "mov a,acc"; patch provided by Lenny Story
11562 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11564 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11566 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11568 * src/ds390/gen.c (genFunction, genEndFunction),
11569 * src/ds390/ralloc.c (ds390_assignRegisters),
11570 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11571 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11572 pushed if there are parameters passed on the stack. Also, a cleaner
11573 way to decide if r0/r1 should be pushed/popped. (Together they fix
11576 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11579 * device/lib/mcs51/crtpagesfr.asm,
11580 * device/lib/mcs51/crtxinit.asm,
11581 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11582 to avoid confusion with Si Lab's SFRPAGE register.
11584 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11586 * src/SDCCglue.c (emitMaps): allow public sfr variables
11587 * src/SDCCglue.c (initialComments): include compiler build date
11588 with compiler version and put the timestamp of the generated
11589 assembly file on a serperate line to be less confusing.
11590 * src/port.h: added genInitStartup hook
11592 * src/ds390/main.c,
11595 * src/pic16/main.c,
11597 * src/z80/main.c: genInitStartup initialize as NULL (default to
11598 historical behaviour)
11599 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11600 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11601 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11602 library instead of hard coding it into the compiler.
11603 * support/regression/ports/mcs51-stack-auto/spec.mk,
11604 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11605 * device/lib/mcs51/Makefile,
11606 * device/lib/small/Makefile,
11607 * device/lib/large/Makefile,
11608 * device/lib/mcs51/crtpagesfr.asm,
11609 * device/lib/mcs51/crtstart.asm,
11610 * device/lib/mcs51/crtxclear.asm,
11611 * device/lib/mcs51/crtxinit.asm,
11612 * device/lib/mcs51/crtclear.asm,
11613 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11614 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11615 and into user configurable files.
11616 * device/lib/clean.mk: clean mcs51 directory too
11617 * support/regression/tests/longlit.c: added static to T1 declaration
11618 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11619 accesses in the initialization code
11621 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11623 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11624 OSCTRIMVAL as noted in bug #916008
11626 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11628 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11629 in loops with multiple exits (reported as incorrect registers
11630 used by Martin Helmling in Sdcc-user list)
11632 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11634 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11635 made ds390 register extensions look less like error messages
11637 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11639 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11640 reported by Adam Wozniak in Sdcc-user list
11642 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11644 * src/SDCCast.c (decorateType): fixed with bug and promotion in
11645 arithmetic optimizations, added debug output
11647 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11649 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11650 * sdcc.spec: updated and split sdcc into 3 rpms
11651 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11652 needed for literals of LEFT_OP and '+'
11653 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11654 introduced RESULT_TYPE_NOPROM
11655 (geniCodeMultiply): fixed logic for decision if mul is optimized to
11657 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11658 limited promotion to int only for '*'
11659 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11661 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11663 * src/pic16/gen.c (genSkip),
11664 (genc16bit2lit), (gencjneshort): commented out
11665 (is_LitOp): new helper function, checks operand type
11666 (genCmpEq): rewritten
11668 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11670 * support/regression/tests/bug-908454.c: added
11672 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11674 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11675 * src/SDCCicode.c (usualBinaryConversions): op needs int type
11676 (geniCodeCast): cosmetic, don't preserve bit storage class
11677 (geniCodeLeftShift): added promotion
11678 (geniCodeLogic): fixed regression
11679 * src/SDCCsymt.c (computeTypeOr): accept bits too
11680 (compareType): 2nd part of fix for bug #908454, needed for bitfields
11682 2004-03-07 Borut Razem <borut.razem AT siol.net>
11684 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11686 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11688 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11689 version of pic16_genPackRegisters which does not check if ic is a
11691 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11692 function cause string1.c regression test fails
11694 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11696 * sim/ucsim/configure.in,
11697 * sim/ucsim/configure,
11698 * sim/ucsim/doc/Makefile.in: use docdir
11699 * src/SDCC.y: fixed sbit atrributes
11700 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11701 * src/SDCCast.c (decorateType): |^& need special promotion handling
11703 * src/SDCCsymt.h: moved definition of RESULT_TYPE
11704 * src/SDCCsymt.h (computeType),
11705 * src/SDCCicode.c: computeType() needs op
11706 * src/SDCCsymt.c (checkTypeSanity),
11707 * doc/sddman.lyx: "plain" bitfields are unsigned
11708 * src/SDCCsymt.c (computeTypeOr): added
11709 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11711 * src/SDCCval.c (val*): computeType() needs op
11712 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11713 * support/regression/tests/onebyte.c: added tests for |^&
11715 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11717 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11718 for writing icode into asm output.
11720 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11722 * src/pic16/device.c: added some debug lines enabled
11723 with macro DEBUG_CHECK,
11724 * src/pic16/genarith.c: more debug in genPlus,
11725 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11726 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11727 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11728 * (aopForSym): onStack symbols are re-placed in data memspace,
11729 and onStack flag is cleared,
11730 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11731 copy temporary pcodeop,
11732 * (genPcall): added warning for not updating PCLATU,
11733 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11734 always true for pic16 port,
11735 * (genMultOneWord): NEW, supports integer multiplication,
11736 * (genMult): modified to call genMultOneWord,
11737 * (ifxForOp): added warning when return NULL,
11738 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11739 flag is set before call to operandFromSymbol for implicit
11741 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11742 options.intlong_rent are set by default,
11743 * (_hasNativeMulFor): modified to allow port generation of integer
11745 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11746 set regtype to REG_SFR for all registers, restricting seting the
11747 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11749 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11751 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11752 more than 500 times in the regression tests
11754 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11756 * support/Util/SDCCerr.h,
11757 * support/Util/SDCCerr.c,
11758 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11760 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11761 for symbol conflicts.
11762 * support/valdiags/tests/enum.c,
11763 * support/valdiags/tests/tentdecl.c,
11764 * support/valdiags/tests/struct.c: expect possible error messages
11765 referring to original symbol definitions.
11766 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11768 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11770 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11772 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11774 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11776 * src/pic16/ralloc.c (newReg): fixed bug #908929
11778 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11780 * src/ds390/gen.c: added missing #include "main.h"
11782 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11784 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11785 checking if symbol is already in set,
11786 * src/pic16/device.h: prototype for checkAddSym,
11787 * src/pic16/gen.c: (_G): added entry interruptvector,
11788 * (assignResultValue): removed some commented out lines,
11789 * (genFunction): check for ISR via sym->type, absolute section for
11790 interrupt code is created via a new pBlock, the goto instruction is
11791 placed now correctly at the interrupt vector position, changed all
11792 references from ivec to _G.interruptvector,
11793 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11794 is the interrupt is a high priority one, same for return from ISR,
11795 * src/pic16/glue.c: changed all calls of addSetHead for publics and
11796 externs to calls of checkAddSym,
11797 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11798 pic16_pcode_verbose flag is set,
11799 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11800 * src/pic16/pcoderegs.c: message about how many registers are saved
11801 will only be emitted if pic16_pcode_verbose flag is set,
11803 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11805 * src/ds390/ralloc.h,
11806 * src/ds390/ralloc.c (ds390_regWithIdx),
11807 * src/ds390/gen.c (emitcode),
11808 * src/ds390/main.h,
11809 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11810 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11811 ds390operandCompare, getRegsRead, getRegsWritten,
11812 initializeAsmLineNode): customized instruction size calculation for
11813 ds390, started basis for some register optimizations
11814 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11815 corresponding assembly output
11816 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11817 missing push/pop of r0/r1. Optimized push/pops
11819 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11821 * src/mcs51/main.c (instructionSize): fixed ACALL size
11822 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11824 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11826 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11827 the sorting of rlist with NULL elements
11828 * (print_idataType, print_idata): NEW to create idata sections
11829 * src/pic16/device.h: idataSymSet new variable
11830 * src/pic16/gen.c (genFunction): fixed some bugs in string
11831 comparing, improved the absolute section creation for ISRs,
11832 added FSR0L/FSR0H in registers that are saved in an ISR,
11833 * (genInline): fixed the processing of inline snippets,
11834 now they undergo no process by the peephole optimizer
11835 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11836 are placed in idataSymSet,
11837 * (pic16emitStaticSeg): extern symbols are added in externs,
11838 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11839 switching when aboslute variables are placed in access bank memory
11840 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11841 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11842 commented out with #if,
11843 * (pic16_packRegisters): reintroduce the check for CAST because some
11844 symbols are not correctly handled,
11845 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11846 pCodeInstruction instead of pCode,
11847 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11848 pCodeAsmDir definition,
11849 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11850 directive, then the argument directive is emitted without the leading
11851 tab, hack for inline labels which must be in the first column,
11852 * (compareLabel,pic16_findNextInstruction),
11853 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11854 * (insertBankSwitch): modified for the new pCodeAsmDir,
11856 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11857 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11859 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11861 * (pushSide): commented out with #if,
11862 * (assignResultValue): fixed some typos in saving
11864 * (genPcall): FIXED and sync'ed with genCall,
11865 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11866 * (genNearPointerGet): fixed to handle some more cases,
11867 implementation scheme via table reads,
11868 * (genConstPointerGet): modified to access code memory correct,
11869 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11870 and improved to handle some cases
11871 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11872 instead of "RETLW" for init data
11873 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11874 not IN_DIRSPACE, work around to reduce bank switching when aboslute
11875 variables are placed in access bank memory (<0x80 and >=0xf80),
11876 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11877 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11878 TBLWT_POSTDEC,TBLWT_PREINC
11879 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11880 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11882 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11883 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11884 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11885 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11887 2004-02-29 Borut Razem <borut.razem AT siol.net>
11889 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11890 support/Util/findme.h, support/Util/system.h: enhance binary relative
11891 search for lib and include by using findProgramPath()
11893 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11896 * src/SDCCpeeph.c (pcDistance),
11898 * src/mcs51/ralloc.h,
11899 * src/mcs51/ralloc.c (mcs51_regWithIdx),
11900 * src/mcs51/main.h,
11901 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11902 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11903 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11904 size calculation port specific, started basis for some register
11906 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11907 missing push/pop of r0/r1. Optimized push/pops
11908 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11909 * device/lib/_modsint.c (_modsint),
11910 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11911 and stack version so regression tests pass
11913 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11915 * src/Makefile.in (dep): include SLIBOBJS in dependency check
11916 * src/SDCCast.c (decorateType): catch another small optimization
11918 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11919 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11920 modified to finally use computeType() all over SDCC,
11921 see Feature Request #877103
11922 * src/SDCCval.h: cosmetic
11923 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11924 valCompare(); regression tested in muldiv.c
11925 * support/regression/tests/muldiv.c (testMod): mod sign follows
11928 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11930 * src/SDCCast.c (decorateType): fixed bug #902362
11931 * doc/INSTALL.txt: fixed install instructions for win32
11933 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11935 * device/include/Makefile.in (install): fixed by replacing spaces
11938 * doc/INSTALL.txt: updated for release
11939 * doc/sdccman.lyx: added warning for --xstack being buggy
11941 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11943 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
11944 to eliminate build warnings.
11945 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11947 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11948 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11950 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11951 removed -penable-stack, added comment for stack pragma, added
11952 warning for not initializing the stack/frame registers, removed
11953 comment at interrupts section
11955 Stack is made permanent, there is no ability to disable stack usage.
11956 * src/pic16/device.h,
11957 * src/pic16/device.c: removed all references to USE_STACK macro,
11958 * src/pic16/device.c (pic16_dump_section): when no elements in
11959 rlist, free rlist before return,
11960 * (pic16_dump_int_registers): NEW, internal registers are a new set
11961 of general purpose registers reused by each function,
11962 * (checkAddReg): returns 1 if registers is added to set,
11963 * (pic16_groupRegistersInSection): when a registers is of type
11964 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11965 * src/pic16/device.h: memRange and Assigned Memory are deleted,
11966 SRCASECMP macro is moved here from device.c
11967 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11968 PO_PCLATU, PO_PRODL, PO_PRODH,
11969 * (pic16_pCodeOpType, genMinus,
11970 changed compares to "a" register, with AOP_ACC,
11971 * (pic16_genPlus): fixed some bugs and indented properly,
11972 * (pic16_addSign): changed size to size+offset in the MOVWF
11974 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11975 multiply 8-bit operand by literal, result is 8-bit,
11976 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11977 multiply 2 8-bit operand, result is 8-bit,
11978 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11980 * src/pic16/gen.c: changed accUse to contain WREG only,
11981 * (pic16_emitcomment): renamed to pic16_emitpcomment,
11982 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11983 true, do not use immediate addressing any more unless sym is a
11984 pointer in codespace,
11985 * (aopForRemat): do not use immediate addressing when symbol not in
11986 codespace and when symbol's address is requested,
11987 * (aopOp): for-loop in if(sym->accUse) is modified for the new
11989 * (aopGet): added case for AOP_ACC and don't return "accumulator
11990 bug" but WREG instead,
11991 * (popGetTempReg): pushes contents of temporary register in stack,
11992 * (popReleaseTempReg): pops contents of temporary register from
11993 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11994 * (pic16_popGet): separated case AOP_ACC to return register WREG
11995 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11996 or PO_IMMEDIATE and initializes their instance/offset appropriately,
11997 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11998 the use of immediate pointers to certain cases only.
12000 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
12001 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
12002 * (assignResultValue, genCall, genRet): modified to use the new
12003 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
12004 genPcall is still broken,
12005 * (genFunction): added code to create 'A' type pBlocks when
12006 interrupt functions are generated, code not extensively tested yet,
12007 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
12008 * (genEndFunction): modified so ISRs pop stored registers from stack,
12009 * (genMultOneByte): cleanup,
12010 * (AccRsh): added flag andmask, to and result with appropriate mask,
12011 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
12012 * (genDataPointerGet): fixed and reenabled its use,
12013 * (genNearDataPointerGet): bugs fixed,
12014 * (genDataPointerSet): bugs fixed,
12015 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
12016 pic16_DumpSymbol, pic16_DumpOp,
12017 * src/pic16/genutils.h: function prototypes for the above functions,
12018 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
12020 * (pic16emitRegularMap): many many many improvements, but needs a
12022 * src/pic16/main.c: enable_stack in pic16_options is removed,
12023 * (_pic16_parseOptions): removed command line options -penable-stack,
12024 * (_process_pragma): emit stack symbol only when stack pragma is
12026 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
12027 redirected to FSR0L/FSR0H pair,
12028 * (pic16_get_op, pic16_get_op2): modifications and improvements,
12029 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
12030 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
12032 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
12033 * (dumpPicOptype): NEW,
12034 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
12035 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
12036 with movff instruction,
12037 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
12038 added pic16_int_regs, some packRegsFor* functions are commented out,
12039 because produce errors,
12040 * src/pic16/NOTES: minor modifications
12042 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12044 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
12045 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
12047 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
12048 * as/mcs51/lkaomf51.c: fixed bug #895763
12050 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
12052 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
12054 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12056 * doc/sdccman.lyx: added details about the HC08 storage classes and
12057 interrupts, fixed the register usage info for z80 & gbz80
12059 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
12061 * doc/sdccman.lyx: added more pic16 port documentation
12062 * device/include/pic16/: added header pic18fregs.h
12064 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
12066 * doc/sdccman.lyx: added Vangelis' contribution
12068 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12070 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
12071 extend to the next CALL or PCALL, not just to the next CALL.
12073 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
12075 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
12077 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12079 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
12080 bug #895752 and a better fix for bug #716790
12082 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12084 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
12086 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12088 * doc/sdccman.lyx: minor changes, minor changed
12090 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
12092 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
12093 which can't handle SDCC_NEWONEBYTEOPS,
12094 (geniCodeMultiply): removed conversion from mult to shift for pic14
12097 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12100 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
12101 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
12102 thus fixing bug #895406
12104 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
12106 * device/lib/_modsint.c,
12107 * device/lib/_modslong.c: sign follows divisor only
12108 * src/hc08/gen.c (genMultOneByte): if result size is 1,
12109 signs or signedness can be ignored
12110 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
12111 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
12112 added optimization for IFX,
12113 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
12115 reenabled optimization for IFX, which was removed on 2004-01-11
12116 * src/SDCCast.h: added return type IFX
12117 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
12118 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
12119 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
12120 SDCC_OLDONEBYTEOPS selects the old behaviour
12121 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
12122 changed again and commented promotion rule
12123 * src/SDCCval.c (valDiv): promotion no longer necessary
12124 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
12125 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
12127 * support/regression/tests/onebyte.c: added
12129 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
12131 * gen.c (genInline): reverted to old code for assemnling inline
12132 code because of bug reported James Chadd
12134 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
12136 * ralloc.h: missing declarations from previous patch,
12137 seems that patch for ralloc.h was never applied, fixed
12139 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12140 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12144 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
12145 indirect addressing. Marked FSR0 as deprecated
12146 * gen.c (pointerCode): commented out, not needed now
12147 (pic16_popGet2p): new MOVFF helper function
12148 (genGenPointerGet),
12149 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
12150 (shiftRLong): removed duplicate debugging info
12152 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12154 * src/ds390/gen.c (genNearPointerGet),
12155 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
12156 optimization with bits, but not bitfields.
12157 * src/ds390/ralloc.c (packRegisters),
12158 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
12160 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
12162 * src/SDCCcse.c (algebraicOpts): copy operands before modification
12164 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12167 * src/SDCCicode.c (operandFromSymbol),
12168 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
12169 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
12170 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
12171 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
12172 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
12173 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
12175 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
12176 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
12177 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
12178 * src/SDCCsymt.c (newSymbol),
12179 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
12182 * src/SDCCval.c (newiList): fixed bug #885705
12184 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12186 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
12187 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
12189 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12191 * device/include/c8051f120.h,
12192 * device/include/c8051f300.h,
12193 * device/include/c8051f310.h: added/updated header files for Silicon
12194 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12195 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
12196 in new section Submitting patches
12198 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12200 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
12201 genFarPointerGet, genCodePointerGet, genGenPointerGet,
12202 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12204 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12205 genFarPointerGet, genCodePointerGet, genGenPointerGet,
12206 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12208 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12209 genFarPointerGet, genCodePointerGet, genGenPointerGet,
12210 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12212 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12213 genFarPointerGet, genCodePointerGet, genGenPointerGet,
12214 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12215 genGenPointerSet): fixed bug #892400
12216 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12217 to eliminate build warnings.
12218 * src/SDCCast.c (processParms),
12219 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12221 * support/valdiag/valdiag.py: added GCC to the list of defines active
12222 when compiling with gcc
12224 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12226 * support/Util/SDCCerr.h,
12227 * support/Util/SDCCerr.c,
12228 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12229 with an incomplete type (fixed bug #883734)
12230 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12232 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12234 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12236 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12238 * src/SDCCast.c (decorateType),
12239 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12240 function pointer implementation
12241 * support/regression/tests/funptrs.c: added tests to verify both forms
12242 of function pointers work correctly. Added tests to verify parameters
12243 are passed in the correct order.
12245 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
12247 * device.c (regCompare): registers are sorted by ascending
12248 address and increasing size,
12249 * main.c (_pic16_finaliseOptions): removed the declaration
12250 of compiler macro MCU. Now a macro of the format pic18fxxxx
12251 will be defined from the command line
12253 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12254 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12256 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12257 PCOP_RLCF was overwritten!
12258 * gen.c (genSkip): commented out calls to pic16_emitcode,
12259 * (genCmpEQ): fixed "long" compares, only high word did get compared,
12261 * (genRRC): added debugging info,
12262 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12263 overwritten while shifting,
12264 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12265 overwritten while shifting,
12268 * (shiftLLeftOrResult),
12269 * (shiftRLeftOrResult),
12271 * (shiftLLong): Implemented with pic16_emitpcode
12272 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12273 * (genLeftShift): Fixed bug, operand for shift by variable always
12274 was "and"ed with 0x0f,
12275 * (genLeftShiftLiteral),
12277 * (genRightShiftLiteral): added debugging info,
12278 * (genrshFour): added comment,
12279 * (genRightShift): determined signedness from operand "left"
12280 instead of "result"
12282 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12284 * src/SDCCicode.c (geniCodeParms),
12285 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12286 function pointers, fixed function pointer bugs #861242 and #861896
12288 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12290 * device/include/c8051f000.h,
12291 * device/include/c8051f120.h,
12292 * device/include/c8051f300.h: added header files for Silicon
12293 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12295 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12297 * src/SDCCast.c (processParams): added new type flow and restructured
12298 (gatherAutoInit): added new type flow
12299 (addCast): cosmetic changes
12300 (getLeftResultType): added new type flow for array indices, patch
12301 provided by Stas, see FR #877103
12302 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12303 array index patch by Stas
12304 * src/SDCCast.h: added prototype getResultTypeFromType()
12306 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12307 * src/pic/glue.c (pic14emitStaticSeg),
12308 * src/pic16/glue.c (pic16emitStaticSeg),
12309 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12310 for initialization of symbols
12311 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12312 * support/Util/SDCCerr.h:
12313 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12314 * .version: bumped version number to 2.3.8
12315 * device/include/Makefile.in (install),
12316 * doc/Makefile (install): changed to 'rm `find ...`' construct to
12319 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12321 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12322 Slade Rich fixed an optimization bug
12323 * src/pic/pcodepeep.c,
12324 * src/pic/pcoderegs.c
12325 * doc/Makefile (install): added test for directory
12327 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12329 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12330 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12331 * src/pic/ralloc.c (getRegPtr, getRegGpr),
12332 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12333 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12334 * as/mcs51/asexpr.c (term),
12335 * as/hc08/asexpr.c (term): fixed bug #887146
12337 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12339 * src/z80/gen.c (genMult): handle single byte result product
12340 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12341 DUMMY_READ_VOLATILE (fixed bug #886367)
12343 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12345 * support/regression/tests/libmullong.c: fixed logic, on little endian
12346 hosts we ended without a mullong_wrapper()
12348 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12350 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12351 virus/worm forged address usage.
12353 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12355 Fixed promotion, it should be done on AST level:
12356 * src/SDCCast.c (addCast): added promotion to int
12357 (decorateType): updated call to upCast()
12358 * src/SDCCicode.c (geniCodeLeftShift): removed call to
12359 usualUnaryConversions()
12361 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
12363 * support/regression/tests/literalop.c (mulWrapper): Added a
12364 wrapper to remove integer overflow warnings.
12366 * support/regression/tests/float_trans.c: Made work on host.
12368 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12371 * support/regression/generate-cases.py (main): Changed from inline
12374 * doc/Makefile (install): Changed to depth first to get rid of
12375 missing directory install warning.
12377 * as/Makefile (install-doc): Made work on Mac.
12379 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12381 * src/SDCCast.c: added an additional type flow in decorateType() of
12382 opposite direction, see feature request #860006; it's enabled at runtime
12383 by setting the environment variable SDCC_NEWTYPEFLOW
12384 * src/SDCCast.h: changed prototype of decorateType()
12385 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
12386 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
12387 'char' to 'int' can be omitted, if both operands are 'unsigned char';
12388 see feature request #877103
12389 * src/SDCCval.c: updated call of decorateType()
12390 (valBitwise): fixed bug #882876
12391 (valMinus): added promotion
12392 (valLogicAndOr): result is unsigned
12393 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
12394 * src/SDCCsymt.c (computeType),
12395 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
12396 must not cause an unsigned operation
12397 * src/pic/glue (pic14emitRegularMap),
12398 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12400 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12402 * src/pic/pcode.c (PCodeID): commented out left over debug code
12404 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
12406 * support/valdiag/tests/overflow.c: added shift tests
12407 * src/pic/device.c,
12414 * src/pic/pcodepeep.c,
12415 * src/pic/pcoderegs.c,
12416 * src/pic/ralloc.c,
12417 * src/pic/ralloc.h: applied patch from Slade Rich;
12418 added support for multiple code pages and multiple RAM banks on the
12419 PIC 14 port. The ASM files now no longer simply assume all the
12420 code / RAM are in the same page / bank. This means the linker can
12421 safely allocate code/RAM of separate ASM files to different pages/banks.
12422 * doc/sdccman.lyx: added Slade's tips
12423 * src/mcs51/peeph.def: fixed bug #880768
12425 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12427 * src/hc08/ralloc.c (rematStr): fixed bug #879282
12428 * src/SDCCast.c (decorateType): fixed bug #880197
12430 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
12432 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
12435 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
12436 strtof is not part of C89 and isn't included with Mac OS X.
12438 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12440 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12441 shiftL2Left2Result): fixed bug #879326
12442 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12443 (genMultOneByte): fixed bug in signed vs unsigned multiplication
12444 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12445 address fetch for clr instruction
12446 * device/lib/hc08/_mulint.c: created optimized assembly version
12447 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12449 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12451 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12452 proposed in FR #877103
12454 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12456 * src/SDCCval.c (cheapestVal): added missing checks
12457 * src/SDCCicode.c (usualBinaryConversions): fixed condition
12458 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12460 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12462 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12465 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12467 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12468 loaded with the linker search paths (-L arguments) and the libraries
12469 to be linked with the current source (-l arguments). Changes
12470 currently will affect only the pic16 port.
12471 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12472 include path the port specific paths and port specific libraries,
12473 * gplink command now contains the $3 argument,
12474 * src/pic16/device.h,
12475 * src/pic16/device.c,: structure PIC_device is made public and
12476 renamed to PIC16_device, the same for variable Pics which is renamed
12477 to Pics16. Updated all references to them.
12478 * src/pic16/glue.c (pic16glue): corrected bug with code
12479 initialization which bypassed the variable initializations block.
12481 * device/lib/pic16/Makefile.rules: removed --penable-stack from
12482 COMPILE_FLAGS and added the --nostdinc option
12484 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12486 * device/include/mc68hc908jb8.h: Register defs for another member
12487 of the hc08 family. Contributed by Bjorn Bringert - thanks!
12489 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12491 Documenting changes from previous commits.
12492 * configure.in (version 1.56),
12493 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12494 when generating output files to configure the pic16 library,
12495 but now I've commented it out, since gputils aren't installed in the
12496 SF compile farm, so library won't compile
12498 * device/lib/Makefile.in (version 1.56): initially I've added in
12499 target 'all' the prerequestive 'model-pic16' so it compiled the
12500 pic16 library, but now I've commented it out for the same reasons
12502 * added targets 'model-pic16' and 'objects-pic16' to compile the
12504 * added target 'port-specific-objects-pic16' to handle the
12505 generated libraries and copy them into the build/ directory
12506 * added target 'clean-intermediate-pic16' to clean intermediate
12507 files into pic16 directory
12508 * in target 'installdirs' added line to create directory pic16 in
12509 the installation path
12511 * device/include/Makefile.in (version 1.11): in target 'install'
12512 added lines to copy all header files to installation path,
12513 * in target 'installdirs' added line create directory for pic16
12514 headers in the installation path
12516 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12518 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12521 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12524 * device/lib/configure.in,
12525 * device/lib/configure: fixed for autoconf 2.57
12527 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12529 * src/z80/main.c (_parseOptions): fixed the portmode= command line
12530 option so that it actually works. Made it specific to the z80, since
12531 the gbz80 doesn't have these kinds of I/O ports.
12533 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12535 * device/include/z180.h,
12536 * device/lib/_memcpy.c,
12537 * device/lib/_memmove.c,
12538 * device/lib/_mulint.c,
12539 * device/lib/ser_ir.c,
12540 * device/lib/ser_ir_cts_rts.c,
12541 * device/lib/_strcmp.c,
12542 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12543 * src/z80/main.c (_process_pragma): add support for pragmas bank and
12544 portmode; added deprecation warning for bank= and protmode= forms.
12545 Also, guard against buffer overflow.
12546 * src/z80/gen.c (aopGet): generate better code for sfr banked read
12548 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12550 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12551 changed interrupt vector table generation to only emit declared vectors.
12552 * device/include/Makefile.in: added missing backslash
12553 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12555 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12557 Mainly changes to support compilation of the device libraries
12558 * src/pic16/device.c: stack is allocated via symbol and not
12559 via literal number. The symbol is placed in the corresponding
12560 position of the data ram
12561 * (pic16_dump_section): relocatable and absolute uninitialized
12562 data are now emitted in sorted order to reduce section naming,
12563 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12564 weren't marked as being in the access bank,
12566 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12568 Added portion of GNU PIC Library under the directory
12569 device/include/pic16 and device/lib/pic16. These files
12570 contain the declarations of SFRs for the PIC18Fxx2 devices.
12571 The directory is initialized via configure from toplevel.
12573 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12575 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12576 the spilllocations to be compared correctly
12578 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12580 * src/SDCCast.c (decorateType): fixed bug introduced today
12582 2004-01-12 Borut Razem <borut.razem AT siol.net>
12584 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12585 doc/sdccman.lyx: upper case pragmas are deprecated
12587 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12589 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
12590 in simpler and even better code
12592 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12594 * src/SDCCicode.c (operandOperation): fixed bug #874819
12595 * src/SDCCast.c (decorateType): fixed
12596 char foo (unsigned long ul) { return ul > 0; }
12598 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12600 * doc/sdccman.lyx: Moved and added some sections, small changes
12601 all over. Telling LaTeX to be less strict with word spacing
12602 to better keep the right margin. Changed some notes about
12603 maintainance of the ports in section 3.2.1 - is it OK like this?
12605 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12607 SDCC source changes:
12608 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12609 convilong): modified to inform the pic16 port that builtin functions
12612 PIC16 PORT specific changes:
12613 * src/pic16/device.c pic16_dump_equates() added,
12614 processor registers declared internally by the port are emitted in
12615 the translation as equates,
12616 * src/pic16/gen.c: inline code is passed unprocessed to the
12618 * (pic16_popGetLit2): fnuction modified to take second operand as
12619 pCodeOp pointer and not as literal,
12620 * (popRegFromIdx): prefixed with pic16_,
12621 * (pic16_popCombine2): modified to receive already allocated pCode
12623 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12624 * (genFunction): initializes local stack frame and pushes on stack
12625 all the registers used by this function,
12626 * (genEndFunction): restores all registers from stack and restores
12628 * src/pic16/glue.c (pic16emitRegularMap): various changes and
12630 * (pic16glue): changed the program startup sequence,
12631 * added new dbName code 'A' for functions placed in absolute section
12632 * src/pic16/main.c: added function attribute _naked,
12633 * added pragma 'code' to place a fnuction at an absolute address,
12634 * added command line arguments --debug-ralloc and --pcode-verbose,
12635 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12636 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12637 * (pic16_newpCodeOpLit2): modified to take the second operand as
12639 * (pic16_printpBlock): modified to emit each function in a separate
12641 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12642 UPPER for immediate operands,
12643 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12645 * src/pic16/peeph.def: all peepholes with movff are commented out,
12646 because there is a problem in the pcode peep optimizer,
12647 * src/pic16/ralloc.c: the register allocator can now reuse local
12648 function symbols for another function. This saves register usage.
12649 * src/pic16/ralloc.h: added flag isLocal in structure regs,
12651 Added file src/pic16/NOTES with information about program writing on
12652 the current port version.
12654 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12656 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12657 and peephole 252 (array access)
12659 2004-01-09 Borut Razem <borut.razem AT siol.net>
12661 * src/SDCCmain.c : fixed #872250: -l command line defined library
12662 files are scanned before standard library files
12664 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12666 * src/SDCCast.c (decorateType): fixed bug #874046
12668 2004-01-09 Borut Razem <borut.razem AT siol.net>
12670 * support/scripts/sdcc.nsi: remove previous installation
12672 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12674 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12675 bytes for last interrupt vector (mcs51)
12676 * sdcc.spec: fixed typo
12678 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12680 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12681 gen51Code): more efficient parameter receive for --model-large
12684 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12686 * src/ds390/main.c,
12687 * src/z80/main.c: added missed needLinkerScript flags (more than
12688 one port structure defined in these file)
12689 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12692 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12694 * src/SDCCmain.c: removed various references to DEFAULT_PORT
12695 * src/port.h: added flag needLinkerScript in port->linker
12696 structure to inform whether to create a .lnk file or not,
12698 * src/ds390/main.c,
12700 * src/mcs51/main.c,
12702 * src/pic16/main.c,
12704 * src/z80/main.c: changed appropriately to configure
12705 needLinkerScript flag
12707 * src/pic16/gen.c (genAddrOf): fixed bug #863624
12708 * src/pic/glue.c: added variable udata_section_name to
12709 override default uninitialized data segment definition for
12710 devices only with SHAREBANK memory (reported from Erik Epetrich)
12711 * (pic14emitOverlay): modified to emit a commented overlay segment
12712 directive when no overlay data exist
12713 * (picglue): modified to emit uninitialized data segment
12714 according to udata_section_name
12715 * src/pic/main.c (_pic14_parseOptions): added command line
12716 options --udata-section-name=[name] to override default
12717 udata definition name
12718 * modified _linkCmd and _asmCmd to include compiler passed
12719 arguments via -W option
12720 * src/pic16/main.c: added $l in _asmCmd, changed extension for
12721 object file from '.rel' to '.o' in port->linker structure,
12722 changed size of fptr from 2 to 3 in port structure
12724 2004-01-07 Borut Razem <borut.razem AT siol.net>
12726 * support/scripts/sdcc.nsi: update PATH
12727 * support/scripts/sdcc.ico: craeted
12729 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12731 * device/include/Makefile.in: fix install
12732 * doc/Makefile: fix install
12734 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12736 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12738 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12739 how the function variable allocation summary is displayed; also
12740 include information about variables allocated to the overlay
12743 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12745 * as/mcs51/lkmain.c: Help about -Y option
12746 * as/mcs51/lkarea.c: Fixed gcc warnings
12748 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12750 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12752 * support/valdiag/tests/overflow.c: added
12753 * src/SDCCast.c (decorateType),
12754 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12755 LEFT_OP (left shift)
12757 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12759 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12760 (default behaviour).
12762 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12764 A python script to validate compiler diagnostic messages. It can be
12765 used to verify that sdcc complains about bad c source code and
12766 gives a good location of the error.
12767 * support/valdiag/Makefile,
12768 * support/valdiag/valdiag.py,
12769 * support/valdiag/tests/*
12771 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12773 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12774 * src/SDCCsymt.c (newEnumType),
12776 * support/Util/SDCCerr.c,
12777 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12779 * support/regression/tests/enum.c: added test for enum values that
12780 require at least 2 bytes of storage.
12782 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12784 * src/common.h: added ifndef/define/endif macros
12785 around the header file.
12786 Bug reported from Jesus Calvino-Fraga
12788 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12790 * sdcc.spec: updated
12791 * device/include/Makefile.in: don't install CVS directories
12792 * device/lib/Makefile.in: added removal of CVS directories after install
12793 * doc/Makefile: fixed install, added local_icons
12794 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12795 * src/mcs51/gen.c (genRightShift): fixed bug #870788
12796 * src/ds390/gen.c (genRightShift): fixed bug #870788
12797 * src/SDCCast.c (decorateType): fixed bug #870781
12799 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12801 PIC16 port related changes:
12802 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12803 added variable stackPos,
12805 * gen.c: genCall, assignResultValue: added support for
12806 pushing/retrieving function parameters to/from stack,
12807 genFunction,genEndFunction: setup stack frame for the
12808 generated function,
12809 genAddrOf: will be changed according to bug 863624
12811 * added files genutils.c and genutils.h which contain gen*
12812 debugged and optimised functions extracted from gen.c
12814 * glue.c: added variable 'externs' which holds extern symbols,
12815 pic16emitRegularMap: is modified to properly handle relocatable
12816 symbols under the new scheme,
12817 pic16createInterruptVect: is modified
12818 pic16printPublics: is modified to emit 'global' assembler directives,
12819 added pic16_printExterns to print extern symbols,
12820 pic16glue: initializes stack/frame pointer in the beginning of
12821 the assembly output. Temporary hack, will be corrected later,
12822 because gplink yet does not support stack and SDCC does not
12823 yet support a type of crt0.o object to create the final binary.
12825 * Removed many lines that contain 8051 legacy code.
12826 * The code is finally placed under a 'code' directive.
12827 * Added port specific options.
12829 * _process_pragma: simplified since now we do not need *special*
12830 include file to define SFR registers. But a separate header
12831 will be needed. This will be developed later.
12832 * _pic16_parseOptions: added, parses port specific options:
12833 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12834 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12835 --preplace-udata-with=
12837 * _pic16_setDefaultOptions: modified to initialize section names,
12838 but hack is temporarly out of order since it needs improvement.
12839 * _pic16_genAssemblerPreamble: configuration words are emitted by
12840 their address instead of their name. This part is incomplete and
12841 supports only the 18Fxx2 devices. Other devices will emit an error
12842 during assembly since they do not contain the same set of config
12844 * _pic16_genIVT: is modified,
12846 * pcode.c: added definitions for some hardware registers that are needed
12848 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12849 All PCI entries are updated. Now LFSR is supported.
12850 * Removed pic16_pciTRIS is mentioned by mdubuc in source
12851 * added pic16_newpCodeOpLit2 to support instructions with
12852 two literal arguments
12853 * pic16_pCode2str: corrected code that emits assembler instructions
12854 with two literal operands and those that have an access bit modifier
12855 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12856 this fixes a bug which caused some labels to be lost, when an
12857 assembler directive was added, i.e. banksel,
12858 * pic16_FixRegisterBanking: improved logic that causes the insertion
12860 * InlineFunction: functions that are called once, are not any more
12861 inlined. This can be a port option in the future,
12863 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12865 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12866 hold the corresponding uninitialized symbols,
12867 * pic16_allocProcessorRegister: registers have explicit marked the
12869 * pic16_allocInternalRegister: registers are explicit marked as
12871 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12872 processing list, so bit registers were lost,
12875 * ralloc.h: added field 'accessBank' and original symbol operand
12876 in register definition,
12877 * removed the field isMapped from register definition,
12879 ** Several functions have been removed from various sources:
12880 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12881 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12882 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12883 pic16_assignRelocatableRegisters
12885 ** others have been introduced:
12886 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12887 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12889 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12891 * support/scripts/inc2h.pl: changed definition of BIT_AT
12892 to emit 'sbit at' instead of 'bit at'. This was a request.
12894 PIC16 port related preliminary changes:
12895 * gen.c: prefixed function popRegFromString with
12896 pic16_ and all references to it corrected
12897 * pcode.c: all pic16_pc_* hardware registers prefixed
12898 with underscore (_),
12899 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12900 * ralloc.c: newReg(): when register is REG_SFR then
12901 set address to rIdx,
12902 pic16_allocProcessorRegister(): marks register wasUsed=0
12903 pic16_writeUsedRegs(): added a call to assign processor
12904 registers via pic16_assignFixedRegisters
12906 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12908 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12909 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12910 variables in unused register banks. Also the SSEG is placed
12911 wherever there is enough space for it, and IDATA can be anywhere
12912 in internal RAM. For now compile using -Wl-Y[stack_size].
12913 The mem file is different for this option as well, since it
12914 makes no sense of talking about DSEG lenght.
12916 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12918 * src/SDCClrange.c: fixed bug 869095 that caused segfault
12919 in certain cases, e.g. when ROM assignment, patch provided
12920 from Albert den Haan.
12922 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12924 Many signedness and type propagation fixes:
12925 * src/SDCCicode.c: made geniCodeCast() static
12926 replaced SPEC_ by IS_ (cosmetic)
12927 (operandOperation): fixed div and mod operation
12928 (usualBinaryConversions): added support for promotion of char
12929 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12930 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12931 (geniCodeAdd): an array index will stay unsigned, even if promoted
12933 (geniCodeArray): ditto
12934 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12935 * src/SDCCsymt.c (computeType): added more support for char;
12936 promotion of char is selectable by promoteCharToInt, fixed signedness
12938 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12939 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12940 * src/SDCCval (val*): replaced signedness calculation by
12942 rearranged if-branches (cosmetic)
12943 (valShift): added warning W_SHIFT_CHANGED
12944 (valCompare): fixed problem with different types
12945 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12946 * support/regression/tests/literalop.c: added many cases
12947 * support/regression/tests/ast_constant_folding.c: changed finally to
12949 * .version: new year, new version: 2.3.7
12950 * src/SDCCmain.c (main): applied patch #866468
12951 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12952 provided by Scott Bronson
12953 * doc/sdccman.lyx: updated documentation for sdcdb
12954 updated and added chapter tips
12956 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12958 * src/SDCCsymt.h: missing from yesterday's commits
12960 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12962 * src/SDCC.y (struct_or_union_specifier),
12963 * support/Util/SDCCerr.c,
12964 * support/Util/SDCCerr.h: verify that struct & union tags are used
12967 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12969 * src/SDCCglobl.h: missing from yesterday's commits
12971 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12973 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12974 sft_attributes, struct_declaration, parameter_declaration,
12975 type_name, start_block, declaration_list),
12976 * src/SDCC.lex (check_type): support redefinition of typedef names
12978 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12980 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12981 aligned xdata arrays. Erik helped me with the if clause.
12983 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12985 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12988 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12991 * src/SDCCast.c (newAst_),
12993 * src/SDCCicode.c (ast2iCode, newiCode),
12995 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12996 expr, statement, expression_statement, selection_statement,
12997 iteration_statement, expr_opt, jump_statement): foundation for tracking
12999 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
13002 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13004 * support/Util/SDCCerr.c,
13006 * src/SDCCast.c (createCase, createDefault, decorateType),
13007 * src/SDCClabel.c (labelUnreach),
13008 * src/SDCC.y (labeled_statement, jump_statement): More improvements
13010 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
13011 (with thanks to Stas Sergeev)
13012 * device/include/time.h,
13013 * device/lib/time.c (CheckTime): suppress unreachable code warning
13015 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13017 * src/SDCCast.c (createIvalCharPtr),
13018 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
13020 * support/regression/tests/nullstring.c: tests for these two bugs
13022 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13024 * support/Util/SDCCerr.h,
13025 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
13026 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
13027 about storage class and 'at' used inside struct or union
13028 * src/SDCCBBlock.c (iCodeFromeBBlock),
13029 * src/SDCCcse.c (ifxOptimize),
13030 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
13031 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
13032 printIval, emitStaticSeg, emitOverlay),
13033 * src/SDCClabel.c (deleteIfx),
13034 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
13035 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
13036 gatherAutoInit, processParms),
13037 * support/Util/SDCCerr.h,
13038 * support/Util/SDCCerr.c (werrorfl): Support for better error location
13039 reporting for post-parse errors.
13041 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13043 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
13044 implicit casts via union; they don't work on big endian systems
13045 (possible fix for bug #861138)
13047 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13049 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
13050 * src/mcs51/main.c: fixed the fix for bug #737001
13052 2003-12-15 Borut Razem <borut.razem AT siol.net>
13054 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
13056 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13058 * support/makebin/makebin.c: put output in binary mode
13060 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13062 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
13063 xdata and data memory on startup. Set the environment variable
13064 SDCC_NOGENRAMCLEAR to disable this.
13065 * src/mcs51/peephole.def,
13066 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
13067 (allows non-interrupt and interrupt code to safely compete for a resource
13068 without the non-interrupt code having to disable interrupts)
13070 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13072 * src/SDCCicode.c (geniCodeAdd),
13073 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
13074 with valFromType if type might be a pointer and host is big endian).
13075 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
13076 types, not just integer types.
13077 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
13078 multiply defined with mismatching "at" address.
13080 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13082 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
13083 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
13084 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
13085 with embedded nulls (fixed bug #753752)
13087 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13089 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
13090 Apparently this did not see much testing (endless loop)
13092 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13094 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
13096 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13098 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
13099 gracefully handle NULL memmap pointers
13101 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13103 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
13104 instead of deleting the iCode when an operand is volatile
13105 * src/z80/gen.c (genDummyRead),
13106 * src/mcs51/gen.c (genDummyRead),
13107 * src/ds390/gen.c (genDummyRead),
13108 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
13110 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
13111 * src/SDCC.y: fixed bug #850420
13113 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13115 Applied z80 i/o port patch from Peter Townson and fixed some operators
13116 to better handle operands in A register.
13117 * device/include/z180.h
13123 * src/z80/peeph-z80.def
13124 * src/z80/peeph.def
13127 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13129 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
13131 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13133 * device/lib/hc08/_mullong.c: Removed extra #endif
13135 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13137 * sim/ucsim/hc08.src/inst.cc,
13138 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
13139 carries from x to h
13140 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
13141 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
13142 * device/include/stdarg.h: fixed varargs for hc08
13143 * device/lib/Makefile.in,
13144 * device/lib/hc08/Makefile,
13145 * device/lib/hc08/_mulint.c,
13146 * device/lib/hc08/_mullong.c: fixed some endian problems
13148 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13150 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
13151 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
13152 * device/lib/_gptrget.c,
13153 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
13155 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13157 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
13158 * src/SDCCast.c (astErrors): fixed bug #846007
13159 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
13161 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13163 * src/SDCCast.c (decorateType): disabled a transformation I added in
13164 revision 1.188 (access to fields of a structure at an absolute address);
13165 it breaks with bitfields, extern declarations, and gcse analysis.
13166 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
13167 could be assigned through a pointer, so don't complain.
13168 * src/SDCCast.c (astErrors),
13170 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
13172 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
13174 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
13175 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
13176 output of __config directives, since gpasm now supports them
13177 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
13178 pre-processor macro, i.e. -DMCU=p18f452
13179 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
13180 and modified to handle 'cast' icode similarly to '=' icode
13181 * src/pic16/device.h (typedef struct PIC_device): added field
13182 'extMIface' to indicate that chip has external memory interface
13183 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
13184 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
13187 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13189 * src/SDCC.y (pointer): fixed bug #846006
13190 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
13191 * src/SDCCast.c (decorateType): fixed bug #846009
13192 * src/ds390/peeph.def,
13193 * src/ds390/gen.c (genAnd, genOr),
13194 * src/mcs51/peeph.def,
13195 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
13197 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13199 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
13206 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13210 * src/SDCCbitv.c: added function to free a bitvector
13211 * src/SDCClrange.h,
13212 * src/SDCClrange.c: added function to recompute the liveranges
13213 * src/avr/ralloc.c,
13214 * src/ds390/ralloc.c,
13215 * src/hc08/ralloc.c,
13216 * src/mcs51/ralloc.c,
13217 * src/pic/ralloc.c,
13218 * src/pic16/ralloc.c,
13219 * src/xa51/ralloc.c,
13220 * src/z80/ralloc.c: recompute the liveranges after register packing
13222 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13224 * src/SDCCloop.c (newInduction): fixed bug #845630
13226 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13228 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13229 inadvertantly left behind from my 2003-11-12 change
13231 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13233 Updated headers I neglected to commit yesterday.
13234 * src/SDCClrange.h,
13237 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13239 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13240 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13241 * src/SDCCopt.c (eBBlockFromiCode),
13242 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13243 the creation of the key hash table from the sequencing so it can be used
13244 earlier (for some GCSE bug fixes still pending)
13246 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13248 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13249 * support/regression/tests/addsub.c: testing genPlus shortcut
13251 2003-11-15 Borut Razem <borut.razem AT siol.net>
13253 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13255 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13257 * src/SDCCcse.c (cseBBlock): fixed bug #527779
13258 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13259 ordering is immaterial.
13260 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13262 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13264 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13265 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13266 (SIGSEV) of bug #840381
13267 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13268 unlink new file before rename if new and old filenames are the same)
13270 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13272 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13273 uninitialized variables) for the mcs51. Set environment variable
13274 SDCC_GENRAMCLEAR to test.
13275 xdata initialization slightly shorter
13277 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13280 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13281 #838241 & 780691 (basicly the same bug)
13282 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13283 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13285 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13287 * src/SDCCmain.c (linkEdit): "fix" #834252
13289 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13291 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13293 * src/SDCC.y: fixed bug #819403
13295 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13297 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13298 the reentrant attribute.
13299 * src/hc08/gen.c (genPackBits): added missing stack readjustment
13300 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13302 * src/SDCCast.c (decorateType): fixed bug with storage class not being
13303 updated during pointer dereference; f.e. ~(((char *)1)*) was being
13304 erroneously reduced to a literal.
13305 * src/hc08/ralloc.c (packRegisters, rematStr),
13306 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13309 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13311 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13312 * doc/sdccman.lyx: changed from 'article' to 'book'
13313 * doc/Makefile: readded test_suite_spec and cdbfileformat
13315 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13317 * device/include/stdlib.h: include malloc.h to comply with ANSI
13318 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13320 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13322 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13323 * doc/clean.mk: also remove *.out files
13324 * doc/sdccman.lyx: some additions, larger top/bottom margins
13326 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13328 * src/SDCC.y: fixed bug #837365
13329 * support/regression/tests/bitopcse.c
13330 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13331 a symbol (might be valop instead)
13332 * device/lib/Makefile.in: added errno.c to HC08SOURCES
13333 * device/lib/clean.mk: added hc08 to the cleaning list
13335 2003-11-04 Borut Razem <borut.razem AT siol.net>
13337 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13339 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13340 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13341 malloc is declared in standard stdlib.h
13343 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13345 * device/lib/hc08/Makefile: need to clean .rel not .o files
13346 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13348 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13352 * src/mcs51/main.c,
13353 * src/ds390/main.c,
13357 * src/pic16/main.c,
13358 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13359 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13360 tests (which uses the port's oclsExpense function)
13366 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13368 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13370 * src/SDCCcse.c (ifxOptimize),
13371 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13372 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13373 deleting the IFX iCode.
13374 * src/hc08/ralloc.c: reduced unneeded slocs
13375 * src/hc08/gen.c: fixed bug in asmopToBoolean
13377 2003-11-04 Borut Razem <borut.razem AT siol.net>
13379 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13380 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13381 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13382 transferred to configure
13384 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13386 Use headers defined in the C[++] standards:
13387 * sim/ucsim/gui.src/serio.src/fileio.cc
13388 * sim/ucsim/gui.src/serio.src/frontend.cc
13389 * sim/ucsim/gui.src/serio.src/main.cc
13390 * sim/ucsim/gui.src/serio.src/posix_signal.cc
13391 * support/Util/NewAlloc.c
13393 * as/mcs51/lklibr.c
13397 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13399 * Added MSVC projects for hc08 assembler and linker:
13400 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13401 /as/hc08/link_hc08.dsp
13403 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
13405 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
13407 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
13409 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
13411 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13413 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
13415 2003-10-31 Borut Razem <borut.razem AT siol.net>
13417 * support/cpp2/cpplib.h,
13418 support/cpp2/cpplib.c,
13419 support/cpp2/cpplex.c,
13420 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
13421 to switch _asm block preprocessing on / off. Default is
13422 #pragma preproc_asm +
13424 2003-10-31 Borut Razem <borut.razem AT siol.net>
13426 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
13427 when outputting comment blocks (when executed with -C option) and
13428 _asm (SDCPP specific) blocks
13430 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13432 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
13434 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
13436 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
13438 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13440 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13441 * src/SDCCast.c (decorateType): fixed bug #832664
13443 2003-10-31 Borut Razem <borut.razem AT siol.net>
13445 * support/cpp2/cpplex.c: fixed for SDCPP:
13446 comments(when executed with -C option) and _asm blocks
13447 were included even if they where in skipped #if block.
13448 Applied solution from GCC cpp 3.3.2
13450 2003-10-31 Borut Razem <borut.razem AT siol.net>
13452 * src/SDCC.lex: sdcc now understands both formats:
13453 '# <line_number> <file_name>' and
13454 '#line <line_number> <file_name>'
13455 * support/cpp2/cppmain.c: sdcpp now generates the standard
13456 '# <line_number> <file_name>' instead of former
13457 '#line <line_number> <file_name>'
13459 2003-10-30 Borut Razem <borut.razem AT siol.net>
13461 * support/cpp2/cpphash.h,
13462 * support/cpp2/cpplib.h
13463 * support/cpp2/cpplex.c,
13464 * support/cpp2/cppmain.c,
13465 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13467 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13469 Fixed a number of problems revealed by bug #827883.
13470 * src/SDCCloop.c (loopInvariants): Spill location of the
13471 result operand should be recomputed if extracted from
13472 a loop. Also, don't extract assignments of an iTemp
13474 * src/SDCCast.c (isConformingBody): loop reversal should
13475 not occur if the control variable is involved with a
13476 relational operator.
13478 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13480 * .version: bumped to 2.3.6 to reflect the big improvements
13481 made by Erik and Klaus. Thanks!
13483 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13485 Replaced the livrange code.
13486 * src/SDCClrange.c: added new LR code
13488 * src/SDCCBBlock.h: removed remainig parts from old LR code
13489 * src/ds390/ralloc.c,
13490 * src/ds390/gen.c: minor fixes to make it work with new code
13492 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13495 * as/hc08/lkrloc.c,
13497 * src/hc08/ralloc.c: Fix various warnings related to the hc08
13498 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13499 (tweaked fix for bug #818696)
13501 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13503 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13505 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13508 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13509 * src/mcs51/gen.c (gencjneshort),
13510 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13511 more efficient (per Scott Bronson's suggestion)
13513 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13515 Extended the semantics of the critical keyword to include
13516 individual statements. See RFE #827755 and #799831
13521 * support/Util/SDCCerr.c
13522 * support/Util/SDCCerr.h
13527 2003-10-19 Borut Razem <borut.razem AT siol.net>
13529 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13531 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13533 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13535 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13536 and predecrement operand is displayed
13538 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13540 * src/SDCCval.c (valMinus): fixed bug #826041
13542 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13544 Some hc08 related updates that I missed earlier
13545 * sim/ucsim/stypes.h
13546 * support/regression/ports/hc08/spec.mk
13548 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13550 New target "hc08" for the Motorola 68hc08 family of micros
13558 * sim/ucsim/hc08.src/*
13559 * sim/ucsim/configure.in
13560 * src/ucsim/configure
13561 * sim/ucsim/packages_in.mk
13564 * device/include/mc68hc908qy.h
13565 * device/lib/hc08/*
13566 * device/lib/Makefile.in
13567 * support/regression/ports/hc08/*
13568 * support/regression/Makefile
13570 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13572 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13574 * src/ds390/gen.c (genCast): fixed bug #821957
13576 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13578 * device/lib/logf.c: "fixed" overlay bug
13579 * support/regression/ports/host/spec.mk: added m library
13580 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13581 * support/regression/tests/float_trans: added (for Eric)
13583 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13585 * src/mcs51/gen.c (genCpl): fixed bug
13586 http://sf.net/mailarchive/message.php?msg_id=6263915
13588 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13590 * src/SDCCast.c (decorateType): added extended constant folding
13591 * src/SDCCsymt.c (computeType): cleanup
13592 * src/SDCCval.c (valShift): minor optimization
13593 * support/regression/tests/ast_constant_folding.c: added
13595 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13597 * src/SDCCmain.c: removed some unintended changes
13599 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13601 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13602 * src/z80/gen.c: fixed part of bug #817589
13603 * src/SDCCsymt.c (checkFunction): fixed bug #817895
13605 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13607 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13618 * src/ds390/ralloc.c
13620 * src/mcs51/ralloc.c
13622 * src/pic16/ralloc.c
13623 * src/xa51/ralloc.c
13625 * src/z80/gen.c: removed unused label "release:"
13627 2003-10-06 Borut Razem <borut.razem AT siol.net>
13629 * src/SDCC.lex: removed definition of unused variables
13630 save_optimize and save_options
13632 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13634 * clean.mk: removed '=' in "-maxdepth=1"
13635 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13636 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13638 2003-10-06 Borut Razem <borut.razem AT siol.net>
13640 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13641 my_unput() replaced by unput()
13643 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13645 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13646 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13647 type-punned pointer will break strict-aliasing rules"
13648 Old LR behaviour is again default; Klaus' LR can be choosen by
13649 defining the environment variable LRKLAUS
13653 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13654 * clean.mk: fixed removal of files in bin/CVS/
13655 * device/lib/clean.mk: fixed removal of directories small and large
13656 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13658 * src/SDCCval.c: removed superflous test for pedantic
13660 2003-10-05 Borut Razem <borut.razem AT siol.net>
13662 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13663 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13664 message "unmatched #pragma SAVE and #pragma RESTORE"
13666 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13668 * doc/sdccman.lyx: various additions and updates (interrupts, inline
13669 assembly, critical functions, atomic, nojtbound)
13671 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13673 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13679 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13682 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13684 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13686 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13687 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13688 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13690 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13692 * src/z80/gen.c (genRet): fixed bug #524753
13693 * src/z80/gen.c (genCast): fixed internal error on cast from
13695 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13696 fix for bug #477835 to the z80
13697 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13698 for tracking iCodes in the peephole optimizer for z80
13700 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13702 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13703 the other part of bug #814548
13704 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13706 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
13708 * src/SDCCcse.c: fixed part of bug #814548
13710 2003-09-28 Borut Razem <borut.razem AT siol.net>
13712 * src/asm.c: rewrite of printILine() to use temporary file instead
13714 * src/xa51/main.c: commented out declaration of int rewinds
13716 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13718 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13720 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13722 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13723 * src/asm.c (printILine): Fixed bug #811015
13725 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13727 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13730 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13732 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13733 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13734 to correctly handle general case of AOP_PAIRPTR
13735 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13737 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13739 * src/mcs51/ralloc.c (fillGaps),
13740 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13741 register positioning bug)
13743 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
13745 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13747 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13749 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13750 genCodePointerGet, genGenPointerGet, genFarPointerSet,
13751 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13752 (ralloc doesn't intentionally do this now, but perhaps later)
13753 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13754 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13755 register positioning bugs (Fixed bug #762602 and #795325)
13756 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13757 (Fixed bug #808779)
13758 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13759 lines that --i-code-in-asm generates
13761 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13763 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13764 trying to fclose a FILE* that was already closed.
13766 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13768 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13769 of const struct should be treated as if const themselves)
13771 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
13773 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13775 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13777 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13778 Unix (/n) and DOS (/r/n) line terminations.
13780 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13782 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13785 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13787 * src/mcs51/gen.c (genFunction, genEndFunction),
13788 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13789 and restore of EA so that stack offsets to parameters are
13790 correct when using both critical and reentrant/stack-auto.
13791 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13792 size (can be triggered in error if sloc is shared between
13793 different sized objects)
13794 * device/include/float.h: fixed macros to explicitly use
13795 unsigned long where needed
13797 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
13799 Feature req. 799831: added code to allow nesting of critical functions
13800 * src/mcs51/gen.c (genFunction, genEndFunction)
13801 * src/ds390/gen.c (genFunction, genEndFunction)
13803 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13805 * src/SDCCsymt.c (sclsFromPtr),
13807 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13808 support for standard C idiom of memory mapped variables; for
13809 example, *((xdata int*)0x1234) = 1 is now internally equivalent
13810 to xdata int at 0x1234 tempvar = 1.
13811 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13812 provided by Akiya ISHIDA
13814 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
13816 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13817 * src/SDCCval.c (constVal): added reduction from int to char
13818 * src/SDCCval.c (valMult, valDiv): fixed sign handling
13819 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13820 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13822 * support/regression/tests/shifts.c: fixed
13824 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13826 * src/z80/gen.c (genXor): Fixed bug #805445
13828 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13830 Fixed bug #621531 (const & volatile confusion in the type chain).
13831 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13832 refer to the const or volatile state of the pointer itself.
13844 * src/pic16/ralloc.c
13845 * support/regression/tests/const.c
13847 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13849 When checking for duplicated modules, use absolute paths
13850 instead of relative paths. Files changed:
13855 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13857 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13859 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13861 * device/include/string.h: added size_t typedef, changed
13862 prototypes to use size_t, eliminated separate reentrant and
13863 non-reentrant declarations, added _memmove declaration
13864 * device/lib/_memcpy.c: changed to use size_t instead of int,
13865 changed /4 to >>2 to avoid division library call
13866 * device/lib/_memcmp.c,
13867 * device/lib/_memset.c,
13868 * device/lib/_strncat.c,
13869 * device/lib/_strncpy.c,
13870 * device/lib/_strncmp.c: changed to use size_t instead of int
13871 * device/lib/_memmove.c: new file (fixed bug #772294)
13872 * device/lib/Makefile.in: added _memmove.c
13873 * device/lib/z80/asm_strings.s: fixed bug #772290
13874 * support/regression/tests/bitfields.c: attempt to fix host assertion
13875 failure on amd64-unknown-linux2.2
13877 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13879 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13880 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13881 * as/z80/asmain.c (main): fixed bug #801766
13883 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
13885 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13888 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13890 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13891 reported in bug #800609
13893 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
13895 * Top header beautifications in src/pic16 directory:
13896 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13897 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13898 pcoderegs.h, ralloc.c, ralloc.h
13899 * main.c: added top header and GPL license notice
13900 * pcode.c: fixed the if-conditional warning
13902 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
13904 * device/lib/_mullong.c: replaced int by short for gcc
13906 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13908 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13909 and JUMPTABLE iCodes properly now (worked by accident before)
13910 * src/mcs51/gen.c (leftRightUseAcc),
13911 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13912 iCode properly now. Use getSize instead of nRegs since a & b
13913 aren't part of the nRegs tally.
13915 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
13917 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13918 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13919 before instructions that use the _STATUS register
13921 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
13923 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13924 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13925 fetching of the pointer
13926 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13927 copied from genNearPointerSet()
13928 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13929 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13930 If they pop r0/r1 they must be called in the opposite order than aopOp().
13931 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13932 (resp. --stack-auto), prepared for --xstack
13934 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13936 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13938 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
13940 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13941 these ports have their own __sdcc_external_start()
13943 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
13945 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13946 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13947 type for bits was changed. It resulted in bit variables becoming
13948 global, which is not permitted in PIC 14 assembly output.
13950 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13952 * doc/sdccman.lyx: various additions and updates. Rearranged sections
13954 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13956 Z80 and MCS51 linkers complaint if a public symbol is defined
13957 in more than one library module:
13961 * as/mcs51/Makefile.in
13963 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13965 A few small changes that speed up the peephole optimizer.
13969 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13971 Try to make the peephole optimizer smarter by maintaining
13972 an association between the assembly source code and the
13973 iCodes that originated them. Put this information to use
13974 with a new peephole rule condition "notVolatile" so that
13975 the rules can be aggressive yet still safe.
13980 * src/mcs51/peeph.def
13982 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13986 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13987 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13988 if the left or right operand symbols have the accuse flag set.
13990 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13992 Changed the type of the result of the ! (NOT) operator to char;
13993 previously it returned the same type as the source. This allows
13994 us to eliminate all the genFloatNot functions (all of its target
13995 implementations were very buggy) since !float can use the same
13998 * src/SDCCicode.c (ast2iCode): ! returns char
13999 * src/mcs51/gen.c (genNot, genNotFloat),
14000 * src/ds390/gen.c (genNot, genNotFloat),
14001 * src/z80/gen.c (genNot, genNotFloat),
14002 * src/pic/gen.c (genNot, genNotFloat),
14003 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
14005 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
14007 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
14008 1. Interrupt would not compile properly. Ensure PCLATH register is saved
14009 during interrupts. Ensure WSAVE is located at a shared bank address.
14010 2. Fixed page selection in some places
14011 3. Fixed BTFSS/C to where necessary use registers directly and not simply
14012 the registers name strings.
14013 4. Fixed "signed / unsigned compare" compiler warnings.
14014 5. The PIC port manages its own allocation of the general purpose
14015 registers, but makes no attempt to reuse them. As a result when
14016 compiling it soon runs out of general purpose registers. Some
14017 additional code was added to the files pcode.c and device.c to walk
14018 through the function call tree and rename the registers so that they
14028 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
14029 genPlus() & genMinus() when the result is the same as left or right
14031 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14033 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
14035 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14037 Made bitfield a distinct type from bit so that bitfields
14038 convert as per ANSI C and bits retain their traditional
14039 boolean style behaviour. Implemented bitfield support in
14047 * src/ds390/gen.c: bit v bitfield split
14048 * src/z80/gen.c: New support for bitfields
14049 * support/regression/tests/bitfields.c: reenabled z80,
14052 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14054 Rules 246.x, 247.x relate to bitfields, the others speed up
14055 access to xdata mapped I/O devices.
14057 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
14059 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14061 Cleaned up genPackBits and genUnpackBits and added two helper
14062 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
14063 for literal assignments in genPackBits (thanks to Frieder for
14069 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14071 Fixed bug #748310 (pointer to function type mishandled when the
14072 function name is omitted). Also fixed a SIGSEGV when a function
14073 attribute (reentrant, etc) is used on a non-function or on a
14074 function but misplaced before the parameter list.
14076 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
14078 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
14079 * support/Util/SDCCerr.h,
14080 * support/Util/SDCCerr.c: Added func attr misuse error msg
14082 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
14084 Fixed bug #787649 by anonymous
14085 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
14086 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
14088 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14090 Fixed numerous bitfield problems.
14092 * src/SDCC.y: More bitfield related error checking
14094 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
14095 * support/Util/SDCCerr.h,
14096 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
14097 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14098 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
14099 * support/regression/tests/bitfields.c: tests added
14101 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14103 Made the constant following the "interrupt" keyword optional. If
14104 omitted, the function will not automatically be given an entry
14105 in the interrupt vector table (similar to #pragma NOIV, but
14106 less syntacticly kludgy). The interrupt number is also now
14107 range checked. Also fixed a bug in the high order bit example
14114 * support/Util/SDCCerr.c
14115 * support/Util/SDCCerr.h
14118 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
14120 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
14121 * src/SDCCicode.c (operandOperation): rewritten some ops
14122 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
14123 * src/SDCCsymt.c (computeType): literals are handled the same way as any
14125 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
14126 be re-activated by defining REDUCE_LITERALS)
14127 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
14128 unsigned, but are signed by default
14129 * src/SDCCval.c (constVal): rearranged
14130 * src/SDCCval.c (valMod): preliminary fix
14131 * src/SDCCval.c (valCastLiteral): use TYPE_* types
14132 * support/regression/literalop.c: added, work in progress
14134 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14136 Generate warnings for useless declarations like "char data;"
14137 that don't do what new users expect.
14140 * support/Util/SDCCerr.h
14141 * support/Util/SDCCerr.c
14143 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
14145 * src/SDCCval.c (valMult): fix overflow detection of negative int
14147 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14149 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
14151 Changes to support big endian targets:
14164 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
14166 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
14167 * device/lib/time.c: fixed warning "integer overflow in expression"
14169 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
14171 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
14172 * src/SDCCval.c (constVal): changed default to signed; hex and octal
14173 constants are unsigned; added recognition of "u" flag for unsigned
14174 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
14175 * src/SDCCval.c (valDiv, valMod): fixed signdness
14176 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
14177 signedness of modulo, left and right shift
14178 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
14179 * support/Util/SDCCerr.h: added warning W_INT_OVL
14180 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
14181 * src/SDCCast.c (ast_print): improved output of constants
14183 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14185 Fixed some warnings when building with MSVC:
14187 * as/mcs51/asdata.c
14191 * link/z80/aslink.h
14192 * link/z80/lkdata.c
14193 * link/z80/lkeval.c
14198 * support/cpp2/cpplib.c
14202 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
14204 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14206 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14208 * support/librarian/clean.mk: Do not remove Makefile.
14209 * support/librarian/Makefile: added.
14211 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14213 Added librarian to MSVC build:
14216 * support/librarian/librarian.dsp
14218 'configure' not needed for librarian, removed:
14219 * support/librarian/configure
14220 * support/librarian/configure.in
14221 * support/librarian/config_in.h
14222 * support/librarian/Makefile.in
14224 Hopefully these ones built the librarian and the rest of sdcc properly:
14226 * Makefile.common.in
14228 Messed up 'configure', so revert to previous version:
14232 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
14234 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14235 there, while the mantissa of a double is "only" 53 bits wide.
14237 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14239 Adding sdcclib to the build. MSVC project coming soon.
14240 Files added/changed:
14242 * support/librarian/clean.mk
14243 * support/librarian/configure
14244 * support/librarian/configure.in
14245 * support/librarian/config_in.h
14246 * support/librarian/Makefile.bcc
14247 * support/librarian/Makefile.in
14248 * support/librarian/sdcclib.c
14251 * Makefile.common.in
14255 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14257 Linker now complaints if linked modules have conflicting options, for
14258 example, one compiled using --model-large and another one compiled with
14259 --model-small. The following files were modified:
14261 * as/mcs51/asdata.c
14262 * as/mcs51/aslink.h
14264 * as/mcs51/asmain.c
14266 * as/mcs51/i51pst.c
14267 * as/mcs51/lkdata.c
14268 * as/mcs51/lklibr.c
14269 * as/mcs51/lkmain.c
14275 * link/z80/aslink.h
14276 * link/z80/lkdata.c
14277 * link/z80/lklibr.c
14278 * link/z80/lkmain.c
14281 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14283 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14284 as/mcs51/lklibr.c: Generate a warning when a library is not found.
14286 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
14288 * src/z80/mappings.i: fix _mul[us][int,long] entries
14290 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14292 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14294 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
14296 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14297 * support/regression/tests/bitopcse.c: added
14305 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14307 added support for new library format to z80, gbz80 linkers:
14313 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
14315 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14316 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14318 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
14320 added DUMMY_READ_VOLATILE:
14329 * src/SDCCcse.c (algebraicOpts): many improvements
14330 * src/SDCCcse.h: removed algebraicOpts()
14331 * src/SDCCicode.c (picDummyRead): added
14333 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14335 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14336 "Insufficient space in data memory".
14338 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14340 * src/mcs51/gen.c: fixed bug #771358
14341 * src/z80/gen.c: fixed bug #759087
14343 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
14345 * src/pic16/glue.c: minor cleanup by Vangelis
14347 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14349 * device/include/regc515c.h: fixed #758477
14350 * device/lib/_gptrget.c: saving some cycles in generic pointer get
14351 * device/lib/_gptrput.c: saved a few bytes
14352 * my tab spacing is 8, yours too?)
14353 * device/lib/_ser.c: process RX bytes earlier than TX bytes
14354 * device/lib/serial.c: process RX bytes earlier than TX bytes
14355 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14357 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14359 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14361 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14363 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14365 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
14367 * device/lib/Makefile.in: bad fix, reverted to 1.43
14369 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
14371 * device/lib/Makefile.in: added missing z80 object files
14373 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
14375 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14376 pic16 progress by Vangelis:
14379 * src/pic/Makefile:
14386 * pic16/genarith.c:
14391 * pic16/pcodepeep.c:
14394 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14396 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
14398 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14400 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14401 added gbz80 build to MSVC project.
14402 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
14403 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
14404 from 8051 stuff and setup so it links using a .lnk file.
14406 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14408 * support/librarian/sdcclib.c: sdcc librarian.
14409 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
14412 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14414 * as/mcs51/lkmain.c: properly handle extensions in function afile.
14416 2003-07-02 Borut Razem <borut.razem AT siol.net>
14418 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
14419 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
14420 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
14421 src/xa51/main.c, src/z80/main.c:
14422 virtualization of glue() function: each port has it's own glue function,
14423 which is accessed by do_glue function pointer in PORT.general structure
14425 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
14427 * DS800C400 fun, improved ROM interface and tinibios.
14429 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
14431 * More support for DS80C400. Now includes beginning of interface to ROM.
14433 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
14435 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
14437 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14439 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14441 2003-06-19 Borut Razem <borut.razem AT siol.net>
14443 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14445 2003-06-19 Borut Razem <borut.razem AT siol.net>
14447 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14448 fixed Z80 port - crt0.o: cannot open.
14450 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
14452 * support/Util/MySystem.c (merge_command): revert bad fix
14454 2003-06-18 Borut Razem <borut.razem AT siol.net>
14456 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14458 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14460 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14461 option --use-stdout sends errors to stdout instead of stderr.
14463 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
14465 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14467 2003-06-15 Borut Razem <borut.razem AT siol.net>
14469 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14470 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14471 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14472 fixed width array of pointers replaced with sets;
14473 multiple include and lib paths ared transferred to preprocessor and linker
14474 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14475 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14476 fixed width array of pointers
14477 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14478 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14479 fixupPath(), getPathDifference()
14480 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
14481 fixed width array of pointers
14483 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
14485 * src/pic16/ralloc.c: fix warnings
14486 * src/pic16/pcode.c: fix warning
14488 2003-06-10 Scott Dattalo <scott AT dattalo.com>
14490 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14491 know all the details, but essentially this set of changes enable
14492 the pic16 port to generate movff instructions and generate assembler
14496 * src/pic16/glue.c:
14497 * src/pic16/pcode.c:
14498 * src/pic16/device.c:
14499 * src/pic16/main.c:
14500 * src/pic16/pcode.h:
14501 * src/pic16/pcoderegs.c:
14502 * src/pic16/ralloc.c:
14503 * src/pic16/ralloc.h:
14505 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14507 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14508 added option --vc, so sdcc errors and warnings are compatible with
14509 Microsoft Visual Studio.
14511 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14513 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14514 device/lib/libfloat.lib: added atof function.
14516 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
14518 * doc/sdccman.lyx: updated to Lyx 1.3
14519 * doc/cdbfileformat.lyx: updated to Lyx 1.3
14520 * doc/test_suite_spec.lyx: updated to Lyx 1.3
14521 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14523 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
14525 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14527 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14529 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14530 additions to the "related tools/documentation" section
14532 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
14534 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14536 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
14538 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14539 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14541 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
14543 * doc/sdccman.lyx: fix double dash and other minor things
14544 * doc/Makefile: fix double dash
14546 2003-05-28 Karl Bongers(patches from Martin Helmling)
14547 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14548 condition and ignore commands.
14550 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14552 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14553 is in parts still quite out of date, I did changes as far as I felt makes sense
14554 for a non-native english speaker.
14555 Please feel free to add to the manual or to correct my changes.
14556 * doc/Makefile: undid touching the date of intermediate tex files.
14558 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14560 * doc/sdccman.lyx: Manual has an index now
14562 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
14564 Finalize muluint/mulsint and mululong/mulslong merging:
14565 * device/lib/_mulint.c
14566 * device/lib/_mullong.c
14567 * device/lib/gbz80/mul.s
14568 * device/lib/gbz80/stubs.s
14569 * device/lib/z80/mul.s
14570 * device/lib/z80/stubs.s
14571 * src/SDCCsymt.c (initCSupport)
14573 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14575 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14576 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14577 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14578 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14581 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14583 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14584 the regression tests I'm not brave enough to enable 245.b, 245.c
14585 * doc/sdccman.lyx: added latex preamble for hyperref package.
14586 Using pdflatex this will give you a hyperlinked pdf file with
14587 bookmarks. (prepend '%' before /usepackage if this breaks something)
14589 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14591 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14593 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
14595 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14597 2003-05-21 <johan AT balder>
14599 * src/SDCCglue.c (printIval): fixed bug #739934
14601 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
14603 Applied patch from bug 737905 (renamed yylineo to mylineno):
14610 * src/pic16/pcode.c: Cleaned warnings
14611 * src/pic16/pcodeflow.c: Cleaned warnings
14612 * src/pic16/pcoderegs.c: Cleaned warnings
14614 2003-05-19 Scott Dattalo <scott AT dattalo.com>
14616 * src/pic16/pcode.c: Cleaned warnings
14617 * src/pic16/pcodepeep.c: Cleaned warnings
14618 * src/pic16/ralloc.c: Cleaned warnings
14620 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
14622 * doc/sdccman.lyx: fixed bug 739745
14623 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14625 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
14627 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14628 it can be defined with CFLAGS when running configure
14629 * src/SDCCmain.c: fixed compiling + linking with object files
14631 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
14633 * configure.in: configure for pic16 port,
14634 added --disable-pic16-port
14635 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14636 * src/SDCCmain.c: linkOptions is changed to set *,
14637 added if/endif conditional macros to remove options help
14638 messages from optionsTable when a port is not configured, added
14639 support for the PIc16 port in the ports table, when executing
14640 the compiler with no port specified on command line, a default
14641 port is selected with the new macro DEFAULT_PORT which is
14642 defined in port.h, in setDefaultOptions() linkOptions is removed
14643 from initialization assignment, since now it is a set,
14644 parseCmdLine uses setParseWithComma for linkOptions, in
14645 linkEdit() linkOptions are accessed with new function indexSet()
14646 which returns the i'th item of a set variable. See SDCCset.c, in
14647 linkEdit() when calling buildCmdLine(), added linkOptions as
14648 last argument. Now users can pass arguments to gplink via the
14649 -Wl option, main() uses pic16glue() to glue up pic16 programs
14650 * src/SDCCpeeph.c: various changes to support pic16
14651 * src/SDCCset.c: added function void *indexSet(set *, int) to
14652 return the i'th item of the set
14653 * src/SDCCset.h: added function prototype for indexSet()
14654 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14655 * src/clean.mk: added pic16 in CLEANALLPORTS variable
14656 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14657 added macro DEFAULT_PORT
14658 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14659 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14661 * src/pic16/glue.c: commented out some error producing lines
14662 * src/pic16/main.c: __config directives are commented out to stop
14663 gpasm complaining and test the linkage with gplink, _linkCmd and
14664 _asmCmd changed to be more gplink and gpasm friendly
14665 * src/pic16/peeph.def: peep rule 3 is commented out, since it
14666 produced an error when parsed, peep rule 12 is added to utilize
14667 movff, but it is commented out since the pCode does not support
14668 yet a command with 2 address arguments
14670 2003-05-18 <johan AT balder>
14672 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14673 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14674 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
14676 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14677 Added feature to script commands from file.
14679 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
14681 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14682 * src/SDCCutil.c: include ctype.h for win32
14684 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
14686 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14688 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
14690 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14691 Fixed so you can set breakpoints prior to run, run does not stop
14692 on entry now. Add tbreak. Other enhancements and fixes for use
14695 2003-05-12 Borut Razem <borut.razem AT siol.net>
14697 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14699 2003-05-11 Borut Razem <borut.razem AT siol.net>
14701 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14702 the path of bin directory, so that PATH is the only env. variable, which has to be set
14703 in case of standard installation.
14704 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14705 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14706 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14708 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
14710 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14711 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14712 temp files are in the port dir; clean the gen/test directory when
14713 generating new test.c
14714 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14715 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14716 * support/regression/tests/zeropad.c: added
14718 2003-05-09 <johan AT balder>
14720 * src/SDCCglue.c: fixed bug #597940
14722 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
14724 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14725 cache sfr, optimize next,step, fix off by one sourceline,
14726 support ddd list function.
14727 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14729 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
14731 * support/regression/HTMLgen.py: added compare_s2f()
14732 * support/regression/Makefile: redo 1.27
14733 * support/regression/generate-cases.py: redo 1.5
14735 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
14737 * support/regression/tests/float.c: workaround 33 bit hex constant
14738 * support/regression/tests/simplefloat.c: fix division for host
14740 2003-04-29 Scott Dattalo <scott AT dattalo.com>
14742 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14743 that tame's the PIC's over-aggressive optimizer.
14745 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14747 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14750 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
14752 Initial support for DS80C400. "Hello world" runs on TINIm400
14755 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
14757 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14758 * Some notes on ddd usage added in debugger/README
14759 Martin Helmling adding more features and fixes for ddd GUI debugger.
14760 Code added for nexti, stepi, up, down, and other adjustments.
14762 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
14764 * src/pic/pCodepeep.c non-wildcard asmops are now handled
14765 * src/pic/peeph.def Added two rules to optimize carry manipulation
14766 * src/pic/* removed debug printfs
14768 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
14770 * debugger/mcs51/cmd.c: added header newalloc.h
14772 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
14774 * as/Makefile: new EXEEXT
14775 * as/z80/Makefile: remove trailing slash of BUILDIR
14776 * as/z80/clean.mk: new EXEEXT
14777 * Makefile.common.in: add to CFLAGS (and others), don't replace it
14778 * support/cpp2/Makefile.in: new EXEEXT
14779 * src/pic/glue.c (pic14emitRegularMap): fixed warning
14781 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
14783 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14784 EXEEXT was introduced to fix all related problems with targets
14785 "clean", "install" and "uninstall"; a couple of further flaws
14786 especially with "clean" have been fixed too
14787 * as/mcs51/Makefile.in
14788 * as/mcs51/clean.mk
14792 * debugger/mcs51/Makefile.in
14793 * debugger/mcs51/clean.mk
14794 * link/z80/Makefile
14795 * link/z80/Makefile.in
14796 * link/z80/clean.mk
14798 * packihx/Makefile.in
14800 * sim/ucsim/Makefile
14801 * sim/ucsim/clean.mk
14802 * sim/ucsim/avr.src/Makefile.in
14803 * sim/ucsim/avr.src/clean.mk
14804 * sim/ucsim/s51.src/Makefile.in
14805 * sim/ucsim/s51.src/clean.mk
14806 * sim/ucsim/xa.src/Makefile.in
14807 * sim/ucsim/xa.src/clean.mk
14808 * sim/ucsim/z80.src/Makefile.in
14809 * sim/ucsim/z80.src/clean.mk
14810 * sim/ucsim/main_in.mk
14811 * sim/ucsim/packages_in.mk
14812 * sim/ucsim/gui.src/Makefile.in
14813 * sim/ucsim/gui.src/serio.src/Makefile.in
14814 * sim/ucsim/gui.src/serio.src/clean.mk
14817 * support/cpp2/Makefile.in
14818 * support/cpp2/clean.mk
14819 * support/makebin/Makefile
14820 * support/makebin/clean.mk
14821 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14822 * doc/sdccman.lyx: --program-suffix no longer needed
14824 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
14826 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14827 Martin Helmling added support for ddd GUI debugger.
14828 Code added to display assembly, set variables, and other commands
14829 to interface to ddd.
14831 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
14833 * as/Makefile: fix target clean
14834 * as/clean.mk: fix target clean
14835 * as/z80/clean.mk: fix target clean
14837 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
14839 * Makefile.common.in: added AT EXEEXT AT
14840 * configure.in: removed all mingw32 stuff
14841 * configure: rebuilt from configure.in
14842 * doc/sdccman.lyx: updated section "installation"
14843 * support/scripts/sdcc_mingw32: adapted to configure
14844 * support/scripts/sdcc_cygwin_mingw32: added
14846 2003-04-22 Scott Dattalo <scott AT dattalo.com>
14848 * src/pic Added object file support for the PIC port
14849 * src/pic Applied patch from Craig Franklin (this started the object file support)
14850 * src/regression Updated the PIC regression tests for object files
14852 2003-04-20 Borut Razem <borut.razem AT siol.net>
14854 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14855 lklex.c: In function `getfid':
14856 lklex.c:203: warning: array subscript has type `char'
14857 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14858 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14859 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14860 stack handling macros
14862 2003-04-19 Borut Razem <borut.razem AT siol.net>
14864 * "handling space characters in file path" task:
14865 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14866 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14867 * support/Util/MySystem.h: make it self-sufficient
14868 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14869 src/z80/main.c, sdcc/as/mcs51/lklex.c:
14870 handling space characters in file path
14871 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14872 (it will be used by assemblers, which have their own includes, e.g. gpasm)
14873 * support/Util/MySystem.c: handling space characters in executable's path
14875 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
14877 * as/z80/Makefile: fix permanent rebuild of z80
14878 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14879 * support/regression/tests/bitfields.c: added Johan's bitfields.c
14881 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
14883 * src/SDCCopt.c: add special case optimization to replace modulo by
14884 a power of two with a bitwise AND.
14886 2003-04-18 <johan AT balder>
14888 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14890 2003-04-17 <johan AT balder>
14892 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14893 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14895 2003-04-13 Borut Razem <borut.razem AT siol.net>
14897 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14898 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14899 fixed mingw problem in adl_NORMALIZE_PATH
14901 2003-04-12 Borut Razem <borut.razem AT siol.net>
14903 * fixed "#pragma SAVE/RESTORE can not be nested":
14904 * src/SDCC.lex: reworked pragma handling functions
14905 * sdcc/src/SDCCglobl.h: reworked stack handling macros
14906 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14908 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
14910 * src/SDCCutil.c (pathEquivalent): defined but not used
14911 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14912 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14913 * configure: rebuilt from configure.in
14914 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14915 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14916 * device/include/Makefile.in: replace sdcc_datadir
14917 * device/lib/Makefile.in: replace sdcc_datadir
14918 * Makefile.common.in: add LDFLAGS from configure
14919 * packihx/Makefile.in: use LDFLAGS
14920 * src/Makefile.in: use LDFLAGS
14921 * support/cpp2/Makefile.in: add LDFLAGS from configure
14922 * support/makebin/Makefile: use LDFLAGS
14923 * .version: bumped version number to 2.3.5
14925 2003-04-12 Borut Razem <borut.razem AT siol.net>
14927 * completed "different paths" task:
14928 * src/SDCCmacro.c: fixed bug in handling quotes
14929 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14930 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14932 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
14934 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14936 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14938 * ds390/gen.c ds390/peeph.def: fix bug 706781
14940 2003-04-11 Borut Razem <borut.razem AT siol.net>
14942 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14944 2003-04-10 Scott Dattalo <scott AT dattalo.com>
14946 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14947 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14948 set - this bit used to not be set...).
14949 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14950 bad code in PIC Port
14951 * src/regression/and2.c added to test bug 609268
14952 * src/regression/Makefile added and2.c to regression test
14955 2003-04-08 <johan AT CP255758-A>
14957 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14958 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14959 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14961 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
14963 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14965 * support/cpp2/Makefile.in: fix bug #487815
14966 * configure: rebuilt from configure.in
14967 * Makefile.common.in: docdir changed, new path suffixes
14968 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14969 * sdcc_vc_in.h: reflect changes from sdccconf.h
14970 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14971 * src/SDCCutil.h: remove BINDIR hack
14972 * doc/sdccman.lyx: update new path hierarchy
14974 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
14976 * src/SDCCpeeph.c: added okToRemoveSLOC test
14978 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
14980 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14982 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
14984 * src/SDCCpeeph.c: added labelIsReturnOnly test
14985 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14987 2003-04-05 <johan AT balder>
14989 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14990 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14991 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14992 * src/SDCCast.c: fixed a warning
14993 * src/SDCCast.h: fixed a warning
14994 * src/SDCCicode.c (operandFromAst): fixed a warning
14996 2003-04-04 <johan AT balder>
14998 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14999 * src/SDCCast.c (decorateType): fixed bug #715076
15000 * src/SDCC.y: fixed bug #702907
15002 2003-04-03 <johan AT balder>
15004 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
15005 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
15006 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
15007 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
15008 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
15010 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
15012 * _decdptr.c: fix return values
15013 * _gptrget.c: fix return values
15014 * _gptrgetc.c: fix return values
15015 * _gptrput.c: fix return values
15016 * _mulint.c: fix return values
15017 * as/z80/Makefile: fix 'make -j' problem
15019 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
15021 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
15022 * configure.in: big cleanup, updated to autoconf 2.5x
15023 * configure: rebuilt from configure.in
15024 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
15025 * sdcc_vc_in.h: reflect changes from sdccconf.h
15026 * doc/Makefile: fixed a flaw in "make install"
15028 2003-04-02 <johan AT balder>
15030 * src/ds390/gen.c (genCmp): no comments
15031 * src/mcs51/gen.c (genCmp): no comments
15032 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
15033 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
15035 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
15037 * support/regression/generate-cases.py: place generated file in given sub directory
15038 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
15039 * support/regression/Makefile: improvements for 'make -j';
15040 side effect: it's simpler and faster now
15042 2003-03-31 Borut Razem <borut.razem AT siol.net>
15044 * src/z80/main.c: link-{port} and as-{port} defined without path
15045 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
15047 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
15049 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
15051 2003-03-30 Borut Razem <borut.razem AT siol.net>
15053 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
15054 changed type of list parameter to set
15055 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
15056 * src/port.h: changed type of do_assemble() parameter to set
15057 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
15058 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
15059 definition of "cppoutfilename" macro with NULL value in preProcess()
15060 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
15061 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
15062 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
15063 replaced with set *binPathSet
15064 * shash_add() deallocates the item, if allready exsists, before adding the new one
15065 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
15067 2003-03-30 Scott Dattalo <scott AT dattalo.com>
15069 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
15070 a nested for loop bug in the PIC port
15071 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
15074 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
15076 * support/Util/dbuf.h: remove C++ stuff to make it portable
15078 2003-03-28 Borut Razem <borut.razem AT siol.net>
15080 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
15081 literal strings in stringLiteral()
15082 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
15083 * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
15086 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
15088 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
15090 2003-03-26 <johan AT balder>
15092 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
15093 * src/ds390/gen.c (saveRegisters): catched symbol abuse
15094 * src/SDCCast.c (decorateType): fixed " -v < 3"
15096 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
15098 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
15099 Added Lenny Story's debug infrastructure changes:
15100 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
15101 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
15102 * src/cdbFile.c: added
15103 * src/SDCCdebug.c: added
15104 * src/SDCCdebug.h: added
15105 * src/SDCCast.c (createFunction)
15106 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
15107 * src/SDCCmain.c (parseCmdLine, main)
15108 * src/SDCCmem.c (redoStackOffsets)
15109 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
15112 * src/avr/gen.c (genAVRCode)
15113 * src/ds390/gen.c (gen390Code)
15114 * src/mcs51/gen.c (gen51Code)
15115 * src/pic/gen.c (genpic14Code)
15116 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
15117 * src/xa51/gen.c (genXA51Code)
15118 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
15120 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15122 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
15123 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
15125 2003-03-22 <johan AT balder>
15127 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
15129 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
15131 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
15132 * doc/cdbfileformat.lyx: added, written by Lenny Story
15133 * doc/Makefile: added cdbfileformat.lyx
15134 * doc/clean.mk: added cdbfileformat.lyx
15136 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
15138 * src/mcs51/peeph.def: fix bug #705773
15140 2003-03-20 <johan AT balder>
15142 An sfr/sbit can have an "at #" AND an initializer
15143 * src/SDCCsymt.c (checkSClass):
15144 * src/SDCCmem.c (allocGlobal):
15145 * src/SDCCmem.c (allocLocal):
15146 * src/SDCCast.c (createBlock):
15148 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
15150 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
15152 2003-03-16 <johan AT balder>
15154 Undid the hackup of const and volatile, the problem is much bigger
15156 * src/SDCCast.c:1.171
15157 * src/SDCCglue.c:1.138
15158 * src/SDCCicode.c:1.146
15159 * src/SDCCsymt.c:1.150
15160 * src/SDCCval.c:1.65
15162 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
15164 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
15165 * src/ds390/gen.c (genAddrOf): fixed bug #704087
15167 2003-03-13 <johan AT balder>
15169 Hackup const and volatile modifiers in type chains a bit:
15171 * src/SDCCast.c:1.169
15172 * src/SDCCglue.c:1.136
15173 * src/SDCCicode.c:1.143
15174 * src/SDCCsymt.c1.146
15175 * src/SDCCsymt.h1.59
15176 * src/SDCCval.c:1.63
15178 2003-03-12 <johan AT balder>
15180 * src/SDCCBBlock.h: more LRH debugging junk
15181 * src/SDCCcflow.h: more LRH debugging junk
15182 * src/SDCCloop.c: more LRH debugging junk
15183 * src/SDCC.y (struct_declaration): fixed bug #697590
15184 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
15185 * src/ds390/gen.c (aopForRemat): fixed bug #700031
15186 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
15188 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15189 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
15190 test function names must now match exactly).
15191 * src/SDCCcse.c: added special case in findCheaperOp to allow
15192 extending a short integer. Makes less awful code for bug 700121 test case.
15194 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15196 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
15197 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
15199 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15201 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
15202 actually called (operandsNotEqual() was called for all
15203 operandsNotEqualX tests).
15205 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15207 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15208 with shorter literals. Fixes bug 700121.
15210 2003-03-11 <johan AT balder>
15212 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15214 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
15216 * src/SDCCloop.c (mergeRegions): an evil beast is dead
15217 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15219 2003-03-10 Borut Razem <borut.razem AT siol.net>
15221 * src/SDCCmain.c: pipe preprocessor's output
15222 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15223 * sdcc_vc_in.h: define pclose as _pclose for WIN32
15224 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15225 which closes all pipes in pipeSet set
15226 * src/SDCCset.c: free deleted item in function deleteSetItem()
15227 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15228 moved from z80 to src subproject
15229 * .version: increased version number to 2.3.4
15231 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
15233 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15234 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15235 * support/regression/ports/xa51/spec.mk: fix typo
15237 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
15239 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15241 2003-03-09 Borut Razem <borut.razem AT siol.net>
15243 * src/SDCCmain.c: pipe preprocessor's output
15244 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15245 * sdcc_vc_in.h: define pclose as _pclose for WIN32
15246 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15247 which closes all pipes in pipeSet set
15248 * src/SDCCset.c: free deleted item in function deleteSetItem()
15249 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15250 moved from z80 to src subproject
15252 2003-03-09 Borut Razem <borut.razem AT siol.net>
15254 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15255 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15256 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15257 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15258 * src/SDCCglobl.h: unification of WIN32 native definitions
15260 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15262 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15264 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
15266 * src/configure.in: check for endianess (even while cross-compiling)
15267 * src/configure: check for endianess (even while cross-compiling)
15268 * src/configure_in.h: check for endianess (even while cross-compiling)
15269 * src/avr/gen.c: remove old endianess stuff
15270 * src/mcs51/gen.c: remove old endianess stuff
15271 * src/ds390/gen.c: remove old endianess stuff
15272 * src/pic/gen.c: remove old endianess stuff
15273 * src/pic/genarith.c: remove old endianess stuff
15274 * src/pic/glue.c: fix endianess check
15275 * src/pic16/gen.c: remove old endianess stuff
15276 * src/pic16/genarith.c: remove old endianess stuff
15277 * src/pic16/glue.c: fix endianess check
15278 * src/xa51/gen.c: remove old endianess stuff
15279 * src/z80/gen.c: fix endianess check
15280 * src/SDCCglue.c: fix endianess check
15281 * src/ds390/peeph.def: fix bug 700036
15283 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
15285 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15286 * src/configure: find appropriate data-types on host for SDCC's int and long
15287 * src/configure.in: find appropriate data-types on host for SDCC's int and long
15288 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15289 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15291 2003-03-07 <johan AT balder>
15294 some minor cleanups before the big shot
15295 OP_DEFS and OP_USES now use Kevin's protection
15296 new option --nolabelopt
15298 * src/SDCCBBlock.c:
15307 * src/ds390/ralloc.c:
15308 * src/mcs51/ralloc.c:
15309 * src/pic/ralloc.c:
15310 * src/xa51/ralloc.c:
15311 * src/z80/ralloc.c:
15313 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
15315 * src/pic/pcode.c (get_op): fix 64 bit warnings
15316 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15317 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15318 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15319 * support/regression/tests/malloc.c: fix 64 bit warnings
15321 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
15323 * src/mcs51/gen.c (genMinus): fixed bug 696436
15325 2003-03-02 Borut Razem <borut.razem AT siol.net>
15327 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15329 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
15331 * configure.in: test for mkstemp
15332 * sdccconf_in.h: add HAVE_MKSTEMP
15334 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
15336 * device/include/ctype.h: removed warning while using --stack-auto
15337 * device/include/malloc.h: removed warning while using --stack-auto
15338 * device/include/string.h: removed warning while using --stack-auto
15340 2003-02-23 Borut Razem <borut.razem AT siol.net>
15342 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15343 because NDEBUG is defined (see man assert)
15344 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15346 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15348 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15349 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15351 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15353 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15354 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15356 2003-02-18 <johan AT balder>
15358 * as/mcs51/asmain.c (asmbl): module can start with a digit
15359 * as/z80/asmain.c (asmbl): module can start with a digit
15361 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
15363 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15364 * src/asm.c: fix pipe() for Mingw32
15366 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
15368 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15369 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15370 make -V work again; --c1mode reads now from stdin
15371 * doc/sdccman.lyx: added --c1mode
15372 * support/Util/SDCCerr.c: new messages for c1 mode
15373 * support/Util/SDCCerr.h: new messages for c1 mode
15374 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15376 2003-02-15 <johan AT balder>
15378 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15380 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
15382 * doc/sdccman.lyx: Environment variables, -o and other minor things
15384 2003-02-14 <johan AT balder>
15386 * src/xa51/main.c: before anyone really tries to use it :)
15388 * Install doc's in share/sdcc/doc
15389 * removed some obsolete files
15390 * Do a proper make distclean and uninstall
15391 M Makefile.common.in
15394 M device/include/Makefile.in
15395 M device/lib/Makefile.in
15398 M sim/ucsim/doc/Makefile.in
15400 R src/avr/peeph.rul
15401 R src/xa51/peeph.rul
15402 M support/cpp2/Makefile.in
15403 M support/makebin/Makefile
15406 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
15408 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
15410 2003-02-10 Borut Razem <borut.razem AT siol.net>
15412 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
15413 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
15414 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
15415 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
15416 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
15417 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
15418 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
15419 src/z80/Makefile.bcc: Borland Makefile cleanup
15420 * as/z80/Makefile.bcc: Added Borland Makefile
15421 * support/cpp2/borland.h: Removed
15423 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
15425 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
15426 * src/SDCC.lex: new pragma NOIV
15427 * src/SDCCglobl.h: new pragma NOIV
15428 * src/SDCCmem.c: new pragma NOIV
15430 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
15432 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
15434 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
15436 * src/SDCCmain.c: signal handling is switched off by --debug
15437 * doc/Makefile: small fix for install; use clean.mk again
15438 * doc/clean.mk: clean *.pdf and *.html too
15440 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
15442 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15443 * device/lib/printfl.c: fix a ds390 bug by making it portable
15444 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15445 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15446 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15447 * debugger/mcs51/cmd.c: converted multi-line string literals
15448 * sim/ucsim/globals.cc: converted multi-line string literals
15449 * src/SDCCmain.c: introduced signal handler to remove temp files
15450 * doc/Makefile: small tweaks, implement clean
15451 * doc: removed generated files
15453 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15455 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
15456 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15457 Address Record is not correctly generated for DS390."
15459 2003-02-02 Borut Razem <borut.razem AT siol.net>
15461 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15462 * as/mcs51/asm.h: fixed compilation with Borland C
15463 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15464 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15465 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15466 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15467 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15468 src/z80/Makefile.bcc: delete $(LIB) only if exist
15469 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
15471 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
15473 * device/include/malloc.h: introduced NULL
15474 * device/include/string.h: introduced NULL
15475 * device/include/stdlib.h: introduced NULL
15476 * device/lib/_memcpy.c: removed NULL
15477 * device/lib/_strcat.c: removed NULL
15478 * device/lib/_strchr.c: removed NULL
15479 * device/lib/_strcmp.c: removed NULL
15480 * device/lib/_strcpy.c: removed NULL
15481 * device/lib/_strcspn.c: removed NULL
15482 * device/lib/_strlen.c: removed NULL
15483 * device/lib/_strncat.c: removed NULL
15484 * device/lib/_strncmp.c: removed NULL
15485 * device/lib/_strncpy.c: removed NULL
15486 * device/lib/_strpbrk.c: removed NULL
15487 * device/lib/_strrchr.c: removed NULL
15488 * device/lib/_strspn.c: removed NULL
15489 * device/lib/_strstr.c: removed NULL
15490 * device/lib/_strtok.c: removed NULL
15491 * device/lib/malloc.c: removed NULL, include own header
15493 2003-02-02 <johan AT balder>
15495 * 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
15496 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15497 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15498 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15499 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15500 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15502 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15504 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15507 2003-02-01 <johan AT balder>
15509 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15511 2003-01-31 <johan AT CP255758-A>
15513 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15515 2003-01-30 <johan AT balder>
15517 * src/SDCCBBlock.c: automatic bug detection
15518 * src/SDCCicode.c: automatic bug detection
15520 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15522 * src/SDCCglobl.h: now --xram-size 0 works
15523 * src/SDCCmain.c: now --xram-size 0 works
15525 2003-01-29 <johan AT balder>
15527 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15529 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15531 * as/mcs51/aslink.h: Added options --xram-size and --code-size
15532 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15533 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15534 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
15535 * src/SDCCglobl.h: Added options --xram-size and --code-size
15536 * src/SDCCmain.c: Added options --xram-size and --code-size
15538 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
15540 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15541 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15543 2003-01-27 <johan AT balder>
15545 * src/SDCC.y: fixed bug #613764
15547 2003-01-26 <johan AT balder>
15549 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
15550 * src/SDCCsymt.h: fixed bug #673374
15551 * src/SDCCglue.c: fixed bug #661910
15552 * src/SDCCast.c: fixed bug #458099 and 673374
15554 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
15556 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15557 * as/mcs51/strcmpi.h: added
15558 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15559 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15560 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15561 * as/mcs51/assym.c: strcmpi -> as_strcmpi
15562 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15563 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15564 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15565 * as/mcs51/Makefile.aslink: new module strcmpi
15566 * as/mcs51/Makefile.asx8051: new module strcmpi
15567 * as/mcs51/Makefil.bcc: new module strcmpi
15568 * as/mcs51/Makefile.in: new module strcmpi
15569 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15571 2003-01-26 <johan AT balder>
15573 * src/SDCCglue.c: reverted back to 1.124
15574 * src/SDCCast.c: reverted back to 1.156
15575 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15577 2003-01-25 <johan AT balder>
15579 * src/SDCCglue.c: A better fix for bug #661910
15580 * src/SDCCast.c: A better fix for bug #661910
15581 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15583 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
15585 * src/Makefile.in: remove spawn.o
15586 * src/SDCCmain.c: remove spawn.h
15587 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15588 * src/spawn.c: removed
15589 * src/spawn.h: removed
15590 * support/regression/ports/ds390/spec.mk: link with -r
15592 2003-01-24 <johan AT CP255758-A>
15594 * src/ds390/gen.c (aopOp): fixed bug #667458
15595 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15596 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15597 (createIvalCharPtr): an ival doesn't always have a storage class anymore
15599 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
15601 * src/mcs51/peeph.def: better assembler identation by Frieder
15602 * src/mcs51/gen.c: better assembler identation by Frieder
15604 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
15606 * as/z80/string.h: removed for gcc 3.2
15607 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15608 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15610 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
15612 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15613 * src/SDCCpeeph.c (replaceRule): fix bug #663503
15614 * support/regression/Makefile: separate temp files for ports
15615 * support/regression/generate-cases.py: separate temp files for ports
15616 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15617 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15619 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
15621 * moved tinitalk to device/examples/ds390
15623 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
15625 * as/mcs51/lkmem.c: rflag is for DS390
15626 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15627 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15628 (linkEdit): move mem- and map-files the same way as ihx-files
15629 * src/z80/main.c (_setDefaultOptions): removed --generic
15630 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15631 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15632 * src/pic/glue.c (picglue): --c1mode works again
15633 * src/pic16/glue.c (pic16glue): --c1mode works again
15634 * src/asm.c (printCLine): fix #660034
15636 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
15638 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15639 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15640 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15641 * as/mcs51/lkmem (summary): better fix for sp problem
15642 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15643 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15644 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15645 remove --stack-after-data
15647 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
15649 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15650 * src/SDCCutil.c (join): ugly bug: missing '\0'
15651 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15653 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
15655 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15657 * src/pic/main.c (_asmCmd): gpasm supports -o
15658 * src/z80/main.c: more general macros
15659 * device/lib/Makefile.in: remove intermediate files
15661 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
15663 * .version: Bumped version number to 2.3.3
15664 * src/SDCCBBlock.c: new option -o
15665 * src/SDCCglobl.h: new option -o
15666 * src/SDCCglue.c: new option -o
15667 * src/SDCCmain.c: new option -o
15668 * src/asm.c: new option -o
15669 * src/ds390/main.c: new option -o
15670 * src/pic/glue.c: new option -o
15671 * src/pic/pcode.c: new option -o
15672 * src/pic/ralloc.c: new option -o
15673 * src/pic16/glue.c: new option -o
15674 * src/pic16/pcode.c: new option -o
15675 * src/pic16/ralloc.c: new option -o
15676 * src/z80/main.c: new option -o
15677 * device/lib/Makefile.in: use -o
15678 * support/regression/ports/ds390/spec.mk: use -o
15679 * support/regression/ports/gbz80/spec.mk: use -o
15680 * support/regression/ports/mcs51/spec.mk: use -o
15681 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15682 * support/regression/ports/z80/spec.mk: use -o
15683 * support/regression/ports/ucz80/spec.mk: use -o
15684 * support/regression/ports/xa51/spec.mk: use -o
15685 * support/regression/fwk/lib/timeout.c: fix usage string
15687 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
15688 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15690 2003-01-07 <johan AT balder>
15692 * src/SDCCast.c (decorateType): fixed bug #600035
15694 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
15695 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15696 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15697 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15698 * src/pic/pcode.c: outcommented unused variable to remove warnings
15699 * src/pic/ralloc.c: outcommented unused variable to remove warnings
15701 2003-01-06 <karl AT turbobit.com>
15702 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15705 2003-01-06 <johan AT balder>
15707 * src/SDCCicode.c: fixed array add
15709 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
15710 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15711 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15713 2003-01-04 <johan AT balder>
15715 * src/SDCCval.c (getNelements): fixed the initialized array of structures
15717 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15718 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15720 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
15721 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15722 * support/regression/tests/bug-524697.c: fit mem usage into 8032
15724 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
15725 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15727 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
15728 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15730 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
15731 * src/mcs51/main.c: removed {bindir}{sep} from aslink
15733 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15735 * in /sdcc/as/mcs51/ changed these files in order to create an
15736 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15737 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
15738 following files to include the previous two files: aslink.dsp,
15739 Makefile.aslink, Makefile.bcc, and Makefile.in.
15741 * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15742 .adb instead of .cdb
15744 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15746 * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15747 value from option --iram-size.
15749 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15751 * /sdcc/as/mcs51/lklist.c: added boundary check before using
15754 2002-09-18 <wiml AT hhhh.org>
15756 * SDCClrange.h: exposed setFromRange() and setToRange()
15757 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15758 packRegsForAccUse() (bug 542397)
15759 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15760 multiple times and emitting the fetch operations more than once
15761 added aopGetUsesAcc() function to allow binary operators to
15762 fetch their operands in the correct order; made genMinus() emit
15763 compact code for X = LITERAL - Y
15765 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15766 * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15767 sprintf() in line 1267.
15769 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15770 * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15773 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15774 Changes to aslink (All the changes are marked with 'JCF'):
15776 * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15779 * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15780 area BSEG. Also moves, if possible, the DATA area down into the internal
15781 ram so more space is available.
15783 * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15786 * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15787 not bytes. Function summary() which creates a memory usage summary
15788 file with extension .mem. Reports of overlaping stack and small stack
15789 size. If the space for the stack is less than 16 bytes aslink trows a
15792 * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15793 the 8051. Option 'y' for memory summary output file.
15795 Changes to sdcc (All the changes are marked with 'JCF'):
15797 * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15799 * /sdcc/src/SDCCglue.c: If a register bank is used, creates an
15800 overlaying area for it (uses RegBankUsed[4]).
15802 * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15803 bank zero as used by default. By default aslink locates the stack
15804 (equivalent to --stack-after-data). Pass option 'y' to aslink for
15805 the creation of the .mem file. Delegates the allocation of data area
15806 to aslink (it is not longer 0x30 by default). If --stack-loc passes
15807 the begining of the stack area to aslink.
15809 * /sdcc/src/SDCCmem.c: If a register bank is used, marks it so
15810 glue() in SDCCglue.c creates an area for it.
15812 2002-09-03 Borut Razem <borut.razem AT siol.net>
15813 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15814 sdcc/src/pic/glue.c:
15815 introduced atexit() handler for teporay files removal in case of
15816 errors, assertions, ...
15818 2002-08-29 Borut Razem <borut.razem AT siol.net>
15819 * sdcc/support/cpp2/auto-host_vc_in.h:
15820 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15821 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15822 Maybe there is a similar problem with BORLANDC? It should be checked!
15824 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15825 corrected improper use of assert: the assignment to clr variable was done inside the assert.
15826 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15827 was not executed, and the compiler (cl) launched a warning:
15828 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15830 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
15831 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15833 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15834 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15836 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15837 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15838 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15839 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15840 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15841 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15842 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15843 - added Release configuration in VS projects
15844 - review of compiler an linker options
15845 - VC .exe files are generated in bin_vc directory, not to interfere
15846 with binaries generated from other projects (cygwin, mingw, bcc ...)
15848 * sdcc/src/yacc.dsp: added
15850 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15851 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15852 and insert the version number definitions from .version
15854 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15856 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15857 added - genarate auto-host.h using auto-host_vc_in.h as template
15860 removed from CVS, generated automatically
15862 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
15863 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15865 2002-08-11 Borut Razem <borut.razem AT siol.net>
15866 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15868 2002-08-10 Borut Razem <borut.razem AT siol.net>
15869 * src/SDCCmain.c (main):
15870 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15871 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15872 The consequence was that some temporary files were not removed.
15875 unification of code in functions tempfilename() and tempfile():
15876 function tempnam() is defined in Visual Studio 6.0 and .NET
15878 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15880 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15881 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15882 - removed compiler command line option /WX: Treats all warnings as errors
15883 - update a list of source files, included into the project
15885 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15886 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15887 changed project type to Generic Project so that can be correcly converted to VS.NET project
15889 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15891 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15893 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15895 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15896 added return 0 statements after assert() to make compiler happy
15898 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15899 added newline in the def file to keep MSC compiler satisfied
15901 * sdcc/src/z80/gen.c:
15902 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15903 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15904 - solved MSC error in function aopDump()
15906 * sdcc_vc.h: define PREFIX as "\\sdcc"
15908 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
15909 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15911 2002-06-22 Scott Dattalo <scott AT dattalo.com>
15912 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15913 - Rewrote the register banking algorithm.
15914 - Added pCode live-range analysis to registers (for now, only non-used and
15915 singly-used registers optimized away)
15917 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15919 * 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.
15921 2002-05-10 Scott Dattalo <scott AT dattalo.com>
15922 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15924 2002-04-22 Michael Hope <michaelh AT vroom>
15926 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15928 * configure.in (DD_COPT): Added include support required for gbdk.
15930 * .version: Bumped version number just to increase it.
15932 * src/SDCCmain.c: Added -nostdinc to the default options.
15934 2002-04-15 Michael Hope <michaelh AT vroom>
15936 * device/lib/z80/printf.c (sprintf): Added.
15938 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15940 * src/z80/peeph.def: Added transpose redundent load rule.
15942 * src/z80/main.c: Added force callee saves for jaune.
15944 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15946 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15948 2002-03-28 Johan Knol <johan AT balder>
15950 * src/SDCCval.c: fixed bug #532436
15952 2002-03-14 Scott Dattalo <scott AT dattalo.com>
15954 Added "char *Processor" field to the port structure.
15957 Added -p option. Allows port dependent processor to be specified.
15960 Initialized the new field char *Processor field to NULL in all ports
15963 Compiler generated registers for interrupt context saving
15964 were not getting allocated.
15966 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
15969 Fixed left shift. Will promote the left side of a left shift
15970 if a) left shifting more than size of operand or b) when assigned
15971 to something size > size of left side
15973 2002-03-14 Scott Dattalo <scott AT dattalo.com>
15975 tons of changes. Register allocation has been
15976 rewritten. Added customization for the various PICs. Flow
15977 analysis is restructured. ...
15979 * src/pic/device.h:
15982 * src/pic/device.c:
15983 Added. device.c is a PIC port hack to accomodate variations
15986 2002-03-13 Michael Hope <michaelh AT vroom>
15988 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
15990 2002-03-04 johanknol <johanknol AT manik>
15992 * /src/SDCCval.c: fixed
15994 const unsigned char arr[][2] = { { 0, 1 } };
15995 t18.c:1: error: Initializer element is not constant
15997 2002-03-04 bela <bela AT manik>
15999 * /device/include/mcs51reg.h:
16000 ds89c420 register definition update
16002 2002-03-03 <johan AT FRIJA>
16004 * support/Util/SDCCerr.c: did something, but don't no why anymore
16006 * support/regression/tests/bug-524691.c: made it a little less shy
16008 * src/SDCCast.c (decorateType): fixed bug #524697
16010 * src/SDCCast.c: made some lineno improvements
16012 * src/SDCCval.c (getNelements): changed warning to error
16014 * src/SDCCglue.c (printIvalArray): changed warning to error
16016 * src/SDCCicode.c: fixed a warning for mingw
16018 * src/SDCCast.c (decorateType): fixed the << promotion for ops
16020 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
16022 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
16024 * src/ds390/peeph.def:
16025 Added some more peephole rules
16027 * src/ds390/gen.c: Various fixes & enhancements
16029 * src/SDCClrange.c, src/SDCClrange.h:
16030 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
16032 * src/ds390/ralloc.c:
16033 various fixes & enhancements (ds390) specific
16035 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
16036 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
16039 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
16041 2002-03-02 <johan AT FRIJA>
16043 * src/SDCCast.c (decorateType): fixed bug #524708
16045 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
16047 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
16049 2002-03-01 Michael Hope <michaelh AT vroom>
16051 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
16053 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
16055 2002-03-01 <johan AT FRIJA>
16057 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
16059 * src/SDCCast.c (decorateType): fixed bug #524209
16061 * src/SDCCval.c (valNot): fixed bug #524195
16063 2002-02-26 <johan AT balder>
16065 * src/xa51/gen.c: fixed a warning
16067 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
16069 * src/SDCCast.c (decorateType): fixed bug #522534
16071 2002-02-23 <johan AT balder>
16073 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
16075 2002-02-22 <johan AT balder>
16077 * src/SDCCast.c: fixed bug #514865
16079 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
16081 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
16083 * sdcc/src/SDCCloop.c:
16084 Previous fix was not good. basic blocks that have "break" or "return" are
16085 not really partof a loop , but live ranges used in these blocks should
16086 be live thru the entire loop, so set partOfLoop but don't add them to
16089 2002-02-21 <johan AT FRIJA>
16091 * src/SDCCcse.c: fixed bug #514308
16093 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
16096 Fixed BUG #519583. If a conditional block ended in a return/break
16097 statement inside a loop, it was not being considered part of the loop.
16099 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
16101 2002-02-10 Karl Bongers <karl AT turbobit.com>
16104 Fixed up SDCDB debugger somewhat. Updated debugger/README
16105 with lots of comments and notes.
16107 * device/examples/test2.c:
16108 Fix bug, "red" variable not being initialized(compiler complained).
16110 * device/examples/Makefile, examples/test3.c:
16111 Add Makefile in device/examples folder, compiles test3.c
16112 for use as a multiple module SDCDB test case.
16114 * sim/ucsim/cmd.src/cmdset.cc:
16115 Took out debug printfs in ucsim "next" command.
16117 * sim/ucsim/xa.src:
16118 Karl and Johan start ucsim XA support. Most dissassembly working,
16119 about 75% emulation done(plenty of work remaining).
16121 * sim/ucsim/z80.src:
16122 Add Z80 support to ucsim, add test-ucz80 regression test,
16123 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
16124 Notice z80 compiler fails on examples/test3.c/crc code.
16126 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
16128 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
16129 Added support for --parms-in-bank1
16131 * src/ds390/peeph.def:
16132 added a few more peephole optimzations
16134 * src/ds390/main.c:
16135 1) added __builtin_inp & __builtin_outp used to read in data of given length
16136 from a memory mapped port
16137 2) added __builtin_memcmp
16138 3) added __builtin_swapw swap bytes of a short
16140 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
16141 1) handle multiple send & receives from register bank1
16142 2) ralloc can now allocate DPTR1 to some liveRanges
16144 * src/SDCCsymt.c, src/SDCCsymt.h:
16145 changes to handle multiple sends & receives
16147 * src/SDCCptropt.h:
16148 added some pointer arithmetic optimization
16150 * src/SDCCptropt.c:
16151 added some pointer arithmetic optimizations but not stable yet so not
16152 called from anywhere (will get this working shortly)
16154 * src/SDCCopt.c: fixed for multiple sends & receives
16157 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
16158 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
16159 set preprocessor defines (depending on options)
16161 * src/SDCCicode.c, src/SDCCicode.h:
16162 changes made to handle multiple sends & receives
16165 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
16167 * src/SDCCcse.c, src/SDCCcse.h:
16168 added function findbackward def (to be used in upcoming optimization)
16170 * src/SDCCcflow.c, src/SDCCcflow.h:
16171 added function returnAtEnd - to determine if a basic block terminates with
16174 * src/SDCCast.c, src/SDCCast.h:
16175 added option parms-in-bank1
16177 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
16178 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
16179 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
16180 adjusted for --parms-in-bank1 option
16182 * device/include/string.h:
16183 donot redefine "reentrant" keyword
16185 * device/include/ds80c390.h: Added some more SFRs
16187 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
16189 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
16191 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
16193 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
16195 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
16197 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
16199 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
16201 * Added --xram-movc option
16203 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
16205 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16207 2002-01-11 Johan Knol
16209 * Added math lib of Jesus Calvino-Fraga
16211 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
16213 * src/SDCCmain.c (processFile): fix processing of ../../src.c
16214 * support/regression/Makefile: new target test-mcs51-stack-auto
16215 * support/regression/ports/mcs51-stack-auto/spec.mk: added
16217 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
16219 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16221 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
16223 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16225 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
16227 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16229 * src/SDCCglue.h: add definition for printIvalChar()
16231 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
16233 * src/SDCCast.c: fix #498138 by Johan
16235 * src/SDCCglue.c: fix #498138 by Johan
16237 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
16239 * support/regression/Makefile: fix clean
16241 * support/regression/ports/ds390/support.c: fix transmission of last character
16243 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
16245 * /sdcc/src/ds390/gen.c:
16246 a) improved computing address of stack variable
16247 b) took out some #if 0 code
16248 c) improved parmBytes adjustment
16249 d) improved genPlusIncr & genMinusIncr
16250 e) genCmp could generate bad code (when left assigned to DPTR)
16251 f) Fixed bug in hasInc
16253 * /sdcc/src/ds390/ralloc.c:
16254 a) packRegsForSupport could mess up live information (Fixed)
16255 b) packRegsDPTRuse could be incorrect for left & right shift
16257 * /sdcc/src/mcs51/ralloc.c:
16258 packRegsForSupport could mess up the live information (Fixed)
16260 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16262 * /sdcc/src/SDCCast.c:
16263 can reverse a loop even if function call is present as long
16264 as the loop control variable is local & is not passed as parameter
16266 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
16268 * /sdcc/ChangeLog: *** empty log message ***
16270 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16271 More builtin function additions for TININative
16273 * /sdcc/src/ds390/ralloc.c:
16274 Had broken the regression testsuite
16276 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16278 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16279 Added funcattr hasStackParms will be set for reentrant functions when there
16280 are paramteres on the stack, this helps in minimizing frame pointer generation
16281 typeFromStr can handle function pointers now
16283 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16284 *** empty log message ***
16286 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
16288 * /src/ds390/gen.c, /src/ds390/main.c:
16289 More builtin function additions for TININative
16291 * /src/ds390/ralloc.c:
16292 Had broken the regression testsuite
16294 * /src/SDCCast.c: Fixed a bug in dumptree
16296 * /src/SDCCsymt.c, /src/SDCCsymt.h:
16297 Added funcattr hasStackParms will be set for reentrant functions when there
16298 are paramteres on the stack, this helps in minimizing frame pointer generation
16299 typeFromStr can handle function pointers now
16301 * /doc/builtins.txt, /doc/TININative.txt:
16302 *** empty log message ***
16305 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
16307 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16308 ALPHA version for -mTININative
16310 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16311 updated to reflect changes in the port structure
16314 added function do_assemble (similar to do_link) if non-null this function
16315 will be called to do assembly (-mTININative) requires a multi command
16317 added function genAssemblerEnd will be called to generate assembler Epilogue
16320 added _JavaNative to debug info printing
16322 * /src/SDCCmain.c: added option --tini-libid
16323 added port->do_assemble function (-mTININative) has a multi command assemble
16325 * /src/SDCCglue.c: Disabled "constExpr" check
16326 added port->genAssemblerEnd function
16328 * /src/SDCCglobl.h: Added option --tini-libid value
16331 tookout optimizeCompare from the header (has no external references)
16333 * /src/SDCCast.c: made one more function "static"
16335 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
16337 * src/z80/mappings.i: Added z80asm support.
16339 * src/z80/main.c: Added z80asm support on --asm=z80asm
16341 * src/z80/gen.c: Fixed asm portability issues.
16343 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
16345 * src/SDCCglue.c (printExterns): Added global/extern split.
16347 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
16349 * support/regression/Makefile: added test for mcs51 model large
16351 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16353 * support/regression/ports/gbz80/spec.mk: added -mgbz80
16355 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
16357 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
16359 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
16361 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16363 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16365 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
16367 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16369 * support/regression/tests/simplefloat.c: Port to mcs51.
16371 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
16372 * support/regression/tests/bug-485362.c: Added.
16374 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16376 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16378 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16380 * src/z80/gen.c (aopDump): Added a dump function.
16382 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
16383 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16385 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
16387 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
16389 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
16391 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
16393 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
16395 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
16397 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16399 * support/regression/ports/ds390/support.c: Use tinibios.
16401 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
16403 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
16405 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
16406 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
16408 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
16410 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
16412 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
16414 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
16416 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
16417 (packRegsForIYUse): Created and optimised.
16419 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
16421 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
16422 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
16424 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
16426 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
16428 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
16430 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
16432 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
16434 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
16436 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
16438 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16440 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16442 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16444 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
16446 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16447 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16448 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16450 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16452 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16453 (genNotFloat): Added.
16454 (genUminusFloat): Added.
16456 * device/lib/z80/Makefile: Added floating pt stubs.
16458 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16460 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16462 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16464 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
16466 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16468 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16470 * sdcc/support/regression/Makefile: Add port ds390.
16472 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16474 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16476 * sdcc/support/regression/ports/ds390/spec.mk: Added.
16478 * sdcc/support/regression/ports/ds390/support.c: Added.
16480 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16482 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16484 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16486 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
16488 * device/include/malloc.h: Added z80 and gbz80 support.
16490 * device/lib/gbz80/heap.s: Added.
16492 * device/lib/z80/heap.s: Added.
16494 * device/lib/malloc.c: Added z80 and gbz80 support.
16496 * support/regression/tests/malloc.c (testMalloc): Added.
16498 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16500 * support/regression/tests/bug-478094.c: Added.
16502 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16504 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
16506 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16508 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16510 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16512 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16514 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16516 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
16518 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16520 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
16522 * support/regression/tests/bug-477927.c: Added.
16524 * src/z80/peeph.def: Added minor rules.
16526 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16528 * src/z80/peeph.def: Added jump optimisation modification.
16530 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
16532 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16534 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
16536 * support/regression/tests/funptrs.c: Added.
16538 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
16540 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16542 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
16544 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16546 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16548 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16549 (movLeft2ResultLong): Created.
16551 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16552 (joinPushes): Added. Joins two char pushes into a word push.
16554 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
16556 * support/cpp2/Makefile.in (install): Added creation of dest dir.
16558 * support/makebin/Makefile (install): Added creation of dest dir.
16560 2001-10-24 Karl Bongers <karl AT turbobit.com>
16562 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16564 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
16566 * src/z80/ralloc.c: Turned off faulty pack for one use.
16568 * src/z80/peeph-gbz80.def: Removed redundent restart options.
16570 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16572 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
16574 * support/regression/Makefile: Improved clean
16576 * support/regression/ports/gbz80/spec.mk: Added clean
16578 * support/regression/ports/host/spec.mk: Added clean
16580 * support/regression/ports/z80/spec.mk: Added clean
16582 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16584 * support/regression/ports/mcs51/timeout.c: little improvements
16586 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
16588 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16590 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16592 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16594 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
16596 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16598 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16600 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
16601 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16603 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16605 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16607 * src/mcs51/main.c (_linkCmd): Added bin path to command.
16609 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16611 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16613 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16615 * support/regression/tests/longor.c: Added.
16617 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
16619 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16621 * as/mcs51/aslink.h: define PATH_MAX
16623 * as/mcs51/asm.h: define PATH_MAX
16625 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16627 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16629 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16631 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16633 * src/SDCCglobl.h: define PATH_MAX
16635 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16637 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16639 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
16641 * src/z80/gen.c (gencjneshort): Fixed
16643 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16645 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
16647 * support/regression/tests/bug-469671.c: Added.
16649 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16651 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
16653 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16655 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
16657 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
16659 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16661 * src/device/lib/_mulint.c : removed hint: nooverlay bug
16663 * src/device/lib/_mullong.c : removed hint: nooverlay bug
16665 * src/device/lib/_divuint.c : removed hint: nooverlay bug
16667 * src/device/lib/_divulong.c: removed hint: nooverlay bug
16669 * src/device/lib/_moduint.c : removed hint: nooverlay bug
16671 * src/device/lib/_modulong.c: removed hint: nooverlay bug
16673 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
16675 * 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.
16677 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
16679 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16681 2001-10-07 <johan AT FRIJA>
16683 * device/lib/gets.c (gets): fixed the return value.
16685 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
16686 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16688 * 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.
16690 * 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.
16692 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16694 * src/pic/gen.c: Removed Safe_strdup.
16696 * configure.in: Added option to enable libgc support.
16698 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16699 (bitVectUnion): Optimised.
16700 (bitVectIntersect): Optimised.
16701 (bitVectBitsInCommon): Optimised.
16702 (bitVectCplAnd): Optimised.
16704 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
16706 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16708 * src/SDCCmain.c: distinguish between assembler debug and plain options
16710 * src/avr/main.c: remove standard assembler options
16712 * src/ds390/main.c: remove standard assembler options
16714 * src/mcs51/main.c: remove standard assembler options
16716 * src/port.h: removed "PENDING" comment
16718 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16720 * src/device/lib/_mulint.c : new, with assember functions
16722 * src/device/lib/_mullong.c : new, with assember functions
16724 * src/device/lib/_divuint.c : with assember functions
16726 * src/device/lib/_divsint.c : with assember functions
16728 * src/device/lib/_divulong.c: with assember functions
16730 * src/device/lib/_divslong.c: with assember functions
16732 * src/device/lib/_moduint.c : with assember functions
16734 * src/device/lib/_modsint.c : with assember functions
16736 * src/device/lib/_modulong.c: with assember functions
16738 * src/device/lib/_modslong.c: with assember functions
16740 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
16742 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16744 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
16745 replaced _mululong.c and _mulslong.c by _mullong.c
16747 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16749 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16751 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16753 * src/SDCCglue.c: test, if win32api is available for MINGW
16755 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16757 * src/SDCCsymt.c: no more _modifier in printTypeChain()
16758 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16759 * support/regression/ports/gbz80/spec.mk: removed GENERIC
16760 * support/regression/ports/host/spec.mk: removed GENERIC
16761 * support/regression/ports/mcs51/spec.mk: removed GENERIC
16762 * support/regression/ports/z80/spec.mk: removed GENERIC
16764 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
16766 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16768 * support/regression/tests/bug-467035.c: Created.
16770 2001-10-01 <johan AT FRIJA>
16772 * src/SDCC.y: fixed bug #466586 part 1
16774 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
16776 * SDCCicode.c: z80 has no generic pointers
16777 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16779 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
16781 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16783 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
16785 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16787 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16789 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
16791 * configure.in: Fixed up so that ucsim is only configured once.
16793 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16795 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16796 (getPathDifference): As above.
16798 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
16800 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16802 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
16803 * .version: Updated to 2.3.1
16805 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16806 Added copyright header.
16808 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16809 (assemble): Added support for macro based assembler commands.
16810 (linkEdit): Added support for macro based linker commands.
16811 (preProcess): Changed the pre-processor to use macros.
16812 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16813 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16815 * device/lib/z80/crt0.s: Added module name for debugging.
16817 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
16819 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16821 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16823 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16825 * src/Makefile.in: Added SDCCmacro and SDCCutil
16827 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
16829 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16831 2001-09-16 <johan AT FRIJA>
16833 * 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.
16835 2001-09-15 <johan AT FRIJA>
16837 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16838 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16840 2001-09-11 <johan AT FRIJA>
16842 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16844 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
16846 * support/regression/tests/bug-460444.c: Added test case.
16848 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16849 (genCast): Added justification for all of the asserts.
16851 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
16853 * support/regression/support.c: _xdata replaced by xdata
16855 * support/regression/spec.mk: removed _generic
16857 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
16859 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16861 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16862 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16864 * src/z80/peeph.def: Added a rule to optimise shift then compare.
16866 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16868 * support/regression/tests/bug-460010.c: Added test case.
16870 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16872 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
16874 * support/regression/Makefile: inter-port-clean adjusted for mcs51
16876 * support/regression/testfwk.c: removed workaround for bug #436344
16878 * support/regression/tests/bp.c: use less memory with mcs51
16880 * support/regression/tests/bug-441448.c: use less memory
16882 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16884 * support/regression/collate-results.py: typo
16886 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
16888 * support/regression/tests/fetchoverlap.c: Added new test case.
16890 * support/regression/tests/bp.c: Added new test case.
16892 * support/regression/tests/bug-448984.c: Added new test case.
16894 * support/regression/tests/pow2shifts.c: Added new test case.
16896 * src/z80/gen.c: Turned off the noise it normally generates for the release.
16897 (genlshTwo): Fixed right shift for count > 8.
16899 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16901 2001-09-08 <johan AT FRIJA>
16903 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16905 2001-09-07 <johan AT FRIJA>
16907 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16909 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16911 2001-09-06 <johan AT FRIJA>
16913 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16914 * bernhard noted me at this: "() equals to (void)" (1.38)
16916 2001-09-05 <johan AT FRIJA>
16918 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16920 2001-09-04 <johan AT FRIJA>
16922 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16925 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
16927 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
16929 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
16931 * link/z80/aslink.h: Fixed path for PATH_MAX
16933 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
16935 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16937 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16939 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16941 * 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.
16943 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
16945 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16946 (genCmp): Fixed up genCmp for the GB with longs.
16948 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16950 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16952 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16954 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16956 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
16958 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
16960 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
16962 * 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.
16964 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16966 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
16968 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
16970 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16972 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
16974 * sim/ucsim/configure: little improvement of Cygwin-detection
16975 * sim/ucsim/configure.in: little improvement of Cygwin-detection
16976 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16977 * support/regression/tests/bug-221100.c: small changes for mcs51
16978 * support/regression/tests/bug-221168.c: small changes for mcs51
16979 * support/regression/tests/bug-227710.c: small changes for mcs51
16980 * support/regression/tests/staticinit.c: small changes for mcs51
16981 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16982 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
16983 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601