1 2008-08-23 Borut Razem <borut.razem AT siol.net>
3 * src/pic16/gen.c: applied patch
4 2048464: PIC16: fix genUminus - addresses not.c regression test
7 2008-08-22 Borut Razem <borut.razem AT siol.net>
9 * device/lib/pic16/configure, device/lib/pic16/configure.ac,
10 src/pic16/main.c: allow spaces in gpasm and gplink paths
12 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
15 * src/z80/peeph-z80.def: minor peephole improvement
17 2008-08-15 Raphael Neider <rneider AT web.de>
19 * src/z80/gen.c (_vemit2): suppress compiler warning
21 * src/pic/*.[ch]: make proper use of header files and avoid
22 ad-hoc extern declarations, mark module-local helpers 'static',
23 removed dead/replaced code, no functional changes
24 * src/pic16/pcode.c: disentangled from pic14 backend
26 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
28 * src/z80/gen.c: fixed #2051348
29 * support/regression/tests/bug-2051348.c: regression test for #2051348
31 2008-08-10 Raphael Neider <rneider AT web.de>
34 * Makefile.common.in: export PACKAGE for $docdir,
35 fixes #1957036, avoid some "underquoted definition" warnings
36 * configure: regenerated
38 2008-08-10 Raphael Neider <rneider AT web.de>
40 * device/lib/pic16/**: build pic16 library using autotools for
41 improved dependency tracking
43 * device/lib/Makefile.in,
45 * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
47 2008-08-10 Raphael Neider <rneider AT web.de>
49 * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
50 local variables if --nooverlay is given, workaround for #2023121
52 2008-08-08 Raphael Neider <rneider AT web.de>
54 * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
56 2008-08-08 Raphael Neider <rneider AT web.de>
58 * src/pic/pcoderegs.c,
60 * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
62 2008-08-07 Borut Razem <borut.razem AT siol.net>
64 * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
65 device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
66 device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
67 support/cpp/libcpp/lex.c, doc/sdccman.lyx:
68 applied modified patch 2038174: Add support for binary constants v2
70 * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
72 2008-08-04 Raphael Neider <rneider AT web.de>
77 * src/pic16/main.c: enable --optimize-goto by default
79 * device/lib/pic16/Makefile.common.in: suppress removed option
82 * src/pic16/genutils.c: avoid too long relative branches (#2031890)
84 2008-07-30 Borut Razem <borut.razem AT siol.net>
86 * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
87 applied patch 22032433: PIC16: fix constant strings,
90 2008-07-29 Borut Razem <borut.razem AT siol.net>
92 * src/pic16/gen.c: applied patches:
93 2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
94 2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
95 2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
98 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
100 * src/port.h: Fixed typo in comment
102 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
104 * src/z80/mappings.i: Implemented RFE #1919415
105 * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
106 #1880202, #1914434, prepared for RFE #1703943
108 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
111 * src/z80/peeph-z80.def,
112 * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
113 preparation for Z80 peephole improvements
115 2008-06-21 Raphael Neider <rneider AT web.de>
117 * device/include/pic16/pic18f66j60.h,
118 * device/include/pic16/pic18f66j65.h,
119 * device/include/pic16/pic18f67j60.h,
120 * device/include/pic16/pic18f86j60.h,
121 * device/include/pic16/pic18f86j65.h,
122 * device/include/pic16/pic18f87j60.h,
123 * device/include/pic16/pic18f96j60.h,
124 * device/include/pic16/pic18f96j65.h,
125 * device/include/pic16/pic18f97j60.h,
126 * device/lib/pic16/libdev/pic18f66j60.c,
127 * device/lib/pic16/libdev/pic18f66j65.c,
128 * device/lib/pic16/libdev/pic18f67j60.c,
129 * device/lib/pic16/libdev/pic18f86j60.c,
130 * device/lib/pic16/libdev/pic18f86j65.c,
131 * device/lib/pic16/libdev/pic18f87j60.c,
132 * device/lib/pic16/libdev/pic18f96j60.c,
133 * device/lib/pic16/libdev/pic18f96j65.c,
134 * device/lib/pic16/libdev/pic18f97j60.c,
135 * device/include/pic16/pic16devices.txt,
136 * device/include/pic16/pic18fregs.h,
137 * device/lib/pic16/pics.all: added new devices
139 * device/include/pic16/adc.h,
140 * device/lib/pic16/libio/adc/adcbusy.c,
141 * device/lib/pic16/libio/adc/adcopen.c,
142 * device/lib/pic16/libio/adc/adcsetch.c,
143 * device/lib/pic16/libio/i2c/i2copen.c,
144 * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
145 all changes from a patch by Anton Strobl
147 2008-06-12 Borut Razem <borut.razem AT siol.net>
149 * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
150 sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
151 sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
152 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
153 sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
154 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
155 sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
156 sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
157 fixed bug 1990586: s51 simulator, uc::disass() unimplemented
158 by applying the modified patch from Risto Huotari
160 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
163 * doc/sdccman.lyx: bumped sdcc version to 2.8.2
164 * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
165 * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
166 * support/regression/tests/bug1938300.c: new, added
168 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
170 * device/include/asm/ds390/features.h,
171 * device/include/asm/mcs51/features.h,
172 * device/include/mcs51/regc515c.h: inserted LGPL notice
174 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
176 * device/lib/gbz80/div.s,
177 * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
178 patch 1597883, Thanks Robert Ramey
180 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
182 * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
183 createIvalCharPtr, createIvalPtr, createIval),
185 * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
186 initializers for local auto variables
187 * support/regression/tests/zeropad.c: added testcase for auto initializers
189 2008-05-26 Raphael Neider <rneider AT web.de>
191 * device/lib/pic16/startup/crt0.c,
192 * device/lib/pic16/startup/crt0i.c,
193 * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
194 explicit, fixed curr_entry loop for >= 256 initializer records,
195 removed debug code (write to 0xf7e)
197 2008-05-25 Raphael Neider <rneider AT web.de>
199 * device/include/pic/pic16f627a.h,
200 * device/include/pic/pic16f628a.h,
201 * device/include/pic/pic16f648a.h: added missing ports
203 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
205 * device/include/float.h: added __INFINITY
206 * device/lib/_fsadd.c: handle overflows
207 * device/lib/_fsmul.c,
208 * device/lib/_fsdiv.c: use __INFINITY
209 * device/lib/_fseq.c,
210 * device/lib/_fsneq.c: handle -0.0
211 * sim/ucsim/s51.src/uc89c51r.cc,
212 * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
213 * sim/ucsim/sim.src/hwcl.h: */* confuses VC
214 * src/mcs51/gen.c (genSend): fixed bug with --xstack
215 * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
216 * support/regression/tests/snprintf.c: test bug with --xstack
218 2008-05-19 Philipp Klaus Krause <pkk AT spth.de>
220 * src/SDCCpeeph.c (callFuncByName):
221 Support nested parenthesis in peephole function arguments (#1967300)
223 2008-05-19 Raphael Neider <rneider AT web.de>
225 * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
226 fixed duplicate labels (#1911325)
228 2008-05-19 Raphael Neider <rneider AT web.de>
230 * src/regression/empty.c: suppress warning
231 * src/regression/pointer1.c: enabled index_by_pointer()
232 * src/regression/inline.c: now works for pic16 as well
234 * src/pic16/device.c: include dbuf declarations
235 * src/pic16/device.h: removed obsolete prototypes
237 * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
238 * src/pic16/glue.c: made purely local functions static,
239 (pic16_printGPointerType, pic16_printIvalCharPtr,
240 pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
241 generic pointers' tags (#1961866)
243 * src/pic16/pcode.c (assignValnums): optimize literal assignments
245 2008-05-19 Borut Razem <borut.razem AT siol.net>
247 * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
248 fixed typo, uninstall include/pic16/pic16devices.txt
250 2008-05-18 Borut Razem <borut.razem AT siol.net>
252 * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
253 the buffer is null terminated
254 * src/device/pic16.c:
255 applied modified patch 1965676: Patch for Win32 16 bit PIC
256 * sdcc_vc_in.h: defined YY_NO_UNISTD_H
258 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
260 * src/SDCC.lex (check_type),
261 * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
264 * as/z80/clean.mk: also clean *.dep
265 * device/lib/pic16/libsdcc/stack/Makefile,
266 * sim/ucsim/libtool: removed as they are rebuild by configure
267 * src/clean.mk: removed izt, so Makefile is not deleted for distclean
269 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
271 * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
272 fixupInline instead of createFunction to fix bug 1864577
273 (inlineFindMaxBlockno): removed, use global blockNo
274 * src/SDCCglobl.h: added blockNo
276 * src/z80/peep.h: modified properties
277 * support/regression/tests/bug1864577.c: new, added
279 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
282 * as/mcs51/asm.h: added org_cnt
283 * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
284 * as/mcs51/asout.c: changed old K&R to ANSI
285 * as/mcs51/Makefile.in: use common identifiers
291 * as/hc08/Makefile.bcc,
292 * as/hc08/Makefile.in: synchronized with as/mcs51/*
293 * sdcc_vc_in.h: added define __func__
294 * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
295 Thanks Ruud van Silfhout
296 * support/regression/tests/bug1717305.c: new, added
298 2008-05-05 Borut Razem <borut.razem AT siol.net>
300 * support/regression/Makefile.in,
301 support/regression/ports/ds390/spec.mk,
302 support/regression/ports/hc08/spec.mk,
303 support/regression/ports/mcs51-common/spec.mk,
304 support/regression/ports/pic14/spec.mk,
305 support/regression/ports/pic16/spec.mk,
306 support/regression/ports/ucz80/spec.mk,
307 support/regression/ports/z80/spec.mk:
308 added INC_DIR and LIBDIR paths
309 * src/ds390/gen.c: removed duplicated selicolon
311 2008-05-04 Borut Razem <borut.razem AT siol.net>
313 * support/regression/Makefile.in,
314 support/regression/fwk/lib/testfwk.c,
315 support/regression/ports/ds390/spec.mk,
316 support/regression/ports/hc08/spec.mk,
317 support/regression/ports/mcs51-common/spec.mk,
318 support/regression/ports/mcs51-large/spec.mk,
319 support/regression/ports/mcs51-medium/spec.mk,
320 support/regression/ports/mcs51-small/spec.mk,
321 support/regression/ports/mcs51-stack-auto/spec.mk,
322 support/regression/ports/mcs51-xstack-auto/spec.mk,
323 support/regression/ports/pic14/spec.mk,
324 support/regression/ports/pic16/spec.mk,
325 support/regression/ports/ucz80/spec.mk:
326 added possibility to define the sdcc binary directory SDCC_BIN_PATH
327 used to run regeression tests
329 2008-05-01 Raphael Neider <rneider AT web.de>
331 * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
332 supported devices and instructions to add new ones
334 2008-05-01 Raphael Neider <rneider AT web.de>
336 * device/include/pic16/adc.h,
337 device/lib/pic16/libio/adc/adcbusy.c,
338 device/lib/pic16/libio/adc/adcopen.c,
339 device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
340 18f2455 style ADC devices, based on patch #1776197
341 * device/lib/pic16/libio/adc/adcclose.c,
342 device/lib/pic16/libio/adc/adcconv.c,
343 device/lib/pic16/libio/adc/adcread.c: cosmetic changes
344 * device/include/pic16/{pic18f2331.h,pic18f2431.h},
345 device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
346 * device/include/pic16/pic18f4431.h,
347 device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
348 * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
350 2008-05-01 Raphael Neider <rneider AT web.de>
352 * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
353 moved xinst flag into pic16_options_t
354 * src/pic16/device.c (default_device, pic16_list_devices,
355 pic16_find_device): removed references to sfrrange
356 * src/pic16/gen.c (genFunction),
357 src/pic16/glue.c (pic16initialComments),
358 src/pic16/main.c (pic16_optionsTable),
359 src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
361 * device/include/pic16/pic16devices.txt: removed sfrrange lines
363 2008-04-29 Raphael Neider <rneider AT web.de>
365 * src/pic16/devices.inc,
366 device/include/pic16/pic16devices.txt: replaced compiled-in list
367 of devices with a variant parsed at runtime
368 * src/pic16/device.c: added support for parsing pic16devices.txt,
370 * src/pic16/device.h: removed (now) unused fields from PIC_device
371 * src/pic16/main.c: removed #pragma maxram,
372 (_pic16_initPaths): removed bogus generation of search paths,
373 setup the port proper only after the search paths (for
374 pic16devices.txt) are set up,
375 (_pic16_finaliseOptions): moved processor dependant code here
376 from _pic16_initPaths(), clean up
377 * src/pic16/ralloc.c (pic16_init_stack),
378 * src/pic16/ralloc.h,
379 * src/pic16/pcode.c: clean up
380 * device/include/Makefile.in,
381 support/scripts/sdcc.nsi: also install/package pic16devices.txt
382 * support/scripts/inc2h-pic16.pl: updated instructions
384 2008-04-29 Raphael Neider <rneider AT web.de>
386 * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
387 pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
388 device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
389 pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
390 added missing family members and 18f2480/2580/4480/4580 family
391 * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
392 * device/include/pic16/pic18f2525.h: use 18f4620.h
393 * device/include/pic16/pic18f6680.h: use 18f8680.h
394 * device/include/pic16/pic18fregs.h,
395 device/lib/pic16/pics.all,
396 src/pic16/devices.inc: add new devices
397 * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
398 * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
399 * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
400 * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
401 prevent attempting to build the libio for some new devices
403 2008-04-29 Raphael Neider <rneider AT web.de>
405 * debugger/mcs51/Makefile.in: fixed paths to sources
407 2008-04-25 Borut Razem <borut.razem AT siol.net>
409 * as/link/lklibr.c: moved from as/link/z80/lklibr.c
410 * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
411 * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
412 * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
413 as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
414 as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
415 as/link/z80/linkz80.dsp: lklibr.c moved
416 * doc/INSTALL.txt: binary archives in bz2 format
417 * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
419 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
421 * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
422 * support/regression/tests/bug1856409.c: new, added
424 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
427 * src/mcs51/peep.c: Use werror for error messages.
428 * src/SDCCicode.c (geniCodeConditional),
429 * src/SDCCsymt.c (structElemType): fixed bug 1839321
430 * src/z80/Makefile.bcc,
431 * src/z80/z80.dsp: added src/z80/peep.c/h
432 * support/regression/tests/bug1839321.c: new, added
434 2008-04-20 Raphael Neider <rneider AT web.de>
436 * device/include/pic16/pic18f2455.h: added bitfields for port C
438 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
440 * src/z80/peep.c: Use werror for error messages.
442 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
444 * src/z80/peep.h (declaration of notUsed()),
445 * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
447 * src/z80/z80.h (added dependency on peep.h),
448 * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
451 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
453 * src/SDCCpeeph.c (added support for notUsed()),
454 * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
456 * src/port.h (removed dependency on mcs51/peep.h, added declaration
457 for notUsed()): Implemented generic (that is not port-specific) part
460 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
462 * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
463 * device/lib/libsdcc.lib,
464 * device/lib/Makefile.in,
465 * support/regression/ports/mcs51-xstack-auto/spec.mk,
466 * device/lib/calloc.c: renamed to _calloc.c
467 * device/lib/free.c: renamed to _free.c
468 * device/lib/malloc.c: renamed to _malloc.c
469 * device/lib/realloc.c: renamed to _realloc.c
470 * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
471 genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
472 * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
473 genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
474 * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
475 ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
476 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
477 genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
479 * src/mcs51/gen.c: throughout cosmetic changes for syncing both
480 * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
481 * support/regression/tests/bug1509084.c: new, added
483 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
485 * device/include/mcs51/cc2510fx.h: added _XPAGE
486 * device/include/mcs51/compiler.h: cosmetic changes
488 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
490 * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
493 2008-03-31 Borut Razem <borut.razem AT siol.net>
495 * support/cpp2 renamed to support/cpp
496 * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
497 support/cpp2/libiberty/splay-tree.c,
498 support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
499 support/cpp2/libcpp/directives.c,
500 support/cpp2/libcpp/include/cpplib.h,
501 support/cpp2/libcpp/include/symtab.h,
502 support/cpp2/libcpp/include/line-map.h,
503 support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
504 support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
505 support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
506 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
507 support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
508 release version 4.3.0
509 * configure.in, configure, Makefile.in, Makefile.bcc:
510 adapted for moved cpp2
512 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
514 * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
515 thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
517 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
519 * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
521 * support/regression/tests/bug1717943.c: new, added
523 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
525 * src/z80/gen.c (assignResultValue): Reverted reversal of order of
526 bytewise return value assignments introduced in last commit.
528 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
530 * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
531 genMult, genJumpTab):
532 Use 16-bit instructions for addition in some additional cases,
533 implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
535 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
537 * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
538 Implemented RFE #1921450, changed some debug messages.
540 2008-03-30 Borut Razem <borut.razem AT siol.net>
542 * Small Device C Compiler 2.8.0 released
543 * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
544 * support/scripts/sdcc.nsi: added finish page; this version
545 was used for 2.8.0 release
546 * doc/knownbugs.html: removed; magically generated by the build
547 process using gen_known_bugs.pl from now on
549 2008-03-23 Borut Razem <borut.razem AT siol.net>
551 * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
552 and reverted it, since it was already fixed by Raphael ;-)
553 * doc/knownbugs.html: updated for RC2
555 2008-03-22 Raphael Neider <rneider AT web.de>
557 * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
560 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
562 * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
563 * support/regression/tests/bug1839277.c: added related testBug1839299
565 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
567 * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
568 * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
570 * src/mcs51/gen.c: throughout only output hex constants
571 * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
572 * support/regression/tests/bug1839277.c: new, added
574 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
576 * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
577 compilation warning about nested comments.
579 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
581 * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
582 * support/regression/tests/bug1921073.c: new, added
584 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
586 * src/z80/SDCCpeeph.c.c (callFuncByName):
587 Commented function parameters.
589 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
591 * src/z80/ralloc.c (packRegsForAccUse2):
592 disabled a broken accumulator packing optimization (fixed #1292721).
593 * support/regression/tests/bug-1292721: Regression test for #1292721.
595 2008-03-16 Raphael Neider <rneider AT web.de>
597 * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
598 fixed code bloat regression using a variant of patch #1915618
600 2008-03-16 Borut Razem <borut.razem AT siol.net>
602 * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
603 icon, changed startup menu for release distribution, code cleaning,
604 create url files instead links in startup menu
606 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
608 * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
609 * support/regression/tests/bug1579949.c: new, added
611 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
613 * device/lib/printf_fast.c: fixed bug 1255403
615 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
617 * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
618 * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
620 2008-03-14 Borut Razem <borut.razem AT siol.net>
622 * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
624 * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
625 is correctly displayed
626 * as/link/z80/lkmain.c: usage line commented out
628 2008-03-13 Borut Razem <borut.razem AT siol.net>
630 * doc/sdccman.lyx: corrected to be able to convert to PDF,
631 updated the list pf supported pic14 devices
633 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
635 * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
637 2008-03-12 Borut Razem <borut.razem AT siol.net>
639 * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
640 fixed documentation request #1718191
641 * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
642 * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
645 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
647 * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
648 * support/regression/tests/bug1505811.c: new, added
650 2008-03-09 Raphael Neider <rneider AT web.de>
652 * device/include/pic16/pic18f2620.h,
653 * device/include/pic16/pic18f4620.h,
654 * device/lib/pic16/libdev/pic18f2620.c,
655 * device/lib/pic16/libdev/pic18f4525.c,
656 * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
657 family to consistently use pic18f4620.[ch], fixes #1832562
659 2008-03-09 Borut Razem <borut.razem AT siol.net>
661 * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
662 changed sdcc version to 2.8.0
663 * knownbugs.html: regenerated
664 * support/scripts/gen_known_bugs.pl: added number of open bugs
666 2008-03-09 Raphael Neider <rneider AT web.de>
668 * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
669 (genOr): read volatile operand even if the result is known,
671 (genOr,genXor): removed unused legacy code,
672 (genDummyRead): use pic16_mov2w_volatile()
674 2008-03-08 Borut Razem <borut.razem AT siol.net>
676 * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
677 cons w. --model-large
678 * support/regression/staticinit.c: added regression test for bug
681 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
683 * src/ds390/gen.c (pushSide, genPcall),
684 * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
685 * src/mcs51/gen.c: cosmetic changes
686 * support/regression/fwk/include/testfwk.h: added macro reentrant
687 * support/regression/tests/bug1908493.c: new, added
689 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
691 * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
693 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
695 * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
696 * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
697 already set in ds390/main.c and mcs51/main.c
699 2008-03-07 Raphael Neider <rneider AT web.de>
701 * src/regression/init0.c: new test for initialized arrays of function
703 * src/regression/Makefile: made a bit more flexible, added init0.c
704 * src/pic/glue.c (emitIvals): hacky fix for initializing from function
705 pointers, closes #1427663
707 2008-03-05 Borut Razem <borut.razem AT siol.net>
709 * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
710 SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
712 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
714 * support/librarian/sdcclib.c:Added feature request 1908061:
715 Synchronise sdcclib commands with ar.
717 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
719 * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
720 and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
721 SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
722 * device/include/mcs51/compiler.h: removed umlauts, added double
725 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
727 * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
728 * support/regression/tests/bug1536762.c: new, added
730 * src/SDCCutil.h: added getBuildDate()
731 * src/SDCCmain.c (printVersionInfo),
732 * src/SDCCglue.c (initialComments): use getBuildDate() instead of
734 * src/*/ralloc.c: removed IS_OP_RUONLY macro
735 * src/ds390/ralloc.c (packRegisters),
736 * src/mcs51/ralloc.c (packRegisters),
737 * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
739 * support/regression/tests/bug1618050.c: new, added
740 * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
741 * support/regression/fwk/include/testfwk.h,
742 * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
745 2008-03-04 Raphael Neider <rneider AT web.de>
747 * src/pic/gen.c: removed unused prototypes, prevent internal errors
748 on accessing OP_SYM_TYPE(op)
749 * src/pic/gen.h: removed unused prototype of genMinusDec()
750 * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
751 fix #1876953 (invalid subtraction code), removed unused code
753 2008-03-03 Raphael Neider <rneider AT web.de>
757 * src/pic/genarith.c,
759 * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
760 AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
762 2008-03-03 Raphael Neider <rneider AT web.de>
764 * src/pic/device.c (find_device): search user-specified paths first
765 for pic14devices.txt, fixes #1900827
767 2008-03-02 Borut Razem <borut.razem AT siol.net>
769 * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
770 AddToPath and RemoveFromPath
772 2008-03-01 Borut Razem <borut.razem AT siol.net>
774 * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
775 work correctly, added debugging support if -DSDCC.DEBUG command line
778 2008-02-28 Borut Razem <borut.razem AT siol.net>
780 * doc/sdccman.lyx: cosmetic changes
782 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
784 * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
785 * doc/sdccman.lyx: fixed unmeant removal of spaces
787 2008-02-27 Borut Razem <borut.razem AT siol.net>
789 * support/scripts/sdcc.nsi: corrected installation directory for
790 current user installation mode
791 * doc/README.txt: added Philipp Klaus Krause to the developers list
793 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
795 * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
797 (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
798 genCodePointerGet, genGenPointerGet): cleanup aop before generating
799 ifxJump to fix bug 1838000
800 * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
801 * support/regression/tests/bug1838000.c: new, added
802 * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
804 2008-02-26 Borut Razem <borut.razem AT siol.net>
806 * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
808 * support/scripts/sdcc.nsi: added MULTIUSER page,
809 NSIS upgraded to version 2.35
811 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
813 * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
814 * support/regression/tests/bug1565152.c: new, added
816 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
818 * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
819 * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
820 * support/regression/tests/bug1670148.c: new, added
822 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
824 * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
826 2008-02-24 Borut Razem <borut.razem AT siol.net>
828 * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
829 is ineffective for unsigned char parameter
831 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
833 * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
834 * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
835 * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
836 * support/Util/MySystem.c (my_system): output errorcode when verbose
838 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
840 * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
843 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
845 * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
848 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
850 * src/SDCCast.c (createIvalStruct): fixed bug 1466761
852 2008-02-21 Borut Razem <borut.razem AT siol.net>
854 * support/regression/Makefile.in,
855 support/regression/ports/ds390/spec.mk,
856 support/regression/ports/hc08/spec.mk,
857 support/regression/ports/mcs51-common/spec.mk,
858 support/regression/ports/pic14/spec.mk,
859 support/regression/ports/pic16/spec.mk,
860 support/regression/ports/ucz80/spec.mk,
861 support/regression/ports/xa51/spec.mk:
862 added CFLAGS when compiling timeout
864 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
866 * support/regression/tests/bugs-1596270-1736867.c: Regression test for
869 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
871 * src/SDCClrange.c (findPrevUse): fixed bug 1888147
872 * support/regression/tests/bug1888147.c: new, added
874 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
876 * src/z80/gen.c: fixed bugs #1596270, #1736867
878 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
880 * src/z80/gen.c: fixed bug in register pair loading when swapping register
881 contents, mostly fixes #1596270
883 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
886 * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
887 peepholes, fixes #1806565
889 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
891 * src/SDCCpeeph.c (operandBaseName): added check for @Ri
892 * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
893 fixes bug 1739475, thanks Robert Larice
894 (rule 271): new, added
896 2008-02-18 Borut Razem <borut.razem AT siol.net>
898 * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
900 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
902 * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
904 2008-02-17 Raphael Neider <rneider AT web.de>
906 * src/pic16/genarith.c,
909 * src/pic16/genutils.c: removed unused legacy code,
910 removed unused fields from struct asmop and struct _G
912 2008-02-17 Raphael Neider <rneider AT web.de>
914 * src/pic16/gen.c (AccRsh): cosmetic changes,
915 (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
916 genRightShiftLiteral): fixed to work with SFRs as result by
917 assigning only once to result,
918 removed a lot of unused/excluded code fragments
920 2008-02-17 Raphael Neider <rneider AT web.de>
922 * device/include/pic/pic16f88.h,
923 * device/include/pic/pic16f886.h,
924 * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
926 2008-02-17 Borut Razem <borut.razem AT siol.net>
928 * src/z80/peeph.def: applied patch
929 #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
930 * src/z80/gen.c, src/z80/peeph.def: applied patch
931 #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
932 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
933 sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
934 sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
935 sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
936 enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
938 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
940 * as/link/mcs51/aslink.dsp: removed SDK define
941 * as/link/z80/clean.mk: brought in sync with other ports
942 * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
943 * as/hc08/Makefile.bcc,
944 * as/mcs51/Makefile.bcc,
945 * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
946 * src/z80/main.c (_setValues): use the now capitalized -Z,
947 (z80_port, gbz80_port): generate debug information when asked
949 2008-02-16 Borut Razem <borut.razem AT siol.net>
951 * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
952 as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
953 as/z80/Makefile.in. as/z80/Makefile.bcc:
954 applied patch #1893393: patch for as-z80 and link-z80 to generate
955 cdb, thanks to Armin Diehl
956 * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
957 as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
958 asnoice.c moved to as/asxxsrc/asnoice.c
959 * src/z80/peeph-gbz80.def: applied patch
960 #1880235: Z80 return peephole, thanks to Philipp Krause
962 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
965 * doc/sdccman.lyx: bumped version to 2.7.5
966 * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
968 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
970 * device/include/pic16/stdlib.h,
971 * device/lib/pic16/libc/stdlib/ltoa.c,
972 * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
974 2008-02-13 Borut Razem <borut.razem AT siol.net>
976 * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
977 * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
978 src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
979 src/SDCCopt.c, src/SDCCval.c:
980 fixed bug #1890273: SDCC Warning 154 shows wrong filename
982 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
984 * src/SDCCsymt.c (compareType): fixed bug 1309013
986 2008-02-09 Borut Razem <borut.razem AT siol.net>
988 * src/SDCCval.c, src/SDCCval.h:
989 code cleaning, added function constChrVal()
990 * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
991 call constChrVal() instead constVal()
993 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
995 * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
998 * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
999 * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1002 2008-02-01 Raphael Neider <rneider AT web.de>
1004 * device/include/pic/pic16f886.h,
1005 * device/include/pic/pic16f887.h: added RA6 and RA7
1007 2008-01-24 Raphael Neider <rneider AT web.de>
1009 * device/include/pic/pic16f88.h: added RA6 and RA7
1010 * device/lib/pic/libdev/disabled_pic16f886.c,
1011 * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
1013 * src/pic16/devices.inc,
1014 * device/include/pic16/pic18f2423.h,
1015 * device/include/pic16/pic18f2523.h,
1016 * device/include/pic16/pic18fregs.h,
1017 * device/lib/pic16/pics.all
1018 * device/lib/pic16/libdev/pic18f2423.c,
1019 * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
1020 * device/lib/pic16/libio/i2c.ignore,
1021 * device/lib/pic16/libio/usart.ignore,
1022 * device/lib/pic16/libio/adc.ignore: ignore new devices
1024 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
1026 * src/SDCCast.c (createRMW): fixed bug 1582651
1028 2008-01-20 Borut Razem <borut.razem AT siol.net>
1030 * src/SDCCcse.c: partially fixed enhancement request
1031 #1793872 - multiply by -1 not collapsed
1032 * support/regression/tests/arithcsi.c: added regression test
1034 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
1036 * as/mcs51/asx8051.dsp: removed define SDK
1037 * as/mcs51/i51mch.c (machine): fixed bug 1865114
1038 * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1040 * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1041 cosmetic changes, brought more in sync, changed old K&R to ANSI
1043 2008-01-13 Borut Razem <borut.razem AT siol.net>
1045 * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1046 * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1048 2007-12-30 Borut Razem <borut.razem AT siol.net>
1050 * src/pic16/gen.c: fixed implementation of bitwise operations for
1052 * support/regression/tests/bitwise.c: added test cases
1054 2007-12-29 Borut Razem <borut.razem AT siol.net>
1056 * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1057 * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1058 src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1059 * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1060 * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1061 src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1062 src/pic16/pcode.[ch]: added const qualifier
1063 * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1064 as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1065 as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1066 as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1067 * as/asxxsrc/aslex.c: use dbuf_getline()
1068 * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1069 as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1070 as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1071 as/z80/asm.h, as/z80/z80adr.c:
1072 changed type of ib and ip to const char *
1074 2007-12-28 Borut Razem <borut.razem AT siol.net>
1076 * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1077 introduced (readlin) - long lines are turuncated
1078 * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1079 as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1080 as/z80/Makefile.in: moved aslex.c to asxxsrc
1081 * as/hc08/aslex.c, as/z80/aslex.c: deleted
1082 * as/hc08/asmain.c, as/mcs51/asmain.c:
1083 added missing initialization of a_addr field
1084 * support/regression/tests/long_asm_line.c: added regtest for long
1087 2007-12-22 Borut Razem <borut.razem AT siol.net>
1089 * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1091 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1093 * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1095 2007-12-16 Borut Razem <borut.razem AT siol.net>
1097 * device/include/pic16/stdbool.h: removed, since already exists in
1098 device/include/; this also fixes bitopcse.c regression test for pic16
1100 * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1101 * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1102 dereference doesn't work; covered by regression test bug1399290
1104 2007-12-05 Borut Razem <borut.razem AT siol.net>
1106 * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1109 2007-12-01 Borut Razem <borut.razem AT siol.net>
1111 * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1112 corrected handling of the highest_valid_address
1114 2007-11-17 Raphael Neider <rneider AT web.de>
1116 * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1117 * src/pic/glue.c (picglue): emit .file if --debug is given
1119 2007-11-17 Raphael Neider <rneider AT web.de>
1121 * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1122 care when left or right operand resides in result, fixes #1830220
1124 2007-11-17 Borut Razem <borut.razem AT siol.net>
1126 * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1127 #983491 - "Merge duplicate strings function is ineffective"
1128 * support/regression/tests/bug-983491.c: regtest disabled
1129 * as/asxxsrc: created
1130 as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1131 as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1132 as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1133 as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1134 as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1135 as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1136 as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1137 as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1138 as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1139 as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1140 as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1141 as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1142 created as/asxxsrc directory, assym.c and strcpi.c moved into it
1144 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1146 * device/include/stdarg.h: added and removed some casts
1147 * src/SDCCsymt.c (compareType): Fully check types between generic and
1148 non-generic pointers, also accept ptr-ptr to void-ptr assignments
1150 2007-11-13 Borut Razem <borut.razem AT siol.net>
1152 * support/regression/tests/bug-1817005.c:
1153 added regtest for bug #1817005 - as-z80 chokes on long labels
1155 2007-11-12 Borut Razem <borut.razem AT siol.net>
1157 * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1158 as/z80/asout.c, as/z80/aslist.c:
1159 fixed bug #1817005 - as-z80 chokes on long labels
1161 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1164 * as/z80/asmain.c: cosmetic changes
1167 * as/z80/alloc.h: removed
1169 * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1170 * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1171 * as/link/hc08/Makefile.in,
1172 * as/link/mcs51/Makefile.in,
1173 * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1175 * as/link/mcs51/lkarea.c,
1176 * as/link/mcs51/lkmain.c: cosmetic changes
1177 * as/link/hc08/lklibr.c,
1178 * as/link/z80/lklibr.c,
1179 * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1180 used cygwin_conv_to_full_posix_path,
1181 added warnings, cosmetic changes, brought more in sync
1182 changed old K&R into ANSI function declarations
1183 * as/link/z80/lklibr.c (loadAdb): added
1184 * as/link/z80/lkmain.c: removed -- option from usage text
1186 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1188 * src/mcs51/gen.c (outBitC): optimized for no result
1190 2007-10-31 Borut Razem <borut.razem AT siol.net>
1192 * src/SDCCsymt.c: fixed (hopeful properly) bug
1193 #1805702 - order of extern matters
1194 * support/regression/tests/bug-1805702.c: enabled regtest for bug
1197 2007-10-29 Borut Razem <borut.razem AT siol.net>
1199 * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1200 - order of extern matters
1201 * support/regression/tests/bug-1805702.c: disabled regtest for bug
1204 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1206 * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1207 24bitMode, portIsDS390
1208 * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1209 * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1210 (notVolatileVariable): also check sloc names,
1211 (callFuncByName): moved ftab[] out of function and sorted it by use
1213 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1215 * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1216 * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1217 aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1218 * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1219 * support/regression/tests/bug-880197.c: new, added
1221 2007-10-28 Borut Razem <borut.razem AT siol.net>
1223 * support/regression/Makefile.in,
1224 support/regression/ports/mcs51-large/spec.mk,
1225 support/regression/ports/mcs51-xstack-auto/spec.mk,
1226 support/regression/ports/mcs51-stack-auto/spec.mk,
1227 support/regression/ports/mcs51-medium/spec.mk,
1228 support/regression/ports/mcs51-common/spec.mk,
1229 support/regression/ports/mcs51-common/*,
1230 support/regression/ports/mcs51-small/*:
1231 mcs51 renamed to mcs51-common, created mcs51-small
1232 * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1233 * support/regression/tests/bug-1805702.c: added regtest for bug
1236 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1238 * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1239 added new rules 265 - 270
1240 * support/regression/tests/bug1721024.c:new, added
1241 * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1242 introduced new test-mcs51 to run all mcs51 tests
1244 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1246 * support/regression/tests/bug1816470.c: new, added
1248 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1250 * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1251 propagate for *,+,- with float, fixed bug 1816470
1252 (decorateType): cast to resultTypeProp instead of resultType
1254 2007-10-19 Borut Razem <borut.razem AT siol.net>
1256 * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1257 function is ineffective" for pic16 tareget
1258 * support/scripts/listerr.c: corrected include path
1259 * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1262 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1264 * support/regression/tests/using.c: new, added
1265 * support/regression/tests/vaargs.c: fixed and enabled test
1267 2007-10-18 Borut Razem <borut.razem AT siol.net>
1269 * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1271 * support/regression/tests/bug-983491.c: added regtest for bug #983491
1273 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1275 * doc/sdccman.lyx: documented option --Werror
1276 * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1277 RegBankUsed[] earlier
1279 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1281 * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1285 * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1287 * src/SDCCast.c (decorateType): improved optimization of tri-op
1288 * src/SDCCerr.c (vwerror, setWError),
1290 * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1291 warnings as errors, thanks Stas Sergeev for PATCH 1813211
1293 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1295 * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1296 * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1297 * support/regression/tests/bug-223113.c,
1298 * support/regression/tests/bug-426632.c,
1299 * support/regression/tests/bug-468811.c,
1300 * support/regression/tests/bug-477835.c,
1301 * support/regression/tests/bug-478094.c,
1302 * support/regression/tests/bug-499644.c,
1303 * support/regression/tests/bug-524209.c,
1304 * support/regression/tests/bug-524211.c,
1305 * support/regression/tests/packcast.c,
1306 * support/regression/tests/structidx.c: added empty tests
1307 * support/regression/tests/bug-607243.c: enabled test
1309 2007-10-06 Borut Razem <borut.razem AT siol.net>
1311 * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1312 support of universal binaries on Mac OS X
1314 2007-10-02 Borut Razem <borut.razem AT siol.net>
1316 * src/SDCCval.h: unified double2ul macro for all platforms
1317 * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1318 * support/regression/tests/bitwise.c: added regtest for bug #1777758
1320 2007-09-30 Borut Razem <borut.razem AT siol.net>
1322 * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1324 * sdcc_vc_in.h: enabled warnings
1325 * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1326 unsigned type, result still unsigned
1327 * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1329 2007-09-28 Raphael Neider <rneider AT web.de>
1331 * src/pic/device.c (find_device): prevent buffer underflow error
1332 * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1333 the just destroyed list entry
1335 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1337 * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1340 2007-09-18 Borut Razem <borut.razem AT siol.net>
1342 * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1343 applied to unsigned type, result still unsigned
1345 2007-09-17 Borut Razem <borut.razem AT siol.net>
1347 * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1348 src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1349 src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1350 src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1351 src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1352 src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1353 src/z80/gen.c, src/z80/ralloc.c:
1354 fixed bug #1739860 - sdcc does not work correctly on some platforms
1356 introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1358 2007-09-17 Raphael Neider <rneider AT web.de>
1360 * src/pic16/device.c: reverted to previous version
1361 * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1363 2007-09-16 Raphael Neider <rneider AT web.de>
1365 * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1366 as this raises a ton of gpasm warnings, just emit a second label
1367 * src/pic16/devices.inc,
1368 * device/lib/pic16/pics.all,
1369 * device/lib/pic16/libdev/pic18f2585.c,
1370 * device/lib/pic16/libdev/pic18f2680.c,
1371 * device/lib/pic16/libdev/pic18f2682.c,
1372 * device/lib/pic16/libdev/pic18f2685.c,
1373 * device/lib/pic16/libdev/pic18f4585.c,
1374 * device/lib/pic16/libdev/pic18f4680.c,
1375 * device/lib/pic16/libdev/pic18f4682.c,
1376 * device/lib/pic16/libdev/pic18f4685.c,
1377 * device/include/pic16/pic18f2585.h,
1378 * device/include/pic16/pic18f2680.h,
1379 * device/include/pic16/pic18f2682.h,
1380 * device/include/pic16/pic18f2685.h,
1381 * device/include/pic16/pic18f4585.h,
1382 * device/include/pic16/pic18f4680.h,
1383 * device/include/pic16/pic18f4682.h,
1384 * device/include/pic16/pic18f4685.h,
1385 * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1386 18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1387 patch contributed by Anton Strobl, applied with changes
1389 2007-09-16 Raphael Neider <rneider AT web.de>
1391 * device/include/pic16/pic18f2431.h,
1392 * device/include/pic16/pic18f25j10.h,
1393 * device/include/pic16/pic18f4431.h,
1394 * device/include/pic16/pic18f45j10.h: adopted common include style
1395 * device/include/pic16/pic18f1320.h,
1396 * device/include/pic16/pic18f2320.h,
1397 * device/include/pic16/pic18f2525.h,
1398 * device/include/pic16/pic18f4320.h,
1399 * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1400 * device/include/pic16/pic18fregs.h: prepared for automatic include
1401 file selection by having DEVICE.h for every DEVICE
1402 * device/lib/pic16/libdev/pic18f2320.c,
1403 * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1405 * device/lib/pic16/configure.in,
1406 * device/lib/pic16/configure: use rm -rf instead of rmdir
1407 * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1408 * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1410 2007-09-09 Borut Razem <borut.razem AT siol.net>
1412 * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1413 distingush between i386 and ppc Mac OS X versions
1415 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1417 * src/mcs51/gen.c (genReceive): fixed bug 1788177
1418 * support/regression/tests/bug1788177.c: new, added
1420 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1422 * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1423 * device/include/mcs51/lint.h added keyword __naked
1425 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1429 * src/SDCCmem.h: removed maxRegBank
1430 * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1431 RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1432 * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1433 * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1434 name and behaviour to handle banked functions
1435 (scan4op): and use it to fix bug 1786213
1437 2007-09-03 Raphael Neider <rneider AT web.de>
1439 * device/include/pic16/pic18f248.h,
1440 * device/include/pic16/pic18f258.h,
1441 * device/include/pic16/pic18f448.h,
1442 * device/lib/pic16/libdev/pic18f248.c,
1443 * device/lib/pic16/libdev/pic18f258.c,
1444 * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1445 added T0CONbits, fixes #1786891
1447 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1449 * src/ds390/gen.c (genFarPointerSet),
1450 * src/hc08/ralloc.c (packRegisters),
1451 * src/mcs51/ralloc.c (packRegisters),
1452 * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1454 * src/SDCCicode.h: POINTER_SET can be true for literals too
1455 * support/regression/tests/bug1750318.c: new, added
1457 2007-08-23 Borut Razem <borut.razem AT siol.net>
1459 * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1460 library versions without the completition functionality
1462 2007-08-22 Raphael Neider <rneider AT web.de>
1464 * device/include/pic16/pic18f1220.h,
1465 * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1467 2007-08-12 Borut Razem <borut.razem AT siol.net>
1469 * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1471 2007-08-11 Borut Razem <borut.razem AT siol.net>
1473 * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1474 src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1475 support/Util/SDCCerr.[ch] moved to src
1476 * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1477 as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1478 device/examples/ds390/tinitalk/tinitalk.dsp,
1479 device/examples/serialcomm/windows/serialcomm.dsp,
1480 support/librarian/librarian.dsp:
1481 removed linking of unused odbc32.lib and odbccp32.lib
1482 * support/scripts/winres.h:
1483 added for compilation with Visual C++ 2005 Express Edition
1485 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1487 * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1490 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1492 * sdccconf_in.h: update the endian test so that SPARC Solaris
1493 does not throw syntax errors
1495 2007-08-06 Borut Razem <borut.razem AT siol.net>
1497 * doc/sdccman.lyx: removed two index entries which prevented the
1498 generation of sdcc doc archive
1500 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1502 * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1503 instead of lyx 1.5.0.
1505 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1507 * device/include/hc08/mc68hc908apxx.h: new header contributed by
1508 Lucas Loizaga, with minor modifications. Thanks!
1510 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1512 * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1515 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1517 * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1518 src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1521 2007-07-22 Borut Razem <borut.razem AT siol.net>
1523 * configure.in, configure: re-introduced .version
1524 * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1525 the version reverted to 2.7.0
1527 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1530 * doc/sdccman.lyx: bumped version to 2.7.3
1531 * device/include/mcs51/compiler.h: fixed elif->else
1532 * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1533 * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1534 (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1535 enable accuse for bit operands
1536 * src/SDCCmain.c (printVersionInfo),
1537 * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1538 environment descriptor
1539 * src/SDCCutil.h: added getBuildEnvironment
1540 * src/SDCCglue.c (initialComments): use getBuildEnvironment
1541 * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1542 * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1543 * support/regression/tests/bug1348008.c,
1544 * support/regression/tests/bug1496419.c,
1545 * support/regression/tests/bug1503067.c,
1546 * support/regression/tests/preproc.c: added empty tests
1548 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1550 * support/regression/tests/bug1678803.c: new, added
1552 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1555 * as/link/hc08/lkihx.c,
1556 * as/link/hc08/lkrloc.c,
1557 * as/link/mcs51/lkihx.c,
1558 * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1559 ihxExtendedLinearAddress
1560 * as/link/mcs51/lkrloc.c (relr),
1561 * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1562 acall/ajmp, see bug 830513
1564 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1566 * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1567 (cseBBlock): remember aggr2ptr has been used
1568 * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1569 (geniCodeAssign): fixed bug 868103
1570 * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1571 added operandSize prototype
1572 * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1573 (genDataPointerSet): use max of size of right and result,
1574 (gencjne): added parameter useCarry for optimization,
1575 (genCmpEq): use carry if appropriate,
1576 (genXor): check if operand already in carry
1577 * support/regression/tests/bug-868103.c: enabled test
1579 2007-07-12 Raphael Neider <rneider AT web.de>
1581 * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1583 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1585 * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1586 from Robert Larice, thanks
1587 * support/regression/tests/bitopcse.c,
1588 * support/regression/tests/bitvars.c,
1589 * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1590 * support/regression/tests/bug-927659.c: enabled test for z80
1591 * support/regression/tests/bug1738367.c: added extra tests by Frieder
1592 * support/regression/tests/bug1745717.c: new, added
1593 * support/regression/tests/literalop.c,
1594 * support/regression/tests/nullstring.c: removed storage definitions that
1595 are now in testfwk.h
1597 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1599 * device/include/stdbool.h: do not define __bool_true_false_are_defined
1600 and bool for targets that do not fully support it.
1601 * support/regression/tests/bug1546986.c,
1602 * support/regression/tests/bug1723128.c,
1603 * support/regression/tests/bug1734654.c,
1604 * support/regression/tests/bug1738367.c,
1605 * support/regression/tests/constantRange.c: only use bool if allowed
1607 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1609 * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1610 Larice, also handle function pointers
1611 * support/regression/tests/bug1749275.c: new, added
1613 2007-07-03 Borut Razem <borut.razem AT siol.net>
1615 * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1616 src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1617 #1746528: SDCC should ignore ':' in inline assembler comments
1618 * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1620 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1622 * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1623 * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1625 2007-06-29 Borut Razem <borut.razem AT siol.net>
1627 * src/SDCCmain.c: fixed bug
1628 #1744746: SDCC #4867: broken option --xram-size
1630 2007-06-28 Borut Razem <borut.razem AT siol.net>
1632 * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1633 find out the endianess of host machine for ucsim
1635 2007-06-27 Borut Razem <borut.razem AT siol.net>
1637 * support/regression/generate-cases.py: corrected the file name
1639 * configure.in, configure, sdccconf_in.h: find out the endianess of
1641 * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1644 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1646 * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1648 2007-06-26 Borut Razem <borut.razem AT siol.net>
1650 * support/regression/generate-cases.py: display warning if function
1651 list is empty; implemented more flexible rule for detection of
1652 testing functions, allowing return type 'void' in the same line as
1653 the function name in the function definition
1654 * support/regression/tests/bug-1654060.c: corrected test
1655 * support/librarian/sdcclib.c: fixed warning:
1656 format '%s' expects type 'char *', but argument 2 has type 'int'
1658 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1660 * support/librarian/sdcclib.c: Added feature Requests [1510635]
1661 Multiple infiles for sdcclib.
1663 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1665 * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1668 2007-06-18 Borut Razem <borut.razem AT siol.net>
1670 * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1671 how to handle comments, so they have to be removed by the
1672 preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1673 * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1674 src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1675 support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1676 table driven option hadling
1678 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1680 * src/SDCCast.c (decorateType),
1681 * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1682 iCode to ast level to fix bug 1738367
1683 * support/regression/tests/bug1738367.c: new, added
1685 2007-06-15 Raphael Neider <rneider AT web.de>
1687 * src/pic16/devices.inc,
1688 * device/lib/pic16/pics.all,
1689 * device/include/pic16/pic18fregs.h,
1690 * device/include/pic16/pic18f[24][45]20.h,
1691 * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1692 18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1693 * device/lib/pic16/Makefile.in: faster cleanup
1695 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1697 * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1699 2007-06-13 Raphael Neider <rneider AT web.de>
1701 * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1703 2007-06-12 Raphael Neider <rneider AT web.de>
1705 * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1706 suppress bit defines if NO_BIT_DEFINES is #define'd
1707 * device/include/pic/pic*.h: recreated all headers to include
1708 conditional bit defines
1709 * device/include/pic/pic16f886.h,
1710 * device/include/pic/pic16f887.h: fixed based on newer .inc file
1711 * device/include/pic/recreate.sh: script to recreate the complete
1712 device library files based on the currently supported devices
1714 2007-06-12 Borut Razem <borut.razem AT siol.net>
1716 * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1717 support/regression/Makefile.in, support/scripts/build.mak,
1718 support/scripts/Makefile.snapshot:
1719 use new svn URL scheme
1720 * doc/sdccman.lyx: SDCC Wiki moved to
1721 http://sdcc.wiki.sourceforge.net/
1723 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1725 * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1726 * support/regression/tests/bug1734654.c: added
1728 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1730 * src/SDCCast.c (decorateType): optimized '?' for equal operands
1731 * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1732 with literal operands
1734 2007-06-10 Borut Razem <borut.razem AT siol.net>
1736 * as/link/z80/lklibr.c: fixed mingw build warning
1737 lklibr.c:575: warning: implicit declaration of function 'tolower'
1738 * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1739 src/z80/main.c: move target specific options from src/SDCCmain.c
1740 to src/<target>/main.c
1742 2007-06-09 Borut Razem <borut.razem AT siol.net>
1744 * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1745 removed unused swap_sense; removed outBitCLong, replaced with outBitC
1746 * support/regression/tests/bug-1294691.c: added
1748 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1750 * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1751 can also be static, fixes bug 1733438
1752 * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1753 have absolute address too
1754 (computeType): added optimization for 'cond ? true : false'
1755 * support/regression/tests/absolute.c: added test for static absolute var
1757 2007-06-08 Raphael Neider <rneider AT web.de>
1759 * src/regression/Makefile: suppress parallel builds, allow easy
1760 switching between pic14/pic16 ports
1761 * src/regression/picregs.h: added pic14/16 header file switch
1762 * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1763 inline.c,nestfor.c,string1.c}: include "picregs.h"
1765 2007-06-07 Borut Razem <borut.razem AT siol.net>
1767 * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1768 permanent solution to suppress GCC 4.2.0 c++ warning:
1769 deprecated conversion from string constant to `char *'
1770 use 'const char *' where ever required
1771 * support/regression/generate-cases.py: implemented more flexible rule
1772 for detection of testing functions, allowing white-spaces surrounding
1773 the function name and the 'void' parameter.
1774 * support/regression/tests/constantRange.c,
1775 support/regression/tests/scott-compare3.c: fixed failing regression
1776 tests, uncovered by implementation of more flexible rule for detection
1777 of testing functions
1779 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1781 * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1783 2007-06-04 Borut Razem <borut.razem AT siol.net>
1785 * configure.in, configure, config_vc.awk: sdcc version number is now
1786 stored in configure.in; removed .version
1787 * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1788 doc/INSTALL.txt: version bumped to 2.7.2
1789 * sim/ucsim/configure.in, sim/ucsim/configure:
1790 use "read" to read from .version
1792 2007-06-03 Borut Razem <borut.razem AT siol.net>
1794 * */Makefile.in: removed annoying warning:
1795 Makefile:xx: Makefile.dep: No such file or directory
1797 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1799 * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1800 (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1801 * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1802 * src/SDCCast.c (resultTypePropagate): propagate for '!',
1803 (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1804 bugfix: only use newBoolLink for bit result type
1805 * src/SDCCicode.c (geniCodeLogic): added param tree,
1806 bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1807 (geniCodeLogicAndOr): use IS_BIT,
1808 (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1809 (ast2iCode): added tree param to geniCodeLogic for comparisons
1810 * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1811 * support/regression/tests/bug1723128.c: added test NotZero
1813 2007-06-01 Borut Razem <borut.razem AT siol.net>
1815 * SDCPP synchronized with GCC CPP release version 4.2.0,
1816 currently the latest release:
1817 * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1818 support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1819 support/cpp2/cppdefault.h, support/cpp2/except.h,
1820 support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1821 support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1822 support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1823 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1824 support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1825 support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1826 support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1827 support/cpp2/opts.h, support/cpp2/output.h,
1828 support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1829 support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1830 support/cpp2/system.h, support/cpp2/version.c,
1831 support/cpp2/Makefile.in: modified
1832 * support/cpp2/opts-common.c: added
1833 * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1834 * device/lib/pic16/libdev/pic18f[24]5j10.c:
1835 search for included source file in local directory
1836 * sim/ucsim/configure, sim/ucsim/configure.in:
1837 temporary solution to suppress GCC 4.2.0 c++ warning:
1838 deprecated conversion from string constant to `char *'
1840 2007-06-01 Raphael Neider <rneider AT web.de>
1842 * device/lib/pic/libdev/pic12f683.c,
1843 * device/include/pic/pic12f683.h: added GPIO bits
1845 2007-06-01 Raphael Neider <rneider AT web.de>
1847 * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1848 quotation marks, clarified role of PIC14 vs. PIC16 ports
1849 * src/pic16/devices.inc,
1850 * device/include/pic16/pic18fregs.h,
1851 * device/include/pic16/pic18f[24][45]j10.h,
1852 * device/lib/pic16/pics.all,
1853 * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
1854 18f24j10, 18f25j10, 18f44j10, and 18f45j10
1855 * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
1856 for new devices as they are not yet supported by gputils
1858 2007-05-31 Borut Razem <borut.razem AT siol.net>
1860 * Small Device C Compiler 2.7.0 released
1861 * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
1862 changed sdcc version to 2.7.1
1863 * support/scripts/sdcc.nsi: added How to create WIN32 release
1866 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
1868 * doc/sdccman.lyx: documented initialization and allocation of absolute
1869 variables, bit parameter passing, the need for function pointers to be
1870 reentrant and alpha quality support of inline and retrict
1872 2007-05-26 Borut Razem <borut.razem AT siol.net>
1874 * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
1875 support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
1876 * docs/knownbugs.html: updated
1878 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
1880 * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
1882 * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
1884 (gencjneshort): optimized when left is AOP_DIR
1885 * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
1886 initializing unions in a struct/array
1887 * support/regression/fwk/include/testfwk.h: added defines for data, near
1888 and far for host and z80
1889 * support/regression/tests/bug1723128.c: new, added
1891 2007-05-22 Borut Razem <borut.razem AT siol.net>
1893 * doc/knownbugs.html: updated
1895 2007-05-21 Raphael Neider <rneider AT web.de>
1897 * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
1898 error message instead
1899 * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
1901 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
1903 * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
1905 2007-05-21 Raphael Neider <rneider AT web.de>
1907 * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
1909 * src/regression/gpsim_assert.h,
1910 * src/regression/Makefile,
1911 * src/regression/pcodeopt.c: regression test for the above fix
1913 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
1915 * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
1916 jumps to self, fixed bug 1717281
1918 2007-05-10 Borut Razem <borut.razem AT siol.net>
1920 * support/scripts/gen_known_bugs.pl: cosmetic fix
1921 * doc/knownbugs.html: generated by gen_known_bugs.pl
1923 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1925 * src/SDCCast.c (createFunction): also generate non-inlined version of
1926 function for functions declared as "static inline"
1927 * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
1928 function can be inlined after non-inlined version generated.
1930 2007-05-10 Borut Razem <borut.razem AT siol.net>
1932 * support/scripts/gen_known_bugs.pl: added script
1933 which generates knownbugs.html
1935 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
1937 * doc/knownbugs.html: updated for release 2.7.0
1939 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1941 * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
1943 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1945 * src/ds390/gen.c (emitcode): don't change properties of previous lines,
1946 (throughout): updated generating comments
1947 * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
1948 (throughout): updated generating comments
1949 * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
1950 rule instead of at the second, or it might skip lines when removing the
1952 * support/regression/tests/bug1714204.c: changed test to foo
1954 2007-05-08 Borut Razem <borut.razem AT siol.net>
1956 * doc/sdccman.lyx: changed sdcc version to 2.7.0,
1957 thanks to SDCC Distributed Compile Farm members,
1958 added Z80 and GBZ80 command line options
1959 * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
1961 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
1963 * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
1964 * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
1965 * support/regression/tests/longlit.c: modified to be tested at all and
1966 to pass the actual test
1968 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1970 * device/include/mcs51/uPSD33xx.h: Added.
1972 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
1974 * device/lib/_gptrput.c,
1975 * device/lib/_gptrget.c: removed old code,
1977 * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
1978 * support/regression/tests/bug1714204.c: new, added
1980 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1982 * support/regression/tests/regtrack.c: test was never executed
1983 because of the regression test being picky about white spaces.
1984 * device/lib/mcs51/crtclear.asm: added comment
1986 2007-05-06 Raphael Neider <rneider AT web.de>
1988 * device/lib/pic/Makefile.rules,
1989 * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
1990 made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
1992 2007-05-06 Raphael Neider <rneider AT web.de>
1994 * src/pic16/device.h,
1996 * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
1997 _pic16_setDefaultOptions): removed/reordered command-line args
1998 * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
1999 devices, regrouped command line args, environment variables),
2000 clarified sone points, added sections on how to add devices to the
2003 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
2005 * src/z80/peeph.def: fixed bug in rule 2
2007 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
2009 * src/port.h: added TARGET_MCS51_LIKE
2010 * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
2011 take advantage of it too
2012 * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
2013 (shiftR2Left2Result): Optimized: don't check shifting by 0
2014 * src/z80/peeph-z80.def,
2015 * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
2016 modifications, see patch 1700823
2017 * src/mcs51/peep.c (): fixed bug 1712928
2018 * support/regression/tests/bug1712928.c: new, added
2020 2007-05-05 Borut Razem <borut.razem AT siol.net>
2022 * device/lib/pic16/Makefile.common.in,
2023 device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
2024 removed bash dependencies
2026 2007-05-01 Borut Razem <borut.razem AT siol.net>
2029 fixed bug #1710507: --i-code-in-asm makes compile fail
2030 all iCode comments are now one liners
2031 * src/mcs51/gen.c: fixed memory leak
2033 2007-05-01 Raphael Neider <rneider AT web.de>
2035 * device/lib/pic/libdev/*.c
2036 * device/include/pic/*.h: regenerated all device libs from updated
2038 * support/scripts/inc2h.pl: documented usage, now uses strict to
2041 2007-04-30 Borut Razem <borut.razem AT siol.net>
2044 fixed bug #1669175: Problem with space in output paths
2045 documented how to use paths with spaces for Windows users
2047 2007-04-29 Borut Razem <borut.razem AT siol.net>
2049 * Fixed svn:eol-style and svn:keywords properties
2050 * src/SDCCval.c: fixed bug
2051 #1592871: Segfault with "large" const arrays of characters
2052 replaced recursion with iteration
2053 * Removed svn:executable property from non-executable files
2055 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2057 * src/mcs51/gen.c (genRet): fixed bug 1707003
2059 2007-04-27 Raphael Neider <rneider AT web.de>
2061 * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2062 createReachingDefinitions,assignValnums,pic16_destructDF,
2063 pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2064 prevent NULL pointer dereferences
2065 * device/lib/pic/libdev/pic16f886.c,
2066 * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2067 prevent building them, gputils do not really support them yet
2069 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2071 * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2072 helps printf_small. 32 bytes more __idata mem.
2074 2007-04-27 Raphael Neider <rneider AT web.de>
2076 * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2077 return early when pb or pb->pcHead is NULL (patch #1708427)
2078 * src/regression/empty.c,
2079 * src/regression/Makefile: added test with empty functions
2080 * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2082 2007-04-27 Borut Razem <borut.razem AT siol.net>
2084 * src/SDCCast.c: fixed feature request
2085 #1547512: Redundant strings linked when using sizeof("abc")
2087 2007-04-23 Borut Razem <borut.razem AT siol.net>
2089 * doc/sdccman.lyx, src/SDCCmain.c:
2090 peep-hole comments are generated only if --fverbose-asm option is
2091 specified and --no-peep-comments is not, as proposed by Frieder.
2092 * support/regression/Makefile.in: compile regression tests with
2093 --fverbose-asm option so one can "grep" whether a new (or an old)
2094 peephole is (still) applied; requested by Frieder.
2096 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2098 * device/include/pic/pic16f886.h,
2099 * device/include/pic/pic16f887.h,
2100 * device/lib/pic/libdev/pic16f886.c,
2101 * device/lib/pic/libdev/pic16f887.c,
2102 * device/include/pic/pic14devices.txt,
2103 * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2105 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2107 * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2110 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2112 * device/lib/_memset.c: assembler version for mcs51
2114 2007-04-22 Borut Razem <borut.razem AT siol.net>
2116 * support/scripts/listerr.c: program to create the list of errors and
2117 warnings list from - added
2118 * doc/sdccman.lyx: removed the note
2119 "For list of warnings and corresponding codes, see err_warn.txt"
2120 * src/SDCCsymt.c: fixed bug #1699804:
2121 Bug with some uses of sizeof(static local array) (MCS51)
2122 * support/regression/tests/bug-1699804.c: added
2124 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2126 * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2127 (main): added option -i,
2128 (asmbl, case S_INCL): use search_path_fopen,
2129 mostly from patch 1579668 by Peter Miller, thanks
2130 * src/z80/main.c: fixed typo --callee-saves-bc
2131 * device/include/mcs51/compiler.h: added sfrword for Tasking
2133 2007-04-20 Borut Razem <borut.razem AT siol.net>
2135 * src/z80/main.c: replaced reserved keyword asm with asmblr
2137 2007-04-19 Borut Razem <borut.razem AT siol.net>
2139 * src/port.h: use const pointers to strings
2140 * src/SDCCargs.h: declared getStringArg() and getIntArg()
2141 * src/pic16/main.c: include SDCCargs.h
2142 * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2143 const char, since the strings are dynamically allocated
2144 * src/SDCCmain.c: options.code_seg and options.const_seg are
2145 dynamically allocated; check port specific command line options
2146 before the general ones
2147 * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2149 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2151 * device/include/ds400rom.h,
2152 * device/lib/ds390/lcd390.c,
2153 * device/lib/ds390/memcpyx.c,
2154 * device/lib/ds390/rtc390.c,
2155 * device/lib/ds400/ds400rom.c,
2156 * device/lib/ds400/memcpyx.c,
2157 * device/lib/hc08/_ret.c: more replacements of keywords with their
2158 double underscore equivalents
2159 * device/lib/ds390/Makefile.in,
2160 * device/lib/ds400/Makefile.in,
2161 * device/lib/gbz80/Makefile.in,
2162 * device/lib/hc08/Makefile.in,
2163 * device/lib/mcs51/Makefile.in,
2164 * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2166 2007-04-17 Borut Razem <borut.razem AT siol.net>
2168 * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2169 src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2170 fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2171 to --fverbose-asm, to be gcc'ish
2173 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2175 * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2177 2007-04-17 Borut Razem <borut.razem AT siol.net>
2179 * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2180 * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2181 device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2182 with their double underscore equivalent
2184 2007-04-14 Borut Razem <borut.razem AT siol.net>
2186 * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2189 2007-04-13 Borut Razem <borut.razem AT siol.net>
2191 * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2193 * device/examples/serialcomm/windows/serial.[ch],
2194 device/examples/serialcomm/windows/test_serialcomm.cpp:
2195 updated by Bela Torok
2196 * device/examples/serialcomm/windows/serialcomm.dsw,
2197 device/examples/serialcomm/windows/serialcomm.dsp: added
2199 2007-04-13 Jan Waclawek <wek AT efton.sk>
2201 * doc/sdccman.lyx: additions and changes at various places
2202 (submitted as #1697136).
2203 (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2205 2007-04-10 Borut Razem <borut.razem AT siol.net>
2207 * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2208 LyX file format changed to 245
2209 * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2210 "FreeWare" replaced with "free open source"
2212 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2214 * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2216 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2218 * device/include/pic16/pic18fregs.h,
2220 * device/lib/_decdptr.c,
2221 * device/lib/_divsint.c,
2222 * device/lib/_divslong.c,
2223 * device/lib/_divuint.c,
2224 * device/lib/_divulong.c,
2225 * device/lib/_fs2schar.c,
2226 * device/lib/_fs2sint.c,
2227 * device/lib/_fs2slong.c,
2228 * device/lib/_fs2uchar.c,
2229 * device/lib/_fs2uint.c,
2230 * device/lib/_fs2ulong.c,
2231 * device/lib/_fsadd.c,
2232 * device/lib/_fscmp.c,
2233 * device/lib/_fsdiv.c,
2234 * device/lib/_fseq.c,
2235 * device/lib/_fsget1arg.c,
2236 * device/lib/_fsget2args.c,
2237 * device/lib/_fsgt.c,
2238 * device/lib/_fslt.c,
2239 * device/lib/_fsmul.c,
2240 * device/lib/_fsneq.c,
2241 * device/lib/_fsnormalize.c,
2242 * device/lib/_fsreturnval.c,
2243 * device/lib/_fsrshift.c,
2244 * device/lib/_fssub.c,
2245 * device/lib/_fsswapargs.c,
2246 * device/lib/_gptrget.c,
2247 * device/lib/_gptrgetc.c,
2248 * device/lib/_gptrput.c,
2249 * device/lib/_logexpf.c,
2250 * device/lib/_modsint.c,
2251 * device/lib/_modslong.c,
2252 * device/lib/_moduint.c,
2253 * device/lib/_modulong.c,
2254 * device/lib/_mulint.c,
2255 * device/lib/_mullong.c,
2256 * device/lib/_schar2fs.c,
2257 * device/lib/_ser.c,
2258 * device/lib/_setjmp.c,
2259 * device/lib/_sint2fs.c,
2260 * device/lib/_slong2fs.c,
2261 * device/lib/_spx.c,
2262 * device/lib/_uchar2fs.c,
2263 * device/lib/_uint2fs.c,
2264 * device/lib/_ulong2fs.c,
2265 * device/lib/asincosf.c,
2266 * device/lib/atanf.c,
2267 * device/lib/calloc.c,
2268 * device/lib/ds390/tinibios.c,
2269 * device/lib/ds400/tinibios.c,
2270 * device/lib/expf.c,
2271 * device/lib/free.c,
2272 * device/lib/hc08/_mulint.c,
2273 * device/lib/logf.c,
2274 * device/lib/malloc.c,
2275 * device/lib/printf_fast.c,
2276 * device/lib/printf_tiny.c,
2277 * device/lib/printfl.c,
2278 * device/lib/realloc.c,
2279 * device/lib/ser_ir.c,
2280 * device/lib/serial.c,
2281 * support/regression/tests/libmullong.c: replaced all special keywords
2282 with their double underscore equivalent
2283 * support/regression/ports/mcs51-xstack-auto/spec.mk,
2284 * device/lib/Makefile.in: compile libs with --std-c99 instead of
2286 * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2287 (genRet): if the bit-symbol is ruonly it already is in the carry
2288 * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2289 * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2290 * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2291 type UCHAR if dest is not bit
2293 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2295 * device/include/math.h,
2296 * device/lib/cotf.c,
2297 * device/lib/expf.c,
2298 * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2300 2007-04-01 Borut Razem <borut.razem AT siol.net>
2302 * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2303 fixed bug #1692042: input buffer overflow...scanner uses REJECT
2304 * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2305 gcc_unreachable() called internal_error()...
2307 2007-03-30 Raphael Neider <rneider AT web.de>
2309 * src/pic/ralloc.c (isData): suppress garbage debug output
2311 2007-03-28 Borut Razem <borut.razem AT siol.net>
2314 "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2315 is developed, built and used worldwide, and the word "night" doesn't
2318 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2320 * device/include/mcs51/C8051F360.h: new, added
2321 * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2323 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2325 * src/SDCC.y (declaration_specifiers, function_specifier),
2326 * support/Util/SDCCerr.c,
2327 * support/Util/SDCCerr.h,
2329 * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2331 * src/SDCCmem.c (deallocParms),
2332 * src/SDCCast.c: support for function inlining, not quite complete
2333 * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2334 'restrict' qualifier
2336 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2338 * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2339 (saveRBank, unsaveRBank): don't save bits,
2340 (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2341 * support/regression/tests/bug1535242.c: new, added
2342 * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2343 thanks Alexey Shamrin <shamrin AT gmail.com>,
2344 made assert.h header ANSI compliant (added a check for NDEBUG macro,
2345 removed header guard)
2347 * sdcc.spec: bumped version to 2.6.5
2348 * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2350 2007-03-22 Borut Razem <borut.razem AT siol.net>
2352 * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2353 fixed bug #1653671: sdcdb integration into ddd is broken
2355 2007-03-22 Raphael Neider <rneider AT web.de>
2357 * src/pic/gen.c (popGetExternal): augmented to also create references
2358 to external variables (not only labels),
2359 (genCall): comment on plan to reduce PAGESEL overhead,
2360 (genFunction, genEndFunction): also save/restore FSR around interrupt
2361 handling code, removed lots of unused code
2362 (genDivOneByte): release acquired temp register
2363 * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2365 * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2366 for registers that need to be saved during interrupts (FSR, STATUS,
2367 PCLATH; W needs special handling), currently only FSR is used
2369 2007-03-22 Raphael Neider <rneider AT web.de>
2371 * device/include/pic/pic14devices.txt: 16f688 has only one config word
2373 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2375 * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2377 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2379 * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2381 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2383 * as/link/aslink.h: added LKOBJEXT
2384 * as/link/hc08/link_hc08.dsp,
2385 * as/link/hc08/Makefile.bcc,
2386 * as/link/hc08/Makefile.in,
2387 * as/link/mcs51/aslink.dsp,
2388 * as/link/mcs51/Makefile.bcc,
2389 * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2390 * as/link/hc08/lkaomf51.c, as/link/mcs51/lkaomf51.c,
2391 * as/link/lkaomf51.c: merged and moved
2392 * as/link/hc08/lkdata.c, as/link/mcs51/lkdata.c,
2393 * as/link/z80/lkdata.c,
2394 * as/link/lkdata.c: merged and moved
2395 * as/link/hc08/lkmain.c,
2396 * as/link/mcs51/lkmain.c: cosmetic changes
2397 * as/link/z80/lkeval.c, as/link/lkeval.c: merged
2398 * as/link/lklex.c: use LKOBJEXT
2399 * as/link/z80/lklist.c, as/link/lklist.c: merged,
2400 ANSI-fied functions, removed bubble-sorts
2401 * as/link/z80/lksym.c as/link/lksym.c: merged,
2403 * as/link/z80/linkgbz80.dsp,
2404 * as/link/z80/linkz80.dsp,
2405 * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2406 moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2407 * as/link/z80/lkhead.c,
2408 * as/link/z80/lklex.c: deleted
2409 * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2410 * as/link/z80/lkmain.c: added copyfile()
2412 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2414 * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2416 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2418 * device/lib/_strlen.c: assembler version for mcs51
2420 2007-03-13 Raphael Neider <rneider AT web.de>
2422 * device/include/pic16/pic18f2221.h,
2423 * device/include/pic16/pic18f2321.h,
2424 * device/include/pic16/pic18f2331.h,
2425 * device/include/pic16/pic18f4221.h,
2426 * device/include/pic16/pic18f4321.h,
2427 * device/include/pic16/pic18f4331.h: fixed config byte location names
2428 * support/scripts/inc2h-pic16.pl: removed debug output, emit
2429 consistently named config byte locations
2431 2007-03-13 Borut Razem <borut.razem AT siol.net>
2433 * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2434 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2435 sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2436 as/link/z80/Makefile.in, as/z80/Makefile.in:
2439 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2441 * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2442 * device/lib/printf_large.c: pointer was converted to generic
2443 pointer for mcs51 models other than model-small (Maarten noticed)
2445 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2447 * device/include/mcs51/ADuC84x.h: Added.
2449 2007-03-10 Borut Razem <borut.razem AT siol.net>
2451 * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2452 fixed RFE #1624219: double backslashes in filenames;
2453 functions hexEscape(), octalEscape() and copyStr() moved from
2454 SDCCval.c to SDCCutil.c and made them glovbally available
2456 2007-03-09 Borut Razem <borut.razem AT siol.net>
2458 * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2459 src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2460 1673361: Missaligned comments in output files
2462 2007-03-09 Raphael Neider <rneider AT web.de>
2464 * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2466 2007-03-09 Raphael Neider <rneider AT web.de>
2470 * src/pic/ralloc.c: suppress undesired debug output
2471 * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2473 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2475 * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2477 2007-03-07 Borut Razem <borut.razem AT siol.net>
2479 * device/lib/pic16/libdev/pic18f[24][34]31.c:
2480 search include files in the current directory
2482 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2484 * src/SDCCglue.c (emitMaps, glue),
2485 * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2487 * support/regression/tests/absolute.c: added xdata test
2489 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2491 * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2492 added condition to macro, fixes bug 1666080
2494 2007-03-02 Raphael Neider <rneider AT web.de>
2496 * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2498 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2500 * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2501 be cleared. Unconditionally set __XPAGE
2502 * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2504 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2509 * src/mcs51/rtrack.c,
2511 * doc/sdccman.lyx: added --no-gen-comments
2512 * src/mcs51/peeph.def: added 192.b, disabled 185
2514 2007-02-25 Raphael Neider <rneider AT web.de>
2516 * src/pic16/gen.c (genCast): fixed typo
2517 * device/lib/pic16/Makefile.subdir: only install existing files
2518 * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2520 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2522 * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2523 * device/lib/mcs51/crtclear.asm,
2524 * device/lib/mcs51/crtxclear.asm: renumbered labels
2525 * device/lib/mcs51/Makefile.in: added crtcall.asm
2526 * doc/sdccman.lyx: documented mcs51 crt* library startup code
2527 * src/mcs51/gen.c (movc): removed,
2528 (aopGet, genPlusBits): clear a after loading the carry (possibly from
2530 (toCarry, genSend, genRet): added function toCarry,
2531 (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2532 (assignBit, genAssign, genCast): added function assignBit
2533 * src/mcs51/Makefile.bcc: added rtrack.c
2534 * src/mcs51/ralloc.h: made valueKnown a bitfield
2535 * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2536 fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2537 disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2538 * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2539 * src/z80/gen.c: added AOP_IS_PAIRPTR,
2540 (_pop): only pop valid pairs, see gencjneshort,
2541 (gencjneshort): return pair that still needs to be popped, restructured,
2542 (gencjne, genCmpEq): call _pop
2544 2007-02-23 Raphael Neider <rneider AT web.de>
2546 * device/include/pic/pic14devices.txt: 16f684 has only one config word
2548 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2550 * device/include/mcs51/P89LPC925.h: Added.
2552 2007-02-18 Raphael Neider <rneider AT web.de>
2554 * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2556 2007-02-17 Borut Razem <borut.razem AT siol.net>
2558 * support/cpp2/directives.c, support/cpp2/version.c:
2559 synchronized with GCC CPP 4.1.2
2561 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2563 * src/mcs51/rtrack.h,
2564 * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2565 by checking the strings passed by emitcode() to the assembler.
2566 Feel free to change. This in part addresses RFE #482179.
2567 Set environment variable SDCC_RTRACK to enable.
2568 * src/mcs51/gen.c: inserted hooks
2569 * src/mcs51/ralloc.h: added two members to struct regs
2570 * support/regression/tests/regtrack.c: added
2572 2007-02-14 Borut Razem <borut.razem AT siol.net>
2574 * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2575 * Makefile.in: applied patch from Makefile related part of
2576 #1469393: Compiler does not initialize static data
2578 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2580 * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2581 for better fix of bug 1273984, compiles pic16 rand.c
2583 2007-02-12 Borut Razem <borut.razem AT siol.net>
2585 * src/pic16/main.c: fixed pic16 standard library directory bug
2587 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2589 * src/hc08/gen.c (genSwap): fix swap regression test
2591 2007-02-10 Borut Razem <borut.razem AT siol.net>
2593 * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2595 * support/regression/tests/bug-1654060.c: added regression test for
2598 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2600 * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2601 bit moves in return statement
2603 2007-02-09 Borut Razem <borut.razem AT siol.net>
2605 * src/SDCC.y: fixed bug #1654060 typedef within function causes
2608 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2610 * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2611 * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2613 2007-02-07 Raphael Neider <rneider AT web.de>
2615 * src/pic16/devices.inc,
2616 * device/include/pic16/pic18fregs.h,
2617 * device/include/pic16/pic18f[24][34]31.h,
2618 * device/lib/pic16/libdev/pic18f[24][34]31.c,
2619 * device/lib/pic16/pics.all: added 18f[24][34]31 family
2620 * device/lib/pic16/libio/i2c.ignore: do not build i2c
2622 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2624 * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2625 can this have lived here for so many years?
2626 * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2627 fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2628 * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2630 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2632 * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2633 appended by loop induction must be at the very end of the eBBlock
2635 2007-02-05 Kevin Vigor
2637 * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2639 2007-02-05 Borut Razem <borut.razem AT siol.net>
2641 * support/regression/fwk/lib/timeout.c: native WIN32 port,
2642 implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2644 2007-02-03 Borut Razem <borut.razem AT siol.net>
2646 * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2647 applied patch #1646602 option to set default signedness of char to
2648 unsigned, added -funsigned-char command line option,
2649 thanks to Gunther Jehle
2650 * device/lib/Makefile.in: added the -f option to rm so it doesn't
2651 prompt for file deletion a few hundred times (especially the
2652 subversion files, which have ro permissions so it asks for
2653 confirmation), thanks to Simon McAuliffe;
2654 added {} + option to find in order to remove multiple files from a
2657 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2659 * device/include/mcs51/SST89x5xRDx.h: Added.
2661 2007-02-02 Raphael Neider <rneider AT web.de>
2663 * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2664 * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2666 2007-02-01 Raphael Neider <rneider AT web.de>
2668 * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2671 2007-01-31 Borut Razem <borut.razem AT siol.net>
2673 * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2674 if compiled with GCC. Thanks to Raphael Neider
2676 2007-01-31 Raphael Neider <rneider AT web.de>
2678 * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2679 operand names, handles name and (name + n) for all n,
2680 (sameBank): restructured, also check bank allocation policy,
2681 * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2682 (pic14_operandsAllocatedInSameBank): check whether to operands
2683 will be allocated into the same bank (i.e., section) to reduce
2684 BANKSEL overhead, queried from pcode.c:sameBank,
2685 (pic14printLocals): reintroduced clustering registers into a single
2686 section: all compiler generated symbols will now reside in one
2687 bank (per file), reducing BANKSEL overhead and code size,
2688 (showAllMemmaps): use local dbuf where possible
2690 2007-01-29 Raphael Neider <rneider AT web.de>
2692 * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2693 (call_libraryfunc): retrieve/create symbol and mark as used,
2694 (genFunction): mark defined functions as non-extern and add again
2695 to code memmap for later output
2696 * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2697 (pic14printLocals): reworked for new symbol emission,
2698 (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2699 showAllMemmaps): reworked symbol output using dbufs, added handling
2700 of string literals (still incomplete),
2701 (picglue): removed symbol emission, moved into showAllMemmaps,
2702 (emitSymbolSet): new workhorse for symbol output,
2703 (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2705 2007-01-29 Borut Razem <borut.razem AT siol.net>
2707 * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2708 component contains the extension separator.
2710 2007-01-28 Borut Razem <borut.razem AT siol.net>
2712 * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2714 * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2715 src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2716 src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2717 src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2718 src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2719 src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2720 src/z80/gen.c, support/Util/MySystem.c:
2721 accept slash and backslash as directory separator on WIN32 and
2724 2007-01-28 Raphael Neider <rneider AT web.de>
2726 * src/pic16/devices.inc,
2727 * device/include/pic16/pic18f[24][23]21.h,
2728 * device/include/pic16/pic18fregs.h,
2729 * device/lib/pic16/libdev/pic18f[24][23]21.c,
2730 * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2731 * device/lib/pic16/libio/adc.ignore,
2732 * device/lib/pic16/libio/i2c.ignore,
2733 * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2734 family, as gputils do not yet support the devices
2735 * device/lib/pic16/Makefile.subdir: ignore errors on install
2736 * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2737 headers and libraries from gputils .inc files
2739 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2741 * doc/sdccman.lyx: add printf_fast_f precision limitation note
2743 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2745 * doc/sdccman.lyx: add printf benchmarks
2747 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2749 * device/lib/printf_fast.c: fix %c, char promoted to int
2750 * device/lib/printf_tiny.c: fix %c, char promoted to int
2752 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2754 * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2756 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2758 * support/regression/tests/swap.c: 64 bit hosts failed
2759 * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2761 2007-01-25 Raphael Neider <rneider AT web.de>
2763 * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2764 based on absolute register address, patch by Alex Blond
2766 2007-01-22 Raphael Neider <rneider AT web.de>
2768 * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2769 emitted, do not emit them again...
2771 2007-01-22 Raphael Neider <rneider AT web.de>
2773 * src/regression/bank1.c, src/regression/compare6.c,
2774 src/regression/add.c: cosmetic changes
2775 * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2776 * src/pic/gen.c: fixed global zero and one,
2777 (aopForSym): removed unued code,
2778 (aopGet): assert aop is defined, check and use `index' of
2779 pCodeImmd operands (fixes #1630908),
2780 * src/pic/pcode.c (get_op): added output of generic pointer tag,
2781 (register_reassign): prevent accidental register unification,
2782 (ReuseReg): cosmetic changes (also above)
2783 * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2784 pic14emitStaticSeg): do not emit initialized data,
2785 (printIval*): replaced with working versions,
2786 (pic14createInterruptVect,picglue): use idata for initialized data,
2787 now init data should work in all modules (not only main()),
2788 * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2790 2007-01-21 Borut Razem <borut.razem AT siol.net>
2792 * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2793 use -fPIC or -fpic if they are supported and not ignored
2794 * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2795 * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2797 2007-01-20 Borut Razem <borut.razem AT siol.net>
2799 * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2800 implemented RFE #1470316: allow "$" in variable names
2802 2007-01-20 Raphael Neider <rneider AT web.de>
2804 * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2806 2007-01-20 Raphael Neider <rneider AT web.de>
2808 * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2809 * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2810 * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2811 * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2812 applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2813 * device/lib/pic/libdev/pic*.c,
2814 * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2815 * device/lib/pic/libdev/Makefile.in: show progress
2817 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2819 * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2820 * support/scripts/sdcc_cygwin_mingw32,
2821 * support/scripts/sdcc_mingw32,
2822 * support/scripts/build.mak: replaced --datadir by --datarootdir for
2823 conformance with autoconf 2.6
2825 2007-01-19 Raphael Neider <rneider AT web.de>
2827 * src/pic/device.c (register_map): fixed list construction
2828 * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2829 (genMod): removed case for genModbits,
2830 (genModbits): removed as now unused/unimplemented
2831 * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2833 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2835 * support/regression/tests/swap.c: added in response to #1638622
2836 * doc/sdccman.lyx: synced version, minor changes
2838 2007-01-18 Borut Razem <borut.razem AT siol.net>
2840 * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2841 thanks to Gunther Jehle
2842 * src/asm.c: don't die if the file drfined in #line couldn't be opened
2843 * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2844 src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2845 use filename in lineno instead.
2846 * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2847 print the file name in ast_print()
2849 2007-01-18 Borut Razem <borut.razem AT siol.net>
2851 * support/Util/dbuf_string.c: removed (PTR) cast since it is not
2853 * src/SDCC.lex: stringLiteral() returns const char pointer,
2854 EOF detection in stringLiteral(), fixed asmbuf memory leak,
2855 fixed column counting
2856 * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
2857 accept const char pointer as parameter
2858 * src/SDCCdwarf2.c: corrected buffer size
2860 2007-01-17 Borut Razem <borut.razem AT siol.net>
2862 * support/Util/dbuf_string.c: fixed for amd64
2864 2007-01-15 Borut Razem <borut.razem AT siol.net>
2866 * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
2867 removed terminal symbol ELIPSIS, since it was never generated by the
2868 lexer and it was wrongly used in parameter_identifier_list rule
2870 2007-01-15 Raphael Neider <rneider AT web.de>
2872 * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
2873 code page and data banking description
2874 * src/pic/genarith.c,
2875 * src/pic/gen.h: removed bit arithmetic functions,
2876 updated exit(1) to exit(EXIT_FAILURE)
2877 * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
2878 * device/include/pic16/pic18f2455.h,
2879 * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
2880 TRISD and TRISE, fixed/added some bit names
2881 * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
2882 * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
2883 updated pic18f2455.{c,h} instead of duplicating them
2885 2007-01-14 Borut Razem <borut.razem AT siol.net>
2887 * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
2888 Cannot debug files that contain spaces in the path name
2889 by converting spaces in asm file name to underscores
2891 2007-01-13 Borut Razem <borut.razem AT siol.net>
2893 * doc/sdccman.lyx: fixed format errors
2895 2007-01-10 Borut Razem <borut.razem AT siol.net>
2897 * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
2898 codeseg/constseg #pragma fail
2899 * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
2900 * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
2901 suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
2902 suppoprt/cpp2/sdcpp.[ch]: house cleaning
2904 2007-01-09 Borut Razem <borut.razem AT siol.net>
2906 * get rid of diagnistic.[ch], pretty-print.[ch],
2907 c-pretty-print.[ch], ... used just for error, warning, ...
2909 * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
2910 suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
2911 suppoprt/cpp2/pretty-print.[ch]:
2913 * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
2914 suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
2915 suppoprt/cpp2/sdcpp.dsp:
2918 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
2920 * device/lib/printf_large.c (output_float): removed recursion,
2921 use smaller buffer on stack for mcs51,
2922 fixed bug printing 1.96
2923 * support/regression/tests/snprintf.c: added test
2925 2007-01-07 Borut Razem <borut.razem AT siol.net>
2927 * use dynamic memory buffers instead temporary files
2928 * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
2930 * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
2931 src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
2932 src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
2933 src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
2934 src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
2935 src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
2936 src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
2937 src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
2938 src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
2939 src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
2940 src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
2941 support/Util/dbuf.c, support/Util/dbuf.h:
2943 * .version, sdcc.spec: bumped version to 2.6.4
2945 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2947 * src/port.h: added TARGET_Z80_LIKE macro
2948 * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
2949 output PSEG location if --xram-loc or --xstack-loc was used
2950 * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
2952 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
2954 * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
2955 * as/as_z80.dsp, as/z80/as_z80.dsp,
2956 * as/asx8051.dsp, as/mcs51/asx8051.dsp,
2957 * sdcc.dsw: moved project files into subdir
2958 * as/hc08/as_hc08.dsp,
2959 * as/hc08/Makefile.bcc,
2960 * as/hc08/Makefile.in,
2961 * as/mcs51/Makefile.bcc,
2962 * as/mcs51/Makefile.in,
2963 * as/z80/Makefile.bcc,
2964 * as/z80/Makefile.in,
2965 * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
2968 * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
2971 * as/mcs51/asmain.c,
2973 * as/z80/assym.c: removed include "strcmpi.h"
2974 * as/hc08/strcmpi.c,
2975 * as/hc08/strcmpi.h,
2976 * as/mcs51/strcmpi.c,
2977 * as/mcs51/strcmpi.h,
2978 * support/Util/strcmpi.c,
2979 * support/Util/strcmpi.h: removed files
2980 * as/strcmpi.c: added as_strncmpi()
2982 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2984 * sdcc.dsw: Added some dependencies on project config.dsp
2986 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
2988 * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
2989 with [di]ram_start to fix a regresion
2991 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
2993 * configure.in: added missing mcs51 in status output
2994 * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
2996 * debugger/mcs51/clean.mk (distclean): remove config.h
2997 * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
2998 * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
2999 options.h, s-options-h and options.c
3000 * support/cpp2/clean.mk: unused, removed
3001 * Makefile.common.in,
3004 * as/hc08/Makefile.in,
3006 * as/mcs51/Makefile.in,
3007 * as/mcs51/clean.mk,
3010 * as/z80/Makefile.in,
3012 * as/link/Makefile.in,
3013 * as/link/hc08/Makefile.in,
3014 * as/link/hc08/clean.mk,
3015 * as/link/mcs51/Makefile.in,
3016 * as/link/mcs51/clean.mk,
3017 * as/link/z80/Makefile.in,
3018 * as/link/z80/clean.mk,
3019 * as/link/z80/conf.mk,
3020 * debugger/mcs51/Makefile.in,
3021 * debugger/mcs51/clean.mk,
3022 * device/include/Makefile.in,
3023 * device/lib/Makefile.in,
3024 * device/lib/mcs51/Makefile.in,
3025 * device/lib/pic/Makefile.in,
3026 * device/lib/pic/Makefile.common.in,
3027 * device/lib/pic/Makefile.subdir,
3028 * device/lib/pic/Makefile.rules,
3029 * device/lib/pic16/libio/Makefile.in,
3030 * device/lib/pic16/Makefile.subdir,
3031 * device/lib/pic16/libdev/Makefile.in,
3032 * device/lib/pic16/Makefile.rules,
3033 * device/lib/pic16/Makefile.common.in,
3034 * sim/ucsim/avr.src/Makefile.in,
3035 * sim/ucsim/main_in.mk,
3036 * sim/ucsim/cmd.src/Makefile.in,
3037 * sim/ucsim/doc/Makefile.in,
3038 * sim/ucsim/gui.src/Makefile.in,
3039 * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3040 * sim/ucsim/gui.src/serio.src/Makefile.in,
3041 * sim/ucsim/hc08.src/Makefile.in,
3042 * sim/ucsim/libltdl/Makefile.in,
3043 * sim/ucsim/s51.src/Makefile.in,
3044 * sim/ucsim/sim.src/Makefile.in,
3045 * sim/ucsim/sim.src/conf.mk,
3046 * sim/ucsim/xa.src/Makefile.in,
3047 * sim/ucsim/z80.src/Makefile.in,
3051 * support/cpp2/Makefile.in,
3052 * support/librarian/Makefile.in,
3053 * support/librarian/clean.mk,
3054 * support/makebin/Makefile.in,
3055 * support/makebin/clean.mk,
3056 * support/packihx/Makefile.in,
3057 * support/regression/Makefile.in,
3058 * support/regression/ports/ds390/spec.mk,
3059 * support/regression/ports/gbz80/spec.mk,
3060 * support/regression/ports/hc08/spec.mk,
3061 * support/regression/ports/mcs51/spec.mk,
3062 * support/regression/ports/mcs51-large/spec.mk,
3063 * support/regression/ports/mcs51-medium/spec.mk,
3064 * support/regression/ports/mcs51-xstack-auto/spec.mk,
3065 * support/regression/ports/pic14/spec.mk,
3066 * support/regression/ports/pic16/spec.mk,
3067 * support/regression/ports/mcs51-stack-auto/spec.mk,
3068 * support/regression/ports/ucz80/spec.mk,
3069 * support/regression/ports/xa51/spec.mk,
3070 * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3071 adding a slash after $(top_builddir) and/or adding @datarootdir@
3073 * debugger/mcs51/configure.in,
3074 * device/lib/pic/configure.in,
3075 * device/lib/pic16/configure.in,
3076 * sim/ucsim/configure.in,
3077 * support/cpp2/configure.in,
3078 * support/packihx/configure.in: changed AC_PREREQ to 2.60
3080 * debugger/mcs51/configure,
3081 * device/lib/pic/configure,
3082 * device/lib/pic16/configure,
3083 * sim/ucsim/configure,
3084 * support/cpp2/configure,
3085 * support/packihx/configure: generated with autoconf 2.60
3087 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3089 * as/link/hc08/lkihx.c (newArea),
3090 * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3092 2007-01-02 Borut Razem <borut.razem AT siol.net>
3094 * doc/sdccman.lyx: documented #pragma sdcc_hash
3095 * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3097 * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3099 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3101 * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3102 empty 'while'-loop to work correctly, see regression test 'while.c'
3103 * support/regression/tests/while.c: added
3105 2007-01-01 Borut Razem <borut.razem AT siol.net>
3107 * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3108 support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3109 support/cpp2/libcpp/sdcpp.c:
3110 sdcpp specific pragma/directive/option handling moved to sdcpp.c
3111 * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3112 * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3114 2006-12-31 Borut Razem <borut.razem AT siol.net>
3116 * SDCPP synchronized with GCC CPP release version 4.1.1,
3117 currently the latest release:
3118 * support/cpp2/libcpp, support/cpp2/libcpp/include,
3119 support/cpp2/libcpp/include/cpp-id-data.h
3120 support/cpp2/libiberty/fopen_unlocked.c
3121 support/cpp2/libiberty/md5.c
3123 support/cpp2/opt-functions.awk
3124 support/cpp2/opt-gather.awk
3125 support/cpp2/optc-gen.awk
3126 support/cpp2/opth-gen.awk:
3128 * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3129 support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3130 support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3131 support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3132 support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3133 support/cpp2/diagnostic.h, support/cpp2/except.h,
3134 support/cpp2/hwint.h, support/cpp2/input.h,
3135 support/cpp2/intl.h, support/cpp2/move-if-change,
3136 support/cpp2/opts.c, support/cpp2/opts.h,
3137 support/cpp2/output.h, support/cpp2/prefix.c,
3138 support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3139 support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3140 support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3141 support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3142 support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3143 support/cpp2/version.c:
3145 * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3146 support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3147 support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3148 support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3149 support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3150 support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3151 support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3152 support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3153 support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3154 support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3155 support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3157 * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3158 support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3159 support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3160 support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3161 support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3162 support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3163 support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3164 support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3165 support/cpp2/hashtable.h, support/cpp2/line-map.c,
3166 support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3167 support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3168 support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3169 support/cpp2/system.h:
3172 2006-12-31 Borut Razem <borut.razem AT siol.net>
3174 * configure.in, configure: fixed bug #1538756: configure dies if bison
3175 and flex are not installed, 2nd try
3177 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3179 * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3180 400.x for better code in RFE 899102
3182 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3184 * src/SDCCpeeph.c (deadMove),
3186 * src/mcs51/peep.h: renamed 'op' by 'reg'
3187 * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3188 (scan4op): small change for removeDeadMove(), added support for
3189 'callee saves' and/or PACLL function calls,
3190 (removeDeadMove): added, removes superflous 'mov r%1,%2',
3191 (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3192 left in new dispatcher mcs51DeadMove()
3193 (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3195 * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3197 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3199 * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3200 support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3202 2006-12-30 Borut Razem <borut.razem AT siol.net>
3204 * support/cpp2/spacs.h: deleted from svn
3205 * configure.in, configure: fixed bug #1538756: configure dies if bison
3206 and flex are not installed
3208 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3210 * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3211 with this z80 passes printf float test when enabled
3212 * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3214 2006-12-28 Borut Razem <borut.razem AT siol.net>
3216 * support/cpp2/config.in, support/cpp2/configure.in,
3217 support/cpp2/configure, support/cpp2/Makefile.in:
3218 fix for the solaris build
3220 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3222 * src/SDCC.y (type_specifier2, pointer),
3224 * src/SDCCsymt.c (mergeSpec, checkSClass),
3225 * support/Util/SDCCerr.c,
3226 * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3227 * support/valdiag/valdiag.py: Allow test cases to specify
3228 required language standard
3229 * support/valdiag/tests/restrict.c: New file to test restrict keyword
3230 * support/valdiag/tests/tentdecl.c: Supress empty source file error
3232 2006-12-27 Borut Razem <borut.razem AT siol.net>
3234 * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3235 * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3237 * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3239 * support/cpp2/libiberty/Makefile.bcc: updated
3240 * src/pic16/main.c: fixed #pragma udata handling
3241 * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3243 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3245 * src/SDCCpeeph.c: made labelHashEntry global,
3246 made pcDistance, FBYNAME static,
3247 (pcDistance): made static, use isComment and isLabel,
3249 (getLabelRef): added, extracted from labelRefCount(),
3250 (labelRefCount): use new getLabelRef(),
3251 (callFuncByName): made static, added deadMove,
3252 use isComment and isLabel,
3253 (newPeepRule): made static, set isLabel,
3254 (isLabelDefinition): added parameter isPeepRule to allow '%' in
3255 labels from peephole rules,
3256 (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3257 when isComment or isLabel is set
3258 * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3259 added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3261 * src/mcs51/peep.h: added
3262 * src/mcs51/peep.c: added, implements mcs51DeadMove()
3263 * src/port.h: added peep->deadMove to port structure
3264 * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3265 * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3266 deadMove, finally removed no. 1 and 2
3273 * src/hc08/gen.c: mark lines with isComment or isLabel
3274 * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3276 * sdcc.spec: bumped version to 2.6.3
3278 2006-12-26 Borut Razem <borut.razem AT siol.net>
3280 * support/cpp2/Makefile.in: added dependency on options.h
3281 * configure: regenerated
3282 * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3283 * support/cpp2/Makefile.in: added vasprintf.c
3285 2006-12-25 Borut Razem <borut.razem AT siol.net>
3287 * SDCPP synchronized with GCC CPP release version 3.4.6,
3288 the latest release before 4.x:
3289 * support/cpp2/Makefile.in, support/cpp2/config.h,
3290 support/cpp2/configure, support/cpp2/configure.in,
3291 support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3292 support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3293 support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3294 support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3295 support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3296 support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3297 support/cpp2/cpptrad.c, support/cpp2/except.h,
3298 support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3299 support/cpp2/hwint.h, support/cpp2/intl.h,
3300 support/cpp2/line-map.c, support/cpp2/line-map.h,
3301 support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3302 support/cpp2/output.h, support/cpp2/prefix.c,
3303 support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3304 support/cpp2/system.h, support/cpp2/version.c:
3306 * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3307 support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3308 support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3309 support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3310 support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3311 support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3312 support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3313 support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3314 support/cpp2/move-if-change, support/cpp2/opts.c,
3315 support/cpp2/opts.h, support/cpp2/opts.sh,
3316 support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3317 support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3318 support/cpp2/win32, support/cpp2/win32/dirent.c,
3319 support/cpp2/win32/dirent.h:
3321 * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3322 * support/cpp2/sdcpp.h: renamed from sdcc.h
3323 * sdcppinit.c: deleted
3325 2006-12-23 Borut Razem <borut.razem AT siol.net>
3327 * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3328 support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3329 preproc.c: an other try to fix bug #982435: introduced
3330 -pedantic-parse-number command line option and pedantic_parse_number
3333 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3335 * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3337 (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3338 corrected overlayed areax addresses, warn about memory overlaps
3339 * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3348 * src/port.h: added xabs_name and iabs_name
3349 * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3350 (glue, emitMaps): create and emit maps d_abs and i_abs
3351 * src/SDCCglue.h: cosmetic changes
3352 * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3354 * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3355 (allocDefault): put absolute, initialized globals in them
3356 * support/regression/tests/absolute.c: added absolute bdata test
3357 * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3359 2006-12-20 Borut Razem <borut.razem AT siol.net>
3361 * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3362 * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3363 added regression test for bug #982435
3365 2006-12-18 Borut Razem <borut.razem AT siol.net>
3367 * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3368 * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3369 small cosmetic changes
3370 * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3371 * support/regression/tests/bug-1351710.c: added regression test
3373 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3375 * doc/sdccman.lyx: added the long missed iCode table
3376 "<where is figure II?>", added links to wiki
3378 2006-12-17 Borut Razem <borut.razem AT siol.net>
3380 * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3381 src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3382 support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3383 unified table driven pragma handling, pragma argument type checking
3384 * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3385 current one - version 1.1.3
3386 * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3388 2006-12-13 Raphael Neider <rneider AT web.de>
3390 * src/pic/device.h: removed AssignedMemory structure and macros
3391 * src/pic/device.c: removed global finalMapping (linker assigns
3393 (register_map): add SFRs to remembered memRanges
3394 (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3395 assignFixedRegisters,assignRelocatableRegisters): removed,
3396 (setMaxRAM,validAddress): adapted accordingly,
3397 (pic14_hasSharebank,pic14_getSharedStack): only report and use
3398 reasonably sized sharebanks,
3399 * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3400 (allDefsOutOfRange): removed unused code,
3401 * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3403 * src/pic/pcode.c (register_reassign): removed recursion warning,
3404 fired far too often,
3405 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3406 to use existing pic14_stringInSet() to avoid duplicate symbols,
3407 tidied up the code a bit,
3408 (pic14printLocals): added in symmetry to printExterns, replaces
3409 writeUsedRegs more or less,
3410 (picglue): call new pic14_printLocals(),
3411 * device/include/pic/pic*.h: removed #pragma memmap directives,
3412 information gathered from include/pic/pic14devices.txt
3413 * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3415 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3417 * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3419 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3421 * device/include/mcs51/cc2430.h: fixed missing ';'
3423 2006-12-10 Raphael Neider <rneider AT web.de>
3425 * device/lib/pic16/libc/stdio/vfprintf.c,
3426 * device/lib/pic16/libc/stdio/printf_small.c,
3427 * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3428 char arguments, as char varargs are cast to int by the caller,
3429 hopefully fixes #1604915 (other device libraries are still affected)
3431 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3433 * src/mcs51/ralloc.c (packRegsForAssign),
3434 * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3436 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3438 * device/include/malloc.h: removed init_dynamic_memory
3439 * device/lib/malloc.c: made init_dynamic_memory static and automatically
3440 call it once from malloc. Also use _sdcc_heap[] from _heap.c
3441 * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3442 * device/lib/libsdcc.lib,
3443 * device/lib/Makefile.in,
3444 * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3445 * doc/sdccman.lyx: documented use of new _heap.c
3446 * support/regression/tests/malloc.c: removed init_dynamic_memory
3447 * src/cdbFile.c(spacesToUnderscores): new function,
3448 (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3450 * device/include/tinibios.h: removed defines for putchar and getchar
3451 * device/lib/ds390/Makefile.in: added putchar.c
3452 * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3454 2006-12-09 Borut Razem <borut.razem AT siol.net>
3456 * support/cpp2/sdcc.h: prevent multiple inclusion
3457 * support/cpp2/options.h: deleted
3459 2006-12-08 Borut Razem <borut.razem AT siol.net>
3461 * support/cpp2/sdcc.h: removed x*alloc() macros
3462 * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3463 * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3464 support/cpp2/sdcpp.sdc: x*alloc files added to the project
3465 * support/cpp2/system.h: moved #include "sdcc.h"
3466 * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3467 support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3469 * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3470 -funsigned-char options
3471 * support/cpp2/sdcppmain.c: fixed bug 1611411
3473 2006-12-07 Borut Razem <borut.razem AT siol.net>
3475 * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3478 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3480 * src/SDCCsymt.c (addDecl): fixed bug 1609244
3481 * src/SDCCmain.c (linkEdit): fixed bug 1609279
3483 * .version: bumped to 2.6.2 because a) it's been a while
3484 b) the linker sources have moved c) the preprocessor is upgraded
3486 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3488 * support/regression/tests/snprintf.c: some checks
3489 * lib/src/printf_large.c: %bc: read char instead of int from stack
3491 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3493 * device/include/mcs51/cc2430.h: inserted _XPAGE
3495 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3497 * device/include/mcs51/cc2430.h: added
3499 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3501 * device/include/asm/default/features.h,
3502 * device/include/asm/ds390/features.h,
3503 * device/include/mcs51/at89s53.h,
3504 * device/include/ser.h,
3505 * device/include/ser_ir.h,
3506 * device/include/serial.h: changed keywords to double underscore variants,
3507 fixes bug 1590261 some more, thanks Steven Borley
3509 2006-12-01 Raphael Neider <rneider AT web.de>
3511 * src/pic/pcode.c (register_reassign): do not crash on recursive code
3512 but emit warning (recursion is not supported for pic14)
3514 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3516 * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3517 * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3519 2006-11-30 Raphael Neider <rneider AT web.de>
3521 * src/pic/device.c (dump_sfr): always emit symbols
3522 * src/pic/glue.c (pic14printPublics): fixed typo
3524 2006-11-30 Raphael Neider <rneider AT web.de>
3526 * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3527 (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3528 (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3529 pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3530 a sharebank, use a non-shared bank for the stack if none available
3531 * src/pic/device.h (struct memRange): added linked list next field,
3532 added prototypes for above functions
3533 * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3534 (typeRegWithIdx): accept fixed and unfixed stack registers
3535 * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3536 the stack, handle shared and banked stack (except for WSAVE),
3537 (insertBankSel): removed useless optimization (will never fire),
3538 (FixRegisterBanking): added optimization for devices with only one
3539 possibly aliased bank of memory, like 16f84
3540 * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3541 devices have no SHAREBANK in the linker script
3542 * device/include/pic/pic14devices.txt: documented memmap
3543 * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3545 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3547 * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3548 storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3549 genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3550 genhc08Code): switched most of the D (debug) macros to DD (detailed
3551 debug) macros to better control clutter in the generated .asm file.
3552 * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3553 genRightShift): fixed bug with non-constant bit shift stored to
3554 a volatile result (SF Open Discussion forum thread #1616749).
3555 Single byte case is not yet optimized.
3557 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3559 * device/include/asm/mcs51/features.h,
3560 * device/include/malloc.h,
3561 * device/include/stdio.h: changed keywords to double underscore variants,
3564 2006-11-27 Borut Razem <borut.razem AT siol.net>
3566 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3567 support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3568 support/cpp2/output.h, support/cpp2/cppinit.c,
3569 support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3570 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3571 support/cpp2/cppdefault.c, support/cpp2/system.h,
3572 support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3573 support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3574 support/cpp2/prefix.c, support/cpp2/except.h,
3575 support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3576 support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3577 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3578 support/cpp2/version.c, support/cpp2/cppmain.c,
3579 support/cpp2/version.h, support/cpp2/hashtable.c,
3580 support/cpp2/cpperror.c:
3581 synchronized with GCC CPP release version 3.3.6,
3582 the latest where cppmain.c still exists.
3583 * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3584 support/cpp2/sdcppinit.c: added
3586 2006-11-27 Borut Razem <borut.razem AT siol.net>
3588 * support/cpp2/cpplex.c:
3589 fixed _asm ... _endasm handling bug, introduce with GCC CPP
3591 * support/cpp2/cpplib.c: removed definitions of unused variables
3593 2006-11-26 Borut Razem <borut.razem AT siol.net>
3595 * support/cpp2/libiberty.h: commented out x*alloc() declarations
3596 since they are redefined by macros in support/cpp2/sdcc.h
3597 * support/cpp2/sdcc.h: x*alloc macro redefinition
3599 2006-11-25 Borut Razem <borut.razem AT siol.net>
3601 * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3602 support/cpp2/configure, support/cpp2/Makefile.in,
3603 support/cpp2/cppfiles.c, support/cpp2/output.h,
3604 support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3605 support/cpp2/config.h, support/cpp2/cpplib.h,
3606 support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3607 support/cpp2/cppdefault.c, support/cpp2/config.in,
3608 support/cpp2/system.h, support/cpp2/cpplex.c,
3609 support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3610 support/cpp2/cppdefault.h, support/cpp2/prefix.c
3611 support/cpp2/hwint.h, support/cpp2/mbchar.h,
3612 support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3613 support/cpp2/configure.in, support/cpp2/intl.h,
3614 support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3615 support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3616 support/cpp2/version.c, support/cpp2/cppmain.c,
3617 support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3618 support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3619 support/cpp2/cpperror.c,
3620 support/cpp2/libiberty/safe-ctype.c,
3621 support/cpp2/libiberty/safe-ctype.h,
3622 support/cpp2/libiberty/splay-tree.c,
3623 support/cpp2/libiberty/obstack.c,
3624 support/cpp2/libiberty/lbasename.c,
3625 support/cpp2/libiberty/splay-tree.h,
3626 support/cpp2/libiberty/obstack.h:
3627 synchronized with GCC CPP release version 3.2.3,
3628 the latest before integration of cpp into gcc
3629 * support/cpp2/except.h, support/cpp2/line-map.c,
3630 support/cpp2/line-map.h,
3631 support/cpp2/libiberty/hex.c,
3632 support/cpp2/libiberty/concat.c,
3633 support/cpp2/libiberty/filenames.h: added
3634 * support/cpp2/intl.c: deleted
3636 2006-11-24 Borut Razem <borut.razem AT siol.net>
3638 * src/SDCC.y: enabled compilation of empty source file
3639 * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3640 "ISO C forbids an empty source file"
3641 * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3642 if all the code is ifdefed out.
3644 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3646 * src/hc08/gen.c (genPcall): fix for bug #1601032
3648 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3650 * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3651 * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3652 * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3653 * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3654 * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3655 * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3656 * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3657 * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3658 * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3659 * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3660 * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3661 * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3662 * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3663 * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3664 * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3665 Renamed to all upper case as per the standard set by SiLabs
3667 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3669 * device/include/mcs51/C8051F520.h: new, added
3670 * device/include/mcs51/compiler.h: added link about predefined macros
3672 2006-11-23 Raphael Neider <rneider AT web.de>
3674 * src/regression/Makefile: add -L path to fresh library
3675 * src/regression/simulate: emphasize FAILED output
3676 * src/regression/create_stc: output _failures from gpsim
3677 * src/regression/compare4.c,
3678 * src/regression/rotate6.c: fixed char literals,
3679 all compile, all run =8-D
3681 * src/pic/pcode.h: added isPCASMDIR macro
3682 * src/pic/gen.c (genAnd): fixed bit offset
3683 * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3684 packBits): unified register numbering schemes,
3685 (newReg): do not insert stack registers into hash table,
3686 (initStack): unpinned pseudo stack, simplified,
3687 (typeRegWithIdx): fixed retrieval of stack registers,
3688 * src/pic/pcode.c (addpCodeComment,sameBank): added,
3689 (pCodeReplace): removed invalid assertion,
3690 (insertPCodeInstruction): fixed newly added labels,
3691 (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3692 FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3693 DumpFlow): removed unsed (broken?) code,
3694 (insertBankSel): prevent STATUS from being BANKSELed,
3695 (FixRegisterBanking): rewritten from scratch, implemented generic
3696 optimizations (suppress BANKSELs to same register and to registers
3697 present in all banks),
3698 (AnalyzeBanking): update flow after BANKSELection
3700 * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3701 sharebank, let linker place it, mark STKxx symbols as emitted
3703 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3705 * src/regression/arrays.c,
3706 * src/regression/bank1.c,
3707 * src/regression/bool2.c,
3708 * src/regression/compare7.c,
3709 * src/regression/compare8.c,
3710 * src/regression/compare9.c,
3711 * src/regression/compare10.c,
3712 * src/regression/configword.c,
3713 * src/regression/for.c,
3714 * src/regression/mult1.c,
3715 * src/regression/pointer1.c,
3716 * src/regression/rotate6.c,
3717 * src/regression/string1.c,
3718 * src/regression/struct1.c,
3719 * src/regression/Makefile: make PIC14 regression tests run again
3720 (3 fail, 6 won't compile)
3722 2006-11-21 Raphael Neider <rneider AT web.de>
3724 * device/include/pic16/pic18f4550.h,
3725 * device/include/pic16/pic18f4455.h,
3726 * device/lib/pic16/libdev/pic18f4550.c,
3727 * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3728 * configure.in: removed superfluous closing bracket
3730 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3732 * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3735 2006-11-21 Raphael Neider <rneider AT web.de>
3737 * src/pic/device.{c,h}: added pic14_getPIC()
3738 * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3739 (genAnd): added PIC code for one case, fixes #1597044
3740 * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3741 SFRs that are present in all banks (e.g., STATUS)
3743 2006-11-20 Raphael Neider <rneider AT web.de>
3745 * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3746 INCFSZ/INCFSZW and declared them as changing Z bit,
3747 (insertPCodeInstruction): correctly invert the above instructions,
3749 (DoBankSelect): don't panic on po_immediates
3751 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3754 * as/link/mcs51/lkihx.c (newArea),
3755 * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3756 * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3758 2006-11-11 Raphael Neider <rneider AT web.de>
3760 * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3761 bitfield symbols, fixes #1579535 (once more...).
3763 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3765 * support/regression/generate-cases.py,
3766 * support/regression/fwk/include/testfwk.h,
3767 * support/regression/fwk/lib/testfwk.c: used code pointers,
3768 (about 50kByte less code generated for mcs51)
3770 2006-11-06 Borut Razem <borut.razem AT siol.net>
3772 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3773 debugger/mcs51/configure: fixed failed check because the function
3774 rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3775 who submitted the patch for gpsim.
3776 * debugger/mcs51/configure.in: removed the result message
3777 * debugger/mcs51/Makefile.in: fixed the config.status warning
3778 "... seems to ignore the --datarootdir setting"
3780 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3782 * device/include/mcs51/c8051f020.h,
3783 * device/include/mcs51/c8051f040.h,
3784 * device/include/mcs51/c8051f060.h,
3785 * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3786 * src/z80/gen.c (gencjneshort),
3787 * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3789 2006-10-31 Borut Razem <borut.razem AT siol.net>
3791 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3792 debugger/mcs51/configure: get readline version
3794 2006-10-30 Borut Razem <borut.razem AT siol.net>
3796 * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3797 * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3798 debugger/mcs51/configure: locate readline even when cross compiling
3799 * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3801 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3803 * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3806 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3808 * device/include/malloc.h,
3809 * device/lib/calloc.c,
3810 * device/lib/free.c,
3811 * device/lib/malloc.c,
3812 * device/lib/realloc.c: moved definition of struct into sources
3813 * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3815 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3817 * as/asx8051.dsp: corrected output directories
3818 * as/link/hc08: new directory for hc08 linker
3819 * as/hc08/aslink.h, as/link/aslink.h,
3820 * as/hc08/aslink.mak, as/link/hc08/aslink.mak,
3821 * as/hc08/clean.mk, as/link/hc08/clean.mk,
3822 * as/hc08/link_hc08.dsp, as/link/hc08/link_hc08.dsp,
3823 * as/hc08/lkaomf51.c, as/link/hc08/lkaomf51.c,
3824 * as/hc08/lkarea.c, as/link/hc08/lkarea.c,
3825 * as/hc08/lkdata.c, as/link/hc08/lkdata.c,
3826 * as/hc08/lkelf.c, as/link/hc08/lkelf.c,
3827 * as/hc08/lkihx.c, as/link/hc08/lkihx.c,
3828 * as/hc08/lklibr.c, as/link/hc08/lklibr.c,
3829 * as/hc08/lkmain.c, as/link/hc08/lkmain.c,
3830 * as/hc08/lkmem.c, as/link/hc08/lkmem.c,
3831 * as/hc08/lkrloc.c, as/link/hc08/lkrloc.c,
3832 * as/hc08/lks19.c, as/link/hc08/lks19.c,
3833 * as/hc08/Makefile.aslink, as/link/hc08/Makefile.aslink,
3834 * as/hc08/Makefile.bcc, as/link/hc08/Makefile.bcc,
3835 * as/hc08/Makefile.in, as/link/hc08/Makefile.in,
3836 * as/link/hc08/conf.mk,
3840 * sdcc.dsw: moved hc08 linker to as/link/hc08
3841 * as/hc08/lkeval.c, as/link/mcs51/lkeval.c, as/link/lkeval.c,
3842 * as/hc08/lkhead.c, as/link/mcs51/lkhead.c, as/link/lkhead.c,
3843 * as/hc08/lklex.c, as/link/mcs51/lklex.c, as/link/lklex.c,
3844 * as/hc08/lklist.c, as/link/mcs51/lklist.c, as/link/lklist.c,
3845 * as/hc08/lknoice.c, as/link/mcs51/lknoice.c, as/link/lknoice.c,
3846 * as/hc08/lksym.c, as/link/mcs51/lksym.c, as/link/lksym.c,
3847 * as/link/mcs51/aslink.dsp,
3848 * as/link/mcs51/Makefile.in: factored out the common files
3849 * as/hc08/lkstore.c: deleted, use the one already in as/link/
3850 * as/clean.mk: extra cleaning common files
3851 * as/link/mcs51/strcmpi.c, as/strcmpi.c: moved
3852 * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
3853 * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
3855 2006-10-29 Raphael Neider <rneider AT web.de>
3857 * src/pic/ralloc.c (newReg): create aliases for registers with
3858 multiple names to fix #1579535 and #1584001,
3859 (regWithIdx,dirregWithName): resolve aliases on lookup
3860 * src/pic/pcode.c (DoBankSelect): die with error message on failing
3862 * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
3863 to prevent build errors on small devices
3865 2006-10-28 Raphael Neider <rneider AT web.de>
3867 * src/pic/gen.c (genFunction,genCall): drop "same code page"
3868 assumption within interrupt handlers, fixes #1584940
3869 * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
3870 "emitted" to avoid emitting them again in udata
3872 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3874 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3877 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3879 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
3880 Initialize uart only if SM0 and SM1 are zero. Also, use flag to turn
3881 on/off CR to CRLF conversion.
3883 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3885 * doc/sdccman.lyx: updated IRQ section
3887 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3889 * device/lib/serial_io.c: removed
3890 * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
3891 replacements for serial_io.c
3893 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
3895 * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
3897 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3899 * device/lib/serial_io.c: Default putchar() and getchar() for
3900 mcs51 uses serial port.
3902 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
3904 * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
3906 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3908 * support/regression/ports/mcs51/support.c: smaller
3909 _sdcc_external_startup()
3910 * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
3912 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
3914 * device/lib/gbz80/crt0.s,
3915 * device/lib/gbz80/crt0_rle.s,
3916 * device/lib/gbz80/div.s,
3917 * device/lib/gbz80/fstubs.s,
3918 * device/lib/gbz80/heap.s,
3919 * device/lib/gbz80/mul.s,
3920 * device/lib/gbz80/putchar.s,
3921 * device/lib/gbz80/stubs.s,
3922 * device/lib/z80/crt0.s,
3923 * device/lib/z80/crt0_rle.s,
3924 * device/lib/z80/div.s,
3925 * device/lib/z80/fstubs.s,
3926 * device/lib/z80/heap.s,
3927 * device/lib/z80/mul.s,
3928 * device/lib/z80/putchar.s,
3929 * device/lib/z80/stubs.s: reverted, I was mistaken
3931 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3933 * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
3934 * support/regression/ports/mcs51/support.c: removed race
3935 condition on TI in _putchar allowing to use serial port mode 0
3937 2006-10-20 Borut Razem <borut.razem AT siol.net>
3939 * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
3941 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
3943 * device/lib/gbz80/crt0.s,
3944 * device/lib/gbz80/crt0_rle.s,
3945 * device/lib/gbz80/div.s,
3946 * device/lib/gbz80/fstubs.s,
3947 * device/lib/gbz80/heap.s,
3948 * device/lib/gbz80/mul.s,
3949 * device/lib/gbz80/putchar.s,
3950 * device/lib/gbz80/stubs.s,
3951 * device/lib/z80/crt0.s,
3952 * device/lib/z80/crt0_rle.s,
3953 * device/lib/z80/div.s,
3954 * device/lib/z80/fstubs.s,
3955 * device/lib/z80/heap.s,
3956 * device/lib/z80/mul.s,
3957 * device/lib/z80/putchar.s,
3958 * device/lib/z80/stubs.s: removed all leading underscores from area names
3960 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
3962 * support/regression/ports/mcs51/support.c: use highest baudrate so the
3963 regression tests are not waiting in the simulator for simulated
3964 transmission of debug output
3966 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3968 * device/lib/printf_large.c: slightly smaller
3969 * doc/sdccman.lyx: do not use spaces within html links
3971 2006-10-16 Borut Razem <borut.razem AT siol.net>
3973 * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
3974 debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
3975 debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
3976 debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
3977 debugger/mcs51/configure:
3978 [ 1185668 ] add gnu readline support to sdcdb - enabled
3980 2006-10-16 Raphael Neider <rneider AT web.de>
3982 * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
3983 fixes #1577882, removes close to all banking optimizations
3985 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
3987 * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
3988 variables in code memory
3989 * support/regression/tests/absolute.c: added test for this
3991 2006-10-15 Raphael Neider <rneider AT web.de>
3993 * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
3995 (BankSelect): emit BANKSEL before touching linker-placed regs,
3998 2006-10-10 Raphael Neider <rneider AT web.de>
4000 * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4001 * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4002 * src/pic/main.c (_pic14_parseOptions),
4003 * src/pic/main.h: mostly reverted to previous state, now use results
4004 from SDCCmain.c's argument parsing
4006 2006-10-10 Borut Razem <borut.razem AT siol.net>
4008 * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
4009 debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
4010 [ 1185668 ] add gnu readline support to sdcdb -
4011 prepared for READLINE, not enabled yet,
4012 thanks to <tal.bav AT gmail.com>
4014 2006-10-10 Raphael Neider <rneider AT web.de>
4016 * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
4017 * src/pic16/devices.inc,
4018 * device/include/pic16 (pic18f[24]620.h),
4019 * device/include/pic18fregs.h,
4020 * device/lib/pic16/pics.all,
4021 * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
4022 18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
4023 Gary Plumbridge and Anton Strobl
4025 2006-10-10 Raphael Neider <rneider AT web.de>
4027 * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
4028 --stack-siz=NUM options to configure the argument passing stack
4029 * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
4030 * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
4031 (pic14_getSharebankSize): obey --stack-siz=NUM,
4032 (pic14_getSharebankAddress): obey --stack-loc=NUM
4034 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4036 * doc/sdccman.lyx: added to the manual
4037 * doc/figures/ddd_example.png: added (neither pdflatex nor
4038 most browsers seem to like the .eps file)
4040 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4042 * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4043 to /tmp and /var/tmp acc. LSB
4044 * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4046 * support/regression/tests/onebyte.c: added test
4048 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4050 * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4052 2006-10-05 Borut Razem <borut.razem AT siol.net>
4054 * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4056 - sdcc.dsw: changed property eol-style to CRLF
4057 - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4059 2006-10-04 Raphael Neider <rneider AT web.de>
4061 * device/include/pic/{pic16f84.h,pic16f84a.h},
4062 * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4063 from patch #1522504, thanks to Robas Teodor
4065 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4067 * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4070 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4072 * src/pic16/glue.c (pic16emitMaps),
4073 * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4074 * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4075 * device/lib/pic16/libc/string/memcpypgm2ram.c,
4076 * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4078 * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4079 * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4081 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4083 * support/librarian/sdcclib.c: Added option -l.
4084 * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4086 * device/lib/make51lib.bat: added. Allows building mcs51 libraries easily
4087 using Windows command prompt.
4089 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4091 * device/lib/libsdcc.lib: added module rand
4092 * src/ds390/ralloc.c (rematStr),
4093 * src/hc08/ralloc.c (rematStr),
4094 * src/mcs51/ralloc.c (rematStr),
4095 * src/z80/ralloc.c (rematStr): made output more consistent
4096 * src/mcs51/gen.c: cosmetic changes
4098 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4100 * src/port.h: added mem.cabs_name to PORT
4107 * src/z80/main.c: added cabs_name initializers
4108 * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4110 (emitMaps): emit absolutes in code memory into cabs_name
4112 * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4113 * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4114 * support/regression/fwk/include/testfwk.h: added define for at
4115 * support/regression/tests/absolute.c: added, new
4117 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4119 * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4120 optimizations, see also patch 887161 by Stas Sergeev
4121 * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4122 to be necessary anymore,
4123 (102, 103, 104, 127): renamed all occurances of bp to _bp
4125 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4127 * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4128 thanks Weston T. Schmidt for patch 1555221
4129 * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4130 * src/SDCCicode.c(geniCodeMultiply): small optimization
4132 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4134 * device/include/stdlib.h: added rand prototypes
4135 * device/lib/rand.c: new, added
4136 * device/lib/Makefile.in: added rand.c
4137 * src/z80/peeph.def,
4138 * src/z80/peeph-gbz80.def,
4139 * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4141 2006-09-20 Raphael Neider <rneider AT web.de>
4143 * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4145 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4147 * as/link/aslink.h: cosmetic changes
4148 * as/link/mcs51/Makefile.in,
4149 * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4151 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4154 * as/link/mcs51/aslink.h,
4155 * as/link/z80/aslink.h: merged and moved to as/link/
4156 * as/link/lkstore.c,
4157 * as/link/mcs51/lkstore.c: moved to as/link/
4158 * as/link/clean.mk: remove *.o
4159 * as/link/mcs51/alloc.h: deleted
4160 * as/link/mcs51/lkarea.c: added lnksect prototype
4161 * as/link/mcs51/lkdata.c,
4162 * as/link/mcs51/lklex.c,
4163 * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4164 * as/link/mcs51/lkmem.c,
4165 * as/link/mcs51/lknoice.c: removed include strcmpi.h
4166 * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4167 * as/link/mcs51/aslink.dsp,
4168 * as/link/mcs51/Makefile.aslink,
4169 * as/link/mcs51/Makefile.bcc,
4170 * as/link/mcs51/Makefile.in: updated for moved files
4171 * as/link/z80/lkarea.c,
4172 * as/link/z80/lkhead.c,
4173 * as/link/z80/lklex.c,
4174 * as/link/z80/lklibr.c,
4175 * as/link/z80/lklist.c,
4176 * as/link/z80/lkmain.c,
4177 * as/link/z80/lkrloc.c,
4178 * as/link/z80/lksym.c: synced with mcs51
4179 * as/link/z80/lkdata.c,
4180 * as/link/z80/lkeval.c,
4181 * as/link/z80/lkihx.c,
4182 * as/link/z80/lks19.c: cosmetic changes
4183 * as/link/z80/Makefile.in,
4184 * as/link/z80/linkgbz80.dsp,
4185 * as/link/z80/linkz80.dsp: updated for moved files
4187 2006-09-16 Borut Razem <borut.razem AT siol.net>
4189 * debugger/mcs51/sdcdb.c: partially fixed
4190 [ 1203664 ] sdcdb fails to open files w. two "." periods
4191 * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4192 debugger/mcs51/symtab.h: fixed indenting
4193 * configure.in, configure: up to date with latest Maarten's changes
4195 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4198 as/aslink.dsp, as/link/mcs51/aslink.dsp,
4199 as/link/mcs51/aslink.h, as/mcs51/aslink.h,
4200 as/link/mcs51/aslink.mak, as/mcs51/aslink.mak,
4201 as/link/mcs51/lkaomf51.c, as/mcs51/lkaomf51.c,
4202 as/link/mcs51/lkarea.c, as/mcs51/lkarea.c,
4203 as/link/mcs51/lkdata.c, as/mcs51/lkdata.c,
4204 as/link/mcs51/lkeval.c, as/mcs51/lkeval.c,
4205 as/link/mcs51/lkhead.c, as/mcs51/lkhead.c,
4206 as/link/mcs51/lkihx.c, as/mcs51/lkihx.c,
4207 as/link/mcs51/lklex.c, as/mcs51/lklex.c,
4208 as/link/mcs51/lklibr.c, as/mcs51/lklibr.c,
4209 as/link/mcs51/lklist.c, as/mcs51/lklist.c,
4210 as/link/mcs51/lkmain.c, as/mcs51/lkmain.c,
4211 as/link/mcs51/lkmem.c, as/mcs51/lkmem.c,
4212 as/link/mcs51/lknoice.c, as/mcs51/lknoice.c,
4213 as/link/mcs51/lkrloc.c, as/mcs51/lkrloc.c,
4214 as/link/mcs51/lks19.c, as/mcs51/lks19.c,
4215 as/link/mcs51/lkstore.c, as/mcs51/lkstore.c,
4216 as/link/mcs51/lksym.c, as/mcs51/lksym.c,
4217 as/link/mcs51/Makefile.aslink, as/mcs51/Makefile.aslink,
4218 as/link/mcs51/alloc.h,
4219 as/link/mcs51/clean.mk,
4220 as/link/mcs51/conf.mk,
4221 as/link/mcs51/Makefile.bcc,
4222 as/link/mcs51/Makefile.in,
4223 as/link/mcs51/readme.390,
4224 as/link/mcs51/strcmpi.c,
4225 as/link/mcs51/strcmpi.h,
4227 as/mcs51/Makefile.bcc,
4228 as/mcs51/Makefile.in,
4231 sdcc.dsw: moved mcs51 linker to as/link/mcs51
4233 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4236 * as/link/Makefile.in,
4237 * as/link/z80/linkgbz80.dsp,
4238 * as/link/z80/linkz80.dsp,
4245 * link/z80/aslink.h,
4246 * link/z80/clean.mk,
4248 * link/z80/linkgbz80.dsp,
4249 * link/z80/linkz80.dsp,
4250 * link/z80/lkarea.c,
4251 * link/z80/lkdata.c,
4252 * link/z80/lkeval.c,
4255 * link/z80/lkhead.c,
4258 * link/z80/lklibr.c,
4259 * link/z80/lklist.c,
4260 * link/z80/lkmain.c,
4261 * link/z80/lkrloc.c,
4264 * link/z80/Makefile.in,
4266 * sdcc.dsw: moved link/ to as/link/
4268 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4270 * as/mcs51/i51mch.c (machine): fixed warning
4272 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4274 * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4276 2006-09-09 Borut Razem <borut.razem AT siol.net>
4278 * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4279 sdcdb WIN32 native port
4280 * src/clean.mk: fixed
4282 2006-09-08 Borut Razem <borut.razem AT siol.net>
4284 * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4286 2006-09-08 Raphael Neider <rneider AT web.de>
4288 * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4289 * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4290 to gplink to disable processor mismatch warning and to allow
4291 the use of devices with only aliased (shared) memory banks,
4292 (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4294 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4296 * doc/sdccman.lyx: Some re-formating plus example on using
4297 #pragma preproc_asm +/-
4299 2006-09-07 Borut Razem <borut.razem AT siol.net>
4301 * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4304 2006-09-06 Borut Razem <borut.razem AT siol.net>
4306 * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4307 line at sdcc.nsi:153
4308 * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4310 2006-09-05 Borut Razem <borut.razem AT siol.net>
4312 * configure.in, configure: support for winsock2
4313 * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4314 debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4315 debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4316 debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4317 debugger/mcs51/symtab.h: sdcdb WIN32 native port
4319 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4321 * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4323 * support/regression/tests/bug1551947.c: new, added
4324 * src/SDCCsymt.h: strings are char* not byte*
4326 2006-09-05 Raphael Neider <rneider AT web.de>
4328 * device/lib/pic16/libdev/pic18f4550.c,
4329 device/include/pic16/pic18f4550.h: added PORTD/TRISD
4330 declarations/definitions from patch #1520949
4332 2006-09-05 Raphael Neider <rneider AT web.de>
4334 * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4335 byte-aligned bitfields, fixes #1539278
4337 2006-09-05 Raphael Neider <rneider AT web.de>
4339 * src/pic/gen.c (genReceive): skip unreferenced arguments,
4342 2006-09-04 Borut Razem <borut.razem AT siol.net>
4344 * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4345 * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4346 -mno-cygwin is a part of the compiler name
4347 * support/scripts/sdcc_mingw32: don't disable ucsim
4349 2006-09-03 Borut Razem <borut.razem AT siol.net>
4351 * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4352 * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4354 2006-09-03 Raphael Neider <rneider AT web.de>
4357 * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4358 indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4361 2006-09-01 Borut Razem <borut.razem AT siol.net>
4363 * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4364 to make ppc-osx happy
4366 2006-08-31 Borut Razem <borut.razem AT siol.net>
4368 * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4369 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4370 * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4371 * support/regression/ports/ds390/spec.mk,
4372 support/regression/ports/mcs51/spec.mk,
4373 support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4374 To run regression tests in mingw environment:
4375 make DEV_NULL=NUL CC=gcc
4377 2006-08-30 Borut Razem <borut.razem AT siol.net>
4379 * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4380 sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4381 sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4382 sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4383 sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4384 sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4385 sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4386 sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4387 sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4388 sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4389 sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4390 sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4391 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4392 sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4393 sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4394 sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4395 sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4396 sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4397 sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4398 sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4399 sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4400 sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4401 sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4402 sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4403 sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4404 sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4405 sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4406 sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4407 sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4408 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4409 sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4410 sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4411 sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4412 sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4413 sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4414 sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4415 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4416 sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4417 sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4418 ucsim WIN32 native port
4420 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4422 * doc/sdccman.lyx: added note on dynamic memory heap initialization
4424 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4426 * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4427 * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4429 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4431 * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4432 * support/regression/tests/bug1546986.c: new, added
4433 * as/mcs51/.cvsignore,
4434 * debugger/mcs51/.cvsignore,
4435 * src/.cvsignore: deleted
4437 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4439 * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4442 2006-08-20 Borut Razem <borut.razem AT siol.net>
4444 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4445 removed cl_listen_console::match(), cl_console::match(),
4446 restructured cl_commander::proc_input()
4448 2006-08-16 Borut Razem <borut.razem AT siol.net>
4450 * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4451 sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4452 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4454 2006-08-14 Borut Razem <borut.razem AT siol.net>
4456 * support/regression/Makefile.in,
4457 support/regression/ports/pic14/gpsim.cmd,
4458 support/regression/ports/pic14/spec.mk,
4459 support/regression/ports/pic14/support.c:
4460 added pic14 regression test
4462 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4464 * as/doc/asxhtm.html: documented changed ABS behaviour
4465 * as/doc/README: fixed some typos
4467 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4469 * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4472 2006-08-12 Borut Razem <borut.razem AT siol.net>
4474 * support/regression/fwk/include/testfwk.h,
4475 support/regression/fwk/lib/testfwk.c,
4476 support/regression/generate-cases.py,
4477 support/regression/Makefile.in:
4478 regression test framework does not depend on function pointers and
4481 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4483 * device/include/stddef.h: c temporary hack to fix bug 1518273
4485 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4487 * device/include/mcs51/cc2510fx.h: added
4488 * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4491 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4493 * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4494 * as/z80/Makefile.in: added strcmpi.c
4495 * as/z80/z80adr.c: added upper case registers and lower case conditionals
4496 * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4498 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4500 * device/lib/gbz80/asm_strings.s,
4501 * device/lib/gbz80/crt0_rle.s,
4502 * device/lib/gbz80/div.s,
4503 * device/lib/gbz80/mul.s,
4504 * device/lib/gbz80/shift.s,
4505 * device/lib/z80/asm_strings.s,
4506 * device/lib/z80/crt0_rle.s,
4507 * device/lib/z80/div.s,
4508 * device/lib/z80/mul.s,
4509 * device/lib/z80/shift.s: changed to all lower case menmonics except the
4510 flags which are all upper case
4512 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4514 * as/z80/asm.h: made CASE_SENSITIVE 1
4515 * link/z80/aslink.h: made CASE_SENSITIVE 1
4516 * src/z80/gen.c (throughout): made all conditionals upper case
4517 * support/regression/tests/bug1503067.c: new
4519 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4521 * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4522 (shiftIntoPair): added case 2 for PAIR_IY,
4523 (setupToPreserveCarry): replaced parameters with iCode and check if
4524 PAIR_DE is in use to fix bug 1399290,
4525 (genPlus, genMinus): updated call to setupToPreserveCarry
4526 * support/regression/tests/bug1399290.c: new
4528 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4530 * device/lib/Makefile.in (Z80SOURCES): enabled float support
4531 * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4532 * src/ds390/gen.c (shiftRLong),
4533 * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4534 * src/mcs51/gen.c (sameReg): changed to sameByte,
4535 (xch_a_aopGet): new,
4536 (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4537 shiftRLong): fixed bug 1533966
4538 * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4539 genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4540 * support/regression/Makefile.in: disabled z80, enabled ucz80
4541 * support/regression/tests/float_trans.c: enabled test for z80 and host
4542 * support/regression/tests/shifts2.c: new, for testing bug 1533966
4544 2006-08-01 Borut Razem <borut.razem AT siol.net>
4546 * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4547 comparison is always false due to limited range of data type
4548 on PPC64 machine (openpower-linux1) where "char = unsigned char"
4550 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4552 * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4553 * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4554 * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4555 * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4557 2006-07-31 Borut Razem <borut.razem AT siol.net>
4559 * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4560 sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4561 sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4562 sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4563 sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4564 sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4565 sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4566 sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4567 enable ucsim mingw compilation. Serial port is disabled,
4568 since it uses termios.h API, which is not available on native
4571 2006-07-31 Borut Razem <borut.razem AT siol.net>
4573 * Small Device C Compiler 2.6.0 released
4574 * support/scripts/sdcc.nsi: added FULL_DOC option
4575 * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4577 2006-07-28 Borut Razem <borut.razem AT siol.net>
4579 * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4580 * doc/INSTALL.txt: updated
4582 2006-07-27 Borut Razem <borut.razem AT siol.net>
4584 * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4585 device/lib/pic/libdev/Makefile.in: fixed bug
4586 [ 1438354 ] pic libsdcc: distclean doesn't work
4587 * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4588 device/lib/pic16/libio/Makefile.in: fixed bug
4589 [ 1438344 ] pic16 lib: clean doesn't work properly
4590 * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4592 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4594 * device/lib/pic/libsdcc/fsdiv.c,
4595 * device/lib/pic/libsdcc/fsmul.c,
4596 * device/lib/pic16/libsdcc/float/fsdiv.c,
4597 * device/lib/pic16/libsdcc/float/fsmul.c,
4598 * device/lib/_fsdiv.c,
4599 * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4600 * support/regression/tests/bug1520966.c: added
4601 * doc/knownbugs.html: removed [ 1520966 ] from the list
4603 2006-07-25 Borut Razem <borut.razem AT siol.net>
4605 * configure.in, configure, sdccconf_in.h: fixed bug
4606 [ 1519095 ] regression test onebyte.c fails on ppc64 host
4607 * doc/knownbugs.html: removed [ 1519095 ] from the list
4609 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4611 * doc/knownbugs.html: added, contains list of known bugs at release
4612 * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4614 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4616 * device/include/mcs51/compiler.h: added SFRX for xdata based special
4617 function registers and corrected defaults with additional warning
4618 * device/lib/malloc.c: cosmetic changes
4619 * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4620 * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4621 (fillGaps): and used it
4623 2006-07-20 Raphael Neider <rneider AT web.de>
4625 * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4626 output unless SDCCPICDEBUG is set
4627 * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4628 output if SILENT is set
4630 2006-07-11 Borut Razem <borut.razem AT siol.net>
4632 * doc/README.txt: updated
4634 2006-07-10 Borut Razem <borut.razem AT siol.net>
4636 * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4637 device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4638 in WIN32 installation
4639 * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4642 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4644 * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4645 * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4647 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4649 * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4651 2006-07-06 Borut Razem <borut.razem AT siol.net>
4653 * support/regression/tests/bitfields.c:
4654 fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4655 * support/regression/tests/constantRange.c:
4656 fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4658 2006-07-04 Borut Razem <borut.razem AT siol.net>
4660 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4662 src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4663 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4664 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4665 reverted changes from 2006-07-03
4666 * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4667 * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4668 added CPPFLAGS, used by the host port
4670 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4672 * support/regression/valdiag/tests/switch.c,
4673 * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4674 * support/regression/tests/libmullong.c: fixed for host
4675 * support/regression/ports/host/spec.mk: disable all warnings for host,
4676 SDCC runs with --less-pedantic too
4678 2006-07-03 Borut Razem <borut.razem AT siol.net>
4680 * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4682 * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4683 * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4684 src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4685 src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4687 * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4688 sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4689 sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4690 sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4692 2006-07-02 Raphael Neider <rneider AT web.de>
4694 * src/pic16/devices.inc,
4695 * device/include/pic16/pic18fregs.h,
4696 * device/include/pic16/pic18f4550.h,
4697 * device/lib/pic16/pics.all,
4698 * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4700 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4702 * as/hc08/lkaomf51.c (OutputName),
4703 * as/mcs51/lkaomf51.c (OutputName),
4704 * as/z80/asmain.c (asmbl),
4705 * src/ds390/main.c (asmLineNodeFromLineNode),
4706 * src/hc08/ralloc.c (hc08_assignRegisters),
4707 * src/mcs51/main.c (asmLineNodeFromLineNode),
4708 * src/xa51/ralloc.c (checkRegMask),
4709 * src/xa51/gen.c (emitcode),
4710 * src/z80/gen.c (_emit2),
4711 * src/SDCCast.c (searchLitOp),
4713 * support/packihx/packihx.c,
4714 * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4715 * src/ds390/gen.c (aopPutUsesAcc),
4716 * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4717 * support/regression/tests/libmullong.c (mullong_wrapper),
4718 * src/SDCCsymt.c (powof2),
4720 * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4721 * src/SDCCsymt.h: added TYPE_TARGET_*
4722 * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4723 * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4724 SDCCast because 1) header problems 2) this is the right place
4725 * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4726 * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4729 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4731 * src/SDCCicode.h: removed buggy semicolon in unused macro
4732 * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4733 search for previous definiton of auto symbols too,
4734 (findPrevUse): fixed logic of emitWarnings
4736 2006-06-26 Raphael Neider <rneider AT web.de>
4738 * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4739 PCLATH and PCLATU on interrupts, potentially fixes #1505141
4741 2006-06-25 Raphael Neider <rneider AT web.de>
4743 * device/lib/pic/libm: NEW, added math library functions
4744 * device/lib/pic/libsdcc: NEW; added float support functions
4745 * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4746 * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4747 NEW, added math related headers
4748 * device/include/asm/pic/features.h: NEW
4749 * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4750 (popGet): allow larger offsets for AOP_PCODE,
4751 (genDataPointerSet): handle literals explicitly, more debug output,
4752 (genAssign): fixed for float using aopLiteral ;-)
4753 * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4754 GOTO initialisation routine
4755 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4756 flag on registers, fixes #1469043 (local variables do not work)
4757 * src/pic/main.c (_pic14_do_link),
4758 * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4761 2006-06-25 Borut Razem <borut.razem AT siol.net>
4763 * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4764 characters printed (not including the trailing '\0' used to end
4765 output to strings). Problem detected in regression test bug-927659.c.
4766 NOTE: printf() family functions should return int instead
4768 * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4769 specifier are printed as themselves
4770 * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4771 support flags, width and precision specifiers
4773 2006-06-24 Borut Razem <borut.razem AT siol.net>
4775 * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4776 to the list of sdcc tagrets not supporting bit type
4777 * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4778 testfor pic16 due to bug:
4779 [ 1511794 ] pic16: regression test bug-895992.c fails
4781 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4783 * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4784 * src/SDCCglue.c (initPointer), fixed bug 1496419
4785 * support/regression/tests/bug1496419.c: new, added
4787 2006-06-22 Borut Razem <borut.razem AT siol.net>
4789 * support/regression/ports/pic16/support.c: use gpsim usart module from
4790 libgpsim_modules library
4792 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4794 * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4797 2006-06-19 Raphael Neider <rneider AT web.de>
4799 * src/pic/glue.h,src/pic16/glue.h: added prototypes
4800 * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4801 pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4802 (pic14printExterns,pic14printPublics,pic16printPublics,
4803 pic16_printExterns): use new functions to emit symbols
4804 (picglue,pic16glue): emit publics before emitting externs
4805 * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4806 locally defined functions to avoid bug #1443651
4807 * support/regression/tests/bug-716242.c: removed pic16 workaround
4808 * support/regression/ports/pic16/spec.mk: ignore errors during build
4810 2006-06-19 Raphael Neider <rneider AT web.de>
4812 * src/pic/glue.h: added pic14aopLiteral prototype
4813 * src/pic/glue.c (pic14aopLiteral): return unsigned int
4814 * src/pic/gen.c: removed stdint.h dependency
4815 (aopGet): use Safe_strdup()
4816 (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4817 (genDataPointerSet): use pic14aopLiteral()
4818 * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4819 for pic16; thanks to Bernhard and Maarten
4821 2006-06-18 Borut Razem <borut.razem AT siol.net>
4823 * support/regression/tests/structflexarray.c: flexible array members
4824 not supported by gcc < 3
4825 * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4827 * src/pic/gen.c: don't include [p]strdin.h on solaris
4828 * support/Util/pstdint.h: addad svn attributes
4829 * support/regression/tests/constantRange.c,
4830 support/regression/tests/rotate.c: include inttypes.h instead
4831 stdint.h on solaris, addad svn attributes
4833 2006-06-18 Raphael Neider <rneider AT web.de>
4835 * src/SDCCsymt.c (initCSupport): change return type of divschar to
4837 * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4838 (pic16_genMinusBits): simplified sign-extension
4839 (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4840 pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4841 adjusted to correctly handle mixed-signed operands, disabled
4842 now unused multiplciation routines
4843 * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4844 (assignResultValue): added argument denoting the size of the result
4845 as returned by the function (fixes upcasts in assigning from
4846 function calls: char foo(); int i = foo();)
4847 (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4848 function result to assignResultValue
4849 (genMult): disabled inlined multiplication code
4850 (genDiv): augmented to also handle the modulus operator, fixed to
4851 handle mixed-signed operands correctly
4852 (genMod): simply call genDiv, disabled unused code
4853 (genAssign): fixed missing (sign-)extension on result
4854 * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
4855 valid char operands, allow signed operands for native code, added
4856 division and modulo operator handling
4857 * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
4859 As a consequence, onebyte.c (if split into two files) and muldiv.c
4860 pass regression tests.
4862 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4864 * doc/Makefile.in: two runs of makeindex seem needed to get
4865 correct page references in the index of sdccman.pdf
4866 * doc/sdccman.lyx: mentioned cmon51, added links, small changes
4868 2006-06-17 Borut Razem <borut.razem AT siol.net>
4870 * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
4872 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4874 * doc/sdccman.lyx: updated, added (porting source code, debugging),
4875 mentioned ec2drv and paulmon
4877 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
4879 * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
4880 consecutive abs areas
4881 (find_empty_space, allocate_space): added map to handle codemap or
4883 (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
4884 absolute idata and xdata
4885 * as/mcs51/lkmem.c (summary2): updated legend
4887 2006-06-16 Raphael Neider <rneider AT web.de>
4889 * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
4891 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
4893 * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
4895 * src/SDCClrange.c (findPrevUse): fixed bug 1294475
4897 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
4899 * src/port.h (struct PORT): added field gp_tags, to hold the tag
4900 value of generic pointers,
4910 src/z80/main.c: PORT structure, added elements for gp_tags field,
4911 * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
4912 fields in the PORT structure of each port,
4913 * src/SDCCast.c (decorateType): allow processing of generic pointers
4914 for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
4917 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
4923 * src/pic16/pcode.c,
4925 * src/pic/pcoderegs.c,
4928 * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
4929 bug 1504689 on minGW
4931 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4933 * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
4935 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
4937 * src/SDCCast.c (backPatchLabels): fixed bug #1504636
4939 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
4941 * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
4944 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
4946 * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
4947 to a char variable. Fixed bug #1504211
4948 * device/include/pic16/adc.h,
4949 device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
4950 and fixed bug #1364390
4952 2006-06-10 Borut Razem <borut.razem AT siol.net>
4954 * CVSROOT: removed the CVS left-over
4956 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4958 * as/hc08/asmain.c (asexit),
4959 * as/hc08/lkmain.c (lkexit),
4960 * as/mcs51/asmain.c (asexit),
4961 * as/mcs51/lkmain.c (lkexit),
4962 * src/SDCCglue.c (DEFSETFUNC),
4963 * src/SDCCmain.c (linkEdit, assemble),
4964 * support/librarian/sdcclib.c (AddRel),
4965 replaced unlink() by standard C remove()
4966 * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
4967 * src/SDCCast.c (replaceAstWithTemporary, createRMW,
4968 gatherImplicitVariables): new, added to fix bug 608752,
4969 (createFunction): added gatherImplicitVariables()
4970 * src/SDCCast.h: added createRMW prototype
4971 * src/SDCCsymt.h (struct symbol): added infertype
4972 * support/regression/tests/bug608752.c: new, added
4974 2006-06-10 Raphael Neider <rneider AT web.de>
4976 * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
4977 multibyte dummy reads (fixes #1503234)
4979 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
4981 * device/include/mcs51/compiler.h: new, added header file to enable
4982 creating common sfr definition header files for different compilers
4984 2006-06-05 Raphael Neider <rneider AT web.de>
4986 * src/pic16/{pcode.h,genarith.c}:
4987 introduced pCodeOp combining any two pCodeOps (previously only
4988 two register operands could be combined), removed pcop2 from
4989 pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
4990 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
4991 * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
4992 rewritten to use new PO_TWO_OPS
4993 * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
4994 * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
4995 (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
4996 (pic16_newpCodeOp2): NEW, create combined pCodeOp,
4997 (pic16_get_op): embraced return arg to allow #define return(x),
4998 added new case for combined opcodes
4999 (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5000 (pic16_pCode2str,pic16_getRegFrompCodeOp,
5001 pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5003 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
5005 * src/SDCCval.c (checkConstantRange): added
5006 * src/SDCCval.h: added checkConstantRange
5007 * support/Util/SDCCerr.c,
5008 * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
5009 W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
5010 * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
5011 * src/SDCCast.c (decorateType): added checkConstantRange,
5012 added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
5013 can be emitted with the correct always true/false warning,
5014 added optimization for double '!';
5015 result of decorateType() must be assigned back to the tree, because
5016 decorateType() can change the tree
5017 * src/SDCCicode.c (geniCodeLogic),
5018 (geniCodeAssign): replaced new checkConstantRange, added warnings,
5019 (checkConstantRange): removed, it was only a fragment which never
5021 * src/SDCCsymt.c (computeType): fixed promotion for
5022 "-1 < (unsigned bit) b"
5023 * src/pic/ralloc.c (packRegsForAssign),
5024 * src/pic16/ralloc.c (packRegsForAssign),
5025 * src/hc08/ralloc.c (packRegsForAssign),
5026 * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
5028 * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
5029 * support/regression/tests/constantRange.c: added
5030 * support/valdiag/tests/constantRange.c: added
5031 * support/valdiag/valdiag.py: added -DPORT_HOST=1
5033 2006-06-02 Borut Razem <borut.razem AT siol.net>
5035 * support/regression/ports/pic16/support.c: increase stack size
5037 * support/regression/Makefile.in: sort tests by name so that the
5038 resutlts can be compared on different machines / platforms
5040 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5042 * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5043 * src/ds390/gen.c (emitLabel): new, added,
5044 (genDjnz): fixed stack overflow bug,
5045 (throughout): cosmetic changes to sync with mcs51/gen.c,
5046 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5047 * src/mcs51/gen.c (genEndFunction): small optimization,
5048 (throughout): cosmetic changes to sync with ds390/gen.c
5050 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5052 * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5053 (_print_format): fixed printing pointers
5054 * src/mcs51/gen.c (emitLabel, movb): new, added,
5055 (genAssign): small optimization,
5056 (genDjnz): fixed stack overflow bug,
5057 (throughout): replaced sprintf with SNPRINTF,
5058 replaced mcs51_regWithIdx with REG_WITH_INDEX,
5059 replaced emitcode("mov", "b,...") with MOVB(...),
5060 replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5061 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5062 * src/mcs51/peeph.def: added rules 140 and 264
5063 * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5064 so they may get optimized into registers
5066 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5068 * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5069 immediately when encountered,
5070 (printUsage): always use stderr even on windows
5072 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5074 * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5075 (processParms): fixed bug #1247551
5076 * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5077 parseCmdLine, main): print '--version' to stdout,
5078 print 'help' to stdout if --help is given,
5079 print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5080 arguments are given; fixed --help
5082 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5084 * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5085 * support/regression/tests/bug-1493710.c: added
5087 2006-05-27 Borut Razem <borut.razem AT siol.net>
5089 * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5091 * support/regression/ports/pic16/support.c: increase stack size
5092 from default 64 bytes to 128 bytes
5093 * support/regression/tests/staticinit.c,
5094 support/regression/tests/float.c: regression tests fully enabled
5095 for pic16 port by putting the initialized data arrays into the code
5097 * support/regression/ports/pic16/spec.mk: don't link default libraries.
5098 This was changed by mistake in the previous version.
5100 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5102 * src/pic16/gen.c (genFunction, genEndFunction): some
5103 beautifications, fixed bug with falsely restoring FSR2 in large
5104 stack model, thanks to Beau E. Cox for reporting the bug
5106 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5108 * debugger/mcs51/break.c,
5109 * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5110 use %p to print pointers, made address variables unsigned
5111 * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5112 * debugger/mcs51/symtab.c (parseSymbol): must return something
5113 * src/mcs51/gen.c (aopForSym): small optimization,
5114 moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5115 (freeAsmop): added missing break,
5116 (aopPut): removed parameter bvolatile, determine it inside the function,
5117 (saveRegisters, unsaveRegisters): small optimization,
5118 (genIpush): removed pointless check,
5119 (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5120 replaced sprintf with SNPRINTF,
5121 replaced strcpy with strncpyz,
5122 updated aopPut calls,
5123 replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5124 * src/mcs51/ralloc.h: added declarations mcs51_ptrRegReq and mcs51_nRegs
5126 2006-05-24 Borut Razem <borut.razem AT siol.net>
5128 * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5129 modification of test for the pic16 port, put the array to the code
5130 memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5132 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5134 * src/pic/gen.c: MSC 6 does not have <stdint.h>. Use pstdint.h instead.
5135 * support/Util/pstdint.h: added
5137 2006-05-22 Borut Razem <borut.razem AT siol.net>
5139 * src/regression/Makefile: removed bool2.c test, added -q linker option
5140 * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5141 src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5142 src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5143 src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5144 src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5145 src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5146 src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5147 src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5148 define SUPPORT_BIT_TYPES 0, removed unused bit variables
5150 2006-05-22 Raphael Neider <rneider AT web.de>
5152 * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5153 bug #1492360 (problematic due to generic pointers, see code)
5155 2006-05-22 Borut Razem <borut.razem AT siol.net>
5157 * support/regression/ports/pic16/specs.mk: removed stack size linker
5159 * support/regression/tests/array.c,
5160 support/regression/tests/bitopcse.c,
5161 support/regression/tests/bug-908454.c,
5162 support/regression/tests/malloc.c: modified for pic16 regression test
5163 * support/regression/tests/bitfields.c:
5164 pic16 - excluded bitfileds of size > 8
5165 * support/regression/tests/bp.c: pic16 - reduced data size
5166 * support/regression/tests/bug-221100.c: pic16 - reduced data size
5167 * support/regression/tests/bug-460010.c:
5168 pic16 - used the absolute address the fits in memory
5169 * support/regression/tests/bug-716242.c:
5170 bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5171 * support/regression/tests/float.c:
5172 pic16 - excluded - data size too big
5173 * support/regression/tests/onebyte.c:
5174 pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5175 * support/regression/tests/shifts.c:
5176 pic16 - function names probably have to differ in first X characters
5178 * support/regression/tests/staticinit.c:
5179 pic16 - excluded some tests due error: no target memory available for
5182 2006-05-22 Borut Razem <borut.razem AT siol.net>
5184 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5185 second try. Thanks Stas Sergeev once more.
5187 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5189 * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5190 (genLeftShift, genRightShift): fixed bug 1491627
5191 * src/hc08/peeph.def (rules 7, 8.x): added
5192 * support/regression/tests/shifts.c (ShiftLeftByParam,
5193 ShiftRightByParam, testShiftByParam): added to test variable shifting
5195 2006-05-20 Raphael Neider <rneider AT web.de>
5197 * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5198 * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5199 (allocReg): add only new registers to dynAllocRegs,
5200 (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5201 #1489055, #1445850, and probably #1483693
5203 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5205 * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5206 bug in for-loop that didn't emit the last of CONFIG and ID registers
5208 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5210 * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5212 * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5213 1489016, 1434401 and 1490124
5214 * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5215 1489016, 1434401 and 1490124
5217 2006-05-17 Borut Razem <borut.razem AT siol.net>
5219 * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5222 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5224 * device/include/mcs51/P89c51RD2.h,
5225 * device/include/mcs51/P89LPC901.h,
5226 * device/include/mcs51/P89LPC922.h,
5227 * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5229 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5231 * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5232 to fix missing stack pragma in compiled binary object file,
5234 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5236 * support/packihx/configure.in,
5237 * support/packihx/configure: removed warning, autoconf >= 2.5x can
5238 determine sizeof basic types even while cross compiling
5240 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5242 * src/avr/gen.c (aopop),
5243 * src/ds390/gen.c (aopOp),
5244 * src/hc08/gen.c (aopOp),
5245 * src/mcs51/gen.c (aopop),
5246 * src/pic16/gen.c (pic16_aopOp),
5247 * src/pic/gen.c (aopOp),
5248 * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5249 if size of operand is smaller than spill location
5251 2006-05-12 Borut Razem <borut.razem AT siol.net>
5253 * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5254 have to have CR/LF line endings even if they are checked out on *nix
5255 or on WIN32 in cygwin binmode
5257 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5259 * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5260 * device/include/ds80c390.h: added sfr16 definitions
5264 * src/ds390/ralloc.c,
5265 * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5266 fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5267 bit returning functions
5268 * support/regression/tests/sfr16.c: enabled test on ds390
5270 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5272 * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5273 * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5275 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5277 * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5278 * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5279 (cl_address_space constructor): removed expensive initialization,
5280 (cl_address_space::get_cell): extended for late initialization,
5281 (cl_address_space::*): use late initialization,
5282 (cl_address_decoder::activate): removed expensive initialization,
5283 This reduced regression test running time by 25%
5285 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5293 * support/packihx/Makefile.in,
5294 * support/packihx/clean.mk,
5295 * support/packihx/Makefile.bcc,
5296 * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5298 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5300 * src/SDCCval.c (valNot): fix for regression test failure
5301 of not.c on big endian hosts
5303 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5305 * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5307 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5309 * device/lib/mcs51/Makefile.in: changed string comparison operator
5310 to = for POSIX compliance; == is bash extension
5312 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5314 * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5317 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5319 * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5320 allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5321 * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5322 * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5323 bug report #1478657,
5325 2006-05-05 Borut Razem <borut.razem AT siol.net>
5327 * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5330 2006-05-02 Borut Razem <borut.razem AT siol.net>
5332 * doc/Makefile.in: removed *.ind dependency since there is no rule to
5333 create *.ind, which made make to fail if invoked with -j 2
5335 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5337 * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5338 Hubert Sack for patch 1479782
5340 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5342 * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5344 2006-05-01 Raphael Neider <rneider AT web.de>
5346 * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5347 (create_pic): store only prefix-free device name,
5348 (init_pic): check for device names with "16" prefix,
5350 * src/pic/device.h (struct PIC_device),
5351 * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5353 * device/include/pic/pic12f{635,675,629,683}.h,
5354 * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5355 * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5356 * device/include/pic/pic16f505.h,
5357 * device/lib/pic/libdev/pic16f505.c: removed
5358 * device/include/pic/pic14devices.txt: added support for pic12f
5359 devices, removed unsupported non 16-bit devices
5360 [above changes provided by patch from Zik Saleeba]
5361 * src/pic/*, src/pic16/*, device/include/pic16/*,
5362 device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5364 2006-05-01 Borut Razem <borut.razem AT siol.net>
5366 * configure.in, configure, doc/Makefile.in:
5367 sync with nightly build makefile - latex, dvipdf and dvips
5370 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5372 * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5373 in the library source
5375 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5377 * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5379 2006-04-28 Raphael Neider <rneider AT web.de>
5381 * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5382 * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5383 (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5384 * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5386 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5388 * device/lib/pic/libdev/Makefile.in,
5389 * device/lib/hc08/Makefile.in,
5390 * device/lib/gbz80/Makefile.in,
5391 * device/lib/z80/Makefile.in,
5392 * device/lib/ds390/Makefile.in,
5393 * device/lib/ds400/Makefile.in: added srcdir to include search path,
5394 thanks to Borut for the bug report
5396 * configure: always create doc/Makefile independent from --enable-doc
5397 * Makefile.in: always install from directory doc independent from
5399 * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5401 * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5402 * doc/Makefile.in: install *.txt if present
5403 * device/include/Makefile.in (install): added installation of pic/*.inc
5404 and pic/*.txt files again, they were erroneously removed
5406 2006-04-28 Raphael Neider <rneider AT web.de>
5408 * src/pic/{gen.c,main.h,pcode.c},
5409 * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5410 concerning signedness with casts
5412 2006-04-28 Raphael Neider <rneider AT web.de>
5414 * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5415 definition of an interrupt handler,
5416 * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5417 interrupt handler stuff from picglue() to separate routine,
5418 (picglue): enabled definition of intr handlers in files w/o main()
5420 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5422 * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5423 compilation with MSVC 2005 Express Edition (VC8)
5425 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5427 * device/lib/Makefile: fixed build of gbz80 lib
5429 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5431 * support/regression/tests/bug-460010.c,
5432 * support/regression/tests/bug-524691.c,
5433 * support/regression/tests/bug-716242.c: removed conditional defines
5434 that are already in testfwk.h
5436 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5438 * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5439 (AccAXRsh1): added, shift right by 1,
5440 (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5442 * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5444 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5446 * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5447 remove cast to same type
5448 * src/SDCCast.c (decorateType): fix for RFE 1475742,
5449 optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5451 * link/z80/Makefile: removed, they have moved to
5454 * configure.in: replaced duplicate message about ucsim by missing sdcpp
5455 * install-sh: fix bug #1204398 by setting umask 0022
5456 * device/lib/Makefile: separate build of z80 and gbz80 lib
5458 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5460 Enabled VPATH feature: changed nearly all Makefiles (149 files).
5461 See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5463 One basic decision: e.g. src/clean.mk includes further files. In order
5464 to make this work there are two solutions:
5465 - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5466 run configure on them. This way they can use
5467 'include $(srcdir)/port-clean.mk'
5468 - always include clean.mk by the Makefile at the same level. To avoid
5469 that `make clean` tries to include and build Makefile.dep the
5470 MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5471 implemented, because now even `make uninstall` doesn't create
5472 Makefile.in. clean.mk could be eliminated by pasting it in
5475 * debugger/mcs51/Makefile.in: build own objects from library sources
5476 (SLIB, SDCC) in current directory
5478 * configure, configure.in: renamed --disable-device-lib-build in
5479 --disable-device-lib; added --enable-doc, the required tools are
5480 searched by configure; added result message; the toolchain for the
5481 belonging ports are now only built, if the port is enabled.
5483 * support/regression/*: all output is written in directory gen, because
5484 the fwk and ports directories don't livet in the build tree using vpath
5486 * doc/sdccman.lyx: renamed --disable-device-lib-build to
5487 --disable-device-lib, added --enable-doc, added section VPATH
5489 * sim/ucsim/configure.in,
5490 * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5491 z80 are enabled by default
5493 2006-04-24 Raphael Neider <rneider AT web.de>
5495 * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5496 to config word, "pic14_"-prefixed some extern functions
5497 (pic14_emitConfigWord): emit __config directive(s) if assignment to
5498 config word has been found
5499 * src/pic/device.h: added prototypes
5500 * src/pic/pcode.c: added "pic14_"-prefix where needed
5501 * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5503 * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5505 (pic14emitRegularMap): ignore config words,
5506 (pic14createInterruptVect): moved generating __config directives away
5507 (picglue): have __config directives emitted
5509 2006-04-24 Borut Razem <borut.razem AT siol.net>
5511 * doc/Makefile: sync with nightly build makefile
5513 2006-04-24 Raphael Neider <rneider AT web.de>
5515 * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5516 registers that have not been assigned proper liveranges,
5517 fixes #1469504 and #1474602,
5518 (pCodeRegOptimizeRegUsage): fixed typo in comment
5520 2006-04-24 Borut Razem <borut.razem AT siol.net>
5522 * device/examples/main8051.c: deleted - it was removed from CVS
5523 24.mar.2000 and after that modified 18.feb.2001, so it reappered
5524 after the transition to Subversion
5525 * src/SDCCalloc.h: deleted - it was removed from CVS
5526 3.feb.2001 and after that modified 18.feb.2001, so it reappered
5527 after the transition to Subversion
5528 * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5529 sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5530 sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5531 sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5533 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5535 * as/asx8051.dsp: added mcs51/strcmpi.h
5536 * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5537 * as/hc08/aslink.h: updated lnksect prototype
5539 * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5541 * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5542 (newdot): handle A_ABS
5544 * as/mcs51/asout.c (outarea): output address
5545 * as/hc08/lkaomf51.c,
5546 * as/mcs51/lkaomf51.c: disabled unused array UsageType
5548 * as/mcs51/i51pst.c,
5549 * as/z80/z80pst.c: "ABS" is not A_OVR
5550 * as/hc08/lkarea.c (newarea): read a_addr,
5551 (lnkarea): added codemap array, sort absolute areas to the front,
5552 combine all GSINITx/GSFINAL,
5553 (find_empty_space, allocate_space): new functions,
5554 (lnksect): return next address, handle absolute sections
5555 * as/mcs51/lkarea.c (newarea): read a_addr,
5556 lnksect2 prototype changed,
5557 (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5558 (find_empty_space, allocate_space): new, factored out of lnksect2,
5559 (lnksect2): return next address, handle absolute sections
5561 * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5562 * as/hc08/lklibr.c (addfile, fndsym),
5563 * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5564 index out of range and detect both '\' and '/'
5565 * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5566 * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5567 regression tests (ds390 cannot return bool yet)
5568 * doc/sdccman.lyx: changed version number, document changed --no-peep,
5569 document critical interrupts on z80, document changed SDCC define
5570 * src/asm.c (_asxxxx_mapping): fixed .org directive,
5571 (_a390_mapping): added .org directive
5572 * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5573 (genMultOneByte): fixed warnings
5574 * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5576 * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5577 * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5578 (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5579 * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5580 * src/pic16/main.c: removed newReg prototype
5581 * src/pic16/pcode.c,
5582 * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5584 * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5586 * src/pic16/ralloc.c
5587 * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5589 * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5590 from short to PIC_OPTYPE
5591 * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5592 * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5593 optype from short to PIC_OPTYPE
5594 * src/port.h: made int_size unsigned to fix warnings
5595 * src/SDCC.y: fixed warning on MSVC
5596 * src/SDCCicode.c (getArraySizePtr): return unsigned int
5597 * src/SDCCopt.c (convertToFcall): fixed warnings
5598 * src/SDCCsymt.h: removed double prototype for genSymName
5599 * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5600 offset int to fix warnings
5602 2006-04-22 Borut Razem <borut.razem AT siol.net>
5604 * doc/sdccman.lyx, */Makefile, */Makefile.in:
5605 references to CVS replaced with Subversion
5607 2006-04-21 Borut Razem <borut.razem AT siol.net>
5609 * doc/sdccman.lyx, */Makefile, */Makefile.in:
5610 references to CVS replaced with Subversion
5612 2006-04-19 Borut Razem <borut.razem AT siol.net>
5614 * src/version.awk: adapted for svn
5615 * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5616 sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5617 sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5618 /binutils-avr/etc/*.vi, *.jin: removed all properties
5619 support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5621 2006-04-19 Borut Razem <borut.razem AT siol.net>
5623 * CVS to Subversion migration completed
5625 2006-04-18 Borut Razem <borut.razem AT siol.net>
5627 * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
5628 ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
5630 2006-04-17 Borut Razem <borut.razem AT siol.net>
5632 * device/include/Makefile.in: added pic/*.inc to the installation
5634 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5636 * support/regression/collate-results.py: fixed output in case of
5638 * support/regression/generate-cases.py: fixed splitting of pathnames
5640 * as/hc08/lklibr.c (addfile),
5641 * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5643 2006-04-11 Raphael Neider <rneider AT web.de>
5645 * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5646 * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5647 * src/pic16/pcode.c (assignValnums): fixed #1460578
5649 2006-04-11 Raphael Neider <rneider AT web.de>
5651 * device/lib/pic/libdev/*.c,
5652 * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5653 fixes #1468739, enables compilation in --std-c99 mode
5654 * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5656 2006-04-11 Raphael Neider <rneider AT web.de>
5658 * src/pic/device.c (find_device): removed debug output
5659 (list_valid_pics): enabled verbose listing of supported devices
5660 * device/include/stdbool.h: define bool as char for pic14/16 as well
5662 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5664 * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5666 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5668 * .version: bumped version to 2.5.6
5669 * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5671 2006-04-06 Raphael Neider <rneider AT web.de>
5673 * .version: bumped version to 2.5.6 (pic14 ABI changed)
5674 * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5675 * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5676 pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5677 pic14_constructAbsMap
5678 (pic14printPublics): declare absolute global symbols as global
5679 (pic14createInterruptVect),
5680 * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5681 (newReg): assume new registers unused, use correct name in
5682 hashtable (reg->name instead of name), more debugLog output
5683 * src/pic/device.h (PIC_device): added fields for verbose output
5684 * src/pic/device.c: moved device definition to pic14devices.txt,
5685 added routines for runtime parsing of pic14devices.txt,
5686 added support for second config word
5687 * src/pic/main.c (_process_pragma): removed #pragma maxram,
5688 (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5689 (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5690 (_pic14_parseOptions): moved pCodeInitRegisters here
5691 (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5692 * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5693 (pCodeInitRegisters): rewrapped comments, perpared new approach to
5694 handling the pseudo stack
5695 * device/lib/Makefile.in: ignore failures in objects-pic16,
5696 * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5697 * device/lib/pic/NEWS: document new dependency on picXXX.lib
5698 * device/lib/pic/Makefile.subdir,
5699 * device/lib/pic16/Makefile.subdir: improved clean rules
5700 * device/lib/pic/libdev/: NEW, pic14 device libraries
5701 * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5702 * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5703 * device/include/Makefile.in: create subdir and install pic14 headers
5704 * device/include/pic/p16f_common.inc: removed unused declarations
5705 * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5706 PICs from inc2h.pl v1.6,
5707 replaced BIT_AT macros with struct declarations
5708 * device/include/pic/pic14devices.txt: definition of supported devices,
5709 all above improvements contributed by Zik Saleeba, thanks
5710 * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5711 * support/scripts/sdcc.nsi: also install pic14 device libraries and
5714 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5716 * device/include/mcs51/c8051f410.h: added interrupt numbers,
5717 * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5718 thanks to Charles Olds
5720 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5722 * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5724 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5726 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5727 * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5728 * support/regression/bug1464657.c: added, new test
5730 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5732 * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5735 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5737 * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5738 --no-peep and --peep-file <file> are used don't use default rules but
5741 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5743 * src/mcs51/gen.c (genCall): fixed bug 1457608
5745 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5747 * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5748 changes seem to cause (trigger?) problems with the build system.
5750 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5752 * src/SDCCpeeph.c (operandsLiteral): new, added,
5753 (callFuncByName): inserted operandsLiteral
5754 * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5756 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5758 * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5759 * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5761 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5763 * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5764 implemented patch 1120823 Thanks to Willy De la Court (normal
5765 interrupts need an interrupt number now if they are made critical),
5766 and enabled nesting of critical functions though not for gbz80
5767 (genCritical, genEndCritical): added functions
5768 (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5769 * src/z80/mappings.i: added "ei" to all mappings
5771 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5773 * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5774 submitted by the Debian SDCC maintainer Aurelien Jarno:
5775 "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5776 archive with gcc 4.1 on mips and wrote the patch"
5778 2006-03-16 Raphael Neider <rneider AT web.de>
5780 * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5781 the left operand is shorter than the result (c* = lit-c* + int),
5783 * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5786 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5788 * src/.version: increased version number to 2.5.5
5789 * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5790 linking is done manually in pic16 port's _linkEdit,
5791 * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5792 PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5793 * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5794 allocate asmop as AOP_ACC,
5795 (aopForRemat): added parameter 'bool result' in function declaration,
5796 (pic16_aopGet): return AOP_ACC when accessing WREG,
5797 (pic16_popGetTempReg): minor modification,
5798 (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5799 'pic16_allocWithIdx',
5800 (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5801 calling function in absolute addresses,
5802 (genAssign): take into account AOP_ACC asmop,
5803 * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5804 * src/pic16/pcoderegs.c: some debug functions and lines added,
5805 * src/pic16/ralloc.c (decodeRegType): added but commented out,
5806 * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5808 * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5809 call to allocReg, not by manually allocating a new one,
5810 (pic16_assignRegisters): now before going through the register
5811 allocating functions mark all registers as free. This eliminates some
5812 side effects resulting from peephole parser done earlier in the backbone
5814 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5816 * src/SDCCicode.c (geniCodeLogic),
5817 * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5819 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5821 * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5822 (genSend): bugfix, do not allocate and free twice,
5823 (shiftRLong): handle partially overlapping aops
5824 * support/regression/tests/bitopcse.c: fixed warning redefined idata
5826 2006-03-08 Borut Razem <borut.razem AT siol.net>
5828 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5831 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5833 * support/regression/tests/bug1409955.c: new, added
5834 * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5835 * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5836 (aopForSym, aopOp): increment asmop.allocated if reused,
5837 (freeAsmop): decrement asmop.allocated and check for zero instead of
5839 (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5840 (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5841 genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5842 genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5843 genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5844 genSignedRightShift, genRightShift, genDataPointerGet,
5845 genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5846 genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5847 in reverse order from allocation,
5848 (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5849 added swappedLR to keep track
5850 * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5851 pdata & code for GCC, z80, gbz80 & hc08
5852 * support/regression/tests/zeropad.c: moved defines to testfwk.h
5854 2006-03-08 Raphael Neider <rneider AT web.de>
5856 * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
5858 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
5860 * device/include/mcs51/c8051f410.h: new SiLabs mcu
5861 * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
5862 * support/regression/tests/array.c: added parenthesis, made arrays unsigned
5864 2006-03-06 Borut Razem <borut.razem AT siol.net>
5866 * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
5867 made the linker quiet
5869 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
5871 * src/pic16/gen.c (genPcall): fixed bug #1443644
5872 * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
5873 which dumps before the function entry point a data byte which represents
5874 the number of the local variables used by the specified function, added
5875 'xinst' for initial support for Extended Instruction Support,
5876 * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
5877 (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
5878 port->fun_prefix anymore (may change later),
5879 (genFunction, genEndFunction): do not store/restore local registers for
5880 _main (this should take care the --main-return command line option in
5882 (genOr): removed some legacy pic-port instructions,
5883 * src/pic16/genarith.c (genAddLit): re-enabled old code because
5884 performing operations with SFR's causes data to be written more than
5885 once to each SFR. Perhaps SFRs should be handled in special cases...
5886 * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
5888 * src/pic16/main.c (_process_pragma): stack bound checking did not take
5889 into account for stack starting position,
5890 (struct OPTIONS pic16_optionsTable): added command line argument
5891 --extended or -y for Extended Instruction Support,
5892 * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
5893 (deassignLRs): *** perhaps the most important change, old 'for' code
5894 (commented out for reference), didn't account for some registers which
5895 were left marked 'not free' after a pointer operation. The change
5896 reduces register usage a lot in some cases
5898 2006-03-04 Borut Razem <borut.razem AT siol.net>
5900 * support/regression/ports/hc08/spec.mk: remove *.asm in traget
5902 * support/regression/tests/bug-524697.c: decreased array size for
5903 mcs51 to fit into the internal RAM
5904 * support/regression/Makefile.in: a little bit more verbose
5906 2006-03-03 Borut Razem <borut.razem AT siol.net>
5908 * support/regression/fwk/lib/testfwk.c,
5909 support/regression/fwk/include/testfwk.h: introduced function
5910 _prints(), nonrecursive _printn(), call _initEmu() from main()
5911 * support/regression/ports/gbz80/support.asm,
5912 support/regression/ports/ucz80/support.asm,
5913 support/regression/ports/z80/support.asm,
5914 support/regression/ports/ds390/support.c,
5915 support/regression/ports/hc08/support.c,
5916 support/regression/ports/host/support.c,
5917 support/regression/ports/mcs51/support.c,
5918 support/regression/ports/xa51/support.c: added empty _initEmu()
5920 * support/regression/ports/pic16/gpsim.cmd,
5921 support/regression/ports/pic16/spec.mk,
5922 support/regression/ports/pic16/support.c,
5923 support/regression/Makefile.in: added pic16 regression test
5925 2006-03-01 Raphael Neider <rneider AT web.de>
5927 * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
5928 genConstPointerGet): use safe way of generating MOVFF to cover
5929 literals as well as registers, fixes bug #1440527
5930 * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
5932 (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
5933 more correctly, fixes bug #1232186
5934 (pic16_printIval): use pic16_printIvalUnion() for initialized unions
5935 * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
5936 gplink guess the correct processor in more cases, applied patch
5937 from Till Riedel attached to and fixing bug #1436552
5939 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5941 * support/regression/tests/array.c: added, contains check for #1434401
5942 * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
5944 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
5946 * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
5947 * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
5948 * device/include/mcs51/c8051f326.h,
5949 * device/include/mcs51/c8051f340.h: new SiLabs mcu's
5950 * device/include/mcs51/c8051f000.h,
5951 * device/include/mcs51/c8051f018.h,
5952 * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
5953 PCON_IDLE,PCON_STOP and added sfr16 definitions
5955 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5957 * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
5958 genGetWord): fixed bug 1409955
5960 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
5962 * device/include/hc08/mc68hc908gp32.h,
5963 * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
5965 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
5967 * src/SDCCast.c (constExprValue): return NULL if not a value
5968 * src/SDCCglue.c (printIvalArray): fixed bug 1225568
5969 * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
5970 * support/regression/tests/bitfields.c: enabled signed bitfield for all
5972 2006-02-13 Borut Razem <borut.razem AT siol.net>
5974 * src/regression/ptrarg.c: added, fails due to bug #1430967
5975 * src/regression/Makefile: ptrarg.c added, ...
5977 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
5979 * src/z80/gen.c (genUnpackBits): fixed bug 1019480
5980 * support/regression/tests/bitfields.c: enabled signed bitfield for z80
5982 2006-02-11 Borut Razem <borut.razem AT siol.net>
5984 * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
5985 print "Processor: xxx" message to stdout only if --verbose
5987 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
5989 * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
5990 * support/regression/tests/bug1426356.c: added
5991 * support/regression/tests/bitfields.c: removed 2 tests
5993 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
5995 * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
5996 * device/include/mcs51/c8051f330.h,
5997 * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
5998 PCON_IDLE,PCON_STOP and added sfr16 definitions
5999 * device/lib/_divsint.c,
6000 * device/lib/_divuint.c,
6001 * device/lib/_divulong.c,
6002 * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
6003 register bank bug for small stackauto
6005 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6007 * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
6009 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
6011 * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
6012 * all.dsp: corrected several bin paths
6013 * device/include/mcs51/c8051f120.h,
6014 * device/include/mcs51/c8051f300.h,
6015 * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
6016 to PCON_IDLE,PCON_STOP
6017 * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
6018 * device/lib/printf_large.c (output_float): fixed bug 1388703
6019 * support/regression/tests/bug1057979.c: added test for bug 1388703
6021 2006-02-08 Raphael Neider <rneider AT web.de>
6023 * src/pic/pcode.c (pciTRIS): fixed typo,
6024 (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
6025 (LinkFlow): fixed handling of flows that end in a call,
6026 (ReuseReg): perform safety check earlier
6027 * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
6028 to work with flows at the beginning of a pBlock,
6029 fixes #1426557 (Symbol not previously defined),
6030 (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
6032 (RemoveUnusedRegisters): update register usage info
6033 * src/pic/ralloc.c (newReg): prevent duplicate registers from being
6034 created, reuse existing ones instead
6035 * src/pic/gen.c (genPcall): fixed #1424719
6037 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
6039 * link/z80/lkmain.c,
6041 * link/z80/lkdata.c,
6042 * link/z80/aslink.h: fixed build on current cygwin:
6043 replaced getline() by lk_getline()
6045 2006-02-01 Borut Razem <borut.razem AT siol.net>
6047 * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6048 src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6049 src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6050 src/regression/bool1.c, src/regression/bool2.c,
6051 src/regression/bool3.c, src/regression/call1.c,
6052 src/regression/compare.c, src/regression/compare10.c,
6053 src/regression/compare2.c, src/regression/compare3.c,
6054 src/regression/compare4.c, src/regression/compare5.c,
6055 src/regression/compare6.c, src/regression/compare7.c,
6056 src/regression/compare8.c, src/regression/compare9.c,
6057 src/regression/configword.c, src/regression/for.c,
6058 src/regression/inline.c, src/regression/mult1.c,
6059 src/regression/nestfor.c, src/regression/or1.c,
6060 src/regression/pointer1.c, src/regression/ptrfunc.c,
6061 src/regression/rotate1.c, src/regression/rotate2.c,
6062 src/regression/rotate3.c, src/regression/rotate4.c,
6063 src/regression/rotate5.c, src/regression/rotate6.c,
6064 src/regression/rotate7.c, src/regression/string1.c,
6065 src/regression/struct1.c, src/regression/sub.c,
6066 src/regression/sub2.c, src/regression/switch1.c,
6067 src/regression/while.c, src/regression/xor.c,
6068 src/regression/create_stc, src/regression/simulate,
6069 src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6071 * src/regression/gpsim_assert.h: added
6073 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6075 * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6076 ((void (code *) (void)) 0) ();
6085 * as/mcs51/aslink.h,
6087 * as/mcs51/asmain.c,
6088 * as/mcs51/lkdata.c,
6090 * as/mcs51/lkmain.c,
6093 * as/z80/asmain.c: fixed build on current cygwin:
6094 replaced getline() by as_getline()
6096 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6098 * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6099 declarator in the symbol chain
6101 * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6102 parameter list for function pointers
6103 * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6104 * support/regression/tests/bug-716242.c: added
6106 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6108 * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6110 * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6112 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6114 * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6115 inifinitely recurseable, added static
6116 * support/regression/tests/bug-1408066.c: added
6118 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6121 * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6122 renamed, added possibility to create "postLoopLbl"-labels
6123 * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6124 newiTempLoopHeaderLabel
6125 * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6126 isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6127 addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6128 hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6129 findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6130 (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6131 (basicInduction): fixed bug #136564, made static,
6132 (loopInduction): changed parameter of basicInduction, made static,
6133 (addPostLoopBlock): added
6134 * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6135 loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6137 * support/regression/tests/bug-136564.c: added
6138 * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6139 --std-sdcc99 to LIBSDCCFLAGS
6141 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6143 * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6145 * support/regression/tests/bug-1406131.c: added
6147 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6149 * src/SDCCast.c (decorateType): fix promotion of unary minus
6150 * src/SDCCsymt.c (computeType): beautified
6151 * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6152 (valUnaryPM, valComplement): fix sign and promotion,
6153 (valNot): ANSI: result type is int (SDCC: unsigned char)
6154 * support/regression/tests/uminus.c: speedup by removing superflous
6156 * support/regression/tests/onebyte.c: added promotion and signedness
6157 tests for unary minus
6158 * support/regressions/tests/bug-477927.c: disable warning about
6159 uninitialized variables
6160 * support/regression/tests/not.c: added
6162 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6164 * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6165 * src/mcs51/gen.c (gen51Code): show final register usage after
6166 fillGaps in asm with --i-code-in-asm
6167 * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6168 markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6169 incUsed, rliveClear, adjustIChain): made static,
6170 (setFromRange): excluded because it's unused,
6171 (findPrevUseSym, markWholeLoop): added,
6172 (findPrevUse): rewritten; fixes bug 895992; now a complete search
6173 through all branches of predecessors enables sdcc to emit the warning
6174 W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6175 (rlivePoint): made static, added parameter emitWarnings which is only
6176 true during the first run out of two,
6177 (findRecursiveSucc, findRecursivePred): removed,
6178 (computeLiveRanges): made static, added parameter emitWarnings,
6179 (dumpIcRlive): added for debugging only
6180 * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6181 removed prototype of setFromRange()
6182 * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6183 in call of computeLiveRanges()
6184 * support/regression/tests/bug-895992.c: added
6185 * support/regression/tests/bug-971834.c: added
6186 * support/valdiag/tests/bug-895992.c: added
6187 * support/valdiag/tests/bug-971834.c: added
6189 2005-12-18 Raphael Neider <rneider AT web.de>
6191 * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6192 (genUnpackBits): improved code for direct operands,
6193 (genPackBits): improved code for literal assignment to bitfields
6194 and for direct destination operands (no FSR indirection),
6195 prevented redundant AND, fixes #1362800,
6196 (AccLsh): added parameter to disable masking of the result
6197 * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6198 skip instructions with side-effects (like incfsz),
6199 (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6200 * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6201 * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6204 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6206 * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6207 volatile variables as spill location
6209 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6211 * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6213 * support/regression/tests/bug-1376320.c: added
6215 2005-12-08 Raphael Neider <rneider AT web.de>
6217 * src/pic/device.c: renamed is_shared to pic14_is_shared
6218 * src/pic/gen.c (genIfx): re-enabled handling of sbits
6219 * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6220 (is_valid_identifier): added for above workaround
6222 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6224 * device/lib/Makefile.in: fixed to enable port-specific-objects
6225 * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6226 char, thanks Hubert Sack
6227 * doc/sdccman.lyx: documented --xstack-loc,
6228 elaborated a bit more on interrupts and pitfalls,
6229 removed "setjmp/longjmp unsupported",
6230 documented some unsupported C99 features
6231 * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6232 * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6233 if, thanks Hubert Sack
6234 * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6235 * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6237 * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6238 regression tests can report resource usage (rfe 700441)
6239 * support/regression/collate-results.py: report resource usage
6240 * support/regression/ports/ds390/spec.mk,
6241 * support/regression/ports/hc08/spec.mk,
6242 * support/regression/ports/mcs51/spec.mk,
6243 * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6244 * support/regression/ports/ds390/uCsim.cmd,
6245 * support/regression/ports/hc08/uCsim.cmd,
6246 * support/regression/ports/mcs51/uCsim.cmd,
6247 * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6248 * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6249 library, use the default one
6250 * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6251 building the library
6253 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6255 * config.dsp: added dependency on .version and configure_vc.awk
6256 * device/include/setjmp.h: updated for --stack-auto and --xstack
6257 * device/include/mcs51/at89c51snd1c.h: corrected line endings
6258 * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6259 * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6260 * device/lib/libsdcc.lib: added _setjmp
6261 * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6262 (decorateType): fixed bug 1372851,
6263 (optimizeGetHbit): fixed warning
6264 * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6265 array initialisation
6266 * support/regression/tests/bug1057979.c: added test for bug 1358192
6267 * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6269 2005-12-03 Borut Razem <borut.razem AT siol.net>
6271 * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6272 command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6274 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6276 * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6277 createIval): implement symbol independant "flexible array member",
6278 (createIvalCharPtr): implemented flexible array initialisation with a
6280 * src/SDCCsymt.c (copyStruct): removed,
6281 (getSize): fixed misleading comment,
6282 (getAllocSize): removed, the additional allocation size is now in
6283 sym->flexArrayLength,
6284 (checkStructFlexArray): new, syntax checks for flexible array members,
6285 (compStructSize): added syntax checks for "flexible array members"
6286 (copyStruct): removed,
6287 (copyLinkChain): removed inefficient fix for bug 770487
6288 * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6289 * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6290 symbol->flexArrayLength
6292 * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6293 E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6294 * support/regression/tests/structflexarray.c: added
6295 * support/valdiag/tests/structflexiblearray.c: added
6297 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6299 * src/SDCCast.c (decorateType): fixed bug 1368489
6300 * support/Util/SDCCerr.c,
6301 * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6303 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6305 * device/include/mcs51/at89c51snd1c.h: added file submitted by
6306 Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6308 2005-11-27 Borut Razem <borut.razem AT siol.net>
6310 * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6311 support/cpp2/mkdeps.h: added command line option
6312 -obj-ext=<extension> to SDCPP to define object file externion, used
6313 for generation of make dependencies (-M)
6314 * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6316 2005-11-26 Borut Razem <borut.razem AT siol.net>
6318 * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6319 added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6320 added pic and pic16 libraries
6322 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6324 * device/include/float.h: Corrected typo in prototype of __fsgt
6326 2005-11-25 Borut Razem <borut.razem AT siol.net>
6328 * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6329 added creation of model-mcs51-stack-auto libraries
6331 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6333 * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6335 * src/SDCCast.c (createIvalArray): removed obsolete comment
6337 2005-11-24 Borut Razem <borut.razem AT siol.net>
6339 * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6340 added missing device/lib/mcs51/crt*.asm sources
6342 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6344 * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6346 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6348 * device/lib/_fs2schar.c,
6349 * device/lib/_fs2sint.c,
6350 * device/lib/_fs2slong.c: optimized inline asm
6352 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6354 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6355 Better handling of floats between -1.0 and 0.0.
6357 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6359 * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6360 (the missing "if"s prohibited removal of redundant labels)
6362 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6364 * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6365 Properly convert floats between -1.0 and 0.0 to long, int, and char
6366 types (max integer value of negative floats tends to zero).
6367 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6368 Removed changes made so to work properly with floats between
6369 -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6372 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6374 * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6375 * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6376 (genCast) cosmetic change
6377 * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6378 * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6380 * support/regression/tests/bitfields (testSignedBitfields): added
6382 2005-11-18 Borut Razem <borut.razem AT siol.net>
6384 * sdcc/device/lib/Makefile.in: remove all unnecessary files
6385 * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6386 introduced SILENT option to make building of pic16 libraries less
6388 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6390 * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6391 Now they work properly with floats between -1.0 and 0.0
6392 * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6394 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6396 * src/SDCCicode.c (printOperand): added missing else
6398 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6400 * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6401 reformatted for better readability
6402 * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6405 2005-11-17 Borut Razem <borut.razem AT siol.net>
6407 * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6408 introduced SILENT option to make building of pic16 libraries less
6409 verbose - used for nightly snapshot build
6410 * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6411 available on Win32 platforms.
6412 * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6413 medium, large, pic and pic16
6415 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6417 * device/lib/printf_large.c: Temporary patch for bug 1358192:
6418 printf("%f"...) sets fraction to zero.
6420 2005-11-16 Raphael Neider <rneider AT web.de>
6422 * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6424 * src/pic/gen.c (genIfx): implemented for CARRY bit
6425 * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6426 to generic pointers, fixes #1357332,
6427 (pic16_movLit2f): NEW,
6428 (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6430 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6432 * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6434 2005-11-11 Raphael Neider <rneider AT web.de>
6436 * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6437 * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6438 compute pointer's type from operand,
6439 (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6440 improved single bit reads, fixes bug #1353379
6442 2005-11-09 Borut Razem <borut.razem AT siol.net>
6444 * support/scripts/sdcc.nsi: added lib/pic to the package
6446 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6448 * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6450 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6452 * support/regression/tests/bug1348008.c: added
6453 * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6454 * support/regression/tests/bug1337835.c: updated comment
6456 2005-11-06 Borut Razem <borut.razem AT siol.net>
6458 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6459 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6460 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6461 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6462 sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6463 dynamic construction of cl_error_class and derivates - 2.nd try
6465 2005-11-05 Borut Razem <borut.razem AT siol.net>
6467 * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6468 bug, which caused Bus Errors on sparc solaris
6470 2005-11-04 Borut Razem <borut.razem AT siol.net>
6472 * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6473 sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6474 sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6475 sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6476 sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6477 and derivates to resolve the initialization problem on OSX
6479 2005-11-02 Borut Razem <borut.razem AT siol.net>
6481 * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6482 corrected typo - #include <winsock2.h>
6484 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6486 * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6487 (_asxxxx_mapping): added org directive for future enhancements
6489 2005-11-01 Borut Razem <borut.razem AT siol.net>
6491 * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6492 enabled sockets on WIN32
6493 * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6495 2005-10-31 Borut Razem <borut.razem AT siol.net>
6497 * support/regression/generate-cases.py: escape backslashes in {testcase}:
6498 WIN32 backslash path delimiters should be escaped when used in C strings
6499 * support/regression/tests/bitfields.c: exclude failing assertions for
6500 __CYGWIN32__ and __MINGW32__ hosts
6502 2005-10-30 Borut Razem <borut.razem AT siol.net>
6504 * src/SDCCutil.c: corrected double comparison typo
6506 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6508 * device/lib/medium/Makefile: added for new memory model medium
6509 * device/include/asm/mcs51/features.h: updated for medium/pdata
6510 * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6511 added Multiply & Accumulate sbit's and MAC0_PAGE define
6512 * device/include/mcs51/c8051f300.h: added sfr16 definitions
6513 * device/include/mcs51/c8051f310.h: added sfr16 definitions
6514 * device/lib/_mullong.c: update for medium model
6515 * device/lib/incl.mk: added medium model
6516 * doc/sdccman.lyx: documented medium model
6517 * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6518 * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6519 * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6520 * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6521 (allocParms): set SCLS and OCLS to pdata for medium model
6522 * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6524 (powof2): return <0 if not power of 2
6525 * src/avr/gen.c (genBitWise): use updated powof2
6526 * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6527 (shiftR2Left2Result): small optimization in setup, save acc when storing,
6528 (shiftLLeftOrResult): use B if necessary
6529 * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6530 * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6531 * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6532 * support/regression/Makefile.in: added test-mcs51-medium
6533 * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6535 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6537 * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6539 * device/lib/time.c (mktime): fixed bug 1334315
6541 2005-10-28 Raphael Neider <rneider AT web.de>
6543 * device/include/pic/p16f_common.inc: added common declarations
6544 * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6546 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6548 * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6549 (aopPutUsesAcc): added to predict accumulator use,
6550 (assignResultValue): save acc if necessary,
6551 (genMinusDec): store result if indirectly addressed,
6552 (genDivOneByte): save acc if necessary,
6553 (movLeft2Result): bugfix if left already in acc,
6554 (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6555 attention to accumulator use (esp. pdata),
6556 (genReceive): receive pdata correctly
6557 * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6558 * src/SDCCicode.h: added isOperandInPagedSpace prototype
6560 2005-10-27 Raphael Neider <rneider AT web.de>
6562 * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6564 2005-10-27 Raphael Neider <rneider AT web.de>
6566 * .version: changed version to 2.5.4
6567 * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6568 * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6569 (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6570 arithmetics support routines
6571 * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6572 * device/lib/Makefile.in: also create installdir for pic
6574 * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6576 * src/pic/device.c (dump_sfr): rewritten to delegate register
6577 placement to the linker (use `extern sym' rather than sym EQU addr),
6578 (validAddress): fixed to check last specified address
6579 * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6580 (popGetLit): truncate literal value to 8 bit,
6581 (popGet): moved assert to more appropriate place
6582 (popGetExternal): create pCode operand from and mark the according
6583 symbol as being `extern'
6584 (popGetAddr): added sanity check on immediate's offset, provide
6585 GPOINTER tag on demand
6586 (aopPut): fixed for immediates,
6587 (mov2w_op): move operand's address or contents to WREG (depending on
6588 operand type), safer variant of mov2w,
6589 (movwf,call_libraryfunc): NEW, handy abbreviations,
6590 (get_argument_pcop,get_return_val_pcop,pass_argument,
6591 get_returnvalue): interface for accessing function parameters and
6593 (assignResultValuei,genRet): use new parameter/return value interface
6594 (pic14_getDataSize): back to old version handling generic pointers,
6595 (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6596 provided implementation and/or fixed old one,
6597 (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6598 calls, removed legacy 8051 reference code
6599 (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6600 (loadSignToC): NEW, move the operands sign bit to CARRY,
6601 (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6602 genRightShiftSigned, accepts negative shift counts,
6603 (setup_fsr): load FSR and adjust IRP (indirect memory access),
6604 (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6605 generic pointers, __data pointers and __code pointers,
6606 (genUnpackBits,genPackBits): rewritten to work with generic pointers
6607 and signed bitfields, limit bitfields to 8 bit,
6608 (genDataPointerGet): fixed number of bytes read,
6609 (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6610 (genPointerGet,genPointerSet): fixed handling of __code pointers,
6611 pointers to constant data are no longer assumed to point to __code
6612 space, removed invalid pointer types,
6613 (bitpatternFromVal): retrieve the PICs representation of an integer
6615 (genDataPointerSet): fixed assigning to po_immediate operands,
6616 (genGenPointerSet): implemented as library call,
6617 (genIfx): fixed incorrect condition,
6618 (genAddrOf): limit generic pointers' addresses to 2 bytes,
6619 provide GPOINTER tag according to destination's storage class,
6620 (genCast): added code to handle casting to generic pointers, added
6621 sign-/zero extension of the result
6622 (aop_isLitLike,op_isLitLike): fixed handling of immediates
6623 * src/pic/gen.h: added macros to access IRP bit in STATUS register
6624 * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6626 * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6627 address/register resides in the shared banks
6628 (emitSymbolToFile): improved to handle global and `pinned' symbols,
6629 put all variables into separate sections (have the linker arrange
6631 (picglue): put init code and interrupt handlers in separate sections
6632 * src/pic/main.c: added port specific options table, modified to PORT
6633 structure to make GPOINTERs 3 byte, added pic14_options
6634 (_pic14_do_link): private linking routine (update paths to libraries,
6635 add libsdcc.lib by default)
6636 * src/pic/main.h: declare pic14_options
6637 * src/pic/pcode.c: fixed instructions i/o relations,
6638 (RegCond): reverted to correct version,
6639 (newpCodeOpLit): truncate literals to 8 bit,
6640 (genericPrint): added debug output,
6641 (getRegFromInstruction): fixed for various operand types, simplified
6642 (BuildFlow): fixed broken handling of isntructions with labels
6643 (LinkFlow): start at last instruction in flow (skip trailing comments),
6644 pass the flow on to the next instruction after CALL
6645 (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6646 (insertPCodeInstruction): fixed inserting after a skip instruction,
6647 (DoBankSelect): fixed for labeled instructions
6648 (OptimizepBlock): honor --nopeep switch
6649 (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6650 * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6651 * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6652 (pCodeOptime2pCodes): allow disabling this optimization via
6653 --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6654 but is still buggy), started implementation of a dataflow based
6655 pCode optimization (CSE + dead code elimination)
6656 (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6657 * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6658 names are independant of the stack location and therefore portable across
6661 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6663 * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6664 (selectSpil): fixed bug 1337835 by not spilling bit variables
6665 * support/regression/tests/bug1337835.c: added test for this bug
6666 * src/mcs51/peeph.def: restart after rule 3.c,
6667 addded rules 263.x to optimize loading constants
6669 2005-10-26 Raphael Neider <rneider AT web.de>
6671 * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6672 * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6673 (genAssign): emit warning when casting literals to generic pointer
6674 type, also applies when taking the address of a fixed variable,
6675 (genCast): improved casting to generic pointers
6676 * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6677 extern variables, added verbose error message
6678 * device/include/pic16/{string.h,errno.h}: added #pragma library c
6680 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6682 * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6683 carry must be complemented too
6684 * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6685 could be emitted by genMinus
6686 * src/SDCCval.c (constVal): fixed bug 1305065
6688 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6690 * src/SDCCast.c (addCast): added promotion for bit variables
6691 (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6692 promotion casts + optimisation
6693 (optimizeGetWord): fix warning 'i' might be used uninitialized
6694 * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6695 * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6697 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6699 * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6700 all chars are promoted to int; promotion should be handled in SDCCast.c
6702 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6704 * device/lib/_strcmp.c: Fixed bug 1326457
6706 2005-10-11 Raphael Neider <rneider AT web.de>
6708 * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6709 * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6711 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6713 * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6714 * support/regression/tests/sfr16.c: added test for the sfr32 bug
6716 2005-10-04 Raphael Neider <rneider AT web.de>
6718 * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6719 device/lib/pic16/pics.all: added pic18f1320
6720 * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6722 2005-09-30 Raphael Neider <rneider AT web.de>
6724 * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6725 * src/pic16/devices.inc: NEW, provides device descriptions
6726 * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6728 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6730 * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6733 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6735 * doc/sdccman.lyx: updated Highest Order Bit documentation,
6736 documented Any Order Bit, Higher Order Byte and Higher Order Word
6737 * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6738 * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6739 (optimizeGetAbit): new, to get any bit, not only the high bit,
6740 (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6741 (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6742 (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6743 (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6744 RIGHT_OP: also try GETBYTE, GETWORD optimization,
6745 GETABIT, GETBYTE, GETWORD: decorate them,
6746 (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6747 (ast_print): added GETABIT, GETBYTE, GETWORD
6748 * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6749 * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6750 (geniCodeBinary): new generic binary icode,
6751 (ast2iCode): added GETABIT, GETBYTE, GETWORD
6752 * src/port.h: updated comment for PORT.hasExtBitOp
6753 * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6754 (genGetByte): new, to get a single byte,
6755 (genGetWord): new, to get a word from a long,
6756 (gen51Code): added GETABIT, GETBYTE, GETWORD
6757 * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6759 2005-09-23 Raphael Neider <rneider AT web.de>
6761 * configure.in, configure: have device/lib/pic configured
6762 * device/lib/Makefile.in: added model-pic14
6763 * device/lib/clean.mk: added pic/ to clean rule
6764 * device/lib/pic: added rudimentary pic14 library providing support
6765 functions for multiplication/division/generic pointer access
6766 * src/SDCCopt.c (convilong): mark support functions as extern
6767 for pic14 port as well
6768 * src/pic/gen.c (genMult): added assertions,
6769 (genpic14Code): emit warning on unhandled iCodes
6770 * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6771 * src/pic/pcode.c (pCodeOpCopy),
6772 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6773 pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6774 SFR_REGISTER}), made safe for future extensions
6775 * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6776 instructions even if preceeded by SKIP instructions (also remove
6777 them); removed unused code
6778 * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6779 prevents leaving parts of the structure uninitialized after copying
6781 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6783 * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6785 * support/regression/tests/addsub.c: added test for the bug
6787 2005-09-21 Raphael Neider <rneider AT web.de>
6789 * device/include/pic16/pic18f1220.h,
6790 device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6791 * device/lib/pic16/Makefile.rules: added missing opening paren
6792 * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6793 are provided in genutils.c,
6794 (genUminusFloat,genUminus,genCmpEq): added asserts on different
6795 operand/result sizes,
6796 (genCmp): assert on NULL pointers first, then check deref'ed values
6797 * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6800 2005-09-18 Raphael Neider <rneider AT web.de>
6802 * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6803 as these are now unused,
6804 (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6805 * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6806 local, avoids uninitialized pointer dereference on r->name
6807 * src/pic16/ralloc.c (newReg): fixed indentation
6809 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6811 * src/SDCCval.c (constVal): fixed bug 730366
6812 * support/Util/SDCCerr.c,
6813 * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6815 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6817 * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6819 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6821 * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6823 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6825 * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6826 (hex2dec): made hex_digit unsigned char, removed ascii dependance
6827 * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6828 (hex2dec): made hex_digit unsigned char, removed ascii dependance
6829 * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6830 * packihx/packihx.c (hexDigit): made c unsigned char
6831 * as/mcs51/lklibr.c (fndsym),
6832 * link/z80/lkgb.c (gb),
6833 * link/z80/lklibr.c (fndsym),
6834 * link/z80/lkrloc.c (relr),
6835 * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6836 * src/SDCC.lex (checkCurrFile, process_pragma),
6837 * src/SDCCglue.c (spacesToUnderscores),
6838 * src/SDCCmain.c (setParseWithComma, processFile),
6839 * src/asm.c (tvsprintf, printCLine),
6840 * src/avr/gen.c (emitcode, aopPut),
6841 * src/ds390/gen.c (emitcode),
6842 * src/hc08/gen.c (emitcode, emitinline),
6843 * src/mcs51/gen.c (emitcode, genInline),
6844 * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6846 * src/pic/ralloc.c (debugLog),
6847 * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6849 * src/pic16/ralloc.c (debugLog),
6850 * src/z80/main.c (_process_pragma):
6851 made all ctype.h function calls safe
6852 * src/SDCCopt.c: include math.h for fabs
6853 * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
6854 and used them throughout the code to make ctype.h function calls safe
6855 * src/ds390/main.c (asmLineNodeFromLineNode),
6856 * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
6857 * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
6859 * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
6860 (newpCodeAsmDir): made ctype.h function calls safe
6861 * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
6862 pic16_emitcode): made lbp unsigned char*
6863 * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
6864 (pic16_newpCodeAsmDir): made ctype.h function calls safe
6865 * src/xa51/gen.c (emitcode),
6866 * src/z80/gen.c (_emit2): made lbp unsigned char*
6867 * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
6870 2005-09-05 Raphael Neider <rneider AT web.de>
6872 * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
6873 access bank splitpoint
6875 2005-09-05 Raphael Neider <rneider AT web.de>
6877 * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
6879 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
6881 * .version: changed to version 2.5.3
6882 * doc/sdccman.lyx: changed version to 2.5.3,
6883 documented --codeseg and --constseg and pragma codeseg and constseg,
6884 documented bit parameters (reentrant) and bit returning
6885 * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
6886 currFunc->recvSize, but is this ok for all ports?
6887 (ast2iCode): result of ~ on unsigned char must be cast to int for
6889 * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
6890 function pointers in bit space
6891 * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
6892 (processFuncArgs): call port.reg_parm() with reentrancy info
6900 * src/z80/main.c: port.reg_parm prototype extended with
6901 "bool reentrant" parameter
6902 * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
6903 options.stackAuto for allocating bit register parameters
6904 * src/mcs51/gen.c (genNot): optimized complementing direct bit,
6905 (genSend): set BitBankUsed if it is,
6906 (selectRegBank): factored out of genCall for use in genPcall,
6907 (genCall): removed redundant dtype assignmen, use selectRegBank,
6908 (genPcall): handle returning in Carry properly, save in F0 if needed,
6909 (genReceive): handle bit register parameters
6910 * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
6911 (mcs51_assignRegisters): enable bit registers for all reentrant
6912 functions and don't set BitBankUsed unconditionally
6913 * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
6914 * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
6915 * support/regression/tests/funptrs.c: added tests for BOOL and for return
6917 2005-08-27 Borut Razem <borut.razem AT siol.net>
6919 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
6920 ppc-osx (Darwin) does not support -u option. It seems that it is
6921 supported only on Linux - GNU cp
6923 2005-08-25 Borut Razem <borut.razem AT siol.net>
6925 * sim/ucsim/gui.src/serio.src/Makefile.in,
6926 sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
6927 sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
6928 sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
6929 install and strip, since the strip at /usr/ccs/bin should be used
6932 2005-08-24 Borut Razem <borut.razem AT siol.net>
6934 * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
6936 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
6938 * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
6941 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
6943 * as/mcs51/aslink.h: completed lkrloc.c prototypes
6944 * as/mcs51/lkmain.c (link_main): fixed warning
6945 * device/include/stdbool.h: ds390 has no advanced bit support yet
6946 * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
6947 * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
6948 * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
6949 and updated their macros
6950 * src/SDCCval.c (constVal): updated comment for renamed b_long
6952 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
6954 * as/mcs51/asdata.c: changed ctype['['] to BINOP
6955 * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
6956 (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
6957 (oprio): set priority for '['
6958 * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
6960 * as/mcs51/asm.h: added defines R_BIT and S_BIT
6961 * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
6962 * as/mcs51/lkdata.c: changed ctype['['] to BINOP
6963 * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
6964 added overlayable BIT_BANK area
6965 * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
6966 (summary2): explain 'T' in legenda
6967 * as/mcs51/lkrloc.c: replaced old K&R style,
6968 (relr): added R_BIT processing,
6969 (errmsg): added "Bit-addressable relocation error",
6970 (adb_bit): added for converting from byte- to bit-addressable space,
6971 (adb_24_bit): added for converting from byte- to bit-addressable space
6972 * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
6973 used in reentrant functions now even as return value
6974 * device/lib/_gptrput.c (_gptrput): removed obsolete code
6975 * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
6976 (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
6977 * src/SDCCglobl.h: added indicator BitBankUsed
6978 * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
6979 the bit registers b0-b7
6980 * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
6981 (geniCodeCast): fixed bug 1263853,
6982 (geniCodeLogicAndOr): put result in bool or char,
6983 (geniCodeReceive): added parameter func for accessing the return type,
6984 (geniCodeFunctionBody): pass func to geniCodeReceive
6985 * src/SDCCmain.c: added indicator BitBankUsed
6986 * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
6987 * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
6988 (checkSClass): don't put automatic bool/bit on stack,
6989 (checkFunction): removed check on function cannot return bit
6990 * src/SDCCsymt.h: added newBoolLink prototype
6991 * src/mcs51/gen.c (rb1regs): added bit registers,
6992 (movc): created for assigning to carry,
6993 (pushReg, popReg): created for pushing registers,
6994 (sameRegs): check both AOP_REG and AOP_CRY types,
6995 (aopOp): handle bit registers,
6996 (aopPut): optimization no self-assign,
6997 (saveRegisters): push reg->base (bits) only once for bit registers,
6999 (unsaveRegisters): pop reg->base only once and use popReg,
7000 (assignResultValue): added parameter func and return in carry for bits,
7001 (genIpush): optimization no reload in A if not changed,
7002 (genSend): bit parameters in reentrant functions are passed in bit
7003 registers by first assigning to bits in B, then save registers and
7005 (genCall): handle returning in Carry properly, save it in F0 if needed,
7006 (genPcall): updated assignResultValue call, this is not safe yet for bit
7007 returning function !!!
7008 (genFunction): don't generate equ's for bit registers and use pushReg,
7009 (genEndFunction): take care of bit returning functions and use popReg,
7010 (genRet): return bit in Carry,
7011 (genIfx): optimize bit registers and other directly addressable bits,
7012 (genReceive): updated assignResultValue call
7013 * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
7014 (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
7015 registers when using stack-auto
7016 * src/mcs51/ralloc.c (_G): added allBitregs,
7017 (regs8051): added the bit registers,
7018 (createStackSpil): use macro IS_BIT,
7019 (getRegBit): added to allocate a bit register, else spill,
7020 (getRegBitNoSpil): added to allocate a bit register, else a gpr,
7021 (updateRegUsage): factored out to ease stepping while debugging,
7022 (serialRegAssign): use updateRegUsage, only spill bits if necessary,
7023 also allocate bit registers,
7024 (fillGaps): handle bit registers,
7025 (findAllBitregs): added to create bit vector with all bit registers,
7026 (mcs51_allBitregs): returns this bit vector,
7027 (mcs51_assignRegisters): when using stack-auto use bit registers for
7028 passing parameters and creating local variables
7029 * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
7031 2005-08-22 Borut Razem <borut.razem AT siol.net>
7033 * device/lib/Makefile.in: replaced find option -or with -o
7034 to make it run on solaris
7036 2005-08-22 Raphael Neider <rneider AT web.de>
7038 * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7039 fixes #1265442 (crash on Solaris)
7041 2005-08-20 Borut Razem <borut.razem AT siol.net>
7043 * configure, configure.in: added tests for libsocket and libnsl libraries,
7044 requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7045 from support/regression/Makefile.in
7046 * support/regression/Makefile.in: added
7047 * device/lib/pic16/Makefile.common.in: force make to use bash shell
7048 * sim/ucsim/libtool: regenerated on sparc-solaris
7049 * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7050 sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7051 sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7052 -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7053 sparc-solaris, which doesn't use GNU ld linker
7054 * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7055 * as/Makefile: find on sparc-solaris does not support -maxdepth option
7057 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7059 * src/mcs51/peeph.def: updated comments
7061 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7063 * device/lib/_gptrget.c,
7064 * device/lib/_gptrput.c: slightly shorter
7065 * doc/sdccman.lyx: incremented version
7066 * src/mcs51/peeph.def: moved peephole comments to the line of first
7067 change to better keep line correlation, reanimated 186.e
7068 * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7070 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7072 * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7073 David Saxton with quotes around file name.
7075 2005-08-15 Borut Razem <borut.razem AT siol.net>
7077 * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7078 support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7079 support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7080 make tests run on x86_64 platform
7082 2005-08-13 Raphael Neider <rneider AT web.de>
7084 * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7085 as it might be executed DURING a build (parallel make is wonderful)
7087 2005-08-13 Raphael Neider <rneider AT web.de>
7089 * device/lib/Makefile.in (port-specific-objects-pic16):
7090 revert to cp $(PORT)/bin/*.* $(PORTDIR)
7091 * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7093 * device/lib/pic16/Makefile.rules: build subdirs before creating
7094 the library, removed builddir rule, create $(builddir) early in
7095 recurse rule, use empty recurse rule for leaf directories
7096 * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7097 mkdir errors (race condition), removed duplicate suffix "hex"
7099 * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7100 * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7101 prevents mkdir -p from aborting on Alpha
7103 2005-08-12 Raphael Neider <rneider AT web.de>
7105 * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7106 db-statements in order to allow for arrays of pointers in code
7107 sections to be placed without interspersed 0-padding, fixes
7109 * (emitStatistics): fixed division by zero for pic18f1220
7110 * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7111 unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7112 * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7113 * (pic16_pCodeConstString): keep track of already emitted string
7114 literals to prevent "duplicate definitions of symbol _str_NR"
7115 * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7117 * device/lib/Makefile.in: ignore failing PIC16 library builds
7118 * device/lib/pic16/Makefile: do not build if gputils are missing
7119 * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7121 2005-08-10 Raphael Neider <rneider AT web.de>
7123 * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7126 2005-08-10 Raphael Neider <rneider AT web.de>
7128 * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7129 Rokas' patch to add the new fixed point type "__fixed16x16"
7130 * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7131 functions for __fixed16x16 arithmetics
7132 * device/lib/pic16: reimplemented the build system to support
7133 a separate build directory, better handling of libio (create
7134 the library in a separate subdir for each architecture) and
7135 easier configuration (centralized in Makefile.common)
7137 2005-08-07 Raphael Neider <rneider AT web.de>
7139 * src/pic16/gen.c (genrshTwo): fixed sign extension
7140 * src/pic16/device.c: added pic18f2320, 4220 and 4320
7141 * device/include/pic16/pic18f2220.h: changed some bit definitions,
7143 * device/include/pic16/pic18f4220.h: NEW, header for
7144 pic18f4220 and pic18f4320
7145 * device/include/pic16/pic18fregs.h: added new devices,
7146 embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7147 * device/include/pic16/signal.h: resolved name clashes
7148 on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7149 to also allow testing for interrupt enable bits, added
7150 comments on how to use the macros
7151 * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7152 * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7153 register definitions for the devices
7154 * device/lib/pic16/pics.all: added new devices
7155 * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7157 * device/lib/pic16/libc/stdlib/memfree: do not count
7158 the block header as free memory
7159 * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7160 simplified and added missing end-of-blocklist-marker
7161 (reported by Peter Onion, fixes #1252814)
7162 * (_mergeHeapBlock): fixed loop condition
7163 * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7164 len==0, restructured code
7165 * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7166 up a bit, reduced bitfield accesses, prevent endless loops
7167 in case of heap corruption
7168 * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7169 "unreferenced arguments/must return a value" warnings
7170 * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7171 replaced BAUDREG with SPBRG
7172 * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7173 device/lib/pic16/debug/gstack/gstack.c: replaced
7174 _naked, _asm, _endasm with __naked, __asm, __endasm
7176 2005-08-05 Raphael Neider <rneider AT web.de>
7178 * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7179 AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7181 2005-08-05 Borut Razem <borut.razem AT siol.net>
7183 * device/lib/Makefile.in: added missing ';'
7184 * configure: removed ^M characters
7186 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7188 * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7189 device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7192 2005-08-04 Borut Razem <borut.razem AT siol.net>
7194 * configure.in: pic16 libraries build 2nd try - enable running
7195 configure in device/lib/pic16
7196 * configure: regenerated from configure.in
7197 * device/lib/Makefile.in: create $(PORT)/bin directory
7199 2005-08-03 Raphael Neider <rneider AT web.de>
7201 * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7202 to get/set values via pointers
7203 * (genUnpackBits,genPackBits): changed detection of
7204 ptr->bitfield vs. sym.bitfield, fixed access via generic
7205 pointers, removed dead (wrong) code for multibyte bitfields
7206 * (genNearPointerGet, genGenPointerGet): removed useless code,
7207 fixed bitfield detection, fixes #1250594
7208 * (genNearPointerSet): removed useless code
7209 * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7210 and introduced macro pic16_emitpcode that conditionally emits
7211 the origin of the following pCode (useful for debugging SDCC)
7212 * src/pic16/pcode.c: changed (and disabled) some debug outputs
7213 * (createDefmap): fixed handling of LFSR for --optimize-df
7215 2005-08-02 Borut Razem <borut.razem AT siol.net>
7217 * device/lib/Makefile.in: pic16 libraries build enabled since
7218 gputils-0.13.2 are now localy installed at sourceforge's compile farm
7220 2005-08-02 Raphael Neider <rneider AT web.de>
7222 * src/pic16/gen.c (genPackBits): removed deprecated warning
7223 * (genGenPointerSet): fixed bitfield detection
7225 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7227 * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7229 2005-07-31 Raphael Neider <rneider AT web.de>
7231 * device/lib/pic16/libdev/pic18f458.c,
7232 device/include/pic16/pic18f458.h: added missing T0CONbits
7234 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7236 * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7238 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7240 * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7242 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7244 * device/include/mcs51/at89c51ed2.h: added.
7246 2005-07-23 Raphael Neider <rneider AT web.de>
7248 * src/pic/gen.h: added emitpcode macro for debugging
7249 * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7250 and replace by macro adding debug information on demand
7251 * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7252 * (gencjne): tried to fix; replaced with correct (slower) code
7253 * (gen{Unp,P}ackBits): fixed single bit access
7254 * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7255 * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7256 previous instruction
7257 * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7258 register has to be handled with care (forbidding movement
7259 of assignments/uses, removing assignments completely, ...)
7260 * (pCodeOptime2pCodes): make use of regIsSpecial
7261 * added lots of debugging output (commented out)
7262 * src/pic/rallloc.c (deassignLRs): prevent operand registers
7263 from being reused as result UNLESS it is known to work
7265 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7267 * support/Util/dbuf.h: include <stddef.h> for size_t
7268 * .version: changed to version 2.5.2
7270 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7272 * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7274 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7276 * src/hc08/gen.c (genMinus): fixed bug #1241835,
7277 (genModOneByte): removed needless psha/pula
7279 2005-07-22 Raphael Neider <rneider AT web.de>
7281 * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7282 have PIC14 handled like PIC16, fixes broken pic14 linker calls
7283 * src/pic/gen.c (resolveIfx): do not "invent" labels
7284 * (genSkipc): changed to positive logic
7285 * (genSkipCond): removed as no longer needed
7286 * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7288 * (genLeftShift): check operands are in different registers
7289 * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7290 INCF does not update CARRY...
7291 * src/pic/main.c: fixed _linkCmd
7292 * src/pic/pcode.c (unlinkpCode): added inactive code
7293 * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7294 alive (do not assign result and operand overlapping registers)
7296 2005-07-22 Raphael Neider <rneider AT web.de>
7298 * src/pic/device.c (dump_sfr): replaced register declaration with
7299 call to emitSymbolToFile() to avoid duplicate symbols
7300 * (assignRelocatableRegisters): do not declare external symbols
7301 * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7302 right (take size of type, not etype)
7303 * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7304 * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7305 * (packRegsForAccUse): disabled assignment of WREG as
7306 the result reg to prevent occurence of just fixed #1235003,
7308 * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7309 symbols (avoids duplicate symbols in .asm file)
7310 * (pic14emitRegularMap): use emitSymbolToFile()
7311 * src/pic/gen.c (aopOp): fixed spillLocation handling
7312 * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7313 * (genDataPointerSet): removed unneccessary variables/output
7315 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7317 * as/mcs51/lkarea.c: enlarged codemap for banked memory
7318 * device/lib/mcs51/crtbank.asm: added # to 0x0F
7320 2005-07-21 Raphael Neider <rneider AT web.de>
7322 * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7323 architecture cannot handle them efficiently, fixes bug #1235003
7324 * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7325 check for empty sets before using them (fixes bug #1232190)
7327 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7329 * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7330 (lnksect2): generate warnings for memory overlap
7331 * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7332 constseg to set the name of these segments so you can instruct the linker
7333 to place them in banks
7334 * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7335 * src/SDCCglobl.h: added MODEL_HUGE to enum,
7336 added code_seg and const_seg to options
7337 * src/SDCCglue.c (emitMaps): use options.const_seg,
7338 (createInterruptVect): put interrupt vectors in segment HOME,
7339 (glue): put HOME before static segment and put the main glue in HOME,
7340 (glue): use options.code_seg
7341 * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7342 * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7343 these segments so you can instruct the linker to place them in banks
7344 (linkEdit): use code_loc for HOME segment which should be the first
7345 segment in code memory now
7346 * src/SDCCmem.c: fixed more stuff like bug 1238386
7347 * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7348 (changePointer): don't change function pointers to code pointers for
7350 (compareType): added exceptional check for banked function pointers
7351 * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7352 * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7353 after static in code memory
7354 * src/mcs51/gen.c: added aopLiteralLong prototype,
7355 (aopForSym): use getSize for functions,
7356 (genCall): generate banked calls over one trampoline __sdcc_banked_call
7357 in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7358 -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7360 (genPcall): use call for literal function pointers and generate banked
7361 calls over the one trampoline so there's only one place for the user to
7362 modify according to his/hers hardware,
7363 (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7364 (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7365 * src/mcs51/main.c: added keyword banked,
7366 (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7367 * support/Util/SDCCerr.c,
7368 * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7369 needed for passing the bank and address to the trampoline
7370 * device/lib/mcs51/crtbank.asm: added for bankswitching
7371 * device/lib/mcs51/Makefile: added crtbank
7373 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7375 * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7376 for fields at offset 0 of a struct or union as reported
7377 on 2005-07-07 in the developer mailing list.
7379 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7381 * src/SDCCmem.c: fixed bug 1238386
7383 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7385 * src/mcs51/peeph.def: added labelrefcounting for peepholes
7386 (patch #1144962), added peephole 300, enabled 259.x
7387 * doc/sdccman.lyx: removed screenshot and provided link instead
7389 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7391 * doc/sdccman.lyx: added section about debugging with ddd
7392 * doc/figures/ddd_example.eps: screenshot of debugging session
7394 2005-07-04 Raphael Neider <rneider AT web.de>
7396 * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7397 like CODE pointers, fixes #1115683
7398 * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7399 call, fixes bugs #1232211, #1228110,
7400 fixed wrong casts to pCodeFlow from pCodeInstructions
7402 2005-07-04 Raphael Neider <rneider AT web.de>
7404 * src/pic/gen.c (popGet): changed assert to allow for
7406 * (popGetAddr): changed signature to provide
7407 an additional index, patched all call sites
7408 * (genCmpEq): handle literal-like operands correctly
7409 * (genAddrOf): added sanity checks on __code/__data pointers
7410 * (genAssign): added handling of symbols from __code section
7411 * (gencjne): do not generate code for comparisons whose result
7412 is neither stored nor used, fixes bug #1171114
7413 * (AccLsh, AccRsh): operate on operand instead of WREG
7414 * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7415 replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7417 * rewrote complete shift-by-literal logic, commented unused
7419 * (genConstPointerGet): get multiple bytes (if result size > 1),
7420 fixed handling of non-immediate addresses
7421 * (genPointerGet): handle CODE pointers like CONST pointers
7422 * (genpic14Code): insert C-SRC lines as Cource-pCodes
7423 * ({aop,op}_isLitLike): NEW, single place to decide whether an
7424 operand is to be treated as a literal or not
7425 * (mov2w,genPcall,genCmpEq),
7426 src/pic/genarith.c: use aop_isLitLike() to decide between
7427 literal/register contents
7428 * (addSign): added missing offset
7429 * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7430 only emit comment in debug-mode,
7431 use {aop,op}_isLitLike throughout the file
7432 * src/pic/glue.c: fix initializers for pointers (work in progress)
7433 * src/pic/pcode.c (get_op): honor index on _const symbols
7434 * ({reset,dump}pCodeStatistics): NEW, estimate code size
7435 * (dumppBlock): added pCode size estimation
7436 * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7437 check for IS_SYMOP before OP_SYMBOL'ing
7438 * fixed indentation, compacted switch-statements
7439 * (allocReg): find free register and allocate it instead of
7440 allocating new registers all the time
7441 * (deassignLRs): prevent POINTER_GET's from being assigned the same
7442 registers as its operands (necessary only for multibyte GETs)
7444 2005-07-01 Raphael Neider <rneider AT web.de>
7446 * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7447 debugging .asm-output macros FENTRY + FEXIT
7448 * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7450 * (emitpComment): NEW, printf to pCode
7451 * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7453 * (popGetAddr): NEW, variant of popGet to access an immediates
7454 high(er) bytes instead of the n'th byte of memory they reference,
7455 replaced popGet with popGetAddr where neccessary
7456 * (genDataPointerGet): reactivated and fixed implementation
7457 * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7459 * (genDataPointerSet): fixed multibyte assignments
7460 * (genpic14Code): fixed --i-code-in-asm handling
7461 * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7462 * (genPlus): fixed index-out-of-bounds error
7463 * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7464 * src/pic/ralloc.c: added debugging output macro FENTRY2
7465 * (spillThis): fixed indentation, enbraced for-body for clarity
7466 * (rematStr): commented out as now unused
7467 * (regTypeNum): commented out special spill case (overwrites
7469 * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7471 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7473 * doc/sdccman.lyx: documented sfr16/sfr32,
7474 added example for using storage class with function pointers
7475 * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7477 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7479 * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7480 * device/lib/_itoa.c,
7481 * device/lib/_ltoa.c: optimized codesize
7482 * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7483 but don't know how to suppress the double warning.
7484 * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7485 * support/Util/SDCCerr.c,
7486 * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7488 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7490 * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7491 fixed old K&R prototypes
7492 * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7493 * device/lib/_gptrget.c,
7494 * device/lib/_gptrgetc.c,
7495 * device/lib/_gptrput.c: changed versions for new memory indicator values,
7496 also new versions for small generic pointers and banked generic pointers
7497 * src/port.h: added const_name
7498 * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7499 * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7500 * src/SDCCcse.c (findPrevIc): check all associative operators
7501 * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7502 * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7503 * src/SDCCmem.c: updated comments,
7504 set far-space to 0 for pdata, results in optimized code
7505 * src/SDCCmem.h: added macro CONST_NAME
7506 * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7507 moving the info into the highest bits, see also gptrget/gptrput
7508 * src/src.dsp: added sdcc.ico to project files
7509 * src/avr/gen.c (genCast): fixed bug 0x%d
7510 * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7511 * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7512 relation between ptr_type and DCL_TYPE,
7513 (genCast): fixed bug 0x%d
7514 * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7515 (CODE)" for const_name
7516 * src/hc08/gen.c (genCast): fixed bug 0x%d
7517 * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7518 (hc08_port): added "CONST (CODE)" for const_name
7519 * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7520 (aopForRemat, adjustArithmeticResult): disconnected direct relation
7521 between ptr_type and DCL_TYPE,
7522 (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7523 operand* and took AOP() inside function so sfr-ness can be checked,
7524 (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7526 (genFunction, genEndFunction): optimized stack setup,
7527 (genMinus): optimized for literals with ending zeroes (in bytes),
7528 (genCast): fixed bug 0x%d
7529 * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7530 (mcs51_port): added "CONST (CODE)" for const_name
7531 * src/mcs51/peeph.def: made rule 226 more generic
7532 * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7533 * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7534 * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7535 * src/z80/main.c (z80_port): added NULL for const_name,
7536 (gbz80_port): added NULL for const_name
7537 * support/regression/tests/bug663539.c,
7538 * support/regression/tests/sfr16.c: new tests
7540 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7542 * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7544 2005-06-24 Raphael Neider <rneider AT web.de>
7546 * device/lib/pic16/libdev/pic18f[68][567]20.c:
7548 * device/include/pic16/signal.h: added USBIF
7551 2005-06-24 Raphael Neider <rneider AT web.de>
7553 * device/lib/pic16/libdev/pic18f2455.c,
7554 device/include/pic16/pic18f2455.h: NEW
7555 * device/include/pic16/pic18fregs.h,
7556 device/lib/pic16/pics.all,
7557 src/pic16/device.c: added 18f2455
7558 * device/lib/pic16/libdev/pic18f[68][567]20.c,
7559 device/include/pic16/{pic18f[68][567].h,usart.h}:
7560 replaced MULTIPLE_USARTS define with more relaible
7561 compatibility sfrs (for USART access)
7563 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7565 * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7566 and the output asm file line is printed on two lines.
7568 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7570 * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7571 BGT, BLE, BHI, and BLS instructions
7572 * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7574 * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7575 negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7577 * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7579 2005-06-15 Raphael Neider <rneider AT web.de>
7581 * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7582 * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7583 * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7584 fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7585 OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7587 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7589 * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7590 Marcel Telka in bug #1215704
7592 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7594 * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7595 located in shared memory bank.
7597 2005-05-31 Raphael Neider <rneider AT web.de>
7599 * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7600 "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7601 "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7603 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7605 * device/lib/_strncpy.c: fixed the fix
7607 2005-05-26 Raphael Neider <rneider AT web.de>
7609 * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7610 initializers with \0, bug #1208187
7611 * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7612 intializers with \0, bug #1208187
7614 2005-05-26 Raphael Neider <rneider AT web.de>
7616 * src/pic16/glue.c (pic16_printIvalChar): fixed string
7617 initializers with \0, bug #1208187
7618 * src/pic16/main.c (_process_pragma): added sanity checks
7619 for stack position and size, emit warnings when appropriate
7621 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7623 * device/lib/_strncpy.c: fixed not filling with \0
7625 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7627 * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7629 * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7630 compound_statement),
7632 * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7634 2005-05-24 Raphael Neider <rneider AT web.de>
7636 * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7638 2005-05-24 Raphael Neider <rneider AT web.de>
7640 * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7641 TRISE definitions, closes bug #1162453
7643 2005-05-22 Raphael Neider <rneider AT web.de>
7645 * src/pic16/main.c (_process_pragma): check for missing
7646 arguments to pragmas code and udata
7647 * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7648 consistency fixes to match other headers (thanks to Jim Paris)
7649 * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7651 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7653 * src/SDCCicode.c (isOperandEqual): fixed missing ;
7655 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7657 * support/regression/tests/bug1198642.c: new test
7658 * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7659 * src/SDCCcse.c (findPrevIc): added comment, please have a look
7660 * support/scripts/resource.h,
7661 * support/scripts/resource.rc,
7662 * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7663 * support/scripts/sdcc.ico: added 32x32 icon
7665 2005-05-18 Raphael Neider <rneider AT web.de>
7667 * device/lib/pic16/libdev/pic18f*.c,
7668 * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7669 keywords to "__sfr" and "__at (X)"
7670 * device/include/pic16/pic18fregs.h: added pic18f4520
7671 * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7672 #1203088 (MPLAB compatibility)
7674 2005-05-17 Raphael Neider <rneider AT web.de>
7676 * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7677 * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7678 * device/lib/pic16/pics.all: added new devices
7679 * src/pic16/device.c: added support for pic18f4520
7681 2005-05-16 Raphael Neider <rneider AT web.de>
7682 * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7683 * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7684 * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7685 convenience function for bit access
7687 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7689 * device/lib/printf_large.c: fixed bug 1193299
7690 * support/regression/tests/bug1057979.c: added test %3.3s
7692 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7694 * device/include/mcs51/8051.h,
7695 * device/include/mcs51/8052.h: made parseable with lint
7696 * device/include/mcs51/lint.h: added include file for (sp)lint
7697 * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7698 * doc/cdbfileformat.lyx,
7699 * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7701 2005-05-14 Raphael Neider <rneider AT web.de>
7703 * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7704 * device/lib/pic16/libc/stdlib/itoa.c (new)
7705 * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7706 * device/lib/pic16/libio/Makefile: exclude subdir according to
7707 ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7708 * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7709 * src/pic16/gen.c (genFunction): prevent annoying warning
7710 * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7712 * support/cpp2/cppmain.c (cpp_output_string): new
7713 * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7716 2005-05-13 Borut Razem <borut.razem AT siol.net>
7718 * src/SDCCmain.c (linkEdit): fixed bug 1195202
7720 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7722 * .version: changed to version 2.5.1; back to bleeding edge development
7724 2005-05-11 Borut Razem <borut.razem AT siol.net>
7726 * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7727 generate PDF version 1.3 documents
7729 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7731 * .version: changed to version 2.5.0
7733 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7735 * doc/sdccman.lyx: updated weblinks, index and smaller updates
7737 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7739 * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7740 --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7741 well as many smaller updates.
7742 * .version: changed to version 2.5.0-pre1
7744 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7746 * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7748 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7750 * support/regression/tests/bug1185672.c: added
7751 * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7753 * src/mcs51/gen.c (genCall): added comments, made it look safer
7754 * src/mcs51/gen.c (genEndFunction): simplified
7756 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7758 * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7760 2005-04-14 Borut Razem <borut.razem AT siol.net>
7762 * fixed bug 1045046 - SIGSEGV with really simple code?:
7763 src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7764 src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7766 2005-04-14 Borut Razem <borut.razem AT siol.net>
7768 * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7769 src/pic16/device.h: temporarily disabled experimental #inline pragma
7772 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7774 * device/include/z80/stdio.h,
7775 * device/include/z80/string.h: removed these highly incomplete files so
7776 SDCC can use the default ones in device/include/
7778 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7780 * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7782 * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7785 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7787 * device/include/malloc.h: removed redundant __reentrant prototypes
7788 * device/lib/_mullong.c: added working xstack variant in asm (C version
7789 doesn't pass regression tests)
7790 * device/lib/bpx.c: used __data and made bpx char for mcs51
7791 * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7792 (createFunction): fixed bug with xstackPtr
7793 * src/SDCCcse.c: corrected comments
7794 * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7795 (killDeadCode, eBBlockFromiCode): removed unused code
7796 * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7798 * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7799 assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7800 genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7801 (genModOneByte): fixed warning in MSVC
7802 * src/mcs51/main.c (): added comments
7803 * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7805 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7807 * src/SDCCmain.c (linkEdit): oops, changed one line too many
7809 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7811 * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7813 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7815 * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7816 characters arrays of larger size than the declared one.
7818 2005-04-10 Borut Razem <borut.razem AT siol.net>
7820 * src/pic/gen.c (genInline),
7821 src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7822 (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7823 (findNextInstruction), (findPrevInstruction),
7824 (findInstructionUsingLabel),
7825 src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7826 * src/pic/pcode.c (findLabel): added missing '\n'
7827 * src/src.dsp: added SDCCdwarf2.c to the project
7829 2005-04-09 Borut Razem <borut.razem AT siol.net>
7831 * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7833 2005-04-08 Raphael Neider <rneider AT web.de>
7835 * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7836 into the chain after a given one) and mergeDefmapSymbols (combine
7837 defmap entries for each symbol per pcode)
7838 * (createDefmap): have defmap entries merged in the end
7839 * (defmapReplaceSymRef): split defmap entries covering two accesses to
7840 a symbol before replacing one access type's symbol, merge symbols in
7841 the end (replacement symbol might already have an entry)
7842 * (assignValnums): keep reference to written WREG intact
7844 2005-04-08 Raphael Neider <rneider AT web.de>
7846 * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7849 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7851 * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
7854 2005-04-07 Raphael Neider <rneider AT web.de>
7856 * device/include/pic16/usart.h: added compatibility defines for
7857 devices with more than one USART
7858 * device/include/pic16/pic18f[68][567]20.h: activated above defines
7860 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7862 * device/lib/Makefile.in: updated for port specific include
7864 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7866 * support/regression/ports/mcs51/spec.mk: added mcs51 include
7868 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
7870 * device/include/8051.h,
7871 * device/include/8052.h,
7872 * device/include/at89S8252.h,
7873 * device/include/at89c55.h,
7874 * device/include/at89x051.h,
7875 * device/include/at89x51.h,
7876 * device/include/at89x52.h,
7877 * device/include/mcs51reg.h,
7878 * device/include/reg51.h,
7879 * device/include/reg764.h,
7880 * device/include/regc515c.h,
7881 * device/include/sab80515.h: (re)moved these 12 files
7882 * device/include/mcs51/8051.h,
7883 * device/include/mcs51/8052.h,
7884 * device/include/mcs51/at89S8252.h,
7885 * device/include/mcs51/at89c55.h,
7886 * device/include/mcs51/at89x051.h,
7887 * device/include/mcs51/at89x51.h,
7888 * device/include/mcs51/at89x52.h,
7889 * device/include/mcs51/mcs51reg.h,
7890 * device/include/mcs51/reg51.h,
7891 * device/include/mcs51/reg764.h,
7892 * device/include/mcs51/regc515c.h,
7893 * device/include/mcs51/sab80515.h: and added them here
7895 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
7897 * device/include/stdarg.h: changed SDCC specific keywords to double
7899 * device/include/stdint.h: changed intptr_t and uintptr_t for others than
7901 * device/include/hc08/mc68hc908gp32.h,
7902 * device/include/hc08/mc68hc908jb8.h,
7903 * device/include/hc08/mc68hc908jkjl.h,
7904 * device/include/hc08/mc68hc908qy.h: fixed comments
7905 * device/include/mcs51/README: updated
7906 * device/include/mcs51/c8051f120.h: added PINRSF
7907 * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
7908 * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
7909 amidst code. Also inline is not supported.
7911 2005-04-06 Raphael Neider <rneider AT web.de>
7913 * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
7914 * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
7915 callers stack/frame pointers
7917 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
7919 * device/include/pic16/usart.h: added, missing in previous commit,
7920 * device/include/pic16/adc.h: fixed typo,
7921 * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
7923 * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
7925 * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
7926 uninitialized because a bug appears with gplink
7927 * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
7928 COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
7929 complains for unrecognised option
7931 2005-04-05 Raphael Neider <rneider AT web.de>
7933 * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
7934 structs as well (using memcpy)
7935 * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
7936 on ISRs (GOTO has no label)
7937 * src/pic16/device.h: added OF_OPTIMIZE_DF
7938 * src/pic16/main.c: added compiler switch --optimize-df to enable the
7939 new data flow analysis/optimization
7940 * src/pic16/pcode.c: added (prototypes for and implementation of)
7941 dataflow analysis functions, fixed pCodeInstructions' inCond and
7942 outCond values, made RCALL a branch instruction
7943 * (pic16_unlinkpCode): keep C line if possible
7944 * (pic16_pCodeUnlink): removed cast on left side of assignment, have
7945 C line moved if possible
7946 * (pic16_getRegFrompCodeOp): NEW, improved version of...
7947 * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
7948 to use new pic16_getRegFrompCodeOp (works for more SFRs)
7949 * (pic16_BuildFlow): fixed skip instructions with label (did not start
7951 * (pic16_getJumptabpCode): NEW, needed in...
7952 * (LinkFlow): fixed handling of jumptables, calls and conditional
7954 * (pic16_InsertCommentAfter): NEW
7955 * (pic16_pCodeReplace): made verbose and flow preserving
7956 * (AnalyzeFlow): added call to data flow analysis
7957 * src/pic16/pcode.h: added defmaps to pCodeFlow struct
7958 * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
7959 * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
7961 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7963 * src/SDCCast.c (decorateType): fixed bug #1105626
7965 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
7967 * device/include/asm/pic16/features.h,
7968 * pic18f*.h headers,
7969 * device/include/pic16/adc.h,
7970 * device/include/pic16/delay.h,
7971 * device/include/pic16/i2c.h,
7972 * device/include/pic16/malloc.h,
7973 * device/include/pic16/stdio.h,
7974 * device/include/pic16/stdlib.h,
7975 * device/include/pic16/string.h,
7976 * device/lib/pic16/libc/stdio/printf_tiny.c,
7977 * device/lib/pic16/libc/stdio/printf_small.c,
7978 * device/lib/pic16/libc/stdio/strmgpsim.c,
7979 * device/lib/pic16/libc/stdio/strmmssp.c,
7980 * device/lib/pic16/libc/stdio/strmusart.c,
7981 * device/lib/pic16/libc/stdio/vfprintf.c,
7982 * device/lib/pic16/libc/stdlib/ltoa.c,
7983 * device/lib/pic16/libc/stdlib/putchar.c,
7984 * device/lib/pic16/libc/stdlib/x_ftoa.c,
7985 * device/lib/pic16/libc/stdlib/memchrpgm.c,
7986 * device/lib/pic16/libc/stdlib/memchrram.c,
7987 * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
7988 * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
7989 * device/lib/pic16/libio/adc/adcbusy.c,
7990 * device/lib/pic16/libio/adc/adcread.c,
7991 * device/lib/pic16/libio/adc/adcsetch.c,
7992 * device/lib/pic16/libio/usart/ubaud.c,
7993 * device/lib/pic16/libio/usart/ubusy.c,
7994 * device/lib/pic16/libio/usart/udrdy.c,
7995 * device/lib/pic16/libio/usart/uopen.c,
7996 * device/lib/pic16/libio/usart/uputc.c,
7997 * device/lib/pic16/libsdcc/gptr/gptrget1.c,
7998 * device/lib/pic16/libsdcc/gptr/gptrget2.c,
7999 * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8000 * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8001 * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8002 * device/lib/pic16/libsdcc/gptr/gptrput2.c,
8003 * device/lib/pic16/libsdcc/gptr/gptrput3.c,
8004 * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
8005 specific keywords to double underlined form,
8006 * device/lib/pic16/libc/Makefile.rules,
8007 * device/lib/pic16/libsdcc/Makefile.rules,
8008 * device/lib/pic16/libm/Makefile,
8009 * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
8010 to compile with C standard set in Makefile.common
8011 * device/lib/pic16/libc/stdlib/Makefile: added new C sources
8012 rand.c and crc.c in compilation process,
8013 * device/lib/pic16/libsdcc/int/divuint.c,
8014 * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
8015 `c' from signed to unsigned,
8016 * device/lib/pic16/startup/crt0.c,
8017 * device/lib/pic16/startup/crt0i.c,
8018 * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
8019 keywords to double underlined form, bug fixes in _do_cinit function
8020 which prevented the correct initialization of the .idata segment,
8021 * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
8022 core to enter a infinite loop
8023 * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
8025 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8027 * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
8029 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8031 * device/include/Makefile.in: add support for hc08 subdirectory
8032 * device/include/hc08/: new subdirectory
8033 * device/include/hc08/mc68hc908jkjl.h: new header contributed by
8034 Lucas Loizaga, thanks!
8035 * device/include/hc08/mc68hc908qy.h,
8036 * device/include/hc08/mc68hc908gp32.h,
8037 * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
8038 their own directory. Changed internal macro names to use the compiler
8039 reserved namespace. Changed SDCC specific keywords to double
8041 * device/include/math.h,
8042 * device/include/malloc.h,
8043 * device/include/stdarg.h,
8044 * device/include/stdbool.h
8045 * device/include/string.h,
8046 * device/include/tinibios.h,
8047 * device/include/ds400rom.h,
8048 * device/include/8051.h,
8049 * device/include/8052.h,
8050 * device/include/80c51xa.h,
8051 * device/include/at89c55.h,
8052 * device/include/at89S8252.h,
8053 * device/include/at89x51.h,
8054 * device/include/at89x52.h,
8055 * device/include/ds80c390.h,
8056 * device/include/reg764.h,
8057 * device/include/regc515c.h,
8058 * device/include/sab80515.h,
8059 * device/include/mcs51/c8051f000.h,
8060 * device/include/mcs51/c8051f018.h,
8061 * device/include/mcs51/c8051f020.h,
8062 * device/include/mcs51/c8051f040.h,
8063 * device/include/mcs51/c8051f060.h,
8064 * device/include/mcs51/c8051f120.h,
8065 * device/include/mcs51/c8051f300.h,
8066 * device/include/mcs51/c8051f310.h,
8067 * device/include/mcs51/c8051f320.h,
8068 * device/include/mcs51/c8051f330.h,
8069 * device/include/mcs51/c8051f350.h,
8070 * device/include/z180.h: Changed SDCC specific keywords to double
8073 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8075 * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8077 * (pic16_assignConfigWordValue): disable testing of configuration
8078 register value with config mask,
8079 * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8080 function with port->fun_prefix,
8081 * (genFunction): when generating a naked interrupt function never
8082 create an absolute segment placed in interrupt vector address, place
8083 the actual interrupt function at IVA instead, when an interrupt
8084 function is generated with unspecified interrupt then do not create
8085 the absolute section,
8086 * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8087 code for generating a call to generic pointer get/put function with
8088 a call to function pic16_callGenericPointer(),
8089 * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8090 the call to the generic pointer get/put functions with prefixing the
8091 function name with port->fun_prefix,
8092 * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8093 * src/pic16/main.c (_process_pragma): prefix function with
8095 * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8096 calling assembler, old 18Fxxxx macro is deprecated,
8097 * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8098 PC_ASMDIR in while condition,
8099 * (findInstruction): add PC_ASMDIR in while condition,
8100 * (buildCallTree): prefix main with port->fun_prefix,
8101 * (pic16_pCode2str): fixed bug that didn't emit the memory access
8102 identifier for variable with banked access in instructions BTFSS,
8103 BTFSC, BCF, BSF, BTG
8104 * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8105 * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8106 * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8107 perform optimization when enviroment variable NO_REG_OPT is set,
8108 * (insideLRBlock): NEW, return 1 if register is inside an
8109 INF_LOCALREGS block,
8110 * (RemoveRegFromLRBlock): remove a register that is completely
8111 eliminated by register optimization, but it is still left in local
8112 register store/restore in/from stack block,
8113 * (Remove2pcodes): after removing register, check to see if it
8114 should be removed from local register store/restore in/from stack
8116 * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8117 DUMMY_READ_VOLATILE,
8119 * device/include/pic16/adc.h: minor prototype modifications and
8121 * device/include/pic16/malloc.h: added GPL notice various
8123 * device/include/pic16/stdint.h: NEW, standard header for ints
8124 * device/include/pic16/delay.h: NEW, header for delay functions,
8125 delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8127 * device/include/pic16/signal.h: NEW, header providing helper macros
8128 for implementing signal handlers,
8129 * device/include/pic16/stdio.h: added prototypes for functions,
8130 printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8131 prototypes for stdin and stdout, added macro PUTCHAR to
8132 automatically implement putchar function prototype,
8133 * device/include/pic16/usart.h: modified and updated USART library,
8134 * device/lib/pic16/libio/adc/,
8135 * device/lib/pic16/libio/i2c: some modifications to improve library
8137 * device/lib/pic16/libc/stdio/: modifications for the new printf*
8138 family of functions,
8139 * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8140 family of functions and other sources,
8141 * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8142 of the PIC18Fxx[28] devices,
8143 * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8144 * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8145 * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8146 _do_cinit function, because the previous failed when local variables
8147 where not placed in the same memory bank,
8148 * device/lib/pic16/libsdcc/char/: various modifications to improve
8149 library performance,
8150 * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8151 information on the new functions of the c library and more...
8153 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8155 * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8157 2005-03-26 Raphael Neider <rneider AT web.de>
8159 * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8160 if condition == CARRY)
8161 * (genCmp): adapted to new genSkipc semantics
8162 * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8163 on rIfx (genCmp was broken)
8165 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8167 * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8168 * src/z80/main.c (_keywords[]),
8169 * src/SDCCglobal.h (struct options),
8171 * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8172 to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8173 std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8174 --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8175 always available in leading double underscore form. The C99 support is
8176 mostly missing, but it's a start.
8177 * support/regression/tests/bug-227710.c: fixed nonconforming use of
8178 reserved identifier "__data".
8180 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8182 * src/mcs51/peeph.def: fixed bug 1170013
8184 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8186 * device/include/mcs51reg.h: fixed bug 842007
8188 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8190 * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8193 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8195 * src/port.h (struct PORT),
8196 * src/avr/ralloc.c (avr_assignRegisters),
8198 * src/ds390/ralloc.c (ds390_assignRegisters),
8200 * src/hc08/ralloc.c (hc08_assignRegisters),
8202 * src/mcs51/ralloc.c (mcs51_assignRegisters),
8204 * src/pic/ralloc.c (pic14_assignRegisters),
8206 * src/pic16/ralloc.c (pic16_assignRegisters),
8208 * src/xa51/ralloc.c (xa51_assignRegisters),
8210 * src/z80/ralloc.c (z80_assignRegisters),
8212 * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8213 * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8215 * src/SDCCdflow.c (computeDataFlow),
8217 * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8219 * src/SDCCcflow.c (*),
8221 * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8222 * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8223 of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8224 immedDom() returning wrong block; probably fixes bug #1160833)
8226 2005-03-20 Borut Razem <borut.razem AT siol.net>
8228 * support/scripts/inc2h.pl: WIN32 port
8230 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8232 * device/lib/makefile.in: added abs.c and labs.c
8234 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8236 * device/include/stdint.h: added
8237 * device/lib/abs.c: added
8238 * device/lib/labs.c: added
8239 * device/include/stdlib.h: added abs() and labs() prototypes
8240 * device/lib/libsdcc.lib: added abs and labs
8241 * device/include/float.h,
8242 * device/lib/_fsmul.c,
8243 * device/lib/printf_fast.c,
8244 * device/lib/printf_tiny.c: updated comments
8246 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8248 * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8251 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8253 * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8254 * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8256 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8258 * device/lib/printf_large.c: removed inline assembly for portability and
8259 readability. Use printf_fast if speed or size are more important.
8260 * src/pic16/gen.c: removed conditions around use of DEBUGpc
8261 * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8263 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8265 * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8266 prevent compiler warning
8268 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8270 * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8271 moved to level 0 and declared as static. Also they are explicit
8272 placed in access bank. This was necessery because some times they
8273 might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8274 * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8275 optimizations. Currently only compare to unsigned char is implemented,
8276 * src/pic16/gen.c: added fReturnIdx array,
8277 * (struct resolvedIfx) is moved to gen.h and made public,
8278 * (struct _G): added sregsAlloc and sregsAllocSet fields,
8279 * (aopForSym): added an optimization to directly store in stack of
8280 the operand of a SEND iCode,
8281 * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8282 but as registers instead (AOP_REG) using the fReturnIdx array,
8283 * (pic16_freeAsmop): remove the freed register from the
8284 _G.sregsAlloc field,
8285 * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8286 a compare of 'WREG',
8287 * (pic16_popGetTempRegCond): changed function prototype, now
8288 function takes also a bitVector argument v which holds the current
8289 set of registers that are allocated for stack access by aopForSym,
8290 registers allocated in aopForSym for accessing stack symbols are not
8291 any more part of the functions usedRegs field,
8292 * (genCall): some times aopOp is called for a stack variable to be
8293 send, aopForSym might perform the push, if this is true make sure
8294 that genCall doesn't push the variable twice by testing _G.resDirect,
8295 * (genFunction): changed testing for unspecified interrupt number
8296 from 256 to INTNO_UNSPEC,
8297 * modified selection scheme of frame pointer generation. Previously
8298 if function did use local registers a frame pointer was generated,
8299 now a frame pointer is generated only if function has arguments
8300 (that need PLUSW2 register access), or has stack arguments, or the
8301 compiler is not instructed to omit the frame pointer,
8302 * (genEndFunction): before restoring local registers that were saved
8303 in the function preamble, also restore the registers that *might*
8304 have been allocated for stack access,
8305 * (genRet): removed some old comments,
8306 * (genCmp, the active (RN's) version): added a call to the
8307 pic16_genCmp_special function to perform the compare with a more
8308 robust and optimized way,
8309 * (genInline): a feature has been added in inline code generation,
8310 which allows a wildcard variable substitution when writing inline
8311 assembly. Code is incomplete and experimental therefore undocumented,
8312 * (genCast): changed order of aopOp for result and right to allow
8313 aopForSym to directly load the result if possible,
8314 * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8315 perform an optimized compare on some selected special occasions,
8316 * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8317 * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8318 generate an IVT any more,
8319 * src/pic16/main.c (pic16_optionsTable): added command line option
8321 * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8322 macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8324 * src/pic16/NOTES: Raphael Neider added in list of active developers
8325 * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8326 jumptable_end to prevent bug #,
8327 * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8328 inCond and outCond fields,
8329 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8330 * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8331 turn off register spilling,
8332 * (packRegsForOneUse): synced with other ports' versions although it
8333 is not used currently,
8334 * (pic16_packRegisters): added an optimization while reading
8335 structure bitfields, some registers may be saved (malloc code is
8336 decreased by 80 bytes)
8338 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8340 * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8341 left is a bitfield, if yes, then don't optimize assignment. Perhaps
8342 this can be optimized more?
8344 2005-03-10 Raphael Neider <rneider AT web.de>
8346 * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8347 genNearPointerGet): (hopefully) fixed access to bitfields via
8348 pointers (p->bitN = x; and x = p->bitN; failed)
8350 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8352 * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8354 2005-03-09 Raphael Neider <rneider AT web.de>
8356 * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8358 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8360 * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8361 * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8362 (regTypeNum): set REG_BIT type if necessary
8363 * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8364 * support/regression/tests/critical.c: check bug 1144613
8366 2005-03-02 Raphael Neider <rneider AT web.de>
8368 * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8370 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8372 * src/avr/ralloc.c (serialRegAssign),
8373 * src/ds390/ralloc.c (serialRegAssign),
8374 * src/hc08/ralloc.c (serialRegAssign),
8375 * src/mcs51/ralloc.c (serialRegAssign),
8376 * src/pic/ralloc.c (serialRegAssign),
8377 * src/pic16/ralloc.c (serialRegAssign),
8378 * src/xa51/ralloc.c (serialRegAssign),
8379 * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8381 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8383 * src/SDCCast.c (decorateType): fixed bug 1124787
8385 2005-02-20 Hubert Sack <sack AT digiplan.de>
8386 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8388 * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8391 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8393 * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8394 to keep the correct label reference count when adding/removing references
8395 to labels. A peephole file using this is appended to patch #1144962.
8397 2005-02-14 Raphael Neider <rneider AT web.de>
8399 * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8400 * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8401 * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8402 retrievals of result operand's value on assignment
8404 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8406 * device/include/pic16/string.h: modified prototype for memccpy()
8407 to memccpy(void *, void *, char, size_t)
8408 * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8409 check whether to omit frame pointer or not,
8410 * (genInline): convert all occurences of "\n" to LF in inline
8411 assembler blocks, this helps formatting the inline text,
8412 * (pic16_loadFSR0): modified prototype,
8413 * (genNearPointerGet, genNearPointerSet): reorganization of code,
8414 removed some 8051 legacy code,
8415 * (genPackBits): enabled handling bitfields exceeding one byte in size,
8416 * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8417 before allocating temporary registers in functions,
8419 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8421 * support/regression/tests/bitvars.c: corrected the "fix"
8423 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8425 * support/regression/tests/bitvars.c,
8426 * support/regression/tests/bitwise.c,
8427 * support/regression/tests/rotate.c: "fixed" problems on Alpha
8429 2005-02-10 Raphael Neider <rneider AT web.de>
8431 * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8432 different size for Alpha
8433 * src/pic16/gen.c (genCmpEq) : improved compare with 0
8435 2005-02-09 Raphael Neider <rneider AT web.de>
8437 * src/SDCC.lex(doPragma) : save and restore warning options as well
8438 (also added new stack plus clone- and copyAndFreeSDCCERRG())
8439 * have #pragma less_pedantic set the errorlevel to WARNING
8441 * (cloneOptimize) : fixed wrong malloc's size
8442 * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8443 facilitate correct handling of #pragma (save|restore)
8445 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8447 * src/mcs51/gen.c: removed non-standard C nameless struct/union
8449 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8451 * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8453 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8455 * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8457 2005-02-02 Raphael Neider <rneider AT web.de>
8459 * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8460 * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8461 * (pic16_storeForReturn): fixed to allow returning function pointers
8462 * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8463 * device/include/pic16/{stddef.h,stdbool.h}: added
8465 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8467 * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8469 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8471 * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8472 * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8473 appeared to be required
8475 2005-01-31 Borut Razem <borut.razem AT siol.net>
8477 * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8478 include/mcs51 and include/z80 directories to the package
8480 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8482 * src/hc08/gen.c (genFunction): fixed bug #1112752
8484 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8486 * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8488 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8490 * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8492 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8494 * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8496 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8498 * device/include/c8051fxxx.h: removed these 6 files
8499 * device/include/mcs51/c8051fxxx.h: added these 11 new files
8501 2005-01-26 Raphael Neider <rneider AT web.de>
8503 * src/pic16/gen.c (genAssign): fixed assignment from longs
8504 in codespace (were cut to three bytes)
8505 * (genDummyRead): implemented (except for CODESPACE...),
8507 * src/pic16/glue.c (emitStatistics): beautified
8508 * device/lib/pic16/libm/Makefile: added include path
8510 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8512 * src/z80/gen.c (aopPut): fixed bug #1103902
8514 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8516 * device/lib/expf.c: fixed bug #1095792
8518 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8520 * device/lib/pic16/libm: added Math library sources
8522 2005-01-24 Raphael Neider <rneider AT web.de>
8524 * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8525 to enable upcast to pCodeOpReg2 (there is no type tag to
8526 differenciate the two and pic16_popGet2p cast into PCOR2)
8527 * src/pic16/main.c (_process_pragma): fixed another malloc bug
8528 (sizeof(sectNames) changed to sizeof(sectName))
8529 Both patches fix segfaults under MinGW.
8531 2005-01-23 Raphael Neider <rneider AT web.de>
8533 * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8534 Safe_[mc]?alloc()'ed variables
8535 * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8536 of (byte sized) temporaries (assign them to WREG for now)
8537 * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8538 (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8539 this might fix SIGSEGVs on MinGW...
8540 * src/SDCCopt.c (killDeadCode): restored original behaviour
8541 (volatile operands might get thrown away though)
8543 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8545 * src/pic16/gen.c: fixed bug #1106975,
8546 * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8547 pointer update, INTCON is saved, global interrupts are disabled and
8548 restored after updateing TOS.
8549 * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8550 * added function attribute 'shadowregs' to take advantage of shadow
8552 * added function attribute 'wparam' as an alternative to the wparam
8554 * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8555 user declares a non-ISR function as 'shadowregs',
8556 * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8558 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8560 * .version: bumped version number to 2.4.8
8561 * device/lib/pic16/pics.all: list of PIC18F devices supported by
8563 * device/lib/pic16/libio/i2c/: I2C module support library,
8564 * device/include/pic16/i2c.h: I2C support library header,
8565 * device/lib/pic16/libc/stdio/: standard IO support sources,
8566 * (printf_small.c): printf_small() source, supports float print,
8567 * (printf_tiny.c): printf_tiny() source, does not support floats,
8568 * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8569 enable global optimizations for entire library source, other
8570 Makefiles in the source tree are also modified to reflect this,
8571 * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8573 * doc/sdccman.lyx: updated to reflect new changes,
8574 * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8575 sym->onStack if-case,
8576 * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8577 sbit, idata, _idata, xdata, _xdata,
8578 * added pragma library, to link an external library, (see doc),
8579 * removed command line options, --pomit-config-words, --pomit-ivt,
8580 --pleave-reset-vector,
8581 * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8582 when calling assembler to reflect memory model used, also define
8583 macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8584 reflect stack model used,
8585 * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8586 on stack return NULL,
8588 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8590 * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8591 of the operands is volatile. Fixes #1020220
8593 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8595 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8596 * (OptimizeRegUsage): make sure that there is really no other flow where
8597 the first pCode is used
8599 2005-01-22 Raphael Neider <rneider AT web.de>
8601 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8602 to fix #1106967 (pCode->seq are not set up correctly)
8604 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8606 * src/SDCCglue.c (glue): make sure code area is declared before the
8607 static initialization area.
8609 2005-01-21 Raphael Neider <rneider AT web.de>
8611 * device/lib/Makefile.in: fixed test for pic16 install dir
8612 * device/lib/pic16/*/Makefile*: modified compile flags to enable
8614 * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8615 added --optimize-goto compiler switch and pragma wparam documentation
8616 * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8617 * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8618 and PRODH closing bug #1071770 (peephole optimizer)
8620 2005-01-19 Raphael Neider <rneider AT web.de>
8622 * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8623 cmdLine buffers (used when calling sdcpp...) are large enough
8624 (MAX_PATH=256 truncates arguments leading to system halts when
8626 * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8627 * (genUminus): rewritten to for efficiency
8628 * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8629 used uninitialized in some cases)
8630 * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8631 copy the third byte from the int -- now assumes 0x80 (data memory)
8632 * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8633 operands (genAddLit expects the iCode's operands to swapped as
8634 well), fixed leftover bytes (crashed for short left operands)
8635 * (pic16_genMinusDec): performance improvements, removed false
8637 * (pic16_genMinus): fixed to cope with differently sized operands
8638 * src/pic16/glue.c (pic16_glue): added new banksel optimization
8640 * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8641 * src/pic16/graph.[ch]: implementation of directed graphs, used by
8642 new banksel optimization
8643 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8644 analysis for temporary registers (segfaults...)
8645 * src/pic16/peeph.def: added rule
8647 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8649 * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8650 which converts a float number to its ASCII representation
8651 * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8652 functions to convert the fractional and integer part of a float to ASCII,
8653 * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8654 realloc.c): added _MALLOC_SPEC to explicit place variables in data
8656 * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8658 * device/include/pic16/adc.h: added GPL info,
8659 * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8660 a pCodeOp as tested operand,
8661 * (genNearPointerGet): optimized bit testing, does not use
8662 intermediate register for bit value, test directly instead with
8663 BTFSS, BTFSC, works only for single bits,
8664 * (genpic16Code): dump the name of the iCode in the asm,
8665 * src/pic16/ralloc.c (decodeOp): removed static declaration and
8666 renamed to pic16_decodeOp,
8667 * (serialRegAssign): do not allocate a temporary register for iCode
8668 sequences that test a single bit for 1/0
8670 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8672 * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8673 pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8674 access stack and frame pointers. They are initially assigned to
8675 point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8676 accessing SFRs. Updated all occurences of modification of stack or
8677 frame pointer in gen.c and pcode.c,
8678 * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8679 assigning of a literal value to pointers,
8680 * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8681 flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8684 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8686 * doc/sdccman.lyx: update documentation about stack pragma, added
8687 some info for stack memory models
8689 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8691 * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8693 2005-01-08 Raphael Neider <rneider AT web.de>
8695 * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8696 udata sections to fix bug #1097823
8698 2005-01-05 Raphael Neider <rneider AT web.de>
8700 * src/pic16/gen.c (genGenericShift): added handling of differently
8701 sized left operand and result
8703 2005-01-04 Raphael Neider <rneider AT web.de>
8705 * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8706 * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8707 to hold the condition bit)
8708 * added new version of genCmp (old code available via #define)
8709 * added new version of genShiftLeft/genShiftRight in a generic
8710 way, now supports shifting by negative values
8711 * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8712 shiftCount (expected by genGenericShift)
8713 * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8714 * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8716 * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8717 is an invalid literal too...)
8719 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8721 * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8722 from Raphael Neider,
8723 * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8724 for 8-bit literals. This fixes some literal operands which are sign
8725 extended to 16-bits ints when instruction needs only 8-bits.
8727 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8729 * device/lib/logf.c: added mcs51 assembly version
8730 * device/lib/expf.c: added mcs51 assembly version
8731 * device/lib/_logexpf.c: new shared asm code for expf and logf
8732 * device/include/math.h: add defines for assembly math library
8733 * device/lib/Makefile.in: build new _logexpf.c
8734 * device/lib/libfloat.lib: use new _logexpf.c
8736 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8739 * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8740 device types which have less than 0x7f registers.
8742 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8744 * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8746 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8748 * device/lib/printf_fast.c: only build on supported arch.
8749 * device/lib/printf_tiny.c: only build on supported arch.
8750 * device/lib/printf_fast_f.c: only build if asm float lib
8751 * device/lib/_fsget1arg.c: only build if asm float lib
8752 * device/lib/_fsget2args.c: only build if asm float lib
8753 * device/lib/_fsnormalize.c: only build if asm float lib
8754 * device/lib/_fsreturnval.c: only build if asm float lib
8755 * device/lib/_fsrshift.c: only build if asm float lib
8756 * device/lib/_fsswapargs.c: only build if asm float lib
8757 * device/include/stdio.h: don't provide print_fast,
8758 print_fast_f, print_tiny prototypes if --xstack used
8760 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8762 * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8763 * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8766 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8768 * device/lib/printf_fast_f.c: same as printf_fast, but
8769 with floating point enabled
8770 * device/lib/printf_fast.c: minor tweaks
8771 * device/include/stdio.h: add printf_fast_f
8773 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8775 * src/SDCCmain.c: make --float-reent default for mcs51
8776 * device/lib/_fsadd.c: added mcs51 assembly version
8777 * device/lib/_fssub.c: added mcs51 assembly version
8778 * device/lib/_fsmul.c: added mcs51 assembly version
8779 * device/lib/_fsdiv.c: added mcs51 assembly version
8780 * device/lib/_fseq.c: added mcs51 assembly version
8781 * device/lib/_fsneq.c: added mcs51 assembly version
8782 * device/lib/_fsgt.c: added mcs51 assembly version
8783 * device/lib/_fslt.c: added mcs51 assembly version
8784 * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8785 * device/lib/Makefile.in: add _fscmp to build
8786 * device/lib/libfloat.lib: add _fscmp to build
8788 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8790 * device/lib/_fs2slong.c: added mcs51 assembly version
8791 * device/lib/_fs2sint.c: added mcs51 assembly version
8792 * device/lib/_fs2schar.c: added mcs51 assembly version
8793 * device/lib/_fs2ulong.c: added mcs51 assembly version
8794 * device/lib/_fs2uint.c: added mcs51 assembly version
8795 * device/lib/_fs2uchar.c: added mcs51 assembly version
8796 * device/lib/_slong2fs.c: added mcs51 assembly version
8797 * device/lib/_sint2fs.c: added mcs51 assembly version
8798 * device/lib/_schar2fs.c: added mcs51 assembly version
8799 * device/lib/_ulong2fs.c: added mcs51 assembly version
8800 * device/lib/_uint2fs.c: added mcs51 assembly version
8801 * device/lib/_uchar2fs.c: added mcs51 assembly version
8802 * device/include/float.h: added #define to select asm vs c
8804 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8806 * device/lib/printf_fast.c: improvements to float output
8807 * device/include/float.h: add defines for assembly float library
8808 * device/lib/_fsget1arg.c: receive 1 float arg
8809 * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8810 * device/lib/_fsnormalize.c: normalize a float
8811 * device/lib/_fsreturnval.c: return float, various helper routines
8812 * device/lib/_fsrshift.c: right shift a float's mantissa
8813 * device/lib/_fsswapargs.c: swap 2 floats
8814 * device/lib/Makefile.in: build these 6 new files for mcs51
8815 * device/lib/libfloat.lib: add these 6 files to the library
8817 2004-12-26 Borut Razem <borut.razem AT siol.net>
8819 * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8822 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8824 * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8825 and fully reentrant and register bank neutral.
8826 * device/lib/printf_fast.c: added float (not enabled by default),
8827 added compact/slower integer (also not enabled by default),
8828 improved size/speed of fast integer code, other minor changes
8829 * device/include/stdio.h, device/lib/Makefile.in,
8830 device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8832 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8834 * src/pic16/pcode.c: declaring variables other than at the start of a
8835 block is not supported in C by VC6.
8837 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8839 * applied a previous patch from Raphael Neider that wasn't included
8840 in the previous commits, which fixes infinite loops within jumptable
8842 * made some fixes that previous patches introduced
8844 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8846 * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8847 that fixes an issue with AOP_PCODE asmop's offset,
8848 * (pic16_popCopyReg): update instance field too,
8849 * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8850 function of pic port,
8851 * (genCmp, genAnd, genAssign),
8852 * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
8854 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
8856 * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
8857 variables initial values to idata section,
8858 * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
8859 variables in some functions. This utilizes parmBytes field of iCode
8860 structure to hold the offset of the variable in stack. (might be
8861 able to use the stack field too?)
8862 * applied patch from Raphael Neider # ### , # ###
8863 * src/pic16/glue.c (pic16emitRegularMap): fix to print static
8864 variable initial values in idata section,
8865 * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
8866 for static variables with initial value
8867 * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
8868 applied fix in while loop from Raphael Neider.
8870 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
8872 * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
8873 * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
8874 * src/ds390/ralloc.c (serialRegAssign): spill bits
8875 * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
8876 * support/Util/SDCCerr.c,
8877 * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
8878 * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
8879 * support/regression/tests/bitwise.c: added test for bitwise complement(~)
8881 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
8883 * device/include/sdcc-lib.h: inserted LGPL, added includes
8884 asm/ds390/features.h and asm/mcs51/features.h
8885 * device/include/asm/default/features.h,
8886 * device/include/asm/gbz80/features.h,
8887 * device/include/asm/z80/features.h: added empty _AUTOMEM
8889 * device/include/asm/ds390/features.h,
8890 * device/include/asm/mcs51/features.h: added files with defines for
8891 _AUTOMEM and _STATMEM indicating automatic and static storage class
8892 * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
8893 * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
8894 * src/SDCCicode.c (geniCodeCast),
8895 * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
8896 * src/SDCCloop.c (loopInduction): removed unused variable lr
8897 * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
8898 to convertToFcall to include char modulo (RFE 1065037), added check
8899 if left operand is unsigned and use abs of literal value
8900 * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
8901 as it doesn't work after conversion from peephole.def to peephole.rul
8902 * src/mcs51/gen.c (toBoolean): added check for size,
8903 (genModOneByte): optimized code for signed char modulo a literal
8904 power of 2 (thanks to Hubert Sack),
8905 (genRRC): removed unnecessary "clr c",
8906 (genRLC): replaced "add a,acc" with cheaper "rlc a"
8907 * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
8909 swapped rules 256.c and 256.d,
8910 extended 256.d by using new multiple checks (thanks Erik),
8911 added rules 256.e and 256.f,
8912 updated rule 261.a and 261.b to new generated code
8913 * support/regression/tests/muldiv.c: added test div/mod by a power of 2
8915 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8917 * src/SDCCloop.c (basicInduction, loopInduction): fixed several
8918 induction related bugs, including first part of bug #1074377
8920 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
8922 * applied patch from bug-report #1076292,
8923 * applied patches for genAnd and Goto-optimizations for Raphael
8925 * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
8926 dump a less iCode information,
8927 * src/pic16/device.h (pic16_options_t): added field debgen,
8928 * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
8929 DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
8930 * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
8932 * (various functions): added macros FENTRY and FENTRY2 to functions,
8933 to emit function prologue,
8934 * (various functions): fixed indentation,
8935 * (genNearPointerGet): fixed loading of FSR0,
8936 * (genPackBits): applied patch from Raphael Neider to fix updating
8937 of FSR0 and touching only the modified bits,
8938 * src/pic16/genarith.c (various functions): added macros FENTRY to
8939 emit function prologue in comments,
8940 * src/pic16/pcode.h: added functions debugf2, debugf3,
8941 * src/pic16/ralloc.c: partial fix for packForPush caused
8944 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8946 * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
8947 <stsp AT users.sourceforge.net> with reversed byte order
8948 * support/regression/tests/rotate.c: added (ds390 skips some tests)
8950 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8952 * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
8954 * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
8955 * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
8957 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8959 * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
8961 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8963 * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
8965 (setFromConditionArgs): friendly operand parser for peephole rules,
8966 (operandBaseName, operandsNotRelated): new peephole condition
8967 "operandsNotRelated" -- similar to "operandsNotSame", but takes
8968 architecture specific register naming into account, handles n-way
8969 comparisons, and supports quoted literals
8970 * src/mcs51/peeph.def: restored rule 177.d with an extra condition
8972 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8974 * src/mcs51/peeph.def: fixed bug #1076940
8976 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
8978 * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
8980 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8982 Adding support for replacing ljmps with sjmps in jumptables
8983 generated for switch statements. For now you need to set the
8984 environment variable SDCC_SJMP_JUMPTABLE to enable this.
8985 Now 4 algorithms for mcs51 jumptable generation are used:
8986 ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
8987 addresses loaded pc-relative for up to 112 cases and stack-pushing
8988 target addresses loaded with offset from dptr for up to 256 cases.
8990 * src/SDCCpeeph.c: added peephole conditional labelJTInRange
8991 * src/mcs51/main.c: adapted constants for switch table generation
8992 * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
8994 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
8996 * device/lib/printf_large.c (_print_format): fixed bug 1073386
8997 * support/regression/tests/bug1057979.c: added test for bug 1073386
8999 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9001 * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9004 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9006 * src/pic16/device.h,
9007 * src/pic16/genarith.c,
9010 * src/pic16/pcode.c: applied patches #1068154 and #1070213
9012 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
9014 Large cummulative patch for pic16 port.
9015 * device/lib/pic16/gstack.h: NEW, user can specify its own handler
9016 to call when a stack overflow occurs,
9017 * (malloc.h): added CVS Id tag,
9018 * (pic18f{242,252,442,452}.h): added T0CONbits structure and
9020 * added libc directory. The current version of LibC contains string
9021 functions, ctype functions and macros and some functions of the
9022 stdlib set (like malloc/free/atof/atoi etc...). All functions are to
9023 be extensively tested in the future. Standard disclaimer here.
9024 Library is not automatically build yet. But one can build it by
9025 invoking 'make' inside the libc directory.
9026 * added ADC library under libio. Preliminary version yet.
9028 * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
9029 * src/pic16/gen.c (aopForRemat): asmop size is filled by
9030 aopForRemat() now and not by pic16_aopOp(),
9031 * (pic16_popGetTempReg): removed warning messgae when allocating
9032 temporary registers, its a buggy feature and will be removed,
9033 * (pic16_popGet): set register instance field in AOP_CRY,
9034 * (pic16_outBitC): fixed for results in size greater than 1,
9035 * (genUminusFloat): fixed for pic16, ported code from mcs51,
9036 * (pic16_storeForReturn): optimized return of 0,
9037 * (genCmp): experimental code for new genCmp which uses PIC18's
9038 special compare&skip instructions. Initial tests fail some times
9039 with variables grater than 1 byte in size, so new code is disabled,
9040 * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9042 * (genCast): began a fix to optimize the casting of a bit to another
9043 bit, now assigning a bitfield to another bitfield will fail, sorry,
9044 * src/pic16/main.c: disabled the use of lr-support feature,
9045 * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9046 * added some function prototypes, added function _debugf prototype,
9047 * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9048 bits with offset (case PO_GPR_BIT),
9049 * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9051 * (isBankInstruction): modified to return 0 for no banking instruction,
9052 and 1 for banking instruction,
9053 * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9054 caused stop processing pCodes after a inline assembly block,
9055 * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9056 * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9057 registers when it shouldn't,
9058 * src/pic16/ralloc.c (allocReg): add preliminary support for
9059 supporting a limited set of temporary registers,
9061 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9063 * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9064 genDataPointerSet): ensure assignments always copy in MSB to LSB
9066 (loadRegFromAop): recognize CLRH optimization,
9067 (genFunction): optimize RECEIVE iCodes in reentrant functions
9069 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9071 * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9072 --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9074 * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9075 * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9076 contiguous with data
9078 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9080 * device/lib/_gptrget.c (_gptrget),
9081 * device/lib/_gptrgetc.c (_gptrgetc),
9082 * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9083 instead of sjmp to ret
9084 * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9085 by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9087 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9089 * .version: bumped version to 2.4.7
9090 * device/lib/_gptrget.c (_gptrget): is now _naked
9091 * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9092 * device/lib/_gptrput.c (_gptrput): is now _naked
9093 * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9094 (createFunction): fixed xstack
9095 * src/SDCCglue.c (emitMaps): set allocation required for bit area
9096 * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9098 (geniCodeCritical): store original interrupt state in an iTemp bit
9099 var unless stack-auto
9100 * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9101 * src/SDCCmain.c (setIncludePath): added include/target to search path
9102 * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9103 * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9105 (processFuncArgs): put bit vars in bit area
9106 * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9107 unsaveRBank): fixed xstack,
9108 (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9109 (genFunction, genEndFunction): fixed xstack,
9110 (genAssign): optimization don't walk backwards through mem
9111 * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9112 * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9113 * support/regression/Makefile: also make library (for stack-auto) when
9114 making "all" and added "test-mcs51-xstack-auto"
9115 * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9116 * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9117 * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9118 * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9119 * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9120 make-library by MAKE_LIBRARY
9121 * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9122 regression tests for xstack
9123 * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9124 * support/regression/tests/critical.c: test for critical on mcs51
9126 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9128 * support/regression/ports/ucz80/spec.mk: use include and lib files from
9129 built version of sdcc instead of installed version
9131 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9133 * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9134 * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9136 * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9137 * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9138 WARNING: remove device/lib/build/z80/printf.o by hand when
9139 updating from previous build!
9140 * device/lib/z80/printf.c: updated comment
9141 * support/regression/tests/bug1057979.c: test all ports now
9142 * support/regression/tests/bug1065458.c: file added
9144 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9146 * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9147 *_start and *_end symbols for static functions
9149 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9151 * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9152 and search crt0.o in all library paths,
9153 (setIncludePath): proper handling of --nostdinc,
9154 (setLibPath): proper handling of --nostdlib
9155 * support/regression/Makefile,
9156 * support/regression/ports/ds390/spec.mk,
9157 * support/regression/ports/gbz80/spec.mk,
9158 * support/regression/ports/hc08/spec.mk,
9159 * support/regression/ports/mcs51/spec.mk,
9160 * support/regression/ports/mcs51-large/spec.mk,
9161 * support/regression/ports/mcs51-stack-auto/spec.mk,
9162 * support/regression/ports/z80/spec.mk: use include and lib files from
9163 built version of sdcc instead of installed version
9164 * doc/sdccman.lyx: fixed typo in --nostdinc
9166 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9171 * src/pic/gen.c : added support to generate code for struct bit fields.
9173 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9175 * as/xa51/xa_version.h,
9176 * device/include/errno.h,
9177 * device/include/regc515c.h,
9178 * device/lib/_itoa.c,
9179 * device/lib/_ltoa.c,
9180 * device/lib/ser_ir_cts_rts.c,
9181 * sim/ucsim/xa.src/glob.cc,
9182 * sim/ucsim/xa.src/inst_gen.cc,
9183 * sim/ucsim/xa.src/xa_bit.cc,
9184 * sim/ucsim/xa.src/xa_sfr.cc,
9185 * sim/ucsim/z80.src/inst_dd.cc,
9186 * sim/ucsim/z80.src/inst_fdcb.cc,
9187 * support/scripts/keil2sdcc.pl,
9188 * src/pic16/pic16.dsp,
9189 * src/pic16/pic16a.dsp: corrected cvs line endings
9190 * device/lib/printf_large.c: fixed bug 1057979
9191 * src/pic16/gen.c: fixed non-C standard code
9192 * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9193 * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9194 * support/regression/ports/mcs51/support.c: reload T1 asap
9195 * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9196 pdata use and clear idata startup behaviour
9197 * support/regression/tests/bug1057979.c: added
9199 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9201 * device/examples/ds390/ow390/ad26.h,
9202 * device/examples/ds390/ow390/cnt1d.h,
9203 * device/examples/ds390/ow390/crcutil.c,
9204 * device/examples/ds390/ow390/ownet.h,
9205 * device/examples/ds390/ow390/owsesu.c,
9206 * device/examples/ds390/ow390/swt12.h,
9207 * device/examples/ds390/ow390/swtoper.c,
9208 * device/examples/ds390/ow390/temp10.h,
9209 * device/examples/ds390/ow390/thermodl.c,
9210 * device/examples/ds390/tinitalk/tinitalk.dsp,
9211 * device/examples/ds390/tinitalk/tinitalk.dsw,
9212 * device/examples/mcs51/clock/hw.h,
9213 * device/examples/mcs51/simple2/go.bat,
9214 * device/examples/serialcomm/windows/serial.h,
9215 * device/examples/xa51/dummy.c,
9216 * device/examples/xa51/hello.c,
9217 * device/include/80c51xa.h,
9218 * device/include/at89x051.h: corrected cvs line endings
9220 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9222 * src/pic16/main.c (options): added command line --gstack, to trace
9223 stack over/under flows,
9224 * added pragma 'wparam' to allow passing first byte of function
9225 parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9226 * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9227 call to __gstack_test function and sets up the symbol as extern,
9228 * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9229 * popaop): added call to pic16_testStackOverflow,
9230 * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9232 * (genCall, genPcall): now all parameters are passed via stack
9233 except in functions that are pass to wparam pragma in which WREG is
9235 * (genPcall): REENTRANT flag is checked to see if variable prototype
9236 contains reentrant keyword, don't call a non-reentrant function, via
9237 a reentrant function pointer or vice versa, functions are never
9239 * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9241 * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9242 SIGSEGV when accessing a NULL register stucture,
9243 * (pic16_printGPointerType): modified to handle UPPER modifier for
9244 function initializers, changed prototype of function to simpler one,
9245 * (pic16_printIvalFuncPtr): check to see if function is already
9246 added in externs list,
9247 * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9248 optimized a move from W to SFR with a move to the same register
9250 * device/lib/pic16/debug: NEW directory, contains debug features
9251 which are enabled when linking with libdebug.lib, currently command
9252 line option --gstack enables stack pointer tracing for over/under
9253 flow, corresponding sources are in debug/gstack
9255 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9257 * doc/sdccman.lyx: updated SDCC version,
9258 * (PIC16 port): update list of command line options,
9259 * src/pic16/device.h (structure pic16_options_t): added field gstack
9260 to enable stack overflow tracing on push/pops,
9261 * src/pic16/device.c (statistics structure): added statistics
9263 * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9264 pic16_dump_int_registers): increase statistics counters for each
9265 * variable which is encountered
9266 * (pic16_dump_usection): emit each .udata variable to its own udata
9268 * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9269 when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9270 parameters via stack, otherwise use old scheme,
9271 * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9272 assembler output file,
9273 * src/pic16/main.c: added command line options --gstack to enable
9274 push/pop tracing for stack overflow,
9275 * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9276 instructions): added size of each instruction,
9277 * (pic16_countInstruction): estimate size of instructions in
9278 the_pFile list, inline assembly blocks are not counted,
9279 * (pic16_FixRegisterBanking): trace previous register usage, when
9280 banksel optimizations is greater than 0, don't emit a redudant
9283 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9285 * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9286 * src/pic16/ralloc.c : applied same fix for pic16.
9287 * src/pic/gen.c : tidied it up a little.
9289 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9291 * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9292 thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9294 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9296 * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9298 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9300 * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9301 non-reentrant function __modsint in the interrupt function (thus
9302 corrupting math operations during serial I/O)
9303 * device/lib/ser_ir.c: as above, changed buffersize
9304 * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9306 * doc/Makefile: added option -t for rsync
9308 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9310 * src/SDCCast.h (struct ast),
9311 * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9313 2004-10-20 Borut Razem <borut.razem AT siol.net>
9315 * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9318 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9320 * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9322 * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9323 support functions to replace long sequences of MOVFF's from access
9324 bank registers to stack and vice versa,
9325 * src/pic16/device.h: added new field opt_flags, where optimization
9326 flags can be set to enable certain features,
9327 * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9328 * pBlock, (genFunction, genEndFunction): surroung loop for
9329 saving/loading used registers in stack with PC_INFO pCodes,
9330 INF_LREGS. Code in between can then be optimized by pCode optimizer
9331 to support function calls,
9332 * (genDataPointerSet): fixed bug which loaded float fields in
9333 structures with corrupt data,
9334 * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9335 in a standard way debug info on stderr. Feature used for developing
9337 * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9338 obsolete chunks of code,
9339 * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9340 * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9341 * pic16/src/pcode.c (pic16_newpCodeInfo,
9342 * (pic16_newpCodeOpLocalRegs),
9343 * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9345 * (pic16_pCodeConstString): printing of the initial value of a
9346 symbol as a comment is inhibited since parsing was already done by
9347 copyStr and output is corrupt,
9348 * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9350 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9352 * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9354 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9356 * as/mcs51/lkarea.c: removed old K&R style,
9357 (lnksect): changed check on boundary error,
9358 (lnksect2): changed check on boundary error,
9359 (lnksect2): extend XSTK to end of page if size = 1
9360 * as/mcs51/lkmain.c: removed old K&R style,
9361 (Areas51): create l_IRAM symbol
9362 * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9363 * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9364 model-mcs51-stack-auto, added model-mcs51-xstack-auto
9365 * device/lib/_mullong.c: added version to be compiled with xstack
9366 * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9367 * device/lib/mcs51/crtxclear.asm: clear pdata as well
9368 * device/lib/mcs51/crtxstack.asm: fixed comment
9369 * src/SDCCglue.c: maxInterrupts defaults to 0,
9370 (emitMaps): added pdata,
9371 (createInterruptVect): (re)moved default,
9372 (glue): added pdata,
9373 (glue): moved __start__xstack to XSTK with default size 1
9374 * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9375 and options.float_rent when options.stackAuto is set,
9376 (linkEdit): only write XDATA_NAME if provided on command line
9378 * src/SDCCmem.c: added pdata
9379 * src/port.h: added pdata_name to PORT
9380 * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9381 (saveRegisters, unsaveRegisters): removed usage of B,
9382 (genMinus): fixed accumulator clash,
9383 (genJumpTab): added comment, this needs another look
9384 * src/mcs51/gen.c: added check for "B in use" paranoia,
9385 added pushB() and popB()
9386 * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9395 * src/z80/main.c: (reset_regparms) made void parameter explicit and
9396 added PSEG (PAG,XDATA) or NULL to port specifier
9397 * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9398 * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9399 (_mcs51_genInitStartup): removed __start__xstack equ,
9400 (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9401 * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9402 * src/z80/gen.c (_rleAppend): fixed warnings
9403 * support/regression/tests/zeropad.c: added pdata test
9404 * .version: bumped to 2.4.6
9406 2004-10-17 Borut Razem <borut.razem AT siol.net>
9408 * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9409 as a part of nightly build
9411 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9413 * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9414 WREG holds the first byte function parameters,
9415 * (aopForSym): take special case for symbols which are in FARSPACE
9416 but in CODESPACE too,
9417 * (assignResultValue): modified to take into account _G.useWreg,
9418 * (genCall): don't use wreg for parameter passing when function is
9419 declared as reentrant, too, added optimization INCF to stack
9420 pointer when stack parameter count is 1,
9421 * (genFunction, genEndFunction): refurnished and fixed to not using
9422 wreg for passing parameters when function has varargs or is
9423 reentrant, fixed bug with symbol name compare for generating
9424 functions in absolute address,
9425 * (pic16_storeForReturn): refurnished,
9426 * (genCmp): began writing a new version of the function, not ready
9427 yet, therefore it is disabled,
9428 * (genAssign): do not read code memory when assigning a function to
9430 * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9431 array of characters, not pointer,
9432 * (pic16initialComments): in debug mode emit an .ident directive for
9434 * (_process_pragma): emit a new warning type (internal to pic16)
9435 when setting stack to default length, emit a similar warning when
9436 placing a function at absolute address and address is not word aligned
9437 * (_pic16_parseOptions): added 'return TRUE' statement,
9438 * (_pic16_linkEdit): if compiling a source, then add the source's
9439 file object, first in the list of objects to link,
9441 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9443 * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9444 * src/pic/main.c : removed VC warning.
9445 * src/pic/gen.c : changed comment.
9447 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9449 * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9450 reference to a deprecated symbol _GPTRREG was causing failure to
9451 link. Thanks G. M. Gallant for the info.
9453 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9455 * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9456 comments for Bugs item #954788.
9458 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9460 * src/pic16/device.c (pic16_dump_gsection,
9461 * pic16_groupRegistersInSection): handle symbols declared to be in
9462 access bank differently,
9463 * src/pic16/gen.c (struct _G): added field resDirect,
9464 * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9465 send values read from stack directly to result and don't allocate
9467 * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9469 * (pic16_sameRegsOfs): NEW,
9470 * (freeAsmop): if _G.resDirect is set then do not mark registers as
9471 free because they were not allocated from temporary pool,
9472 * pic16_popRegFromString): workaround to fix a problem with
9473 allocating variables twice or never,
9474 * (genGenPointerGet): using PRODL instead of FSR0H,
9475 * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9477 * (genAssign): take advantage of the _G.resDirect flag,
9478 * (genCast): around line 11844, use mov2f instead of directly
9479 MOVFF'ing between operands to account for literal values,
9480 * src/pic16/genutils.c: some new debug functions for gpsim have been
9482 * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9483 float with integer part only,
9484 * src/pic16/main.c (_process_pragma): handle pragma udata access to
9485 place variables in access bank
9486 * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9487 updated sources to reflect recent changes in gen.c
9489 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9491 * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9492 sources that searched for headers in installation path, now the
9493 device/include/pic16 is used,
9494 * src/pic16/glue.c (pic16glue),
9495 * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9496 .line directives if not in debug mode, this suppresses assembler's
9497 warnings for ignored directives
9499 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9501 * src/port.h: made reset_regparms prototype void parameter explicit.
9502 * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9503 * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9504 * doc/sdccman.lyx: documented warning disabling and how to use
9505 printf_large to make it print floats.
9506 * device/include/stdbool.h: NEW
9507 * device/lib/_atof.c,
9508 * device/lib/_divuint.c,
9509 * device/lib/_divulong.c,
9510 * device/lib/expf.c,
9511 * device/lib/printf_large.c,
9512 * device/lib/sincosf.c,
9513 * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9514 * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9515 a completely reentrant lib.
9517 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9519 * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9520 * device/include/pic16/stdio.h: fixed bug with colon
9522 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9524 * device/include/pic16/stdio.h,
9525 * device/include/pic16/stdlib.h,
9526 * device/include/pic16/math.h: NEW
9527 * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9528 declared as _naked to reduce overhead
9529 * device/lib/Makefile.in (target port-specific-objects-pic16):
9530 changed * to *.* so to ignore the CVS directory,
9531 * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9532 stacked variables back in stack,
9533 * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9536 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9538 * .version: bumped version number to 2.4.5
9539 * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9540 * support/Util/SDCCerr.c (messages structure): added entry for
9543 Large cumulative patch for pic16 port and libraries.
9544 * device/include/pic16/sdcc-lib.h,
9545 * device/include/pic16/stdarg.h,
9546 * device/include/asm/pic16/features.h,
9547 * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9548 * device/include/pic16/float.h: changes reentrant keyword with
9549 _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9550 * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9551 updated target build-libraries to include objects from gptr,
9552 * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9553 _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9554 * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9555 all function headings,
9556 * src/SDCCmain.c: added global parameter userIncDirsSet,
9557 * (parseCmdLine): when option -I is encountered add directory to
9559 * src/version.awk: added space between control and long,
9560 * src/pic16/NOTES: added some notes for the port,
9561 * src/pic16/gen.c: added prototype for mov2fp function,
9562 * (fReturnpic16[]): properly named return value registers,
9563 * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9564 * (aopForSym): added code to handle symbols with onStack flag set,
9565 symbols onStack are allocated PTRSIZE bytes,
9566 * (aopFreeAsmop): handles special case where asmops are stack objects,
9567 * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9568 * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9569 added argument lock to trace flaws in allocating temporary registers
9570 when developing port,
9571 * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9572 * (pic16_popRegFromString): reenabled allocating a direct register
9574 * (assignResultValue): various beautifications,
9575 * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9576 referenced function argument,
9577 * (genIpush): reenabled to allow stacked arguments, handles only
9578 ic->parmPush iCodes,
9579 * (genCall, genPcall): major changes to allow for variable argument
9580 functions, fixed a bug with falsely restoring stack pointer after
9581 returning from call,
9582 * (genFunction): pending code for critical function,
9583 * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9584 * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9585 * (genNearPointerGet): fixed bug with indirect reading, was always
9587 * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9589 * (genAddrOf): rewrote code to take address of a stacked function parameter
9590 * (genCast): fixed casting to generic pointer type,
9591 * src/pic16/gen.h: added AOP_STA,
9592 * (struct asmop): added field stk,
9593 * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9594 * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9595 * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9596 * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9597 * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9598 * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9600 * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9602 * (pic16_port structure): generic pointer size is set to 3,
9603 * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9604 * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9606 * src/pic16/ralloc.c (allocReg): prevent allocating register when
9607 operand is an iTemp,
9609 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9611 * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9612 * debugger/mcs51/simi.c: addapt new syntax of s51
9614 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9616 * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9617 * src/pic16/pcode.c: commented out some calls to free() in order to
9620 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9623 * src/SDCCicode.c (isiCodeInFunctionCall),
9624 * src/avr/ralloc.c (selectSpil),
9625 * src/pic/ralloc.c (selectSpil),
9626 * src/pic16/ralloc.c (selectSpil),
9627 * src/ds390/ralloc.c (selectSpil),
9628 * src/hc08/ralloc.c (selectSpil),
9629 * src/xa51/ralloc.c (selectSpil),
9630 * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9631 stack in the middle of a function call sequence (fixes bug #1020268)
9632 * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9633 costs associated with the minimum switch case.
9635 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9637 * src/SDCC.lex: fixed bug #1030549
9639 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9641 * src/SDCCcse.h (struct cseDef),
9642 * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9643 over a function call if the CSE is derived from a symbol whose
9644 address has been taken (fixes bug #1029883)
9645 * support/regression/tests/bug-1029883: a new regression test for
9648 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9650 * src/hc08/gen.c (emitinline): fixed bug #1029778
9651 * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9652 to a cast object is no longer a syntax error ("fixes" bug #1030006,
9653 and starts toward RFE #905167)
9655 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9657 * src/pic16/gen.c (mov2f): New function to move an operand to
9658 another without considering if it is a literal or a register,
9659 * (pic16_sameRegs): don't check if they are both AOP_REG,
9660 * (AccRsh): removed andmask=0 lines,
9661 * (genLeftShift): duplicated to be improved in future versions,
9662 * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9663 * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9664 in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9665 * (pic16initMnemonics): added initialization for POC_INFSNZW,
9666 * (insertBankSwitch): fixed inserting banksel directives algorithm
9667 for instructions that follow a skip instruction, this fixes a report
9668 for broken subtraction code generation,
9669 * src/pic16/ralloc.c (deassignLRs): do not free register if current
9670 iCode is a left op, just in case result and right share the same
9673 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9676 * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9678 * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9679 * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9680 on 2004-09-12; it was buggy
9682 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9684 * src/SDCCsymt.h: removed RESULT_CHECK
9689 * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9691 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9693 * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9694 * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9695 configuration values no more rejected by compiler, they are assigned
9696 to configuration registers with a warning message instead,
9697 * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9698 the for-loop so last conf register is emitted too,
9699 * (_pic16_initPaths): link library libsdcc.lib by default,
9700 * (_hasNativeMulFor): modified test for multiplication according to
9701 Raphael Neider's remarks. Integer multiplication is also done with
9703 * device/include/pic16/pic18fregs.h: corrected type error in while
9704 testing and including 18f6720 header file
9706 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9708 * src/pic16/device.h (pic16_options): removed field use_crt,
9709 * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9710 until an optimization to handle single bits is added,
9711 * (pic16_loadFSR0): moved before genUnpackBits,
9712 * (genAnd): some white lines removed,
9713 * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9714 leave_reset flags in pic16_options when using crt modules,
9716 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9718 * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9719 for bugs 898889 & 979599. Also used some safer print instructions.
9721 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9723 * src/pic16/device.h (pic16_options_t): added field use_crt,
9725 * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9726 catch a probable future bug,
9727 * src/pic16/gen.c: aopIdx function commented out,
9728 * (genAssign): commented out old code which used aopIdx,
9729 * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9730 code, added if conditionals to take into account the --use-crt
9731 command line options,
9732 * src/pic16/main.c (pic16_optionsTable): added new command line
9733 options, --use-crt= and --no-crt,
9734 * (_pic16_linkEdit): now the proper crt object is added in the
9735 linker command line except than when --no-crt is specified,
9736 * src/pic16/pcode.c,
9737 * src/pic16/pcode.h: added some structures and functions for a new
9738 optimization scheme to compansate for instruction overhead between
9739 same iCodes, this scheme is currently under development and is not
9741 * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9743 * device/lib/pic16/startup/crt0i.c,
9744 * device/lib/pic16/startup/crt0iz.c: added global char variable
9745 __uflags to force the generation of an idata section
9747 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9750 * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9751 * doc/sdccman.lyx: updated sdcc version to 2.4.4
9753 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9755 * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9756 Frieder) and clarified the default code optimization mode
9758 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9760 * src/SDCC.lex (doPragma, process_pragma),
9761 * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9762 "opt_code_size", and "opt_code_balanced"
9763 * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9764 regrouped options by category, added support for category headers
9765 * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9766 and "--opt-code-size"
9767 * doc/sdccman.lyx: documented these new options and pragmas
9768 * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9769 preference into account
9771 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9773 * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9774 geniCodePreDec): Fixed bug 904237 by generating a warning
9776 * src/SDCCerr.c: added warning W_SIZEOF_VOID
9778 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9780 * src/pic/device.c : When no max ram set validate full memory range.
9782 * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9784 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9786 * device/lib/_gptrget.c,
9787 * device/lib/_gptrput.c: updated comment
9788 * device/lib/calloc.c,
9789 * device/lib/free.c,
9790 * device/lib/malloc.c,
9791 * device/lib/realloc.c: added LGPL, made them reentrant-safe
9792 * src/SDCCcse.c (cseBBlock),
9793 * src/SDCCicode.c (printOperand, geniCodeArray),
9794 * src/SDCCicode.h (struct operand): fixed bug 868103
9795 * support/regression/tests/bug-868103.c: added
9796 * src/SDCCast.c (searchLitOp),
9797 * src/SDCCcse.h (struct cseDef),
9798 * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9799 * src/SDCCicode.h (struct operand),
9800 * src/SDCCsymt.h (struct sym_link),
9801 * src/avr/gen.c (hasInc),
9802 * src/ds390/gen.c (hasInc),
9803 * src/hc08/gen.c (genPlusIncr, hasInc),
9804 * src/mcs51/gen.c (hasInc),
9805 * src/pic16/glue.c (pic16_printIvalChar),
9806 * src/pic16/ralloc.c (regWithIdx),
9807 * src/xa51/gen.c (hasInc) : removed warnings
9808 * src/SDCCast.c (createBlock): added comment ???
9809 * src/hc08/ralloc.c: updated comments
9811 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9813 * doc/sdccman.lyx: updated section on switch statements, added
9814 section about semaphore locking
9815 * doc/Makefile: added option -info for latex2html
9816 * device/lib/_gptrget.c,
9817 * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9819 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9823 * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9824 maxram is less than 0x100.
9826 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9828 * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9830 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9841 * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9842 a jump table is the best form for a switch statement, including
9843 automatic insertion of missing cases to make the case range
9844 continuous. Developed in collaboration with Frieder Ferlemann.
9846 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9848 * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9849 accumulator result if it needs sign extension
9851 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9853 * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
9855 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9857 * device/lib/gbz80/printf.c,
9858 * device/lib/z80/printf.c: removed define for NULL
9860 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
9862 * as/xa51/xa_link.c,
9863 * device/examples/ds390/ow390/ad26.c,
9864 * device/examples/ds390/ow390/cnt1d.c,
9865 * device/examples/ds390/ow390/counter.c,
9866 * device/examples/ds390/ow390/ds2480.h,
9867 * device/examples/ds390/ow390/ds2480ut.c,
9868 * device/examples/ds390/ow390/findtype.c,
9869 * device/examples/ds390/ow390/gethumd.c,
9870 * device/examples/ds390/ow390/owllu.c,
9871 * device/examples/ds390/ow390/ownetu.c,
9872 * device/examples/ds390/ow390/swt12.c,
9873 * device/examples/ds390/ow390/swtloop.c,
9874 * device/examples/ds390/ow390/temp.c,
9875 * device/examples/ds390/ow390/temp10.c,
9876 * device/examples/ds390/ow390/thermo21.c,
9877 * device/examples/ds390/ow390/tinilnk.c,
9878 * device/examples/ds390/ow390/tstfind.c,
9879 * device/examples/serialcomm/windows/serial.cpp,
9880 * device/examples/serialcomm/windows/test_serialcomm.cpp,
9881 * device/include/reg51.h: fixed line endings for cvs
9883 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9885 * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
9886 packRegsForAccUse, packRegisters): new accumulator register
9888 * support/regression/ports/hc08/support.c (_putchar): suppress
9889 warning of unused variable
9890 * src/SDCCicode.c: added SWAP entry to codeTable
9892 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
9894 * device/lib/sprintf.c: forgot to add this file before previous commit
9896 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
9898 * src/pic16/gen.c (genPackBits): added operand right in function
9899 parameters, load result directly if p_type is POINTER (that is
9900 called by genNearPointerSet)
9901 * (genUnPackBits): added operand left in function parameters,
9902 * (genNearPointerGet, genNearPointerSet): prevent the loading of
9903 FSR0 if accessing bitfields,
9905 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
9907 * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
9908 _print_format; updated printf, sprintf, vsprintf
9909 * device/include/asm/default/features.h: corrected comment/define
9910 * device/lib/Makefile.in: added sprintf.c
9911 * device/lib/libsdcc.lib: added sprintf module
9912 * device/lib/printf_large.c,
9913 * device/lib/vprintf.c,
9914 * device/lib/sprintf.c: totally refactored printf_large and vprintf
9916 * support/regression/Makefile: changed ALL_PORTS into a usefull default
9917 * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
9918 * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
9920 * support/regression/tests/zeropad.c: define idata as data for hc08
9922 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9924 * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
9925 * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
9926 labels are referenced at least once (even if a reference is not found)
9927 * src/hc08/gen.c (emitcode): set isComment flag for comments
9928 * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
9929 loads), rules 6a..6b (optimize jumps to return)
9931 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9933 * device/lib/acosf.c (acosf),
9934 * device/lib/asinf.c (asinf),
9935 * device/lib/atanf.c (atanf),
9936 * device/lib/ceilf.c (ceilf),
9937 * device/lib/cosf.c (cosf),
9938 * device/lib/coshf.c (coshf),
9939 * device/lib/cotf.c (cotf),
9940 * device/lib/fabsf.c (fabsf),
9941 * device/lib/floorf.c (floorf),
9942 * device/lib/log10f.c (log10f),
9943 * device/lib/logf.c (logf),
9944 * device/lib/sinf.c (sinf),
9945 * device/lib/sinhf.c (sinhf),
9946 * device/lib/sqrtf.c (sqrtf),
9947 * device/lib/tanf.c (tanf),
9948 * device/lib/tanhf.c (tanhf),
9949 * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
9950 replaced all instances of "reentrant" in the library functions
9951 defined in math.h with this macro.
9952 * support/regression/tests/float_trans.c: reenabled test for hc08
9954 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
9956 * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
9959 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9961 * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
9962 * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
9963 multi-byte volatile operands are used
9964 * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
9965 * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
9966 initialization to area GSINIT0 so that it would always precede
9967 any static initializers in GSINIT
9968 * support/regression/tests/zeropad.c: fixed idata define for hc08
9969 * support/regression/tests/bug-927659.c,
9970 * support/regression/tests/float_trans.c: disabled tests for hc08
9971 pending missing library routines
9972 * .version: increased version number to 2.4.4 - hc08 port now passes
9976 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
9978 * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
9979 * Makefile.common.in,
9981 * as/hc08/Makefile.in,
9982 * as/mcs51/Makefile.in,
9983 * as/z80/Makefile.in,
9984 * debugger/mcs51/Makefile.in,
9985 * device/include/Makefile.in,
9986 * device/lib/Makefile.in,
9989 * link/z80/Makefile.in,
9990 * packihx/Makefile.in,
9991 * sim/ucsim/main_in.mk,
9992 * sim/ucsim/avr.src/Makefile.in,
9993 * sim/ucsim/doc/Makefile.in,
9994 * sim/ucsim/gui.src/serio.src/Makefile.in,
9995 * sim/ucsim/hc08.src/Makefile.in,
9996 * sim/ucsim/s51.src/Makefile.in,
9997 * sim/ucsim/xa.src/Makefile.in,
9998 * sim/ucsim/z80.src/Makefile.in,
10000 * support/cpp2/Makefile.in,
10001 * support/librarian/Makefile,
10002 * support/makebin/Makefile: added DESTDIR to the install path proposed
10003 by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
10004 * doc/sdccman.lyx: added DESTDIR documentation
10006 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
10008 * src/pic16/gen.c (genFunction, genEndFunction): fixed return
10009 instruction for interrupt handlers, use fast returns when returning
10010 from high priority interrupts
10012 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10014 * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
10016 * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
10017 * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
10018 bugs, ported much of Bernhard's code from mcs51
10019 * src/mcs51/gen.c (genSend),
10020 * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
10021 than one when calling a reentrant function
10022 * device/lib/_mullong.c: defined an alternate struct layout for big
10023 endian ports (hc08)
10025 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10027 * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
10030 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10032 * src/SDCCsymt.c (processFuncArgs): make sure parameter types
10033 are sane and complete before asking the port its prefered parameter
10034 passing method (fixes bug #1017633)
10035 * device/lib/hc08/_ret.c: added "data" storage class to _ret2
10038 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10040 * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10041 problem in bitfields >= 8 bits.
10043 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10045 * src/SDCCsymt.c: undid changes that were not meant to be committed
10047 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10049 * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10051 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10053 * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10054 copied and wrong bit got inverted
10056 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10058 * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10059 genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10060 * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10061 genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10062 * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10063 assignments to bitfields at known addresses
10064 * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10065 reads from bitfields at known addresses
10066 * src/hc08/ralloc.c (packRegisters),
10067 * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10068 genhc08Code): optimize pointer get values used as conditionals
10069 * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10072 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10074 * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10075 genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10076 * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10079 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10081 * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10083 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10085 * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10088 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10090 * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10092 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10094 * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10097 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10099 * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10101 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10103 * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10104 cases use more compact code.
10106 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10108 * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10110 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10112 * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10114 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10117 * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10118 parameter of changePointer() from symbol* to sym_link*
10119 * src/SDCCast.c (decorateType): call changePointer() for CAST op
10120 * src/SDCCsymt.c (compareType): void* type is castable to other
10121 pointers, but not necesarily an exact match.
10122 * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10123 is no longer blindly treated as an exact match.
10124 * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10126 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10128 * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10130 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10134 * src/pic/ralloc.h,
10135 * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10137 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10139 * src/pic/device.c,
10140 * src/pic/device.h,
10141 * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10143 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10145 * src/mcs51/gen.c (emitcode): fixed bug #992819
10147 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10149 * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10150 there's no need to make it worse
10152 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10154 * src/mcs51/ralloc.c (deassignLR),
10155 * src/ds390/ralloc.c (deassignLR),
10156 * src/hc08/ralloc.c (deassignLR),
10157 * src/z80/ralloc.c (deassignLR),
10158 * src/pic/ralloc.c (deassignLR),
10159 * src/pic16/ralloc.c (deassignLR),
10160 * src/avr/ralloc.c (deassignLR),
10161 * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10162 rlivePoint): fixed another part of bug #971834
10164 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10166 * src/z80/main.c: enabled "critical" keyword
10167 * src/z80/mappings.i,
10168 * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10169 functions (fixes bug #979646)
10170 * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10172 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10174 * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10177 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10179 * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10180 doesn't disable too much optimizations
10182 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10184 * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10186 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10188 * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10190 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10192 * src/pic/gen.c tidied up tabs
10193 * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10194 * src/pic/main.c tidied up tabs
10195 * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10196 * src/pic/pcoderegs.c tidied up tabs
10197 * src/pic/ralloc.c tidied up tabs
10199 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10201 * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10202 to S_FIXED for pic16 port and when symbol is not in level 0,
10203 allocate for S_REGISTER storage class and pic16 port, too,
10204 * src/pic16/device.h: prototype for checkSym,
10205 * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10206 * (pic16_assignConfigWordValue): test the value and the mask to
10207 validate that the value is suitable for the configuration word,
10208 * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10209 collect extern declared symbols, don't emit symbol twice, check
10210 first if symbol is in publics set first,
10211 * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10212 * added command line '--fstack' which enables an experimental
10213 feature for stack access, too buggy to be used yet...
10214 * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10215 * (pic16_allocDirReg): when register has storage class S_REGISTER
10216 allocate in pic16_dynAccessRegs,
10217 * device/include/pic16/pic18f????.h: modified configuration word
10218 naming convention, words started as CONFIG0H but should be CONFIG1H
10220 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10222 * device/include/mcs51reg.h: fixed bug 970993
10224 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10226 * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10227 * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10228 * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10229 * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10230 * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10231 * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10232 error/warning numbers,
10233 added function setWarningDisabled()
10234 * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10235 * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10236 _memcmp.c _memmove.c calloc.c realloc.c free.c
10237 * support/regression/tests/malloc.c: added tests for new functionality
10238 * support/regression/tests/zeropad.c: added tests for truncated initializers
10239 and initialized char arrays starting with '\x0'
10240 * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10242 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10244 * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10246 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10248 * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10249 * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10250 peephole 177.e. Thanks to anonymous
10252 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10254 * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10255 function isn't used in the source but referenced as a
10256 variable initializer then declare it as extern in .asm file
10258 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10260 * .version: increased version number to 2.4.3
10262 Adding version extension according to ChangeLog CVS revision
10263 * src/Makefile.in (target all): added dependency 'version.h'
10264 * (rule version.h): added rule to create version.h from ChangeLog,
10265 * (rule dep): added dependency version.h,
10266 * src/version.awk: AWK script to create version.h
10267 * src/SDCCdwarf2.c (dwWriteModule),
10268 * src/SDCCglue.c (initialComments),
10269 * src/SDCCmain.c (printVersionInfo): modified to write after
10270 version string the version extension number,
10271 * src/SDCCutil.c: included "version.h"
10272 * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10274 * src/SDCCutil.h: added prototype for getBuildNumber
10276 * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10277 includeDirsSet, too,
10278 * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10279 const char [] is found in function prototype...
10281 * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10282 moving to WREG with source is already in WREG,
10283 * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10284 * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10285 * (aopForSym): stack'ed symbols are partially supported, added
10286 if-clause to support symbols in FARSPACE,
10287 * (sameRegs): added test for AOP_ACC to see if registers are same,
10288 * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10289 * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10290 * (pic16_popRegFromString): will not allocate a new register if it
10291 doesn't find one by name, bug may have introduced...
10292 * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10293 * (genIpush): revived to use pic16 port's stack,
10294 * (genAddrOf): added incomplete case for stack'ed operand,
10295 * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10296 * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10297 can handle multibyte operands,
10298 * src/pic16/glue.c (pic16_printIval*): some debug info added,
10299 * (pic16initialComments): added message for MPLAB compatibility
10301 * src/pic16/main.h: prototype for pic16_mplab_comp,
10302 * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10303 which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10304 * (_pic16_linkEdit): NEW, handles link stage, transferred here
10305 because of increased complexity of procedure,
10306 * (_process_pragma): stack pragma changed to format 'stack pos len',
10307 emit symbol '_stack_end' to conform with gplink,
10308 * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10309 to search for register,
10310 * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10312 * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10313 #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10314 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10315 case for PO_GPR_REGISTER,
10316 * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10317 dies, the new era is ahead !...
10318 * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10319 pic16_dynInternalRegs,
10320 * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10321 * (pic16_allocDirReg): minor optimizations and bug fixes,
10322 * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10324 * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10325 load stack and frame pointer with address of 'stack_end' symbol
10327 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10329 * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10330 without source code but only variable initializers
10332 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10334 * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10335 external are not declared as extern to reduce overhead while linking
10337 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10339 * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10341 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10343 * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10344 Yee Keat for the patch
10345 * src/SDCCast.c (decorateType): fixed bug #979599
10346 * src/ds390/gen.h: removed local fReturnSizeDS390
10347 * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10348 * src/ds390/gen.c (genAnd, genOr, genXor),
10349 * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10351 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10353 * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10354 add relFilesSet to $3, manipulate $2 to handle linking of object
10355 files without source files in command line,
10356 * device/include/pic16 (all headers): added ID location macros,
10357 * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10358 entries for ID location bytes,
10359 * (pic16_assignIdByteValue): NEW,
10360 * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10361 added field dumpcalltree to pic16_options_t,
10362 * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10363 is used instead of pic16_Gstack_base_addr, check if (ifx) before
10364 emitting rFalseIfx label after check_carry label,
10365 * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10366 pic16_emitDIRegs), NEW
10367 * (pic16glue): dump .calltree file when option --calltree found,
10368 * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10369 * (_pic16_genAssemblerPreamble): emit ID locations after
10370 configuration registers,
10371 * (pic16_linkCmd): modifications of the link command,
10372 * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10373 * (pic16_pCodeInitRegisters): don't init stack registers,
10374 * (pic16_findPrevInstruction): fixed bug,
10375 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10376 bug with immediate registers,
10377 * (buildCallTree): traces stack push and pop,
10378 * (pct2): dump also stack usage for each function,
10379 * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10380 * (pic16_allocDirReg): various modifications,
10381 * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10384 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10386 * src/pic16/pcode.c: removed buggy double colon
10388 2004-07-01 Borut Razem <borut.razem AT siol.net>
10390 * support/scripts/sdcc.nsi: added include/pic16 to setup
10392 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10394 * device/lib/Makefile.in: fixed bug in target objects-pic16,
10395 * device/lib/pic16/Makefile: prefixed with dash (-) command under
10397 * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10398 specific command line arguments. Also added sample lkr script
10399 for placing a variable at a specific memory bank.
10400 * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10401 at a specific memory bank,
10402 * (pic16_dump_isection): fixed bug which caused string literals to
10403 be omitted when dumping idata section,
10404 * (pic16_groupRegistersInSection): added code to handle registers
10405 in specific memory banks,
10406 * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10407 public, all references are renamed too,
10408 * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10410 * (pic16_storeForReturn): added case to handle when dest is WREG,
10411 * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10412 * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10413 pic16_rel_udata, check to see if that register is marked as being
10414 a member of a specific memory bank,
10415 * (pic16_printIvalCharPtr): added code to add string literals either
10416 to code or the idata sections,
10417 * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10418 also accept the 'udata' pragma,
10419 * src/pic16/main.h: new structure types sectName and sectSym
10420 * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10421 * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10422 * (pic16_findPrevInstruction): fixed, it returned nothing,
10423 * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10424 instruction combinations,
10425 * (pic16_FixRegisterBanking): heavily reorganised,
10426 * (pic16_AnalyzeBanking): if generating banksel directives is
10427 disabled, then don't call FixRegisterBanking at all,
10428 * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10429 completely removed,
10430 * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10432 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10434 * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10435 Phuah Yee Keat <yk.phuah AT nestac.com>
10437 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10439 * src/pic16/glue.c (pic16createInterruptVect): function now emits
10440 correctly the IVT even if it is relocated to some other location
10442 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10444 * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10445 * device/include/pic16/pic18f2220.h: NEW,
10446 * device/lib/pic16/libdev/pic18f2220.c: NEW,
10447 * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10448 * src/pic16/device.c (struct Pics16): added info for 18f2220,
10449 * src/pic16/device.h (struct pic16_options): added ivt_loc and
10450 nodefaultlibs, ivt_loc is the location of the interrupt vector
10451 table, and nodefaultlibs signs that default libraries should not be
10452 linked in link stage,
10453 * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10454 according to --ivt-loc argument,
10455 * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10456 when pragma stack is found,
10458 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10460 * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10461 256 (range check), 257 (do while), 258.a-f (bit banging
10462 f.e. on 3-wire SPI bus)
10464 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10466 * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10467 variables used exclusively within a loop
10469 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10471 * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10473 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10475 * src/SDCClrange.c (computeClash): fixed bug #971834
10477 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10479 * src/mcs51/gen.c (genCmp): fixed bug #975903
10480 * src/hc08/gen.c (operandsEqu),
10481 * src/ds390/gen.c (operandsEqu),
10482 * src/z80/gen.c (operandsEqu),
10483 * src/pic/gen.c (operandsEqu),
10484 * src/pic16/gen.c (operandsEqu),
10485 * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10486 * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10488 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10490 * src/SDCCcse.c (cseBBlock): fixed bug #966963
10492 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10494 * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10495 default case in switch statement,
10496 * glue.c (pic16_initPointer): expr is initialised via decoarteType
10497 to eliminate problem with initialisation of pointers, but problem
10499 * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10500 * (emitStaticSegment): removed various lines emitting debug info,
10501 * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10502 added processor registers for utilizing EEPROM,
10503 * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10504 configurable and set 8
10506 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10508 * .version: increased version number to 2.4.2,
10510 Cumulative patch for pic16 port
10511 * src/pic16/device.c: changed scheme to dump initial values for
10512 variables in idata segment, all print_idata* functions were removed,
10513 now the pic16_printIval* will be called,
10514 * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10515 * _pic16_printPointerType, pic16_printPointerType,
10516 * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10517 * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10518 NEW, similar to the respective functions in SDCCglue.c,
10519 * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10520 way, emitting hex bytes,
10521 * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10523 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10525 * src/avr/ralloc.c (serialRegAssign),
10526 * src/xa51/ralloc.c (serialRegAssign),
10527 * src/pic/ralloc.c (serialRegAssign),
10528 * src/pic16/ralloc.c (serialRegAssign),
10529 * src/hc08/ralloc.c (serialRegAssign),
10530 * src/z80/ralloc.c (serialRegAssign),
10531 * src/ds390/ralloc.c (serialRegAssign),
10532 * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10534 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10536 * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10537 * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10539 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10541 Cumulative patch for pic16 port:
10542 * src/pic16/device.h (typedef PIC16_device) modified fields for
10543 defining microcontrollers,
10544 * src/pic16/device.c: added new info for all devices in Pics16 array,
10545 * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10546 to be optimised out by the pCode optimiser,
10547 * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10548 specially, bug reported by G.M. Gallant,
10549 * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10550 as force'd so that cannot be optimised out by pCode optimiser,
10551 * src/pic16/pcode.c,
10552 * src/pic16/pcodepeeph.c,
10553 * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10554 they are disabled by default, but can be enabled explicit with
10555 command argument --denable-peeps, for testing,
10556 * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10557 --pomit-ivt in COMPILE_FLAGS
10559 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10561 * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10562 compilation on MSVC
10564 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10566 * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10568 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10570 device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10571 0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10573 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10575 * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10576 would only assign 0x300001 register.
10578 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10580 * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10581 in COMPILE_FLAGS. Thanks to G. Gallant for report.
10583 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10585 * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10587 * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10588 * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10589 added peephole 254 (left shift), 255 (jump table)
10591 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10593 * device/lib/Makefile.in: removed comment line with model-pic16,
10594 * (target port-specific-objects-pic16): the libraries and objects
10595 are copied to the build directory form the device/lib/pic16/bin
10598 Cumulative patch concerning pic16 port:
10599 * library directory has been re-organized,
10600 * added support for PIC18F1220,
10601 * added headers and library sources for chips 18f1220,18f6520,
10602 18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10604 * configuration registers setting has changed, now each supported
10605 device has a complete description of the registers it uses,
10606 * all initialisations are moved to idata sections, these section
10607 can be absolute or relocatable,
10608 * fixed initialisation of codespace variables,
10609 * fixed warning about PCLATU and gpsim,
10610 * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10611 * (genAssign): use table reads when assigning from variables in codespace,
10612 * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10613 char/int variables placed in codespace,
10614 * (pic16_emitConfigRegs): NEW, emits a list with configuration
10615 registers set in .asm file, no need for --pomit-config-words anymore,
10616 * (pic16glue): some 8051 legacy segments are commented out
10617 (to be removed completely),
10618 * added support for alternative assembler and linker with --asm=
10619 and --link= command line arguments,
10620 * peepholes are disabled automatically in the port, no need to
10621 specify on command line,
10622 * port supports natively char/int/long multiplication, but converts
10623 all divisions to support functions,
10624 * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10625 to the file set in variable $2,
10626 * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10627 strings in ASCII format and not in hex,
10628 * ralloc.c (serialRegAssign): added a triplet of conditional calls
10629 to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10630 allocate proper register if iCodes aren't temporary,
10632 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10634 * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10636 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10638 * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10641 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10643 * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10644 computed address is reused
10645 * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10646 multi-byte bitfields
10648 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10650 * src/z80/gen.c: (genArrayInit): must check for pointers too
10652 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10654 * support/regression/tests/zeropad.c: never meant to commit the
10655 nestedstruct test: removed, added check for GCC version
10657 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10659 * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10660 * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10661 * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10662 printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10663 bugs 928906 and 954082 half-empty initializers
10665 * src/SDCCsymt.c (getAllocSize): added for above fix
10666 * src/z80/gen.c (genArrayInit): fixed bug 741044
10667 * support/regression/tests/zeropad.c: added tests
10669 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10671 * src/pic16/device.c (pic16_dump_section): corrected bug which
10672 caused some symbols of the libraries to be misplaced
10674 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10676 * src/pic16/glue.c,
10677 * src/pic16/ralloc.h,
10678 * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10679 to fix conflict with pic port
10681 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10683 * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10684 externs configuration variables,
10685 * src/pic16/ralloc.h,
10686 * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10687 prototype in header, commented out some debug messages
10689 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10691 * src/pic16/glue.c,
10692 * src/pic16/main.c,
10693 * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10694 for gpasm COFF object generation. Thanks to D. Hawkins for
10697 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10699 * src/ds390/main.c,
10700 * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10701 Brock for spotting this)
10702 * src/ds390/gen.c (genEndFunction),
10703 * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10704 interrupt handler and critical. Disable push/pop optimizations when
10705 peephole optimizations disabled.
10707 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10709 Updated pic16 library sources and headers.
10710 * device/lib/pic16/pic18f*/ ,
10711 * device/include/pic16/*.h: modified to handle structured SFR
10714 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10716 * src/port.h (PORT structure): added hook initPaths, now each
10717 port can declare its own default search paths,
10718 which can been seen with the --print-search-dirs option,
10719 see pic16 port for example,
10720 * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10721 setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10722 * (doPrintSearchDirs): NEW, replaces in a central manner the
10723 printing of search dirs which was split in set*Paths functions,
10724 * (main): added call to port->initPaths and doPrintSearchDirs,
10726 * src/ds390/main.c,
10729 * src/izt/tlcs900h.c,
10730 * src/mcs51/main.c,
10732 * src/pic16/main.c: modified port structures to reflect addition of
10735 * src/pic16/device.c (regCompare): registers are finally sorted by name,
10736 * (pic16_dump_section): for registers in same address reserve memory once,
10737 * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10739 * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10740 result is greater in size than right or left,
10741 * (pic16_genUMult8X8_8): there are some cases where the result can
10742 be 16 bits size, so handle these,
10743 * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10744 * (pic16_outBitC): modified to emit pcodes,
10745 * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10747 * (genDivOneByte): implemented algorithm to divide 8-bits,
10748 * (genCmp): uncommented goto, but issues still exist,
10749 * (genAnd): fixed a bug with variables >8bits,
10750 * (genPackBits): optimization added that uses BCF/BSF to change a
10752 * (genAssign): fixed bug when assigning floating point literals,
10753 * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10754 __sdcc_gsinit_startup label,
10755 * src/pic16/main.c (_pic16_init): removed search directory
10757 * (_pic16_initPaths): NEW, used to initialise search directories,
10758 * (_hasNativeMulFor): support functions for all except char/int
10759 multiplication, and char division,
10760 * (PIC16_port struct): modified entry for native mul support,
10761 * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10763 * (buildCallTree): call to register_usage is ifdef'ed out,
10765 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10767 * device/include/string.h: applied Stas Sergeev's patch to make this
10768 header file compatible with the preprocessor -Wundef option
10769 * src/SDCCmain.c (main): abort compilation if preprocessor reports
10770 failure (fixes bug #941458)
10772 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10774 * src/SDCCopt.c (killDeadCode): fixed bug #907733
10775 * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10776 that the variable, not the function, should be static
10777 * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10778 to be consistent with non-literal case
10780 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10782 * src/SDCCast.c (isConformingBody): fixed bug #949967
10783 * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10784 convilong): fixed bug #952086
10786 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10788 * src/SDCCmem.c (allocVariables): fixed bug #955321
10790 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10792 * src/hc08/main.c (_hc08_genAssemblerEnd),
10793 * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10794 dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10795 completely eliminated the use of a temporary file
10796 * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10797 when more than one file linked
10798 * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10800 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10802 * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10803 which fixes bug #543481
10804 * support/regression/tests/bug-751703.c: fixed comments left from a
10805 cut and paste error
10806 * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10807 * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10808 * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10810 * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10811 * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10812 are now changed to underscores in moduleName
10814 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10816 * as/mcs51/lkmem.c: better fix for bug #954173
10818 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10819 committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10821 * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10822 * device/include/c8051f000.h,
10823 * device/include/c8051f120.h,
10824 * device/include/c8051f300.h,
10825 * device/include/c8051f310.h,
10826 * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10827 PWM16) and detab'ed
10829 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10831 * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10832 and mailing lists, doc'ed --no-peep-comments, removed reference
10833 to knoppix (newest version has no LyX/LaTeX), other minor changes
10834 * src/SDCCglue.c (glue): save 2 bytes stack space with
10835 option --main-return. The ljmp could probably be avoided too
10837 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10839 * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10841 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10843 * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10844 * src/SDCCopt.c (isLocalWithoutDef),
10845 * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10846 which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10847 (credit to Maarten Brock for patch #949363, on which this is based)
10848 * support/regression/tests/bug-751703.c: some test cases of extern used
10849 within inner scopes.
10851 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10853 * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
10855 * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
10857 * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
10858 dwWriteLabel): fix to create valid debugger symbols even when
10859 the module name has non-alphanumeric symbols in it
10860 * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
10861 when a variable's allocation has been optimized away
10864 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10866 * src/hc08/gen.c (hc08_emitDebuggerSymbol),
10868 * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
10869 * src/mcs51/main.c,
10870 * src/ds390/gen.c (ds390_emitDebuggerSymbol),
10871 * src/ds390/main.c,
10872 * src/z80/gen.c (z80_emitDebuggerSymbol),
10874 * src/pic/gen.c (pic14_emitDebuggerSymbol),
10876 * src/pic16/gen.c (pic14_emitDebuggerSymbol),
10877 * src/pic16/main.c,
10878 * src/avr/gen.c (avr_emitDebuggerSymbol),
10880 * src/xa51/gen.c (xa51_emitDebuggerSymbol),
10882 * src/SDCCdebug.c (emitDebuggerSymbol),
10884 * src/port.h: added a debugger struct to the port struct. Added a
10885 callback for defining debugger symbols
10887 * src/SDCCast.c (createLabel),
10888 * src/SDCC.y (labeled_statement): mark all compiler generated labels
10891 * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
10892 iCode back to the ast for the function
10894 * src/hc08/ralloc.c (hc08_assignRegisters),
10895 * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
10896 unneeded fields from the regs struct.
10897 * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
10898 pushReg() & pullReg() functions instead of emitcode()
10900 * src/hc08/gen.c (genLabel, genhc08Code),
10901 * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
10903 * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
10906 * src/hc08/gen.c (genEndFunction, genhc08Code),
10908 * src/mcs51/gen.c (genEndFunction, gen51Code),
10910 * src/ds390/gen.c (genEndFunction, gen390Code),
10912 * src/z80/gen.c (genEndFunction, genZ80Code),
10915 * src/pic/gen.c (genEndFunction, genpic14Code),
10917 * src/pic16/gen.c (genEndFunction, genpic16Code),
10919 * src/avr/gen.c (genEndFunction, genAVRCode),
10921 * src/xa51/gen.c (genEndFunction, genXA51Code),
10923 * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
10924 specific code to cdbFile.c and out of the backend code generators
10926 * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
10927 * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
10928 starting address is now 0
10931 * as/hc08/m08pst.c,
10932 * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
10933 assembler directive for DWARF support
10934 * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
10938 * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
10940 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10942 * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
10943 and inappropriate peephole optimization in jump tables
10945 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10947 * as/hc08/m08pst.c,
10948 * src/SDCCglue.c: sdccopt works for the hc08 port now
10950 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
10952 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
10954 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10956 * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
10958 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10960 * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
10964 * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
10965 comments from the peephole optimizer replacement rules
10966 * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
10968 * src/SDCCcse.c (updateSpillLocation),
10969 * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
10971 * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
10972 * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
10973 objects far pointers
10975 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10977 * src/SDCCsymt.h: a missing part of my last change
10978 * src/pic/ralloc.c (regTypeNum),
10979 * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
10981 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10984 * src/SDCCicode.c (aggrToPtrDclType),
10985 * src/SDCCptropt.h,
10986 * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
10987 ptrPseudoSymConvert),
10988 * src/pic/ralloc.c (regTypeNum),
10989 * src/pic16/ralloc.c (regTypeNum),
10990 * src/hc08/ralloc.c (regTypeNum),
10991 * src/ds390/ralloc.c (regTypeNum),
10992 * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
10993 creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
10995 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10997 * link/z80/lkmain.c (afile),
10998 * as/hc08/lkmain.c (afile),
10999 * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11000 prevent a pointer problem when a filename has no directory and
11001 no extension specified.
11003 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11005 * link/z80/lkmain.c (afile): allow periods in directory names
11006 * link/z80/lkmain.c (afile),
11007 * as/mcs51/lkmain.c (afile),
11008 * as/hc08/lkmain.c (afile): allow linker script file to have an
11009 extension other than ".lnk"
11010 * link/z80/lklex.c (getfid),
11011 * link/z80/lkmain.c (parse),
11012 * as/mcs51/lklex.c (getfid),
11013 * as/mcs51/lkmain.c (parse),
11014 * as/hc08/lklex.c (getfid),
11015 * as/hc08/lkmain.c (parse): Support comments in the linker script
11016 file on lines by themselves and after filenames
11018 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11020 * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
11022 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11024 * src/z80/peeph-z80.def: removed some peephole rules that don't
11025 work with multibyte arithmetic (fixed bug #937126)
11026 * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
11027 to registers and not global variables
11028 * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
11029 geniCodePreInc, geniCodePostDec, geniCodePreDec,
11030 geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
11031 checking for assignments not internally generated (fixed bug #931895)
11032 * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
11033 structure member (fixed bug #930072)
11035 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11037 * src/SDCCmain.c (linkEdit),
11038 * src/hc08/main.c (_hc08_parseOptions),
11039 * as/hc08/Makefile.in,
11040 * as/hc08/aslink.h,
11042 * as/hc08/m08pst.c,
11043 * as/hc08/lkrloc.c (relr, rele),
11044 * as/hc08/lkarea.c (lnkarea)
11045 * as/hc08/lkmain.c (afile, parse),
11046 * as/hc08/lkelf.c: support for ELF output
11047 * as/hc08/lks19.c (s19),
11048 * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11050 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11052 * as/mcs51/lkihx.c: Fixed bug #899105.
11054 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11056 * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11057 .dsp files from Unix to DOS.
11059 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11061 * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11062 function pointers; we have been compliant for several months now.
11063 * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11064 change that was accidently commented out
11065 * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11066 genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11069 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11071 * src/hc08/gen.c: output of all of the internal debugging information
11072 is now controlled by the D() macro; it is disabled by default
11074 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11076 * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11077 harder to keep the same registers during a CAST iCode
11078 * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11079 long via int can be done in a single cast, if the signedness is
11081 * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11082 putchar() in tinibios.c in ds390's library
11084 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11086 * src/SDCCast.c (decorateType): fixed bug #898889,
11087 cast result of a literal complement too
11088 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11089 fixed check for bitfields
11091 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11093 * src/SDCCicode.c (geniCodeLogic): made it static,
11094 (geniCodeLogicAndOr): added in order to fix bug #905492,
11095 (ast2iCode): fixed bug #905492
11096 * support/regression/tests/bug-905492.c: added
11097 * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11098 (processParms): fixed bug #927659: don't copy parms, this will clear
11100 * support/regression/tests/bug-927659.c: added
11102 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11104 * src/SDCCast.c (addCast): don't cast float to char
11105 * device/lib/libsdcc.lib: added _memmove
11107 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11109 * device/lib/large/Makefile: fixed parallel execution by
11110 replacing `make` by `$(MAKE)`
11112 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11114 * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11115 offsets (fixes bug #923936)
11117 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11119 * device/lib/small/Makefile: fixed parallel execution by
11120 replacing `make` by `$(MAKE)`
11122 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11124 * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11126 2004-03-23 Scott Dattalo <scott AT dattalo.com>
11128 * src/pic/gen.c (genCpl): multi-byte complements were not working.
11129 * src/regression/Makefile: Regression test was not running.
11131 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11133 * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11134 complement if possible
11135 * src/SDCCval.c (valComplement),
11136 * src/SDCCicode.c (operandOperation): fixed complement of literal
11137 * support/regression/tests/onebyte.c (testComplement): added
11139 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11141 * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11142 return an optimized tree; actually replace actParm with the new tree
11143 * src/SDCCast.h: added some parantheses to remove side effects
11144 * support/regression/tests/bug-920866.c
11146 2004-03-21 Scott Dattalo <scott AT dattalo.com>
11147 * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11148 Bit operands were not being handled properly in the pic14 port.
11149 (now src/regression/add.c passes again).
11151 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11153 * src/SDCC.y (labeled_statement): case and default no longer require
11154 a following statement (RFE #893037)
11156 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11158 * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11159 use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11160 disabled (fixes bug #916294)
11161 * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11162 "mov a,acc"; patch provided by Lenny Story
11163 * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11165 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11167 * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11169 * src/ds390/gen.c (genFunction, genEndFunction),
11170 * src/ds390/ralloc.c (ds390_assignRegisters),
11171 * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11172 * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11173 pushed if there are parameters passed on the stack. Also, a cleaner
11174 way to decide if r0/r1 should be pushed/popped. (Together they fix
11177 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11180 * device/lib/mcs51/crtpagesfr.asm,
11181 * device/lib/mcs51/crtxinit.asm,
11182 * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11183 to avoid confusion with Si Lab's SFRPAGE register.
11185 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11187 * src/SDCCglue.c (emitMaps): allow public sfr variables
11188 * src/SDCCglue.c (initialComments): include compiler build date
11189 with compiler version and put the timestamp of the generated
11190 assembly file on a serperate line to be less confusing.
11191 * src/port.h: added genInitStartup hook
11193 * src/ds390/main.c,
11196 * src/pic16/main.c,
11198 * src/z80/main.c: genInitStartup initialize as NULL (default to
11199 historical behaviour)
11200 * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11201 * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11202 _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11203 library instead of hard coding it into the compiler.
11204 * support/regression/ports/mcs51-stack-auto/spec.mk,
11205 * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11206 * device/lib/mcs51/Makefile,
11207 * device/lib/small/Makefile,
11208 * device/lib/large/Makefile,
11209 * device/lib/mcs51/crtpagesfr.asm,
11210 * device/lib/mcs51/crtstart.asm,
11211 * device/lib/mcs51/crtxclear.asm,
11212 * device/lib/mcs51/crtxinit.asm,
11213 * device/lib/mcs51/crtclear.asm,
11214 * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11215 startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11216 and into user configurable files.
11217 * device/lib/clean.mk: clean mcs51 directory too
11218 * support/regression/tests/longlit.c: added static to T1 declaration
11219 * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11220 accesses in the initialization code
11222 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11224 * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11225 OSCTRIMVAL as noted in bug #916008
11227 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11229 * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11230 in loops with multiple exits (reported as incorrect registers
11231 used by Martin Helmling in Sdcc-user list)
11233 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11235 * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11236 made ds390 register extensions look less like error messages
11238 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11240 * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11241 reported by Adam Wozniak in Sdcc-user list
11243 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11245 * src/SDCCast.c (decorateType): fixed with bug and promotion in
11246 arithmetic optimizations, added debug output
11248 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11250 * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11251 * sdcc.spec: updated and split sdcc into 3 rpms
11252 * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11253 needed for literals of LEFT_OP and '+'
11254 * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11255 introduced RESULT_TYPE_NOPROM
11256 (geniCodeMultiply): fixed logic for decision if mul is optimized to
11258 * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11259 limited promotion to int only for '*'
11260 * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11262 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11264 * src/pic16/gen.c (genSkip),
11265 (genc16bit2lit), (gencjneshort): commented out
11266 (is_LitOp): new helper function, checks operand type
11267 (genCmpEq): rewritten
11269 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11271 * support/regression/tests/bug-908454.c: added
11273 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11275 * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11276 * src/SDCCicode.c (usualBinaryConversions): op needs int type
11277 (geniCodeCast): cosmetic, don't preserve bit storage class
11278 (geniCodeLeftShift): added promotion
11279 (geniCodeLogic): fixed regression
11280 * src/SDCCsymt.c (computeTypeOr): accept bits too
11281 (compareType): 2nd part of fix for bug #908454, needed for bitfields
11283 2004-03-07 Borut Razem <borut.razem AT siol.net>
11285 * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11287 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11289 * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11290 version of pic16_genPackRegisters which does not check if ic is a
11292 * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11293 function cause string1.c regression test fails
11295 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11297 * sim/ucsim/configure.in,
11298 * sim/ucsim/configure,
11299 * sim/ucsim/doc/Makefile.in: use docdir
11300 * src/SDCC.y: fixed sbit atrributes
11301 * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11302 * src/SDCCast.c (decorateType): |^& need special promotion handling
11304 * src/SDCCsymt.h: moved definition of RESULT_TYPE
11305 * src/SDCCsymt.h (computeType),
11306 * src/SDCCicode.c: computeType() needs op
11307 * src/SDCCsymt.c (checkTypeSanity),
11308 * doc/sddman.lyx: "plain" bitfields are unsigned
11309 * src/SDCCsymt.c (computeTypeOr): added
11310 * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11312 * src/SDCCval.c (val*): computeType() needs op
11313 * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11314 * support/regression/tests/onebyte.c: added tests for |^&
11316 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11318 * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11319 for writing icode into asm output.
11321 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11323 * src/pic16/device.c: added some debug lines enabled
11324 with macro DEBUG_CHECK,
11325 * src/pic16/genarith.c: more debug in genPlus,
11326 * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11327 * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11328 * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11329 * (aopForSym): onStack symbols are re-placed in data memspace,
11330 and onStack flag is cleared,
11331 * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11332 copy temporary pcodeop,
11333 * (genPcall): added warning for not updating PCLATU,
11334 * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11335 always true for pic16 port,
11336 * (genMultOneWord): NEW, supports integer multiplication,
11337 * (genMult): modified to call genMultOneWord,
11338 * (ifxForOp): added warning when return NULL,
11339 * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11340 flag is set before call to operandFromSymbol for implicit
11342 * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11343 options.intlong_rent are set by default,
11344 * (_hasNativeMulFor): modified to allow port generation of integer
11346 * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11347 set regtype to REG_SFR for all registers, restricting seting the
11348 accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11350 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11352 * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11353 more than 500 times in the regression tests
11355 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11357 * support/Util/SDCCerr.h,
11358 * support/Util/SDCCerr.c,
11359 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11361 * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11362 for symbol conflicts.
11363 * support/valdiags/tests/enum.c,
11364 * support/valdiags/tests/tentdecl.c,
11365 * support/valdiags/tests/struct.c: expect possible error messages
11366 referring to original symbol definitions.
11367 * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11369 * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11371 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11373 * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11375 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11377 * src/pic16/ralloc.c (newReg): fixed bug #908929
11379 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11381 * src/ds390/gen.c: added missing #include "main.h"
11383 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11385 * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11386 checking if symbol is already in set,
11387 * src/pic16/device.h: prototype for checkAddSym,
11388 * src/pic16/gen.c: (_G): added entry interruptvector,
11389 * (assignResultValue): removed some commented out lines,
11390 * (genFunction): check for ISR via sym->type, absolute section for
11391 interrupt code is created via a new pBlock, the goto instruction is
11392 placed now correctly at the interrupt vector position, changed all
11393 references from ivec to _G.interruptvector,
11394 * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11395 is the interrupt is a high priority one, same for return from ISR,
11396 * src/pic16/glue.c: changed all calls of addSetHead for publics and
11397 externs to calls of checkAddSym,
11398 * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11399 pic16_pcode_verbose flag is set,
11400 * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11401 * src/pic16/pcoderegs.c: message about how many registers are saved
11402 will only be emitted if pic16_pcode_verbose flag is set,
11404 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11406 * src/ds390/ralloc.h,
11407 * src/ds390/ralloc.c (ds390_regWithIdx),
11408 * src/ds390/gen.c (emitcode),
11409 * src/ds390/main.h,
11410 * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11411 ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11412 ds390operandCompare, getRegsRead, getRegsWritten,
11413 initializeAsmLineNode): customized instruction size calculation for
11414 ds390, started basis for some register optimizations
11415 * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11416 corresponding assembly output
11417 * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11418 missing push/pop of r0/r1. Optimized push/pops
11420 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11422 * src/mcs51/main.c (instructionSize): fixed ACALL size
11423 * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11425 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11427 * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11428 the sorting of rlist with NULL elements
11429 * (print_idataType, print_idata): NEW to create idata sections
11430 * src/pic16/device.h: idataSymSet new variable
11431 * src/pic16/gen.c (genFunction): fixed some bugs in string
11432 comparing, improved the absolute section creation for ISRs,
11433 added FSR0L/FSR0H in registers that are saved in an ISR,
11434 * (genInline): fixed the processing of inline snippets,
11435 now they undergo no process by the peephole optimizer
11436 * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11437 are placed in idataSymSet,
11438 * (pic16emitStaticSeg): extern symbols are added in externs,
11439 * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11440 switching when aboslute variables are placed in access bank memory
11441 * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11442 * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11443 commented out with #if,
11444 * (pic16_packRegisters): reintroduce the check for CAST because some
11445 symbols are not correctly handled,
11446 * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11447 pCodeInstruction instead of pCode,
11448 * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11449 pCodeAsmDir definition,
11450 * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11451 directive, then the argument directive is emitted without the leading
11452 tab, hack for inline labels which must be in the first column,
11453 * (compareLabel,pic16_findNextInstruction),
11454 * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11455 * (insertBankSwitch): modified for the new pCodeAsmDir,
11457 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11458 patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11460 * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11462 * (pushSide): commented out with #if,
11463 * (assignResultValue): fixed some typos in saving
11465 * (genPcall): FIXED and sync'ed with genCall,
11466 * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11467 * (genNearPointerGet): fixed to handle some more cases,
11468 implementation scheme via table reads,
11469 * (genConstPointerGet): modified to access code memory correct,
11470 * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11471 and improved to handle some cases
11472 * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11473 instead of "RETLW" for init data
11474 * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11475 not IN_DIRSPACE, work around to reduce bank switching when aboslute
11476 variables are placed in access bank memory (<0x80 and >=0xf80),
11477 * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11478 TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11479 TBLWT_POSTDEC,TBLWT_PREINC
11480 * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11481 * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11483 * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11484 * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11485 pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11486 * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11488 2004-02-29 Borut Razem <borut.razem AT siol.net>
11490 * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11491 support/Util/findme.h, support/Util/system.h: enhance binary relative
11492 search for lib and include by using findProgramPath()
11494 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11497 * src/SDCCpeeph.c (pcDistance),
11499 * src/mcs51/ralloc.h,
11500 * src/mcs51/ralloc.c (mcs51_regWithIdx),
11501 * src/mcs51/main.h,
11502 * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11503 mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11504 mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11505 size calculation port specific, started basis for some register
11507 * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11508 missing push/pop of r0/r1. Optimized push/pops
11509 * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11510 * device/lib/_modsint.c (_modsint),
11511 * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11512 and stack version so regression tests pass
11514 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11516 * src/Makefile.in (dep): include SLIBOBJS in dependency check
11517 * src/SDCCast.c (decorateType): catch another small optimization
11519 * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11520 * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11521 modified to finally use computeType() all over SDCC,
11522 see Feature Request #877103
11523 * src/SDCCval.h: cosmetic
11524 * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11525 valCompare(); regression tested in muldiv.c
11526 * support/regression/tests/muldiv.c (testMod): mod sign follows
11529 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11531 * src/SDCCast.c (decorateType): fixed bug #902362
11532 * doc/INSTALL.txt: fixed install instructions for win32
11534 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11536 * device/include/Makefile.in (install): fixed by replacing spaces
11539 * doc/INSTALL.txt: updated for release
11540 * doc/sdccman.lyx: added warning for --xstack being buggy
11542 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11544 * src/pic16/ralloc.c (packRegsForAccUse): disabled functions with #if
11545 to eliminate build warnings.
11546 * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11548 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11549 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11551 * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11552 removed -penable-stack, added comment for stack pragma, added
11553 warning for not initializing the stack/frame registers, removed
11554 comment at interrupts section
11556 Stack is made permanent, there is no ability to disable stack usage.
11557 * src/pic16/device.h,
11558 * src/pic16/device.c: removed all references to USE_STACK macro,
11559 * src/pic16/device.c (pic16_dump_section): when no elements in
11560 rlist, free rlist before return,
11561 * (pic16_dump_int_registers): NEW, internal registers are a new set
11562 of general purpose registers reused by each function,
11563 * (checkAddReg): returns 1 if registers is added to set,
11564 * (pic16_groupRegistersInSection): when a registers is of type
11565 PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11566 * src/pic16/device.h: memRange and Assigned Memory are deleted,
11567 SRCASECMP macro is moved here from device.c
11568 * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11569 PO_PCLATU, PO_PRODL, PO_PRODH,
11570 * (pic16_pCodeOpType, genMinus,
11571 changed compares to "a" register, with AOP_ACC,
11572 * (pic16_genPlus): fixed some bugs and indented properly,
11573 * (pic16_addSign): changed size to size+offset in the MOVWF
11575 * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11576 multiply 8-bit operand by literal, result is 8-bit,
11577 * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11578 multiply 2 8-bit operand, result is 8-bit,
11579 * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11581 * src/pic16/gen.c: changed accUse to contain WREG only,
11582 * (pic16_emitcomment): renamed to pic16_emitpcomment,
11583 * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11584 true, do not use immediate addressing any more unless sym is a
11585 pointer in codespace,
11586 * (aopForRemat): do not use immediate addressing when symbol not in
11587 codespace and when symbol's address is requested,
11588 * (aopOp): for-loop in if(sym->accUse) is modified for the new
11590 * (aopGet): added case for AOP_ACC and don't return "accumulator
11591 bug" but WREG instead,
11592 * (popGetTempReg): pushes contents of temporary register in stack,
11593 * (popReleaseTempReg): pops contents of temporary register from
11594 stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11595 * (pic16_popGet): separated case AOP_ACC to return register WREG
11596 from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11597 or PO_IMMEDIATE and initializes their instance/offset appropriately,
11598 * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11599 the use of immediate pointers to certain cases only.
11601 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11602 * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11603 * (assignResultValue, genCall, genRet): modified to use the new
11604 function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11605 genPcall is still broken,
11606 * (genFunction): added code to create 'A' type pBlocks when
11607 interrupt functions are generated, code not extensively tested yet,
11608 ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11609 * (genEndFunction): modified so ISRs pop stored registers from stack,
11610 * (genMultOneByte): cleanup,
11611 * (AccRsh): added flag andmask, to and result with appropriate mask,
11612 * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11613 * (genDataPointerGet): fixed and reenabled its use,
11614 * (genNearDataPointerGet): bugs fixed,
11615 * (genDataPointerSet): bugs fixed,
11616 * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11617 pic16_DumpSymbol, pic16_DumpOp,
11618 * src/pic16/genutils.h: function prototypes for the above functions,
11619 * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11621 * (pic16emitRegularMap): many many many improvements, but needs a
11623 * src/pic16/main.c: enable_stack in pic16_options is removed,
11624 * (_pic16_parseOptions): removed command line options -penable-stack,
11625 * (_process_pragma): emit stack symbol only when stack pragma is
11627 * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11628 redirected to FSR0L/FSR0H pair,
11629 * (pic16_get_op, pic16_get_op2): modifications and improvements,
11630 * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11631 cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11633 * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11634 * (dumpPicOptype): NEW,
11635 * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11636 * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11637 with movff instruction,
11638 * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11639 added pic16_int_regs, some packRegsFor* functions are commented out,
11640 because produce errors,
11641 * src/pic16/NOTES: minor modifications
11643 2004-02-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11645 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11646 as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11648 * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11649 * as/mcs51/lkaomf51.c: fixed bug #895763
11651 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11653 * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11655 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11657 * doc/sdccman.lyx: added details about the HC08 storage classes and
11658 interrupts, fixed the register usage info for z80 & gbz80
11660 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11662 * doc/sdccman.lyx: added more pic16 port documentation
11663 * device/include/pic16/: added header pic18fregs.h
11665 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11667 * doc/sdccman.lyx: added Vangelis' contribution
11669 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11671 * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11672 extend to the next CALL or PCALL, not just to the next CALL.
11674 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11676 * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11678 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11680 * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11681 bug #895752 and a better fix for bug #716790
11683 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11685 * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11687 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11689 * doc/sdccman.lyx: minor changes, minor changed
11691 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11693 * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11694 which can't handle SDCC_NEWONEBYTEOPS,
11695 (geniCodeMultiply): removed conversion from mult to shift for pic14
11698 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11701 * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11702 rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11703 thus fixing bug #895406
11705 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11707 * device/lib/_modsint.c,
11708 * device/lib/_modslong.c: sign follows divisor only
11709 * src/hc08/gen.c (genMultOneByte): if result size is 1,
11710 signs or signedness can be ignored
11711 * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11712 * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11713 added optimization for IFX,
11714 (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11716 reenabled optimization for IFX, which was removed on 2004-01-11
11717 * src/SDCCast.h: added return type IFX
11718 * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11719 arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11720 promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11721 SDCC_OLDONEBYTEOPS selects the old behaviour
11722 * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11723 changed again and commented promotion rule
11724 * src/SDCCval.c (valDiv): promotion no longer necessary
11725 * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11726 * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11728 * support/regression/tests/onebyte.c: added
11730 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11732 * gen.c (genInline): reverted to old code for assemnling inline
11733 code because of bug reported James Chadd
11735 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11737 * ralloc.h: missing declarations from previous patch,
11738 seems that patch for ralloc.h was never applied, fixed
11740 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11741 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11745 * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11746 indirect addressing. Marked FSR0 as deprecated
11747 * gen.c (pointerCode): commented out, not needed now
11748 (pic16_popGet2p): new MOVFF helper function
11749 (genGenPointerGet),
11750 (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11751 (shiftRLong): removed duplicate debugging info
11753 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11755 * src/ds390/gen.c (genNearPointerGet),
11756 * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11757 optimization with bits, but not bitfields.
11758 * src/ds390/ralloc.c (packRegisters),
11759 * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11761 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11763 * src/SDCCcse.c (algebraicOpts): copy operands before modification
11765 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11768 * src/SDCCicode.c (operandFromSymbol),
11769 * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11770 * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11771 * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11772 * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11773 * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11774 * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11776 * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11777 * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11778 printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11779 * src/SDCCsymt.c (newSymbol),
11780 * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11783 * src/SDCCval.c (newiList): fixed bug #885705
11785 2004-02-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11787 * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11788 * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11790 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11792 * device/include/c8051f120.h,
11793 * device/include/c8051f300.h,
11794 * device/include/c8051f310.h: added/updated header files for Silicon
11795 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11796 * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11797 in new section Submitting patches
11799 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11801 * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11802 genFarPointerGet, genCodePointerGet, genGenPointerGet,
11803 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11805 * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11806 genFarPointerGet, genCodePointerGet, genGenPointerGet,
11807 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11809 * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11810 genFarPointerGet, genCodePointerGet, genGenPointerGet,
11811 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11813 * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11814 genFarPointerGet, genCodePointerGet, genGenPointerGet,
11815 genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11816 genGenPointerSet): fixed bug #892400
11817 * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11818 to eliminate build warnings.
11819 * src/SDCCast.c (processParms),
11820 * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11822 * support/valdiag/valdiag.py: added GCC to the list of defines active
11823 when compiling with gcc
11825 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11827 * support/Util/SDCCerr.h,
11828 * support/Util/SDCCerr.c,
11829 * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11830 with an incomplete type (fixed bug #883734)
11831 * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11833 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11835 * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11837 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11839 * src/SDCCast.c (decorateType),
11840 * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11841 function pointer implementation
11842 * support/regression/tests/funptrs.c: added tests to verify both forms
11843 of function pointers work correctly. Added tests to verify parameters
11844 are passed in the correct order.
11846 2004-02-06 Vangelis Rokas <vrokas AT otenet.gr>
11848 * device.c (regCompare): registers are sorted by ascending
11849 address and increasing size,
11850 * main.c (_pic16_finaliseOptions): removed the declaration
11851 of compiler macro MCU. Now a macro of the format pic18fxxxx
11852 will be defined from the command line
11854 2004-02-06 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11855 patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11857 * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
11858 PCOP_RLCF was overwritten!
11859 * gen.c (genSkip): commented out calls to pic16_emitcode,
11860 * (genCmpEQ): fixed "long" compares, only high word did get compared,
11862 * (genRRC): added debugging info,
11863 * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
11864 overwritten while shifting,
11865 * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
11866 overwritten while shifting,
11869 * (shiftLLeftOrResult),
11870 * (shiftRLeftOrResult),
11872 * (shiftLLong): Implemented with pic16_emitpcode
11873 * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
11874 * (genLeftShift): Fixed bug, operand for shift by variable always
11875 was "and"ed with 0x0f,
11876 * (genLeftShiftLiteral),
11878 * (genRightShiftLiteral): added debugging info,
11879 * (genrshFour): added comment,
11880 * (genRightShift): determined signedness from operand "left"
11881 instead of "result"
11883 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11885 * src/SDCCicode.c (geniCodeParms),
11886 * src/SDCCast.c (decorateType, processParms): support for ANSI-style
11887 function pointers, fixed function pointer bugs #861242 and #861896
11889 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11891 * device/include/c8051f000.h,
11892 * device/include/c8051f120.h,
11893 * device/include/c8051f300.h: added header files for Silicon
11894 Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11896 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
11898 * src/SDCCast.c (processParams): added new type flow and restructured
11899 (gatherAutoInit): added new type flow
11900 (addCast): cosmetic changes
11901 (getLeftResultType): added new type flow for array indices, patch
11902 provided by Stas, see FR #877103
11903 (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
11904 array index patch by Stas
11905 * src/SDCCast.h: added prototype getResultTypeFromType()
11907 * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
11908 * src/pic/glue.c (pic14emitStaticSeg),
11909 * src/pic16/glue.c (pic16emitStaticSeg),
11910 * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
11911 for initialization of symbols
11912 * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
11913 * support/Util/SDCCerr.h:
11914 * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
11915 * .version: bumped version number to 2.3.8
11916 * device/include/Makefile.in (install),
11917 * doc/Makefile (install): changed to 'rm `find ...`' construct to
11920 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
11922 * support/regression/tests/libmullong.c: fixed for 64 bit hosts
11923 Slade Rich fixed an optimization bug
11924 * src/pic/pcodepeep.c,
11925 * src/pic/pcoderegs.c
11926 * doc/Makefile (install): added test for directory
11928 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11930 * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
11931 * src/ds390/ralloc.c (getRegPtr, getRegGpr),
11932 * src/pic/ralloc.c (getRegPtr, getRegGpr),
11933 * src/pic16/ralloc.c (getRegPtr, getRegGpr),
11934 * src/z80/ralloc.c (getRegGpr): fixed bug #883361
11935 * as/mcs51/asexpr.c (term),
11936 * as/hc08/asexpr.c (term): fixed bug #887146
11938 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11940 * src/z80/gen.c (genMult): handle single byte result product
11941 * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
11942 DUMMY_READ_VOLATILE (fixed bug #886367)
11944 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11946 * support/regression/tests/libmullong.c: fixed logic, on little endian
11947 hosts we ended without a mullong_wrapper()
11949 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11951 * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
11952 virus/worm forged address usage.
11954 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
11956 Fixed promotion, it should be done on AST level:
11957 * src/SDCCast.c (addCast): added promotion to int
11958 (decorateType): updated call to upCast()
11959 * src/SDCCicode.c (geniCodeLeftShift): removed call to
11960 usualUnaryConversions()
11962 2004-01-26 Michael Hope <michaelh AT juju.net.nz>
11964 * support/regression/tests/literalop.c (mulWrapper): Added a
11965 wrapper to remove integer overflow warnings.
11967 * support/regression/tests/float_trans.c: Made work on host.
11969 * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
11972 * support/regression/generate-cases.py (main): Changed from inline
11975 * doc/Makefile (install): Changed to depth first to get rid of
11976 missing directory install warning.
11978 * as/Makefile (install-doc): Made work on Mac.
11980 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
11982 * src/SDCCast.c: added an additional type flow in decorateType() of
11983 opposite direction, see feature request #860006; it's enabled at runtime
11984 by setting the environment variable SDCC_NEWTYPEFLOW
11985 * src/SDCCast.h: changed prototype of decorateType()
11986 * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
11987 * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
11988 'char' to 'int' can be omitted, if both operands are 'unsigned char';
11989 see feature request #877103
11990 * src/SDCCval.c: updated call of decorateType()
11991 (valBitwise): fixed bug #882876
11992 (valMinus): added promotion
11993 (valLogicAndOr): result is unsigned
11994 (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
11995 * src/SDCCsymt.c (computeType),
11996 * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
11997 must not cause an unsigned operation
11998 * src/pic/glue (pic14emitRegularMap),
11999 * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12001 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12003 * src/pic/pcode.c (PCodeID): commented out left over debug code
12005 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
12007 * support/valdiag/tests/overflow.c: added shift tests
12008 * src/pic/device.c,
12015 * src/pic/pcodepeep.c,
12016 * src/pic/pcoderegs.c,
12017 * src/pic/ralloc.c,
12018 * src/pic/ralloc.h: applied patch from Slade Rich;
12019 added support for multiple code pages and multiple RAM banks on the
12020 PIC 14 port. The ASM files now no longer simply assume all the
12021 code / RAM are in the same page / bank. This means the linker can
12022 safely allocate code/RAM of separate ASM files to different pages/banks.
12023 * doc/sdccman.lyx: added Slade's tips
12024 * src/mcs51/peeph.def: fixed bug #880768
12026 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12028 * src/hc08/ralloc.c (rematStr): fixed bug #879282
12029 * src/SDCCast.c (decorateType): fixed bug #880197
12031 2004-01-20 Michael Hope <michaelh AT juju.net.nz>
12033 * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
12036 * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
12037 strtof is not part of C89 and isn't included with Mac OS X.
12039 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12041 * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12042 shiftL2Left2Result): fixed bug #879326
12043 (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12044 (genMultOneByte): fixed bug in signed vs unsigned multiplication
12045 * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12046 address fetch for clr instruction
12047 * device/lib/hc08/_mulint.c: created optimized assembly version
12048 * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12050 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12052 * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12053 proposed in FR #877103
12055 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12057 * src/SDCCval.c (cheapestVal): added missing checks
12058 * src/SDCCicode.c (usualBinaryConversions): fixed condition
12059 * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12061 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12063 * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12066 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12068 * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12069 loaded with the linker search paths (-L arguments) and the libraries
12070 to be linked with the current source (-l arguments). Changes
12071 currently will affect only the pic16 port.
12072 * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12073 include path the port specific paths and port specific libraries,
12074 * gplink command now contains the $3 argument,
12075 * src/pic16/device.h,
12076 * src/pic16/device.c,: structure PIC_device is made public and
12077 renamed to PIC16_device, the same for variable Pics which is renamed
12078 to Pics16. Updated all references to them.
12079 * src/pic16/glue.c (pic16glue): corrected bug with code
12080 initialization which bypassed the variable initializations block.
12082 * device/lib/pic16/Makefile.rules: removed --penable-stack from
12083 COMPILE_FLAGS and added the --nostdinc option
12085 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12087 * device/include/mc68hc908jb8.h: Register defs for another member
12088 of the hc08 family. Contributed by Bjorn Bringert - thanks!
12090 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12092 Documenting changes from previous commits.
12093 * configure.in (version 1.56),
12094 * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12095 when generating output files to configure the pic16 library,
12096 but now I've commented it out, since gputils aren't installed in the
12097 SF compile farm, so library won't compile
12099 * device/lib/Makefile.in (version 1.56): initially I've added in
12100 target 'all' the prerequestive 'model-pic16' so it compiled the
12101 pic16 library, but now I've commented it out for the same reasons
12103 * added targets 'model-pic16' and 'objects-pic16' to compile the
12105 * added target 'port-specific-objects-pic16' to handle the
12106 generated libraries and copy them into the build/ directory
12107 * added target 'clean-intermediate-pic16' to clean intermediate
12108 files into pic16 directory
12109 * in target 'installdirs' added line to create directory pic16 in
12110 the installation path
12112 * device/include/Makefile.in (version 1.11): in target 'install'
12113 added lines to copy all header files to installation path,
12114 * in target 'installdirs' added line create directory for pic16
12115 headers in the installation path
12117 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12119 * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12122 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12125 * device/lib/configure.in,
12126 * device/lib/configure: fixed for autoconf 2.57
12128 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12130 * src/z80/main.c (_parseOptions): fixed the portmode= command line
12131 option so that it actually works. Made it specific to the z80, since
12132 the gbz80 doesn't have these kinds of I/O ports.
12134 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12136 * device/include/z180.h,
12137 * device/lib/_memcpy.c,
12138 * device/lib/_memmove.c,
12139 * device/lib/_mulint.c,
12140 * device/lib/ser_ir.c,
12141 * device/lib/ser_ir_cts_rts.c,
12142 * device/lib/_strcmp.c,
12143 * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12144 * src/z80/main.c (_process_pragma): add support for pragmas bank and
12145 portmode; added deprecation warning for bank= and protmode= forms.
12146 Also, guard against buffer overflow.
12147 * src/z80/gen.c (aopGet): generate better code for sfr banked read
12149 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12151 * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12152 changed interrupt vector table generation to only emit declared vectors.
12153 * device/include/Makefile.in: added missing backslash
12154 * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12156 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12158 Mainly changes to support compilation of the device libraries
12159 * src/pic16/device.c: stack is allocated via symbol and not
12160 via literal number. The symbol is placed in the corresponding
12161 position of the data ram
12162 * (pic16_dump_section): relocatable and absolute uninitialized
12163 data are now emitted in sorted order to reduce section naming,
12164 * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12165 weren't marked as being in the access bank,
12167 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12169 Added portion of GNU PIC Library under the directory
12170 device/include/pic16 and device/lib/pic16. These files
12171 contain the declarations of SFRs for the PIC18Fxx2 devices.
12172 The directory is initialized via configure from toplevel.
12174 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12176 * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12177 the spilllocations to be compared correctly
12179 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12181 * src/SDCCast.c (decorateType): fixed bug introduced today
12183 2004-01-12 Borut Razem <borut.razem AT siol.net>
12185 * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12186 doc/sdccman.lyx: upper case pragmas are deprecated
12188 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12190 * src/SDCCast.c (decorateType): replacing 'ul > 0' by '!ul' results
12191 in simpler and even better code
12193 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12195 * src/SDCCicode.c (operandOperation): fixed bug #874819
12196 * src/SDCCast.c (decorateType): fixed
12197 char foo (unsigned long ul) { return ul > 0; }
12199 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12201 * doc/sdccman.lyx: Moved and added some sections, small changes
12202 all over. Telling LaTeX to be less strict with word spacing
12203 to better keep the right margin. Changed some notes about
12204 maintainance of the ports in section 3.2.1 - is it OK like this?
12206 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12208 SDCC source changes:
12209 * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12210 convilong): modified to inform the pic16 port that builtin functions
12213 PIC16 PORT specific changes:
12214 * src/pic16/device.c pic16_dump_equates() added,
12215 processor registers declared internally by the port are emitted in
12216 the translation as equates,
12217 * src/pic16/gen.c: inline code is passed unprocessed to the
12219 * (pic16_popGetLit2): fnuction modified to take second operand as
12220 pCodeOp pointer and not as literal,
12221 * (popRegFromIdx): prefixed with pic16_,
12222 * (pic16_popCombine2): modified to receive already allocated pCode
12224 * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12225 * (genFunction): initializes local stack frame and pushes on stack
12226 all the registers used by this function,
12227 * (genEndFunction): restores all registers from stack and restores
12229 * src/pic16/glue.c (pic16emitRegularMap): various changes and
12231 * (pic16glue): changed the program startup sequence,
12232 * added new dbName code 'A' for functions placed in absolute section
12233 * src/pic16/main.c: added function attribute _naked,
12234 * added pragma 'code' to place a fnuction at an absolute address,
12235 * added command line arguments --debug-ralloc and --pcode-verbose,
12236 * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12237 * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12238 * (pic16_newpCodeOpLit2): modified to take the second operand as
12240 * (pic16_printpBlock): modified to emit each function in a separate
12242 * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12243 UPPER for immediate operands,
12244 * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12246 * src/pic16/peeph.def: all peepholes with movff are commented out,
12247 because there is a problem in the pcode peep optimizer,
12248 * src/pic16/ralloc.c: the register allocator can now reuse local
12249 function symbols for another function. This saves register usage.
12250 * src/pic16/ralloc.h: added flag isLocal in structure regs,
12252 Added file src/pic16/NOTES with information about program writing on
12253 the current port version.
12255 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12257 * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12258 and peephole 252 (array access)
12260 2004-01-09 Borut Razem <borut.razem AT siol.net>
12262 * src/SDCCmain.c : fixed #872250: -l command line defined library
12263 files are scanned before standard library files
12265 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12267 * src/SDCCast.c (decorateType): fixed bug #874046
12269 2004-01-09 Borut Razem <borut.razem AT siol.net>
12271 * support/scripts/sdcc.nsi: remove previous installation
12273 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12275 * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12276 bytes for last interrupt vector (mcs51)
12277 * sdcc.spec: fixed typo
12279 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12281 * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12282 gen51Code): more efficient parameter receive for --model-large
12285 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12287 * src/ds390/main.c,
12288 * src/z80/main.c: added missed needLinkerScript flags (more than
12289 one port structure defined in these file)
12290 * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12293 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12295 * src/SDCCmain.c: removed various references to DEFAULT_PORT
12296 * src/port.h: added flag needLinkerScript in port->linker
12297 structure to inform whether to create a .lnk file or not,
12299 * src/ds390/main.c,
12301 * src/mcs51/main.c,
12303 * src/pic16/main.c,
12305 * src/z80/main.c: changed appropriately to configure
12306 needLinkerScript flag
12308 * src/pic16/gen.c (genAddrOf): fixed bug #863624
12309 * src/pic/glue.c: added variable udata_section_name to
12310 override default uninitialized data segment definition for
12311 devices only with SHAREBANK memory (reported from Erik Epetrich)
12312 * (pic14emitOverlay): modified to emit a commented overlay segment
12313 directive when no overlay data exist
12314 * (picglue): modified to emit uninitialized data segment
12315 according to udata_section_name
12316 * src/pic/main.c (_pic14_parseOptions): added command line
12317 options --udata-section-name=[name] to override default
12318 udata definition name
12319 * modified _linkCmd and _asmCmd to include compiler passed
12320 arguments via -W option
12321 * src/pic16/main.c: added $l in _asmCmd, changed extension for
12322 object file from '.rel' to '.o' in port->linker structure,
12323 changed size of fptr from 2 to 3 in port structure
12325 2004-01-07 Borut Razem <borut.razem AT siol.net>
12327 * support/scripts/sdcc.nsi: update PATH
12328 * support/scripts/sdcc.ico: craeted
12330 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12332 * device/include/Makefile.in: fix install
12333 * doc/Makefile: fix install
12335 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12337 * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12339 * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12340 how the function variable allocation summary is displayed; also
12341 include information about variables allocated to the overlay
12344 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12346 * as/mcs51/lkmain.c: Help about -Y option
12347 * as/mcs51/lkarea.c: Fixed gcc warnings
12349 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12351 * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12353 * support/valdiag/tests/overflow.c: added
12354 * src/SDCCast.c (decorateType),
12355 * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12356 LEFT_OP (left shift)
12358 2004-01-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12360 * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12361 (default behaviour).
12363 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12365 A python script to validate compiler diagnostic messages. It can be
12366 used to verify that sdcc complains about bad c source code and
12367 gives a good location of the error.
12368 * support/valdiag/Makefile,
12369 * support/valdiag/valdiag.py,
12370 * support/valdiag/tests/*
12372 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12374 * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12375 * src/SDCCsymt.c (newEnumType),
12377 * support/Util/SDCCerr.c,
12378 * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12380 * support/regression/tests/enum.c: added test for enum values that
12381 require at least 2 bytes of storage.
12383 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12385 * src/common.h: added ifndef/define/endif macros
12386 around the header file.
12387 Bug reported from Jesus Calvino-Fraga
12389 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12391 * sdcc.spec: updated
12392 * device/include/Makefile.in: don't install CVS directories
12393 * device/lib/Makefile.in: added removal of CVS directories after install
12394 * doc/Makefile: fixed install, added local_icons
12395 * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12396 * src/mcs51/gen.c (genRightShift): fixed bug #870788
12397 * src/ds390/gen.c (genRightShift): fixed bug #870788
12398 * src/SDCCast.c (decorateType): fixed bug #870781
12400 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12402 PIC16 port related changes:
12403 * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12404 added variable stackPos,
12406 * gen.c: genCall, assignResultValue: added support for
12407 pushing/retrieving function parameters to/from stack,
12408 genFunction,genEndFunction: setup stack frame for the
12409 generated function,
12410 genAddrOf: will be changed according to bug 863624
12412 * added files genutils.c and genutils.h which contain gen*
12413 debugged and optimised functions extracted from gen.c
12415 * glue.c: added variable 'externs' which holds extern symbols,
12416 pic16emitRegularMap: is modified to properly handle relocatable
12417 symbols under the new scheme,
12418 pic16createInterruptVect: is modified
12419 pic16printPublics: is modified to emit 'global' assembler directives,
12420 added pic16_printExterns to print extern symbols,
12421 pic16glue: initializes stack/frame pointer in the beginning of
12422 the assembly output. Temporary hack, will be corrected later,
12423 because gplink yet does not support stack and SDCC does not
12424 yet support a type of crt0.o object to create the final binary.
12426 * Removed many lines that contain 8051 legacy code.
12427 * The code is finally placed under a 'code' directive.
12428 * Added port specific options.
12430 * _process_pragma: simplified since now we do not need *special*
12431 include file to define SFR registers. But a separate header
12432 will be needed. This will be developed later.
12433 * _pic16_parseOptions: added, parses port specific options:
12434 --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12435 --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12436 --preplace-udata-with=
12438 * _pic16_setDefaultOptions: modified to initialize section names,
12439 but hack is temporarly out of order since it needs improvement.
12440 * _pic16_genAssemblerPreamble: configuration words are emitted by
12441 their address instead of their name. This part is incomplete and
12442 supports only the 18Fxx2 devices. Other devices will emit an error
12443 during assembly since they do not contain the same set of config
12445 * _pic16_genIVT: is modified,
12447 * pcode.c: added definitions for some hardware registers that are needed
12449 * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12450 All PCI entries are updated. Now LFSR is supported.
12451 * Removed pic16_pciTRIS is mentioned by mdubuc in source
12452 * added pic16_newpCodeOpLit2 to support instructions with
12453 two literal arguments
12454 * pic16_pCode2str: corrected code that emits assembler instructions
12455 with two literal operands and those that have an access bit modifier
12456 * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12457 this fixes a bug which caused some labels to be lost, when an
12458 assembler directive was added, i.e. banksel,
12459 * pic16_FixRegisterBanking: improved logic that causes the insertion
12461 * InlineFunction: functions that are called once, are not any more
12462 inlined. This can be a port option in the future,
12464 * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12466 * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12467 hold the corresponding uninitialized symbols,
12468 * pic16_allocProcessorRegister: registers have explicit marked the
12470 * pic16_allocInternalRegister: registers are explicit marked as
12472 * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12473 processing list, so bit registers were lost,
12476 * ralloc.h: added field 'accessBank' and original symbol operand
12477 in register definition,
12478 * removed the field isMapped from register definition,
12480 ** Several functions have been removed from various sources:
12481 BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12482 pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12483 isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12484 pic16_assignRelocatableRegisters
12486 ** others have been introduced:
12487 pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12488 pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12490 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12492 * support/scripts/inc2h.pl: changed definition of BIT_AT
12493 to emit 'sbit at' instead of 'bit at'. This was a request.
12495 PIC16 port related preliminary changes:
12496 * gen.c: prefixed function popRegFromString with
12497 pic16_ and all references to it corrected
12498 * pcode.c: all pic16_pc_* hardware registers prefixed
12499 with underscore (_),
12500 pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12501 * ralloc.c: newReg(): when register is REG_SFR then
12502 set address to rIdx,
12503 pic16_allocProcessorRegister(): marks register wasUsed=0
12504 pic16_writeUsedRegs(): added a call to assign processor
12505 registers via pic16_assignFixedRegisters
12507 2004-01-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12509 * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12510 as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12511 variables in unused register banks. Also the SSEG is placed
12512 wherever there is enough space for it, and IDATA can be anywhere
12513 in internal RAM. For now compile using -Wl-Y[stack_size].
12514 The mem file is different for this option as well, since it
12515 makes no sense of talking about DSEG lenght.
12517 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12519 * src/SDCClrange.c: fixed bug 869095 that caused segfault
12520 in certain cases, e.g. when ROM assignment, patch provided
12521 from Albert den Haan.
12523 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12525 Many signedness and type propagation fixes:
12526 * src/SDCCicode.c: made geniCodeCast() static
12527 replaced SPEC_ by IS_ (cosmetic)
12528 (operandOperation): fixed div and mod operation
12529 (usualBinaryConversions): added support for promotion of char
12530 (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12531 (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12532 (geniCodeAdd): an array index will stay unsigned, even if promoted
12534 (geniCodeArray): ditto
12535 * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12536 * src/SDCCsymt.c (computeType): added more support for char;
12537 promotion of char is selectable by promoteCharToInt, fixed signedness
12539 (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12540 * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12541 * src/SDCCval (val*): replaced signedness calculation by
12543 rearranged if-branches (cosmetic)
12544 (valShift): added warning W_SHIFT_CHANGED
12545 (valCompare): fixed problem with different types
12546 * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12547 * support/regression/tests/literalop.c: added many cases
12548 * support/regression/tests/ast_constant_folding.c: changed finally to
12550 * .version: new year, new version: 2.3.7
12551 * src/SDCCmain.c (main): applied patch #866468
12552 * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12553 provided by Scott Bronson
12554 * doc/sdccman.lyx: updated documentation for sdcdb
12555 updated and added chapter tips
12557 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12559 * src/SDCCsymt.h: missing from yesterday's commits
12561 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12563 * src/SDCC.y (struct_or_union_specifier),
12564 * support/Util/SDCCerr.c,
12565 * support/Util/SDCCerr.h: verify that struct & union tags are used
12568 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12570 * src/SDCCglobl.h: missing from yesterday's commits
12572 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12574 * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12575 sft_attributes, struct_declaration, parameter_declaration,
12576 type_name, start_block, declaration_list),
12577 * src/SDCC.lex (check_type): support redefinition of typedef names
12579 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12581 * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12582 aligned xdata arrays. Erik helped me with the if clause.
12584 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12586 * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12589 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12592 * src/SDCCast.c (newAst_),
12594 * src/SDCCicode.c (ast2iCode, newiCode),
12596 * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12597 expr, statement, expression_statement, selection_statement,
12598 iteration_statement, expr_opt, jump_statement): foundation for tracking
12600 * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12603 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12605 * support/Util/SDCCerr.c,
12607 * src/SDCCast.c (createCase, createDefault, decorateType),
12608 * src/SDCClabel.c (labelUnreach),
12609 * src/SDCC.y (labeled_statement, jump_statement): More improvements
12611 * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12612 (with thanks to Stas Sergeev)
12613 * device/include/time.h,
12614 * device/lib/time.c (CheckTime): suppress unreachable code warning
12616 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12618 * src/SDCCast.c (createIvalCharPtr),
12619 * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12621 * support/regression/tests/nullstring.c: tests for these two bugs
12623 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12625 * support/Util/SDCCerr.h,
12626 * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12627 * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12628 about storage class and 'at' used inside struct or union
12629 * src/SDCCBBlock.c (iCodeFromeBBlock),
12630 * src/SDCCcse.c (ifxOptimize),
12631 * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12632 printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12633 printIval, emitStaticSeg, emitOverlay),
12634 * src/SDCClabel.c (deleteIfx),
12635 * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12636 * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12637 gatherAutoInit, processParms),
12638 * support/Util/SDCCerr.h,
12639 * support/Util/SDCCerr.c (werrorfl): Support for better error location
12640 reporting for post-parse errors.
12642 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12644 * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12645 implicit casts via union; they don't work on big endian systems
12646 (possible fix for bug #861138)
12648 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12650 (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12651 * src/mcs51/main.c: fixed the fix for bug #737001
12653 2003-12-15 Borut Razem <borut.razem AT siol.net>
12655 * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12657 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12659 * support/makebin/makebin.c: put output in binary mode
12661 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12663 * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12664 xdata and data memory on startup. Set the environment variable
12665 SDCC_NOGENRAMCLEAR to disable this.
12666 * src/mcs51/peephole.def,
12667 * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12668 (allows non-interrupt and interrupt code to safely compete for a resource
12669 without the non-interrupt code having to disable interrupts)
12671 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12673 * src/SDCCicode.c (geniCodeAdd),
12674 * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12675 with valFromType if type might be a pointer and host is big endian).
12676 * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12677 types, not just integer types.
12678 * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12679 multiply defined with mismatching "at" address.
12681 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12683 * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12684 * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12685 * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12686 with embedded nulls (fixed bug #753752)
12688 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12690 * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12691 Apparently this did not see much testing (endless loop)
12693 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12695 * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12697 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12699 * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12700 gracefully handle NULL memmap pointers
12702 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12704 * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12705 instead of deleting the iCode when an operand is volatile
12706 * src/z80/gen.c (genDummyRead),
12707 * src/mcs51/gen.c (genDummyRead),
12708 * src/ds390/gen.c (genDummyRead),
12709 * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12711 * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12712 * src/SDCC.y: fixed bug #850420
12714 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12716 Applied z80 i/o port patch from Peter Townson and fixed some operators
12717 to better handle operands in A register.
12718 * device/include/z180.h
12724 * src/z80/peeph-z80.def
12725 * src/z80/peeph.def
12728 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12730 * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12732 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12734 * device/lib/hc08/_mullong.c: Removed extra #endif
12736 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12738 * sim/ucsim/hc08.src/inst.cc,
12739 * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12740 carries from x to h
12741 * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12742 * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12743 * device/include/stdarg.h: fixed varargs for hc08
12744 * device/lib/Makefile.in,
12745 * device/lib/hc08/Makefile,
12746 * device/lib/hc08/_mulint.c,
12747 * device/lib/hc08/_mullong.c: fixed some endian problems
12749 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12751 * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12752 * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12753 * device/lib/_gptrget.c,
12754 * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12756 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12758 * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12759 * src/SDCCast.c (astErrors): fixed bug #846007
12760 * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12762 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12764 * src/SDCCast.c (decorateType): disabled a transformation I added in
12765 revision 1.188 (access to fields of a structure at an absolute address);
12766 it breaks with bitfields, extern declarations, and gcse analysis.
12767 * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12768 could be assigned through a pointer, so don't complain.
12769 * src/SDCCast.c (astErrors),
12771 * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12773 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12775 * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12776 * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12777 output of __config directives, since gpasm now supports them
12778 * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12779 pre-processor macro, i.e. -DMCU=p18f452
12780 * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12781 and modified to handle 'cast' icode similarly to '=' icode
12782 * src/pic16/device.h (typedef struct PIC_device): added field
12783 'extMIface' to indicate that chip has external memory interface
12784 * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12785 18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12788 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12790 * src/SDCC.y (pointer): fixed bug #846006
12791 * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12792 * src/SDCCast.c (decorateType): fixed bug #846009
12793 * src/ds390/peeph.def,
12794 * src/ds390/gen.c (genAnd, genOr),
12795 * src/mcs51/peeph.def,
12796 * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12798 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12800 Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12807 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12811 * src/SDCCbitv.c: added function to free a bitvector
12812 * src/SDCClrange.h,
12813 * src/SDCClrange.c: added function to recompute the liveranges
12814 * src/avr/ralloc.c,
12815 * src/ds390/ralloc.c,
12816 * src/hc08/ralloc.c,
12817 * src/mcs51/ralloc.c,
12818 * src/pic/ralloc.c,
12819 * src/pic16/ralloc.c,
12820 * src/xa51/ralloc.c,
12821 * src/z80/ralloc.c: recompute the liveranges after register packing
12823 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12825 * src/SDCCloop.c (newInduction): fixed bug #845630
12827 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12829 * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12830 inadvertantly left behind from my 2003-11-12 change
12832 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12834 Updated headers I neglected to commit yesterday.
12835 * src/SDCClrange.h,
12838 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12840 * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12841 * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12842 * src/SDCCopt.c (eBBlockFromiCode),
12843 * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12844 the creation of the key hash table from the sequencing so it can be used
12845 earlier (for some GCSE bug fixes still pending)
12847 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12849 * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12850 * support/regression/tests/addsub.c: testing genPlus shortcut
12852 2003-11-15 Borut Razem <borut.razem AT siol.net>
12854 * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
12856 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12858 * src/SDCCcse.c (cseBBlock): fixed bug #527779
12859 * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
12860 ordering is immaterial.
12861 * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
12863 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12865 * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
12866 * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
12867 (SIGSEV) of bug #840381
12868 * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
12869 unlink new file before rename if new and old filenames are the same)
12871 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12873 * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
12874 uninitialized variables) for the mcs51. Set environment variable
12875 SDCC_GENRAMCLEAR to test.
12876 xdata initialization slightly shorter
12878 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12881 * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
12882 #838241 & 780691 (basicly the same bug)
12883 * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
12884 * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
12886 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
12888 * src/SDCCmain.c (linkEdit): "fix" #834252
12890 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12892 * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
12894 * src/SDCC.y: fixed bug #819403
12896 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12898 * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
12899 the reentrant attribute.
12900 * src/hc08/gen.c (genPackBits): added missing stack readjustment
12901 * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
12903 * src/SDCCast.c (decorateType): fixed bug with storage class not being
12904 updated during pointer dereference; f.e. ~(((char *)1)*) was being
12905 erroneously reduced to a literal.
12906 * src/hc08/ralloc.c (packRegisters, rematStr),
12907 * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
12910 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12912 * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
12913 * doc/sdccman.lyx: changed from 'article' to 'book'
12914 * doc/Makefile: readded test_suite_spec and cdbfileformat
12916 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
12918 * device/include/stdlib.h: include malloc.h to comply with ANSI
12919 * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
12921 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12923 * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
12924 * doc/clean.mk: also remove *.out files
12925 * doc/sdccman.lyx: some additions, larger top/bottom margins
12927 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12929 * src/SDCC.y: fixed bug #837365
12930 * support/regression/tests/bitopcse.c
12931 * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
12932 a symbol (might be valop instead)
12933 * device/lib/Makefile.in: added errno.c to HC08SOURCES
12934 * device/lib/clean.mk: added hc08 to the cleaning list
12936 2003-11-04 Borut Razem <borut.razem AT siol.net>
12938 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
12940 * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12941 as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
12942 malloc is declared in standard stdlib.h
12944 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12946 * device/lib/hc08/Makefile: need to clean .rel not .o files
12947 * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
12949 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12953 * src/mcs51/main.c,
12954 * src/ds390/main.c,
12958 * src/pic16/main.c,
12959 * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
12960 * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
12961 tests (which uses the port's oclsExpense function)
12967 * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
12969 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12971 * src/SDCCcse.c (ifxOptimize),
12972 * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
12973 an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
12974 deleting the IFX iCode.
12975 * src/hc08/ralloc.c: reduced unneeded slocs
12976 * src/hc08/gen.c: fixed bug in asmopToBoolean
12978 2003-11-04 Borut Razem <borut.razem AT siol.net>
12980 * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
12981 support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
12982 as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
12983 transferred to configure
12985 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
12987 Use headers defined in the C[++] standards:
12988 * sim/ucsim/gui.src/serio.src/fileio.cc
12989 * sim/ucsim/gui.src/serio.src/frontend.cc
12990 * sim/ucsim/gui.src/serio.src/main.cc
12991 * sim/ucsim/gui.src/serio.src/posix_signal.cc
12992 * support/Util/NewAlloc.c
12994 * as/mcs51/lklibr.c
12998 2003-11-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13000 * Added MSVC projects for hc08 assembler and linker:
13001 all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13002 /as/hc08/link_hc08.dsp
13004 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
13006 * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
13008 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
13010 * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
13012 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13014 * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
13016 2003-10-31 Borut Razem <borut.razem AT siol.net>
13018 * support/cpp2/cpplib.h,
13019 support/cpp2/cpplib.c,
13020 support/cpp2/cpplex.c,
13021 support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
13022 to switch _asm block preprocessing on / off. Default is
13023 #pragma preproc_asm +
13025 2003-10-31 Borut Razem <borut.razem AT siol.net>
13027 * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
13028 when outputting comment blocks (when executed with -C option) and
13029 _asm (SDCPP specific) blocks
13031 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13033 * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
13035 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
13037 * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
13039 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13041 * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13042 * src/SDCCast.c (decorateType): fixed bug #832664
13044 2003-10-31 Borut Razem <borut.razem AT siol.net>
13046 * support/cpp2/cpplex.c: fixed for SDCPP:
13047 comments(when executed with -C option) and _asm blocks
13048 were included even if they where in skipped #if block.
13049 Applied solution from GCC cpp 3.3.2
13051 2003-10-31 Borut Razem <borut.razem AT siol.net>
13053 * src/SDCC.lex: sdcc now understands both formats:
13054 '# <line_number> <file_name>' and
13055 '#line <line_number> <file_name>'
13056 * support/cpp2/cppmain.c: sdcpp now generates the standard
13057 '# <line_number> <file_name>' instead of former
13058 '#line <line_number> <file_name>'
13060 2003-10-30 Borut Razem <borut.razem AT siol.net>
13062 * support/cpp2/cpphash.h,
13063 * support/cpp2/cpplib.h
13064 * support/cpp2/cpplex.c,
13065 * support/cpp2/cppmain.c,
13066 * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13068 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13070 Fixed a number of problems revealed by bug #827883.
13071 * src/SDCCloop.c (loopInvariants): Spill location of the
13072 result operand should be recomputed if extracted from
13073 a loop. Also, don't extract assignments of an iTemp
13075 * src/SDCCast.c (isConformingBody): loop reversal should
13076 not occur if the control variable is involved with a
13077 relational operator.
13079 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13081 * .version: bumped to 2.3.6 to reflect the big improvements
13082 made by Erik and Klaus. Thanks!
13084 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13086 Replaced the livrange code.
13087 * src/SDCClrange.c: added new LR code
13089 * src/SDCCBBlock.h: removed remainig parts from old LR code
13090 * src/ds390/ralloc.c,
13091 * src/ds390/gen.c: minor fixes to make it work with new code
13093 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13096 * as/hc08/lkrloc.c,
13098 * src/hc08/ralloc.c: Fix various warnings related to the hc08
13099 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13100 (tweaked fix for bug #818696)
13102 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13104 * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13106 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13109 * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13110 * src/mcs51/gen.c (gencjneshort),
13111 * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13112 more efficient (per Scott Bronson's suggestion)
13114 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13116 Extended the semantics of the critical keyword to include
13117 individual statements. See RFE #827755 and #799831
13122 * support/Util/SDCCerr.c
13123 * support/Util/SDCCerr.h
13128 2003-10-19 Borut Razem <borut.razem AT siol.net>
13130 * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13132 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13134 * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13136 * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13137 and predecrement operand is displayed
13139 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13141 * src/SDCCval.c (valMinus): fixed bug #826041
13143 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13145 Some hc08 related updates that I missed earlier
13146 * sim/ucsim/stypes.h
13147 * support/regression/ports/hc08/spec.mk
13149 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13151 New target "hc08" for the Motorola 68hc08 family of micros
13159 * sim/ucsim/hc08.src/*
13160 * sim/ucsim/configure.in
13161 * src/ucsim/configure
13162 * sim/ucsim/packages_in.mk
13165 * device/include/mc68hc908qy.h
13166 * device/lib/hc08/*
13167 * device/lib/Makefile.in
13168 * support/regression/ports/hc08/*
13169 * support/regression/Makefile
13171 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13173 * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13175 * src/ds390/gen.c (genCast): fixed bug #821957
13177 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13179 * device/lib/logf.c: "fixed" overlay bug
13180 * support/regression/ports/host/spec.mk: added m library
13181 * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13182 * support/regression/tests/float_trans: added (for Eric)
13184 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13186 * src/mcs51/gen.c (genCpl): fixed bug
13187 http://sf.net/mailarchive/message.php?msg_id=6263915
13189 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13191 * src/SDCCast.c (decorateType): added extended constant folding
13192 * src/SDCCsymt.c (computeType): cleanup
13193 * src/SDCCval.c (valShift): minor optimization
13194 * support/regression/tests/ast_constant_folding.c: added
13196 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13198 * src/SDCCmain.c: removed some unintended changes
13200 2003-10-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13202 * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13203 * src/z80/gen.c: fixed part of bug #817589
13204 * src/SDCCsymt.c (checkFunction): fixed bug #817895
13206 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13208 Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13219 * src/ds390/ralloc.c
13221 * src/mcs51/ralloc.c
13223 * src/pic16/ralloc.c
13224 * src/xa51/ralloc.c
13226 * src/z80/gen.c: removed unused label "release:"
13228 2003-10-06 Borut Razem <borut.razem AT siol.net>
13230 * src/SDCC.lex: removed definition of unused variables
13231 save_optimize and save_options
13233 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13235 * clean.mk: removed '=' in "-maxdepth=1"
13236 * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13237 * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13239 2003-10-06 Borut Razem <borut.razem AT siol.net>
13241 * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13242 my_unput() replaced by unput()
13244 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13246 * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13247 setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13248 type-punned pointer will break strict-aliasing rules"
13249 Old LR behaviour is again default; Klaus' LR can be choosen by
13250 defining the environment variable LRKLAUS
13254 * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13255 * clean.mk: fixed removal of files in bin/CVS/
13256 * device/lib/clean.mk: fixed removal of directories small and large
13257 * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13259 * src/SDCCval.c: removed superflous test for pedantic
13261 2003-10-05 Borut Razem <borut.razem AT siol.net>
13263 * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13264 Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13265 message "unmatched #pragma SAVE and #pragma RESTORE"
13267 2003-10-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13269 * doc/sdccman.lyx: various additions and updates (interrupts, inline
13270 assembly, critical functions, atomic, nojtbound)
13272 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13274 Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13280 2003-10-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13283 * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13285 * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13287 * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13288 * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13289 * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13291 2003-10-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13293 * src/z80/gen.c (genRet): fixed bug #524753
13294 * src/z80/gen.c (genCast): fixed internal error on cast from
13296 * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13297 fix for bug #477835 to the z80
13298 * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13299 for tracking iCodes in the peephole optimizer for z80
13301 2003-10-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13303 * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13304 the other part of bug #814548
13305 * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13307 2003-09-30 Bernhard Held <bernhard AT bernhardheld.de>
13309 * src/SDCCcse.c: fixed part of bug #814548
13311 2003-09-28 Borut Razem <borut.razem AT siol.net>
13313 * src/asm.c: rewrite of printILine() to use temporary file instead
13315 * src/xa51/main.c: commented out declaration of int rewinds
13317 2003-09-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13319 * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13321 2003-09-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13323 * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13324 * src/asm.c (printILine): Fixed bug #811015
13326 2003-09-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13328 *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13331 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13333 * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13334 * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13335 to correctly handle general case of AOP_PAIRPTR
13336 * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13338 2003-09-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13340 * src/mcs51/ralloc.c (fillGaps),
13341 * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13342 register positioning bug)
13344 2003-09-21 Bernhard Held <bernhard AT bernhardheld.de>
13346 * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13348 2003-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13350 * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13351 genCodePointerGet, genGenPointerGet, genFarPointerSet,
13352 genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13353 (ralloc doesn't intentionally do this now, but perhaps later)
13354 * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13355 * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13356 register positioning bugs (Fixed bug #762602 and #795325)
13357 * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13358 (Fixed bug #808779)
13359 * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13360 lines that --i-code-in-asm generates
13362 2003-09-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13364 *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13365 trying to fclose a FILE* that was already closed.
13367 2003-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13369 * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13370 of const struct should be treated as if const themselves)
13372 2003-09-18 Bernhard Held <bernhard AT bernhardheld.de>
13374 * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13376 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13378 * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13379 Unix (/n) and DOS (/r/n) line terminations.
13381 2003-09-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13383 * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13386 2003-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13388 * src/mcs51/gen.c (genFunction, genEndFunction),
13389 * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13390 and restore of EA so that stack offsets to parameters are
13391 correct when using both critical and reentrant/stack-auto.
13392 * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13393 size (can be triggered in error if sloc is shared between
13394 different sized objects)
13395 * device/include/float.h: fixed macros to explicitly use
13396 unsigned long where needed
13398 2003-09-15 Bernhard Held <bernhard AT bernhardheld.de>
13400 Feature req. 799831: added code to allow nesting of critical functions
13401 * src/mcs51/gen.c (genFunction, genEndFunction)
13402 * src/ds390/gen.c (genFunction, genEndFunction)
13404 2003-09-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13406 * src/SDCCsymt.c (sclsFromPtr),
13408 * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13409 support for standard C idiom of memory mapped variables; for
13410 example, *((xdata int*)0x1234) = 1 is now internally equivalent
13411 to xdata int at 0x1234 tempvar = 1.
13412 * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13413 provided by Akiya ISHIDA
13415 2003-09-13 Bernhard Held <bernhard AT bernhardheld.de>
13417 * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13418 * src/SDCCval.c (constVal): added reduction from int to char
13419 * src/SDCCval.c (valMult, valDiv): fixed sign handling
13420 * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13421 * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13423 * support/regression/tests/shifts.c: fixed
13425 2003-09-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13427 * src/z80/gen.c (genXor): Fixed bug #805445
13429 2003-09-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13431 Fixed bug #621531 (const & volatile confusion in the type chain).
13432 DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13433 refer to the const or volatile state of the pointer itself.
13445 * src/pic16/ralloc.c
13446 * support/regression/tests/const.c
13448 2003-09-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13450 When checking for duplicated modules, use absolute paths
13451 instead of relative paths. Files changed:
13456 2003-09-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13458 * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13460 2003-09-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13462 * device/include/string.h: added size_t typedef, changed
13463 prototypes to use size_t, eliminated separate reentrant and
13464 non-reentrant declarations, added _memmove declaration
13465 * device/lib/_memcpy.c: changed to use size_t instead of int,
13466 changed /4 to >>2 to avoid division library call
13467 * device/lib/_memcmp.c,
13468 * device/lib/_memset.c,
13469 * device/lib/_strncat.c,
13470 * device/lib/_strncpy.c,
13471 * device/lib/_strncmp.c: changed to use size_t instead of int
13472 * device/lib/_memmove.c: new file (fixed bug #772294)
13473 * device/lib/Makefile.in: added _memmove.c
13474 * device/lib/z80/asm_strings.s: fixed bug #772290
13475 * support/regression/tests/bitfields.c: attempt to fix host assertion
13476 failure on amd64-unknown-linux2.2
13478 2003-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13480 * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13481 * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13482 * as/z80/asmain.c (main): fixed bug #801766
13484 2003-09-06 Bernhard Held <bernhard AT bernhardheld.de>
13486 * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13489 2003-09-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13491 * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13492 reported in bug #800609
13494 2003-09-04 Vangelis Rokas <vrokas AT otenet.gr>
13496 * Top header beautifications in src/pic16 directory:
13497 device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13498 pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13499 pcoderegs.h, ralloc.c, ralloc.h
13500 * main.c: added top header and GPL license notice
13501 * pcode.c: fixed the if-conditional warning
13503 2003-09-04 Bernhard Held <bernhard AT bernhardheld.de>
13505 * device/lib/_mullong.c: replaced int by short for gcc
13507 2003-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13509 * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13510 and JUMPTABLE iCodes properly now (worked by accident before)
13511 * src/mcs51/gen.c (leftRightUseAcc),
13512 * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13513 iCode properly now. Use getSize instead of nRegs since a & b
13514 aren't part of the nRegs tally.
13516 2003-08-31 Vangelis Rokas <vrokas AT otenet.gr>
13518 * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13519 * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13520 before instructions that use the _STATUS register
13522 2003-08-31 Bernhard Held <bernhard AT bernhardheld.de>
13524 * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13525 * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13526 fetching of the pointer
13527 * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13528 copied from genNearPointerSet()
13529 * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13530 * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13531 If they pop r0/r1 they must be called in the opposite order than aopOp().
13532 * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13533 (resp. --stack-auto), prepared for --xstack
13535 2003-08-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13537 * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13539 2003-08-28 Bernhard Held <bernhard AT bernhardheld.de>
13541 * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13542 these ports have their own __sdcc_external_start()
13544 2003-08-26 Bernhard Held <bernhard AT bernhardheld.de>
13546 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13547 * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13548 type for bits was changed. It resulted in bit variables becoming
13549 global, which is not permitted in PIC 14 assembly output.
13551 2003-08-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13553 * doc/sdccman.lyx: various additions and updates. Rearranged sections
13555 2003-08-22 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13557 Z80 and MCS51 linkers complaint if a public symbol is defined
13558 in more than one library module:
13562 * as/mcs51/Makefile.in
13564 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13566 A few small changes that speed up the peephole optimizer.
13570 2003-08-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13572 Try to make the peephole optimizer smarter by maintaining
13573 an association between the assembly source code and the
13574 iCodes that originated them. Put this information to use
13575 with a new peephole rule condition "notVolatile" so that
13576 the rules can be aggressive yet still safe.
13581 * src/mcs51/peeph.def
13583 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13587 * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13588 * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13589 if the left or right operand symbols have the accuse flag set.
13591 2003-08-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13593 Changed the type of the result of the ! (NOT) operator to char;
13594 previously it returned the same type as the source. This allows
13595 us to eliminate all the genFloatNot functions (all of its target
13596 implementations were very buggy) since !float can use the same
13599 * src/SDCCicode.c (ast2iCode): ! returns char
13600 * src/mcs51/gen.c (genNot, genNotFloat),
13601 * src/ds390/gen.c (genNot, genNotFloat),
13602 * src/z80/gen.c (genNot, genNotFloat),
13603 * src/pic/gen.c (genNot, genNotFloat),
13604 * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13606 2003-08-19 Bernhard Held <bernhard AT bernhardheld.de>
13608 pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13609 1. Interrupt would not compile properly. Ensure PCLATH register is saved
13610 during interrupts. Ensure WSAVE is located at a shared bank address.
13611 2. Fixed page selection in some places
13612 3. Fixed BTFSS/C to where necessary use registers directly and not simply
13613 the registers name strings.
13614 4. Fixed "signed / unsigned compare" compiler warnings.
13615 5. The PIC port manages its own allocation of the general purpose
13616 registers, but makes no attempt to reuse them. As a result when
13617 compiling it soon runs out of general purpose registers. Some
13618 additional code was added to the files pcode.c and device.c to walk
13619 through the function call tree and rename the registers so that they
13629 * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13630 genPlus() & genMinus() when the result is the same as left or right
13632 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13634 * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13636 2003-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13638 Made bitfield a distinct type from bit so that bitfields
13639 convert as per ANSI C and bits retain their traditional
13640 boolean style behaviour. Implemented bitfield support in
13648 * src/ds390/gen.c: bit v bitfield split
13649 * src/z80/gen.c: New support for bitfields
13650 * support/regression/tests/bitfields.c: reenabled z80,
13653 2003-08-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13655 Rules 246.x, 247.x relate to bitfields, the others speed up
13656 access to xdata mapped I/O devices.
13658 * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13660 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13662 Cleaned up genPackBits and genUnpackBits and added two helper
13663 functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13664 for literal assignments in genPackBits (thanks to Frieder for
13670 2003-08-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13672 Fixed bug #748310 (pointer to function type mishandled when the
13673 function name is omitted). Also fixed a SIGSEGV when a function
13674 attribute (reentrant, etc) is used on a non-function or on a
13675 function but misplaced before the parameter list.
13677 * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13679 * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13680 * support/Util/SDCCerr.h,
13681 * support/Util/SDCCerr.c: Added func attr misuse error msg
13683 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
13685 Fixed bug #787649 by anonymous
13686 * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13687 * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13689 2003-08-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13691 Fixed numerous bitfield problems.
13693 * src/SDCC.y: More bitfield related error checking
13695 * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13696 * support/Util/SDCCerr.h,
13697 * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13698 * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13699 * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13700 * support/regression/tests/bitfields.c: tests added
13702 2003-08-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13704 Made the constant following the "interrupt" keyword optional. If
13705 omitted, the function will not automatically be given an entry
13706 in the interrupt vector table (similar to #pragma NOIV, but
13707 less syntacticly kludgy). The interrupt number is also now
13708 range checked. Also fixed a bug in the high order bit example
13715 * support/Util/SDCCerr.c
13716 * support/Util/SDCCerr.h
13719 2003-08-13 Bernhard Held <bernhard AT bernhardheld.de>
13721 * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13722 * src/SDCCicode.c (operandOperation): rewritten some ops
13723 (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13724 * src/SDCCsymt.c (computeType): literals are handled the same way as any
13726 * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13727 be re-activated by defining REDUCE_LITERALS)
13728 * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13729 unsigned, but are signed by default
13730 * src/SDCCval.c (constVal): rearranged
13731 * src/SDCCval.c (valMod): preliminary fix
13732 * src/SDCCval.c (valCastLiteral): use TYPE_* types
13733 * support/regression/literalop.c: added, work in progress
13735 2003-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13737 Generate warnings for useless declarations like "char data;"
13738 that don't do what new users expect.
13741 * support/Util/SDCCerr.h
13742 * support/Util/SDCCerr.c
13744 2003-08-09 Bernhard Held <bernhard AT bernhardheld.de>
13746 * src/SDCCval.c (valMult): fix overflow detection of negative int
13748 2003-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13750 * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13752 Changes to support big endian targets:
13765 2003-08-06 Bernhard Held <bernhard AT bernhardheld.de>
13767 * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13768 * device/lib/time.c: fixed warning "integer overflow in expression"
13770 2003-08-05 Bernhard Held <bernhard AT bernhardheld.de>
13772 * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13773 * src/SDCCval.c (constVal): changed default to signed; hex and octal
13774 constants are unsigned; added recognition of "u" flag for unsigned
13775 * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13776 * src/SDCCval.c (valDiv, valMod): fixed signdness
13777 * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13778 signedness of modulo, left and right shift
13779 * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13780 * support/Util/SDCCerr.h: added warning W_INT_OVL
13781 * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13782 * src/SDCCast.c (ast_print): improved output of constants
13784 2003-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13786 Fixed some warnings when building with MSVC:
13788 * as/mcs51/asdata.c
13792 * link/z80/aslink.h
13793 * link/z80/lkdata.c
13794 * link/z80/lkeval.c
13799 * support/cpp2/cpplib.c
13803 2003-08-03 Bernhard Held <bernhard AT bernhardheld.de>
13805 * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13807 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13809 * support/librarian/clean.mk: Do not remove Makefile.
13810 * support/librarian/Makefile: added.
13812 2003-08-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13814 Added librarian to MSVC build:
13817 * support/librarian/librarian.dsp
13819 'configure' not needed for librarian, removed:
13820 * support/librarian/configure
13821 * support/librarian/configure.in
13822 * support/librarian/config_in.h
13823 * support/librarian/Makefile.in
13825 Hopefully these ones built the librarian and the rest of sdcc properly:
13827 * Makefile.common.in
13829 Messed up 'configure', so revert to previous version:
13833 2003-07-31 Bernhard Held <bernhard AT bernhardheld.de>
13835 * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13836 there, while the mantissa of a double is "only" 53 bits wide.
13838 2003-07-31 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13840 Adding sdcclib to the build. MSVC project coming soon.
13841 Files added/changed:
13843 * support/librarian/clean.mk
13844 * support/librarian/configure
13845 * support/librarian/configure.in
13846 * support/librarian/config_in.h
13847 * support/librarian/Makefile.bcc
13848 * support/librarian/Makefile.in
13849 * support/librarian/sdcclib.c
13852 * Makefile.common.in
13856 2003-07-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13858 Linker now complaints if linked modules have conflicting options, for
13859 example, one compiled using --model-large and another one compiled with
13860 --model-small. The following files were modified:
13862 * as/mcs51/asdata.c
13863 * as/mcs51/aslink.h
13865 * as/mcs51/asmain.c
13867 * as/mcs51/i51pst.c
13868 * as/mcs51/lkdata.c
13869 * as/mcs51/lklibr.c
13870 * as/mcs51/lkmain.c
13876 * link/z80/aslink.h
13877 * link/z80/lkdata.c
13878 * link/z80/lklibr.c
13879 * link/z80/lkmain.c
13882 2003-07-28 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13884 *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
13885 as/mcs51/lklibr.c: Generate a warning when a library is not found.
13887 2003-07-28 Bernhard Held <bernhard AT bernhardheld.de>
13889 * src/z80/mappings.i: fix _mul[us][int,long] entries
13891 2003-07-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13893 *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
13895 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
13897 * src/SDCCicode.c (operandOperation): really fixed problem with bitops
13898 * support/regression/tests/bitopcse.c: added
13906 2003-07-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13908 added support for new library format to z80, gbz80 linkers:
13914 2003-07-24 Bernhard Held <bernhard AT bernhardheld.de>
13916 * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
13917 after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
13919 2003-07-23 Bernhard Held <bernhard AT bernhardheld.de>
13921 added DUMMY_READ_VOLATILE:
13930 * src/SDCCcse.c (algebraicOpts): many improvements
13931 * src/SDCCcse.h: removed algebraicOpts()
13932 * src/SDCCicode.c (picDummyRead): added
13934 2003-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13936 * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
13937 "Insufficient space in data memory".
13939 2003-07-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13941 * src/mcs51/gen.c: fixed bug #771358
13942 * src/z80/gen.c: fixed bug #759087
13944 2003-07-20 Bernhard Held <bernhard AT bernhardheld.de>
13946 * src/pic16/glue.c: minor cleanup by Vangelis
13948 2003-07-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13950 * device/include/regc515c.h: fixed #758477
13951 * device/lib/_gptrget.c: saving some cycles in generic pointer get
13952 * device/lib/_gptrput.c: saved a few bytes
13953 * my tab spacing is 8, yours too?)
13954 * device/lib/_ser.c: process RX bytes earlier than TX bytes
13955 * device/lib/serial.c: process RX bytes earlier than TX bytes
13956 * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
13958 2003-07-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13960 * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
13962 2003-07-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13964 * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
13966 2003-07-17 Bernhard Held <bernhard AT bernhardheld.de>
13968 * device/lib/Makefile.in: bad fix, reverted to 1.43
13970 2003-07-16 Bernhard Held <bernhard AT bernhardheld.de>
13972 * device/lib/Makefile.in: added missing z80 object files
13974 2003-07-14 Bernhard Held <bernhard AT bernhardheld.de>
13976 * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
13977 pic16 progress by Vangelis:
13980 * src/pic/Makefile:
13987 * pic16/genarith.c:
13992 * pic16/pcodepeep.c:
13995 2003-07-13 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13997 * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
13999 2003-07-12 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14001 * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14002 added gbz80 build to MSVC project.
14003 * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
14004 link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
14005 from 8051 stuff and setup so it links using a .lnk file.
14007 2003-07-06 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14009 * support/librarian/sdcclib.c: sdcc librarian.
14010 * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
14013 2003-07-03 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14015 * as/mcs51/lkmain.c: properly handle extensions in function afile.
14017 2003-07-02 Borut Razem <borut.razem AT siol.net>
14019 * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
14020 src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
14021 src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
14022 src/xa51/main.c, src/z80/main.c:
14023 virtualization of glue() function: each port has it's own glue function,
14024 which is accessed by do_glue function pointer in PORT.general structure
14026 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
14028 * DS800C400 fun, improved ROM interface and tinibios.
14030 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
14032 * More support for DS80C400. Now includes beginning of interface to ROM.
14034 2003-06-25 Bernhard Held <bernhard AT bernhardheld.de>
14036 * src/mcs51/gen.c (gencjneshort): fixed bug #760345
14038 2003-06-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14040 * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14042 2003-06-19 Borut Razem <borut.razem AT siol.net>
14044 * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14046 2003-06-19 Borut Razem <borut.razem AT siol.net>
14048 * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14049 fixed Z80 port - crt0.o: cannot open.
14051 2003-06-19 Bernhard Held <bernhard AT bernhardheld.de>
14053 * support/Util/MySystem.c (merge_command): revert bad fix
14055 2003-06-18 Borut Razem <borut.razem AT siol.net>
14057 * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14059 2003-06-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14061 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14062 option --use-stdout sends errors to stdout instead of stderr.
14064 2003-06-18 Bernhard Held <bernhard AT bernhardheld.de>
14066 * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14068 2003-06-15 Borut Razem <borut.razem AT siol.net>
14070 * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14071 * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14072 * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14073 fixed width array of pointers replaced with sets;
14074 multiple include and lib paths ared transferred to preprocessor and linker
14075 * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14076 * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14077 fixed width array of pointers
14078 * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14079 removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14080 fixupPath(), getPathDifference()
14081 * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function inExcludeList() by using sets instead
14082 fixed width array of pointers
14084 2003-06-11 Bernhard Held <bernhard AT bernhardheld.de>
14086 * src/pic16/ralloc.c: fix warnings
14087 * src/pic16/pcode.c: fix warning
14089 2003-06-10 Scott Dattalo <scott AT dattalo.com>
14091 Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14092 know all the details, but essentially this set of changes enable
14093 the pic16 port to generate movff instructions and generate assembler
14097 * src/pic16/glue.c:
14098 * src/pic16/pcode.c:
14099 * src/pic16/device.c:
14100 * src/pic16/main.c:
14101 * src/pic16/pcode.h:
14102 * src/pic16/pcoderegs.c:
14103 * src/pic16/ralloc.c:
14104 * src/pic16/ralloc.h:
14106 2003-06-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14108 * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14109 added option --vc, so sdcc errors and warnings are compatible with
14110 Microsoft Visual Studio.
14112 2003-06-07 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14114 * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14115 device/lib/libfloat.lib: added atof function.
14117 2003-06-04 Bernhard Held <bernhard AT bernhardheld.de>
14119 * doc/sdccman.lyx: updated to Lyx 1.3
14120 * doc/cdbfileformat.lyx: updated to Lyx 1.3
14121 * doc/test_suite_spec.lyx: updated to Lyx 1.3
14122 * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14124 2003-06-03 Bernhard Held <bernhard AT bernhardheld.de>
14126 * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14128 2003-06-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14130 * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14131 additions to the "related tools/documentation" section
14133 2003-06-02 Bernhard Held <bernhard AT bernhardheld.de>
14135 * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14137 2003-05-29 Bernhard Held <bernhard AT bernhardheld.de>
14139 * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14140 * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14142 2003-05-28 Bernhard Held <bernhard AT bernhardheld.de>
14144 * doc/sdccman.lyx: fix double dash and other minor things
14145 * doc/Makefile: fix double dash
14147 2003-05-28 Karl Bongers(patches from Martin Helmling)
14148 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14149 condition and ignore commands.
14151 2003-05-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14153 * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14154 is in parts still quite out of date, I did changes as far as I felt makes sense
14155 for a non-native english speaker.
14156 Please feel free to add to the manual or to correct my changes.
14157 * doc/Makefile: undid touching the date of intermediate tex files.
14159 2003-05-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14161 * doc/sdccman.lyx: Manual has an index now
14163 2003-05-25 Bernhard Held <bernhard AT bernhardheld.de>
14165 Finalize muluint/mulsint and mululong/mulslong merging:
14166 * device/lib/_mulint.c
14167 * device/lib/_mullong.c
14168 * device/lib/gbz80/mul.s
14169 * device/lib/gbz80/stubs.s
14170 * device/lib/z80/mul.s
14171 * device/lib/z80/stubs.s
14172 * src/SDCCsymt.c (initCSupport)
14174 2003-05-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14176 * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14177 * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14178 src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14179 src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14182 2003-05-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14184 * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14185 the regression tests I'm not brave enough to enable 245.b, 245.c
14186 * doc/sdccman.lyx: added latex preamble for hyperref package.
14187 Using pdflatex this will give you a hyperlinked pdf file with
14188 bookmarks. (prepend '%' before /usepackage if this breaks something)
14190 2003-05-24 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14192 * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14194 2003-05-22 Bernhard Held <bernhard AT bernhardheld.de>
14196 * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14198 2003-05-21 <johan AT balder>
14200 * src/SDCCglue.c (printIval): fixed bug #739934
14202 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
14204 Applied patch from bug 737905 (renamed yylineo to mylineno):
14211 * src/pic16/pcode.c: Cleaned warnings
14212 * src/pic16/pcodeflow.c: Cleaned warnings
14213 * src/pic16/pcoderegs.c: Cleaned warnings
14215 2003-05-19 Scott Dattalo <scott AT dattalo.com>
14217 * src/pic16/pcode.c: Cleaned warnings
14218 * src/pic16/pcodepeep.c: Cleaned warnings
14219 * src/pic16/ralloc.c: Cleaned warnings
14221 2003-05-19 Bernhard Held <bernhard AT bernhardheld.de>
14223 * doc/sdccman.lyx: fixed bug 739745
14224 * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14226 2003-05-18 Bernhard Held <bernhard AT bernhardheld.de>
14228 * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14229 it can be defined with CFLAGS when running configure
14230 * src/SDCCmain.c: fixed compiling + linking with object files
14232 2003-05-18 Vangelis Rokas (vrokas AT otenet.gr)
14234 * configure.in: configure for pic16 port,
14235 added --disable-pic16-port
14236 * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14237 * src/SDCCmain.c: linkOptions is changed to set *,
14238 added if/endif conditional macros to remove options help
14239 messages from optionsTable when a port is not configured, added
14240 support for the PIc16 port in the ports table, when executing
14241 the compiler with no port specified on command line, a default
14242 port is selected with the new macro DEFAULT_PORT which is
14243 defined in port.h, in setDefaultOptions() linkOptions is removed
14244 from initialization assignment, since now it is a set,
14245 parseCmdLine uses setParseWithComma for linkOptions, in
14246 linkEdit() linkOptions are accessed with new function indexSet()
14247 which returns the i'th item of a set variable. See SDCCset.c, in
14248 linkEdit() when calling buildCmdLine(), added linkOptions as
14249 last argument. Now users can pass arguments to gplink via the
14250 -Wl option, main() uses pic16glue() to glue up pic16 programs
14251 * src/SDCCpeeph.c: various changes to support pic16
14252 * src/SDCCset.c: added function void *indexSet(set *, int) to
14253 return the i'th item of the set
14254 * src/SDCCset.h: added function prototype for indexSet()
14255 * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14256 * src/clean.mk: added pic16 in CLEANALLPORTS variable
14257 * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14258 added macro DEFAULT_PORT
14259 * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14260 * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14262 * src/pic16/glue.c: commented out some error producing lines
14263 * src/pic16/main.c: __config directives are commented out to stop
14264 gpasm complaining and test the linkage with gplink, _linkCmd and
14265 _asmCmd changed to be more gplink and gpasm friendly
14266 * src/pic16/peeph.def: peep rule 3 is commented out, since it
14267 produced an error when parsed, peep rule 12 is added to utilize
14268 movff, but it is commented out since the pCode does not support
14269 yet a command with 2 address arguments
14271 2003-05-18 <johan AT balder>
14273 * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14274 * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14275 2003-05-17 Karl Bongers(apply patches from Martin Helmling)
14277 * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14278 Added feature to script commands from file.
14280 2003-05-14 Bernhard Held <bernhard AT bernhardheld.de>
14282 * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14283 * src/SDCCutil.c: include ctype.h for win32
14285 2003-05-13 Bernhard Held <bernhard AT bernhardheld.de>
14287 * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14289 2003-05-12 Karl Bongers(apply development patches from Martin Helmling)
14291 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14292 Fixed so you can set breakpoints prior to run, run does not stop
14293 on entry now. Add tbreak. Other enhancements and fixes for use
14296 2003-05-12 Borut Razem <borut.razem AT siol.net>
14298 * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14300 2003-05-11 Borut Razem <borut.razem AT siol.net>
14302 * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14303 the path of bin directory, so that PATH is the only env. variable, which has to be set
14304 in case of standard installation.
14305 * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14306 * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14307 * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14309 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
14311 * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14312 * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14313 temp files are in the port dir; clean the gen/test directory when
14314 generating new test.c
14315 * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14316 * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14317 * support/regression/tests/zeropad.c: added
14319 2003-05-09 <johan AT balder>
14321 * src/SDCCglue.c: fixed bug #597940
14323 2003-05-05 Karl Bongers(apply patches from Martin Helmling)
14325 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14326 cache sfr, optimize next,step, fix off by one sourceline,
14327 support ddd list function.
14328 * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14330 2003-05-04 Bernhard Held <bernhard AT bernhardheld.de>
14332 * support/regression/HTMLgen.py: added compare_s2f()
14333 * support/regression/Makefile: redo 1.27
14334 * support/regression/generate-cases.py: redo 1.5
14336 2003-04-30 Bernhard Held <bernhard AT bernhardheld.de>
14338 * support/regression/tests/float.c: workaround 33 bit hex constant
14339 * support/regression/tests/simplefloat.c: fix division for host
14341 2003-04-29 Scott Dattalo <scott AT dattalo.com>
14343 * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14344 that tame's the PIC's over-aggressive optimizer.
14346 2003-04-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14348 * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14351 2003-04-29 Kevin Vigor <kevin AT vigor.nu>
14353 Initial support for DS80C400. "Hello world" runs on TINIm400
14356 2003-04-28 Karl Bongers(apply patches for Martin Helmling)
14358 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14359 * Some notes on ddd usage added in debugger/README
14360 Martin Helmling adding more features and fixes for ddd GUI debugger.
14361 Code added for nexti, stepi, up, down, and other adjustments.
14363 2003-04-28 Scott Dattalo <scott AT DATTALO.COM>
14365 * src/pic/pCodepeep.c non-wildcard asmops are now handled
14366 * src/pic/peeph.def Added two rules to optimize carry manipulation
14367 * src/pic/* removed debug printfs
14369 2003-04-28 Bernhard Held <bernhard AT bernhardheld.de>
14371 * debugger/mcs51/cmd.c: added header newalloc.h
14373 2003-04-26 Bernhard Held <bernhard AT bernhardheld.de>
14375 * as/Makefile: new EXEEXT
14376 * as/z80/Makefile: remove trailing slash of BUILDIR
14377 * as/z80/clean.mk: new EXEEXT
14378 * Makefile.common.in: add to CFLAGS (and others), don't replace it
14379 * support/cpp2/Makefile.in: new EXEEXT
14380 * src/pic/glue.c (pic14emitRegularMap): fixed warning
14382 2003-04-24 Bernhard Held <bernhard AT bernhardheld.de>
14384 Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14385 EXEEXT was introduced to fix all related problems with targets
14386 "clean", "install" and "uninstall"; a couple of further flaws
14387 especially with "clean" have been fixed too
14388 * as/mcs51/Makefile.in
14389 * as/mcs51/clean.mk
14393 * debugger/mcs51/Makefile.in
14394 * debugger/mcs51/clean.mk
14395 * link/z80/Makefile
14396 * link/z80/Makefile.in
14397 * link/z80/clean.mk
14399 * packihx/Makefile.in
14401 * sim/ucsim/Makefile
14402 * sim/ucsim/clean.mk
14403 * sim/ucsim/avr.src/Makefile.in
14404 * sim/ucsim/avr.src/clean.mk
14405 * sim/ucsim/s51.src/Makefile.in
14406 * sim/ucsim/s51.src/clean.mk
14407 * sim/ucsim/xa.src/Makefile.in
14408 * sim/ucsim/xa.src/clean.mk
14409 * sim/ucsim/z80.src/Makefile.in
14410 * sim/ucsim/z80.src/clean.mk
14411 * sim/ucsim/main_in.mk
14412 * sim/ucsim/packages_in.mk
14413 * sim/ucsim/gui.src/Makefile.in
14414 * sim/ucsim/gui.src/serio.src/Makefile.in
14415 * sim/ucsim/gui.src/serio.src/clean.mk
14418 * support/cpp2/Makefile.in
14419 * support/cpp2/clean.mk
14420 * support/makebin/Makefile
14421 * support/makebin/clean.mk
14422 * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14423 * doc/sdccman.lyx: --program-suffix no longer needed
14425 2003-04-23 Karl Bongers(apply patches for Martin Helmling)
14427 * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14428 Martin Helmling added support for ddd GUI debugger.
14429 Code added to display assembly, set variables, and other commands
14430 to interface to ddd.
14432 2003-04-23 Bernhard Held <bernhard AT bernhardheld.de>
14434 * as/Makefile: fix target clean
14435 * as/clean.mk: fix target clean
14436 * as/z80/clean.mk: fix target clean
14438 2003-04-22 Bernhard Held <bernhard AT bernhardheld.de>
14440 * Makefile.common.in: added AT EXEEXT AT
14441 * configure.in: removed all mingw32 stuff
14442 * configure: rebuilt from configure.in
14443 * doc/sdccman.lyx: updated section "installation"
14444 * support/scripts/sdcc_mingw32: adapted to configure
14445 * support/scripts/sdcc_cygwin_mingw32: added
14447 2003-04-22 Scott Dattalo <scott AT dattalo.com>
14449 * src/pic Added object file support for the PIC port
14450 * src/pic Applied patch from Craig Franklin (this started the object file support)
14451 * src/regression Updated the PIC regression tests for object files
14453 2003-04-20 Borut Razem <borut.razem AT siol.net>
14455 * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14456 lklex.c: In function `getfid':
14457 lklex.c:203: warning: array subscript has type `char'
14458 * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14459 with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14460 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14461 stack handling macros
14463 2003-04-19 Borut Razem <borut.razem AT siol.net>
14465 * "handling space characters in file path" task:
14466 * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14467 * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14468 * support/Util/MySystem.h: make it self-sufficient
14469 * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14470 src/z80/main.c, sdcc/as/mcs51/lklex.c:
14471 handling space characters in file path
14472 * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14473 (it will be used by assemblers, which have their own includes, e.g. gpasm)
14474 * support/Util/MySystem.c: handling space characters in executable's path
14476 2003-04-19 Bernhard Held <bernhard AT bernhardheld.de>
14478 * as/z80/Makefile: fix permanent rebuild of z80
14479 * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14480 * support/regression/tests/bitfields.c: added Johan's bitfields.c
14482 2003-04-18 Kevin Vigor <kevin AT vigor.nu>
14484 * src/SDCCopt.c: add special case optimization to replace modulo by
14485 a power of two with a bitwise AND.
14487 2003-04-18 <johan AT balder>
14489 * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14491 2003-04-17 <johan AT balder>
14493 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14494 * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14496 2003-04-13 Borut Razem <borut.razem AT siol.net>
14498 * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14499 * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14500 fixed mingw problem in adl_NORMALIZE_PATH
14502 2003-04-12 Borut Razem <borut.razem AT siol.net>
14504 * fixed "#pragma SAVE/RESTORE can not be nested":
14505 * src/SDCC.lex: reworked pragma handling functions
14506 * sdcc/src/SDCCglobl.h: reworked stack handling macros
14507 * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14509 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
14511 * src/SDCCutil.c (pathEquivalent): defined but not used
14512 * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14513 * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14514 * configure: rebuilt from configure.in
14515 * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14516 * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14517 * device/include/Makefile.in: replace sdcc_datadir
14518 * device/lib/Makefile.in: replace sdcc_datadir
14519 * Makefile.common.in: add LDFLAGS from configure
14520 * packihx/Makefile.in: use LDFLAGS
14521 * src/Makefile.in: use LDFLAGS
14522 * support/cpp2/Makefile.in: add LDFLAGS from configure
14523 * support/makebin/Makefile: use LDFLAGS
14524 * .version: bumped version number to 2.3.5
14526 2003-04-12 Borut Razem <borut.razem AT siol.net>
14528 * completed "different paths" task:
14529 * src/SDCCmacro.c: fixed bug in handling quotes
14530 * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14531 * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14533 2003-04-12 Bernhard Held <bernhard AT bernhardheld.de>
14535 * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14537 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14539 * ds390/gen.c ds390/peeph.def: fix bug 706781
14541 2003-04-11 Borut Razem <borut.razem AT siol.net>
14543 * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14545 2003-04-10 Scott Dattalo <scott AT dattalo.com>
14547 * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14548 * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14549 set - this bit used to not be set...).
14550 * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14551 bad code in PIC Port
14552 * src/regression/and2.c added to test bug 609268
14553 * src/regression/Makefile added and2.c to regression test
14556 2003-04-08 <johan AT CP255758-A>
14558 * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14559 * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14560 * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14562 2003-04-07 Bernhard Held <bernhard AT bernhardheld.de>
14564 * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14566 * support/cpp2/Makefile.in: fix bug #487815
14567 * configure: rebuilt from configure.in
14568 * Makefile.common.in: docdir changed, new path suffixes
14569 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14570 * sdcc_vc_in.h: reflect changes from sdccconf.h
14571 * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14572 * src/SDCCutil.h: remove BINDIR hack
14573 * doc/sdccman.lyx: update new path hierarchy
14575 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
14577 * src/SDCCpeeph.c: added okToRemoveSLOC test
14579 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
14581 * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14583 2003-04-06 Paul Stoffregen <paul AT pjrc.com>
14585 * src/SDCCpeeph.c: added labelIsReturnOnly test
14586 * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14588 2003-04-05 <johan AT balder>
14590 * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14591 * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14592 * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14593 * src/SDCCast.c: fixed a warning
14594 * src/SDCCast.h: fixed a warning
14595 * src/SDCCicode.c (operandFromAst): fixed a warning
14597 2003-04-04 <johan AT balder>
14599 * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14600 * src/SDCCast.c (decorateType): fixed bug #715076
14601 * src/SDCC.y: fixed bug #702907
14603 2003-04-03 <johan AT balder>
14605 * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14606 * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14607 * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14608 * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14609 * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14611 2003-04-03 Bernhard Held <bernhard AT bernhardheld.de>
14613 * _decdptr.c: fix return values
14614 * _gptrget.c: fix return values
14615 * _gptrgetc.c: fix return values
14616 * _gptrput.c: fix return values
14617 * _mulint.c: fix return values
14618 * as/z80/Makefile: fix 'make -j' problem
14620 2003-04-02 Bernhard Held <bernhard AT bernhardheld.de>
14622 * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14623 * configure.in: big cleanup, updated to autoconf 2.5x
14624 * configure: rebuilt from configure.in
14625 * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14626 * sdcc_vc_in.h: reflect changes from sdccconf.h
14627 * doc/Makefile: fixed a flaw in "make install"
14629 2003-04-02 <johan AT balder>
14631 * src/ds390/gen.c (genCmp): no comments
14632 * src/mcs51/gen.c (genCmp): no comments
14633 * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14634 * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14636 2003-04-01 Bernhard Held <bernhard AT bernhardheld.de>
14638 * support/regression/generate-cases.py: place generated file in given sub directory
14639 * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14640 * support/regression/Makefile: improvements for 'make -j';
14641 side effect: it's simpler and faster now
14643 2003-03-31 Borut Razem <borut.razem AT siol.net>
14645 * src/z80/main.c: link-{port} and as-{port} defined without path
14646 * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14648 2003-03-31 Bernhard Held <bernhard AT bernhardheld.de>
14650 * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14652 2003-03-30 Borut Razem <borut.razem AT siol.net>
14654 * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14655 changed type of list parameter to set
14656 * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14657 * src/port.h: changed type of do_assemble() parameter to set
14658 * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14659 sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14660 definition of "cppoutfilename" macro with NULL value in preProcess()
14661 * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14662 * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14663 * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14664 replaced with set *binPathSet
14665 * shash_add() deallocates the item, if allready exsists, before adding the new one
14666 * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14668 2003-03-30 Scott Dattalo <scott AT dattalo.com>
14670 * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14671 a nested for loop bug in the PIC port
14672 * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14675 2003-03-29 Bernhard Held <bernhard AT bernhardheld.de>
14677 * support/Util/dbuf.h: remove C++ stuff to make it portable
14679 2003-03-28 Borut Razem <borut.razem AT siol.net>
14681 * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14682 literal strings in stringLiteral()
14683 * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14684 * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14687 2003-03-27 Paul Stoffregen <paul AT pjrc.com>
14689 * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14691 2003-03-26 <johan AT balder>
14693 * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14694 * src/ds390/gen.c (saveRegisters): catched symbol abuse
14695 * src/SDCCast.c (decorateType): fixed " -v < 3"
14697 2003-03-23 Bernhard Held <bernhard AT bernhardheld.de>
14699 * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14700 Added Lenny Story's debug infrastructure changes:
14701 * src/Makefile.in: added new files cdbFile.c and SDCCdebug.c
14702 * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14703 * src/cdbFile.c: added
14704 * src/SDCCdebug.c: added
14705 * src/SDCCdebug.h: added
14706 * src/SDCCast.c (createFunction)
14707 * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14708 * src/SDCCmain.c (parseCmdLine, main)
14709 * src/SDCCmem.c (redoStackOffsets)
14710 * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14713 * src/avr/gen.c (genAVRCode)
14714 * src/ds390/gen.c (gen390Code)
14715 * src/mcs51/gen.c (gen51Code)
14716 * src/pic/gen.c (genpic14Code)
14717 * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14718 * src/xa51/gen.c (genXA51Code)
14719 * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14721 2003-03-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14723 * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14724 * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14726 2003-03-22 <johan AT balder>
14728 * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14730 2003-03-21 Bernhard Held <bernhard AT bernhardheld.de>
14732 * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14733 * doc/cdbfileformat.lyx: added, written by Lenny Story
14734 * doc/Makefile: added cdbfileformat.lyx
14735 * doc/clean.mk: added cdbfileformat.lyx
14737 2003-03-20 Bernhard Held <bernhard AT bernhardheld.de>
14739 * src/mcs51/peeph.def: fix bug #705773
14741 2003-03-20 <johan AT balder>
14743 An sfr/sbit can have an "at #" AND an initializer
14744 * src/SDCCsymt.c (checkSClass):
14745 * src/SDCCmem.c (allocGlobal):
14746 * src/SDCCmem.c (allocLocal):
14747 * src/SDCCast.c (createBlock):
14749 2003-03-17 Bernhard Held <bernhard AT bernhardheld.de>
14751 * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14753 2003-03-16 <johan AT balder>
14755 Undid the hackup of const and volatile, the problem is much bigger
14757 * src/SDCCast.c:1.171
14758 * src/SDCCglue.c:1.138
14759 * src/SDCCicode.c:1.146
14760 * src/SDCCsymt.c:1.150
14761 * src/SDCCval.c:1.65
14763 2003-03-15 Bernhard Held <bernhard AT bernhardheld.de>
14765 * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14766 * src/ds390/gen.c (genAddrOf): fixed bug #704087
14768 2003-03-13 <johan AT balder>
14770 Hackup const and volatile modifiers in type chains a bit:
14772 * src/SDCCast.c:1.169
14773 * src/SDCCglue.c:1.136
14774 * src/SDCCicode.c:1.143
14775 * src/SDCCsymt.c1.146
14776 * src/SDCCsymt.h1.59
14777 * src/SDCCval.c:1.63
14779 2003-03-12 <johan AT balder>
14781 * src/SDCCBBlock.h: more LRH debugging junk
14782 * src/SDCCcflow.h: more LRH debugging junk
14783 * src/SDCCloop.c: more LRH debugging junk
14784 * src/SDCC.y (struct_declaration): fixed bug #697590
14785 * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14786 * src/ds390/gen.c (aopForRemat): fixed bug #700031
14787 * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14789 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14790 * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14791 test function names must now match exactly).
14792 * src/SDCCcse.c: added special case in findCheaperOp to allow
14793 extending a short integer. Makes less awful code for bug 700121 test case.
14795 2003-03-11 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14797 * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14798 * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14800 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14802 * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14803 actually called (operandsNotEqual() was called for all
14804 operandsNotEqualX tests).
14806 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14808 * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14809 with shorter literals. Fixes bug 700121.
14811 2003-03-11 <johan AT balder>
14813 * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14815 2003-03-11 Bernhard Held <bernhard AT bernhardheld.de>
14817 * src/SDCCloop.c (mergeRegions): an evil beast is dead
14818 * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14820 2003-03-10 Borut Razem <borut.razem AT siol.net>
14822 * src/SDCCmain.c: pipe preprocessor's output
14823 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14824 * sdcc_vc_in.h: define pclose as _pclose for WIN32
14825 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14826 which closes all pipes in pipeSet set
14827 * src/SDCCset.c: free deleted item in function deleteSetItem()
14828 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14829 moved from z80 to src subproject
14830 * .version: increased version number to 2.3.4
14832 2003-03-10 Bernhard Held <bernhard AT bernhardheld.de>
14834 * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14835 * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14836 * support/regression/ports/xa51/spec.mk: fix typo
14838 2003-03-09 Bernhard Held <bernhard AT bernhardheld.de>
14840 * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14842 2003-03-09 Borut Razem <borut.razem AT siol.net>
14844 * src/SDCCmain.c: pipe preprocessor's output
14845 * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14846 * sdcc_vc_in.h: define pclose as _pclose for WIN32
14847 * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14848 which closes all pipes in pipeSet set
14849 * src/SDCCset.c: free deleted item in function deleteSetItem()
14850 * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14851 moved from z80 to src subproject
14853 2003-03-09 Borut Razem <borut.razem AT siol.net>
14855 * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
14856 * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
14857 * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
14858 * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
14859 * src/SDCCglobl.h: unification of WIN32 native definitions
14861 2003-03-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14863 * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
14865 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
14867 * src/configure.in: check for endianess (even while cross-compiling)
14868 * src/configure: check for endianess (even while cross-compiling)
14869 * src/configure_in.h: check for endianess (even while cross-compiling)
14870 * src/avr/gen.c: remove old endianess stuff
14871 * src/mcs51/gen.c: remove old endianess stuff
14872 * src/ds390/gen.c: remove old endianess stuff
14873 * src/pic/gen.c: remove old endianess stuff
14874 * src/pic/genarith.c: remove old endianess stuff
14875 * src/pic/glue.c: fix endianess check
14876 * src/pic16/gen.c: remove old endianess stuff
14877 * src/pic16/genarith.c: remove old endianess stuff
14878 * src/pic16/glue.c: fix endianess check
14879 * src/xa51/gen.c: remove old endianess stuff
14880 * src/z80/gen.c: fix endianess check
14881 * src/SDCCglue.c: fix endianess check
14882 * src/ds390/peeph.def: fix bug 700036
14884 2003-03-08 Bernhard Held <bernhard AT bernhardheld.de>
14886 * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
14887 * src/configure: find appropriate data-types on host for SDCC's int and long
14888 * src/configure.in: find appropriate data-types on host for SDCC's int and long
14889 * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
14890 * src/xa51/gen.c: use %d, not %ld for 4 byte variables
14892 2003-03-07 <johan AT balder>
14895 some minor cleanups before the big shot
14896 OP_DEFS and OP_USES now use Kevin's protection
14897 new option --nolabelopt
14899 * src/SDCCBBlock.c:
14908 * src/ds390/ralloc.c:
14909 * src/mcs51/ralloc.c:
14910 * src/pic/ralloc.c:
14911 * src/xa51/ralloc.c:
14912 * src/z80/ralloc.c:
14914 2003-03-06 Bernhard Held <bernhard AT bernhardheld.de>
14916 * src/pic/pcode.c (get_op): fix 64 bit warnings
14917 * src/pic/pcode.c (pCode2str): fix 64 bit warnings
14918 * src/SDCChasht.c (newHashTable): fix 64 bit warnings
14919 * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
14920 * support/regression/tests/malloc.c: fix 64 bit warnings
14922 2003-03-04 Bernhard Held <bernhard AT bernhardheld.de>
14924 * src/mcs51/gen.c (genMinus): fixed bug 696436
14926 2003-03-02 Borut Razem <borut.razem AT siol.net>
14928 * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
14930 2003-02-26 Bernhard Held <bernhard AT bernhardheld.de>
14932 * configure.in: test for mkstemp
14933 * sdccconf_in.h: add HAVE_MKSTEMP
14935 2003-02-24 Bernhard Held <bernhard AT bernhardheld.de>
14937 * device/include/ctype.h: removed warning while using --stack-auto
14938 * device/include/malloc.h: removed warning while using --stack-auto
14939 * device/include/string.h: removed warning while using --stack-auto
14941 2003-02-23 Borut Razem <borut.razem AT siol.net>
14943 * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
14944 because NDEBUG is defined (see man assert)
14945 * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
14947 2003-02-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14949 * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
14950 * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
14952 2003-02-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14954 * src/SDCCpeeph.c: added peephole conditions testing for same arguments
14955 * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
14957 2003-02-18 <johan AT balder>
14959 * as/mcs51/asmain.c (asmbl): module can start with a digit
14960 * as/z80/asmain.c (asmbl): module can start with a digit
14962 2003-02-16 Bernhard Held <bernhard AT bernhardheld.de>
14964 * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
14965 * src/asm.c: fix pipe() for Mingw32
14967 2003-02-15 Bernhard Held <bernhard AT bernhardheld.de>
14969 * src/SDCCglue.h: make tmpfileNameSet available for preOutName
14970 * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
14971 make -V work again; --c1mode reads now from stdin
14972 * doc/sdccman.lyx: added --c1mode
14973 * support/Util/SDCCerr.c: new messages for c1 mode
14974 * support/Util/SDCCerr.h: new messages for c1 mode
14975 * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
14977 2003-02-15 <johan AT balder>
14979 * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
14981 2003-02-14 Bernhard Held <bernhard AT bernhardheld.de>
14983 * doc/sdccman.lyx: Environment variables, -o and other minor things
14985 2003-02-14 <johan AT balder>
14987 * src/xa51/main.c: before anyone really tries to use it :)
14989 * Install doc's in share/sdcc/doc
14990 * removed some obsolete files
14991 * Do a proper make distclean and uninstall
14992 M Makefile.common.in
14995 M device/include/Makefile.in
14996 M device/lib/Makefile.in
14999 M sim/ucsim/doc/Makefile.in
15001 R src/avr/peeph.rul
15002 R src/xa51/peeph.rul
15003 M support/cpp2/Makefile.in
15004 M support/makebin/Makefile
15007 2003-02-13 Bernhard Held <bernhard AT bernhardheld.de>
15009 * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
15011 2003-02-10 Borut Razem <borut.razem AT siol.net>
15013 * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
15014 support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
15015 * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
15016 device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
15017 support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
15018 src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
15019 src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
15020 src/z80/Makefile.bcc: Borland Makefile cleanup
15021 * as/z80/Makefile.bcc: Added Borland Makefile
15022 * support/cpp2/borland.h: Removed
15024 2003-02-10 Bernhard Held <bernhard AT bernhardheld.de>
15026 * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
15027 * src/SDCC.lex: new pragma NOIV
15028 * src/SDCCglobl.h: new pragma NOIV
15029 * src/SDCCmem.c: new pragma NOIV
15031 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
15033 * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
15035 2003-02-09 Bernhard Held <bernhard AT bernhardheld.de>
15037 * src/SDCCmain.c: signal handling is switched off by --debug
15038 * doc/Makefile: small fix for install; use clean.mk again
15039 * doc/clean.mk: clean *.pdf and *.html too
15041 2003-02-08 Bernhard Held <bernhard AT bernhardheld.de>
15043 * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15044 * device/lib/printfl.c: fix a ds390 bug by making it portable
15045 * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15046 * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15047 * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15048 * debugger/mcs51/cmd.c: converted multi-line string literals
15049 * sim/ucsim/globals.cc: converted multi-line string literals
15050 * src/SDCCmain.c: introduced signal handler to remove temp files
15051 * doc/Makefile: small tweaks, implement clean
15052 * doc: removed generated files
15054 2003-02-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15056 * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c: Applied
15057 patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15058 Address Record is not correctly generated for DS390."
15060 2003-02-02 Borut Razem <borut.razem AT siol.net>
15062 * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15063 * as/mcs51/asm.h: fixed compilation with Borland C
15064 * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15065 * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15066 * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15067 * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15068 src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15069 src/z80/Makefile.bcc: delete $(LIB) only if exist
15070 * src/Makefile.bcc, src/pic/Makefile.bcc: fixed compilation with Borland C
15072 2003-02-02 Bernhard Held <bernhard AT bernhardheld.de>
15074 * device/include/malloc.h: introduced NULL
15075 * device/include/string.h: introduced NULL
15076 * device/include/stdlib.h: introduced NULL
15077 * device/lib/_memcpy.c: removed NULL
15078 * device/lib/_strcat.c: removed NULL
15079 * device/lib/_strchr.c: removed NULL
15080 * device/lib/_strcmp.c: removed NULL
15081 * device/lib/_strcpy.c: removed NULL
15082 * device/lib/_strcspn.c: removed NULL
15083 * device/lib/_strlen.c: removed NULL
15084 * device/lib/_strncat.c: removed NULL
15085 * device/lib/_strncmp.c: removed NULL
15086 * device/lib/_strncpy.c: removed NULL
15087 * device/lib/_strpbrk.c: removed NULL
15088 * device/lib/_strrchr.c: removed NULL
15089 * device/lib/_strspn.c: removed NULL
15090 * device/lib/_strstr.c: removed NULL
15091 * device/lib/_strtok.c: removed NULL
15092 * device/lib/malloc.c: removed NULL, include own header
15094 2003-02-02 <johan AT balder>
15096 * 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
15097 * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15098 * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15099 * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15100 * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15101 * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15103 2003-02-01 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15105 * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15108 2003-02-01 <johan AT balder>
15110 * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15112 2003-01-31 <johan AT CP255758-A>
15114 * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15116 2003-01-30 <johan AT balder>
15118 * src/SDCCBBlock.c: automatic bug detection
15119 * src/SDCCicode.c: automatic bug detection
15121 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15123 * src/SDCCglobl.h: now --xram-size 0 works
15124 * src/SDCCmain.c: now --xram-size 0 works
15126 2003-01-29 <johan AT balder>
15128 * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15130 2003-01-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15132 * as/mcs51/aslink.h: Added options --xram-size and --code-size
15133 * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15134 * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15135 * as/mcs51/lkmem.c: Added options --xram-size and --code-size
15136 * src/SDCCglobl.h: Added options --xram-size and --code-size
15137 * src/SDCCmain.c: Added options --xram-size and --code-size
15139 2003-01-28 Bernhard Held <bernhard AT bernhardheld.de>
15141 * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15142 * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15144 2003-01-27 <johan AT balder>
15146 * src/SDCC.y: fixed bug #613764
15148 2003-01-26 <johan AT balder>
15150 * src/SDCClrange.c: fixed Bernhard's "char * code ptr = &c"
15151 * src/SDCCsymt.h: fixed bug #673374
15152 * src/SDCCglue.c: fixed bug #661910
15153 * src/SDCCast.c: fixed bug #458099 and 673374
15155 2003-01-26 Bernhard Held <bernhard AT bernhardheld.de>
15157 * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15158 * as/mcs51/strcmpi.h: added
15159 * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15160 * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15161 * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15162 * as/mcs51/assym.c: strcmpi -> as_strcmpi
15163 * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15164 * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15165 * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15166 * as/mcs51/Makefile.aslink: new module strcmpi
15167 * as/mcs51/Makefile.asx8051: new module strcmpi
15168 * as/mcs51/Makefil.bcc: new module strcmpi
15169 * as/mcs51/Makefile.in: new module strcmpi
15170 * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15172 2003-01-26 <johan AT balder>
15174 * src/SDCCglue.c: reverted back to 1.124
15175 * src/SDCCast.c: reverted back to 1.156
15176 * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15178 2003-01-25 <johan AT balder>
15180 * src/SDCCglue.c: A better fix for bug #661910
15181 * src/SDCCast.c: A better fix for bug #661910
15182 * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15184 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
15186 * src/Makefile.in: remove spawn.o
15187 * src/SDCCmain.c: remove spawn.h
15188 * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15189 * src/spawn.c: removed
15190 * src/spawn.h: removed
15191 * support/regression/ports/ds390/spec.mk: link with -r
15193 2003-01-24 <johan AT CP255758-A>
15195 * src/ds390/gen.c (aopOp): fixed bug #667458
15196 * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15197 * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15198 (createIvalCharPtr): an ival doesn't always have a storage class anymore
15200 2003-01-24 Bernhard Held <bernhard AT bernhardheld.de>
15202 * src/mcs51/peeph.def: better assembler identation by Frieder
15203 * src/mcs51/gen.c: better assembler identation by Frieder
15205 2003-01-22 Bernhard Held <bernhard AT bernhardheld.de>
15207 * as/z80/string.h: removed for gcc 3.2
15208 * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15209 * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15211 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
15213 * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15214 * src/SDCCpeeph.c (replaceRule): fix bug #663503
15215 * support/regression/Makefile: separate temp files for ports
15216 * support/regression/generate-cases.py: separate temp files for ports
15217 * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15218 * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15220 2003-01-19 Bernhard Held <bernhard AT bernhardheld.de>
15222 * moved tinitalk to device/examples/ds390
15224 2003-01-14 Bernhard Held <bernhard AT bernhardheld.de>
15226 * as/mcs51/lkmem.c: rflag is for DS390
15227 * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15228 * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15229 (linkEdit): move mem- and map-files the same way as ihx-files
15230 * src/z80/main.c (_setDefaultOptions): removed --generic
15231 * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15232 * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15233 * src/pic/glue.c (picglue): --c1mode works again
15234 * src/pic16/glue.c (pic16glue): --c1mode works again
15235 * src/asm.c (printCLine): fix #660034
15237 2003-01-13 Bernhard Held <bernhard AT bernhardheld.de>
15239 * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15240 * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15241 * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15242 * as/mcs51/lkmem (summary): better fix for sp problem
15243 * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15244 * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15245 * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15246 remove --stack-after-data
15248 2003-01-12 Bernhard Held <bernhard AT bernhardheld.de>
15250 * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15251 * src/SDCCutil.c (join): ugly bug: missing '\0'
15252 * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15254 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
15256 * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15258 * src/pic/main.c (_asmCmd): gpasm supports -o
15259 * src/z80/main.c: more general macros
15260 * device/lib/Makefile.in: remove intermediate files
15262 2003-01-11 Bernhard Held <bernhard AT bernhardheld.de>
15264 * .version: Bumped version number to 2.3.3
15265 * src/SDCCBBlock.c: new option -o
15266 * src/SDCCglobl.h: new option -o
15267 * src/SDCCglue.c: new option -o
15268 * src/SDCCmain.c: new option -o
15269 * src/asm.c: new option -o
15270 * src/ds390/main.c: new option -o
15271 * src/pic/glue.c: new option -o
15272 * src/pic/pcode.c: new option -o
15273 * src/pic/ralloc.c: new option -o
15274 * src/pic16/glue.c: new option -o
15275 * src/pic16/pcode.c: new option -o
15276 * src/pic16/ralloc.c: new option -o
15277 * src/z80/main.c: new option -o
15278 * device/lib/Makefile.in: use -o
15279 * support/regression/ports/ds390/spec.mk: use -o
15280 * support/regression/ports/gbz80/spec.mk: use -o
15281 * support/regression/ports/mcs51/spec.mk: use -o
15282 * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15283 * support/regression/ports/z80/spec.mk: use -o
15284 * support/regression/ports/ucz80/spec.mk: use -o
15285 * support/regression/ports/xa51/spec.mk: use -o
15286 * support/regression/fwk/lib/timeout.c: fix usage string
15288 2003-01-09 Bernhard Held <bernhard AT bernhardheld.de>
15289 * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15291 2003-01-07 <johan AT balder>
15293 * src/SDCCast.c (decorateType): fixed bug #600035
15295 2003-01-07 Bernhard Held <bernhard AT bernhardheld.de>
15296 * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15297 * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15298 * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15299 * src/pic/pcode.c: outcommented unused variable to remove warnings
15300 * src/pic/ralloc.c: outcommented unused variable to remove warnings
15302 2003-01-06 <karl AT turbobit.com>
15303 * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15306 2003-01-06 <johan AT balder>
15308 * src/SDCCicode.c: fixed array add
15310 2002-01-05 Bernhard Held <bernhard AT bernhardheld.de>
15311 * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15312 * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15314 2003-01-04 <johan AT balder>
15316 * src/SDCCval.c (getNelements): fixed the initialized array of structures
15318 2002-12-29 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15319 * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15321 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
15322 * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15323 * support/regression/tests/bug-524697.c: fit mem usage into 8032
15325 2002-12-28 Bernhard Held <bernhard AT bernhardheld.de>
15326 * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15328 2002-12-27 Bernhard Held <bernhard AT bernhardheld.de>
15329 * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15331 2002-12-26 Bernhard Held <bernhard AT bernhardheld.de>
15332 * src/mcs51/main.c: removed {bindir}{sep} from aslink
15334 2002-12-10 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15336 * in /sdcc/as/mcs51/ changed these files in order to create an
15337 aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15338 lkmain.c. Also added: lkmem.c and lkaomf51.c. Changed the
15339 following files to include the previous two files: aslink.dsp,
15340 Makefile.aslink, Makefile.bcc, and Makefile.in.
15342 * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15343 .adb instead of .cdb
15345 2002-11-09 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15347 * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15348 value from option --iram-size.
15350 2002-09-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15352 * /sdcc/as/mcs51/lklist.c: added boundary check before using
15355 2002-09-18 <wiml AT hhhh.org>
15357 * SDCClrange.h: exposed setFromRange() and setToRange()
15358 * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15359 packRegsForAccUse() (bug 542397)
15360 * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15361 multiple times and emitting the fetch operations more than once
15362 added aopGetUsesAcc() function to allow binary operators to
15363 fetch their operands in the correct order; made genMinus() emit
15364 compact code for X = LITERAL - Y
15366 2002-09-00 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15367 * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15368 sprintf() in line 1267.
15370 2002-09-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15371 * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15374 2002-09-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15375 Changes to aslink (All the changes are marked with 'JCF'):
15377 * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15380 * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15381 area BSEG. Also moves, if possible, the DATA area down into the internal
15382 ram so more space is available.
15384 * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15387 * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15388 not bytes. Function summary() which creates a memory usage summary
15389 file with extension .mem. Reports of overlaping stack and small stack
15390 size. If the space for the stack is less than 16 bytes aslink trows a
15393 * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15394 the 8051. Option 'y' for memory summary output file.
15396 Changes to sdcc (All the changes are marked with 'JCF'):
15398 * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15400 * /sdcc/src/SDCCglue.c: If a register bank is used, creates an
15401 overlaying area for it (uses RegBankUsed[4]).
15403 * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15404 bank zero as used by default. By default aslink locates the stack
15405 (equivalent to --stack-after-data). Pass option 'y' to aslink for
15406 the creation of the .mem file. Delegates the allocation of data area
15407 to aslink (it is not longer 0x30 by default). If --stack-loc passes
15408 the begining of the stack area to aslink.
15410 * /sdcc/src/SDCCmem.c: If a register bank is used, marks it so
15411 glue() in SDCCglue.c creates an area for it.
15413 2002-09-03 Borut Razem <borut.razem AT siol.net>
15414 * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15415 sdcc/src/pic/glue.c:
15416 introduced atexit() handler for teporay files removal in case of
15417 errors, assertions, ...
15419 2002-08-29 Borut Razem <borut.razem AT siol.net>
15420 * sdcc/support/cpp2/auto-host_vc_in.h:
15421 re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15422 with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15423 Maybe there is a similar problem with BORLANDC? It should be checked!
15425 * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15426 corrected improper use of assert: the assignment to clr variable was done inside the assert.
15427 In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15428 was not executed, and the compiler (cl) launched a warning:
15429 ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15431 2002-08-28 Bernhard Held <bernhard AT bernhardheld.de>
15432 * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15434 2002-08-28 Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15435 * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15437 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15438 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15439 sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15440 sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15441 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15442 sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15443 sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15444 - added Release configuration in VS projects
15445 - review of compiler an linker options
15446 - VC .exe files are generated in bin_vc directory, not to interfere
15447 with binaries generated from other projects (cygwin, mingw, bcc ...)
15449 * sdcc/src/yacc.dsp: added
15451 * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15452 added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15453 and insert the version number definitions from .version
15455 * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15457 * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15458 added - genarate auto-host.h using auto-host_vc_in.h as template
15461 removed from CVS, generated automatically
15463 2002-08-25 Bernhard Held <bernhard AT bernhardheld.de>
15464 * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15466 2002-08-11 Borut Razem <borut.razem AT siol.net>
15467 * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15469 2002-08-10 Borut Razem <borut.razem AT siol.net>
15470 * src/SDCCmain.c (main):
15471 file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15472 platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15473 The consequence was that some temporary files were not removed.
15476 unification of code in functions tempfilename() and tempfile():
15477 function tempnam() is defined in Visual Studio 6.0 and .NET
15479 * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15481 * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15482 sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15483 - removed compiler command line option /WX: Treats all warnings as errors
15484 - update a list of source files, included into the project
15486 * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15487 sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15488 changed project type to Generic Project so that can be correcly converted to VS.NET project
15490 * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15492 * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15494 * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15496 * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15497 added return 0 statements after assert() to make compiler happy
15499 * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15500 added newline in the def file to keep MSC compiler satisfied
15502 * sdcc/src/z80/gen.c:
15503 - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15504 so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15505 - solved MSC error in function aopDump()
15507 * sdcc_vc.h: define PREFIX as "\\sdcc"
15509 2002-07-18 Bernhard Held <bernhard AT bernhardheld.de>
15510 * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15512 2002-06-22 Scott Dattalo <scott AT dattalo.com>
15513 * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15514 - Rewrote the register banking algorithm.
15515 - Added pCode live-range analysis to registers (for now, only non-used and
15516 singly-used registers optimized away)
15518 * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15520 * 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.
15522 2002-05-10 Scott Dattalo <scott AT dattalo.com>
15523 * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15525 2002-04-22 Michael Hope <michaelh AT vroom>
15527 * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15529 * configure.in (DD_COPT): Added include support required for gbdk.
15531 * .version: Bumped version number just to increase it.
15533 * src/SDCCmain.c: Added -nostdinc to the default options.
15535 2002-04-15 Michael Hope <michaelh AT vroom>
15537 * device/lib/z80/printf.c (sprintf): Added.
15539 * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15541 * src/z80/peeph.def: Added transpose redundent load rule.
15543 * src/z80/main.c: Added force callee saves for jaune.
15545 * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15547 * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15549 2002-03-28 Johan Knol <johan AT balder>
15551 * src/SDCCval.c: fixed bug #532436
15553 2002-03-14 Scott Dattalo <scott AT dattalo.com>
15555 Added "char *Processor" field to the port structure.
15558 Added -p option. Allows port dependent processor to be specified.
15561 Initialized the new field char *Processor field to NULL in all ports
15564 Compiler generated registers for interrupt context saving
15565 were not getting allocated.
15567 2002-03-16 Sandeep Dutta <sandeep AT ddi.com>
15570 Fixed left shift. Will promote the left side of a left shift
15571 if a) left shifting more than size of operand or b) when assigned
15572 to something size > size of left side
15574 2002-03-14 Scott Dattalo <scott AT dattalo.com>
15576 tons of changes. Register allocation has been
15577 rewritten. Added customization for the various PICs. Flow
15578 analysis is restructured. ...
15580 * src/pic/device.h:
15583 * src/pic/device.c:
15584 Added. device.c is a PIC port hack to accomodate variations
15587 2002-03-13 Michael Hope <michaelh AT vroom>
15589 * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled. Yeah.
15591 2002-03-04 johanknol <johanknol AT manik>
15593 * /src/SDCCval.c: fixed
15595 const unsigned char arr[][2] = { { 0, 1 } };
15596 t18.c:1: error: Initializer element is not constant
15598 2002-03-04 bela <bela AT manik>
15600 * /device/include/mcs51reg.h:
15601 ds89c420 register definition update
15603 2002-03-03 <johan AT FRIJA>
15605 * support/Util/SDCCerr.c: did something, but don't no why anymore
15607 * support/regression/tests/bug-524691.c: made it a little less shy
15609 * src/SDCCast.c (decorateType): fixed bug #524697
15611 * src/SDCCast.c: made some lineno improvements
15613 * src/SDCCval.c (getNelements): changed warning to error
15615 * src/SDCCglue.c (printIvalArray): changed warning to error
15617 * src/SDCCicode.c: fixed a warning for mingw
15619 * src/SDCCast.c (decorateType): fixed the << promotion for ops
15621 * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15623 2002-03-02 Sandeep Dutta <sandeep AT ddi.com>
15625 * src/ds390/peeph.def:
15626 Added some more peephole rules
15628 * src/ds390/gen.c: Various fixes & enhancements
15630 * src/SDCClrange.c, src/SDCClrange.h:
15631 functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15633 * src/ds390/ralloc.c:
15634 various fixes & enhancements (ds390) specific
15636 * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15637 Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15640 * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15642 2002-03-02 <johan AT FRIJA>
15644 * src/SDCCast.c (decorateType): fixed bug #524708
15646 * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15648 * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15650 2002-03-01 Michael Hope <michaelh AT vroom>
15652 * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15654 * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15656 2002-03-01 <johan AT FRIJA>
15658 * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15660 * src/SDCCast.c (decorateType): fixed bug #524209
15662 * src/SDCCval.c (valNot): fixed bug #524195
15664 2002-02-26 <johan AT balder>
15666 * src/xa51/gen.c: fixed a warning
15668 * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15670 * src/SDCCast.c (decorateType): fixed bug #522534
15672 2002-02-23 <johan AT balder>
15674 * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15676 2002-02-22 <johan AT balder>
15678 * src/SDCCast.c: fixed bug #514865
15680 * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15682 2002-02-21 Sandeep Dutta <sandeep AT ddi.com>
15684 * sdcc/src/SDCCloop.c:
15685 Previous fix was not good. basic blocks that have "break" or "return" are
15686 not really partof a loop , but live ranges used in these blocks should
15687 be live thru the entire loop, so set partOfLoop but don't add them to
15690 2002-02-21 <johan AT FRIJA>
15692 * src/SDCCcse.c: fixed bug #514308
15694 2002-02-20 Sandeep Dutta <sandeep AT ddi.com>
15697 Fixed BUG #519583. If a conditional block ended in a return/break
15698 statement inside a loop, it was not being considered part of the loop.
15700 * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15702 2002-02-10 Karl Bongers <karl AT turbobit.com>
15705 Fixed up SDCDB debugger somewhat. Updated debugger/README
15706 with lots of comments and notes.
15708 * device/examples/test2.c:
15709 Fix bug, "red" variable not being initialized(compiler complained).
15711 * device/examples/Makefile, examples/test3.c:
15712 Add Makefile in device/examples folder, compiles test3.c
15713 for use as a multiple module SDCDB test case.
15715 * sim/ucsim/cmd.src/cmdset.cc:
15716 Took out debug printfs in ucsim "next" command.
15718 * sim/ucsim/xa.src:
15719 Karl and Johan start ucsim XA support. Most dissassembly working,
15720 about 75% emulation done(plenty of work remaining).
15722 * sim/ucsim/z80.src:
15723 Add Z80 support to ucsim, add test-ucz80 regression test,
15724 notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15725 Notice z80 compiler fails on examples/test3.c/crc code.
15727 2002-01-30 Sandeep Dutta <sandeep AT ddi.com>
15729 * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15730 Added support for --parms-in-bank1
15732 * src/ds390/peeph.def:
15733 added a few more peephole optimzations
15735 * src/ds390/main.c:
15736 1) added __builtin_inp & __builtin_outp used to read in data of given length
15737 from a memory mapped port
15738 2) added __builtin_memcmp
15739 3) added __builtin_swapw swap bytes of a short
15741 * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15742 1) handle multiple send & receives from register bank1
15743 2) ralloc can now allocate DPTR1 to some liveRanges
15745 * src/SDCCsymt.c, src/SDCCsymt.h:
15746 changes to handle multiple sends & receives
15748 * src/SDCCptropt.h:
15749 added some pointer arithmetic optimization
15751 * src/SDCCptropt.c:
15752 added some pointer arithmetic optimizations but not stable yet so not
15753 called from anywhere (will get this working shortly)
15755 * src/SDCCopt.c: fixed for multiple sends & receives
15758 1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15759 2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15760 set preprocessor defines (depending on options)
15762 * src/SDCCicode.c, src/SDCCicode.h:
15763 changes made to handle multiple sends & receives
15766 Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15768 * src/SDCCcse.c, src/SDCCcse.h:
15769 added function findbackward def (to be used in upcoming optimization)
15771 * src/SDCCcflow.c, src/SDCCcflow.h:
15772 added function returnAtEnd - to determine if a basic block terminates with
15775 * src/SDCCast.c, src/SDCCast.h:
15776 added option parms-in-bank1
15778 * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15779 * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15780 * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15781 adjusted for --parms-in-bank1 option
15783 * device/include/string.h:
15784 donot redefine "reentrant" keyword
15786 * device/include/ds80c390.h: Added some more SFRs
15788 2002-01-28 Bernhard Held <bernhard AT bernhardheld.de>
15790 * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15792 2002-01-26 Bernhard Held <bernhard AT bernhardheld.de>
15794 * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15796 2002-01-22 Bernhard Held <bernhard AT bernhardheld.de>
15798 * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15800 2002-01-18 Paul Stoffregen <paul AT pjrc.com>
15802 * Added --xram-movc option
15804 2002-01-13 Bernhard Held <bernhard AT bernhardheld.de>
15806 * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15808 2002-01-11 Johan Knol
15810 * Added math lib of Jesus Calvino-Fraga
15812 2002-01-08 Bernhard Held <bernhard AT bernhardheld.de>
15814 * src/SDCCmain.c (processFile): fix processing of ../../src.c
15815 * support/regression/Makefile: new target test-mcs51-stack-auto
15816 * support/regression/ports/mcs51-stack-auto/spec.mk: added
15818 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
15820 * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15822 2002-01-04 Bernhard Held <bernhard AT bernhardheld.de>
15824 * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15826 2002-01-03 Bernhard Held <bernhard AT bernhardheld.de>
15828 * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15830 * src/SDCCglue.h: add definition for printIvalChar()
15832 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
15834 * src/SDCCast.c: fix #498138 by Johan
15836 * src/SDCCglue.c: fix #498138 by Johan
15838 2002-01-02 Bernhard Held <bernhard AT bernhardheld.de>
15840 * support/regression/Makefile: fix clean
15842 * support/regression/ports/ds390/support.c: fix transmission of last character
15844 2001-12-29 Sandeep Dutta <sandeep AT ddi.com>
15846 * /sdcc/src/ds390/gen.c:
15847 a) improved computing address of stack variable
15848 b) took out some #if 0 code
15849 c) improved parmBytes adjustment
15850 d) improved genPlusIncr & genMinusIncr
15851 e) genCmp could generate bad code (when left assigned to DPTR)
15852 f) Fixed bug in hasInc
15854 * /sdcc/src/ds390/ralloc.c:
15855 a) packRegsForSupport could mess up live information (Fixed)
15856 b) packRegsDPTRuse could be incorrect for left & right shift
15858 * /sdcc/src/mcs51/ralloc.c:
15859 packRegsForSupport could mess up the live information (Fixed)
15861 * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
15863 * /sdcc/src/SDCCast.c:
15864 can reverse a loop even if function call is present as long
15865 as the loop control variable is local & is not passed as parameter
15867 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
15869 * /sdcc/ChangeLog: *** empty log message ***
15871 * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
15872 More builtin function additions for TININative
15874 * /sdcc/src/ds390/ralloc.c:
15875 Had broken the regression testsuite
15877 * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
15879 * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
15880 Added funcattr hasStackParms will be set for reentrant functions when there
15881 are paramteres on the stack, this helps in minimizing frame pointer generation
15882 typeFromStr can handle function pointers now
15884 * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
15885 *** empty log message ***
15887 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
15889 * /src/ds390/gen.c, /src/ds390/main.c:
15890 More builtin function additions for TININative
15892 * /src/ds390/ralloc.c:
15893 Had broken the regression testsuite
15895 * /src/SDCCast.c: Fixed a bug in dumptree
15897 * /src/SDCCsymt.c, /src/SDCCsymt.h:
15898 Added funcattr hasStackParms will be set for reentrant functions when there
15899 are paramteres on the stack, this helps in minimizing frame pointer generation
15900 typeFromStr can handle function pointers now
15902 * /doc/builtins.txt, /doc/TININative.txt:
15903 *** empty log message ***
15906 2001-12-24 Sandeep Dutta <sandeep AT ddi.com>
15908 * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
15909 ALPHA version for -mTININative
15911 * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
15912 updated to reflect changes in the port structure
15915 added function do_assemble (similar to do_link) if non-null this function
15916 will be called to do assembly (-mTININative) requires a multi command
15918 added function genAssemblerEnd will be called to generate assembler Epilogue
15921 added _JavaNative to debug info printing
15923 * /src/SDCCmain.c: added option --tini-libid
15924 added port->do_assemble function (-mTININative) has a multi command assemble
15926 * /src/SDCCglue.c: Disabled "constExpr" check
15927 added port->genAssemblerEnd function
15929 * /src/SDCCglobl.h: Added option --tini-libid value
15932 tookout optimizeCompare from the header (has no external references)
15934 * /src/SDCCast.c: made one more function "static"
15936 2001-12-23 Michael Hope <michaelh AT juju.net.nz>
15938 * src/z80/mappings.i: Added z80asm support.
15940 * src/z80/main.c: Added z80asm support on --asm=z80asm
15942 * src/z80/gen.c: Fixed asm portability issues.
15944 * src/asm.c (tvsprintf): Removed old code, added 'N' for function name. For extern support.
15946 * src/SDCCglue.c (printExterns): Added global/extern split.
15948 2001-12-17 Bernhard Held <bernhard AT bernhardheld.de>
15950 * support/regression/Makefile: added test for mcs51 model large
15952 * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
15954 * support/regression/ports/gbz80/spec.mk: added -mgbz80
15956 2001-12-05 Michael Hope <michaelh AT juju.net.nz>
15958 * src/diff.1 (Index): Many, many optmisiations. Dhrystone up to 201.
15960 1904-01-06 Michael Hope <michaelh AT juju.net.nz>
15962 * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
15964 * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
15966 2001-12-02 Bernhard Held <bernhard AT bernhardheld.de>
15968 * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
15970 * support/regression/tests/simplefloat.c: Port to mcs51.
15972 2001-11-25 Michael Hope <michaelh AT juju.net.nz>
15973 * support/regression/tests/bug-485362.c: Added.
15975 * support/regression/tests/simplefloat.c (testDivNearOne): Added.
15977 * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
15979 * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
15981 * src/z80/gen.c (aopDump): Added a dump function.
15983 2001-11-25 Bernhard Held <bernhard AT bernhardheld.de>
15984 * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
15986 * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
15988 * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
15990 * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
15992 * sim/ucsim/s51.src/uc390cl.h: Work in progress.
15994 * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
15996 * support/regression/fwk/lib/testfwk.c: Run with tinibios.
15998 * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16000 * support/regression/ports/ds390/support.c: Use tinibios.
16002 * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
16004 2001-11-23 Michael Hope <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
16006 * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
16007 (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
16009 * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
16011 * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
16013 2001-11-18 Michael Hope <michaelh AT juju.net.nz>
16015 * src/z80/gen.c (genCmp): Fixed compare on unsigned.
16017 * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
16018 (packRegsForIYUse): Created and optimised.
16020 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
16022 * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
16023 2001-11-18 Bernhard Held <bernhard AT bernhardheld.de>
16025 * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
16027 * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
16029 * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
16031 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
16033 * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
16035 * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
16037 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
16039 * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16041 * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16043 * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16045 2001-11-07 Michael Hope <michaelh AT juju.net.nz>
16047 * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16048 (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16049 (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16051 * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16053 * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16054 (genNotFloat): Added.
16055 (genUminusFloat): Added.
16057 * device/lib/z80/Makefile: Added floating pt stubs.
16059 * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16061 * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16063 * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16065 2001-11-07 Bernhard Held <bernhard AT bernhardheld.de>
16067 * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16069 * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16071 * sdcc/support/regression/Makefile: Add port ds390.
16073 * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16075 * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16077 * sdcc/support/regression/ports/ds390/spec.mk: Added.
16079 * sdcc/support/regression/ports/ds390/support.c: Added.
16081 * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16083 * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16085 * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16087 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
16089 * device/include/malloc.h: Added z80 and gbz80 support.
16091 * device/lib/gbz80/heap.s: Added.
16093 * device/lib/z80/heap.s: Added.
16095 * device/lib/malloc.c: Added z80 and gbz80 support.
16097 * support/regression/tests/malloc.c (testMalloc): Added.
16099 * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16101 * support/regression/tests/bug-478094.c: Added.
16103 * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16105 2001-11-04 Bernhard Held <bernhard AT bernhardheld.de>
16107 * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16109 * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16111 * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16113 * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16115 * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16117 2001-11-04 Michael Hope <michaelh AT juju.net.nz>
16119 * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16121 2001-11-03 Michael Hope <michaelh AT juju.net.nz>
16123 * support/regression/tests/bug-477927.c: Added.
16125 * src/z80/peeph.def: Added minor rules.
16127 * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16129 * src/z80/peeph.def: Added jump optimisation modification.
16131 2001-11-01 Michael Hope <michaelh AT juju.net.nz>
16133 * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16135 2001-10-30 Michael Hope <michaelh AT juju.net.nz>
16137 * support/regression/tests/funptrs.c: Added.
16139 2001-10-29 Michael Hope <michaelh AT juju.net.nz>
16141 * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16143 2001-10-28 Michael Hope <michaelh AT juju.net.nz>
16145 * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16147 * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16149 * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16150 (movLeft2ResultLong): Created.
16152 * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16153 (joinPushes): Added. Joins two char pushes into a word push.
16155 2001-10-27 Michael Hope <michaelh AT juju.net.nz>
16157 * support/cpp2/Makefile.in (install): Added creation of dest dir.
16159 * support/makebin/Makefile (install): Added creation of dest dir.
16161 2001-10-24 Karl Bongers <karl AT turbobit.com>
16163 * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16165 2001-10-21 Michael Hope <michaelh AT juju.net.nz>
16167 * src/z80/ralloc.c: Turned off faulty pack for one use.
16169 * src/z80/peeph-gbz80.def: Removed redundent restart options.
16171 * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16173 2001-10-21 Bernhard Held <bernhard AT bernhardheld.de>
16175 * support/regression/Makefile: Improved clean
16177 * support/regression/ports/gbz80/spec.mk: Added clean
16179 * support/regression/ports/host/spec.mk: Added clean
16181 * support/regression/ports/z80/spec.mk: Added clean
16183 * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16185 * support/regression/ports/mcs51/timeout.c: little improvements
16187 2001-10-17 Michael Hope <michaelh AT juju.net.nz>
16189 * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16191 * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16193 * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16195 2001-10-16 Bernhard Held <bernhard AT bernhardheld.de>
16197 * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16199 * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16201 2001-10-13 Michael Hope <michaelh AT juju.net.nz>
16202 * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16204 * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16206 * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16208 * src/mcs51/main.c (_linkCmd): Added bin path to command.
16210 * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16212 * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16214 * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16216 * support/regression/tests/longor.c: Added.
16218 2001-10-11 Bernhard Held <bernhard AT bernhardheld.de>
16220 * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16222 * as/mcs51/aslink.h: define PATH_MAX
16224 * as/mcs51/asm.h: define PATH_MAX
16226 * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16228 * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16230 * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16232 * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16234 * src/SDCCglobl.h: define PATH_MAX
16236 * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16238 * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16240 2001-10-11 Michael Hope <michaelh AT juju.net.nz>
16242 * src/z80/gen.c (gencjneshort): Fixed
16244 * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16246 2001-10-09 Michael Hope <michaelh AT juju.net.nz>
16248 * support/regression/tests/bug-469671.c: Added.
16250 * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16252 2001-10-08 Michael Hope <michaelh AT juju.net.nz>
16254 * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16256 * src/z80/gen.c (genPlus): Fixed to work with extended stack. Also fixed genMinus, genCmp. genUMinus is still left.
16258 2001-10-08 Bernhar Held <bernhard AT bernhardheld.de>
16260 * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16262 * src/device/lib/_mulint.c : removed hint: nooverlay bug
16264 * src/device/lib/_mullong.c : removed hint: nooverlay bug
16266 * src/device/lib/_divuint.c : removed hint: nooverlay bug
16268 * src/device/lib/_divulong.c: removed hint: nooverlay bug
16270 * src/device/lib/_moduint.c : removed hint: nooverlay bug
16272 * src/device/lib/_modulong.c: removed hint: nooverlay bug
16274 2001-10-07 Michael Hope <michaelh AT juju.net.nz>
16276 * 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.
16278 * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all. Fixes runtime segfault.
16280 * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16282 2001-10-07 <johan AT FRIJA>
16284 * device/lib/gets.c (gets): fixed the return value.
16286 2001-10-06 Michael Hope <michaelh AT juju.net.nz>
16287 * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16289 * 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.
16291 * 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.
16293 * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16295 * src/pic/gen.c: Removed Safe_strdup.
16297 * configure.in: Added option to enable libgc support.
16299 * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16300 (bitVectUnion): Optimised.
16301 (bitVectIntersect): Optimised.
16302 (bitVectBitsInCommon): Optimised.
16303 (bitVectCplAnd): Optimised.
16305 * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it. Sigh.
16307 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16309 * src/SDCCmain.c: distinguish between assembler debug and plain options
16311 * src/avr/main.c: remove standard assembler options
16313 * src/ds390/main.c: remove standard assembler options
16315 * src/mcs51/main.c: remove standard assembler options
16317 * src/port.h: removed "PENDING" comment
16319 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16321 * src/device/lib/_mulint.c : new, with assember functions
16323 * src/device/lib/_mullong.c : new, with assember functions
16325 * src/device/lib/_divuint.c : with assember functions
16327 * src/device/lib/_divsint.c : with assember functions
16329 * src/device/lib/_divulong.c: with assember functions
16331 * src/device/lib/_divslong.c: with assember functions
16333 * src/device/lib/_moduint.c : with assember functions
16335 * src/device/lib/_modsint.c : with assember functions
16337 * src/device/lib/_modulong.c: with assember functions
16339 * src/device/lib/_modslong.c: with assember functions
16341 * src/device/lib/libint.lib: replaced _muluint.c and _mulsint.c by _mulint.c
16343 * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16345 * src/device/lib/Makefile.in: replaced _muluint.c and _mulsint.c by _mulint.c
16346 replaced _mululong.c and _mulslong.c by _mullong.c
16348 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16350 * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16352 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16354 * src/SDCCglue.c: test, if win32api is available for MINGW
16356 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16358 * src/SDCCsymt.c: no more _modifier in printTypeChain()
16359 * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16360 * support/regression/ports/gbz80/spec.mk: removed GENERIC
16361 * support/regression/ports/host/spec.mk: removed GENERIC
16362 * support/regression/ports/mcs51/spec.mk: removed GENERIC
16363 * support/regression/ports/z80/spec.mk: removed GENERIC
16365 2001-10-01 Michael Hope <michaelh AT juju.net.nz>
16367 * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16369 * support/regression/tests/bug-467035.c: Created.
16371 2001-10-01 <johan AT FRIJA>
16373 * src/SDCC.y: fixed bug #466586 part 1
16375 2001-10-01 Johan Knol <johan.knol AT iduna.nl>
16377 * SDCCicode.c: z80 has no generic pointers
16378 * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16380 2001-09-30 Michael Hope <michaelh AT juju.net.nz>
16382 * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16384 2001-09-29 Michael Hope <michaelh AT juju.net.nz>
16386 * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16388 * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16390 2001-09-25 Michael Hope <michaelh AT juju.net.nz>
16392 * configure.in: Fixed up so that ucsim is only configured once.
16394 * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16396 * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16397 (getPathDifference): As above.
16399 * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory. Fixed case where pre-processing only.
16401 * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16403 2001-09-23 Michael Hope <michaelh AT juju.net.nz>
16404 * .version: Updated to 2.3.1
16406 * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16407 Added copyright header.
16409 * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16410 (assemble): Added support for macro based assembler commands.
16411 (linkEdit): Added support for macro based linker commands.
16412 (preProcess): Changed the pre-processor to use macros.
16413 (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16414 (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16416 * device/lib/z80/crt0.s: Added module name for debugging.
16418 2001-09-20 Michael Hope <michaelh AT juju.net.nz>
16420 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16422 * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16424 * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16426 * src/Makefile.in: Added SDCCmacro and SDCCutil
16428 2001-09-19 Michael Hope <michaelh AT juju.net.nz>
16430 * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16432 2001-09-16 <johan AT FRIJA>
16434 * 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.
16436 2001-09-15 <johan AT FRIJA>
16438 * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16439 * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16441 2001-09-11 <johan AT FRIJA>
16443 * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16445 2001-09-10 Michael Hope <michaelh AT juju.net.nz>
16447 * support/regression/tests/bug-460444.c: Added test case.
16449 * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16450 (genCast): Added justification for all of the asserts.
16452 2001-09-10 Bernhard Held <bernhard AT bernhardheld.de>
16454 * support/regression/support.c: _xdata replaced by xdata
16456 * support/regression/spec.mk: removed _generic
16458 2001-09-09 Michael Hope <michaelh AT juju.net.nz>
16460 * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16462 * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16463 (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16465 * src/z80/peeph.def: Added a rule to optimise shift then compare.
16467 * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16469 * support/regression/tests/bug-460010.c: Added test case.
16471 * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16473 2001-09-09 Bernhard Held <bernhard AT bernhardheld.de>
16475 * support/regression/Makefile: inter-port-clean adjusted for mcs51
16477 * support/regression/testfwk.c: removed workaround for bug #436344
16479 * support/regression/tests/bp.c: use less memory with mcs51
16481 * support/regression/tests/bug-441448.c: use less memory
16483 * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16485 * support/regression/collate-results.py: typo
16487 2001-09-08 Michael Hope <michaelh AT juju.net.nz>
16489 * support/regression/tests/fetchoverlap.c: Added new test case.
16491 * support/regression/tests/bp.c: Added new test case.
16493 * support/regression/tests/bug-448984.c: Added new test case.
16495 * support/regression/tests/pow2shifts.c: Added new test case.
16497 * src/z80/gen.c: Turned off the noise it normally generates for the release.
16498 (genlshTwo): Fixed right shift for count > 8.
16500 * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16502 2001-09-08 <johan AT FRIJA>
16504 * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16506 2001-09-07 <johan AT FRIJA>
16508 * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16510 * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16512 2001-09-06 <johan AT FRIJA>
16514 * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16515 * bernhard noted me at this: "() equals to (void)" (1.38)
16517 2001-09-05 <johan AT FRIJA>
16519 * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16521 2001-09-04 <johan AT FRIJA>
16523 * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16526 2001-09-04 Paul Stoffregen <paul AT pjrc.com>
16528 * pragma noinduction broke memcpy on mcs51 large model. Moved it inside z80 optimization
16530 2001-09-03 Michael Hope <michaelh AT juju.net.nz>
16532 * link/z80/aslink.h: Fixed path for PATH_MAX
16534 2001-09-02 Michael Hope <michaelh AT juju.net.nz>
16536 * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16538 * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16540 * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16542 * 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.
16544 2001-09-01 Michael Hope <michaelh AT juju.net.nz>
16546 * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16547 (genCmp): Fixed up genCmp for the GB with longs.
16549 * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16551 * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16553 * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16555 * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16557 2001-08-30 Paul Stoffregen <paul AT pjrc.com>
16559 * added peepholes 223 to 231 to mcs51 port. These improve code when using large model.
16561 2001-08-30 Michael Hope <michaelh AT juju.net.nz>
16563 * 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.
16565 * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16567 2001-08-29 Michael Hope <michaelh AT juju.net.nz>
16569 * link/z80/aslink.h: Fixed long file name support. Is now based off PATH_MAX instead of a constant.
16571 * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16573 2001-08-30 Bernhard Held <bernhard AT bernhardheld.de>
16575 * sim/ucsim/configure: little improvement of Cygwin-detection
16576 * sim/ucsim/configure.in: little improvement of Cygwin-detection
16577 * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16578 * support/regression/tests/bug-221100.c: small changes for mcs51
16579 * support/regression/tests/bug-221168.c: small changes for mcs51
16580 * support/regression/tests/bug-227710.c: small changes for mcs51
16581 * support/regression/tests/staticinit.c: small changes for mcs51
16582 * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16583 * as/mcs51/lklex.c: accept everything as symbol name in rel-files, bug fix ID 452601
16584 * as/mcs51/lksym.c: accept everything as symbol name in rel-files, bug fix ID 452601