* device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
[fw/sdcc] / ChangeLog
1 2008-09-15 Borut Razem <borut.razem AT siol.net>
2
3         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
4           device/lib/pic16/libc/stdio/printf.c,
5           device/lib/pic16/libc/stdio/strmusart.c,
6           device/lib/pic16/libc/stdio/printf_tiny.c,
7           device/lib/pic16/libc/stdio/sprintf.c,
8           device/lib/pic16/libc/stdio/strmgpsim.c,
9           device/lib/pic16/libc/stdio/putchar.c,
10           device/lib/pic16/libc/stdio/fprintf.c,
11           device/lib/pic16/libc/stdio/strmmssp.c,
12           device/device/lib/pic16/libc/stdio/vprintf.c,
13           device/lib/pic16/libc/stdio/printf_small.c,
14           device/lib/pic16/libc/stdio/vsprintf.c,
15           device/lib/pic16/libc/stdio/strmputchar.c,
16           device/lib/pic16/libc/Makefile.am,
17           device/lib/pic16/libc/Makefile.in:
18           *printf now returns int, puchar.c moved from stdlib to stdio,
19           *printf format parameter type changed from char * to const char *,
20           added GNU link excetion text to library source files,
21           applyed GNU coding style, removed useless svn ids,
22           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
23           binary specifier: "%b", "%hb" and "%lb"
24         * device/lib/pic16/libc/stdio/vfprintf.c:
25           applied patch #2044424: PIC16: vfprintf
26           thanks Mauro Giachero
27
28 2008-09-15 Raphael Neider <rneider AT web.de>
29
30         * src/pic16/device.c (pic16_dump_usection): force udata sections
31           into the addressable range (0..0xFFF), workaround for a gpsim
32           bug preventing simulation of regtest bug1750318
33         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
34           (serialRegAssign): fixed regtest bug-971834,
35           (pic16_packRegisters): avoid null-pointer dereference
36
37 2008-09-14 Raphael Neider <rneider AT web.de>
38
39         * src/pic16/gen.c, src/pic16/ralloc.c: use
40           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
41         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
42
43 2008-09-12 Borut Razem <borut.razem AT siol.net>
44
45         * support/regression/fwk/testfwk.h:
46           define pdata as data for pic16 target
47           thanks Mauro Giachero
48
49 2008-09-11 Borut Razem <borut.razem AT siol.net>
50
51         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
52           support/regression/absolute.c:
53           applied patch #2105615: Some PIC16 testcase fixlets
54           thanks Mauro Giachero
55
56 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
57
58         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
59         * support/regression/tests/bug2094505.c: new, added
60
61 2008-09-07 Borut Razem <borut.razem AT siol.net>
62
63         * src/SDCCglue.c, src/SDCCast.c:
64           fixed throw of "excess elements" warning for char arrays
65
66 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
67
68         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
69         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
70         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
71         * support/regression/tests/bug2077267.c: new, added
72
73 2008-09-05 Raphael Neider <rneider AT web.de>
74
75         * configure.in, Makefile.common.in: add support for ccache,
76           remove spurious $VERSION output, detect doc-tools even without
77           --enable-doc to facilitate later manual doc-builds, minor cleanup
78         * configure: regenerated
79
80         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
81           avoid races in parallel VPATH builds
82         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
83         * doc/sdccman.lyx: mention --without-ccache configure option
84
85 2008-09-01 Raphael Neider <rneider AT web.de>
86
87         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
88         * (genConstPointerGet): fix reading bitfields from __code space
89         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
90           bitfield initializers (fix regression test bug1856409.c)
91         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
92           arbitrary sizes
93
94 2008-08-31 Raphael Neider <rneider AT web.de>
95
96         * src/pic16/gen.c (genAssign): removed useless compiler output
97         * (genPointerGet,genPointerSet,genCast),
98           src/pic16/glue.c (pic16_printGPointerType):
99           also handle PPOINTERs just to avoid spurious asserts
100         * (pic16_printIvalType,pic16_printIvalBitFields):
101           generalized to arbitrary type/bitfield sizes, allows compilation of
102           regression test bug-1981238.c
103         * (pic16_printIvalChar): fix regression test structflexarray.c
104         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
105           in initialized structs and fix #1843745
106         * (pic16_printIvalStruct): always output initializers for all fields,
107           even those not explicitly given, fixes zeropad.c regression test
108         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
109           #2073635, #1567098, and #1485812)
110         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
111
112 2008-08-31 Borut Razem <borut.razem AT siol.net>
113
114         * support/regression/tests/bug-895992.c,
115           support/regression/tests/onebyte.c:
116           enabled pic16 regression testing since the bugs
117           1511794: pic16: regression test bug-895992.c fails
118           1444425: onebyte.c regression tes fails on pic16
119           are fixed, probably by fixing
120           2048464: PIC16: fix genUminus - addresses not.c regression test
121         * src/SDCCsymt.c, src/SDCCglue.c,
122           support/regression/tests/bug-1981238.c:
123           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
124           thanks to RvS
125
126 2008-08-30 Borut Razem <borut.razem AT siol.net>
127
128         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
129           release version 4.3.2
130
131 2008-08-24 Raphael Neider <rneider AT web.de>
132
133         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
134           always use the sdcc from the current build tree (ignore $CC from
135           the environment, fixes compile farm builds)
136         * device/lib/Makefile.in: rename .a into .lib for compatibility,
137           remove more build products from install directory
138         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
139         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
140
141 2008-08-24 Borut Razem <borut.razem AT siol.net>
142
143         * src/SDCC.y: applied patch
144           2050245: Fix # 1963382
145           for bug
146           1963382: Listing File - C file comment is incorrect
147           thanks to RvS
148
149 2008-08-23 Borut Razem <borut.razem AT siol.net>
150
151         * src/pic16/gen.c: applied patch
152           2048464: PIC16: fix genUminus - addresses not.c regression test
153           thanks Mauro Giachero
154
155 2008-08-22 Borut Razem <borut.razem AT siol.net>
156
157         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
158           src/pic16/main.c: allow spaces in gpasm and gplink paths
159
160 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
161
162         * src/z80/peep.c,
163         * src/z80/peeph-z80.def: minor peephole improvement
164
165 2008-08-15 Raphael Neider <rneider AT web.de>
166
167         * src/z80/gen.c (_vemit2): suppress compiler warning
168
169         * src/pic/*.[ch]: make proper use of header files and avoid
170           ad-hoc extern declarations, mark module-local helpers 'static',
171           removed dead/replaced code, no functional changes
172         * src/pic16/pcode.c: disentangled from pic14 backend
173
174 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
175
176         * src/z80/gen.c: fixed #2051348
177         * support/regression/tests/bug-2051348.c: regression test for #2051348
178
179 2008-08-10 Raphael Neider <rneider AT web.de>
180
181         * configure.in,
182         * Makefile.common.in: export PACKAGE for $docdir,
183           fixes #1957036, avoid some "underquoted definition" warnings
184         * configure: regenerated
185
186 2008-08-10 Raphael Neider <rneider AT web.de>
187
188         * device/lib/pic16/**: build pic16 library using autotools for
189           improved dependency tracking
190
191         * device/lib/Makefile.in,
192         * src/pic16/main.c,
193         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
194
195 2008-08-10 Raphael Neider <rneider AT web.de>
196
197         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
198           local variables if --nooverlay is given, workaround for #2023121
199
200 2008-08-08 Raphael Neider <rneider AT web.de>
201
202         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
203
204 2008-08-08 Raphael Neider <rneider AT web.de>
205
206         * src/pic/pcoderegs.c,
207         * src/pic/pcode.c,
208         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
209
210 2008-08-07 Borut Razem <borut.razem AT siol.net>
211
212         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
213           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
214           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
215           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
216           applied modified patch 2038174: Add support for binary constants v2
217           thanks Mauro Giachero
218         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
219
220 2008-08-04 Raphael Neider <rneider AT web.de>
221
222         * doc/sdccman.lyx,
223         * src/pic16/device.h,
224         * src/pic16/glue.c,
225         * src/pic16/main.c: enable --optimize-goto by default
226
227         * device/lib/pic16/Makefile.common.in: suppress removed option
228
229         * src/pic16/gen.c,
230         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
231
232 2008-07-30 Borut Razem <borut.razem AT siol.net>
233
234         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
235           applied patch 22032433: PIC16: fix constant strings,
236           thanks Mauro Giachero
237
238 2008-07-29 Borut Razem <borut.razem AT siol.net>
239
240         * src/pic16/gen.c: applied patches:
241           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
242           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
243           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
244           thanks Mauro Giachero
245
246 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
247
248         * src/port.h: Fixed typo in comment
249
250 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
251
252         * src/z80/mappings.i: Implemented RFE #1919415
253         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
254           #1880202, #1914434, prepared for RFE #1703943
255
256 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
257
258         * src/z80/peeph.def,
259         * src/z80/peeph-z80.def,
260         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
261           preparation for Z80 peephole improvements
262
263 2008-06-21 Raphael Neider <rneider AT web.de>
264
265         * device/include/pic16/pic18f66j60.h,
266         * device/include/pic16/pic18f66j65.h,
267         * device/include/pic16/pic18f67j60.h,
268         * device/include/pic16/pic18f86j60.h,
269         * device/include/pic16/pic18f86j65.h,
270         * device/include/pic16/pic18f87j60.h,
271         * device/include/pic16/pic18f96j60.h,
272         * device/include/pic16/pic18f96j65.h,
273         * device/include/pic16/pic18f97j60.h,
274         * device/lib/pic16/libdev/pic18f66j60.c,
275         * device/lib/pic16/libdev/pic18f66j65.c,
276         * device/lib/pic16/libdev/pic18f67j60.c,
277         * device/lib/pic16/libdev/pic18f86j60.c,
278         * device/lib/pic16/libdev/pic18f86j65.c,
279         * device/lib/pic16/libdev/pic18f87j60.c,
280         * device/lib/pic16/libdev/pic18f96j60.c,
281         * device/lib/pic16/libdev/pic18f96j65.c,
282         * device/lib/pic16/libdev/pic18f97j60.c,
283         * device/include/pic16/pic16devices.txt,
284         * device/include/pic16/pic18fregs.h,
285         * device/lib/pic16/pics.all: added new devices
286
287         * device/include/pic16/adc.h,
288         * device/lib/pic16/libio/adc/adcbusy.c,
289         * device/lib/pic16/libio/adc/adcopen.c,
290         * device/lib/pic16/libio/adc/adcsetch.c,
291         * device/lib/pic16/libio/i2c/i2copen.c,
292         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
293           all changes from a patch by Anton Strobl
294
295 2008-06-12 Borut Razem <borut.razem AT siol.net>
296
297         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
298           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
299           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
300           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
301           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
302           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
303           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
304           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
305           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
306           by applying the modified patch from Risto Huotari
307
308 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
309
310         * .version,
311         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
312         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
313         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
314         * support/regression/tests/bug1938300.c: new, added
315
316 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
317
318         * device/include/asm/ds390/features.h,
319         * device/include/asm/mcs51/features.h,
320         * device/include/mcs51/regc515c.h: inserted LGPL notice
321
322 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
323
324         * device/lib/gbz80/div.s,
325         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
326           patch 1597883, Thanks Robert Ramey
327
328 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
329
330         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
331           createIvalCharPtr, createIvalPtr, createIval),
332         * src/SDCCval.h
333         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
334           initializers for local auto variables
335         * support/regression/tests/zeropad.c: added testcase for auto initializers
336
337 2008-05-26 Raphael Neider <rneider AT web.de>
338
339         * device/lib/pic16/startup/crt0.c,
340         * device/lib/pic16/startup/crt0i.c,
341         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
342           explicit, fixed curr_entry loop for >= 256 initializer records,
343           removed debug code (write to 0xf7e)
344
345 2008-05-25 Raphael Neider <rneider AT web.de>
346
347         * device/include/pic/pic16f627a.h,
348         * device/include/pic/pic16f628a.h,
349         * device/include/pic/pic16f648a.h: added missing ports
350
351 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
352
353         * device/include/float.h: added __INFINITY
354         * device/lib/_fsadd.c: handle overflows
355         * device/lib/_fsmul.c,
356         * device/lib/_fsdiv.c: use __INFINITY
357         * device/lib/_fseq.c,
358         * device/lib/_fsneq.c: handle -0.0
359         * sim/ucsim/s51.src/uc89c51r.cc,
360         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
361         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
362         * src/mcs51/gen.c (genSend): fixed bug with --xstack
363         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
364         * support/regression/tests/snprintf.c: test bug with --xstack
365
366 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
367
368         * src/SDCCpeeph.c (callFuncByName):
369           Support nested parenthesis in peephole function arguments (#1967300)
370
371 2008-05-19 Raphael Neider <rneider AT web.de>
372
373         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
374           fixed duplicate labels (#1911325)
375
376 2008-05-19 Raphael Neider <rneider AT web.de>
377
378         * src/regression/empty.c: suppress warning
379         * src/regression/pointer1.c: enabled index_by_pointer()
380         * src/regression/inline.c: now works for pic16 as well
381
382         * src/pic16/device.c: include dbuf declarations
383         * src/pic16/device.h: removed obsolete prototypes
384
385         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
386         * src/pic16/glue.c: made purely local functions static,
387           (pic16_printGPointerType, pic16_printIvalCharPtr,
388           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
389           generic pointers' tags (#1961866)
390
391         * src/pic16/pcode.c (assignValnums): optimize literal assignments
392
393 2008-05-19 Borut Razem <borut.razem AT siol.net>
394
395         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
396           fixed typo, uninstall include/pic16/pic16devices.txt
397
398 2008-05-18 Borut Razem <borut.razem AT siol.net>
399
400         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
401           the buffer is null terminated
402         * src/device/pic16.c:
403           applied modified patch 1965676: Patch for Win32 16 bit PIC
404         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
405
406 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
407
408         * src/SDCC.lex (check_type),
409         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
410         * as/hc08/clean.mk,
411         * as/mcs51/clean.mk,
412         * as/z80/clean.mk: also clean *.dep
413         * device/lib/pic16/libsdcc/stack/Makefile,
414         * sim/ucsim/libtool: removed as they are rebuild by configure
415         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
416
417 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
418
419         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
420           fixupInline instead of createFunction to fix bug 1864577
421           (inlineFindMaxBlockno): removed, use global blockNo
422         * src/SDCCglobl.h: added blockNo
423         * src/z80/peep.c,
424         * src/z80/peep.h: modified properties
425         * support/regression/tests/bug1864577.c: new, added
426
427 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
428
429         * as/mcs51/asdata.c,
430         * as/mcs51/asm.h: added org_cnt
431         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
432         * as/mcs51/asout.c: changed old K&R to ANSI
433         * as/mcs51/Makefile.in: use common identifiers
434         * as/hc08/asdata.c,
435         * as/hc08/asexpr.c,
436         * as/hc08/asm.h,
437         * as/hc08/asmain.c,
438         * as/hc08/asout.c,
439         * as/hc08/Makefile.bcc,
440         * as/hc08/Makefile.in: synchronized with as/mcs51/*
441         * sdcc_vc_in.h: added define __func__
442         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
443           Thanks Ruud van Silfhout
444         * support/regression/tests/bug1717305.c: new, added
445
446 2008-05-05 Borut Razem <borut.razem AT siol.net>
447
448         * support/regression/Makefile.in,
449           support/regression/ports/ds390/spec.mk,
450           support/regression/ports/hc08/spec.mk,
451           support/regression/ports/mcs51-common/spec.mk,
452           support/regression/ports/pic14/spec.mk,
453           support/regression/ports/pic16/spec.mk,
454           support/regression/ports/ucz80/spec.mk,
455           support/regression/ports/z80/spec.mk:
456           added INC_DIR and LIBDIR paths
457         * src/ds390/gen.c: removed duplicated selicolon
458
459 2008-05-04 Borut Razem <borut.razem AT siol.net>
460
461         * support/regression/Makefile.in,
462           support/regression/fwk/lib/testfwk.c,
463           support/regression/ports/ds390/spec.mk,
464           support/regression/ports/hc08/spec.mk,
465           support/regression/ports/mcs51-common/spec.mk,
466           support/regression/ports/mcs51-large/spec.mk,
467           support/regression/ports/mcs51-medium/spec.mk,
468           support/regression/ports/mcs51-small/spec.mk,
469           support/regression/ports/mcs51-stack-auto/spec.mk,
470           support/regression/ports/mcs51-xstack-auto/spec.mk,
471           support/regression/ports/pic14/spec.mk,
472           support/regression/ports/pic16/spec.mk,
473           support/regression/ports/ucz80/spec.mk:
474           added possibility to define the sdcc binary directory SDCC_BIN_PATH
475           used to run regeression tests
476
477 2008-05-01 Raphael Neider <rneider AT web.de>
478
479         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
480           supported devices and instructions to add new ones
481
482 2008-05-01 Raphael Neider <rneider AT web.de>
483
484         * device/include/pic16/adc.h,
485           device/lib/pic16/libio/adc/adcbusy.c,
486           device/lib/pic16/libio/adc/adcopen.c,
487           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
488           18f2455 style ADC devices, based on patch #1776197
489         * device/lib/pic16/libio/adc/adcclose.c,
490           device/lib/pic16/libio/adc/adcconv.c,
491           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
492         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
493           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
494         * device/include/pic16/pic18f4431.h,
495           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
496         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
497
498 2008-05-01 Raphael Neider <rneider AT web.de>
499
500         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
501           moved xinst flag into pic16_options_t
502         * src/pic16/device.c (default_device, pic16_list_devices,
503           pic16_find_device): removed references to sfrrange
504         * src/pic16/gen.c (genFunction),
505           src/pic16/glue.c (pic16initialComments),
506           src/pic16/main.c (pic16_optionsTable),
507           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
508           to xinst
509         * device/include/pic16/pic16devices.txt: removed sfrrange lines
510
511 2008-04-29 Raphael Neider <rneider AT web.de>
512
513         * src/pic16/devices.inc,
514           device/include/pic16/pic16devices.txt: replaced compiled-in list
515           of devices with a variant parsed at runtime
516         * src/pic16/device.c: added support for parsing pic16devices.txt,
517           clean up
518         * src/pic16/device.h: removed (now) unused fields from PIC_device
519         * src/pic16/main.c: removed #pragma maxram,
520           (_pic16_initPaths): removed bogus generation of search paths,
521           setup the port proper only after the search paths (for
522           pic16devices.txt) are set up,
523           (_pic16_finaliseOptions): moved processor dependant code here
524           from _pic16_initPaths(), clean up
525         * src/pic16/ralloc.c (pic16_init_stack),
526         * src/pic16/ralloc.h,
527         * src/pic16/pcode.c: clean up
528         * device/include/Makefile.in,
529           support/scripts/sdcc.nsi: also install/package pic16devices.txt
530         * support/scripts/inc2h-pic16.pl: updated instructions
531
532 2008-04-29 Raphael Neider <rneider AT web.de>
533
534         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
535           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
536           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
537           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
538           added missing family members and 18f2480/2580/4480/4580 family
539         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
540         * device/include/pic16/pic18f2525.h: use 18f4620.h
541         * device/include/pic16/pic18f6680.h: use 18f8680.h
542         * device/include/pic16/pic18fregs.h,
543           device/lib/pic16/pics.all,
544           src/pic16/devices.inc: add new devices
545         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
546         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
547         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
548         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
549           prevent attempting to build the libio for some new devices
550
551 2008-04-29 Raphael Neider <rneider AT web.de>
552
553         * debugger/mcs51/Makefile.in: fixed paths to sources
554
555 2008-04-25 Borut Razem <borut.razem AT siol.net>
556
557         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
558         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
559         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
560         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
561           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
562           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
563           as/link/z80/linkz80.dsp: lklibr.c moved
564         * doc/INSTALL.txt: binary archives in bz2 format
565         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
566
567 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
568
569         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
570         * support/regression/tests/bug1856409.c: new, added
571
572 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
573
574         * src/z80/peep.c,
575         * src/mcs51/peep.c: Use werror for error messages.
576         * src/SDCCicode.c (geniCodeConditional),
577         * src/SDCCsymt.c (structElemType): fixed bug 1839321
578         * src/z80/Makefile.bcc,
579         * src/z80/z80.dsp: added src/z80/peep.c/h
580         * support/regression/tests/bug1839321.c: new, added
581
582 2008-04-20 Raphael Neider <rneider AT web.de>
583
584         * device/include/pic16/pic18f2455.h: added bitfields for port C
585
586 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
587
588         * src/z80/peep.c: Use werror for error messages.
589
590 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
591
592         * src/z80/peep.h (declaration of notUsed()),
593         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
594           struct),
595         * src/z80/z80.h (added dependency on peep.h),
596         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
597           for Z80.
598
599 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
600
601         * src/SDCCpeeph.c (added support for notUsed()),
602         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
603           struct),
604         * src/port.h (removed dependency on mcs51/peep.h, added declaration
605           for notUsed()): Implemented generic (that is not port-specific) part
606           of RFE #1880202.
607
608 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
609
610         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
611         * device/lib/libsdcc.lib,
612         * device/lib/Makefile.in,
613         * support/regression/ports/mcs51-xstack-auto/spec.mk,
614         * device/lib/calloc.c: renamed to _calloc.c
615         * device/lib/free.c: renamed to _free.c
616         * device/lib/malloc.c: renamed to _malloc.c
617         * device/lib/realloc.c: renamed to _realloc.c
618         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
619           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
620         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
621           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
622         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
623           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
624           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
625           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
626         * src/ds390/gen.c,
627         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
628         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
629         * support/regression/tests/bug1509084.c: new, added
630
631 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
632
633         * device/include/mcs51/cc2510fx.h: added _XPAGE
634         * device/include/mcs51/compiler.h: cosmetic changes
635
636 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
637
638         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
639           config
640
641 2008-03-31 Borut Razem <borut.razem AT siol.net>
642
643         * support/cpp2 renamed to support/cpp
644         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
645           support/cpp2/libiberty/splay-tree.c,
646           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
647           support/cpp2/libcpp/directives.c,
648           support/cpp2/libcpp/include/cpplib.h,
649           support/cpp2/libcpp/include/symtab.h,
650           support/cpp2/libcpp/include/line-map.h,
651           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
652           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
653           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
654           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
655           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
656           release version 4.3.0
657         * configure.in, configure, Makefile.in, Makefile.bcc:
658           adapted for moved cpp2
659
660 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
661
662         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
663           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
664
665 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
666
667         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
668           Robert Larice
669         * support/regression/tests/bug1717943.c: new, added
670
671 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
672
673         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
674           bytewise return value assignments introduced in last commit.
675
676 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
677
678         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
679           genMult, genJumpTab):
680           Use 16-bit instructions for addition in some additional cases,
681           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
682
683 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
684
685         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
686           Implemented RFE #1921450, changed some debug messages.
687
688 2008-03-30 Borut Razem <borut.razem AT siol.net>
689
690         * Small Device C Compiler 2.8.0 released
691         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
692         * support/scripts/sdcc.nsi: added finish page; this version
693           was used for 2.8.0 release
694         * doc/knownbugs.html: removed; magically generated by the build
695           process using gen_known_bugs.pl from now on
696
697 2008-03-23 Borut Razem <borut.razem AT siol.net>
698
699         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
700           and reverted it, since it was already fixed by Raphael ;-)
701         * doc/knownbugs.html: updated for RC2
702
703 2008-03-22 Raphael Neider <rneider AT web.de>
704
705         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
706           for PIC16 targets
707
708 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
709
710         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
711         * support/regression/tests/bug1839277.c: added related testBug1839299
712
713 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
714
715         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
716         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
717           fixed bug 1839277
718         * src/mcs51/gen.c: throughout only output hex constants
719         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
720         * support/regression/tests/bug1839277.c: new, added
721
722 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
723
724         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
725           compilation warning about nested comments.
726
727 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
728
729         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
730         * support/regression/tests/bug1921073.c: new, added
731
732 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
733
734         * src/z80/SDCCpeeph.c.c (callFuncByName):
735           Commented function parameters.
736
737 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
738
739         * src/z80/ralloc.c (packRegsForAccUse2):
740           disabled a broken accumulator packing optimization (fixed #1292721).
741         * support/regression/tests/bug-1292721: Regression test for #1292721.
742
743 2008-03-16 Raphael Neider <rneider AT web.de>
744
745         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
746           fixed code bloat regression using a variant of patch #1915618
747
748 2008-03-16 Borut Razem <borut.razem AT siol.net>
749
750         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
751           icon, changed startup menu for release distribution, code cleaning,
752           create url files instead links in startup menu
753
754 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
755
756         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
757         * support/regression/tests/bug1579949.c: new, added
758
759 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
760
761         * device/lib/printf_fast.c: fixed bug 1255403
762
763 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
764
765         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
766         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
767
768 2008-03-14 Borut Razem <borut.razem AT siol.net>
769
770         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
771           command line options
772         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
773           is correctly displayed
774         * as/link/z80/lkmain.c: usage line commented out
775
776 2008-03-13 Borut Razem <borut.razem AT siol.net>
777
778         * doc/sdccman.lyx: corrected to be able to convert to PDF,
779           updated the list pf supported pic14 devices
780
781 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
782
783         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
784
785 2008-03-12 Borut Razem <borut.razem AT siol.net>
786
787         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
788           fixed documentation request #1718191
789         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
790         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
791           command line option
792
793 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
794
795         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
796         * support/regression/tests/bug1505811.c: new, added
797
798 2008-03-09 Raphael Neider <rneider AT web.de>
799
800         * device/include/pic16/pic18f2620.h,
801         * device/include/pic16/pic18f4620.h,
802         * device/lib/pic16/libdev/pic18f2620.c,
803         * device/lib/pic16/libdev/pic18f4525.c,
804         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
805           family to consistently use pic18f4620.[ch], fixes #1832562
806
807 2008-03-09 Borut Razem <borut.razem AT siol.net>
808
809         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
810           changed sdcc version to 2.8.0
811         * knownbugs.html: regenerated
812         * support/scripts/gen_known_bugs.pl: added number of open bugs
813
814 2008-03-09 Raphael Neider <rneider AT web.de>
815
816         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
817           (genOr): read volatile operand even if the result is known,
818           closes #1511838
819           (genOr,genXor): removed unused legacy code,
820           (genDummyRead): use pic16_mov2w_volatile()
821
822 2008-03-08 Borut Razem <borut.razem AT siol.net>
823
824         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
825           cons w. --model-large
826         * support/regression/staticinit.c: added regression test for bug
827           #1864582
828
829 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
830
831         * src/ds390/gen.c (pushSide, genPcall),
832         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
833         * src/mcs51/gen.c: cosmetic changes
834         * support/regression/fwk/include/testfwk.h: added macro reentrant
835         * support/regression/tests/bug1908493.c: new, added
836
837 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
838
839         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
840
841 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
842
843         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
844         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
845           already set in ds390/main.c and mcs51/main.c
846
847 2008-03-07 Raphael Neider <rneider AT web.de>
848
849         * src/regression/init0.c: new test for initialized arrays of function
850           pointers
851         * src/regression/Makefile: made a bit more flexible, added init0.c
852         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
853           pointers, closes #1427663
854
855 2008-03-05 Borut Razem <borut.razem AT siol.net>
856
857         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
858           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
859
860 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
861
862         * support/librarian/sdcclib.c:Added feature request 1908061:
863           Synchronise sdcclib commands with ar.
864
865 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
866
867         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
868           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
869           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
870         * device/include/mcs51/compiler.h: removed umlauts, added double
871           underscore
872
873 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
874
875         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
876         * support/regression/tests/bug1536762.c: new, added
877         * src/SDCCutil.c,
878         * src/SDCCutil.h: added getBuildDate()
879         * src/SDCCmain.c (printVersionInfo),
880         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
881           __DATE__
882         * src/*/ralloc.c: removed IS_OP_RUONLY macro
883         * src/ds390/ralloc.c (packRegisters),
884         * src/mcs51/ralloc.c (packRegisters),
885         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
886           Robert Larice
887         * support/regression/tests/bug1618050.c: new, added
888         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
889         * support/regression/fwk/include/testfwk.h,
890         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
891           testfwk.h
892
893 2008-03-04 Raphael Neider <rneider AT web.de>
894
895         * src/pic/gen.c: removed unused prototypes, prevent internal errors
896           on accessing OP_SYM_TYPE(op)
897         * src/pic/gen.h: removed unused prototype of genMinusDec()
898         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
899           fix #1876953 (invalid subtraction code), removed unused code
900
901 2008-03-03 Raphael Neider <rneider AT web.de>
902
903         * src/pic/gen.c,
904         * src/pic/gen.h,
905         * src/pic/genarith.c,
906         * src/pic/ralloc.c,
907         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
908           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
909
910 2008-03-03 Raphael Neider <rneider AT web.de>
911
912         * src/pic/device.c (find_device): search user-specified paths first
913           for pic14devices.txt, fixes #1900827
914
915 2008-03-02 Borut Razem <borut.razem AT siol.net>
916
917         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
918           AddToPath and RemoveFromPath
919
920 2008-03-01 Borut Razem <borut.razem AT siol.net>
921
922         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
923           work correctly, added debugging support if -DSDCC.DEBUG command line
924           option is defined
925
926 2008-02-28 Borut Razem <borut.razem AT siol.net>
927
928         * doc/sdccman.lyx: cosmetic changes
929
930 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
931
932         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
933         * doc/sdccman.lyx: fixed unmeant removal of spaces
934
935 2008-02-27 Borut Razem <borut.razem AT siol.net>
936
937         * support/scripts/sdcc.nsi: corrected installation directory for
938           current user installation mode
939         * doc/README.txt: added Philipp Klaus Krause to the developers list
940
941 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
942
943         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
944           return ifx condition
945           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
946           genCodePointerGet, genGenPointerGet): cleanup aop before generating
947             ifxJump to fix bug 1838000
948         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
949         * support/regression/tests/bug1838000.c: new, added
950         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
951
952 2008-02-26 Borut Razem <borut.razem AT siol.net>
953
954         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
955           of casted varargs
956         * support/scripts/sdcc.nsi: added MULTIUSER page,
957           NSIS upgraded to version 2.35
958
959 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
960
961         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
962         * support/regression/tests/bug1565152.c: new, added
963
964 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
965
966         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
967         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
968         * support/regression/tests/bug1670148.c: new, added
969
970 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
971
972         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
973
974 2008-02-24 Borut Razem <borut.razem AT siol.net>
975
976         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
977           is ineffective for unsigned char parameter
978
979 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
980
981         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
982         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
983         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
984         * support/Util/MySystem.c (my_system): output errorcode when verbose
985
986 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
987
988         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
989           implements #1898231
990
991 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
992
993         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
994           implements #1896290
995
996 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
997
998         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
999
1000 2008-02-21 Borut Razem <borut.razem AT siol.net>
1001
1002         * support/regression/Makefile.in,
1003           support/regression/ports/ds390/spec.mk,
1004           support/regression/ports/hc08/spec.mk,
1005           support/regression/ports/mcs51-common/spec.mk,
1006           support/regression/ports/pic14/spec.mk,
1007           support/regression/ports/pic16/spec.mk,
1008           support/regression/ports/ucz80/spec.mk,
1009           support/regression/ports/xa51/spec.mk:
1010           added CFLAGS when compiling timeout
1011
1012 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1013
1014         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1015           #1596270, #1736867
1016
1017 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1018
1019         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1020         * support/regression/tests/bug1888147.c: new, added
1021
1022 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1023
1024         * src/z80/gen.c: fixed bugs #1596270, #1736867
1025
1026 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1027
1028         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1029           contents, mostly fixes #1596270
1030
1031 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1032
1033         * src/z80/peeph.def,
1034         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1035           peepholes, fixes #1806565
1036
1037 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1038
1039         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1040         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1041           fixes bug 1739475, thanks Robert Larice
1042           (rule 271): new, added
1043
1044 2008-02-18 Borut Razem <borut.razem AT siol.net>
1045
1046         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1047
1048 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1049
1050         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1051
1052 2008-02-17 Raphael Neider <rneider AT web.de>
1053
1054         * src/pic16/genarith.c,
1055         * src/pic16/gen.c,
1056         * src/pic16/gen.h,
1057         * src/pic16/genutils.c: removed unused legacy code,
1058           removed unused fields from struct asmop and struct _G
1059
1060 2008-02-17 Raphael Neider <rneider AT web.de>
1061
1062         * src/pic16/gen.c (AccRsh): cosmetic changes,
1063           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1064           genRightShiftLiteral): fixed to work with SFRs as result by
1065           assigning only once to result,
1066           removed a lot of unused/excluded code fragments
1067
1068 2008-02-17 Raphael Neider <rneider AT web.de>
1069
1070         * device/include/pic/pic16f88.h,
1071         * device/include/pic/pic16f886.h,
1072         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1073
1074 2008-02-17 Borut Razem <borut.razem AT siol.net>
1075
1076         * src/z80/peeph.def: applied patch
1077           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1078         * src/z80/gen.c, src/z80/peeph.def: applied patch
1079           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1080         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1081           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1082           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1083           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1084           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1085
1086 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1087
1088         * as/link/mcs51/aslink.dsp: removed SDK define
1089         * as/link/z80/clean.mk: brought in sync with other ports
1090         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1091         * as/hc08/Makefile.bcc,
1092         * as/mcs51/Makefile.bcc,
1093         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1094         * src/z80/main.c (_setValues): use the now capitalized -Z,
1095           (z80_port, gbz80_port): generate debug information when asked
1096
1097 2008-02-16 Borut Razem <borut.razem AT siol.net>
1098
1099         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1100           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1101           as/z80/Makefile.in. as/z80/Makefile.bcc:
1102           applied patch #1893393: patch for as-z80 and link-z80 to generate
1103           cdb, thanks to Armin Diehl
1104         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1105           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1106           asnoice.c moved to as/asxxsrc/asnoice.c
1107         * src/z80/peeph-gbz80.def: applied patch
1108           #1880235: Z80 return peephole, thanks to Philipp Krause
1109
1110 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1111
1112         * .version,
1113         * doc/sdccman.lyx: bumped version to 2.7.5
1114         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1115
1116 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1117
1118         * device/include/pic16/stdlib.h,
1119         * device/lib/pic16/libc/stdlib/ltoa.c,
1120         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1121
1122 2008-02-13 Borut Razem <borut.razem AT siol.net>
1123
1124         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1125         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1126           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1127           src/SDCCopt.c,  src/SDCCval.c:
1128           fixed bug #1890273: SDCC Warning 154 shows wrong filename
1129
1130 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1131
1132         * src/SDCCsymt.c (compareType): fixed bug 1309013
1133
1134 2008-02-09 Borut Razem <borut.razem AT siol.net>
1135
1136         * src/SDCCval.c, src/SDCCval.h:
1137           code cleaning, added function constChrVal()
1138         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
1139           call constChrVal() instead constVal()
1140
1141 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
1142
1143         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
1144           of function pointer
1145         * src/SDCCerr.h,
1146         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
1147         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1148           bug 1859853)
1149
1150 2008-02-01 Raphael Neider <rneider AT web.de>
1151
1152         * device/include/pic/pic16f886.h,
1153         * device/include/pic/pic16f887.h: added RA6 and RA7
1154
1155 2008-01-24 Raphael Neider <rneider AT web.de>
1156
1157         * device/include/pic/pic16f88.h: added RA6 and RA7
1158         * device/lib/pic/libdev/disabled_pic16f886.c,
1159         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
1160
1161         * src/pic16/devices.inc,
1162         * device/include/pic16/pic18f2423.h,
1163         * device/include/pic16/pic18f2523.h,
1164         * device/include/pic16/pic18fregs.h,
1165         * device/lib/pic16/pics.all
1166         * device/lib/pic16/libdev/pic18f2423.c,
1167         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
1168         * device/lib/pic16/libio/i2c.ignore,
1169         * device/lib/pic16/libio/usart.ignore,
1170         * device/lib/pic16/libio/adc.ignore: ignore new devices
1171
1172 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
1173
1174         * src/SDCCast.c (createRMW): fixed bug 1582651
1175
1176 2008-01-20 Borut Razem <borut.razem AT siol.net>
1177
1178         * src/SDCCcse.c: partially fixed enhancement request
1179           #1793872 - multiply by -1 not collapsed
1180         * support/regression/tests/arithcsi.c: added regression test
1181
1182 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
1183
1184         * as/mcs51/asx8051.dsp: removed define SDK
1185         * as/mcs51/i51mch.c (machine): fixed bug 1865114
1186         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1187         * as/link/lklex.c,
1188         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1189           cosmetic changes, brought more in sync, changed old K&R to ANSI
1190
1191 2008-01-13 Borut Razem <borut.razem AT siol.net>
1192
1193         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1194         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1195
1196 2007-12-30 Borut Razem <borut.razem AT siol.net>
1197
1198         * src/pic16/gen.c: fixed implementation of bitwise operations for
1199           pic16 target
1200         * support/regression/tests/bitwise.c: added test cases
1201
1202 2007-12-29 Borut Razem <borut.razem AT siol.net>
1203
1204         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1205         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1206           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1207         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1208         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1209           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1210           src/pic16/pcode.[ch]: added const qualifier
1211         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1212           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1213           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1214           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1215         * as/asxxsrc/aslex.c: use dbuf_getline()
1216         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1217           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1218           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1219           as/z80/asm.h, as/z80/z80adr.c:
1220           changed type of ib and ip to const char *
1221
1222 2007-12-28 Borut Razem <borut.razem AT siol.net>
1223
1224         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1225           introduced (readlin) - long lines are turuncated
1226         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1227           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1228           as/z80/Makefile.in: moved aslex.c to asxxsrc
1229         * as/hc08/aslex.c, as/z80/aslex.c: deleted
1230         * as/hc08/asmain.c, as/mcs51/asmain.c:
1231           added missing initialization of a_addr field
1232         * support/regression/tests/long_asm_line.c: added regtest for long
1233           assembler line
1234
1235 2007-12-22 Borut Razem <borut.razem AT siol.net>
1236
1237         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1238
1239 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1240
1241         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1242
1243 2007-12-16 Borut Razem <borut.razem AT siol.net>
1244
1245         * device/include/pic16/stdbool.h: removed, since already exists in
1246          device/include/; this also fixes bitopcse.c regression test for pic16
1247          target
1248         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1249         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1250           dereference doesn't work; covered by regression test bug1399290
1251
1252 2007-12-05 Borut Razem <borut.razem AT siol.net>
1253
1254         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1255           Adding new PIC16
1256
1257 2007-12-01 Borut Razem <borut.razem AT siol.net>
1258
1259         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1260           corrected handling of the highest_valid_address
1261
1262 2007-11-17 Raphael Neider <rneider AT web.de>
1263
1264         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1265         * src/pic/glue.c (picglue): emit .file if --debug is given
1266
1267 2007-11-17 Raphael Neider <rneider AT web.de>
1268
1269         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1270         care when left or right operand resides in result, fixes #1830220
1271
1272 2007-11-17 Borut Razem <borut.razem AT siol.net>
1273
1274         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1275           #983491 - "Merge duplicate strings function is ineffective"
1276         * support/regression/tests/bug-983491.c: regtest disabled
1277         * as/asxxsrc: created
1278           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1279           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1280           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1281           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1282           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1283           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1284           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1285           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1286           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1287           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1288           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1289           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1290           created as/asxxsrc directory, assym.c and strcpi.c moved into it
1291
1292 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1293
1294         * device/include/stdarg.h: added and removed some casts
1295         * src/SDCCsymt.c (compareType): Fully check types between generic and
1296           non-generic pointers, also accept ptr-ptr to void-ptr assignments
1297
1298 2007-11-13 Borut Razem <borut.razem AT siol.net>
1299
1300         * support/regression/tests/bug-1817005.c:
1301           added regtest for bug #1817005 - as-z80 chokes on long labels
1302
1303 2007-11-12 Borut Razem <borut.razem AT siol.net>
1304
1305         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1306           as/z80/asout.c, as/z80/aslist.c:
1307           fixed bug #1817005 - as-z80 chokes on long labels
1308
1309 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1310
1311         * as/hc08/asmain.c,
1312         * as/z80/asmain.c: cosmetic changes
1313         * as/hc08/alloc.h,
1314         * as/mcs51/alloc.h,
1315         * as/z80/alloc.h: removed
1316         * as/hc08/assym.c,
1317         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1318         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1319         * as/link/hc08/Makefile.in,
1320         * as/link/mcs51/Makefile.in,
1321         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1322         * as/link/lklex.c,
1323         * as/link/mcs51/lkarea.c,
1324         * as/link/mcs51/lkmain.c: cosmetic changes
1325         * as/link/hc08/lklibr.c,
1326         * as/link/z80/lklibr.c,
1327         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1328           used cygwin_conv_to_full_posix_path,
1329           added warnings, cosmetic changes, brought more in sync
1330           changed old K&R into ANSI function declarations
1331         * as/link/z80/lklibr.c (loadAdb): added
1332         * as/link/z80/lkmain.c: removed -- option from usage text
1333
1334 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1335
1336         * src/mcs51/gen.c (outBitC): optimized for no result
1337
1338 2007-10-31 Borut Razem <borut.razem AT siol.net>
1339
1340         * src/SDCCsymt.c: fixed (hopeful properly) bug
1341           #1805702 - order of extern matters
1342         * support/regression/tests/bug-1805702.c: enabled regtest for bug
1343           #1805702
1344
1345 2007-10-29 Borut Razem <borut.razem AT siol.net>
1346
1347         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1348           - order of extern matters
1349         * support/regression/tests/bug-1805702.c: disabled regtest for bug
1350           #1805702
1351
1352 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1353
1354         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1355           24bitMode, portIsDS390
1356         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1357         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1358           (notVolatileVariable): also check sloc names,
1359           (callFuncByName): moved ftab[] out of function and sorted it by use
1360
1361 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1362
1363         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1364         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1365           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1366         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1367         * support/regression/tests/bug-880197.c: new, added
1368
1369 2007-10-28 Borut Razem <borut.razem AT siol.net>
1370
1371         * support/regression/Makefile.in,
1372           support/regression/ports/mcs51-large/spec.mk,
1373           support/regression/ports/mcs51-xstack-auto/spec.mk,
1374           support/regression/ports/mcs51-stack-auto/spec.mk,
1375           support/regression/ports/mcs51-medium/spec.mk,
1376           support/regression/ports/mcs51-common/spec.mk,
1377           support/regression/ports/mcs51-common/*,
1378           support/regression/ports/mcs51-small/*:
1379           mcs51 renamed to mcs51-common, created mcs51-small
1380         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1381         * support/regression/tests/bug-1805702.c: added regtest for bug
1382           #1805702
1383
1384 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1385
1386         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1387           added new rules 265 - 270
1388         * support/regression/tests/bug1721024.c:new, added
1389         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1390           introduced new test-mcs51 to run all mcs51 tests
1391
1392 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1393
1394         * support/regression/tests/bug1816470.c: new, added
1395
1396 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1397
1398         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1399           propagate for *,+,- with float, fixed bug 1816470
1400           (decorateType): cast to resultTypeProp instead of resultType
1401
1402 2007-10-19 Borut Razem <borut.razem AT siol.net>
1403
1404         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1405           function is ineffective" for pic16 tareget
1406         * support/scripts/listerr.c: corrected include path
1407         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1408           adjacent memory
1409
1410 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1411
1412         * support/regression/tests/using.c: new, added
1413         * support/regression/tests/vaargs.c: fixed and enabled test
1414
1415 2007-10-18 Borut Razem <borut.razem AT siol.net>
1416
1417         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1418           is ineffective
1419         * support/regression/tests/bug-983491.c: added regtest for bug #983491
1420
1421 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1422
1423         * doc/sdccman.lyx: documented option --Werror
1424         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1425           RegBankUsed[] earlier
1426
1427 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1428
1429         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1430         * src/pic/glue.c,
1431         * src/SDCCval.c,
1432         * src/SDCCast.c,
1433         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1434           AST_ULONG_VALUE
1435         * src/SDCCast.c (decorateType): improved optimization of tri-op
1436         * src/SDCCerr.c (vwerror, setWError),
1437         * src/SDCCerr.h,
1438         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1439           warnings as errors, thanks Stas Sergeev for PATCH 1813211
1440
1441 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1442
1443         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1444         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1445         * support/regression/tests/bug-223113.c,
1446         * support/regression/tests/bug-426632.c,
1447         * support/regression/tests/bug-468811.c,
1448         * support/regression/tests/bug-477835.c,
1449         * support/regression/tests/bug-478094.c,
1450         * support/regression/tests/bug-499644.c,
1451         * support/regression/tests/bug-524209.c,
1452         * support/regression/tests/bug-524211.c,
1453         * support/regression/tests/packcast.c,
1454         * support/regression/tests/structidx.c: added empty tests
1455         * support/regression/tests/bug-607243.c: enabled test
1456
1457 2007-10-06 Borut Razem <borut.razem AT siol.net>
1458
1459         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1460            support of universal binaries on Mac OS X
1461
1462 2007-10-02 Borut Razem <borut.razem AT siol.net>
1463
1464         * src/SDCCval.h: unified double2ul macro for all platforms
1465         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1466         * support/regression/tests/bitwise.c: added regtest for bug #1777758
1467
1468 2007-09-30 Borut Razem <borut.razem AT siol.net>
1469
1470         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1471           platforms
1472         * sdcc_vc_in.h: enabled warnings
1473         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1474           unsigned type, result still unsigned
1475         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1476
1477 2007-09-28 Raphael Neider <rneider AT web.de>
1478
1479         * src/pic/device.c (find_device): prevent buffer underflow error
1480         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1481           the just destroyed list entry
1482
1483 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1484
1485         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1486           Alexander Neundorf
1487
1488 2007-09-18 Borut Razem <borut.razem AT siol.net>
1489
1490         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1491          applied to unsigned type, result still unsigned
1492
1493 2007-09-17 Borut Razem <borut.razem AT siol.net>
1494
1495         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1496           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1497           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1498           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1499           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1500           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1501           src/z80/gen.c, src/z80/ralloc.c:
1502           fixed bug #1739860 - sdcc does not work correctly on some platforms
1503           (not finished)
1504           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1505
1506 2007-09-17 Raphael Neider <rneider AT web.de>
1507
1508         * src/pic16/device.c: reverted to previous version
1509         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1510
1511 2007-09-16 Raphael Neider <rneider AT web.de>
1512
1513         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1514           as this raises a ton of gpasm warnings, just emit a second label
1515         * src/pic16/devices.inc,
1516         * device/lib/pic16/pics.all,
1517         * device/lib/pic16/libdev/pic18f2585.c,
1518         * device/lib/pic16/libdev/pic18f2680.c,
1519         * device/lib/pic16/libdev/pic18f2682.c,
1520         * device/lib/pic16/libdev/pic18f2685.c,
1521         * device/lib/pic16/libdev/pic18f4585.c,
1522         * device/lib/pic16/libdev/pic18f4680.c,
1523         * device/lib/pic16/libdev/pic18f4682.c,
1524         * device/lib/pic16/libdev/pic18f4685.c,
1525         * device/include/pic16/pic18f2585.h,
1526         * device/include/pic16/pic18f2680.h,
1527         * device/include/pic16/pic18f2682.h,
1528         * device/include/pic16/pic18f2685.h,
1529         * device/include/pic16/pic18f4585.h,
1530         * device/include/pic16/pic18f4680.h,
1531         * device/include/pic16/pic18f4682.h,
1532         * device/include/pic16/pic18f4685.h,
1533         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1534           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1535           patch contributed by Anton Strobl, applied with changes
1536
1537 2007-09-16 Raphael Neider <rneider AT web.de>
1538
1539         * device/include/pic16/pic18f2431.h,
1540         * device/include/pic16/pic18f25j10.h,
1541         * device/include/pic16/pic18f4431.h,
1542         * device/include/pic16/pic18f45j10.h: adopted common include style
1543         * device/include/pic16/pic18f1320.h,
1544         * device/include/pic16/pic18f2320.h,
1545         * device/include/pic16/pic18f2525.h,
1546         * device/include/pic16/pic18f4320.h,
1547         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1548         * device/include/pic16/pic18fregs.h: prepared for automatic include
1549           file selection by having DEVICE.h for every DEVICE
1550         * device/lib/pic16/libdev/pic18f2320.c,
1551         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1552
1553         * device/lib/pic16/configure.in,
1554         * device/lib/pic16/configure: use rm -rf instead of rmdir
1555         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1556         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1557
1558 2007-09-09 Borut Razem <borut.razem AT siol.net>
1559
1560         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1561           distingush between i386 and ppc Mac OS X versions
1562
1563 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1564
1565         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1566         * support/regression/tests/bug1788177.c: new, added
1567
1568 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1569
1570         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1571         * device/include/mcs51/lint.h added keyword __naked
1572
1573 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1574
1575         * src/pic16/glue.c,
1576         * src/pic/glue.c,
1577         * src/SDCCmem.h: removed maxRegBank
1578         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1579           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1580         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1581         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1582           name and behaviour to handle banked functions
1583           (scan4op): and use it to fix bug 1786213
1584
1585 2007-09-03 Raphael Neider <rneider AT web.de>
1586
1587         * device/include/pic16/pic18f248.h,
1588         * device/include/pic16/pic18f258.h,
1589         * device/include/pic16/pic18f448.h,
1590         * device/lib/pic16/libdev/pic18f248.c,
1591         * device/lib/pic16/libdev/pic18f258.c,
1592         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1593           added T0CONbits, fixes #1786891
1594
1595 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1596
1597         * src/ds390/gen.c (genFarPointerSet),
1598         * src/hc08/ralloc.c (packRegisters),
1599         * src/mcs51/ralloc.c (packRegisters),
1600         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1601           bug 1750318
1602         * src/SDCCicode.h: POINTER_SET can be true for literals too
1603         * support/regression/tests/bug1750318.c: new, added
1604
1605 2007-08-23 Borut Razem <borut.razem AT siol.net>
1606
1607         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1608           library versions without the completition functionality
1609
1610 2007-08-22 Raphael Neider <rneider AT web.de>
1611
1612         * device/include/pic16/pic18f1220.h,
1613         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1614
1615 2007-08-12 Borut Razem <borut.razem AT siol.net>
1616
1617         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1618
1619 2007-08-11 Borut Razem <borut.razem AT siol.net>
1620
1621         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1622           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1623           support/Util/SDCCerr.[ch] moved to src
1624         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1625           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1626           device/examples/ds390/tinitalk/tinitalk.dsp,
1627           device/examples/serialcomm/windows/serialcomm.dsp,
1628           support/librarian/librarian.dsp:
1629           removed linking of unused odbc32.lib and odbccp32.lib
1630         * support/scripts/winres.h:
1631           added for compilation with Visual C++ 2005 Express Edition
1632
1633 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1634
1635         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1636           and CKCON1.
1637
1638 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1639
1640         * sdccconf_in.h: update the endian test so that SPARC Solaris
1641           does not throw syntax errors
1642
1643 2007-08-06 Borut Razem <borut.razem AT siol.net>
1644
1645         * doc/sdccman.lyx: removed two index entries which prevented the
1646           generation of sdcc doc archive
1647
1648 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1649
1650         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1651           instead of lyx 1.5.0.
1652
1653 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1654
1655         * device/include/hc08/mc68hc908apxx.h: new header contributed by
1656           Lucas Loizaga, with minor modifications. Thanks!
1657
1658 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1659
1660         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1661           in sdcclib.
1662
1663 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1664
1665         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1666           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1667           with acall/ajmp.
1668
1669 2007-07-22 Borut Razem <borut.razem AT siol.net>
1670
1671         * configure.in, configure: re-introduced .version
1672         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1673           the version reverted to 2.7.0
1674
1675 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1676
1677         * configure.in,
1678         * doc/sdccman.lyx: bumped version to 2.7.3
1679         * device/include/mcs51/compiler.h: fixed elif->else
1680         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1681         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1682           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1683            enable accuse for bit operands
1684         * src/SDCCmain.c (printVersionInfo),
1685         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1686           environment descriptor
1687         * src/SDCCutil.h: added getBuildEnvironment
1688         * src/SDCCglue.c (initialComments): use getBuildEnvironment
1689         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1690         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1691         * support/regression/tests/bug1348008.c,
1692         * support/regression/tests/bug1496419.c,
1693         * support/regression/tests/bug1503067.c,
1694         * support/regression/tests/preproc.c: added empty tests
1695
1696 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1697
1698         * support/regression/tests/bug1678803.c: new, added
1699
1700 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1701
1702         * as/link/aslink.h,
1703         * as/link/hc08/lkihx.c,
1704         * as/link/hc08/lkrloc.c,
1705         * as/link/mcs51/lkihx.c,
1706         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1707           ihxExtendedLinearAddress
1708         * as/link/mcs51/lkrloc.c (relr),
1709         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1710           acall/ajmp, see bug 830513
1711
1712 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1713
1714         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1715           (cseBBlock): remember aggr2ptr has been used
1716         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1717           (geniCodeAssign): fixed bug 868103
1718         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1719           added operandSize prototype
1720         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1721           (genDataPointerSet): use max of size of right and result,
1722           (gencjne): added parameter useCarry for optimization,
1723           (genCmpEq): use carry if appropriate,
1724           (genXor): check if operand already in carry
1725         * support/regression/tests/bug-868103.c: enabled test
1726
1727 2007-07-12 Raphael Neider <rneider AT web.de>
1728
1729         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1730
1731 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1732
1733         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1734           from Robert Larice, thanks
1735         * support/regression/tests/bitopcse.c,
1736         * support/regression/tests/bitvars.c,
1737         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1738         * support/regression/tests/bug-927659.c: enabled test for z80
1739         * support/regression/tests/bug1738367.c: added extra tests by Frieder
1740         * support/regression/tests/bug1745717.c: new, added
1741         * support/regression/tests/literalop.c,
1742         * support/regression/tests/nullstring.c: removed storage definitions that
1743           are now in testfwk.h
1744
1745 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1746
1747         * device/include/stdbool.h: do not define __bool_true_false_are_defined
1748           and bool for targets that do not fully support it.
1749         * support/regression/tests/bug1546986.c,
1750         * support/regression/tests/bug1723128.c,
1751         * support/regression/tests/bug1734654.c,
1752         * support/regression/tests/bug1738367.c,
1753         * support/regression/tests/constantRange.c: only use bool if allowed
1754
1755 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1756
1757         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1758           Larice, also handle function pointers
1759         * support/regression/tests/bug1749275.c: new, added
1760
1761 2007-07-03 Borut Razem <borut.razem AT siol.net>
1762
1763         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1764           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1765           #1746528: SDCC should ignore ':' in inline assembler comments
1766         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1767
1768 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1769
1770         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1771         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1772
1773 2007-06-29 Borut Razem <borut.razem AT siol.net>
1774
1775         * src/SDCCmain.c: fixed bug
1776           #1744746: SDCC #4867: broken option --xram-size
1777
1778 2007-06-28 Borut Razem <borut.razem AT siol.net>
1779
1780         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1781           find out the endianess of host machine for ucsim
1782
1783 2007-06-27 Borut Razem <borut.razem AT siol.net>
1784
1785         * support/regression/generate-cases.py: corrected the file name
1786           in warning
1787         * configure.in, configure, sdccconf_in.h: find out the endianess of
1788           host machine
1789         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1790           negative size
1791
1792 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1793
1794         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1795
1796 2007-06-26 Borut Razem <borut.razem AT siol.net>
1797
1798         * support/regression/generate-cases.py: display warning if function
1799           list is empty; implemented more flexible rule for detection of
1800           testing functions, allowing return type 'void' in the same line as
1801           the function name in the function definition
1802         * support/regression/tests/bug-1654060.c: corrected test
1803         * support/librarian/sdcclib.c: fixed warning:
1804           format '%s' expects type 'char *', but argument 2 has type 'int'
1805
1806 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1807
1808         * support/librarian/sdcclib.c: Added feature Requests [1510635]
1809           Multiple infiles for sdcclib.
1810
1811 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1812
1813         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1814           bug 1731741
1815
1816 2007-06-18 Borut Razem <borut.razem AT siol.net>
1817
1818         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1819           how to handle comments, so they have to be removed by the
1820           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1821         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1822           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1823           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1824           table driven option hadling
1825
1826 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1827
1828         * src/SDCCast.c (decorateType),
1829         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1830           iCode to ast level to fix bug 1738367
1831         * support/regression/tests/bug1738367.c: new, added
1832
1833 2007-06-15 Raphael Neider <rneider AT web.de>
1834
1835         * src/pic16/devices.inc,
1836         * device/lib/pic16/pics.all,
1837         * device/include/pic16/pic18fregs.h,
1838         * device/include/pic16/pic18f[24][45]20.h,
1839         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1840           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1841         * device/lib/pic16/Makefile.in: faster cleanup
1842
1843 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1844
1845         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1846
1847 2007-06-13 Raphael Neider <rneider AT web.de>
1848
1849         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1850
1851 2007-06-12 Raphael Neider <rneider AT web.de>
1852
1853         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1854           suppress bit defines if NO_BIT_DEFINES is #define'd
1855         * device/include/pic/pic*.h: recreated all headers to include
1856           conditional bit defines
1857         * device/include/pic/pic16f886.h,
1858         * device/include/pic/pic16f887.h: fixed based on newer .inc file
1859         * device/include/pic/recreate.sh: script to recreate the complete
1860           device library files based on the currently supported devices
1861
1862 2007-06-12 Borut Razem <borut.razem AT siol.net>
1863
1864         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1865           support/regression/Makefile.in, support/scripts/build.mak,
1866           support/scripts/Makefile.snapshot:
1867           use new svn URL scheme
1868         * doc/sdccman.lyx: SDCC Wiki moved to
1869           http://sdcc.wiki.sourceforge.net/
1870
1871 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1872
1873         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1874         * support/regression/tests/bug1734654.c: added
1875
1876 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1877
1878         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1879         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1880           with literal operands
1881
1882 2007-06-10 Borut Razem <borut.razem AT siol.net>
1883
1884         * as/link/z80/lklibr.c: fixed mingw build warning
1885           lklibr.c:575: warning: implicit declaration of function 'tolower'
1886         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1887           src/z80/main.c: move target specific options from src/SDCCmain.c
1888           to src/<target>/main.c
1889
1890 2007-06-09 Borut Razem <borut.razem AT siol.net>
1891
1892         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1893           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1894         * support/regression/tests/bug-1294691.c: added
1895
1896 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1897
1898         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1899           can also be static, fixes bug 1733438
1900         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1901           have absolute address too
1902           (computeType): added optimization for 'cond ? true : false'
1903         * support/regression/tests/absolute.c: added test for static absolute var
1904
1905 2007-06-08 Raphael Neider <rneider AT web.de>
1906
1907         * src/regression/Makefile: suppress parallel builds, allow easy
1908           switching between pic14/pic16 ports
1909         * src/regression/picregs.h: added pic14/16 header file switch
1910         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1911           inline.c,nestfor.c,string1.c}: include "picregs.h"
1912
1913 2007-06-07 Borut Razem <borut.razem AT siol.net>
1914
1915         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1916           permanent solution to suppress GCC 4.2.0 c++ warning:
1917           deprecated conversion from string constant to `char *'
1918           use 'const char *' where ever required
1919         * support/regression/generate-cases.py: implemented more flexible rule
1920           for detection of testing functions, allowing white-spaces surrounding
1921           the function name and the 'void' parameter.
1922         * support/regression/tests/constantRange.c,
1923           support/regression/tests/scott-compare3.c: fixed failing regression
1924           tests, uncovered by implementation of more flexible rule for detection
1925           of testing functions
1926
1927 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1928
1929         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1930
1931 2007-06-04 Borut Razem <borut.razem AT siol.net>
1932
1933         * configure.in, configure, config_vc.awk: sdcc version number is now
1934           stored in configure.in; removed .version
1935         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1936           doc/INSTALL.txt: version bumped to 2.7.2
1937         * sim/ucsim/configure.in, sim/ucsim/configure:
1938           use "read" to read from .version
1939
1940 2007-06-03 Borut Razem <borut.razem AT siol.net>
1941
1942         * */Makefile.in: removed annoying warning:
1943           Makefile:xx: Makefile.dep: No such file or directory
1944
1945 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1946
1947         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1948           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1949         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1950         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1951           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1952           bugfix: only use newBoolLink for bit result type
1953         * src/SDCCicode.c (geniCodeLogic): added param tree,
1954           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
1955           (geniCodeLogicAndOr): use IS_BIT,
1956           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
1957           (ast2iCode): added tree param to geniCodeLogic for comparisons
1958         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
1959         * support/regression/tests/bug1723128.c: added test NotZero
1960
1961 2007-06-01 Borut Razem <borut.razem AT siol.net>
1962
1963         * SDCPP synchronized with GCC CPP release version 4.2.0,
1964           currently the latest release:
1965         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
1966           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
1967           support/cpp2/cppdefault.h, support/cpp2/except.h,
1968           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
1969           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
1970           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
1971           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
1972           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
1973           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
1974           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
1975           support/cpp2/opts.h, support/cpp2/output.h,
1976           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
1977           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
1978           support/cpp2/system.h, support/cpp2/version.c,
1979           support/cpp2/Makefile.in: modified
1980         * support/cpp2/opts-common.c: added
1981         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
1982         * device/lib/pic16/libdev/pic18f[24]5j10.c:
1983           search for included source file in local directory
1984         * sim/ucsim/configure, sim/ucsim/configure.in:
1985           temporary solution to suppress GCC 4.2.0 c++ warning:
1986           deprecated conversion from string constant to `char *'
1987
1988 2007-06-01 Raphael Neider <rneider AT web.de>
1989
1990         * device/lib/pic/libdev/pic12f683.c,
1991         * device/include/pic/pic12f683.h: added GPIO bits
1992
1993 2007-06-01 Raphael Neider <rneider AT web.de>
1994
1995         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
1996           quotation marks, clarified role of PIC14 vs. PIC16 ports
1997         * src/pic16/devices.inc,
1998         * device/include/pic16/pic18fregs.h,
1999         * device/include/pic16/pic18f[24][45]j10.h,
2000         * device/lib/pic16/pics.all,
2001         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2002           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2003         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2004           for new devices as they are not yet supported by gputils
2005
2006 2007-05-31 Borut Razem <borut.razem AT siol.net>
2007
2008         * Small Device C Compiler 2.7.0 released
2009         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2010           changed sdcc version to 2.7.1
2011         * support/scripts/sdcc.nsi: added How to create WIN32 release
2012           setup.exe package
2013
2014 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2015
2016         * doc/sdccman.lyx: documented initialization and allocation of absolute
2017           variables, bit parameter passing, the need for function pointers to be
2018           reentrant and alpha quality support of inline and retrict
2019
2020 2007-05-26 Borut Razem <borut.razem AT siol.net>
2021
2022         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2023           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2024         * docs/knownbugs.html: updated
2025
2026 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2027
2028         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2029           thanks Jan Waclawek
2030         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2031           AOP_CRY and ruonly
2032           (gencjneshort): optimized when left is AOP_DIR
2033         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2034           initializing unions in a struct/array
2035         * support/regression/fwk/include/testfwk.h: added defines for data, near
2036           and far for host and z80
2037         * support/regression/tests/bug1723128.c: new, added
2038
2039 2007-05-22 Borut Razem <borut.razem AT siol.net>
2040
2041         * doc/knownbugs.html: updated
2042
2043 2007-05-21 Raphael Neider <rneider AT web.de>
2044
2045         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2046           error message instead
2047         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2048
2049 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2050
2051         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2052
2053 2007-05-21 Raphael Neider <rneider AT web.de>
2054
2055         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2056           closes #1722392
2057         * src/regression/gpsim_assert.h,
2058         * src/regression/Makefile,
2059         * src/regression/pcodeopt.c: regression test for the above fix
2060
2061 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2062
2063         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2064           jumps to self, fixed bug 1717281
2065
2066 2007-05-10 Borut Razem <borut.razem AT siol.net>
2067
2068         * support/scripts/gen_known_bugs.pl: cosmetic fix
2069         * doc/knownbugs.html: generated by gen_known_bugs.pl
2070
2071 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2072
2073         * src/SDCCast.c (createFunction): also generate non-inlined version of
2074           function for functions declared as "static inline"
2075         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2076           function can be inlined after non-inlined version generated.
2077
2078 2007-05-10 Borut Razem <borut.razem AT siol.net>
2079
2080         * support/scripts/gen_known_bugs.pl: added script
2081           which generates knownbugs.html
2082
2083 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2084
2085         * doc/knownbugs.html: updated for release 2.7.0
2086
2087 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2088
2089         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2090
2091 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2092
2093         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2094           (throughout): updated generating comments
2095         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2096           (throughout): updated generating comments
2097         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2098           rule instead of at the second, or it might skip lines when removing the
2099           complete match
2100         * support/regression/tests/bug1714204.c: changed test to foo
2101
2102 2007-05-08 Borut Razem <borut.razem AT siol.net>
2103
2104         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2105           thanks to SDCC Distributed Compile Farm members,
2106           added Z80 and GBZ80 command line options
2107         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2108
2109 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2110
2111         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2112         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2113         * support/regression/tests/longlit.c: modified to be tested at all and
2114           to pass the actual test
2115
2116 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2117
2118         * device/include/mcs51/uPSD33xx.h: Added.
2119
2120 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2121
2122         * device/lib/_gptrput.c,
2123         * device/lib/_gptrget.c: removed old code,
2124          (_gptrgetWord),
2125         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2126         * support/regression/tests/bug1714204.c: new, added
2127
2128 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2129
2130         * support/regression/tests/regtrack.c: test was never executed
2131           because of the regression test being picky about white spaces.
2132         * device/lib/mcs51/crtclear.asm: added comment
2133
2134 2007-05-06 Raphael Neider <rneider AT web.de>
2135
2136         * device/lib/pic/Makefile.rules,
2137         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
2138           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
2139
2140 2007-05-06 Raphael Neider <rneider AT web.de>
2141
2142         * src/pic16/device.h,
2143         * src/pic16/main.h,
2144         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
2145           _pic16_setDefaultOptions): removed/reordered command-line args
2146         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
2147           devices, regrouped command line args, environment variables),
2148           clarified sone points, added sections on how to add devices to the
2149           PIC14/PIC16 ports
2150
2151 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
2152
2153         * src/z80/peeph.def: fixed bug in rule 2
2154
2155 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
2156
2157         * src/port.h: added TARGET_MCS51_LIKE
2158         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
2159           take advantage of it too
2160         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
2161           (shiftR2Left2Result): Optimized: don't check shifting by 0
2162         * src/z80/peeph-z80.def,
2163         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
2164           modifications, see patch 1700823
2165         * src/mcs51/peep.c (): fixed bug 1712928
2166         * support/regression/tests/bug1712928.c: new, added
2167
2168 2007-05-05 Borut Razem <borut.razem AT siol.net>
2169
2170         * device/lib/pic16/Makefile.common.in,
2171           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
2172           removed bash dependencies
2173
2174 2007-05-01 Borut Razem <borut.razem AT siol.net>
2175
2176         * src/SDCCicode.c:
2177           fixed bug #1710507: --i-code-in-asm makes compile fail
2178           all iCode comments are now one liners
2179         * src/mcs51/gen.c: fixed memory leak
2180
2181 2007-05-01 Raphael Neider <rneider AT web.de>
2182
2183         * device/lib/pic/libdev/*.c
2184         * device/include/pic/*.h: regenerated all device libs from updated
2185           .inc files
2186         * support/scripts/inc2h.pl: documented usage, now uses strict to
2187           catch more bugs
2188
2189 2007-04-30 Borut Razem <borut.razem AT siol.net>
2190
2191         * doc/sdccman.lyx:
2192           fixed bug #1669175: Problem with space in output paths
2193           documented how to use paths with spaces for Windows users
2194
2195 2007-04-29 Borut Razem <borut.razem AT siol.net>
2196
2197         * Fixed svn:eol-style and svn:keywords properties
2198         * src/SDCCval.c: fixed bug
2199           #1592871: Segfault with "large" const arrays of characters
2200           replaced recursion with iteration
2201         * Removed svn:executable property from non-executable files
2202
2203 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2204
2205         * src/mcs51/gen.c (genRet): fixed bug 1707003
2206
2207 2007-04-27 Raphael Neider <rneider AT web.de>
2208
2209         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2210           createReachingDefinitions,assignValnums,pic16_destructDF,
2211           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2212           prevent NULL pointer dereferences
2213         * device/lib/pic/libdev/pic16f886.c,
2214         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2215           prevent building them, gputils do not really support them yet
2216
2217 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2218
2219         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2220           helps printf_small. 32 bytes more __idata mem.
2221
2222 2007-04-27 Raphael Neider <rneider AT web.de>
2223
2224         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2225           return early when pb or pb->pcHead is NULL (patch #1708427)
2226         * src/regression/empty.c,
2227         * src/regression/Makefile: added test with empty functions
2228         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2229
2230 2007-04-27 Borut Razem <borut.razem AT siol.net>
2231
2232         * src/SDCCast.c: fixed feature request
2233           #1547512: Redundant strings linked when using sizeof("abc")
2234
2235 2007-04-23 Borut Razem <borut.razem AT siol.net>
2236
2237         * doc/sdccman.lyx, src/SDCCmain.c:
2238           peep-hole comments are generated only if --fverbose-asm option is
2239           specified and --no-peep-comments is not, as proposed by Frieder.
2240         * support/regression/Makefile.in: compile regression tests with
2241           --fverbose-asm option so one can "grep" whether a new (or an old)
2242           peephole is (still) applied; requested by Frieder.
2243
2244 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2245
2246         * device/include/pic/pic16f886.h,
2247         * device/include/pic/pic16f887.h,
2248         * device/lib/pic/libdev/pic16f886.c,
2249         * device/lib/pic/libdev/pic16f887.c,
2250         * device/include/pic/pic14devices.txt,
2251         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2252
2253 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2254
2255         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2256           fixes #1704666
2257
2258 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2259
2260         * device/lib/_memset.c: assembler version for mcs51
2261
2262 2007-04-22 Borut Razem <borut.razem AT siol.net>
2263
2264         * support/scripts/listerr.c: program to create the list of errors and
2265           warnings list from - added
2266         * doc/sdccman.lyx: removed the note
2267           "For list of warnings and corresponding codes, see err_warn.txt"
2268         * src/SDCCsymt.c: fixed bug #1699804:
2269           Bug with some uses of sizeof(static local array) (MCS51)
2270         * support/regression/tests/bug-1699804.c: added
2271
2272 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2273
2274         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2275           (main): added option -i,
2276           (asmbl, case S_INCL): use search_path_fopen,
2277           mostly from patch 1579668 by Peter Miller, thanks
2278         * src/z80/main.c: fixed typo --callee-saves-bc
2279         * device/include/mcs51/compiler.h: added sfrword for Tasking
2280
2281 2007-04-20 Borut Razem <borut.razem AT siol.net>
2282
2283         * src/z80/main.c: replaced reserved keyword asm with asmblr
2284
2285 2007-04-19 Borut Razem <borut.razem AT siol.net>
2286
2287         * src/port.h: use const pointers to strings
2288         * src/SDCCargs.h: declared getStringArg() and getIntArg()
2289         * src/pic16/main.c: include SDCCargs.h
2290         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2291           const char, since the strings are dynamically allocated
2292         * src/SDCCmain.c: options.code_seg and options.const_seg are
2293           dynamically allocated; check port specific command line options
2294           before the general ones
2295         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2296
2297 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2298
2299         * device/include/ds400rom.h,
2300         * device/lib/ds390/lcd390.c,
2301         * device/lib/ds390/memcpyx.c,
2302         * device/lib/ds390/rtc390.c,
2303         * device/lib/ds400/ds400rom.c,
2304         * device/lib/ds400/memcpyx.c,
2305         * device/lib/hc08/_ret.c: more replacements of keywords with their
2306           double underscore equivalents
2307         * device/lib/ds390/Makefile.in,
2308         * device/lib/ds400/Makefile.in,
2309         * device/lib/gbz80/Makefile.in,
2310         * device/lib/hc08/Makefile.in,
2311         * device/lib/mcs51/Makefile.in,
2312         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2313
2314 2007-04-17 Borut Razem <borut.razem AT siol.net>
2315
2316         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2317           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2318           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2319           to --fverbose-asm, to be gcc'ish
2320
2321 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2322
2323         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2324
2325 2007-04-17 Borut Razem <borut.razem AT siol.net>
2326
2327         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2328         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2329           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2330           with their double underscore equivalent
2331
2332 2007-04-14 Borut Razem <borut.razem AT siol.net>
2333
2334         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2335           source"
2336
2337 2007-04-13 Borut Razem <borut.razem AT siol.net>
2338
2339         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2340           C99 standard
2341         * device/examples/serialcomm/windows/serial.[ch],
2342           device/examples/serialcomm/windows/test_serialcomm.cpp:
2343           updated by Bela Torok
2344         * device/examples/serialcomm/windows/serialcomm.dsw,
2345           device/examples/serialcomm/windows/serialcomm.dsp: added
2346
2347 2007-04-13 Jan Waclawek <wek AT efton.sk>
2348
2349         * doc/sdccman.lyx: additions and changes at various places
2350           (submitted as #1697136).
2351           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2352
2353 2007-04-10 Borut Razem <borut.razem AT siol.net>
2354
2355         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2356           LyX file format changed to 245
2357         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2358           "FreeWare" replaced with "free open source"
2359
2360 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2361
2362         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2363
2364 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2365
2366         * device/include/pic16/pic18fregs.h,
2367         * device/lib/_bp.c,
2368         * device/lib/_decdptr.c,
2369         * device/lib/_divsint.c,
2370         * device/lib/_divslong.c,
2371         * device/lib/_divuint.c,
2372         * device/lib/_divulong.c,
2373         * device/lib/_fs2schar.c,
2374         * device/lib/_fs2sint.c,
2375         * device/lib/_fs2slong.c,
2376         * device/lib/_fs2uchar.c,
2377         * device/lib/_fs2uint.c,
2378         * device/lib/_fs2ulong.c,
2379         * device/lib/_fsadd.c,
2380         * device/lib/_fscmp.c,
2381         * device/lib/_fsdiv.c,
2382         * device/lib/_fseq.c,
2383         * device/lib/_fsget1arg.c,
2384         * device/lib/_fsget2args.c,
2385         * device/lib/_fsgt.c,
2386         * device/lib/_fslt.c,
2387         * device/lib/_fsmul.c,
2388         * device/lib/_fsneq.c,
2389         * device/lib/_fsnormalize.c,
2390         * device/lib/_fsreturnval.c,
2391         * device/lib/_fsrshift.c,
2392         * device/lib/_fssub.c,
2393         * device/lib/_fsswapargs.c,
2394         * device/lib/_gptrget.c,
2395         * device/lib/_gptrgetc.c,
2396         * device/lib/_gptrput.c,
2397         * device/lib/_logexpf.c,
2398         * device/lib/_modsint.c,
2399         * device/lib/_modslong.c,
2400         * device/lib/_moduint.c,
2401         * device/lib/_modulong.c,
2402         * device/lib/_mulint.c,
2403         * device/lib/_mullong.c,
2404         * device/lib/_schar2fs.c,
2405         * device/lib/_ser.c,
2406         * device/lib/_setjmp.c,
2407         * device/lib/_sint2fs.c,
2408         * device/lib/_slong2fs.c,
2409         * device/lib/_spx.c,
2410         * device/lib/_uchar2fs.c,
2411         * device/lib/_uint2fs.c,
2412         * device/lib/_ulong2fs.c,
2413         * device/lib/asincosf.c,
2414         * device/lib/atanf.c,
2415         * device/lib/calloc.c,
2416         * device/lib/ds390/tinibios.c,
2417         * device/lib/ds400/tinibios.c,
2418         * device/lib/expf.c,
2419         * device/lib/free.c,
2420         * device/lib/hc08/_mulint.c,
2421         * device/lib/logf.c,
2422         * device/lib/malloc.c,
2423         * device/lib/printf_fast.c,
2424         * device/lib/printf_tiny.c,
2425         * device/lib/printfl.c,
2426         * device/lib/realloc.c,
2427         * device/lib/ser_ir.c,
2428         * device/lib/serial.c,
2429         * support/regression/tests/libmullong.c: replaced all special keywords
2430           with their double underscore equivalent
2431         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2432         * device/lib/Makefile.in: compile libs with --std-c99 instead of
2433           --std-sdcc99
2434         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2435           (genRet): if the bit-symbol is ruonly it already is in the carry
2436         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2437         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2438         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2439           type UCHAR if dest is not bit
2440
2441 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2442
2443         * device/include/math.h,
2444         * device/lib/cotf.c,
2445         * device/lib/expf.c,
2446         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2447
2448 2007-04-01 Borut Razem <borut.razem AT siol.net>
2449
2450         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2451           fixed bug #1692042: input buffer overflow...scanner uses REJECT
2452         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2453           gcc_unreachable() called internal_error()...
2454
2455 2007-03-30 Raphael Neider <rneider AT web.de>
2456
2457         * src/pic/ralloc.c (isData): suppress garbage debug output
2458
2459 2007-03-28 Borut Razem <borut.razem AT siol.net>
2460
2461         * doc/sdccman.lyx:
2462           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2463           is developed, built and used worldwide, and the word "night" doesn't
2464           make any sense.
2465
2466 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2467
2468         * device/include/mcs51/C8051F360.h: new, added
2469         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2470
2471 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2472
2473         * src/SDCC.y (declaration_specifiers, function_specifier),
2474         * support/Util/SDCCerr.c,
2475         * support/Util/SDCCerr.h,
2476         * src/SDCCsymt.h,
2477         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2478           inline keyword
2479         * src/SDCCmem.c (deallocParms),
2480         * src/SDCCast.c: support for function inlining, not quite complete
2481         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2482           'restrict' qualifier
2483
2484 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2485
2486         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2487           (saveRBank, unsaveRBank): don't save bits,
2488           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2489         * support/regression/tests/bug1535242.c: new, added
2490         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2491           thanks Alexey Shamrin <shamrin AT gmail.com>,
2492           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2493           removed header guard)
2494         * .version,
2495         * sdcc.spec: bumped version to 2.6.5
2496         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2497
2498 2007-03-22 Borut Razem <borut.razem AT siol.net>
2499
2500         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2501           fixed bug #1653671: sdcdb integration into ddd is broken
2502
2503 2007-03-22 Raphael Neider <rneider AT web.de>
2504
2505         * src/pic/gen.c (popGetExternal): augmented to also create references
2506           to external variables (not only labels),
2507           (genCall): comment on plan to reduce PAGESEL overhead,
2508           (genFunction, genEndFunction): also save/restore FSR around interrupt
2509           handling code, removed lots of unused code
2510           (genDivOneByte): release acquired temp register
2511         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2512           of popGetExternal
2513         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2514           for registers that need to be saved during interrupts (FSR, STATUS,
2515           PCLATH; W needs special handling), currently only FSR is used
2516
2517 2007-03-22 Raphael Neider <rneider AT web.de>
2518
2519         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2520
2521 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2522
2523         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2524
2525 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2526
2527         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2528
2529 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2530
2531         * as/link/aslink.h: added LKOBJEXT
2532         * as/link/hc08/link_hc08.dsp,
2533         * as/link/hc08/Makefile.bcc,
2534         * as/link/hc08/Makefile.in,
2535         * as/link/mcs51/aslink.dsp,
2536         * as/link/mcs51/Makefile.bcc,
2537         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2538         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2539         * as/link/lkaomf51.c: merged and moved
2540         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2541         * as/link/z80/lkdata.c,
2542         * as/link/lkdata.c: merged and moved
2543         * as/link/hc08/lkmain.c,
2544         * as/link/mcs51/lkmain.c: cosmetic changes
2545         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2546         * as/link/lklex.c: use LKOBJEXT
2547         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2548           ANSI-fied functions, removed bubble-sorts
2549         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2550           ANSI-fied functions
2551         * as/link/z80/linkgbz80.dsp,
2552         * as/link/z80/linkz80.dsp,
2553         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2554           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2555         * as/link/z80/lkhead.c,
2556         * as/link/z80/lklex.c: deleted
2557         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2558         * as/link/z80/lkmain.c: added copyfile()
2559
2560 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2561
2562         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2563
2564 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2565
2566         * device/lib/_strlen.c: assembler version for mcs51
2567
2568 2007-03-13 Raphael Neider <rneider AT web.de>
2569
2570         * device/include/pic16/pic18f2221.h,
2571         * device/include/pic16/pic18f2321.h,
2572         * device/include/pic16/pic18f2331.h,
2573         * device/include/pic16/pic18f4221.h,
2574         * device/include/pic16/pic18f4321.h,
2575         * device/include/pic16/pic18f4331.h: fixed config byte location names
2576         * support/scripts/inc2h-pic16.pl: removed debug output, emit
2577           consistently named config byte locations
2578
2579 2007-03-13 Borut Razem <borut.razem AT siol.net>
2580
2581         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2582           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2583           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2584           as/link/z80/Makefile.in, as/z80/Makefile.in:
2585           introduced LDFLAGS
2586
2587 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2588
2589         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2590         * device/lib/printf_large.c: pointer was converted to generic
2591         pointer for mcs51 models other than model-small (Maarten noticed)
2592
2593 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2594
2595         * device/include/mcs51/ADuC84x.h: Added.
2596
2597 2007-03-10 Borut Razem <borut.razem AT siol.net>
2598
2599         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2600           fixed RFE #1624219: double backslashes in filenames;
2601           functions hexEscape(), octalEscape() and copyStr() moved from
2602           SDCCval.c to SDCCutil.c and made them glovbally available
2603
2604 2007-03-09 Borut Razem <borut.razem AT siol.net>
2605
2606         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2607           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2608           1673361: Missaligned comments in output files
2609
2610 2007-03-09 Raphael Neider <rneider AT web.de>
2611
2612         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2613
2614 2007-03-09 Raphael Neider <rneider AT web.de>
2615
2616         * src/pic/gen.c,
2617         * src/pic/glue.c,
2618         * src/pic/ralloc.c: suppress undesired debug output
2619         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2620
2621 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2622
2623         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2624
2625 2007-03-07 Borut Razem <borut.razem AT siol.net>
2626
2627         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2628           search include files in the current directory
2629
2630 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2631
2632         * src/SDCCglue.c (emitMaps, glue),
2633         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2634           absolute xdata
2635         * support/regression/tests/absolute.c: added xdata test
2636
2637 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2638
2639         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2640           added condition to macro, fixes bug 1666080
2641
2642 2007-03-02 Raphael Neider <rneider AT web.de>
2643
2644         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2645
2646 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2647
2648         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2649         be cleared. Unconditionally set __XPAGE
2650         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2651
2652 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2653
2654         * src/SDCCglobl.h,
2655         * src/SDCCmain.c,
2656         * src/mcs51/gen.c,
2657         * src/mcs51/rtrack.c,
2658         * src/ds390/gen.c,
2659         * doc/sdccman.lyx: added --no-gen-comments
2660         * src/mcs51/peeph.def: added 192.b, disabled 185
2661
2662 2007-02-25 Raphael Neider <rneider AT web.de>
2663
2664         * src/pic16/gen.c (genCast): fixed typo
2665         * device/lib/pic16/Makefile.subdir: only install existing files
2666         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2667
2668 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2669
2670         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2671         * device/lib/mcs51/crtclear.asm,
2672         * device/lib/mcs51/crtxclear.asm: renumbered labels
2673         * device/lib/mcs51/Makefile.in: added crtcall.asm
2674         * doc/sdccman.lyx: documented mcs51 crt* library startup code
2675         * src/mcs51/gen.c (movc): removed,
2676           (aopGet, genPlusBits): clear a after loading the carry (possibly from
2677             acc.x or psw.x),
2678           (toCarry, genSend, genRet): added function toCarry,
2679           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2680           (assignBit, genAssign, genCast): added function assignBit
2681         * src/mcs51/Makefile.bcc: added rtrack.c
2682         * src/mcs51/ralloc.h: made valueKnown a bitfield
2683         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2684           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2685           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2686         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2687         * src/z80/gen.c: added AOP_IS_PAIRPTR,
2688           (_pop): only pop valid pairs, see gencjneshort,
2689           (gencjneshort): return pair that still needs to be popped, restructured,
2690           (gencjne, genCmpEq): call _pop
2691
2692 2007-02-23 Raphael Neider <rneider AT web.de>
2693
2694         * device/include/pic/pic14devices.txt: 16f684 has only one config word
2695
2696 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2697
2698         * device/include/mcs51/P89LPC925.h: Added.
2699
2700 2007-02-18 Raphael Neider <rneider AT web.de>
2701
2702         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2703
2704 2007-02-17 Borut Razem <borut.razem AT siol.net>
2705
2706         * support/cpp2/directives.c, support/cpp2/version.c:
2707           synchronized with GCC CPP 4.1.2
2708
2709 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2710
2711         * src/mcs51/rtrack.h,
2712         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2713           by checking the strings passed by emitcode() to the assembler.
2714           Feel free to change. This in part addresses RFE #482179.
2715           Set environment variable SDCC_RTRACK to enable.
2716         * src/mcs51/gen.c: inserted hooks
2717         * src/mcs51/ralloc.h: added two members to struct regs
2718         * support/regression/tests/regtrack.c: added
2719
2720 2007-02-14 Borut Razem <borut.razem AT siol.net>
2721
2722         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2723         * Makefile.in: applied patch from Makefile related part of
2724           #1469393: Compiler does not initialize static data
2725
2726 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2727
2728         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2729           for better fix of bug 1273984, compiles pic16 rand.c
2730
2731 2007-02-12 Borut Razem <borut.razem AT siol.net>
2732
2733         * src/pic16/main.c: fixed pic16 standard library directory bug
2734
2735 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2736
2737         * src/hc08/gen.c (genSwap): fix swap regression test
2738
2739 2007-02-10 Borut Razem <borut.razem AT siol.net>
2740
2741         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2742           with same scope
2743         * support/regression/tests/bug-1654060.c: added regression test for
2744           #1654060
2745
2746 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2747
2748         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2749         bit moves in return statement
2750
2751 2007-02-09 Borut Razem <borut.razem AT siol.net>
2752
2753         * src/SDCC.y: fixed bug #1654060 typedef within function causes
2754           syntax error
2755
2756 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2757
2758         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2759         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2760
2761 2007-02-07 Raphael Neider <rneider AT web.de>
2762
2763         * src/pic16/devices.inc,
2764         * device/include/pic16/pic18fregs.h,
2765         * device/include/pic16/pic18f[24][34]31.h,
2766         * device/lib/pic16/libdev/pic18f[24][34]31.c,
2767         * device/lib/pic16/pics.all: added 18f[24][34]31 family
2768         * device/lib/pic16/libio/i2c.ignore: do not build i2c
2769
2770 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2771
2772         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2773           can this have lived here for so many years?
2774         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2775           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2776         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2777
2778 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2779
2780         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2781         appended by loop induction must be at the very end of the eBBlock
2782
2783 2007-02-05 Kevin Vigor
2784
2785         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2786
2787 2007-02-05 Borut Razem <borut.razem AT siol.net>
2788
2789         * support/regression/fwk/lib/timeout.c: native WIN32 port,
2790           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2791
2792 2007-02-03 Borut Razem <borut.razem AT siol.net>
2793
2794         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2795           applied patch #1646602 option to set default signedness of char to
2796           unsigned, added -funsigned-char command line option,
2797           thanks to Gunther Jehle
2798         * device/lib/Makefile.in: added the -f option to rm so it doesn't
2799           prompt for file deletion a few hundred times (especially the
2800           subversion files, which have ro permissions so it asks for
2801           confirmation), thanks to Simon McAuliffe;
2802           added {} + option to find in order to remove multiple files from a
2803           single rm commad
2804
2805 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2806
2807         * device/include/mcs51/SST89x5xRDx.h: Added.
2808
2809 2007-02-02 Raphael Neider <rneider AT web.de>
2810
2811         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2812         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2813
2814 2007-02-01 Raphael Neider <rneider AT web.de>
2815
2816         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2817           config words again
2818
2819 2007-01-31 Borut Razem <borut.razem AT siol.net>
2820
2821         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2822           if compiled with GCC. Thanks to Raphael Neider
2823
2824 2007-01-31 Raphael Neider <rneider AT web.de>
2825
2826         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2827             operand names, handles name and (name + n) for all n,
2828           (sameBank): restructured, also check bank allocation policy,
2829         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2830           (pic14_operandsAllocatedInSameBank): check whether to operands
2831             will be allocated into the same bank (i.e., section) to reduce
2832             BANKSEL overhead, queried from pcode.c:sameBank,
2833           (pic14printLocals): reintroduced clustering registers into a single
2834             section: all compiler generated symbols will now reside in one
2835             bank (per file), reducing BANKSEL overhead and code size,
2836           (showAllMemmaps): use local dbuf where possible
2837
2838 2007-01-29 Raphael Neider <rneider AT web.de>
2839
2840         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2841           (call_libraryfunc): retrieve/create symbol and mark as used,
2842           (genFunction): mark defined functions as non-extern and add again
2843            to code memmap for later output
2844         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2845           (pic14printLocals): reworked for new symbol emission,
2846           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2847           showAllMemmaps): reworked symbol output using dbufs, added handling
2848             of string literals (still incomplete),
2849           (picglue): removed symbol emission, moved into showAllMemmaps,
2850           (emitSymbolSet): new workhorse for symbol output,
2851           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2852
2853 2007-01-29 Borut Razem <borut.razem AT siol.net>
2854
2855         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2856           component contains the extension separator.
2857
2858 2007-01-28 Borut Razem <borut.razem AT siol.net>
2859
2860         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2861           on WIN32
2862         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2863           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2864           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2865           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2866           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2867           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2868           src/z80/gen.c, support/Util/MySystem.c:
2869           accept slash and backslash as directory separator on WIN32 and
2870           Cygwin ports
2871
2872 2007-01-28 Raphael Neider <rneider AT web.de>
2873
2874         * src/pic16/devices.inc,
2875         * device/include/pic16/pic18f[24][23]21.h,
2876         * device/include/pic16/pic18fregs.h,
2877         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2878         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2879         * device/lib/pic16/libio/adc.ignore,
2880         * device/lib/pic16/libio/i2c.ignore,
2881         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2882           family, as gputils do not yet support the devices
2883         * device/lib/pic16/Makefile.subdir: ignore errors on install
2884         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2885           headers and libraries from gputils .inc files
2886
2887 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2888
2889         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2890
2891 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2892
2893         * doc/sdccman.lyx: add printf benchmarks
2894
2895 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2896
2897         * device/lib/printf_fast.c: fix %c, char promoted to int
2898         * device/lib/printf_tiny.c: fix %c, char promoted to int
2899
2900 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2901
2902         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2903
2904 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2905
2906         * support/regression/tests/swap.c: 64 bit hosts failed
2907         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2908
2909 2007-01-25 Raphael Neider <rneider AT web.de>
2910
2911         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2912           based on absolute register address, patch by Alex Blond
2913
2914 2007-01-22 Raphael Neider <rneider AT web.de>
2915
2916         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2917           emitted, do not emit them again...
2918
2919 2007-01-22 Raphael Neider <rneider AT web.de>
2920
2921         * src/regression/bank1.c, src/regression/compare6.c,
2922           src/regression/add.c: cosmetic changes
2923         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2924         * src/pic/gen.c: fixed global zero and one,
2925           (aopForSym): removed unued code,
2926           (aopGet): assert aop is defined, check and use `index' of
2927             pCodeImmd operands (fixes #1630908),
2928         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2929           (register_reassign): prevent accidental register unification,
2930           (ReuseReg): cosmetic changes (also above)
2931         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2932           pic14emitStaticSeg): do not emit initialized data,
2933           (printIval*): replaced with working versions,
2934           (pic14createInterruptVect,picglue): use idata for initialized data,
2935             now init data should work in all modules (not only main()),
2936         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2937
2938 2007-01-21 Borut Razem <borut.razem AT siol.net>
2939
2940         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2941           use -fPIC or -fpic if they are supported and not ignored
2942         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2943         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2944
2945 2007-01-20 Borut Razem <borut.razem AT siol.net>
2946
2947         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2948           implemented RFE #1470316: allow "$" in variable names
2949
2950 2007-01-20 Raphael Neider <rneider AT web.de>
2951
2952         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
2953
2954 2007-01-20 Raphael Neider <rneider AT web.de>
2955
2956         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
2957         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
2958         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
2959         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
2960           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
2961         * device/lib/pic/libdev/pic*.c,
2962         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
2963         * device/lib/pic/libdev/Makefile.in: show progress
2964
2965 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
2966
2967         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
2968         * support/scripts/sdcc_cygwin_mingw32,
2969         * support/scripts/sdcc_mingw32,
2970         * support/scripts/build.mak: replaced --datadir by --datarootdir for
2971         conformance with autoconf 2.6
2972
2973 2007-01-19 Raphael Neider <rneider AT web.de>
2974
2975         * src/pic/device.c (register_map): fixed list construction
2976         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
2977           (genMod): removed case for genModbits,
2978           (genModbits): removed as now unused/unimplemented
2979         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
2980
2981 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2982
2983         * support/regression/tests/swap.c: added in response to #1638622
2984         * doc/sdccman.lyx: synced version, minor changes
2985
2986 2007-01-18 Borut Razem <borut.razem AT siol.net>
2987
2988         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
2989           thanks to Gunther Jehle
2990         * src/asm.c: don't die if the file drfined in #line couldn't be opened
2991         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
2992           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
2993           use filename in lineno instead.
2994         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
2995           print the file name in ast_print()
2996
2997 2007-01-18 Borut Razem <borut.razem AT siol.net>
2998
2999         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3000           defined in MSVC
3001         * src/SDCC.lex: stringLiteral() returns const char pointer,
3002           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3003           fixed column counting
3004         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3005           accept const char pointer as parameter
3006         * src/SDCCdwarf2.c: corrected buffer size
3007
3008 2007-01-17 Borut Razem <borut.razem AT siol.net>
3009
3010         * support/Util/dbuf_string.c: fixed for amd64
3011
3012 2007-01-15 Borut Razem <borut.razem AT siol.net>
3013
3014         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3015           removed terminal symbol ELIPSIS, since it was never generated by the
3016           lexer and it was wrongly used in parameter_identifier_list rule
3017
3018 2007-01-15 Raphael Neider <rneider AT web.de>
3019
3020         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3021             code page and data banking description
3022         * src/pic/genarith.c,
3023         * src/pic/gen.h: removed bit arithmetic functions,
3024             updated exit(1) to exit(EXIT_FAILURE)
3025         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3026         * device/include/pic16/pic18f2455.h,
3027         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3028             TRISD and TRISE, fixed/added some bit names
3029         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3030         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3031             updated pic18f2455.{c,h} instead of duplicating them
3032
3033 2007-01-14 Borut Razem <borut.razem AT siol.net>
3034
3035         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3036           Cannot debug files that contain spaces in the path name
3037           by converting spaces in asm file name to underscores
3038
3039 2007-01-13 Borut Razem <borut.razem AT siol.net>
3040
3041         * doc/sdccman.lyx: fixed format errors
3042
3043 2007-01-10 Borut Razem <borut.razem AT siol.net>
3044
3045         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3046           codeseg/constseg #pragma fail
3047         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3048         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3049           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3050           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3051
3052 2007-01-09 Borut Razem <borut.razem AT siol.net>
3053
3054         * get rid of diagnistic.[ch], pretty-print.[ch],
3055           c-pretty-print.[ch], ... used just for error, warning, ...
3056           message formatting
3057         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3058           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3059           suppoprt/cpp2/pretty-print.[ch]:
3060           removed
3061         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3062           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3063           suppoprt/cpp2/sdcpp.dsp:
3064           changed
3065
3066 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3067
3068         * device/lib/printf_large.c (output_float): removed recursion,
3069           use smaller buffer on stack for mcs51,
3070           fixed bug printing 1.96
3071         * support/regression/tests/snprintf.c: added test
3072
3073 2007-01-07 Borut Razem <borut.razem AT siol.net>
3074
3075         * use dynamic memory buffers instead temporary files
3076         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3077           added
3078         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3079           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3080           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3081           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3082           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3083           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3084           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3085           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3086           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3087           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3088           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3089           support/Util/dbuf.c, support/Util/dbuf.h:
3090           modified
3091         * .version, sdcc.spec: bumped version to 2.6.4
3092
3093 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3094
3095         * src/port.h: added TARGET_Z80_LIKE macro
3096         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3097           output PSEG location if --xram-loc or --xstack-loc was used
3098         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3099
3100 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3101
3102         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3103         * as/as_z80.dsp,   as/z80/as_z80.dsp,
3104         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
3105         * sdcc.dsw: moved project files into subdir
3106         * as/hc08/as_hc08.dsp,
3107         * as/hc08/Makefile.bcc,
3108         * as/hc08/Makefile.in,
3109         * as/mcs51/Makefile.bcc,
3110         * as/mcs51/Makefile.in,
3111         * as/z80/Makefile.bcc,
3112         * as/z80/Makefile.in,
3113         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3114         * as/hc08/asm.h,
3115         * as/mcs51/asm.h,
3116         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3117         * as/hc08/asmain.c,
3118         * as/hc08/assym.c,
3119         * as/mcs51/asmain.c,
3120         * as/mcs51/assym.c,
3121         * as/z80/assym.c: removed include "strcmpi.h"
3122         * as/hc08/strcmpi.c,
3123         * as/hc08/strcmpi.h,
3124         * as/mcs51/strcmpi.c,
3125         * as/mcs51/strcmpi.h,
3126         * support/Util/strcmpi.c,
3127         * support/Util/strcmpi.h: removed files
3128         * as/strcmpi.c: added as_strncmpi()
3129
3130 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3131
3132         * sdcc.dsw: Added some dependencies on project config.dsp
3133
3134 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
3135
3136         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
3137           with [di]ram_start to fix a regresion
3138
3139 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3140
3141         * configure.in: added missing mcs51 in status output
3142         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
3143         directory
3144         * debugger/mcs51/clean.mk (distclean): remove config.h
3145         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
3146         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
3147         options.h, s-options-h and options.c
3148         * support/cpp2/clean.mk: unused, removed
3149         * Makefile.common.in,
3150         * main_in.mk,
3151         * as/Makefile.in,
3152         * as/hc08/Makefile.in,
3153         * as/hc08/clean.mk,
3154         * as/mcs51/Makefile.in,
3155         * as/mcs51/clean.mk,
3156         * as/z80/clean.mk,
3157         * as/z80/conf.mk,
3158         * as/z80/Makefile.in,
3159         * as/z80/clean.mk,
3160         * as/link/Makefile.in,
3161         * as/link/hc08/Makefile.in,
3162         * as/link/hc08/clean.mk,
3163         * as/link/mcs51/Makefile.in,
3164         * as/link/mcs51/clean.mk,
3165         * as/link/z80/Makefile.in,
3166         * as/link/z80/clean.mk,
3167         * as/link/z80/conf.mk,
3168         * debugger/mcs51/Makefile.in,
3169         * debugger/mcs51/clean.mk,
3170         * device/include/Makefile.in,
3171         * device/lib/Makefile.in,
3172         * device/lib/mcs51/Makefile.in,
3173         * device/lib/pic/Makefile.in,
3174         * device/lib/pic/Makefile.common.in,
3175         * device/lib/pic/Makefile.subdir,
3176         * device/lib/pic/Makefile.rules,
3177         * device/lib/pic16/libio/Makefile.in,
3178         * device/lib/pic16/Makefile.subdir,
3179         * device/lib/pic16/libdev/Makefile.in,
3180         * device/lib/pic16/Makefile.rules,
3181         * device/lib/pic16/Makefile.common.in,
3182         * sim/ucsim/avr.src/Makefile.in,
3183         * sim/ucsim/main_in.mk,
3184         * sim/ucsim/cmd.src/Makefile.in,
3185         * sim/ucsim/doc/Makefile.in,
3186         * sim/ucsim/gui.src/Makefile.in,
3187         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3188         * sim/ucsim/gui.src/serio.src/Makefile.in,
3189         * sim/ucsim/hc08.src/Makefile.in,
3190         * sim/ucsim/libltdl/Makefile.in,
3191         * sim/ucsim/s51.src/Makefile.in,
3192         * sim/ucsim/sim.src/Makefile.in,
3193         * sim/ucsim/sim.src/conf.mk,
3194         * sim/ucsim/xa.src/Makefile.in,
3195         * sim/ucsim/z80.src/Makefile.in,
3196         * src/Makefile.in,
3197         * src/clean.mk,
3198         * src/port.mk,
3199         * support/cpp2/Makefile.in,
3200         * support/librarian/Makefile.in,
3201         * support/librarian/clean.mk,
3202         * support/makebin/Makefile.in,
3203         * support/makebin/clean.mk,
3204         * support/packihx/Makefile.in,
3205         * support/regression/Makefile.in,
3206         * support/regression/ports/ds390/spec.mk,
3207         * support/regression/ports/gbz80/spec.mk,
3208         * support/regression/ports/hc08/spec.mk,
3209         * support/regression/ports/mcs51/spec.mk,
3210         * support/regression/ports/mcs51-large/spec.mk,
3211         * support/regression/ports/mcs51-medium/spec.mk,
3212         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3213         * support/regression/ports/pic14/spec.mk,
3214         * support/regression/ports/pic16/spec.mk,
3215         * support/regression/ports/mcs51-stack-auto/spec.mk,
3216         * support/regression/ports/ucz80/spec.mk,
3217         * support/regression/ports/xa51/spec.mk,
3218         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3219         adding a slash after $(top_builddir) and/or adding @datarootdir@
3220         * configure.in,
3221         * debugger/mcs51/configure.in,
3222         * device/lib/pic/configure.in,
3223         * device/lib/pic16/configure.in,
3224         * sim/ucsim/configure.in,
3225         * support/cpp2/configure.in,
3226         * support/packihx/configure.in: changed AC_PREREQ to 2.60
3227         * configure,
3228         * debugger/mcs51/configure,
3229         * device/lib/pic/configure,
3230         * device/lib/pic16/configure,
3231         * sim/ucsim/configure,
3232         * support/cpp2/configure,
3233         * support/packihx/configure: generated with autoconf 2.60
3234
3235 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3236
3237         * as/link/hc08/lkihx.c (newArea),
3238         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3239
3240 2007-01-02 Borut Razem <borut.razem AT siol.net>
3241
3242         * doc/sdccman.lyx: documented #pragma sdcc_hash
3243         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3244           initialized to 0
3245         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3246
3247 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3248
3249         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3250         empty 'while'-loop to work correctly, see regression test 'while.c'
3251         * support/regression/tests/while.c: added
3252
3253 2007-01-01 Borut Razem <borut.razem AT siol.net>
3254
3255         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3256           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3257           support/cpp2/libcpp/sdcpp.c:
3258           sdcpp specific pragma/directive/option handling moved to sdcpp.c
3259         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3260         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3261
3262 2006-12-31 Borut Razem <borut.razem AT siol.net>
3263
3264         * SDCPP synchronized with GCC CPP release version 4.1.1,
3265           currently the latest release:
3266         * support/cpp2/libcpp, support/cpp2/libcpp/include,
3267           support/cpp2/libcpp/include/cpp-id-data.h
3268           support/cpp2/libiberty/fopen_unlocked.c
3269           support/cpp2/libiberty/md5.c
3270           support/cpp2/md5.h
3271           support/cpp2/opt-functions.awk
3272           support/cpp2/opt-gather.awk
3273           support/cpp2/optc-gen.awk
3274           support/cpp2/opth-gen.awk:
3275           added
3276         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3277           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3278           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3279           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3280           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3281           support/cpp2/diagnostic.h, support/cpp2/except.h,
3282           support/cpp2/hwint.h, support/cpp2/input.h,
3283           support/cpp2/intl.h, support/cpp2/move-if-change,
3284           support/cpp2/opts.c, support/cpp2/opts.h,
3285           support/cpp2/output.h, support/cpp2/prefix.c,
3286           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3287           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3288           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3289           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3290           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3291           support/cpp2/version.c:
3292           modified
3293         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3294           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3295           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3296           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3297           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3298           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3299           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3300           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3301           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3302           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3303           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3304           moved
3305         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3306           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3307           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3308           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3309           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3310           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3311           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3312           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3313           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3314           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3315           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3316           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3317           support/cpp2/system.h:
3318           deleted / moved
3319
3320 2006-12-31 Borut Razem <borut.razem AT siol.net>
3321
3322         * configure.in, configure: fixed bug #1538756: configure dies if bison
3323           and flex are not installed, 2nd try
3324
3325 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3326
3327         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3328         400.x for better code in RFE 899102
3329
3330 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3331
3332         * src/SDCCpeeph.c (deadMove),
3333         * src/port.h,
3334         * src/mcs51/peep.h: renamed 'op' by 'reg'
3335         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3336         (scan4op): small change for removeDeadMove(), added support for
3337         'callee saves' and/or PACLL function calls,
3338         (removeDeadMove): added, removes superflous 'mov r%1,%2',
3339         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3340         left in new dispatcher mcs51DeadMove()
3341         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3342         removeDeadMove()
3343         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3344
3345 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3346
3347         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3348           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3349
3350 2006-12-30 Borut Razem <borut.razem AT siol.net>
3351
3352         * support/cpp2/spacs.h: deleted from svn
3353         * configure.in, configure: fixed bug #1538756: configure dies if bison
3354           and flex are not installed
3355
3356 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3357
3358         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3359           with this z80 passes printf float test when enabled
3360         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3361
3362 2006-12-28 Borut Razem <borut.razem AT siol.net>
3363
3364         * support/cpp2/config.in, support/cpp2/configure.in,
3365           support/cpp2/configure, support/cpp2/Makefile.in:
3366           fix for the solaris build
3367
3368 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3369
3370         * src/SDCC.y (type_specifier2, pointer),
3371         * src/SDCCsymt.h,
3372         * src/SDCCsymt.c (mergeSpec, checkSClass),
3373         * support/Util/SDCCerr.c,
3374         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3375         * support/valdiag/valdiag.py: Allow test cases to specify
3376           required language standard
3377         * support/valdiag/tests/restrict.c: New file to test restrict keyword
3378         * support/valdiag/tests/tentdecl.c: Supress empty source file error
3379
3380 2006-12-27 Borut Razem <borut.razem AT siol.net>
3381
3382         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3383         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3384           mbchar removed
3385         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3386           fixed for borland C
3387         * support/cpp2/libiberty/Makefile.bcc: updated
3388         * src/pic16/main.c: fixed #pragma udata handling
3389         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3390
3391 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3392
3393         * src/SDCCpeeph.c: made labelHashEntry global,
3394         made pcDistance, FBYNAME static,
3395         (pcDistance): made static, use isComment and isLabel,
3396         (deadMove): added,
3397         (getLabelRef): added, extracted from labelRefCount(),
3398         (labelRefCount): use new getLabelRef(),
3399         (callFuncByName): made static, added deadMove,
3400         use isComment and isLabel,
3401         (newPeepRule): made static, set isLabel,
3402         (isLabelDefinition): added parameter isPeepRule to allow '%' in
3403         labels from peephole rules,
3404         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3405         when isComment or isLabel is set
3406         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3407         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3408         to make them global
3409         * src/mcs51/peep.h: added
3410         * src/mcs51/peep.c: added, implements mcs51DeadMove()
3411         * src/port.h: added peep->deadMove to port structure
3412         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3413         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3414         deadMove, finally removed no. 1 and 2
3415         * src/mcs51/gen.c,
3416         * src/pic/gen.c,
3417         * src/z80/gen.c,
3418         * src/z80/ralloc.c,
3419         * src/pic16/gen.c,
3420         * src/ds390/gen.c,
3421         * src/hc08/gen.c: mark lines with isComment or isLabel
3422         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3423         * .version,
3424         * sdcc.spec: bumped version to 2.6.3
3425
3426 2006-12-26 Borut Razem <borut.razem AT siol.net>
3427
3428         * support/cpp2/Makefile.in: added dependency on options.h
3429         * configure: regenerated
3430         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3431         * support/cpp2/Makefile.in: added vasprintf.c
3432
3433 2006-12-25 Borut Razem <borut.razem AT siol.net>
3434
3435         * SDCPP synchronized with GCC CPP release version 3.4.6,
3436           the latest release before 4.x:
3437         * support/cpp2/Makefile.in, support/cpp2/config.h,
3438           support/cpp2/configure, support/cpp2/configure.in,
3439           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3440           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3441           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3442           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3443           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3444           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3445           support/cpp2/cpptrad.c, support/cpp2/except.h,
3446           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3447           support/cpp2/hwint.h, support/cpp2/intl.h,
3448           support/cpp2/line-map.c, support/cpp2/line-map.h,
3449           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3450           support/cpp2/output.h, support/cpp2/prefix.c,
3451           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3452           support/cpp2/system.h, support/cpp2/version.c:
3453           modified
3454         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3455           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3456           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3457           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3458           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3459           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3460           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3461           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3462           support/cpp2/move-if-change, support/cpp2/opts.c,
3463           support/cpp2/opts.h, support/cpp2/opts.sh,
3464           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3465           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3466           support/cpp2/win32, support/cpp2/win32/dirent.c,
3467           support/cpp2/win32/dirent.h:
3468           added
3469         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3470         * support/cpp2/sdcpp.h: renamed from sdcc.h
3471         * sdcppinit.c: deleted
3472
3473 2006-12-23 Borut Razem <borut.razem AT siol.net>
3474
3475         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3476           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3477           preproc.c: an other try to fix bug #982435: introduced
3478           -pedantic-parse-number command line option and pedantic_parse_number
3479           pragma
3480
3481 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3482
3483         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3484            BSEG handling,
3485           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3486            corrected overlayed areax addresses, warn about memory overlaps
3487         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3488         * src/avr/main.c,
3489         * src/ds390/main.c,
3490         * src/hc08/main.c,
3491         * src/mcs51/main.c,
3492         * src/pic16/main.c,
3493         * src/pic/main.c,
3494         * src/xa51/main.c,
3495         * src/z80/main.c,
3496         * src/port.h: added xabs_name and iabs_name
3497         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3498           (glue, emitMaps): create and emit maps d_abs and i_abs
3499         * src/SDCCglue.h: cosmetic changes
3500         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3501         * src/SDCCmem.h,
3502         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3503           (allocDefault): put absolute, initialized globals in them
3504         * support/regression/tests/absolute.c: added absolute bdata test
3505         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3506
3507 2006-12-20 Borut Razem <borut.razem AT siol.net>
3508
3509         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3510         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3511           added regression test for bug #982435
3512
3513 2006-12-18 Borut Razem <borut.razem AT siol.net>
3514
3515         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3516         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3517           small cosmetic changes
3518         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3519         * support/regression/tests/bug-1351710.c: added regression test
3520
3521 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3522
3523         * doc/sdccman.lyx: added the long missed iCode table
3524           "<where is figure II?>", added links to wiki
3525
3526 2006-12-17 Borut Razem <borut.razem AT siol.net>
3527
3528         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3529           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3530           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3531           unified table driven pragma handling, pragma argument type checking
3532         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3533           current one - version 1.1.3
3534         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3535
3536 2006-12-13 Raphael Neider <rneider AT web.de>
3537
3538         * src/pic/device.h: removed AssignedMemory structure and macros
3539         * src/pic/device.c: removed global finalMapping (linker assigns
3540             memory locations),
3541           (register_map): add SFRs to remembered memRanges
3542           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3543           assignFixedRegisters,assignRelocatableRegisters): removed,
3544           (setMaxRAM,validAddress): adapted accordingly,
3545           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3546             reasonably sized sharebanks,
3547         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3548           (allDefsOutOfRange): removed unused code,
3549         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3550             handling
3551         * src/pic/pcode.c (register_reassign): removed recursion warning,
3552             fired far too often,
3553         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3554             to use existing pic14_stringInSet() to avoid duplicate symbols,
3555             tidied up the code a bit,
3556           (pic14printLocals): added in symmetry to printExterns, replaces
3557             writeUsedRegs more or less,
3558           (picglue): call new pic14_printLocals(),
3559         * device/include/pic/pic*.h: removed #pragma memmap directives,
3560             information gathered from include/pic/pic14devices.txt
3561         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3562
3563 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3564
3565         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3566
3567 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3568
3569         * device/include/mcs51/cc2430.h: fixed missing ';'
3570
3571 2006-12-10 Raphael Neider <rneider AT web.de>
3572
3573         * device/lib/pic16/libc/stdio/vfprintf.c,
3574         * device/lib/pic16/libc/stdio/printf_small.c,
3575         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3576           char arguments, as char varargs are cast to int by the caller,
3577           hopefully fixes #1604915 (other device libraries are still affected)
3578
3579 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3580
3581         * src/mcs51/ralloc.c (packRegsForAssign),
3582         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3583
3584 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3585
3586         * device/include/malloc.h: removed init_dynamic_memory
3587         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3588           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3589         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3590         * device/lib/libsdcc.lib,
3591         * device/lib/Makefile.in,
3592         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3593         * doc/sdccman.lyx: documented use of new _heap.c
3594         * support/regression/tests/malloc.c: removed init_dynamic_memory
3595         * src/cdbFile.c(spacesToUnderscores): new function,
3596           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3597           1068030
3598         * device/include/tinibios.h: removed defines for putchar and getchar
3599         * device/lib/ds390/Makefile.in: added putchar.c
3600         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3601
3602 2006-12-09 Borut Razem <borut.razem AT siol.net>
3603
3604         * support/cpp2/sdcc.h: prevent multiple inclusion
3605         * support/cpp2/options.h: deleted
3606
3607 2006-12-08 Borut Razem <borut.razem AT siol.net>
3608
3609         * support/cpp2/sdcc.h: removed x*alloc() macros
3610         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3611         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3612           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3613         * support/cpp2/system.h: moved #include "sdcc.h"
3614         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3615           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3616           added
3617         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3618           -funsigned-char options
3619         * support/cpp2/sdcppmain.c: fixed bug 1611411
3620
3621 2006-12-07 Borut Razem <borut.razem AT siol.net>
3622
3623         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3624           directive
3625
3626 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3627
3628         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3629         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3630         * doc/sdccman.lyx,
3631         * .version: bumped to 2.6.2 because a) it's been a while
3632           b) the linker sources have moved c) the preprocessor is upgraded
3633
3634 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3635
3636         * support/regression/tests/snprintf.c: some checks
3637         * lib/src/printf_large.c: %bc: read char instead of int from stack
3638
3639 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3640
3641         * device/include/mcs51/cc2430.h: inserted _XPAGE
3642
3643 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3644
3645         * device/include/mcs51/cc2430.h: added
3646
3647 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3648
3649         * device/include/asm/default/features.h,
3650         * device/include/asm/ds390/features.h,
3651         * device/include/mcs51/at89s53.h,
3652         * device/include/ser.h,
3653         * device/include/ser_ir.h,
3654         * device/include/serial.h: changed keywords to double underscore variants,
3655           fixes bug 1590261 some more, thanks Steven Borley
3656
3657 2006-12-01 Raphael Neider <rneider AT web.de>
3658
3659         * src/pic/pcode.c (register_reassign): do not crash on recursive code
3660           but emit warning (recursion is not supported for pic14)
3661
3662 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3663
3664         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3665         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3666
3667 2006-11-30 Raphael Neider <rneider AT web.de>
3668
3669         * src/pic/device.c (dump_sfr): always emit symbols
3670         * src/pic/glue.c (pic14printPublics): fixed typo
3671
3672 2006-11-30 Raphael Neider <rneider AT web.de>
3673
3674         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3675           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3676           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3677            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3678            a sharebank, use a non-shared bank for the stack if none available
3679         * src/pic/device.h (struct memRange): added linked list next field,
3680           added prototypes for above functions
3681         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3682           (typeRegWithIdx): accept fixed and unfixed stack registers
3683         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3684           the stack, handle shared and banked stack (except for WSAVE),
3685           (insertBankSel): removed useless optimization (will never fire),
3686           (FixRegisterBanking): added optimization for devices with only one
3687           possibly aliased bank of memory, like 16f84
3688         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3689           devices have no SHAREBANK in the linker script
3690         * device/include/pic/pic14devices.txt: documented memmap
3691         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3692
3693 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3694
3695         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3696           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3697           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3698           genhc08Code): switched most of the D (debug) macros to DD (detailed
3699           debug) macros to better control clutter in the generated .asm file.
3700         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3701           genRightShift): fixed bug with non-constant bit shift stored to
3702           a volatile result (SF Open Discussion forum thread #1616749).
3703           Single byte case is not yet optimized.
3704
3705 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3706
3707         * device/include/asm/mcs51/features.h,
3708         * device/include/malloc.h,
3709         * device/include/stdio.h: changed keywords to double underscore variants,
3710           fixes bug 1590261
3711
3712 2006-11-27 Borut Razem <borut.razem AT siol.net>
3713
3714         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3715           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3716           support/cpp2/output.h, support/cpp2/cppinit.c,
3717           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3718           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3719           support/cpp2/cppdefault.c, support/cpp2/system.h,
3720           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3721           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3722           support/cpp2/prefix.c, support/cpp2/except.h,
3723           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3724           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3725           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3726           support/cpp2/version.c, support/cpp2/cppmain.c,
3727           support/cpp2/version.h, support/cpp2/hashtable.c,
3728           support/cpp2/cpperror.c:
3729           synchronized with GCC CPP release version 3.3.6,
3730           the latest where cppmain.c still exists.
3731         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3732           support/cpp2/sdcppinit.c: added
3733
3734 2006-11-27 Borut Razem <borut.razem AT siol.net>
3735
3736         * support/cpp2/cpplex.c:
3737           fixed _asm ... _endasm handling bug, introduce with GCC CPP
3738           synchronization
3739         * support/cpp2/cpplib.c: removed definitions of unused variables
3740
3741 2006-11-26 Borut Razem <borut.razem AT siol.net>
3742
3743         * support/cpp2/libiberty.h: commented out x*alloc() declarations
3744           since they are redefined by macros in support/cpp2/sdcc.h
3745         * support/cpp2/sdcc.h: x*alloc macro redefinition
3746
3747 2006-11-25 Borut Razem <borut.razem AT siol.net>
3748
3749         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3750           support/cpp2/configure, support/cpp2/Makefile.in,
3751           support/cpp2/cppfiles.c, support/cpp2/output.h,
3752           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3753           support/cpp2/config.h, support/cpp2/cpplib.h,
3754           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3755           support/cpp2/cppdefault.c, support/cpp2/config.in,
3756           support/cpp2/system.h, support/cpp2/cpplex.c,
3757           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3758           support/cpp2/cppdefault.h, support/cpp2/prefix.c
3759           support/cpp2/hwint.h, support/cpp2/mbchar.h,
3760           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3761           support/cpp2/configure.in, support/cpp2/intl.h,
3762           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3763           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3764           support/cpp2/version.c, support/cpp2/cppmain.c,
3765           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3766           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3767           support/cpp2/cpperror.c,
3768           support/cpp2/libiberty/safe-ctype.c,
3769           support/cpp2/libiberty/safe-ctype.h,
3770           support/cpp2/libiberty/splay-tree.c,
3771           support/cpp2/libiberty/obstack.c,
3772           support/cpp2/libiberty/lbasename.c,
3773           support/cpp2/libiberty/splay-tree.h,
3774           support/cpp2/libiberty/obstack.h:
3775           synchronized with GCC CPP release version 3.2.3,
3776           the latest before integration of cpp into gcc
3777         * support/cpp2/except.h, support/cpp2/line-map.c,
3778           support/cpp2/line-map.h,
3779           support/cpp2/libiberty/hex.c,
3780           support/cpp2/libiberty/concat.c,
3781           support/cpp2/libiberty/filenames.h: added
3782         * support/cpp2/intl.c: deleted
3783
3784 2006-11-24 Borut Razem <borut.razem AT siol.net>
3785
3786         * src/SDCC.y: enabled compilation of empty source file
3787         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3788           "ISO C forbids an empty source file"
3789         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3790           if all the code is ifdefed out.
3791
3792 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3793
3794         * src/hc08/gen.c (genPcall): fix for bug #1601032
3795
3796 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3797
3798         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3799         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3800         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3801         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3802         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3803         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3804         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3805         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3806         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3807         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3808         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3809         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3810         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3811         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3812         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3813           Renamed to all upper case as per the standard set by SiLabs
3814
3815 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3816
3817         * device/include/mcs51/C8051F520.h: new, added
3818         * device/include/mcs51/compiler.h: added link about predefined macros
3819
3820 2006-11-23 Raphael Neider <rneider AT web.de>
3821
3822         * src/regression/Makefile: add -L path to fresh library
3823         * src/regression/simulate: emphasize FAILED output
3824         * src/regression/create_stc: output _failures from gpsim
3825         * src/regression/compare4.c,
3826         * src/regression/rotate6.c: fixed char literals,
3827           all compile, all run =8-D
3828
3829         * src/pic/pcode.h: added isPCASMDIR macro
3830         * src/pic/gen.c (genAnd): fixed bit offset
3831         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3832           packBits): unified register numbering schemes,
3833           (newReg): do not insert stack registers into hash table,
3834           (initStack): unpinned pseudo stack, simplified,
3835           (typeRegWithIdx): fixed retrieval of stack registers,
3836         * src/pic/pcode.c (addpCodeComment,sameBank): added,
3837           (pCodeReplace): removed invalid assertion,
3838           (insertPCodeInstruction): fixed newly added labels,
3839           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3840           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3841           DumpFlow): removed unsed (broken?) code,
3842           (insertBankSel): prevent STATUS from being BANKSELed,
3843           (FixRegisterBanking): rewritten from scratch, implemented generic
3844             optimizations (suppress BANKSELs to same register and to registers
3845             present in all banks),
3846           (AnalyzeBanking): update flow after BANKSELection
3847
3848         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3849             sharebank, let linker place it, mark STKxx symbols as emitted
3850
3851 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3852
3853         * src/regression/arrays.c,
3854         * src/regression/bank1.c,
3855         * src/regression/bool2.c,
3856         * src/regression/compare7.c,
3857         * src/regression/compare8.c,
3858         * src/regression/compare9.c,
3859         * src/regression/compare10.c,
3860         * src/regression/configword.c,
3861         * src/regression/for.c,
3862         * src/regression/mult1.c,
3863         * src/regression/pointer1.c,
3864         * src/regression/rotate6.c,
3865         * src/regression/string1.c,
3866         * src/regression/struct1.c,
3867         * src/regression/Makefile: make PIC14 regression tests run again
3868           (3 fail, 6 won't compile)
3869
3870 2006-11-21 Raphael Neider <rneider AT web.de>
3871
3872         * device/include/pic16/pic18f4550.h,
3873         * device/include/pic16/pic18f4455.h,
3874         * device/lib/pic16/libdev/pic18f4550.c,
3875         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3876         * configure.in: removed superfluous closing bracket
3877
3878 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3879
3880         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3881           always positive.
3882
3883 2006-11-21 Raphael Neider <rneider AT web.de>
3884
3885         * src/pic/device.{c,h}: added pic14_getPIC()
3886         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3887           (genAnd): added PIC code for one case, fixes #1597044
3888         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3889           SFRs that are present in all banks (e.g., STATUS)
3890
3891 2006-11-20 Raphael Neider <rneider AT web.de>
3892
3893         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3894           INCFSZ/INCFSZW and declared them as changing Z bit,
3895           (insertPCodeInstruction): correctly invert the above instructions,
3896           fixes #1599333,
3897           (DoBankSelect): don't panic on po_immediates
3898
3899 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3900
3901         * as/link/aslink.h,
3902         * as/link/mcs51/lkihx.c (newArea),
3903         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3904         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3905
3906 2006-11-11 Raphael Neider <rneider AT web.de>
3907
3908         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3909           bitfield symbols, fixes #1579535 (once more...).
3910
3911 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3912
3913         * support/regression/generate-cases.py,
3914         * support/regression/fwk/include/testfwk.h,
3915         * support/regression/fwk/lib/testfwk.c: used code pointers,
3916           (about 50kByte less code generated for mcs51)
3917
3918 2006-11-06 Borut Razem <borut.razem AT siol.net>
3919
3920         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3921           debugger/mcs51/configure: fixed failed check because the function
3922           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3923           who submitted the patch for gpsim.
3924         * debugger/mcs51/configure.in: removed the result message
3925         * debugger/mcs51/Makefile.in: fixed the config.status warning
3926           "... seems to ignore the --datarootdir setting"
3927
3928 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3929
3930         * device/include/mcs51/c8051f020.h,
3931         * device/include/mcs51/c8051f040.h,
3932         * device/include/mcs51/c8051f060.h,
3933         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3934         * src/z80/gen.c (gencjneshort),
3935         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3936
3937 2006-10-31 Borut Razem <borut.razem AT siol.net>
3938
3939         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3940           debugger/mcs51/configure: get readline version
3941
3942 2006-10-30 Borut Razem <borut.razem AT siol.net>
3943
3944         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3945         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3946           debugger/mcs51/configure: locate readline even when cross compiling
3947         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3948
3949 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3950
3951         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3952           serial port.
3953
3954 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3955
3956         * device/include/malloc.h,
3957         * device/lib/calloc.c,
3958         * device/lib/free.c,
3959         * device/lib/malloc.c,
3960         * device/lib/realloc.c: moved definition of struct into sources
3961         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
3962
3963 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
3964
3965         * as/asx8051.dsp: corrected output directories
3966         * as/link/hc08: new directory for hc08 linker
3967         * as/hc08/aslink.h,             as/link/aslink.h,
3968         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
3969         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
3970         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
3971         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
3972         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
3973         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
3974         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
3975         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
3976         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
3977         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
3978         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
3979         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
3980         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
3981         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
3982         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
3983         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
3984         * as/link/hc08/conf.mk,
3985         * configure,
3986         * configure.in,
3987         * Makefile.in,
3988         * sdcc.dsw: moved hc08 linker to as/link/hc08
3989         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
3990         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
3991         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
3992         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
3993         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
3994         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
3995         * as/link/mcs51/aslink.dsp,
3996         * as/link/mcs51/Makefile.in: factored out the common files
3997         * as/hc08/lkstore.c: deleted, use the one already in as/link/
3998         * as/clean.mk: extra cleaning common files
3999         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4000         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4001         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4002
4003 2006-10-29 Raphael Neider <rneider AT web.de>
4004
4005         * src/pic/ralloc.c (newReg): create aliases for registers with
4006           multiple names to fix #1579535 and #1584001,
4007           (regWithIdx,dirregWithName): resolve aliases on lookup
4008         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4009           bankselect
4010         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4011           to prevent build errors on small devices
4012
4013 2006-10-28 Raphael Neider <rneider AT web.de>
4014
4015         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4016           assumption within interrupt handlers, fixes #1584940
4017         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4018           "emitted" to avoid emitting them again in udata
4019
4020 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4021
4022         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4023         Removed.
4024
4025 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4026
4027         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4028         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4029         on/off CR to CRLF conversion.
4030
4031 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4032
4033         * doc/sdccman.lyx: updated IRQ section
4034
4035 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4036
4037         * device/lib/serial_io.c: removed
4038         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4039         replacements for serial_io.c
4040
4041 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4042
4043         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4044
4045 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4046
4047         * device/lib/serial_io.c: Default putchar() and getchar() for
4048           mcs51 uses serial port.
4049
4050 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4051
4052         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4053
4054 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4055
4056         * support/regression/ports/mcs51/support.c: smaller
4057         _sdcc_external_startup()
4058         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4059
4060 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4061
4062         * device/lib/gbz80/crt0.s,
4063         * device/lib/gbz80/crt0_rle.s,
4064         * device/lib/gbz80/div.s,
4065         * device/lib/gbz80/fstubs.s,
4066         * device/lib/gbz80/heap.s,
4067         * device/lib/gbz80/mul.s,
4068         * device/lib/gbz80/putchar.s,
4069         * device/lib/gbz80/stubs.s,
4070         * device/lib/z80/crt0.s,
4071         * device/lib/z80/crt0_rle.s,
4072         * device/lib/z80/div.s,
4073         * device/lib/z80/fstubs.s,
4074         * device/lib/z80/heap.s,
4075         * device/lib/z80/mul.s,
4076         * device/lib/z80/putchar.s,
4077         * device/lib/z80/stubs.s: reverted, I was mistaken
4078
4079 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4080
4081         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4082         * support/regression/ports/mcs51/support.c: removed race
4083         condition on TI in _putchar allowing to use serial port mode 0
4084
4085 2006-10-20 Borut Razem <borut.razem AT siol.net>
4086
4087         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4088
4089 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4090
4091         * device/lib/gbz80/crt0.s,
4092         * device/lib/gbz80/crt0_rle.s,
4093         * device/lib/gbz80/div.s,
4094         * device/lib/gbz80/fstubs.s,
4095         * device/lib/gbz80/heap.s,
4096         * device/lib/gbz80/mul.s,
4097         * device/lib/gbz80/putchar.s,
4098         * device/lib/gbz80/stubs.s,
4099         * device/lib/z80/crt0.s,
4100         * device/lib/z80/crt0_rle.s,
4101         * device/lib/z80/div.s,
4102         * device/lib/z80/fstubs.s,
4103         * device/lib/z80/heap.s,
4104         * device/lib/z80/mul.s,
4105         * device/lib/z80/putchar.s,
4106         * device/lib/z80/stubs.s: removed all leading underscores from area names
4107
4108 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4109
4110         * support/regression/ports/mcs51/support.c: use highest baudrate so the
4111           regression tests are not waiting in the simulator for simulated
4112           transmission of debug output
4113
4114 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4115
4116         * device/lib/printf_large.c: slightly smaller
4117         * doc/sdccman.lyx: do not use spaces within html links
4118
4119 2006-10-16 Borut Razem <borut.razem AT siol.net>
4120
4121         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4122           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4123           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4124           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4125           debugger/mcs51/configure:
4126           [ 1185668 ] add gnu readline support to sdcdb - enabled
4127
4128 2006-10-16 Raphael Neider <rneider AT web.de>
4129
4130         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4131           fixes #1577882, removes close to all banking optimizations
4132
4133 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4134
4135         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
4136           variables in code memory
4137         * support/regression/tests/absolute.c: added test for this
4138
4139 2006-10-15 Raphael Neider <rneider AT web.de>
4140
4141         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
4142           devices,
4143           (BankSelect): emit BANKSEL before touching linker-placed regs,
4144           fixes #1570934
4145
4146 2006-10-10 Raphael Neider <rneider AT web.de>
4147
4148         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4149         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4150         * src/pic/main.c (_pic14_parseOptions),
4151         * src/pic/main.h: mostly reverted to previous state, now use results
4152             from SDCCmain.c's argument parsing
4153
4154 2006-10-10 Borut Razem <borut.razem AT siol.net>
4155
4156         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
4157           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
4158           [ 1185668 ] add gnu readline support to sdcdb -
4159           prepared for READLINE, not enabled yet,
4160           thanks to <tal.bav AT gmail.com>
4161
4162 2006-10-10 Raphael Neider <rneider AT web.de>
4163
4164         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
4165         * src/pic16/devices.inc,
4166         * device/include/pic16 (pic18f[24]620.h),
4167         * device/include/pic18fregs.h,
4168         * device/lib/pic16/pics.all,
4169         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
4170             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
4171             Gary Plumbridge and Anton Strobl
4172
4173 2006-10-10 Raphael Neider <rneider AT web.de>
4174
4175         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
4176           --stack-siz=NUM options to configure the argument passing stack
4177         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
4178         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
4179           (pic14_getSharebankSize): obey --stack-siz=NUM,
4180           (pic14_getSharebankAddress): obey --stack-loc=NUM
4181
4182 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4183
4184         * doc/sdccman.lyx: added to the manual
4185         * doc/figures/ddd_example.png: added (neither pdflatex nor
4186         most browsers seem to like the .eps file)
4187
4188 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4189
4190         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4191         to /tmp and /var/tmp acc. LSB
4192         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4193         RESULT_TYPE_IFX
4194         * support/regression/tests/onebyte.c: added test
4195
4196 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4197
4198         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4199
4200 2006-10-05 Borut Razem <borut.razem AT siol.net>
4201
4202         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4203           thanks to dfulab:
4204           - sdcc.dsw: changed property eol-style to CRLF
4205           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4206
4207 2006-10-04 Raphael Neider <rneider AT web.de>
4208
4209         * device/include/pic/{pic16f84.h,pic16f84a.h},
4210         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4211           from patch #1522504, thanks to Robas Teodor
4212
4213 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4214
4215         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4216           fixes bug 1566015
4217
4218 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4219
4220         * src/pic16/glue.c (pic16emitMaps),
4221         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4222         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4223         * device/lib/pic16/libc/string/memcpypgm2ram.c,
4224         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4225           Philipp Krause
4226         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4227         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4228
4229 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4230
4231         * support/librarian/sdcclib.c: Added option -l.
4232         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4233           usage totals.
4234         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
4235           using Windows command prompt.
4236
4237 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4238
4239         * device/lib/libsdcc.lib: added module rand
4240         * src/ds390/ralloc.c (rematStr),
4241         * src/hc08/ralloc.c (rematStr),
4242         * src/mcs51/ralloc.c (rematStr),
4243         * src/z80/ralloc.c (rematStr): made output more consistent
4244         * src/mcs51/gen.c: cosmetic changes
4245
4246 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4247
4248         * src/port.h: added mem.cabs_name to PORT
4249         * src/ds390/main.c,
4250         * src/hc08/main.c,
4251         * src/mcs51/main.c,
4252         * src/pic16/main.c,
4253         * src/pic/main.c,
4254         * src/xa51/main.c,
4255         * src/z80/main.c: added cabs_name initializers
4256         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4257           constants
4258           (emitMaps): emit absolutes in code memory into cabs_name
4259         * src/SDCCmem.c,
4260         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4261         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4262         * support/regression/fwk/include/testfwk.h: added define for at
4263         * support/regression/tests/absolute.c: added, new
4264
4265 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4266
4267         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4268           optimizations, see also patch 887161 by Stas Sergeev
4269         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4270           to be necessary anymore,
4271           (102, 103, 104, 127): renamed all occurances of bp to _bp
4272
4273 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4274
4275         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4276           thanks Weston T. Schmidt for patch 1555221
4277         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4278         * src/SDCCicode.c(geniCodeMultiply): small optimization
4279
4280 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4281
4282         * device/include/stdlib.h: added rand prototypes
4283         * device/lib/rand.c: new, added
4284         * device/lib/Makefile.in: added rand.c
4285         * src/z80/peeph.def,
4286         * src/z80/peeph-gbz80.def,
4287         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4288
4289 2006-09-20 Raphael Neider <rneider AT web.de>
4290
4291         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4292
4293 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4294
4295         * as/link/aslink.h: cosmetic changes
4296         * as/link/mcs51/Makefile.in,
4297         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4298
4299 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4300
4301         * as/link/aslink.h,
4302         * as/link/mcs51/aslink.h,
4303         * as/link/z80/aslink.h: merged and moved to as/link/
4304         * as/link/lkstore.c,
4305         * as/link/mcs51/lkstore.c: moved to as/link/
4306         * as/link/clean.mk: remove *.o
4307         * as/link/mcs51/alloc.h: deleted
4308         * as/link/mcs51/lkarea.c: added lnksect prototype
4309         * as/link/mcs51/lkdata.c,
4310         * as/link/mcs51/lklex.c,
4311         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4312         * as/link/mcs51/lkmem.c,
4313         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4314         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4315         * as/link/mcs51/aslink.dsp,
4316         * as/link/mcs51/Makefile.aslink,
4317         * as/link/mcs51/Makefile.bcc,
4318         * as/link/mcs51/Makefile.in: updated for moved files
4319         * as/link/z80/lkarea.c,
4320         * as/link/z80/lkhead.c,
4321         * as/link/z80/lklex.c,
4322         * as/link/z80/lklibr.c,
4323         * as/link/z80/lklist.c,
4324         * as/link/z80/lkmain.c,
4325         * as/link/z80/lkrloc.c,
4326         * as/link/z80/lksym.c: synced with mcs51
4327         * as/link/z80/lkdata.c,
4328         * as/link/z80/lkeval.c,
4329         * as/link/z80/lkihx.c,
4330         * as/link/z80/lks19.c: cosmetic changes
4331         * as/link/z80/Makefile.in,
4332         * as/link/z80/linkgbz80.dsp,
4333         * as/link/z80/linkz80.dsp: updated for moved files
4334
4335 2006-09-16 Borut Razem <borut.razem AT siol.net>
4336
4337         * debugger/mcs51/sdcdb.c: partially fixed
4338           [ 1203664 ] sdcdb fails to open files w. two "." periods
4339         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4340           debugger/mcs51/symtab.h: fixed indenting
4341         * configure.in, configure: up to date with latest Maarten's changes
4342
4343 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4344
4345         as/link/mcs51
4346         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
4347         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
4348         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
4349         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
4350         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
4351         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
4352         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
4353         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
4354         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
4355         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
4356         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
4357         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
4358         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
4359         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
4360         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
4361         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
4362         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
4363         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
4364         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
4365         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
4366         as/link/mcs51/alloc.h,
4367         as/link/mcs51/clean.mk,
4368         as/link/mcs51/conf.mk,
4369         as/link/mcs51/Makefile.bcc,
4370         as/link/mcs51/Makefile.in,
4371         as/link/mcs51/readme.390,
4372         as/link/mcs51/strcmpi.c,
4373         as/link/mcs51/strcmpi.h,
4374         as/mcs51/clean.mk,
4375         as/mcs51/Makefile.bcc,
4376         as/mcs51/Makefile.in,
4377         configure,
4378         Makefile.in,
4379         sdcc.dsw: moved mcs51 linker to as/link/mcs51
4380
4381 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4382
4383         * as/link,
4384         * as/link/Makefile.in,
4385         * as/link/z80/linkgbz80.dsp,
4386         * as/link/z80/linkz80.dsp,
4387         * configure,
4388         * link,
4389         * link/clean.mk,
4390         * link/Makefile.in,
4391         * link/README,
4392         * link/z80,
4393         * link/z80/aslink.h,
4394         * link/z80/clean.mk,
4395         * link/z80/conf.mk,
4396         * link/z80/linkgbz80.dsp,
4397         * link/z80/linkz80.dsp,
4398         * link/z80/lkarea.c,
4399         * link/z80/lkdata.c,
4400         * link/z80/lkeval.c,
4401         * link/z80/lkgb.c,
4402         * link/z80/lkgg.c,
4403         * link/z80/lkhead.c,
4404         * link/z80/lkihx.c,
4405         * link/z80/lklex.c,
4406         * link/z80/lklibr.c,
4407         * link/z80/lklist.c,
4408         * link/z80/lkmain.c,
4409         * link/z80/lkrloc.c,
4410         * link/z80/lks19.c,
4411         * link/z80/lksym.c,
4412         * link/z80/Makefile.in,
4413         * Makefile.in,
4414         * sdcc.dsw: moved link/ to as/link/
4415
4416 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4417
4418         * as/mcs51/i51mch.c (machine): fixed warning
4419
4420 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4421
4422         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4423
4424 2006-09-09 Borut Razem <borut.razem AT siol.net>
4425
4426         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4427           sdcdb WIN32 native port
4428         * src/clean.mk: fixed
4429
4430 2006-09-08 Borut Razem <borut.razem AT siol.net>
4431
4432         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4433
4434 2006-09-08 Raphael Neider <rneider AT web.de>
4435
4436         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4437         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4438             to gplink to disable processor mismatch warning and to allow
4439             the use of devices with only aliased (shared) memory banks,
4440           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4441
4442 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4443
4444         * doc/sdccman.lyx: Some re-formating plus example on using
4445           #pragma preproc_asm +/-
4446
4447 2006-09-07 Borut Razem <borut.razem AT siol.net>
4448
4449         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4450           section
4451
4452 2006-09-06 Borut Razem <borut.razem AT siol.net>
4453
4454         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4455           line at sdcc.nsi:153
4456         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4457
4458 2006-09-05 Borut Razem <borut.razem AT siol.net>
4459
4460         * configure.in, configure: support for winsock2
4461         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4462           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4463           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4464           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4465           debugger/mcs51/symtab.h: sdcdb WIN32 native port
4466
4467 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4468
4469         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4470           and OP_DEFS
4471         * support/regression/tests/bug1551947.c: new, added
4472         * src/SDCCsymt.h: strings are char* not byte*
4473
4474 2006-09-05 Raphael Neider <rneider AT web.de>
4475
4476         * device/lib/pic16/libdev/pic18f4550.c,
4477           device/include/pic16/pic18f4550.h: added PORTD/TRISD
4478             declarations/definitions from patch #1520949
4479
4480 2006-09-05 Raphael Neider <rneider AT web.de>
4481
4482         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4483           byte-aligned bitfields, fixes #1539278
4484
4485 2006-09-05 Raphael Neider <rneider AT web.de>
4486
4487         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4488           fixes #1544120
4489
4490 2006-09-04 Borut Razem <borut.razem AT siol.net>
4491
4492         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4493         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4494           -mno-cygwin is a part of the compiler name
4495         * support/scripts/sdcc_mingw32: don't disable ucsim
4496
4497 2006-09-03 Borut Razem <borut.razem AT siol.net>
4498
4499         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4500         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4501
4502 2006-09-03 Raphael Neider <rneider AT web.de>
4503
4504         * src/pic/ralloc.c,
4505         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4506           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4507           fixes #1550049
4508
4509 2006-09-01 Borut Razem <borut.razem AT siol.net>
4510
4511         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4512           to make ppc-osx happy
4513
4514 2006-08-31 Borut Razem <borut.razem AT siol.net>
4515
4516         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4517         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4518         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4519         * support/regression/ports/ds390/spec.mk,
4520           support/regression/ports/mcs51/spec.mk,
4521           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4522           To run regression tests in mingw environment:
4523           make DEV_NULL=NUL CC=gcc
4524
4525 2006-08-30 Borut Razem <borut.razem AT siol.net>
4526
4527         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4528           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4529           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4530           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4531           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4532           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4533           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4534           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4535           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4536           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4537           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4538           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4539           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4540           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4541           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4542           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4543           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4544           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4545           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4546           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4547           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4548           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4549           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4550           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4551           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4552           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4553           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4554           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4555           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4556           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4557           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4558           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4559           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4560           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4561           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4562           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4563           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4564           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4565           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4566           ucsim WIN32 native port
4567
4568 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4569
4570         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4571
4572 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4573
4574         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4575         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4576
4577 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4578
4579         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4580         * support/regression/tests/bug1546986.c: new, added
4581         * as/mcs51/.cvsignore,
4582         * debugger/mcs51/.cvsignore,
4583         * src/.cvsignore: deleted
4584
4585 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4586
4587         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4588           definitions)
4589
4590 2006-08-20 Borut Razem <borut.razem AT siol.net>
4591
4592         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4593           removed cl_listen_console::match(), cl_console::match(),
4594           restructured cl_commander::proc_input()
4595
4596 2006-08-16 Borut Razem <borut.razem AT siol.net>
4597
4598         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4599           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4600           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4601
4602 2006-08-14 Borut Razem <borut.razem AT siol.net>
4603
4604         * support/regression/Makefile.in,
4605           support/regression/ports/pic14/gpsim.cmd,
4606           support/regression/ports/pic14/spec.mk,
4607           support/regression/ports/pic14/support.c:
4608           added pic14 regression test
4609
4610 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4611
4612         * as/doc/asxhtm.html: documented changed ABS behaviour
4613         * as/doc/README: fixed some typos
4614
4615 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4616
4617         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4618           not defined on host
4619
4620 2006-08-12 Borut Razem <borut.razem AT siol.net>
4621
4622         * support/regression/fwk/include/testfwk.h,
4623           support/regression/fwk/lib/testfwk.c,
4624           support/regression/generate-cases.py,
4625           support/regression/Makefile.in:
4626           regression test framework does not depend on function pointers and
4627           variable arguments
4628
4629 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4630
4631         * device/include/stddef.h: c temporary hack to fix bug 1518273
4632
4633 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4634
4635         * device/include/mcs51/cc2510fx.h: added
4636         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4637           to projects.
4638
4639 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4640
4641         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4642         * as/z80/Makefile.in: added strcmpi.c
4643         * as/z80/z80adr.c: added upper case registers and lower case conditionals
4644         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4645
4646 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4647
4648         * device/lib/gbz80/asm_strings.s,
4649         * device/lib/gbz80/crt0_rle.s,
4650         * device/lib/gbz80/div.s,
4651         * device/lib/gbz80/mul.s,
4652         * device/lib/gbz80/shift.s,
4653         * device/lib/z80/asm_strings.s,
4654         * device/lib/z80/crt0_rle.s,
4655         * device/lib/z80/div.s,
4656         * device/lib/z80/mul.s,
4657         * device/lib/z80/shift.s: changed to all lower case menmonics except the
4658           flags which are all upper case
4659
4660 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4661
4662         * as/z80/asm.h: made CASE_SENSITIVE 1
4663         * link/z80/aslink.h: made CASE_SENSITIVE 1
4664         * src/z80/gen.c (throughout): made all conditionals upper case
4665         * support/regression/tests/bug1503067.c: new
4666
4667 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4668
4669         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4670           (shiftIntoPair): added case 2 for PAIR_IY,
4671           (setupToPreserveCarry): replaced parameters with iCode and check if
4672            PAIR_DE is in use to fix bug 1399290,
4673           (genPlus, genMinus): updated call to setupToPreserveCarry
4674         * support/regression/tests/bug1399290.c: new
4675
4676 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4677
4678         * device/lib/Makefile.in (Z80SOURCES): enabled float support
4679         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4680         * src/ds390/gen.c (shiftRLong),
4681         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4682         * src/mcs51/gen.c (sameReg): changed to sameByte,
4683           (xch_a_aopGet): new,
4684           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4685            shiftRLong): fixed bug 1533966
4686         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4687           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4688         * support/regression/Makefile.in: disabled z80, enabled ucz80
4689         * support/regression/tests/float_trans.c: enabled test for z80 and host
4690         * support/regression/tests/shifts2.c: new, for testing bug 1533966
4691
4692 2006-08-01 Borut Razem <borut.razem AT siol.net>
4693
4694         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4695           comparison is always false due to limited range of data type
4696           on PPC64 machine (openpower-linux1) where "char = unsigned char"
4697
4698 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4699
4700         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4701         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4702         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4703         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4704
4705 2006-07-31 Borut Razem <borut.razem AT siol.net>
4706
4707         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4708           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4709           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4710           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4711           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4712           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4713           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4714           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4715           enable ucsim mingw compilation. Serial port is disabled,
4716           since it uses termios.h API, which is not available on native
4717           WIN32
4718
4719 2006-07-31 Borut Razem <borut.razem AT siol.net>
4720
4721         * Small Device C Compiler 2.6.0 released
4722         * support/scripts/sdcc.nsi: added FULL_DOC option
4723         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4724
4725 2006-07-28 Borut Razem <borut.razem AT siol.net>
4726
4727         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4728         * doc/INSTALL.txt: updated
4729
4730 2006-07-27 Borut Razem <borut.razem AT siol.net>
4731
4732         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4733           device/lib/pic/libdev/Makefile.in: fixed bug
4734           [ 1438354 ] pic libsdcc: distclean doesn't work
4735         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4736           device/lib/pic16/libio/Makefile.in: fixed bug
4737           [ 1438344 ] pic16 lib: clean doesn't work properly
4738         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4739
4740 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4741
4742         * device/lib/pic/libsdcc/fsdiv.c,
4743         * device/lib/pic/libsdcc/fsmul.c,
4744         * device/lib/pic16/libsdcc/float/fsdiv.c,
4745         * device/lib/pic16/libsdcc/float/fsmul.c,
4746         * device/lib/_fsdiv.c,
4747         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4748         * support/regression/tests/bug1520966.c: added
4749         * doc/knownbugs.html: removed [ 1520966 ] from the list
4750
4751 2006-07-25 Borut Razem <borut.razem AT siol.net>
4752
4753         * configure.in, configure, sdccconf_in.h: fixed bug
4754           [ 1519095 ] regression test onebyte.c fails on ppc64 host
4755         * doc/knownbugs.html: removed [ 1519095 ] from the list
4756
4757 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4758
4759         * doc/knownbugs.html: added, contains list of known bugs at release
4760         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4761
4762 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4763
4764         * device/include/mcs51/compiler.h: added SFRX for xdata based special
4765           function registers and corrected defaults with additional warning
4766         * device/lib/malloc.c: cosmetic changes
4767         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4768         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4769           (fillGaps): and used it
4770
4771 2006-07-20 Raphael Neider <rneider AT web.de>
4772
4773         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4774           output unless SDCCPICDEBUG is set
4775         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4776           output if SILENT is set
4777
4778 2006-07-11 Borut Razem <borut.razem AT siol.net>
4779
4780         * doc/README.txt: updated
4781
4782 2006-07-10 Borut Razem <borut.razem AT siol.net>
4783
4784         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4785           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4786           in WIN32 installation
4787         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4788           release candidate 1
4789
4790 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4791
4792         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4793         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4794
4795 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4796
4797         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4798
4799 2006-07-06 Borut Razem <borut.razem AT siol.net>
4800
4801         * support/regression/tests/bitfields.c:
4802           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4803         * support/regression/tests/constantRange.c:
4804           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4805
4806 2006-07-04 Borut Razem <borut.razem AT siol.net>
4807
4808         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4809           src/port.mk,
4810           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4811           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4812           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4813           reverted changes from 2006-07-03
4814         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4815         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4816           added CPPFLAGS, used by the host port
4817
4818 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4819
4820         * support/regression/valdiag/tests/switch.c,
4821         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4822         * support/regression/tests/libmullong.c: fixed for host
4823         * support/regression/ports/host/spec.mk: disable all warnings for host,
4824         SDCC runs with --less-pedantic too
4825
4826 2006-07-03 Borut Razem <borut.razem AT siol.net>
4827
4828         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4829           defined CPPFLAGS
4830         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4831         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4832           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4833           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4834           include ../port.mk
4835         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4836           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4837           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4838           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4839
4840 2006-07-02 Raphael Neider <rneider AT web.de>
4841
4842         * src/pic16/devices.inc,
4843         * device/include/pic16/pic18fregs.h,
4844         * device/include/pic16/pic18f4550.h,
4845         * device/lib/pic16/pics.all,
4846         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4847
4848 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4849
4850         * as/hc08/lkaomf51.c (OutputName),
4851         * as/mcs51/lkaomf51.c (OutputName),
4852         * as/z80/asmain.c (asmbl),
4853         * src/ds390/main.c (asmLineNodeFromLineNode),
4854         * src/hc08/ralloc.c (hc08_assignRegisters),
4855         * src/mcs51/main.c (asmLineNodeFromLineNode),
4856         * src/xa51/ralloc.c (checkRegMask),
4857         * src/xa51/gen.c (emitcode),
4858         * src/z80/gen.c (_emit2),
4859         * src/SDCCast.c (searchLitOp),
4860         * src/SDCCglobl.h,
4861         * support/packihx/packihx.c,
4862         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4863         * src/ds390/gen.c (aopPutUsesAcc),
4864         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4865         * support/regression/tests/libmullong.c (mullong_wrapper),
4866         * src/SDCCsymt.c (powof2),
4867         * src/SDCCast.c,
4868         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4869         * src/SDCCsymt.h: added TYPE_TARGET_*
4870         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4871         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4872         SDCCast because 1) header problems 2) this is the right place
4873         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4874         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4875         prototype
4876
4877 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4878
4879         * src/SDCCicode.h: removed buggy semicolon in unused macro
4880         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4881         search for previous definiton of auto symbols too,
4882         (findPrevUse): fixed logic of emitWarnings
4883
4884 2006-06-26 Raphael Neider <rneider AT web.de>
4885
4886         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4887           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4888
4889 2006-06-25 Raphael Neider <rneider AT web.de>
4890
4891         * device/lib/pic/libm: NEW, added math library functions
4892         * device/lib/pic/libsdcc: NEW; added float support functions
4893         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4894         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4895           NEW, added math related headers
4896         * device/include/asm/pic/features.h: NEW
4897         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4898           (popGet): allow larger offsets for AOP_PCODE,
4899           (genDataPointerSet): handle literals explicitly, more debug output,
4900           (genAssign): fixed for float using aopLiteral ;-)
4901         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4902           GOTO initialisation routine
4903         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4904           flag on registers, fixes #1469043 (local variables do not work)
4905         * src/pic/main.c (_pic14_do_link),
4906         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4907           available
4908
4909 2006-06-25 Borut Razem <borut.razem AT siol.net>
4910
4911         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4912           characters printed (not including the trailing '\0' used to end
4913           output to strings). Problem detected in regression test bug-927659.c.
4914           NOTE: printf() family functions should return int instead
4915           unsigned int!
4916         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4917           specifier are printed as themselves
4918         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4919           support flags, width and precision specifiers
4920
4921 2006-06-24 Borut Razem <borut.razem AT siol.net>
4922
4923         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4924           to the list of sdcc tagrets not supporting bit type
4925         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4926           testfor pic16 due to bug:
4927           [ 1511794 ] pic16: regression test bug-895992.c fails
4928
4929 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4930
4931         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4932         * src/SDCCglue.c (initPointer), fixed bug 1496419
4933         * support/regression/tests/bug1496419.c: new, added
4934
4935 2006-06-22 Borut Razem <borut.razem AT siol.net>
4936
4937         * support/regression/ports/pic16/support.c: use gpsim usart module from
4938           libgpsim_modules library
4939
4940 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4941
4942         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4943         IP0H to IPH0.
4944
4945 2006-06-19 Raphael Neider <rneider AT web.de>
4946
4947         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4948         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4949           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4950           (pic14printExterns,pic14printPublics,pic16printPublics,
4951           pic16_printExterns): use new functions to emit symbols
4952           (picglue,pic16glue): emit publics before emitting externs
4953         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
4954           locally defined functions to avoid bug #1443651
4955         * support/regression/tests/bug-716242.c: removed pic16 workaround
4956         * support/regression/ports/pic16/spec.mk: ignore errors during build
4957
4958 2006-06-19 Raphael Neider <rneider AT web.de>
4959
4960         * src/pic/glue.h: added pic14aopLiteral prototype
4961         * src/pic/glue.c (pic14aopLiteral): return unsigned int
4962         * src/pic/gen.c: removed stdint.h dependency
4963           (aopGet): use Safe_strdup()
4964           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
4965           (genDataPointerSet): use pic14aopLiteral()
4966         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
4967           for pic16; thanks to Bernhard and Maarten
4968
4969 2006-06-18 Borut Razem <borut.razem AT siol.net>
4970
4971         * support/regression/tests/structflexarray.c: flexible array members
4972           not supported by gcc < 3
4973         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
4974           GUI tool by default
4975         * src/pic/gen.c: don't include [p]strdin.h on solaris
4976         * support/Util/pstdint.h: addad svn attributes
4977         * support/regression/tests/constantRange.c,
4978           support/regression/tests/rotate.c: include inttypes.h instead
4979           stdint.h on solaris, addad svn attributes
4980
4981 2006-06-18 Raphael Neider <rneider AT web.de>
4982
4983         * src/SDCCsymt.c (initCSupport): change return type of divschar to
4984           int for PIC16
4985         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
4986           (pic16_genMinusBits): simplified sign-extension
4987           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
4988             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
4989             adjusted to correctly handle mixed-signed operands, disabled
4990             now unused multiplciation routines
4991         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
4992           (assignResultValue): added argument denoting the size of the result
4993             as returned by the function (fixes upcasts in assigning from
4994             function calls: char foo(); int i = foo();)
4995           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
4996             function result to assignResultValue
4997           (genMult): disabled inlined multiplication code
4998           (genDiv): augmented to also handle the modulus operator, fixed to
4999             handle mixed-signed operands correctly
5000           (genMod): simply call genDiv, disabled unused code
5001           (genAssign): fixed missing (sign-)extension on result
5002         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5003             valid char operands, allow signed operands for native code, added
5004             division and modulo operator handling
5005         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5006
5007         As a consequence, onebyte.c (if split into two files) and muldiv.c
5008         pass regression tests.
5009
5010 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5011
5012         * doc/Makefile.in: two runs of makeindex seem needed to get
5013         correct page references in the index of sdccman.pdf
5014         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5015
5016 2006-06-17 Borut Razem <borut.razem AT siol.net>
5017
5018         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5019
5020 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5021
5022         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5023         mentioned ec2drv and paulmon
5024
5025 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5026
5027         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5028           consecutive abs areas
5029           (find_empty_space, allocate_space): added map to handle codemap or
5030            xdatamap,
5031           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5032            absolute idata and xdata
5033         * as/mcs51/lkmem.c (summary2): updated legend
5034
5035 2006-06-16 Raphael Neider <rneider AT web.de>
5036
5037         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5038
5039 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5040
5041         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5042           1208515
5043         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5044
5045 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5046
5047         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5048         value of generic pointers,
5049         * src/avr/main.c,
5050           src/ds390/main.c,
5051           src/hc08/main.c,
5052           src/izt/i186.c,
5053           src/izt/tlcs900h.c,
5054           src/mcs51/main.c,
5055           src/pic/main.c,
5056           src/pic16/main.c,
5057           src/xa51/main.c,
5058           src/z80/main.c: PORT structure, added elements for gp_tags field,
5059         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5060         fields in the PORT structure of each port,
5061         * src/SDCCast.c (decorateType): allow processing of generic pointers
5062         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5063         S_FIXED symbols
5064
5065 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5066
5067         * link/z80/lkgb.c,
5068         * link/z80/lkgg.c,
5069         * src/pic16/gen.c,
5070         * src/pic16/main.c,
5071         * src/pic16/pcode.c,
5072         * src/pic/main.c,
5073         * src/pic/pcoderegs.c,
5074         * src/SDCCicode.c,
5075         * src/SDCCmain.c,
5076         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5077           bug 1504689 on minGW
5078
5079 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5080
5081         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5082
5083 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5084
5085         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5086
5087 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5088
5089         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5090           for optimization
5091
5092 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5093
5094         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5095         to a char variable. Fixed bug #1504211
5096         * device/include/pic16/adc.h,
5097         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5098         and fixed bug #1364390
5099
5100 2006-06-10 Borut Razem <borut.razem AT siol.net>
5101
5102         * CVSROOT: removed the CVS left-over
5103
5104 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5105
5106         * as/hc08/asmain.c (asexit),
5107         * as/hc08/lkmain.c (lkexit),
5108         * as/mcs51/asmain.c (asexit),
5109         * as/mcs51/lkmain.c (lkexit),
5110         * src/SDCCglue.c (DEFSETFUNC),
5111         * src/SDCCmain.c (linkEdit, assemble),
5112         * support/librarian/sdcclib.c (AddRel),
5113           replaced unlink() by standard C remove()
5114         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5115         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5116           gatherImplicitVariables): new, added to fix bug 608752,
5117           (createFunction): added gatherImplicitVariables()
5118         * src/SDCCast.h: added createRMW prototype
5119         * src/SDCCsymt.h (struct symbol): added infertype
5120         * support/regression/tests/bug608752.c: new, added
5121
5122 2006-06-10 Raphael Neider <rneider AT web.de>
5123
5124         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5125           multibyte dummy reads (fixes #1503234)
5126
5127 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5128
5129         * device/include/mcs51/compiler.h: new, added header file to enable
5130           creating common sfr definition header files for different compilers
5131
5132 2006-06-05 Raphael Neider <rneider AT web.de>
5133
5134         * src/pic16/{pcode.h,genarith.c}:
5135           introduced pCodeOp combining any two pCodeOps (previously only
5136           two register operands could be combined), removed pcop2 from
5137           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
5138         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
5139         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
5140           rewritten to use new PO_TWO_OPS
5141         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
5142         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
5143           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
5144           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
5145           (pic16_get_op): embraced return arg to allow #define return(x),
5146             added new case for combined opcodes
5147           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5148           (pic16_pCode2str,pic16_getRegFrompCodeOp,
5149            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5150
5151 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
5152
5153         * src/SDCCval.c (checkConstantRange): added
5154         * src/SDCCval.h: added checkConstantRange
5155         * support/Util/SDCCerr.c,
5156         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
5157         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
5158         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
5159         * src/SDCCast.c (decorateType): added checkConstantRange,
5160         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
5161         can be emitted with the correct always true/false warning,
5162         added optimization for double '!';
5163         result of decorateType() must be assigned back to the tree, because
5164         decorateType() can change the tree
5165         * src/SDCCicode.c (geniCodeLogic),
5166         (geniCodeAssign): replaced new checkConstantRange, added warnings,
5167         (checkConstantRange): removed, it was only a fragment which never
5168         emitted a warning
5169         * src/SDCCsymt.c (computeType): fixed promotion for
5170         "-1 < (unsigned bit) b"
5171         * src/pic/ralloc.c (packRegsForAssign),
5172         * src/pic16/ralloc.c (packRegsForAssign),
5173         * src/hc08/ralloc.c (packRegsForAssign),
5174         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
5175         from mcs51
5176         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
5177         * support/regression/tests/constantRange.c: added
5178         * support/valdiag/tests/constantRange.c: added
5179         * support/valdiag/valdiag.py: added -DPORT_HOST=1
5180
5181 2006-06-02 Borut Razem <borut.razem AT siol.net>
5182
5183         * support/regression/ports/pic16/support.c: increase stack size
5184           to 255 bytes
5185         * support/regression/Makefile.in: sort tests by name so that the
5186           resutlts can be compared on different machines / platforms
5187
5188 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5189
5190         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5191         * src/ds390/gen.c (emitLabel): new, added,
5192           (genDjnz): fixed stack overflow bug,
5193           (throughout): cosmetic changes to sync with mcs51/gen.c,
5194           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5195         * src/mcs51/gen.c (genEndFunction): small optimization,
5196           (throughout): cosmetic changes to sync with ds390/gen.c
5197
5198 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5199
5200         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5201           (_print_format): fixed printing pointers
5202         * src/mcs51/gen.c (emitLabel, movb): new, added,
5203           (genAssign): small optimization,
5204           (genDjnz): fixed stack overflow bug,
5205           (throughout): replaced sprintf with SNPRINTF,
5206           replaced mcs51_regWithIdx with REG_WITH_INDEX,
5207           replaced emitcode("mov", "b,...") with MOVB(...),
5208           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5209           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5210         * src/mcs51/peeph.def: added rules 140 and 264
5211         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5212           so they may get optimized into registers
5213
5214 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5215
5216         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5217           immediately when encountered,
5218           (printUsage): always use stderr even on windows
5219
5220 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5221
5222         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5223         (processParms): fixed bug #1247551
5224         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5225         parseCmdLine, main): print '--version' to stdout,
5226         print 'help' to stdout if --help is given,
5227         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5228         arguments are given; fixed --help
5229
5230 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5231
5232         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5233         * support/regression/tests/bug-1493710.c: added
5234
5235 2006-05-27 Borut Razem <borut.razem AT siol.net>
5236
5237         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5238           static instead auto
5239         * support/regression/ports/pic16/support.c: increase stack size
5240           from default 64 bytes to 128 bytes
5241         * support/regression/tests/staticinit.c,
5242           support/regression/tests/float.c: regression tests fully enabled
5243           for pic16 port by putting the initialized data arrays into the code
5244           section
5245         * support/regression/ports/pic16/spec.mk: don't link default libraries.
5246           This was changed by mistake in the previous version.
5247
5248 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5249
5250         * src/pic16/gen.c (genFunction, genEndFunction): some
5251         beautifications, fixed bug with falsely restoring FSR2 in large
5252         stack model, thanks to Beau E. Cox for reporting the bug
5253
5254 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5255
5256         * debugger/mcs51/break.c,
5257         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5258           use %p to print pointers, made address variables unsigned
5259         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5260         * debugger/mcs51/symtab.c (parseSymbol): must return something
5261         * src/mcs51/gen.c (aopForSym): small optimization,
5262            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5263           (freeAsmop): added missing break,
5264           (aopPut): removed parameter bvolatile, determine it inside the function,
5265           (saveRegisters, unsaveRegisters): small optimization,
5266           (genIpush): removed pointless check,
5267           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5268           replaced sprintf with SNPRINTF,
5269           replaced strcpy with strncpyz,
5270           updated aopPut calls,
5271           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5272         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
5273
5274 2006-05-24 Borut Razem <borut.razem AT siol.net>
5275
5276         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5277           modification of test for the pic16 port, put the array to the code
5278           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5279
5280 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5281
5282         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
5283         * support/Util/pstdint.h: added
5284
5285 2006-05-22 Borut Razem <borut.razem AT siol.net>
5286
5287         * src/regression/Makefile: removed bool2.c test, added -q linker option
5288         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5289           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5290           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5291           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5292           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5293           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5294           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5295           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5296           define SUPPORT_BIT_TYPES 0, removed unused bit variables
5297
5298 2006-05-22 Raphael Neider <rneider AT web.de>
5299
5300         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5301           bug #1492360 (problematic due to generic pointers, see code)
5302
5303 2006-05-22 Borut Razem <borut.razem AT siol.net>
5304
5305         * support/regression/ports/pic16/specs.mk: removed stack size linker
5306           directive
5307         * support/regression/tests/array.c,
5308           support/regression/tests/bitopcse.c,
5309           support/regression/tests/bug-908454.c,
5310           support/regression/tests/malloc.c: modified for pic16 regression test
5311         * support/regression/tests/bitfields.c:
5312           pic16 - excluded bitfileds of size > 8
5313         * support/regression/tests/bp.c: pic16 - reduced data size
5314         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5315         * support/regression/tests/bug-460010.c:
5316           pic16 - used the absolute address the fits in memory
5317         * support/regression/tests/bug-716242.c:
5318           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5319         * support/regression/tests/float.c:
5320           pic16 - excluded - data size too big
5321         * support/regression/tests/onebyte.c:
5322           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5323         * support/regression/tests/shifts.c:
5324           pic16 - function names probably have to differ in first X characters
5325           (gpasm limitation?)
5326         * support/regression/tests/staticinit.c:
5327           pic16 - excluded some tests due error: no target memory available for
5328           section ".idata"
5329
5330 2006-05-22 Borut Razem <borut.razem AT siol.net>
5331
5332         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5333           second try. Thanks Stas Sergeev once more.
5334
5335 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5336
5337         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5338           (genLeftShift, genRightShift): fixed bug 1491627
5339         * src/hc08/peeph.def (rules 7, 8.x): added
5340         * support/regression/tests/shifts.c (ShiftLeftByParam,
5341           ShiftRightByParam, testShiftByParam): added to test variable shifting
5342
5343 2006-05-20 Raphael Neider <rneider AT web.de>
5344
5345         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5346         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5347           (allocReg): add only new registers to dynAllocRegs,
5348           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5349             #1489055, #1445850, and probably #1483693
5350
5351 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5352
5353         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5354         bug in for-loop that didn't emit the last of CONFIG and ID registers
5355
5356 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5357
5358         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5359           with offset
5360         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5361           1489016, 1434401 and 1490124
5362         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5363           1489016, 1434401 and 1490124
5364
5365 2006-05-17 Borut Razem <borut.razem AT siol.net>
5366
5367         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5368           thanks Stas Sergeev
5369
5370 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5371
5372         * device/include/mcs51/P89c51RD2.h,
5373         * device/include/mcs51/P89LPC901.h,
5374         * device/include/mcs51/P89LPC922.h,
5375         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5376
5377 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5378
5379         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5380         to fix missing stack pragma in compiled binary object file,
5381
5382 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5383
5384         * support/packihx/configure.in,
5385         * support/packihx/configure: removed warning, autoconf >= 2.5x can
5386         determine sizeof basic types even while cross compiling
5387
5388 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5389
5390         * src/avr/gen.c (aopop),
5391         * src/ds390/gen.c (aopOp),
5392         * src/hc08/gen.c (aopOp),
5393         * src/mcs51/gen.c (aopop),
5394         * src/pic16/gen.c (pic16_aopOp),
5395         * src/pic/gen.c (aopOp),
5396         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5397         if size of operand is smaller than spill location
5398
5399 2006-05-12 Borut Razem <borut.razem AT siol.net>
5400
5401         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5402           have to have CR/LF line endings even if they are checked out on *nix
5403           or on WIN32 in cygwin binmode
5404
5405 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5406
5407         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5408         * device/include/ds80c390.h: added sfr16 definitions
5409         * src/ds390/gen.c,
5410         * src/ds390/gen.h,
5411         * src/ds390/main.c,
5412         * src/ds390/ralloc.c,
5413         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5414           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5415           bit returning functions
5416         * support/regression/tests/sfr16.c: enabled test on ds390
5417
5418 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5419
5420         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5421         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5422
5423 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5424
5425         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5426         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5427           (cl_address_space constructor): removed expensive initialization,
5428           (cl_address_space::get_cell): extended for late initialization,
5429           (cl_address_space::*): use late initialization,
5430           (cl_address_decoder::activate): removed expensive initialization,
5431           This reduced regression test running time by 25%
5432
5433 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5434
5435         * packihx/,
5436         * configure.in,
5437         * configure,
5438         * sdcc.dsw,
5439         * Makefile.bcc,
5440         * Makefile.in,
5441         * support/packihx/Makefile.in,
5442         * support/packihx/clean.mk,
5443         * support/packihx/Makefile.bcc,
5444         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5445
5446 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5447
5448         * src/SDCCval.c (valNot): fix for regression test failure
5449           of not.c on big endian hosts
5450
5451 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5452
5453         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5454
5455 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5456
5457         * device/lib/mcs51/Makefile.in: changed string comparison operator
5458           to = for POSIX compliance; == is bash extension
5459
5460 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5461
5462         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5463           kosmonaut_pirx
5464
5465 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5466
5467         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5468         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5469         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5470         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5471         bug report #1478657,
5472
5473 2006-05-05 Borut Razem <borut.razem AT siol.net>
5474
5475         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5476           making the html
5477
5478 2006-05-02 Borut Razem <borut.razem AT siol.net>
5479
5480         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5481           create *.ind, which made make to fail if invoked with -j 2
5482
5483 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5484
5485         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5486           Hubert Sack for patch 1479782
5487
5488 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5489
5490         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5491
5492 2006-05-01 Raphael Neider <rneider AT web.de>
5493
5494         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5495           (create_pic): store only prefix-free device name,
5496           (init_pic): check for device names with "16" prefix,
5497           (list_valid_pics),
5498         * src/pic/device.h (struct PIC_device),
5499         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5500             stored device name,
5501         * device/include/pic/pic12f{635,675,629,683}.h,
5502         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5503         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5504         * device/include/pic/pic16f505.h,
5505         * device/lib/pic/libdev/pic16f505.c: removed
5506         * device/include/pic/pic14devices.txt: added support for pic12f
5507             devices, removed unsupported non 16-bit devices
5508             [above changes provided by patch from Zik Saleeba]
5509         * src/pic/*, src/pic16/*, device/include/pic16/*,
5510           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5511
5512 2006-05-01 Borut Razem <borut.razem AT siol.net>
5513
5514         * configure.in, configure, doc/Makefile.in:
5515           sync with nightly build makefile - latex, dvipdf and dvips
5516           not needed any more
5517
5518 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5519
5520         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5521         in the library source
5522
5523 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5524
5525         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5526
5527 2006-04-28 Raphael Neider <rneider AT web.de>
5528
5529         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5530         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5531           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5532         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5533
5534 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5535
5536         * device/lib/pic/libdev/Makefile.in,
5537         * device/lib/hc08/Makefile.in,
5538         * device/lib/gbz80/Makefile.in,
5539         * device/lib/z80/Makefile.in,
5540         * device/lib/ds390/Makefile.in,
5541         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5542         thanks to Borut for the bug report
5543         * configure.in,
5544         * configure: always create doc/Makefile independent from --enable-doc
5545         * Makefile.in: always install from directory doc independent from
5546         --enable-doc
5547         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5548         removed
5549         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5550         * doc/Makefile.in: install *.txt if present
5551         * device/include/Makefile.in (install): added installation of pic/*.inc
5552         and pic/*.txt files again, they were erroneously removed
5553
5554 2006-04-28 Raphael Neider <rneider AT web.de>
5555
5556         * src/pic/{gen.c,main.h,pcode.c},
5557         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5558             concerning signedness with casts
5559
5560 2006-04-28 Raphael Neider <rneider AT web.de>
5561
5562         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5563             definition of an interrupt handler,
5564         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5565             interrupt handler stuff from picglue() to separate routine,
5566           (picglue): enabled definition of intr handlers in files w/o main()
5567
5568 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5569
5570         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5571           compilation with MSVC 2005 Express Edition (VC8)
5572
5573 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5574
5575         * device/lib/Makefile: fixed build of gbz80 lib
5576
5577 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5578
5579         * support/regression/tests/bug-460010.c,
5580         * support/regression/tests/bug-524691.c,
5581         * support/regression/tests/bug-716242.c: removed conditional defines
5582           that are already in testfwk.h
5583
5584 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5585
5586         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5587           (AccAXRsh1): added, shift right by 1,
5588           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5589            AccAXLrl1
5590         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5591
5592 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5593
5594         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5595         remove cast to same type
5596         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5597         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5598         * as/z80/Makefile,
5599         * link/z80/Makefile: removed, they have moved to
5600         Makefile.in files
5601         * configure,
5602         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5603         * install-sh: fix bug #1204398 by setting umask 0022
5604         * device/lib/Makefile: separate build of z80 and gbz80 lib
5605
5606 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5607
5608         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5609         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5610
5611         One basic decision: e.g. src/clean.mk includes further files. In order
5612         to make this work there are two solutions:
5613         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5614           run configure on them. This way they can use
5615           'include $(srcdir)/port-clean.mk'
5616         - always include clean.mk by the Makefile at the same level. To avoid
5617           that `make clean` tries to include and build Makefile.dep the
5618           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5619           implemented, because now even `make uninstall` doesn't create
5620           Makefile.in. clean.mk could be eliminated by pasting it in
5621           Makefile.in.
5622
5623         * debugger/mcs51/Makefile.in: build own objects from library sources
5624         (SLIB, SDCC) in current directory
5625
5626         * configure, configure.in: renamed --disable-device-lib-build in
5627         --disable-device-lib; added --enable-doc, the required tools are
5628         searched by configure; added result message; the toolchain for the
5629         belonging ports are now only built, if the port is enabled.
5630
5631         * support/regression/*: all output is written in directory gen, because
5632         the fwk and ports directories don't livet in the build tree using vpath
5633
5634         * doc/sdccman.lyx: renamed --disable-device-lib-build to
5635         --disable-device-lib, added --enable-doc, added section VPATH
5636
5637         * sim/ucsim/configure.in,
5638         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5639         z80 are enabled by default
5640
5641 2006-04-24 Raphael Neider <rneider AT web.de>
5642
5643         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5644             to config word, "pic14_"-prefixed some extern functions
5645           (pic14_emitConfigWord): emit __config directive(s) if assignment to
5646             config word has been found
5647         * src/pic/device.h: added prototypes
5648         * src/pic/pcode.c: added "pic14_"-prefix where needed
5649         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5650             fixup
5651         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5652             words,
5653           (pic14emitRegularMap): ignore config words,
5654           (pic14createInterruptVect): moved generating __config directives away
5655           (picglue): have __config directives emitted
5656
5657 2006-04-24 Borut Razem <borut.razem AT siol.net>
5658
5659         * doc/Makefile: sync with nightly build makefile
5660
5661 2006-04-24 Raphael Neider <rneider AT web.de>
5662
5663         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5664             registers that have not been assigned proper liveranges,
5665             fixes #1469504 and #1474602,
5666           (pCodeRegOptimizeRegUsage): fixed typo in comment
5667
5668 2006-04-24 Borut Razem <borut.razem AT siol.net>
5669
5670         * device/examples/main8051.c: deleted - it was removed from CVS
5671           24.mar.2000 and after that modified 18.feb.2001, so it reappered
5672           after the transition to Subversion
5673         * src/SDCCalloc.h: deleted - it was removed  from CVS
5674           3.feb.2001 and after that modified 18.feb.2001, so it reappered
5675           after the transition to Subversion
5676         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5677           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5678           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5679           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5680
5681 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5682
5683         * as/asx8051.dsp: added mcs51/strcmpi.h
5684         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5685         * as/hc08/aslink.h: updated lnksect prototype
5686         * as/hc08/asm.h,
5687         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5688         * as/hc08/asmain.c,
5689         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5690           (newdot): handle A_ABS
5691         * as/hc08/asout.c,
5692         * as/mcs51/asout.c (outarea): output address
5693         * as/hc08/lkaomf51.c,
5694         * as/mcs51/lkaomf51.c: disabled unused array UsageType
5695         * as/hc08/m08pst.c,
5696         * as/mcs51/i51pst.c,
5697         * as/z80/z80pst.c: "ABS" is not A_OVR
5698         * as/hc08/lkarea.c (newarea): read a_addr,
5699           (lnkarea): added codemap array, sort absolute areas to the front,
5700            combine all GSINITx/GSFINAL,
5701           (find_empty_space, allocate_space): new functions,
5702           (lnksect): return next address, handle absolute sections
5703         * as/mcs51/lkarea.c (newarea): read a_addr,
5704           lnksect2 prototype changed,
5705           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5706           (find_empty_space, allocate_space): new, factored out of lnksect2,
5707           (lnksect2): return next address, handle absolute sections
5708         * as/hc08/lkhead.c,
5709         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5710         * as/hc08/lklibr.c (addfile, fndsym),
5711         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5712           index out of range and detect both '\' and '/'
5713         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5714         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5715           regression tests (ds390 cannot return bool yet)
5716         * doc/sdccman.lyx: changed version number, document changed --no-peep,
5717           document critical interrupts on z80, document changed SDCC define
5718         * src/asm.c (_asxxxx_mapping): fixed .org directive,
5719           (_a390_mapping): added .org directive
5720         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5721           (genMultOneByte): fixed warnings
5722         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5723           ones
5724         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5725         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5726           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5727         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5728         * src/pic16/main.c: removed newReg prototype
5729         * src/pic16/pcode.c,
5730         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5731           warnings
5732         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5733           ones
5734         * src/pic16/ralloc.c
5735         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5736           to fix warnings
5737         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5738           from short to PIC_OPTYPE
5739         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5740         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5741           optype from short to PIC_OPTYPE
5742         * src/port.h: made int_size unsigned to fix warnings
5743         * src/SDCC.y: fixed warning on MSVC
5744         * src/SDCCicode.c (getArraySizePtr): return unsigned int
5745         * src/SDCCopt.c (convertToFcall): fixed warnings
5746         * src/SDCCsymt.h: removed double prototype for genSymName
5747         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5748           offset int to fix warnings
5749
5750 2006-04-22 Borut Razem <borut.razem AT siol.net>
5751
5752         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5753           references to CVS replaced with Subversion
5754
5755 2006-04-21 Borut Razem <borut.razem AT siol.net>
5756
5757         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5758           references to CVS replaced with Subversion
5759
5760 2006-04-19 Borut Razem <borut.razem AT siol.net>
5761
5762         * src/version.awk: adapted for svn
5763         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5764           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5765           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5766           /binutils-avr/etc/*.vi, *.jin: removed all properties
5767           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5768
5769 2006-04-19 Borut Razem <borut.razem AT siol.net>
5770
5771         * CVS to Subversion migration completed
5772
5773 2006-04-18 Borut Razem <borut.razem AT siol.net>
5774
5775         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
5776           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
5777
5778 2006-04-17 Borut Razem <borut.razem AT siol.net>
5779
5780         * device/include/Makefile.in: added pic/*.inc to the installation
5781
5782 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5783
5784         * support/regression/collate-results.py: fixed output in case of
5785         a valdiag error
5786         * support/regression/generate-cases.py: fixed splitting of pathnames
5787         with dots
5788         * as/hc08/lklibr.c (addfile),
5789         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5790
5791 2006-04-11 Raphael Neider <rneider AT web.de>
5792
5793         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5794         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5795         * src/pic16/pcode.c (assignValnums): fixed #1460578
5796
5797 2006-04-11 Raphael Neider <rneider AT web.de>
5798
5799         * device/lib/pic/libdev/*.c,
5800         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5801           fixes #1468739, enables compilation in --std-c99 mode
5802         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5803
5804 2006-04-11 Raphael Neider <rneider AT web.de>
5805
5806         * src/pic/device.c (find_device): removed debug output
5807           (list_valid_pics): enabled verbose listing of supported devices
5808         * device/include/stdbool.h: define bool as char for pic14/16 as well
5809
5810 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5811
5812         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5813
5814 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5815
5816         * .version: bumped version to 2.5.6
5817         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5818
5819 2006-04-06 Raphael Neider <rneider AT web.de>
5820
5821         * .version: bumped version to 2.5.6 (pic14 ABI changed)
5822         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5823         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5824           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5825             pic14_constructAbsMap
5826           (pic14printPublics): declare absolute global symbols as global
5827           (pic14createInterruptVect),
5828         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5829           (newReg): assume new registers unused, use correct name in
5830             hashtable (reg->name instead of name), more debugLog output
5831         * src/pic/device.h (PIC_device): added fields for verbose output
5832         * src/pic/device.c: moved device definition to pic14devices.txt,
5833             added routines for runtime parsing of pic14devices.txt,
5834             added support for second config word
5835         * src/pic/main.c (_process_pragma): removed #pragma maxram,
5836           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5837           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5838           (_pic14_parseOptions): moved pCodeInitRegisters here
5839           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5840         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5841           (pCodeInitRegisters): rewrapped comments, perpared new approach to
5842             handling the pseudo stack
5843         * device/lib/Makefile.in: ignore failures in objects-pic16,
5844         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5845         * device/lib/pic/NEWS: document new dependency on picXXX.lib
5846         * device/lib/pic/Makefile.subdir,
5847         * device/lib/pic16/Makefile.subdir: improved clean rules
5848         * device/lib/pic/libdev/: NEW, pic14 device libraries
5849         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5850         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5851         * device/include/Makefile.in: create subdir and install pic14 headers
5852         * device/include/pic/p16f_common.inc: removed unused declarations
5853         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5854             PICs from inc2h.pl v1.6,
5855             replaced BIT_AT macros with struct declarations
5856         * device/include/pic/pic14devices.txt: definition of supported devices,
5857             all above improvements contributed by Zik Saleeba, thanks
5858         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5859         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5860             headers
5861
5862 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5863
5864         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5865         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5866           thanks to Charles Olds
5867
5868 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5869
5870         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5871
5872 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5873
5874         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5875         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5876         * support/regression/bug1464657.c: added, new test
5877
5878 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5879
5880         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5881           version number
5882
5883 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5884
5885         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5886           --no-peep and --peep-file <file> are used don't use default rules but
5887           do use the <file>
5888
5889 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5890
5891         * src/mcs51/gen.c (genCall): fixed bug 1457608
5892
5893 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5894
5895         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5896         changes seem to cause (trigger?) problems with the build system.
5897
5898 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5899
5900         * src/SDCCpeeph.c (operandsLiteral): new, added,
5901           (callFuncByName): inserted operandsLiteral
5902         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5903
5904 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5905
5906         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5907         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5908
5909 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5910
5911         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5912           implemented patch 1120823 Thanks to Willy De la Court (normal
5913           interrupts need an interrupt number now if they are made critical),
5914           and enabled nesting of critical functions though not for gbz80
5915           (genCritical, genEndCritical): added functions
5916           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5917         * src/z80/mappings.i: added "ei" to all mappings
5918
5919 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5920
5921         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5922         submitted by the Debian SDCC maintainer Aurelien Jarno:
5923         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5924         archive with gcc 4.1 on mips and wrote the patch"
5925
5926 2006-03-16 Raphael Neider <rneider AT web.de>
5927
5928         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5929           the left operand is shorter than the result (c* = lit-c* + int),
5930           fixes bug #1450796
5931         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5932           OP_SYMBOL
5933
5934 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5935
5936         * src/.version: increased version number to 2.5.5
5937         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5938         linking is done manually in pic16 port's _linkEdit,
5939         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5940         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5941         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5942         allocate asmop as AOP_ACC,
5943         (aopForRemat): added parameter 'bool result' in function declaration,
5944         (pic16_aopGet): return AOP_ACC when accessing WREG,
5945         (pic16_popGetTempReg): minor modification,
5946         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5947         'pic16_allocWithIdx',
5948         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5949         calling function in absolute addresses,
5950         (genAssign): take into account AOP_ACC asmop,
5951         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5952         * src/pic16/pcoderegs.c: some debug functions and lines added,
5953         * src/pic16/ralloc.c (decodeRegType): added but commented out,
5954         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
5955         register too,
5956         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
5957         call to allocReg, not by manually allocating a new one,
5958         (pic16_assignRegisters): now before going through the register
5959         allocating functions mark all registers as free. This eliminates some
5960         side effects resulting from peephole parser done earlier in the backbone
5961
5962 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
5963
5964         * src/SDCCicode.c (geniCodeLogic),
5965         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
5966
5967 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
5968
5969         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
5970           (genSend): bugfix, do not allocate and free twice,
5971           (shiftRLong): handle partially overlapping aops
5972         * support/regression/tests/bitopcse.c: fixed warning redefined idata
5973
5974 2006-03-08 Borut Razem <borut.razem AT siol.net>
5975
5976         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
5977           for pic16
5978
5979 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
5980
5981         * support/regression/tests/bug1409955.c: new, added
5982         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
5983         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
5984           (aopForSym, aopOp): increment asmop.allocated if reused,
5985           (freeAsmop): decrement asmop.allocated and check for zero instead of
5986           using asmop.freed,
5987           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
5988           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
5989            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
5990            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
5991            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
5992            genSignedRightShift, genRightShift, genDataPointerGet,
5993            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
5994            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
5995             in reverse order from allocation,
5996           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
5997             added swappedLR to keep track
5998         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
5999           pdata & code for GCC, z80, gbz80 & hc08
6000         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6001
6002 2006-03-08 Raphael Neider <rneider AT web.de>
6003
6004         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6005
6006 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6007
6008         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6009         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6010         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6011
6012 2006-03-06 Borut Razem <borut.razem AT siol.net>
6013
6014         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6015           made the linker quiet
6016
6017 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6018
6019         * src/pic16/gen.c (genPcall): fixed bug #1443644
6020         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6021         which dumps before the function entry point a data byte which represents
6022         the number of the local variables used by the specified function, added
6023         'xinst' for initial support for Extended Instruction Support,
6024         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6025         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6026         port->fun_prefix anymore (may change later),
6027         (genFunction, genEndFunction): do not store/restore local registers for
6028         _main (this should take care the --main-return command line option in
6029         the future),
6030         (genOr): removed some legacy pic-port instructions,
6031         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6032         performing operations with SFR's causes data to be written more than
6033         once to each SFR. Perhaps SFRs should be handled in special cases...
6034         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6035         pcode.h
6036         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6037         into account for stack starting position,
6038         (struct OPTIONS pic16_optionsTable): added command line argument
6039         --extended or -y for Extended Instruction Support,
6040         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6041         (deassignLRs): *** perhaps the most important change, old 'for' code
6042         (commented out for reference), didn't account for some registers which
6043         were left marked 'not free' after a pointer operation. The change
6044         reduces register usage a lot in some cases
6045
6046 2006-03-04 Borut Razem <borut.razem AT siol.net>
6047
6048         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6049           _clean
6050         * support/regression/tests/bug-524697.c: decreased array size for
6051           mcs51 to fit into the internal RAM
6052         * support/regression/Makefile.in: a little bit more verbose
6053
6054 2006-03-03 Borut Razem <borut.razem AT siol.net>
6055
6056         * support/regression/fwk/lib/testfwk.c,
6057           support/regression/fwk/include/testfwk.h: introduced function
6058           _prints(), nonrecursive _printn(), call _initEmu() from main()
6059         * support/regression/ports/gbz80/support.asm,
6060           support/regression/ports/ucz80/support.asm,
6061           support/regression/ports/z80/support.asm,
6062           support/regression/ports/ds390/support.c,
6063           support/regression/ports/hc08/support.c,
6064           support/regression/ports/host/support.c,
6065           support/regression/ports/mcs51/support.c,
6066           support/regression/ports/xa51/support.c: added empty _initEmu()
6067           function
6068         * support/regression/ports/pic16/gpsim.cmd,
6069           support/regression/ports/pic16/spec.mk,
6070           support/regression/ports/pic16/support.c,
6071           support/regression/Makefile.in: added pic16 regression test
6072
6073 2006-03-01 Raphael Neider <rneider AT web.de>
6074
6075         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6076           genConstPointerGet): use safe way of generating MOVFF to cover
6077             literals as well as registers, fixes bug #1440527
6078         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6079             dereference
6080           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6081             more correctly, fixes bug #1232186
6082           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6083         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6084             gplink guess the correct processor in more cases, applied patch
6085             from Till Riedel attached to and fixing bug #1436552
6086
6087 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6088
6089         * support/regression/tests/array.c: added, contains check for #1434401
6090         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6091
6092 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6093
6094         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6095         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6096         * device/include/mcs51/c8051f326.h,
6097         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6098         * device/include/mcs51/c8051f000.h,
6099         * device/include/mcs51/c8051f018.h,
6100         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6101           PCON_IDLE,PCON_STOP and added sfr16 definitions
6102
6103 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6104
6105         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6106           genGetWord): fixed bug 1409955
6107
6108 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6109
6110         * device/include/hc08/mc68hc908gp32.h,
6111         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6112
6113 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6114
6115         * src/SDCCast.c (constExprValue): return NULL if not a value
6116         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6117         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6118         * support/regression/tests/bitfields.c: enabled signed bitfield for all
6119
6120 2006-02-13 Borut Razem <borut.razem AT siol.net>
6121
6122         * src/regression/ptrarg.c: added, fails due to bug #1430967
6123         * src/regression/Makefile: ptrarg.c added, ...
6124
6125 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6126
6127         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6128         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6129
6130 2006-02-11 Borut Razem <borut.razem AT siol.net>
6131
6132         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6133           print "Processor: xxx" message to stdout only if --verbose
6134
6135 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6136
6137         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
6138         * support/regression/tests/bug1426356.c: added
6139         * support/regression/tests/bitfields.c: removed 2 tests
6140
6141 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6142
6143         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
6144         * device/include/mcs51/c8051f330.h,
6145         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
6146           PCON_IDLE,PCON_STOP and added sfr16 definitions
6147         * device/lib/_divsint.c,
6148         * device/lib/_divuint.c,
6149         * device/lib/_divulong.c,
6150         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
6151           register bank bug for small stackauto
6152
6153 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6154
6155         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
6156
6157 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
6158
6159         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
6160         * all.dsp: corrected several bin paths
6161         * device/include/mcs51/c8051f120.h,
6162         * device/include/mcs51/c8051f300.h,
6163         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
6164           to PCON_IDLE,PCON_STOP
6165         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
6166         * device/lib/printf_large.c (output_float): fixed bug 1388703
6167         * support/regression/tests/bug1057979.c: added test for bug 1388703
6168
6169 2006-02-08 Raphael Neider <rneider AT web.de>
6170
6171         * src/pic/pcode.c (pciTRIS): fixed typo,
6172           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
6173           (LinkFlow): fixed handling of flows that end in a call,
6174           (ReuseReg): perform safety check earlier
6175         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
6176             to work with flows at the beginning of a pBlock,
6177             fixes #1426557 (Symbol not previously defined),
6178           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
6179             usage information
6180           (RemoveUnusedRegisters): update register usage info
6181         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
6182             created, reuse existing ones instead
6183         * src/pic/gen.c (genPcall): fixed #1424719
6184
6185 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
6186
6187         * link/z80/lkmain.c,
6188         * link/z80/lklex.c,
6189         * link/z80/lkdata.c,
6190         * link/z80/aslink.h: fixed build on current cygwin:
6191         replaced getline() by lk_getline()
6192
6193 2006-02-01 Borut Razem <borut.razem AT siol.net>
6194
6195         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6196           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6197           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6198           src/regression/bool1.c, src/regression/bool2.c,
6199           src/regression/bool3.c, src/regression/call1.c,
6200           src/regression/compare.c, src/regression/compare10.c,
6201           src/regression/compare2.c, src/regression/compare3.c,
6202           src/regression/compare4.c, src/regression/compare5.c,
6203           src/regression/compare6.c, src/regression/compare7.c,
6204           src/regression/compare8.c, src/regression/compare9.c,
6205           src/regression/configword.c, src/regression/for.c,
6206           src/regression/inline.c, src/regression/mult1.c,
6207           src/regression/nestfor.c, src/regression/or1.c,
6208           src/regression/pointer1.c, src/regression/ptrfunc.c,
6209           src/regression/rotate1.c, src/regression/rotate2.c,
6210           src/regression/rotate3.c, src/regression/rotate4.c,
6211           src/regression/rotate5.c, src/regression/rotate6.c,
6212           src/regression/rotate7.c, src/regression/string1.c,
6213           src/regression/struct1.c, src/regression/sub.c,
6214           src/regression/sub2.c, src/regression/switch1.c,
6215           src/regression/while.c, src/regression/xor.c,
6216           src/regression/create_stc, src/regression/simulate,
6217           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6218           regression tests
6219         * src/regression/gpsim_assert.h: added
6220
6221 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6222
6223         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6224         ((void (code *) (void)) 0) ();
6225         * as/hc08/aslex.c,
6226         * as/hc08/aslink.h,
6227         * as/hc08/asm.h,
6228         * as/hc08/asmain.c,
6229         * as/hc08/lkdata.c,
6230         * as/hc08/lklex.c,
6231         * as/hc08/lkmain.c,
6232         * as/mcs51/aslex.c,
6233         * as/mcs51/aslink.h,
6234         * as/mcs51/asm.h,
6235         * as/mcs51/asmain.c,
6236         * as/mcs51/lkdata.c,
6237         * as/mcs51/lklex.c,
6238         * as/mcs51/lkmain.c,
6239         * as/z80/aslex.c,
6240         * as/z80/asm.h,
6241         * as/z80/asmain.c: fixed build on current cygwin:
6242         replaced getline() by as_getline()
6243
6244 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6245
6246         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6247         declarator in the symbol chain
6248         * src/SDCCsymt.h,
6249         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6250         parameter list for function pointers
6251         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6252         * support/regression/tests/bug-716242.c: added
6253
6254 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6255
6256         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6257         offset if possible
6258         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6259
6260 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6261
6262         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6263         inifinitely recurseable, added static
6264         * support/regression/tests/bug-1408066.c: added
6265
6266 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6267
6268         * src/SDCCicode.h,
6269         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6270         renamed, added possibility to create "postLoopLbl"-labels
6271         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6272         newiTempLoopHeaderLabel
6273         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6274         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6275         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6276         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6277         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6278         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6279         (basicInduction): fixed bug #136564, made static,
6280         (loopInduction): changed parameter of basicInduction, made static,
6281         (addPostLoopBlock): added
6282         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6283         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6284         findLoopEndSeq
6285         * support/regression/tests/bug-136564.c: added
6286         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6287         --std-sdcc99 to LIBSDCCFLAGS
6288
6289 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6290
6291         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6292         while loop
6293         * support/regression/tests/bug-1406131.c: added
6294
6295 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6296
6297         * src/SDCCast.c (decorateType): fix promotion of unary minus
6298         * src/SDCCsymt.c (computeType): beautified
6299         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6300         (valUnaryPM, valComplement): fix sign and promotion,
6301         (valNot): ANSI: result type is int (SDCC: unsigned char)
6302         * support/regression/tests/uminus.c: speedup by removing superflous
6303         test case 'int'
6304         * support/regression/tests/onebyte.c: added promotion and signedness
6305         tests for unary minus
6306         * support/regressions/tests/bug-477927.c: disable warning about
6307         uninitialized variables
6308         * support/regression/tests/not.c: added
6309
6310 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6311
6312         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6313         * src/mcs51/gen.c (gen51Code): show final register usage after
6314         fillGaps in asm with --i-code-in-asm
6315         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6316         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6317         incUsed, rliveClear, adjustIChain): made static,
6318         (setFromRange): excluded because it's unused,
6319         (findPrevUseSym, markWholeLoop): added,
6320         (findPrevUse): rewritten; fixes bug 895992; now a complete search
6321         through all branches of predecessors enables sdcc to emit the warning
6322         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6323         (rlivePoint): made static, added parameter emitWarnings which is only
6324         true during the first run out of two,
6325         (findRecursiveSucc, findRecursivePred): removed,
6326         (computeLiveRanges): made static, added parameter emitWarnings,
6327         (dumpIcRlive): added for debugging only
6328         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6329         removed prototype of setFromRange()
6330         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6331         in call of computeLiveRanges()
6332         * support/regression/tests/bug-895992.c: added
6333         * support/regression/tests/bug-971834.c: added
6334         * support/valdiag/tests/bug-895992.c: added
6335         * support/valdiag/tests/bug-971834.c: added
6336
6337 2005-12-18 Raphael Neider <rneider AT web.de>
6338
6339         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6340           (genUnpackBits): improved code for direct operands,
6341           (genPackBits): improved code for literal assignment to bitfields
6342             and for direct destination operands (no FSR indirection),
6343             prevented redundant AND, fixes #1362800,
6344           (AccLsh): added parameter to disable masking of the result
6345         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6346           skip instructions with side-effects (like incfsz),
6347           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6348         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6349         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6350           fixes #1375263
6351
6352 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6353
6354         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6355         volatile variables as spill location
6356
6357 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6358
6359         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6360         replacing literals
6361         * support/regression/tests/bug-1376320.c: added
6362
6363 2005-12-08 Raphael Neider <rneider AT web.de>
6364
6365         * src/pic/device.c: renamed is_shared to pic14_is_shared
6366         * src/pic/gen.c (genIfx): re-enabled handling of sbits
6367         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6368           (is_valid_identifier): added for above workaround
6369
6370 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6371
6372         * device/lib/Makefile.in: fixed to enable port-specific-objects
6373         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6374           char, thanks Hubert Sack
6375         * doc/sdccman.lyx: documented --xstack-loc,
6376           elaborated a bit more on interrupts and pitfalls,
6377           removed "setjmp/longjmp unsupported",
6378           documented some unsupported C99 features
6379         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6380         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6381           if, thanks Hubert Sack
6382         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6383         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6384           make make_library
6385         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6386           regression tests can report resource usage (rfe 700441)
6387         * support/regression/collate-results.py: report resource usage
6388         * support/regression/ports/ds390/spec.mk,
6389         * support/regression/ports/hc08/spec.mk,
6390         * support/regression/ports/mcs51/spec.mk,
6391         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6392         * support/regression/ports/ds390/uCsim.cmd,
6393         * support/regression/ports/hc08/uCsim.cmd,
6394         * support/regression/ports/mcs51/uCsim.cmd,
6395         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6396         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6397           library, use the default one
6398         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6399           building the library
6400
6401 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6402
6403         * config.dsp: added dependency on .version and configure_vc.awk
6404         * device/include/setjmp.h: updated for --stack-auto and --xstack
6405         * device/include/mcs51/at89c51snd1c.h: corrected line endings
6406         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6407         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6408         * device/lib/libsdcc.lib: added _setjmp
6409         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6410           (decorateType): fixed bug 1372851,
6411           (optimizeGetHbit): fixed warning
6412         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6413           array initialisation
6414         * support/regression/tests/bug1057979.c: added test for bug 1358192
6415         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6416
6417 2005-12-03 Borut Razem <borut.razem AT siol.net>
6418
6419         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6420           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6421
6422 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6423
6424         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6425         createIval): implement symbol independant "flexible array member",
6426         (createIvalCharPtr): implemented flexible array initialisation with a
6427         string
6428         * src/SDCCsymt.c (copyStruct): removed,
6429         (getSize): fixed misleading comment,
6430         (getAllocSize): removed, the additional allocation size is now in
6431         sym->flexArrayLength,
6432         (checkStructFlexArray): new, syntax checks for flexible array members,
6433         (compStructSize): added syntax checks for "flexible array members"
6434         (copyStruct): removed,
6435         (copyLinkChain): removed inefficient fix for bug 770487
6436         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6437         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6438         symbol->flexArrayLength
6439         * src/SDCCerr.c,
6440         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6441         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6442         * support/regression/tests/structflexarray.c: added
6443         * support/valdiag/tests/structflexiblearray.c: added
6444
6445 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6446
6447         * src/SDCCast.c (decorateType): fixed bug 1368489
6448         * support/Util/SDCCerr.c,
6449         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6450
6451 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6452
6453         * device/include/mcs51/at89c51snd1c.h: added file submitted by
6454           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6455
6456 2005-11-27 Borut Razem <borut.razem AT siol.net>
6457
6458         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6459           support/cpp2/mkdeps.h: added command line option
6460           -obj-ext=<extension> to SDCPP to define object file externion, used
6461           for generation of make dependencies (-M)
6462         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6463
6464 2005-11-26 Borut Razem <borut.razem AT siol.net>
6465
6466         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6467           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6468           added pic and pic16 libraries
6469
6470 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6471
6472         * device/include/float.h: Corrected typo in prototype of __fsgt
6473
6474 2005-11-25 Borut Razem <borut.razem AT siol.net>
6475
6476         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6477           added creation of model-mcs51-stack-auto libraries
6478
6479 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6480
6481         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6482         and fields-list too
6483         * src/SDCCast.c (createIvalArray): removed obsolete comment
6484
6485 2005-11-24 Borut Razem <borut.razem AT siol.net>
6486
6487         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6488           added missing device/lib/mcs51/crt*.asm sources
6489
6490 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6491
6492         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6493
6494 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6495
6496         * device/lib/_fs2schar.c,
6497         * device/lib/_fs2sint.c,
6498         * device/lib/_fs2slong.c: optimized inline asm
6499
6500 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6501
6502         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6503           Better handling of floats between -1.0 and 0.0.
6504
6505 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6506
6507         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6508           (the missing "if"s prohibited removal of redundant labels)
6509
6510 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6511
6512         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6513           Properly convert floats between -1.0 and 0.0 to long, int, and char
6514           types (max integer value of negative floats tends to zero).
6515         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6516           Removed changes made so to work properly with floats between
6517           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6518           and _fs2char.c
6519
6520 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6521
6522         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6523         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6524         (genCast) cosmetic change
6525         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6526         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6527         from mcs51
6528         * support/regression/tests/bitfields (testSignedBitfields): added
6529
6530 2005-11-18 Borut Razem <borut.razem AT siol.net>
6531
6532         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6533         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6534           introduced SILENT option to make building of pic16 libraries less
6535
6536 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6537
6538         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6539           Now they work properly with floats between -1.0 and 0.0
6540         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6541
6542 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6543
6544         * src/SDCCicode.c (printOperand): added missing else
6545
6546 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6547
6548         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6549         reformatted for better readability
6550         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6551         signed bitfields
6552
6553 2005-11-17 Borut Razem <borut.razem AT siol.net>
6554
6555         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6556           introduced SILENT option to make building of pic16 libraries less
6557           verbose - used for nightly snapshot build
6558         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6559           available on Win32 platforms.
6560         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6561           medium, large, pic and pic16
6562
6563 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6564
6565         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6566           printf("%f"...) sets fraction to zero.
6567
6568 2005-11-16 Raphael Neider <rneider AT web.de>
6569
6570         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6571           fixes #1357221
6572         * src/pic/gen.c (genIfx): implemented for CARRY bit
6573         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6574           to generic pointers, fixes #1357332,
6575           (pic16_movLit2f): NEW,
6576           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6577
6578 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6579
6580         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6581
6582 2005-11-11 Raphael Neider <rneider AT web.de>
6583
6584         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6585         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6586           compute pointer's type from operand,
6587           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6588           improved single bit reads, fixes bug #1353379
6589
6590 2005-11-09 Borut Razem <borut.razem AT siol.net>
6591
6592         * support/scripts/sdcc.nsi: added lib/pic to the package
6593
6594 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6595
6596         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6597
6598 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6599
6600         * support/regression/tests/bug1348008.c: added
6601         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6602         * support/regression/tests/bug1337835.c: updated comment
6603
6604 2005-11-06 Borut Razem <borut.razem AT siol.net>
6605
6606         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6607           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6608           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6609           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6610           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6611           dynamic construction of cl_error_class and derivates - 2.nd try
6612
6613 2005-11-05 Borut Razem <borut.razem AT siol.net>
6614
6615         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6616           bug, which caused Bus Errors on sparc solaris
6617
6618 2005-11-04 Borut Razem <borut.razem AT siol.net>
6619
6620         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6621           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6622           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6623           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6624           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6625           and derivates to resolve the initialization problem on OSX
6626
6627 2005-11-02 Borut Razem <borut.razem AT siol.net>
6628
6629         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6630           corrected typo - #include <winsock2.h>
6631
6632 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6633
6634         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6635           (_asxxxx_mapping): added org directive for future enhancements
6636
6637 2005-11-01 Borut Razem <borut.razem AT siol.net>
6638
6639         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6640           enabled sockets on WIN32
6641         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6642
6643 2005-10-31 Borut Razem <borut.razem AT siol.net>
6644
6645         * support/regression/generate-cases.py: escape backslashes in {testcase}:
6646           WIN32 backslash path delimiters should be escaped when used in C strings
6647         * support/regression/tests/bitfields.c: exclude failing assertions for
6648           __CYGWIN32__ and __MINGW32__ hosts
6649
6650 2005-10-30 Borut Razem <borut.razem AT siol.net>
6651
6652         * src/SDCCutil.c: corrected double comparison typo
6653
6654 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6655
6656         * device/lib/medium/Makefile: added for new memory model medium
6657         * device/include/asm/mcs51/features.h: updated for medium/pdata
6658         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6659           added Multiply & Accumulate sbit's and MAC0_PAGE define
6660         * device/include/mcs51/c8051f300.h: added sfr16 definitions
6661         * device/include/mcs51/c8051f310.h: added sfr16 definitions
6662         * device/lib/_mullong.c: update for medium model
6663         * device/lib/incl.mk: added medium model
6664         * doc/sdccman.lyx: documented medium model
6665         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6666         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6667         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6668         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6669           (allocParms): set SCLS and OCLS to pdata for medium model
6670         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6671           for pdata,
6672           (powof2): return <0 if not power of 2
6673         * src/avr/gen.c (genBitWise): use updated powof2
6674         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6675           (shiftR2Left2Result): small optimization in setup, save acc when storing,
6676           (shiftLLeftOrResult): use B if necessary
6677         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6678         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6679         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6680         * support/regression/Makefile.in: added test-mcs51-medium
6681         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6682
6683 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6684
6685         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6686         specifier unsigned
6687         * device/lib/time.c (mktime): fixed bug 1334315
6688
6689 2005-10-28 Raphael Neider <rneider AT web.de>
6690
6691         * device/include/pic/p16f_common.inc: added common declarations
6692         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6693
6694 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6695
6696         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6697           (aopPutUsesAcc): added to predict accumulator use,
6698           (assignResultValue): save acc if necessary,
6699           (genMinusDec): store result if indirectly addressed,
6700           (genDivOneByte):  save acc if necessary,
6701           (movLeft2Result): bugfix if left already in acc,
6702           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6703             attention to accumulator use (esp. pdata),
6704           (genReceive): receive pdata correctly
6705         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6706         * src/SDCCicode.h: added isOperandInPagedSpace prototype
6707
6708 2005-10-27 Raphael Neider <rneider AT web.de>
6709
6710         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6711
6712 2005-10-27 Raphael Neider <rneider AT web.de>
6713
6714         * .version: changed version to 2.5.4
6715         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6716         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6717           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6718             arithmetics support routines
6719         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6720         * device/lib/Makefile.in: also create installdir for pic
6721
6722         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6723           pic14 port as well
6724         * src/pic/device.c (dump_sfr): rewritten to delegate register
6725           placement to the linker (use `extern sym' rather than sym EQU addr),
6726           (validAddress): fixed to check last specified address
6727         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6728           (popGetLit): truncate literal value to 8 bit,
6729           (popGet): moved assert to more appropriate place
6730           (popGetExternal): create pCode operand from and mark the according
6731             symbol as being `extern'
6732           (popGetAddr): added sanity check on immediate's offset, provide
6733             GPOINTER tag on demand
6734           (aopPut): fixed for immediates,
6735           (mov2w_op): move operand's address or contents to WREG (depending on
6736             operand type), safer variant of mov2w,
6737           (movwf,call_libraryfunc): NEW, handy abbreviations,
6738           (get_argument_pcop,get_return_val_pcop,pass_argument,
6739           get_returnvalue): interface for accessing function parameters and
6740             return values,
6741           (assignResultValuei,genRet): use new parameter/return value interface
6742           (pic14_getDataSize): back to old version handling generic pointers,
6743           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6744             provided implementation and/or fixed old one,
6745           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6746             calls, removed legacy 8051 reference code
6747           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6748           (loadSignToC): NEW, move the operands sign bit to CARRY,
6749           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6750             genRightShiftSigned, accepts negative shift counts,
6751           (setup_fsr): load FSR and adjust IRP (indirect memory access),
6752           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6753             generic pointers, __data pointers and __code pointers,
6754           (genUnpackBits,genPackBits): rewritten to work with generic pointers
6755             and signed bitfields, limit bitfields to 8 bit,
6756           (genDataPointerGet): fixed number of bytes read,
6757           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6758           (genPointerGet,genPointerSet): fixed handling of __code pointers,
6759             pointers to constant data are no longer assumed to point to __code
6760             space, removed invalid pointer types,
6761           (bitpatternFromVal): retrieve the PICs representation of an integer
6762             or float literal,
6763           (genDataPointerSet): fixed assigning to po_immediate operands,
6764           (genGenPointerSet): implemented as library call,
6765           (genIfx): fixed incorrect condition,
6766           (genAddrOf): limit generic pointers' addresses to 2 bytes,
6767             provide GPOINTER tag according to destination's storage class,
6768           (genCast): added code to handle casting to generic pointers, added
6769             sign-/zero extension of the result
6770           (aop_isLitLike,op_isLitLike): fixed handling of immediates
6771         * src/pic/gen.h: added macros to access IRP bit in STATUS register
6772         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6773           extend the result
6774         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6775           address/register resides in the shared banks
6776           (emitSymbolToFile): improved to handle global and `pinned' symbols,
6777             put all variables into separate sections (have the linker arrange
6778             them)
6779           (picglue): put init code and interrupt handlers in separate sections
6780         * src/pic/main.c: added port specific options table, modified to PORT
6781           structure to make GPOINTERs 3 byte, added pic14_options
6782           (_pic14_do_link): private linking routine (update paths to libraries,
6783             add libsdcc.lib by default)
6784         * src/pic/main.h: declare pic14_options
6785         * src/pic/pcode.c: fixed instructions i/o relations,
6786           (RegCond): reverted to correct version,
6787           (newpCodeOpLit): truncate literals to 8 bit,
6788           (genericPrint): added debug output,
6789           (getRegFromInstruction): fixed for various operand types, simplified
6790           (BuildFlow): fixed broken handling of isntructions with labels
6791           (LinkFlow): start at last instruction in flow (skip trailing comments),
6792             pass the flow on to the next instruction after CALL
6793           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6794           (insertPCodeInstruction): fixed inserting after a skip instruction,
6795           (DoBankSelect): fixed for labeled instructions
6796           (OptimizepBlock): honor --nopeep switch
6797           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6798         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6799         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6800           (pCodeOptime2pCodes): allow disabling this optimization via
6801             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6802             but is still buggy), started implementation of a dataflow based
6803             pCode optimization (CSE + dead code elimination)
6804           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6805         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6806           names are independant of the stack location and therefore portable across
6807           devices
6808
6809 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6810
6811         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6812           (selectSpil): fixed bug 1337835 by not spilling bit variables
6813         * support/regression/tests/bug1337835.c: added test for this bug
6814         * src/mcs51/peeph.def: restart after rule 3.c,
6815           addded rules 263.x to optimize loading constants
6816
6817 2005-10-26 Raphael Neider <rneider AT web.de>
6818
6819         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6820         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6821           (genAssign): emit warning when casting literals to generic pointer
6822             type, also applies when taking the address of a fixed variable,
6823           (genCast): improved casting to generic pointers
6824         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6825           extern variables, added verbose error message
6826         * device/include/pic16/{string.h,errno.h}: added #pragma library c
6827
6828 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6829
6830         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6831         carry must be complemented too
6832         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6833         could be emitted by genMinus
6834         * src/SDCCval.c (constVal): fixed bug 1305065
6835
6836 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6837
6838         * src/SDCCast.c (addCast): added promotion for bit variables
6839         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6840         promotion casts + optimisation
6841         (optimizeGetWord): fix warning 'i' might be used uninitialized
6842         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6843         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6844
6845 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6846
6847         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6848         all chars are promoted to int; promotion should be handled in SDCCast.c
6849
6850 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6851
6852         * device/lib/_strcmp.c: Fixed bug 1326457
6853
6854 2005-10-11 Raphael Neider <rneider AT web.de>
6855
6856         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6857         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6858
6859 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6860
6861         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6862         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6863
6864 2005-10-04 Raphael Neider <rneider AT web.de>
6865
6866         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6867           device/lib/pic16/pics.all: added pic18f1320
6868         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6869
6870 2005-09-30 Raphael Neider <rneider AT web.de>
6871
6872         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6873         * src/pic16/devices.inc: NEW, provides device descriptions
6874         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6875
6876 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6877
6878         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6879           GETHBIT
6880
6881 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6882
6883         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6884           documented Any Order Bit, Higher Order Byte and Higher Order Word
6885         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6886         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6887           (optimizeGetAbit): new, to get any bit, not only the high bit,
6888           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6889           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6890           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6891           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6892             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6893             GETABIT, GETBYTE, GETWORD: decorate them,
6894           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6895           (ast_print): added GETABIT, GETBYTE, GETWORD
6896         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6897         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6898           (geniCodeBinary): new generic binary icode,
6899           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6900         * src/port.h: updated comment for PORT.hasExtBitOp
6901         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6902           (genGetByte): new, to get a single byte,
6903           (genGetWord): new, to get a word from a long,
6904           (gen51Code): added GETABIT, GETBYTE, GETWORD
6905         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6906
6907 2005-09-23 Raphael Neider <rneider AT web.de>
6908
6909         * configure.in, configure: have device/lib/pic configured
6910         * device/lib/Makefile.in: added model-pic14
6911         * device/lib/clean.mk: added pic/ to clean rule
6912         * device/lib/pic: added rudimentary pic14 library providing support
6913           functions for multiplication/division/generic pointer access
6914         * src/SDCCopt.c (convilong): mark support functions as extern
6915           for pic14 port as well
6916         * src/pic/gen.c (genMult): added assertions,
6917           (genpic14Code): emit warning on unhandled iCodes
6918         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6919         * src/pic/pcode.c (pCodeOpCopy),
6920         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6921           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6922           SFR_REGISTER}), made safe for future extensions
6923         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6924           instructions even if preceeded by SKIP instructions (also remove
6925           them); removed unused code
6926         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6927           prevents leaving parts of the structure uninitialized after copying
6928
6929 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6930
6931         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6932           ago by me
6933         * support/regression/tests/addsub.c: added test for the bug
6934
6935 2005-09-21 Raphael Neider <rneider AT web.de>
6936
6937         * device/include/pic16/pic18f1220.h,
6938           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6939         * device/lib/pic16/Makefile.rules: added missing opening paren
6940         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6941           are provided in genutils.c,
6942           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6943           operand/result sizes,
6944           (genCmp): assert on NULL pointers first, then check deref'ed values
6945         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6946           result size
6947
6948 2005-09-18 Raphael Neider <rneider AT web.de>
6949
6950         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6951           as these are now unused,
6952           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
6953         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
6954           local, avoids uninitialized pointer dereference on r->name
6955         * src/pic16/ralloc.c (newReg): fixed indentation
6956
6957 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
6958
6959         * src/SDCCval.c (constVal): fixed bug 730366
6960         * support/Util/SDCCerr.c,
6961         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
6962
6963 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
6964
6965         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
6966
6967 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
6968
6969         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
6970
6971 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
6972
6973         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
6974           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6975         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
6976           (hex2dec): made hex_digit unsigned char, removed ascii dependance
6977         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
6978         * packihx/packihx.c (hexDigit): made c unsigned char
6979         * as/mcs51/lklibr.c (fndsym),
6980         * link/z80/lkgb.c (gb),
6981         * link/z80/lklibr.c (fndsym),
6982         * link/z80/lkrloc.c (relr),
6983         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
6984         * src/SDCC.lex (checkCurrFile, process_pragma),
6985         * src/SDCCglue.c (spacesToUnderscores),
6986         * src/SDCCmain.c (setParseWithComma, processFile),
6987         * src/asm.c (tvsprintf, printCLine),
6988         * src/avr/gen.c (emitcode, aopPut),
6989         * src/ds390/gen.c (emitcode),
6990         * src/hc08/gen.c (emitcode, emitinline),
6991         * src/mcs51/gen.c (emitcode, genInline),
6992         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6993           tokenizeLineNode),
6994         * src/pic/ralloc.c (debugLog),
6995         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
6996           tokenizeLineNode),
6997         * src/pic16/ralloc.c (debugLog),
6998         * src/z80/main.c (_process_pragma):
6999            made all ctype.h function calls safe
7000         * src/SDCCopt.c: include math.h for fabs
7001         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7002           and used them throughout the code to make ctype.h function calls safe
7003         * src/ds390/main.c (asmLineNodeFromLineNode),
7004         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7005         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7006            unsigned char*
7007         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7008           (newpCodeAsmDir): made ctype.h function calls safe
7009         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7010           pic16_emitcode):  made lbp unsigned char*
7011         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7012           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7013         * src/xa51/gen.c (emitcode),
7014         * src/z80/gen.c (_emit2): made lbp unsigned char*
7015         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7016            char*
7017
7018 2005-09-05 Raphael Neider <rneider AT web.de>
7019
7020         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7021           access bank splitpoint
7022
7023 2005-09-05 Raphael Neider <rneider AT web.de>
7024
7025         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7026
7027 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7028
7029         * .version: changed to version 2.5.3
7030         * doc/sdccman.lyx: changed version to 2.5.3,
7031           documented --codeseg and --constseg and pragma codeseg and constseg,
7032           documented bit parameters (reentrant) and bit returning
7033         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7034            currFunc->recvSize, but is this ok for all ports?
7035           (ast2iCode): result of ~ on unsigned char must be cast to int for
7036            bool to work
7037         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7038           function pointers in bit space
7039         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7040           (processFuncArgs): call port.reg_parm() with reentrancy info
7041         * src/port.h,
7042         * src/avr/main.c,
7043         * src/ds390/main.c,
7044         * src/hc08/main.c,
7045         * src/pic/main.c,
7046         * src/pic16/main.c,
7047         * src/xa51/main.c,
7048         * src/z80/main.c: port.reg_parm prototype extended with
7049           "bool reentrant" parameter
7050         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7051           options.stackAuto for allocating bit register parameters
7052         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7053           (genSend): set BitBankUsed if it is,
7054           (selectRegBank): factored out of genCall for use in genPcall,
7055           (genCall): removed redundant dtype assignmen, use selectRegBank,
7056           (genPcall): handle returning in Carry properly, save in F0 if needed,
7057           (genReceive): handle bit register parameters
7058         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7059           (mcs51_assignRegisters): enable bit registers for all reentrant
7060            functions and don't set BitBankUsed unconditionally
7061         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7062         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7063         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7064
7065 2005-08-27 Borut Razem <borut.razem AT siol.net>
7066
7067         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7068         ppc-osx (Darwin) does not support -u option. It seems that it is
7069         supported only on Linux - GNU cp
7070
7071 2005-08-25 Borut Razem <borut.razem AT siol.net>
7072
7073         * sim/ucsim/gui.src/serio.src/Makefile.in,
7074           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7075           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7076           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7077           install and strip, since the strip at /usr/ccs/bin should be used
7078           on solaris
7079
7080 2005-08-24 Borut Razem <borut.razem AT siol.net>
7081
7082         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7083
7084 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7085
7086         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7087         ffffffffu
7088
7089 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7090
7091         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7092         * as/mcs51/lkmain.c (link_main): fixed warning
7093         * device/include/stdbool.h: ds390 has no advanced bit support yet
7094         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7095         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7096         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7097           and updated their macros
7098         * src/SDCCval.c (constVal): updated comment for renamed b_long
7099
7100 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7101
7102         * as/mcs51/asdata.c: changed ctype['['] to BINOP
7103         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7104           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7105           (oprio): set priority for '['
7106         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7107            and adb_24_bit
7108         * as/mcs51/asm.h: added defines R_BIT and S_BIT
7109         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7110         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7111         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7112           added overlayable BIT_BANK area
7113         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7114           (summary2): explain 'T' in legenda
7115         * as/mcs51/lkrloc.c: replaced old K&R style,
7116           (relr): added R_BIT processing,
7117           (errmsg): added "Bit-addressable relocation error",
7118           (adb_bit): added for converting from byte- to bit-addressable space,
7119           (adb_24_bit): added for converting from byte- to bit-addressable space
7120         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7121            used in reentrant functions now even as return value
7122         * device/lib/_gptrput.c (_gptrput): removed obsolete code
7123         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7124           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7125         * src/SDCCglobl.h: added indicator BitBankUsed
7126         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7127            the bit registers b0-b7
7128         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7129           (geniCodeCast): fixed bug 1263853,
7130           (geniCodeLogicAndOr): put result in bool or char,
7131           (geniCodeReceive): added parameter func for accessing the return type,
7132           (geniCodeFunctionBody): pass func to geniCodeReceive
7133         * src/SDCCmain.c: added indicator BitBankUsed
7134         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
7135         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
7136           (checkSClass): don't put automatic bool/bit on stack,
7137           (checkFunction): removed check on function cannot return bit
7138         * src/SDCCsymt.h: added newBoolLink prototype
7139         * src/mcs51/gen.c (rb1regs): added bit registers,
7140           (movc): created for assigning to carry,
7141           (pushReg, popReg): created for pushing registers,
7142           (sameRegs): check both AOP_REG and AOP_CRY types,
7143           (aopOp): handle bit registers,
7144           (aopPut): optimization no self-assign,
7145           (saveRegisters): push reg->base (bits) only once for bit registers,
7146            and use pushReg,
7147           (unsaveRegisters): pop reg->base only once and use popReg,
7148           (assignResultValue): added parameter func and return in carry for bits,
7149           (genIpush): optimization no reload in A if not changed,
7150           (genSend): bit parameters in reentrant functions are passed in bit
7151            registers by first assigning to bits in B, then save registers and
7152            copy B to bits,
7153           (genCall): handle returning in Carry properly, save it in F0 if needed,
7154           (genPcall): updated assignResultValue call, this is not safe yet for bit
7155            returning function !!!
7156           (genFunction): don't generate equ's for bit registers and use pushReg,
7157           (genEndFunction): take care of bit returning functions and use popReg,
7158           (genRet): return bit in Carry,
7159           (genIfx): optimize bit registers and other directly addressable bits,
7160           (genReceive): updated assignResultValue call
7161         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
7162           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
7163            registers when using stack-auto
7164         * src/mcs51/ralloc.c (_G): added allBitregs,
7165           (regs8051): added the bit registers,
7166           (createStackSpil): use macro IS_BIT,
7167           (getRegBit): added to allocate a bit register, else spill,
7168           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
7169           (updateRegUsage): factored out to ease stepping while debugging,
7170           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
7171            also allocate bit registers,
7172           (fillGaps): handle bit registers,
7173           (findAllBitregs): added to create bit vector with all bit registers,
7174           (mcs51_allBitregs): returns this bit vector,
7175           (mcs51_assignRegisters): when using stack-auto use bit registers for
7176            passing parameters and creating local variables
7177         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
7178
7179 2005-08-22 Borut Razem <borut.razem AT siol.net>
7180
7181         * device/lib/Makefile.in: replaced find option -or with -o
7182           to make it run on solaris
7183
7184 2005-08-22 Raphael Neider <rneider AT web.de>
7185
7186         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7187           fixes #1265442 (crash on Solaris)
7188
7189 2005-08-20 Borut Razem <borut.razem AT siol.net>
7190
7191         * configure, configure.in: added tests for libsocket and libnsl libraries,
7192           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7193           from support/regression/Makefile.in
7194         * support/regression/Makefile.in: added
7195         * device/lib/pic16/Makefile.common.in: force make to use bash shell
7196         * sim/ucsim/libtool: regenerated on sparc-solaris
7197         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7198           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7199           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7200           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7201           sparc-solaris, which doesn't use GNU ld linker
7202         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7203         * as/Makefile: find on sparc-solaris does not support -maxdepth option
7204
7205 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7206
7207         * src/mcs51/peeph.def: updated comments
7208
7209 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7210
7211         * device/lib/_gptrget.c,
7212         * device/lib/_gptrput.c: slightly shorter
7213         * doc/sdccman.lyx: incremented version
7214         * src/mcs51/peeph.def: moved peephole comments to the line of first
7215           change to better keep line correlation, reanimated 186.e
7216         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7217
7218 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7219
7220         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7221           David Saxton with quotes around file name.
7222
7223 2005-08-15 Borut Razem <borut.razem AT siol.net>
7224
7225         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7226           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7227           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7228           make tests run on x86_64 platform
7229
7230 2005-08-13 Raphael Neider <rneider AT web.de>
7231
7232         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7233           as it might be executed DURING a build (parallel make is wonderful)
7234
7235 2005-08-13 Raphael Neider <rneider AT web.de>
7236
7237         * device/lib/Makefile.in (port-specific-objects-pic16):
7238           revert to cp $(PORT)/bin/*.* $(PORTDIR)
7239         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7240           dependency
7241         * device/lib/pic16/Makefile.rules: build subdirs before creating
7242           the library, removed builddir rule, create $(builddir) early in
7243           recurse rule, use empty recurse rule for leaf directories
7244         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7245           mkdir errors (race condition), removed duplicate suffix "hex"
7246           from clean rules
7247         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7248         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7249           prevents mkdir -p from aborting on Alpha
7250
7251 2005-08-12 Raphael Neider <rneider AT web.de>
7252
7253         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7254           db-statements in order to allow for arrays of pointers in code
7255           sections to be placed without interspersed 0-padding, fixes
7256           bug #1256215
7257         * (emitStatistics): fixed division by zero for pic18f1220
7258         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7259           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7260         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7261         * (pic16_pCodeConstString): keep track of already emitted string
7262           literals to prevent "duplicate definitions of symbol _str_NR"
7263         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7264           debug message
7265         * device/lib/Makefile.in: ignore failing PIC16 library builds
7266         * device/lib/pic16/Makefile: do not build if gputils are missing
7267         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7268
7269 2005-08-10 Raphael Neider <rneider AT web.de>
7270
7271         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7272           my last commit)
7273
7274 2005-08-10 Raphael Neider <rneider AT web.de>
7275
7276         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7277           Rokas' patch to add the new fixed point type "__fixed16x16"
7278         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7279           functions for __fixed16x16 arithmetics
7280         * device/lib/pic16: reimplemented the build system to support
7281           a separate build directory, better handling of libio (create
7282           the library in a separate subdir for each architecture) and
7283           easier configuration (centralized in Makefile.common)
7284
7285 2005-08-07 Raphael Neider <rneider AT web.de>
7286
7287         * src/pic16/gen.c (genrshTwo): fixed sign extension
7288         * src/pic16/device.c: added pic18f2320, 4220 and 4320
7289         * device/include/pic16/pic18f2220.h: changed some bit definitions,
7290           added T0CONbits
7291         * device/include/pic16/pic18f4220.h: NEW, header for
7292           pic18f4220 and pic18f4320
7293         * device/include/pic16/pic18fregs.h: added new devices,
7294           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7295         * device/include/pic16/signal.h: resolved name clashes
7296           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7297           to also allow testing for interrupt enable bits, added
7298           comments on how to use the macros
7299         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7300         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7301           register definitions for the devices
7302         * device/lib/pic16/pics.all: added new devices
7303         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7304           allocated memory
7305         * device/lib/pic16/libc/stdlib/memfree: do not count
7306           the block header as free memory
7307         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7308           simplified and added missing end-of-blocklist-marker
7309           (reported by Peter Onion, fixes #1252814)
7310         * (_mergeHeapBlock): fixed loop condition
7311         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7312           len==0, restructured code
7313         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7314           up a bit, reduced bitfield accesses, prevent endless loops
7315           in case of heap corruption
7316         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7317           "unreferenced arguments/must return a value" warnings
7318         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7319           replaced BAUDREG with SPBRG
7320         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7321           device/lib/pic16/debug/gstack/gstack.c: replaced
7322           _naked, _asm, _endasm with __naked, __asm, __endasm
7323
7324 2005-08-05 Raphael Neider <rneider AT web.de>
7325
7326         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7327           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7328
7329 2005-08-05 Borut Razem <borut.razem AT siol.net>
7330
7331         * device/lib/Makefile.in: added missing ';'
7332         * configure: removed ^M characters
7333
7334 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7335
7336         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7337           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7338           License
7339
7340 2005-08-04 Borut Razem <borut.razem AT siol.net>
7341
7342         * configure.in: pic16 libraries build 2nd try - enable running
7343           configure in device/lib/pic16
7344         * configure: regenerated from configure.in
7345         * device/lib/Makefile.in: create $(PORT)/bin directory
7346
7347 2005-08-03 Raphael Neider <rneider AT web.de>
7348
7349         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7350           to get/set values via pointers
7351         * (genUnpackBits,genPackBits): changed detection of
7352           ptr->bitfield vs. sym.bitfield, fixed access via generic
7353           pointers, removed dead (wrong) code for multibyte bitfields
7354         * (genNearPointerGet, genGenPointerGet): removed useless code,
7355           fixed bitfield detection, fixes #1250594
7356         * (genNearPointerSet): removed useless code
7357         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7358           and introduced macro pic16_emitpcode that conditionally emits
7359           the origin of the following pCode (useful for debugging SDCC)
7360         * src/pic16/pcode.c: changed (and disabled) some debug outputs
7361         * (createDefmap): fixed handling of LFSR for --optimize-df
7362
7363 2005-08-02 Borut Razem <borut.razem AT siol.net>
7364
7365         * device/lib/Makefile.in: pic16 libraries build enabled since
7366           gputils-0.13.2 are now localy installed at sourceforge's compile farm
7367
7368 2005-08-02 Raphael Neider <rneider AT web.de>
7369
7370         * src/pic16/gen.c (genPackBits): removed deprecated warning
7371         * (genGenPointerSet): fixed bitfield detection
7372
7373 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7374
7375         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7376
7377 2005-07-31 Raphael Neider <rneider AT web.de>
7378
7379         * device/lib/pic16/libdev/pic18f458.c,
7380           device/include/pic16/pic18f458.h: added missing T0CONbits
7381
7382 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7383
7384         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7385
7386 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7387
7388         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7389
7390 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7391
7392         * device/include/mcs51/at89c51ed2.h: added.
7393
7394 2005-07-23 Raphael Neider <rneider AT web.de>
7395
7396         * src/pic/gen.h: added emitpcode macro for debugging
7397         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7398           and replace by macro adding debug information on demand
7399         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7400         * (gencjne): tried to fix; replaced with correct (slower) code
7401         * (gen{Unp,P}ackBits): fixed single bit access
7402         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7403         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7404           previous instruction
7405         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7406           register has to be handled with care (forbidding movement
7407           of assignments/uses, removing assignments completely, ...)
7408         * (pCodeOptime2pCodes): make use of regIsSpecial
7409         * added lots of debugging output (commented out)
7410         * src/pic/rallloc.c (deassignLRs): prevent operand registers
7411           from being reused as result UNLESS it is known to work
7412
7413 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7414
7415         * support/Util/dbuf.h: include <stddef.h> for size_t
7416         * .version: changed to version 2.5.2
7417
7418 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7419
7420         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7421
7422 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7423
7424         * src/hc08/gen.c (genMinus): fixed bug #1241835,
7425           (genModOneByte): removed needless psha/pula
7426
7427 2005-07-22 Raphael Neider <rneider AT web.de>
7428
7429         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7430           have PIC14 handled like PIC16, fixes broken pic14 linker calls
7431         * src/pic/gen.c (resolveIfx): do not "invent" labels
7432         * (genSkipc): changed to positive logic
7433         * (genSkipCond): removed as no longer needed
7434         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7435           backport from PIC16
7436         * (genLeftShift): check operands are in different registers
7437         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7438           INCF does not update CARRY...
7439         * src/pic/main.c: fixed _linkCmd
7440         * src/pic/pcode.c (unlinkpCode): added inactive code
7441         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7442           alive (do not assign result and operand overlapping registers)
7443
7444 2005-07-22 Raphael Neider <rneider AT web.de>
7445
7446         * src/pic/device.c (dump_sfr): replaced register declaration with
7447           call to emitSymbolToFile() to avoid duplicate symbols
7448         * (assignRelocatableRegisters): do not declare external symbols
7449         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7450           right (take size of type, not etype)
7451         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7452         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7453         * (packRegsForAccUse): disabled assignment of WREG as
7454           the result reg to prevent occurence of just fixed #1235003,
7455           fixes #1242954
7456         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7457           symbols (avoids duplicate symbols in .asm file)
7458         * (pic14emitRegularMap): use emitSymbolToFile()
7459         * src/pic/gen.c (aopOp): fixed spillLocation handling
7460         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7461         * (genDataPointerSet): removed unneccessary variables/output
7462
7463 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7464
7465         * as/mcs51/lkarea.c: enlarged codemap for banked memory
7466         * device/lib/mcs51/crtbank.asm: added # to 0x0F
7467
7468 2005-07-21 Raphael Neider <rneider AT web.de>
7469
7470         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7471           architecture cannot handle them efficiently, fixes bug #1235003
7472         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7473           check for empty sets before using them (fixes bug #1232190)
7474
7475 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7476
7477         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7478           (lnksect2): generate warnings for memory overlap
7479         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7480           constseg to set the name of these segments so you can instruct the linker
7481           to place them in banks
7482         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7483         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7484           added code_seg and const_seg to options
7485         * src/SDCCglue.c (emitMaps): use options.const_seg,
7486           (createInterruptVect): put interrupt vectors in segment HOME,
7487           (glue): put HOME before static segment and put the main glue in HOME,
7488           (glue): use options.code_seg
7489         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7490         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7491           these segments so you can instruct the linker to place them in banks
7492           (linkEdit): use code_loc for HOME segment which should be the first
7493           segment in code memory now
7494         * src/SDCCmem.c: fixed more stuff like bug 1238386
7495         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7496           (changePointer): don't change function pointers to code pointers for
7497           banked functions,
7498           (compareType): added exceptional check for banked function pointers
7499         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7500         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7501           after static in code memory
7502         * src/mcs51/gen.c: added aopLiteralLong prototype,
7503           (aopForSym): use getSize for functions,
7504           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7505           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7506           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7507           the segment,
7508           (genPcall): use call for literal function pointers and generate banked
7509           calls over the one trampoline so there's only one place for the user to
7510           modify according to his/hers hardware,
7511           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7512           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7513         * src/mcs51/main.c: added keyword banked,
7514           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7515         * support/Util/SDCCerr.c,
7516         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7517           needed for passing the bank and address to the trampoline
7518         * device/lib/mcs51/crtbank.asm: added for bankswitching
7519         * device/lib/mcs51/Makefile: added crtbank
7520
7521 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7522
7523         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7524           for fields at offset 0 of a struct or union as reported
7525           on 2005-07-07 in the developer mailing list.
7526
7527 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7528
7529         * src/SDCCmem.c: fixed bug 1238386
7530
7531 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7532
7533         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7534           (patch #1144962), added peephole 300, enabled 259.x
7535         * doc/sdccman.lyx: removed screenshot and provided link instead
7536
7537 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7538
7539         * doc/sdccman.lyx: added section about debugging with ddd
7540         * doc/figures/ddd_example.eps: screenshot of debugging session
7541
7542 2005-07-04 Raphael Neider <rneider AT web.de>
7543
7544         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7545           like CODE pointers, fixes #1115683
7546         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7547           call, fixes bugs #1232211, #1228110,
7548           fixed wrong casts to pCodeFlow from pCodeInstructions
7549
7550 2005-07-04 Raphael Neider <rneider AT web.de>
7551
7552         * src/pic/gen.c (popGet): changed assert to allow for
7553           bit operands
7554         * (popGetAddr): changed signature to provide
7555           an additional index, patched all call sites
7556         * (genCmpEq): handle literal-like operands correctly
7557         * (genAddrOf): added sanity checks on __code/__data pointers
7558         * (genAssign): added handling of symbols from __code section
7559         * (gencjne): do not generate code for comparisons whose result
7560           is neither stored nor used, fixes bug #1171114
7561         * (AccLsh, AccRsh): operate on operand instead of WREG
7562         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7563           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7564           by known count
7565         * rewrote complete shift-by-literal logic, commented unused
7566           functions out
7567         * (genConstPointerGet): get multiple bytes (if result size > 1),
7568           fixed handling of non-immediate addresses
7569         * (genPointerGet): handle CODE pointers like CONST pointers
7570         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7571         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7572           operand is to be treated as a literal or not
7573         * (mov2w,genPcall,genCmpEq),
7574           src/pic/genarith.c: use aop_isLitLike() to decide between
7575           literal/register contents
7576         * (addSign): added missing offset
7577         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7578           only emit comment in debug-mode,
7579           use {aop,op}_isLitLike throughout the file
7580         * src/pic/glue.c: fix initializers for pointers (work in progress)
7581         * src/pic/pcode.c (get_op): honor index on _const symbols
7582         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7583         * (dumppBlock): added pCode size estimation
7584         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7585           check for IS_SYMOP before OP_SYMBOL'ing
7586         * fixed indentation, compacted switch-statements
7587         * (allocReg): find free register and allocate it instead of
7588           allocating new registers all the time
7589         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7590           registers as its operands (necessary only for multibyte GETs)
7591
7592 2005-07-01 Raphael Neider <rneider AT web.de>
7593
7594         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7595           debugging .asm-output macros FENTRY + FEXIT
7596         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7597           way... I wonder...
7598         * (emitpComment): NEW, printf to pCode
7599         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7600           offset handling
7601         * (popGetAddr): NEW, variant of popGet to access an immediates
7602           high(er) bytes instead of the n'th byte of memory they reference,
7603           replaced popGet with popGetAddr where neccessary
7604         * (genDataPointerGet): reactivated and fixed implementation
7605         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7606           accesses
7607         * (genDataPointerSet): fixed multibyte assignments
7608         * (genpic14Code): fixed --i-code-in-asm handling
7609         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7610         * (genPlus): fixed index-out-of-bounds error
7611         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7612         * src/pic/ralloc.c: added debugging output macro FENTRY2
7613         * (spillThis): fixed indentation, enbraced for-body for clarity
7614         * (rematStr): commented out as now unused
7615         * (regTypeNum): commented out special spill case (overwrites
7616           arbitrary values)
7617         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7618
7619 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7620
7621         * doc/sdccman.lyx: documented sfr16/sfr32,
7622           added example for using storage class with function pointers
7623         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7624
7625 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7626
7627         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7628         * device/lib/_itoa.c,
7629         * device/lib/_ltoa.c: optimized codesize
7630         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7631           but don't know how to suppress the double warning.
7632         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7633         * support/Util/SDCCerr.c,
7634         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7635
7636 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7637
7638         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7639           fixed old K&R prototypes
7640         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7641         * device/lib/_gptrget.c,
7642         * device/lib/_gptrgetc.c,
7643         * device/lib/_gptrput.c: changed versions for new memory indicator values,
7644           also new versions for small generic pointers and banked generic pointers
7645         * src/port.h: added const_name
7646         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7647         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7648         * src/SDCCcse.c (findPrevIc): check all associative operators
7649         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7650         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7651         * src/SDCCmem.c: updated comments,
7652           set far-space to 0 for pdata, results in optimized code
7653         * src/SDCCmem.h: added macro CONST_NAME
7654         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7655           moving the info into the highest bits, see also gptrget/gptrput
7656         * src/src.dsp: added sdcc.ico to project files
7657         * src/avr/gen.c (genCast): fixed bug 0x%d
7658         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7659         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7660           relation between ptr_type and DCL_TYPE,
7661           (genCast): fixed bug 0x%d
7662         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7663           (CODE)" for const_name
7664         * src/hc08/gen.c (genCast): fixed bug 0x%d
7665         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7666           (hc08_port): added "CONST (CODE)" for const_name
7667         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7668           (aopForRemat, adjustArithmeticResult): disconnected direct relation
7669           between ptr_type and DCL_TYPE,
7670           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7671           operand* and took AOP() inside function so sfr-ness can be checked,
7672           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7673           new prototype,
7674           (genFunction, genEndFunction): optimized stack setup,
7675           (genMinus): optimized for literals with ending zeroes (in bytes),
7676           (genCast): fixed bug 0x%d
7677         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7678           (mcs51_port): added "CONST (CODE)" for const_name
7679         * src/mcs51/peeph.def: made rule 226 more generic
7680         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7681         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7682         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7683         * src/z80/main.c (z80_port): added NULL for const_name,
7684           (gbz80_port): added NULL for const_name
7685         * support/regression/tests/bug663539.c,
7686         * support/regression/tests/sfr16.c: new tests
7687
7688 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7689
7690         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7691
7692 2005-06-24 Raphael Neider <rneider AT web.de>
7693
7694         * device/lib/pic16/libdev/pic18f[68][567]20.c:
7695           corrected typos...
7696         * device/include/pic16/signal.h: added USBIF
7697           and SIG_USB
7698
7699 2005-06-24 Raphael Neider <rneider AT web.de>
7700
7701         * device/lib/pic16/libdev/pic18f2455.c,
7702           device/include/pic16/pic18f2455.h: NEW
7703         * device/include/pic16/pic18fregs.h,
7704           device/lib/pic16/pics.all,
7705           src/pic16/device.c: added 18f2455
7706         * device/lib/pic16/libdev/pic18f[68][567]20.c,
7707           device/include/pic16/{pic18f[68][567].h,usart.h}:
7708           replaced MULTIPLE_USARTS define with more relaible
7709           compatibility sfrs (for USART access)
7710
7711 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7712
7713         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7714           and the output asm file line is printed on two lines.
7715
7716 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7717
7718         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7719           BGT, BLE, BHI, and BLS instructions
7720         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7721           genCmpEq): removed
7722         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7723           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7724           fixes bug #1216342
7725         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7726
7727 2005-06-15 Raphael Neider <rneider AT web.de>
7728
7729         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7730         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7731         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7732           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7733           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7734
7735 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7736
7737         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7738           Marcel Telka in bug #1215704
7739
7740 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7741
7742         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7743           located in shared memory bank.
7744
7745 2005-05-31 Raphael Neider <rneider AT web.de>
7746
7747         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7748           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7749           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7750
7751 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7752
7753         * device/lib/_strncpy.c: fixed the fix
7754
7755 2005-05-26 Raphael Neider <rneider AT web.de>
7756
7757         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7758           initializers with \0, bug #1208187
7759         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7760           intializers with \0, bug #1208187
7761
7762 2005-05-26 Raphael Neider <rneider AT web.de>
7763
7764         * src/pic16/glue.c (pic16_printIvalChar): fixed string
7765           initializers with \0, bug #1208187
7766         * src/pic16/main.c (_process_pragma): added sanity checks
7767           for stack position and size, emit warnings when appropriate
7768
7769 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7770
7771         * device/lib/_strncpy.c: fixed not filling with \0
7772
7773 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7774
7775         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7776           createFunction),
7777         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7778           compound_statement),
7779         * src/SDCCsymt.h,
7780         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7781
7782 2005-05-24 Raphael Neider <rneider AT web.de>
7783
7784         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7785
7786 2005-05-24 Raphael Neider <rneider AT web.de>
7787
7788         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7789           TRISE definitions, closes bug #1162453
7790
7791 2005-05-22 Raphael Neider <rneider AT web.de>
7792
7793         * src/pic16/main.c (_process_pragma): check for missing
7794           arguments to pragmas code and udata
7795         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7796           consistency fixes to match other headers (thanks to Jim Paris)
7797         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7798
7799 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7800
7801         * src/SDCCicode.c (isOperandEqual): fixed missing ;
7802
7803 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7804
7805         * support/regression/tests/bug1198642.c: new test
7806         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7807         * src/SDCCcse.c (findPrevIc): added comment, please have a look
7808         * support/scripts/resource.h,
7809         * support/scripts/resource.rc,
7810         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7811         * support/scripts/sdcc.ico: added 32x32 icon
7812
7813 2005-05-18 Raphael Neider <rneider AT web.de>
7814
7815         * device/lib/pic16/libdev/pic18f*.c,
7816         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7817           keywords to "__sfr" and "__at (X)"
7818         * device/include/pic16/pic18fregs.h: added pic18f4520
7819         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7820           #1203088 (MPLAB compatibility)
7821
7822 2005-05-17 Raphael Neider <rneider AT web.de>
7823
7824         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7825         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7826         * device/lib/pic16/pics.all: added new devices
7827         * src/pic16/device.c: added support for pic18f4520
7828
7829 2005-05-16 Raphael Neider <rneider AT web.de>
7830         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7831         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7832         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7833           convenience function for bit access
7834
7835 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7836
7837         * device/lib/printf_large.c: fixed bug 1193299
7838         * support/regression/tests/bug1057979.c: added test %3.3s
7839
7840 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7841
7842         * device/include/mcs51/8051.h,
7843         * device/include/mcs51/8052.h: made parseable with lint
7844         * device/include/mcs51/lint.h: added include file for (sp)lint
7845         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7846         * doc/cdbfileformat.lyx,
7847         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7848
7849 2005-05-14 Raphael Neider <rneider AT web.de>
7850
7851         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7852         * device/lib/pic16/libc/stdlib/itoa.c (new)
7853         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7854         * device/lib/pic16/libio/Makefile: exclude subdir according to
7855           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7856         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7857         * src/pic16/gen.c (genFunction): prevent annoying warning
7858         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7859           nameclashes on BeOS
7860         * support/cpp2/cppmain.c (cpp_output_string): new
7861         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7862           fixes bug 1116802
7863
7864 2005-05-13 Borut Razem <borut.razem AT siol.net>
7865
7866         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7867
7868 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7869
7870         * .version: changed to version 2.5.1; back to bleeding edge development
7871
7872 2005-05-11 Borut Razem <borut.razem AT siol.net>
7873
7874         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7875           generate PDF version 1.3 documents
7876
7877 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7878
7879         * .version: changed to version 2.5.0
7880
7881 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7882
7883         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7884
7885 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7886
7887         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7888         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7889         well as many smaller updates.
7890         * .version: changed to version 2.5.0-pre1
7891
7892 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7893
7894         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7895
7896 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7897
7898         * support/regression/tests/bug1185672.c: added
7899         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7900           bug 1185672
7901         * src/mcs51/gen.c (genCall): added comments, made it look safer
7902         * src/mcs51/gen.c (genEndFunction): simplified
7903
7904 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7905
7906         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7907
7908 2005-04-14 Borut Razem <borut.razem AT siol.net>
7909
7910         * fixed bug 1045046 - SIGSEGV with really simple code?:
7911           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7912           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7913
7914 2005-04-14 Borut Razem <borut.razem AT siol.net>
7915
7916         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7917           src/pic16/device.h: temporarily disabled experimental #inline pragma
7918           for 2.5.0 release
7919
7920 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7921
7922         * device/include/z80/stdio.h,
7923         * device/include/z80/string.h: removed these highly incomplete files so
7924           SDCC can use the default ones in device/include/
7925
7926 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7927
7928         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7929         gcc warning.
7930         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7931         fix sdcpp warnings.
7932
7933 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7934
7935         * device/include/malloc.h: removed redundant __reentrant prototypes
7936         * device/lib/_mullong.c: added working xstack variant in asm (C version
7937           doesn't pass regression tests)
7938         * device/lib/bpx.c: used __data and made bpx char for mcs51
7939         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7940           (createFunction): fixed bug with xstackPtr
7941         * src/SDCCcse.c: corrected comments
7942         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7943           (killDeadCode, eBBlockFromiCode): removed unused code
7944         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7945           corrected comments
7946         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7947           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7948           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7949           (genModOneByte): fixed warning in MSVC
7950         * src/mcs51/main.c (): added comments
7951         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7952
7953 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7954
7955         * src/SDCCmain.c (linkEdit): oops, changed one line too many
7956
7957 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
7958
7959         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
7960
7961 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
7962
7963         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
7964         characters arrays of larger size than the declared one.
7965
7966 2005-04-10 Borut Razem <borut.razem AT siol.net>
7967
7968         * src/pic/gen.c (genInline),
7969           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
7970           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
7971           (findNextInstruction), (findPrevInstruction),
7972           (findInstructionUsingLabel),
7973           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
7974         * src/pic/pcode.c (findLabel): added missing '\n'
7975         * src/src.dsp: added SDCCdwarf2.c to the project
7976
7977 2005-04-09 Borut Razem <borut.razem AT siol.net>
7978
7979         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
7980
7981 2005-04-08 Raphael Neider <rneider AT web.de>
7982
7983         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
7984           into the chain after a given one) and mergeDefmapSymbols (combine
7985           defmap entries for each symbol per pcode)
7986         * (createDefmap): have defmap entries merged in the end
7987         * (defmapReplaceSymRef): split defmap entries covering two accesses to
7988           a symbol before replacing one access type's symbol, merge symbols in
7989           the end (replacement symbol might already have an entry)
7990         * (assignValnums): keep reference to written WREG intact
7991
7992 2005-04-08 Raphael Neider <rneider AT web.de>
7993
7994         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
7995           Alpha)
7996
7997 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
7998
7999         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8000         bytes
8001
8002 2005-04-07 Raphael Neider <rneider AT web.de>
8003
8004         * device/include/pic16/usart.h: added compatibility defines for
8005           devices with more than one USART
8006         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8007
8008 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8009
8010         * device/lib/Makefile.in: updated for port specific include
8011
8012 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8013
8014         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8015
8016 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8017
8018         * device/include/8051.h,
8019         * device/include/8052.h,
8020         * device/include/at89S8252.h,
8021         * device/include/at89c55.h,
8022         * device/include/at89x051.h,
8023         * device/include/at89x51.h,
8024         * device/include/at89x52.h,
8025         * device/include/mcs51reg.h,
8026         * device/include/reg51.h,
8027         * device/include/reg764.h,
8028         * device/include/regc515c.h,
8029         * device/include/sab80515.h: (re)moved these 12 files
8030         * device/include/mcs51/8051.h,
8031         * device/include/mcs51/8052.h,
8032         * device/include/mcs51/at89S8252.h,
8033         * device/include/mcs51/at89c55.h,
8034         * device/include/mcs51/at89x051.h,
8035         * device/include/mcs51/at89x51.h,
8036         * device/include/mcs51/at89x52.h,
8037         * device/include/mcs51/mcs51reg.h,
8038         * device/include/mcs51/reg51.h,
8039         * device/include/mcs51/reg764.h,
8040         * device/include/mcs51/regc515c.h,
8041         * device/include/mcs51/sab80515.h: and added them here
8042
8043 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8044
8045         * device/include/stdarg.h: changed SDCC specific keywords to double
8046           underlined form.
8047         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8048           mcs51 and ds390.
8049         * device/include/hc08/mc68hc908gp32.h,
8050         * device/include/hc08/mc68hc908jb8.h,
8051         * device/include/hc08/mc68hc908jkjl.h,
8052         * device/include/hc08/mc68hc908qy.h: fixed comments
8053         * device/include/mcs51/README: updated
8054         * device/include/mcs51/c8051f120.h: added PINRSF
8055         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8056         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8057           amidst code. Also inline is not supported.
8058
8059 2005-04-06 Raphael Neider <rneider AT web.de>
8060
8061         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8062         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8063           callers stack/frame pointers
8064
8065 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8066
8067         * device/include/pic16/usart.h: added, missing in previous commit,
8068         * device/include/pic16/adc.h: fixed typo,
8069         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8070         commit,
8071         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8072         <p18fxxx.inc>
8073         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8074         uninitialized because a bug appears with gplink
8075         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8076         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8077         complains for unrecognised option
8078
8079 2005-04-05 Raphael Neider <rneider AT web.de>
8080
8081         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8082           structs as well (using memcpy)
8083         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8084           on ISRs (GOTO has no label)
8085         * src/pic16/device.h: added OF_OPTIMIZE_DF
8086         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8087           new data flow analysis/optimization
8088         * src/pic16/pcode.c: added (prototypes for and implementation of)
8089           dataflow analysis functions, fixed pCodeInstructions' inCond and
8090           outCond values, made RCALL a branch instruction
8091         * (pic16_unlinkpCode): keep C line if possible
8092         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8093           C line moved if possible
8094         * (pic16_getRegFrompCodeOp): NEW, improved version of...
8095         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8096           to use new pic16_getRegFrompCodeOp (works for more SFRs)
8097         * (pic16_BuildFlow): fixed skip instructions with label (did not start
8098           new flow)
8099         * (pic16_getJumptabpCode): NEW, needed in...
8100         * (LinkFlow): fixed handling of jumptables, calls and conditional
8101           branches
8102         * (pic16_InsertCommentAfter): NEW
8103         * (pic16_pCodeReplace): made verbose and flow preserving
8104         * (AnalyzeFlow): added call to data flow analysis
8105         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8106         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8107         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8108
8109 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8110
8111         * src/SDCCast.c (decorateType): fixed bug #1105626
8112
8113 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8114
8115         * device/include/asm/pic16/features.h,
8116         * pic18f*.h headers,
8117         * device/include/pic16/adc.h,
8118         * device/include/pic16/delay.h,
8119         * device/include/pic16/i2c.h,
8120         * device/include/pic16/malloc.h,
8121         * device/include/pic16/stdio.h,
8122         * device/include/pic16/stdlib.h,
8123         * device/include/pic16/string.h,
8124         * device/lib/pic16/libc/stdio/printf_tiny.c,
8125         * device/lib/pic16/libc/stdio/printf_small.c,
8126         * device/lib/pic16/libc/stdio/strmgpsim.c,
8127         * device/lib/pic16/libc/stdio/strmmssp.c,
8128         * device/lib/pic16/libc/stdio/strmusart.c,
8129         * device/lib/pic16/libc/stdio/vfprintf.c,
8130         * device/lib/pic16/libc/stdlib/ltoa.c,
8131         * device/lib/pic16/libc/stdlib/putchar.c,
8132         * device/lib/pic16/libc/stdlib/x_ftoa.c,
8133         * device/lib/pic16/libc/stdlib/memchrpgm.c,
8134         * device/lib/pic16/libc/stdlib/memchrram.c,
8135         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
8136         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
8137         * device/lib/pic16/libio/adc/adcbusy.c,
8138         * device/lib/pic16/libio/adc/adcread.c,
8139         * device/lib/pic16/libio/adc/adcsetch.c,
8140         * device/lib/pic16/libio/usart/ubaud.c,
8141         * device/lib/pic16/libio/usart/ubusy.c,
8142         * device/lib/pic16/libio/usart/udrdy.c,
8143         * device/lib/pic16/libio/usart/uopen.c,
8144         * device/lib/pic16/libio/usart/uputc.c,
8145         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
8146         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
8147         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8148         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8149         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8150         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
8151         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
8152         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
8153         specific keywords to double underlined form,
8154         * device/lib/pic16/libc/Makefile.rules,
8155         * device/lib/pic16/libsdcc/Makefile.rules,
8156         * device/lib/pic16/libm/Makefile,
8157         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
8158         to compile with C standard set in Makefile.common
8159         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
8160         rand.c and crc.c in compilation process,
8161         * device/lib/pic16/libsdcc/int/divuint.c,
8162         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
8163         `c' from signed to unsigned,
8164         * device/lib/pic16/startup/crt0.c,
8165         * device/lib/pic16/startup/crt0i.c,
8166         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
8167         keywords to double underlined form, bug fixes in _do_cinit function
8168         which prevented the correct initialization of the .idata segment,
8169         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
8170         core to enter a infinite loop
8171         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
8172
8173 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8174
8175         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
8176
8177 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8178
8179         * device/include/Makefile.in: add support for hc08 subdirectory
8180         * device/include/hc08/: new subdirectory
8181         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
8182         Lucas Loizaga, thanks!
8183         * device/include/hc08/mc68hc908qy.h,
8184         * device/include/hc08/mc68hc908gp32.h,
8185         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
8186         their own directory. Changed internal macro names to use the compiler
8187         reserved namespace. Changed SDCC specific keywords to double
8188         underlined form.
8189         * device/include/math.h,
8190         * device/include/malloc.h,
8191         * device/include/stdarg.h,
8192         * device/include/stdbool.h
8193         * device/include/string.h,
8194         * device/include/tinibios.h,
8195         * device/include/ds400rom.h,
8196         * device/include/8051.h,
8197         * device/include/8052.h,
8198         * device/include/80c51xa.h,
8199         * device/include/at89c55.h,
8200         * device/include/at89S8252.h,
8201         * device/include/at89x51.h,
8202         * device/include/at89x52.h,
8203         * device/include/ds80c390.h,
8204         * device/include/reg764.h,
8205         * device/include/regc515c.h,
8206         * device/include/sab80515.h,
8207         * device/include/mcs51/c8051f000.h,
8208         * device/include/mcs51/c8051f018.h,
8209         * device/include/mcs51/c8051f020.h,
8210         * device/include/mcs51/c8051f040.h,
8211         * device/include/mcs51/c8051f060.h,
8212         * device/include/mcs51/c8051f120.h,
8213         * device/include/mcs51/c8051f300.h,
8214         * device/include/mcs51/c8051f310.h,
8215         * device/include/mcs51/c8051f320.h,
8216         * device/include/mcs51/c8051f330.h,
8217         * device/include/mcs51/c8051f350.h,
8218         * device/include/z180.h: Changed SDCC specific keywords to double
8219         underlined form.
8220
8221 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8222
8223         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8224         18F4455,
8225         * (pic16_assignConfigWordValue): disable testing of configuration
8226         register value with config mask,
8227         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8228         function with port->fun_prefix,
8229         * (genFunction): when generating a naked interrupt function never
8230         create an absolute segment placed in interrupt vector address, place
8231         the actual interrupt function at IVA instead, when an interrupt
8232         function is generated with unspecified interrupt then do not create
8233         the absolute section,
8234         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8235         code for generating a call to generic pointer get/put function with
8236         a call to function pic16_callGenericPointer(),
8237         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8238         the call to the generic pointer get/put functions with prefixing the
8239         function name with port->fun_prefix,
8240         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8241         * src/pic16/main.c (_process_pragma): prefix function with
8242         port->fun_prefix,
8243         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8244         calling assembler, old 18Fxxxx macro is deprecated,
8245         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8246         PC_ASMDIR in while condition,
8247         * (findInstruction): add PC_ASMDIR in while condition,
8248         * (buildCallTree): prefix main with port->fun_prefix,
8249         * (pic16_pCode2str): fixed bug that didn't emit the memory access
8250         identifier for variable with banked access in instructions BTFSS,
8251         BTFSC, BCF, BSF, BTG
8252         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8253         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8254         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8255         perform optimization when enviroment variable NO_REG_OPT is set,
8256         * (insideLRBlock): NEW, return 1 if register is inside an
8257         INF_LOCALREGS block,
8258         * (RemoveRegFromLRBlock): remove a register that is completely
8259         eliminated by register optimization, but it is still left in local
8260         register store/restore in/from stack block,
8261         * (Remove2pcodes): after removing register, check to see if it
8262         should be removed from local register store/restore in/from stack
8263         block,
8264         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8265         DUMMY_READ_VOLATILE,
8266
8267         * device/include/pic16/adc.h: minor prototype modifications and
8268         update,
8269         * device/include/pic16/malloc.h: added GPL notice various
8270         modifications,
8271         * device/include/pic16/stdint.h: NEW, standard header for ints
8272         * device/include/pic16/delay.h: NEW, header for delay functions,
8273         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8274         delay1mtcy,
8275         * device/include/pic16/signal.h: NEW, header providing helper macros
8276         for implementing signal handlers,
8277         * device/include/pic16/stdio.h: added prototypes for functions,
8278         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8279         prototypes for stdin and stdout, added macro PUTCHAR to
8280         automatically implement putchar function prototype,
8281         * device/include/pic16/usart.h: modified and updated USART library,
8282         * device/lib/pic16/libio/adc/,
8283         * device/lib/pic16/libio/i2c: some modifications to improve library
8284         performance,
8285         * device/lib/pic16/libc/stdio/: modifications for the new printf*
8286         family of functions,
8287         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8288         family of functions and other sources,
8289         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8290         of the PIC18Fxx[28] devices,
8291         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8292         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8293         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8294         _do_cinit function, because the previous failed when local variables
8295         where not placed in the same memory bank,
8296         * device/lib/pic16/libsdcc/char/: various modifications to improve
8297         library performance,
8298         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8299         information on the new functions of the c library and more...
8300
8301 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8302
8303         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8304
8305 2005-03-26 Raphael Neider <rneider AT web.de>
8306
8307         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8308           if condition == CARRY)
8309         * (genCmp): adapted to new genSkipc semantics
8310         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8311           on rIfx (genCmp was broken)
8312
8313 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8314
8315         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8316         * src/z80/main.c (_keywords[]),
8317         * src/SDCCglobal.h (struct options),
8318         * src/SDCC.y,
8319         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8320         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8321         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8322         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8323         always available in leading double underscore form. The C99 support is
8324         mostly missing, but it's a start.
8325         * support/regression/tests/bug-227710.c: fixed nonconforming use of
8326         reserved identifier "__data".
8327
8328 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8329
8330         * src/mcs51/peeph.def: fixed bug 1170013
8331
8332 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8333
8334         * device/include/mcs51reg.h: fixed bug 842007
8335
8336 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8337
8338         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8339         last time.
8340
8341 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8342
8343         * src/port.h (struct PORT),
8344         * src/avr/ralloc.c (avr_assignRegisters),
8345         * src/avr/main.c,
8346         * src/ds390/ralloc.c (ds390_assignRegisters),
8347         * src/ds390/main.c,
8348         * src/hc08/ralloc.c (hc08_assignRegisters),
8349         * src/hc08/main.c,
8350         * src/mcs51/ralloc.c (mcs51_assignRegisters),
8351         * src/mcs51/main.c,
8352         * src/pic/ralloc.c (pic14_assignRegisters),
8353         * src/pic/main.c,
8354         * src/pic16/ralloc.c (pic16_assignRegisters),
8355         * src/pic16/main.c,
8356         * src/xa51/ralloc.c (xa51_assignRegisters),
8357         * src/xa51/main.c,
8358         * src/z80/ralloc.c (z80_assignRegisters),
8359         * src/z80/ralloc.h,
8360         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8361         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8362         * src/SDCCcse.h,
8363         * src/SDCCdflow.c (computeDataFlow),
8364         * src/SDCCdflow.h,
8365         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8366         * src/SDCCloop.h,
8367         * src/SDCCcflow.c (*),
8368         * src/SDCCcflow.h,
8369         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8370         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8371         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8372         immedDom() returning wrong block; probably fixes bug #1160833)
8373
8374 2005-03-20 Borut Razem <borut.razem AT siol.net>
8375
8376         * support/scripts/inc2h.pl: WIN32 port
8377
8378 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8379
8380         * device/lib/makefile.in: added abs.c and labs.c
8381
8382 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8383
8384         * device/include/stdint.h: added
8385         * device/lib/abs.c: added
8386         * device/lib/labs.c: added
8387         * device/include/stdlib.h: added abs() and labs() prototypes
8388         * device/lib/libsdcc.lib: added abs and labs
8389         * device/include/float.h,
8390         * device/lib/_fsmul.c,
8391         * device/lib/printf_fast.c,
8392         * device/lib/printf_tiny.c: updated comments
8393
8394 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8395
8396         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8397         bug #1164313
8398
8399 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8400
8401         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8402         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8403
8404 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8405
8406         * device/lib/printf_large.c: removed inline assembly for portability and
8407           readability. Use printf_fast if speed or size are more important.
8408         * src/pic16/gen.c: removed conditions around use of DEBUGpc
8409         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8410
8411 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8412
8413         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8414         prevent compiler warning
8415
8416 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8417
8418         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8419         moved to level 0 and declared as static. Also they are explicit
8420         placed in access bank. This was necessery because some times they
8421         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8422         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8423         optimizations. Currently only compare to unsigned char is implemented,
8424         * src/pic16/gen.c: added fReturnIdx array,
8425         * (struct resolvedIfx) is moved to gen.h and made public,
8426         * (struct _G): added sregsAlloc and sregsAllocSet fields,
8427         * (aopForSym): added an optimization to directly store in stack of
8428         the operand of a SEND iCode,
8429         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8430         but as registers instead (AOP_REG) using the fReturnIdx array,
8431         * (pic16_freeAsmop): remove the freed register from the
8432         _G.sregsAlloc field,
8433         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8434         a compare of 'WREG',
8435         * (pic16_popGetTempRegCond): changed function prototype, now
8436         function takes also a bitVector argument v which holds the current
8437         set of registers that are allocated for stack access by aopForSym,
8438         registers allocated in aopForSym for accessing stack symbols are not
8439         any more part of the functions usedRegs field,
8440         * (genCall): some times aopOp is called for a stack variable to be
8441         send, aopForSym might perform the push, if this is true make sure
8442         that genCall doesn't push the variable twice by testing _G.resDirect,
8443         * (genFunction): changed testing for unspecified interrupt number
8444         from 256 to INTNO_UNSPEC,
8445         * modified selection scheme of frame pointer generation. Previously
8446         if function did use local registers a frame pointer was generated,
8447         now a frame pointer is generated only if function has arguments
8448         (that need PLUSW2 register access), or has stack arguments, or the
8449         compiler is not instructed to omit the frame pointer,
8450         * (genEndFunction): before restoring local registers that were saved
8451         in the function preamble, also restore the registers that *might*
8452         have been allocated for stack access,
8453         * (genRet): removed some old comments,
8454         * (genCmp, the active (RN's) version): added a call to the
8455         pic16_genCmp_special function to perform the compare with a more
8456         robust and optimized way,
8457         * (genInline): a feature has been added in inline code generation,
8458         which allows a wildcard variable substitution when writing inline
8459         assembly. Code is incomplete and experimental therefore undocumented,
8460         * (genCast): changed order of aopOp for result and right to allow
8461         aopForSym to directly load the result if possible,
8462         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8463         perform an optimized compare on some selected special occasions,
8464         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8465         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8466         generate an IVT any more,
8467         * src/pic16/main.c (pic16_optionsTable): added command line option
8468         --optimize-cmp,
8469         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8470         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8471         macros,
8472         * src/pic16/NOTES: Raphael Neider added in list of active developers
8473         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8474         jumptable_end to prevent bug #,
8475         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8476         inCond and outCond fields,
8477         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8478         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8479         turn off register spilling,
8480         * (packRegsForOneUse): synced with other ports' versions although it
8481         is not used currently,
8482         * (pic16_packRegisters): added an optimization while reading
8483         structure bitfields, some registers may be saved (malloc code is
8484         decreased by 80 bytes)
8485
8486 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8487
8488         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8489         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8490         this can be optimized more?
8491
8492 2005-03-10 Raphael Neider <rneider AT web.de>
8493
8494         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8495           genNearPointerGet): (hopefully) fixed access to bitfields via
8496           pointers (p->bitN = x; and x = p->bitN; failed)
8497
8498 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8499
8500         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8501
8502 2005-03-09 Raphael Neider <rneider AT web.de>
8503
8504         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8505
8506 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8507
8508         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8509         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8510           (regTypeNum): set REG_BIT type if necessary
8511         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8512         * support/regression/tests/critical.c: check bug 1144613
8513
8514 2005-03-02 Raphael Neider <rneider AT web.de>
8515
8516         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8517
8518 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8519
8520         * src/avr/ralloc.c (serialRegAssign),
8521         * src/ds390/ralloc.c (serialRegAssign),
8522         * src/hc08/ralloc.c (serialRegAssign),
8523         * src/mcs51/ralloc.c (serialRegAssign),
8524         * src/pic/ralloc.c (serialRegAssign),
8525         * src/pic16/ralloc.c (serialRegAssign),
8526         * src/xa51/ralloc.c (serialRegAssign),
8527         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8528
8529 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8530
8531         * src/SDCCast.c (decorateType): fixed bug 1124787
8532
8533 2005-02-20 Hubert Sack <sack AT digiplan.de>
8534         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8535
8536         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8537         patch #1121755
8538
8539 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8540
8541         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8542         to keep the correct label reference count when adding/removing references
8543         to labels. A peephole file using this is appended to patch #1144962.
8544
8545 2005-02-14 Raphael Neider <rneider AT web.de>
8546
8547         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8548         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8549         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8550           retrievals of result operand's value on assignment
8551
8552 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8553
8554         * device/include/pic16/string.h: modified prototype for memccpy()
8555         to memccpy(void *, void *, char, size_t)
8556         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8557         check whether to omit frame pointer or not,
8558         * (genInline): convert all occurences of "\n" to LF in inline
8559         assembler blocks, this helps formatting the inline text,
8560         * (pic16_loadFSR0): modified prototype,
8561         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8562         removed some 8051 legacy code,
8563         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8564         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8565         before allocating temporary registers in functions,
8566
8567 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8568
8569         * support/regression/tests/bitvars.c: corrected the "fix"
8570
8571 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8572
8573         * support/regression/tests/bitvars.c,
8574         * support/regression/tests/bitwise.c,
8575         * support/regression/tests/rotate.c: "fixed" problems on Alpha
8576
8577 2005-02-10 Raphael Neider <rneider AT web.de>
8578
8579         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8580           different size for Alpha
8581         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8582
8583 2005-02-09 Raphael Neider <rneider AT web.de>
8584
8585         * src/SDCC.lex(doPragma) : save and restore warning options as well
8586           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8587         * have #pragma less_pedantic set the errorlevel to WARNING
8588           (fixes #1117001)
8589         * (cloneOptimize) : fixed wrong malloc's size
8590         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8591           facilitate correct handling of #pragma (save|restore)
8592
8593 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8594
8595         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8596
8597 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8598
8599         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8600
8601 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8602
8603         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8604
8605 2005-02-02 Raphael Neider <rneider AT web.de>
8606
8607         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8608         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8609         * (pic16_storeForReturn): fixed to allow returning function pointers
8610         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8611         * device/include/pic16/{stddef.h,stdbool.h}: added
8612
8613 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8614
8615         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8616
8617 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8618
8619         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8620         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8621          appeared to be required
8622
8623 2005-01-31 Borut Razem <borut.razem AT siol.net>
8624
8625         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8626           include/mcs51 and include/z80 directories to the package
8627
8628 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8629
8630         * src/hc08/gen.c (genFunction): fixed bug #1112752
8631
8632 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8633
8634         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8635
8636 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8637
8638         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8639
8640 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8641
8642         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8643
8644 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8645
8646         * device/include/c8051fxxx.h: removed these 6 files
8647         * device/include/mcs51/c8051fxxx.h: added these 11 new files
8648
8649 2005-01-26 Raphael Neider <rneider AT web.de>
8650
8651         * src/pic16/gen.c (genAssign): fixed assignment from longs
8652           in codespace (were cut to three bytes)
8653         * (genDummyRead): implemented (except for CODESPACE...),
8654           fixed bug #1108575
8655         * src/pic16/glue.c (emitStatistics): beautified
8656         * device/lib/pic16/libm/Makefile: added include path
8657
8658 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8659
8660         * src/z80/gen.c (aopPut): fixed bug #1103902
8661
8662 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8663
8664         * device/lib/expf.c: fixed bug #1095792
8665
8666 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8667
8668         * device/lib/pic16/libm: added Math library sources
8669
8670 2005-01-24 Raphael Neider <rneider AT web.de>
8671
8672         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8673           to enable upcast to pCodeOpReg2 (there is no type tag to
8674           differenciate the two and pic16_popGet2p cast into PCOR2)
8675         * src/pic16/main.c (_process_pragma): fixed another malloc bug
8676           (sizeof(sectNames) changed to sizeof(sectName))
8677           Both patches fix segfaults under MinGW.
8678
8679 2005-01-23 Raphael Neider <rneider AT web.de>
8680
8681         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8682           Safe_[mc]?alloc()'ed variables
8683         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8684           of (byte sized) temporaries (assign them to WREG for now)
8685         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8686           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8687           this might fix SIGSEGVs on MinGW...
8688         * src/SDCCopt.c (killDeadCode): restored original behaviour
8689           (volatile operands might get thrown away though)
8690
8691 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8692
8693         * src/pic16/gen.c: fixed bug #1106975,
8694         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8695         pointer update, INTCON is saved, global interrupts are disabled and
8696         restored after updateing TOS.
8697         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8698         * added function attribute 'shadowregs' to take advantage of shadow
8699         registers,
8700         * added function attribute 'wparam' as an alternative to the wparam
8701         pragma,
8702         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8703         user declares a non-ISR function as 'shadowregs',
8704         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8705
8706 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8707
8708         * .version: bumped version number to 2.4.8
8709         * device/lib/pic16/pics.all: list of PIC18F devices supported by
8710         pic16 port,
8711         * device/lib/pic16/libio/i2c/: I2C module support library,
8712         * device/include/pic16/i2c.h: I2C support library header,
8713         * device/lib/pic16/libc/stdio/: standard IO support sources,
8714         * (printf_small.c): printf_small() source, supports float print,
8715         * (printf_tiny.c): printf_tiny() source, does not support floats,
8716         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8717         enable global optimizations for entire library source, other
8718         Makefiles in the source tree are also modified to reflect this,
8719         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8720         function,
8721         * doc/sdccman.lyx: updated to reflect new changes,
8722         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8723         sym->onStack if-case,
8724         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8725         sbit, idata, _idata, xdata, _xdata,
8726         * added pragma library, to link an external library, (see doc),
8727         * removed command line options, --pomit-config-words, --pomit-ivt,
8728         --pleave-reset-vector,
8729         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8730         when calling assembler to reflect memory model used, also define
8731         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8732         reflect stack model used,
8733         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8734         on stack return NULL,
8735
8736 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8737
8738         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8739           of the operands is volatile. Fixes #1020220
8740
8741 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8742
8743         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8744         * (OptimizeRegUsage): make sure that there is really no other flow where
8745           the first pCode is used
8746
8747 2005-01-22 Raphael Neider <rneider AT web.de>
8748
8749         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8750           to fix #1106967 (pCode->seq are not set up correctly)
8751
8752 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8753
8754         * src/SDCCglue.c (glue): make sure code area is declared before the
8755         static initialization area.
8756
8757 2005-01-21 Raphael Neider <rneider AT web.de>
8758
8759         * device/lib/Makefile.in: fixed test for pic16 install dir
8760         * device/lib/pic16/*/Makefile*: modified compile flags to enable
8761           optimizations
8762         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8763           added --optimize-goto compiler switch and pragma wparam documentation
8764         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8765         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8766           and PRODH closing bug #1071770 (peephole optimizer)
8767
8768 2005-01-19 Raphael Neider <rneider AT web.de>
8769
8770         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8771           cmdLine buffers (used when calling sdcpp...) are large enough
8772           (MAX_PATH=256 truncates arguments leading to system halts when
8773           used in MinGW...)
8774         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8775         * (genUminus): rewritten to for efficiency
8776         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8777           used uninitialized in some cases)
8778         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8779           copy the third byte from the int -- now assumes 0x80 (data memory)
8780         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8781           operands (genAddLit expects the iCode's operands to swapped as
8782           well), fixed leftover bytes (crashed for short left operands)
8783         * (pic16_genMinusDec): performance improvements, removed false
8784           PIC14 emitSKPNCs
8785         * (pic16_genMinus): fixed to cope with differently sized operands
8786         * src/pic16/glue.c (pic16_glue): added new banksel optimization
8787           for --obanksel > 1
8788         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8789         * src/pic16/graph.[ch]: implementation of directed graphs, used by
8790           new banksel optimization
8791         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8792           analysis for temporary registers (segfaults...)
8793         * src/pic16/peeph.def: added rule
8794
8795 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8796
8797         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8798         which converts a float number to its ASCII representation
8799         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8800         functions to convert the fractional and integer part of a float to ASCII,
8801         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8802         realloc.c): added _MALLOC_SPEC to explicit place variables in data
8803         ram
8804         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8805         _STATMEM macros,
8806         * device/include/pic16/adc.h: added GPL info,
8807         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8808         a pCodeOp as tested operand,
8809         * (genNearPointerGet): optimized bit testing, does not use
8810         intermediate register for bit value, test directly instead with
8811         BTFSS, BTFSC, works only for single bits,
8812         * (genpic16Code): dump the name of the iCode in the asm,
8813         * src/pic16/ralloc.c (decodeOp): removed static declaration and
8814         renamed to pic16_decodeOp,
8815         * (serialRegAssign): do not allocate a temporary register for iCode
8816         sequences that test a single bit for 1/0
8817
8818 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8819
8820         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8821         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8822         access stack and frame pointers. They are initially assigned to
8823         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8824         accessing SFRs. Updated all occurences of modification of stack or
8825         frame pointer in gen.c and pcode.c,
8826         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8827         assigning of a literal value to pointers,
8828         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8829         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8830         selected
8831
8832 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8833
8834         * doc/sdccman.lyx: update documentation about stack pragma, added
8835         some info for stack memory models
8836
8837 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8838
8839         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8840
8841 2005-01-08 Raphael Neider <rneider AT web.de>
8842
8843         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8844           udata sections to fix bug #1097823
8845
8846 2005-01-05 Raphael Neider <rneider AT web.de>
8847
8848         * src/pic16/gen.c (genGenericShift): added handling of differently
8849           sized left operand and result
8850
8851 2005-01-04 Raphael Neider <rneider AT web.de>
8852
8853         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8854         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8855           to hold the condition bit)
8856         * added new version of genCmp (old code available via #define)
8857         * added new version of genShiftLeft/genShiftRight in a generic
8858           way, now supports shifting by negative values
8859         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8860           shiftCount (expected by genGenericShift)
8861         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8862         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8863           dump
8864         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8865           is an invalid literal too...)
8866
8867 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8868
8869         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8870         from Raphael Neider,
8871         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8872         for 8-bit literals. This fixes some literal operands which are sign
8873         extended to 16-bits ints when instruction needs only 8-bits.
8874
8875 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8876
8877         * device/lib/logf.c: added mcs51 assembly version
8878         * device/lib/expf.c: added mcs51 assembly version
8879         * device/lib/_logexpf.c: new shared asm code for expf and logf
8880         * device/include/math.h: add defines for assembly math library
8881         * device/lib/Makefile.in: build new _logexpf.c
8882         * device/lib/libfloat.lib: use new _logexpf.c
8883
8884 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8885
8886         * src/pic/device.c
8887         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8888           device types which have less than 0x7f registers.
8889
8890 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8891
8892         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8893
8894 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8895
8896         * device/lib/printf_fast.c: only build on supported arch.
8897         * device/lib/printf_tiny.c: only build on supported arch.
8898         * device/lib/printf_fast_f.c: only build if asm float lib
8899         * device/lib/_fsget1arg.c: only build if asm float lib
8900         * device/lib/_fsget2args.c: only build if asm float lib
8901         * device/lib/_fsnormalize.c: only build if asm float lib
8902         * device/lib/_fsreturnval.c: only build if asm float lib
8903         * device/lib/_fsrshift.c: only build if asm float lib
8904         * device/lib/_fsswapargs.c: only build if asm float lib
8905         * device/include/stdio.h: don't provide print_fast,
8906           print_fast_f, print_tiny prototypes if --xstack used
8907
8908 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8909
8910         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8911         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8912           to the SOURCES
8913
8914 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8915
8916         * device/lib/printf_fast_f.c: same as printf_fast, but
8917           with floating point enabled
8918         * device/lib/printf_fast.c: minor tweaks
8919         * device/include/stdio.h: add printf_fast_f
8920
8921 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8922
8923         * src/SDCCmain.c: make --float-reent default for mcs51
8924         * device/lib/_fsadd.c: added mcs51 assembly version
8925         * device/lib/_fssub.c: added mcs51 assembly version
8926         * device/lib/_fsmul.c: added mcs51 assembly version
8927         * device/lib/_fsdiv.c: added mcs51 assembly version
8928         * device/lib/_fseq.c: added mcs51 assembly version
8929         * device/lib/_fsneq.c: added mcs51 assembly version
8930         * device/lib/_fsgt.c: added mcs51 assembly version
8931         * device/lib/_fslt.c: added mcs51 assembly version
8932         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8933         * device/lib/Makefile.in: add _fscmp to build
8934         * device/lib/libfloat.lib: add _fscmp to build
8935
8936 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8937
8938         * device/lib/_fs2slong.c: added mcs51 assembly version
8939         * device/lib/_fs2sint.c: added mcs51 assembly version
8940         * device/lib/_fs2schar.c: added mcs51 assembly version
8941         * device/lib/_fs2ulong.c: added mcs51 assembly version
8942         * device/lib/_fs2uint.c: added mcs51 assembly version
8943         * device/lib/_fs2uchar.c: added mcs51 assembly version
8944         * device/lib/_slong2fs.c: added mcs51 assembly version
8945         * device/lib/_sint2fs.c: added mcs51 assembly version
8946         * device/lib/_schar2fs.c: added mcs51 assembly version
8947         * device/lib/_ulong2fs.c: added mcs51 assembly version
8948         * device/lib/_uint2fs.c: added mcs51 assembly version
8949         * device/lib/_uchar2fs.c: added mcs51 assembly version
8950         * device/include/float.h: added #define to select asm vs c
8951
8952 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
8953
8954         * device/lib/printf_fast.c: improvements to float output
8955         * device/include/float.h: add defines for assembly float library
8956         * device/lib/_fsget1arg.c: receive 1 float arg
8957         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
8958         * device/lib/_fsnormalize.c: normalize a float
8959         * device/lib/_fsreturnval.c: return float, various helper routines
8960         * device/lib/_fsrshift.c: right shift a float's mantissa
8961         * device/lib/_fsswapargs.c: swap 2 floats
8962         * device/lib/Makefile.in: build these 6 new files for mcs51
8963         * device/lib/libfloat.lib: add these 6 files to the library
8964
8965 2004-12-26 Borut Razem <borut.razem AT siol.net>
8966
8967         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
8968           built by gcc 3.4.2
8969
8970 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
8971
8972         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
8973           and fully reentrant and register bank neutral.
8974         * device/lib/printf_fast.c: added float (not enabled by default),
8975           added compact/slower integer (also not enabled by default),
8976           improved size/speed of fast integer code, other minor changes
8977         * device/include/stdio.h, device/lib/Makefile.in,
8978           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
8979
8980 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
8981
8982         * src/pic16/pcode.c: declaring variables other than at the start of a
8983           block is not supported in C by VC6.
8984
8985 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
8986
8987         * applied a previous patch from Raphael Neider that wasn't included
8988         in the previous commits, which fixes infinite loops within jumptable
8989         improvements,
8990         * made some fixes that previous patches introduced
8991
8992 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
8993
8994         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
8995         that fixes an issue with AOP_PCODE asmop's offset,
8996         * (pic16_popCopyReg): update instance field too,
8997         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
8998         function of pic port,
8999         * (genCmp, genAnd, genAssign),
9000         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9001
9002 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9003
9004         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9005         variables initial values to idata section,
9006         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9007         variables in some functions. This utilizes parmBytes field of iCode
9008         structure to hold the offset of the variable in stack. (might be
9009         able to use the stack field too?)
9010         * applied patch from Raphael Neider # ### , # ###
9011         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9012         variable initial values in idata section,
9013         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9014         for static variables with initial value
9015         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9016         applied fix in while loop from Raphael Neider.
9017
9018 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9019
9020         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9021         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9022         * src/ds390/ralloc.c (serialRegAssign): spill bits
9023         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9024         * support/Util/SDCCerr.c,
9025         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9026         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9027         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9028
9029 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9030
9031         * device/include/sdcc-lib.h: inserted LGPL, added includes
9032           asm/ds390/features.h and asm/mcs51/features.h
9033         * device/include/asm/default/features.h,
9034         * device/include/asm/gbz80/features.h,
9035         * device/include/asm/z80/features.h: added empty _AUTOMEM
9036           and _STATMEM
9037         * device/include/asm/ds390/features.h,
9038         * device/include/asm/mcs51/features.h: added files with defines for
9039           _AUTOMEM and _STATMEM indicating automatic and static storage class
9040         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9041         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9042         * src/SDCCicode.c (geniCodeCast),
9043         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9044         * src/SDCCloop.c (loopInduction): removed unused variable lr
9045         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9046           to convertToFcall to include char modulo (RFE 1065037), added check
9047           if left operand is unsigned and use abs of literal value
9048         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9049           as it doesn't work after conversion from peephole.def to peephole.rul
9050         * src/mcs51/gen.c (toBoolean): added check for size,
9051           (genModOneByte): optimized code for signed char modulo a literal
9052           power of 2 (thanks to Hubert Sack),
9053           (genRRC): removed unnecessary "clr c",
9054           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9055         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9056           jump optimization,
9057           swapped rules 256.c and 256.d,
9058           extended 256.d by using new multiple checks (thanks Erik),
9059           added rules 256.e and 256.f,
9060           updated rule 261.a and 261.b to new generated code
9061         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9062
9063 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9064
9065         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9066           induction related bugs, including first part of bug #1074377
9067
9068 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9069
9070         * applied patch from bug-report #1076292,
9071         * applied patches for genAnd and Goto-optimizations for Raphael
9072         Neider,
9073         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9074         dump a less iCode information,
9075         * src/pic16/device.h (pic16_options_t): added field debgen,
9076         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9077         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9078         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9079         puclic,
9080         * (various functions): added macros FENTRY and FENTRY2 to functions,
9081         to emit function prologue,
9082         * (various functions): fixed indentation,
9083         * (genNearPointerGet): fixed loading of FSR0,
9084         * (genPackBits): applied patch from Raphael Neider to fix updating
9085         of FSR0 and touching only the modified bits,
9086         * src/pic16/genarith.c (various functions): added macros FENTRY to
9087         emit function prologue in comments,
9088         * src/pic16/pcode.h: added functions debugf2, debugf3,
9089         * src/pic16/ralloc.c: partial fix for packForPush caused
9090         segmentation fault,
9091
9092 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9093
9094         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9095           <stsp AT users.sourceforge.net> with reversed byte order
9096         * support/regression/tests/rotate.c: added (ds390 skips some tests)
9097
9098 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9099
9100         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9101           bug #1074377
9102         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9103         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9104
9105 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9106
9107         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9108
9109 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9110
9111         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9112           conditions,
9113           (setFromConditionArgs): friendly operand parser for peephole rules,
9114           (operandBaseName, operandsNotRelated): new peephole condition
9115           "operandsNotRelated" -- similar to "operandsNotSame", but takes
9116           architecture specific register naming into account, handles n-way
9117           comparisons, and supports quoted literals
9118         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9119
9120 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9121
9122         * src/mcs51/peeph.def: fixed bug #1076940
9123
9124 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9125
9126         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9127
9128 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9129
9130         Adding support for replacing ljmps with sjmps in jumptables
9131         generated for switch statements. For now you need to set the
9132         environment variable SDCC_SJMP_JUMPTABLE to enable this.
9133         Now 4 algorithms for mcs51 jumptable generation are used:
9134         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
9135         addresses loaded pc-relative for up to 112 cases and stack-pushing
9136         target addresses loaded with offset from dptr for up to 256 cases.
9137
9138         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
9139         * src/mcs51/main.c: adapted constants for switch table generation
9140         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
9141
9142 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
9143
9144         * device/lib/printf_large.c (_print_format): fixed bug 1073386
9145         * support/regression/tests/bug1057979.c: added test for bug 1073386
9146
9147 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9148
9149         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9150         compilers
9151
9152 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9153
9154         * src/pic16/device.h,
9155         * src/pic16/genarith.c,
9156         * src/pic16/glue.c,
9157         * src/pic16/main.c,
9158         * src/pic16/pcode.c: applied patches #1068154 and #1070213
9159
9160 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
9161
9162         Large cummulative patch for pic16 port.
9163         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
9164         to call when a stack overflow occurs,
9165         * (malloc.h): added CVS Id tag,
9166         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
9167         variable,
9168         * added libc directory. The current version of LibC contains string
9169         functions, ctype functions and macros and some functions of the
9170         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
9171         be extensively tested in the future. Standard disclaimer here.
9172         Library is not automatically build yet. But one can build it by
9173         invoking 'make' inside the libc directory.
9174         * added ADC library under libio. Preliminary version yet.
9175
9176         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
9177         * src/pic16/gen.c (aopForRemat): asmop size is filled by
9178         aopForRemat() now and not by pic16_aopOp(),
9179         * (pic16_popGetTempReg): removed warning messgae when allocating
9180         temporary registers, its a buggy feature and will be removed,
9181         * (pic16_popGet): set register instance field in AOP_CRY,
9182         * (pic16_outBitC): fixed for results in size greater than 1,
9183         * (genUminusFloat): fixed for pic16, ported code from mcs51,
9184         * (pic16_storeForReturn): optimized return of 0,
9185         * (genCmp): experimental code for new genCmp which uses PIC18's
9186         special compare&skip instructions. Initial tests fail some times
9187         with variables grater than 1 byte in size, so new code is disabled,
9188         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9189         a single bit,
9190         * (genCast): began a fix to optimize the casting of a bit to another
9191         bit, now assigning a bitfield to another bitfield will fail, sorry,
9192         * src/pic16/main.c: disabled the use of lr-support feature,
9193         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9194         * added some function prototypes, added function _debugf prototype,
9195         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9196         bits with offset (case PO_GPR_BIT),
9197         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9198         command line,
9199         * (isBankInstruction): modified to return 0 for no banking instruction,
9200         and 1 for banking instruction,
9201         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9202         caused stop processing pCodes after a inline assembly block,
9203         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9204         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9205         registers when it shouldn't,
9206         * src/pic16/ralloc.c (allocReg): add preliminary support for
9207         supporting a limited set of temporary registers,
9208
9209 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9210
9211         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9212           genDataPointerSet): ensure assignments always copy in MSB to LSB
9213           order,
9214           (loadRegFromAop): recognize CLRH optimization,
9215           (genFunction): optimize RECEIVE iCodes in reentrant functions
9216
9217 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9218
9219         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9220           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9221           selected.
9222         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9223         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9224           contiguous with data
9225
9226 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9227
9228         * device/lib/_gptrget.c (_gptrget),
9229         * device/lib/_gptrgetc.c (_gptrgetc),
9230         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9231           instead of sjmp to ret
9232         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9233           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9234
9235 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9236
9237         * .version: bumped version to 2.4.7
9238         * device/lib/_gptrget.c (_gptrget): is now _naked
9239         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9240         * device/lib/_gptrput.c (_gptrput): is now _naked
9241         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9242           (createFunction): fixed xstack
9243         * src/SDCCglue.c (emitMaps): set allocation required for bit area
9244         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9245           or bit either,
9246           (geniCodeCritical): store original interrupt state in an iTemp bit
9247           var unless stack-auto
9248         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9249         * src/SDCCmain.c (setIncludePath): added include/target to search path
9250         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9251         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9252           prototype,
9253           (processFuncArgs): put bit vars in bit area
9254         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9255           unsaveRBank): fixed xstack,
9256           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9257           (genFunction, genEndFunction): fixed xstack,
9258           (genAssign): optimization don't walk backwards through mem
9259         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9260         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9261         * support/regression/Makefile: also make library (for stack-auto) when
9262           making "all" and added "test-mcs51-xstack-auto"
9263         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9264         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9265         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9266         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9267         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9268           make-library by MAKE_LIBRARY
9269         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9270           regression tests for xstack
9271         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9272         * support/regression/tests/critical.c: test for critical on mcs51
9273
9274 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9275
9276         * support/regression/ports/ucz80/spec.mk: use include and lib files from
9277           built version of sdcc instead of installed version
9278
9279 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9280
9281         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9282         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9283           vprintf.c now
9284         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9285         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9286           WARNING: remove device/lib/build/z80/printf.o by hand when
9287           updating from previous build!
9288         * device/lib/z80/printf.c: updated comment
9289         * support/regression/tests/bug1057979.c: test all ports now
9290         * support/regression/tests/bug1065458.c: file added
9291
9292 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9293
9294         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9295           *_start and *_end symbols for static functions
9296
9297 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9298
9299         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9300           and search crt0.o in all library paths,
9301           (setIncludePath): proper handling of --nostdinc,
9302           (setLibPath): proper handling of --nostdlib
9303         * support/regression/Makefile,
9304         * support/regression/ports/ds390/spec.mk,
9305         * support/regression/ports/gbz80/spec.mk,
9306         * support/regression/ports/hc08/spec.mk,
9307         * support/regression/ports/mcs51/spec.mk,
9308         * support/regression/ports/mcs51-large/spec.mk,
9309         * support/regression/ports/mcs51-stack-auto/spec.mk,
9310         * support/regression/ports/z80/spec.mk: use include and lib files from
9311           built version of sdcc instead of installed version
9312         * doc/sdccman.lyx: fixed typo in --nostdinc
9313
9314 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9315
9316         * src/pic/pcode.c,
9317         * src/pic/device.c,
9318         * src/pic/ralloc.c,
9319         * src/pic/gen.c : added support to generate code for struct bit fields.
9320
9321 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9322
9323         * as/xa51/xa_version.h,
9324         * device/include/errno.h,
9325         * device/include/regc515c.h,
9326         * device/lib/_itoa.c,
9327         * device/lib/_ltoa.c,
9328         * device/lib/ser_ir_cts_rts.c,
9329         * sim/ucsim/xa.src/glob.cc,
9330         * sim/ucsim/xa.src/inst_gen.cc,
9331         * sim/ucsim/xa.src/xa_bit.cc,
9332         * sim/ucsim/xa.src/xa_sfr.cc,
9333         * sim/ucsim/z80.src/inst_dd.cc,
9334         * sim/ucsim/z80.src/inst_fdcb.cc,
9335         * support/scripts/keil2sdcc.pl,
9336         * src/pic16/pic16.dsp,
9337         * src/pic16/pic16a.dsp: corrected cvs line endings
9338         * device/lib/printf_large.c: fixed bug 1057979
9339         * src/pic16/gen.c: fixed non-C standard code
9340         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9341         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9342         * support/regression/ports/mcs51/support.c: reload T1 asap
9343         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9344           pdata use and clear idata startup behaviour
9345         * support/regression/tests/bug1057979.c: added
9346
9347 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9348
9349         * device/examples/ds390/ow390/ad26.h,
9350         * device/examples/ds390/ow390/cnt1d.h,
9351         * device/examples/ds390/ow390/crcutil.c,
9352         * device/examples/ds390/ow390/ownet.h,
9353         * device/examples/ds390/ow390/owsesu.c,
9354         * device/examples/ds390/ow390/swt12.h,
9355         * device/examples/ds390/ow390/swtoper.c,
9356         * device/examples/ds390/ow390/temp10.h,
9357         * device/examples/ds390/ow390/thermodl.c,
9358         * device/examples/ds390/tinitalk/tinitalk.dsp,
9359         * device/examples/ds390/tinitalk/tinitalk.dsw,
9360         * device/examples/mcs51/clock/hw.h,
9361         * device/examples/mcs51/simple2/go.bat,
9362         * device/examples/serialcomm/windows/serial.h,
9363         * device/examples/xa51/dummy.c,
9364         * device/examples/xa51/hello.c,
9365         * device/include/80c51xa.h,
9366         * device/include/at89x051.h: corrected cvs line endings
9367
9368 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9369
9370         * src/pic16/main.c (options): added command line --gstack, to trace
9371         stack over/under flows,
9372         * added pragma 'wparam' to allow passing first byte of function
9373         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9374         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9375         call to __gstack_test function and sets up the symbol as extern,
9376         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9377         * popaop): added call to pic16_testStackOverflow,
9378         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9379         wparamList list,
9380         * (genCall, genPcall): now all parameters are passed via stack
9381         except in functions that are pass to wparam pragma in which WREG is
9382         used too,
9383         * (genPcall): REENTRANT flag is checked to see if variable prototype
9384         contains reentrant keyword, don't call a non-reentrant function, via
9385         a reentrant function pointer or vice versa, functions are never
9386         passed via WREG,
9387         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9388         D.Winkler,
9389         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9390         SIGSEGV when accessing a NULL register stucture,
9391         * (pic16_printGPointerType): modified to handle UPPER modifier for
9392         function initializers, changed prototype of function to simpler one,
9393         * (pic16_printIvalFuncPtr): check to see if function is already
9394         added in externs list,
9395         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9396         optimized a move from W to SFR with a move to the same register
9397         later after a CALL,
9398         * device/lib/pic16/debug: NEW directory, contains debug features
9399         which are enabled when linking with libdebug.lib, currently command
9400         line option --gstack enables stack pointer tracing for over/under
9401         flow, corresponding sources are in debug/gstack
9402
9403 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9404
9405         * doc/sdccman.lyx: updated SDCC version,
9406         * (PIC16 port): update list of command line options,
9407         * src/pic16/device.h (structure pic16_options_t): added field gstack
9408         to enable stack overflow tracing on push/pops,
9409         * src/pic16/device.c (statistics structure): added statistics
9410         structure,
9411         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9412         pic16_dump_int_registers): increase statistics counters for each
9413         * variable which is encountered
9414         * (pic16_dump_usection): emit each .udata variable to its own udata
9415         section,
9416         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9417         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9418         parameters via stack, otherwise use old scheme,
9419         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9420         assembler output file,
9421         * src/pic16/main.c: added command line options --gstack to enable
9422         push/pop tracing for stack overflow,
9423         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9424         instructions): added size of each instruction,
9425         * (pic16_countInstruction): estimate size of instructions in
9426         the_pFile list, inline assembly blocks are not counted,
9427         * (pic16_FixRegisterBanking): trace previous register usage, when
9428         banksel optimizations is greater than 0, don't emit a redudant
9429         banksel directive,
9430
9431 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9432
9433         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9434         * src/pic16/ralloc.c : applied same fix for pic16.
9435         * src/pic/gen.c : tidied it up a little.
9436
9437 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9438
9439         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9440         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9441
9442 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9443
9444         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9445
9446 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9447
9448         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9449         non-reentrant function __modsint in the interrupt function (thus
9450         corrupting math operations during serial I/O)
9451         * device/lib/ser_ir.c: as above, changed buffersize
9452         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9453         256.c,d for zeroing
9454         * doc/Makefile: added option -t for rsync
9455
9456 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9457
9458         * src/SDCCast.h (struct ast),
9459         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9460
9461 2004-10-20 Borut Razem <borut.razem AT siol.net>
9462
9463         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9464         package
9465
9466 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9467
9468         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9469         makefile targets,
9470         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9471         support functions to replace long sequences of MOVFF's from access
9472         bank registers to stack and vice versa,
9473         * src/pic16/device.h: added new field opt_flags, where optimization
9474         flags can be set to enable certain features,
9475         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9476         * pBlock, (genFunction, genEndFunction): surroung loop for
9477         saving/loading used registers in stack with PC_INFO pCodes,
9478         INF_LREGS. Code in between can then be optimized by pCode optimizer
9479         to support function calls,
9480         * (genDataPointerSet): fixed bug which loaded float fields in
9481         structures with corrupt data,
9482         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9483         in a standard way debug info on stderr. Feature used for developing
9484         and debugging only,
9485         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9486         obsolete chunks of code,
9487         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9488         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9489         * pic16/src/pcode.c (pic16_newpCodeInfo,
9490         * (pic16_newpCodeOpLocalRegs),
9491         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9492         feature,
9493         * (pic16_pCodeConstString): printing of the initial value of a
9494         symbol as a comment is inhibited since parsing was already done by
9495         copyStr and output is corrupt,
9496         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9497
9498 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9499
9500         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9501
9502 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9503
9504         * as/mcs51/lkarea.c: removed old K&R style,
9505           (lnksect): changed check on boundary error,
9506           (lnksect2): changed check on boundary error,
9507           (lnksect2): extend XSTK to end of page if size = 1
9508         * as/mcs51/lkmain.c: removed old K&R style,
9509           (Areas51): create l_IRAM symbol
9510         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9511         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9512           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9513         * device/lib/_mullong.c: added version to be compiled with xstack
9514         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9515         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9516         * device/lib/mcs51/crtxstack.asm: fixed comment
9517         * src/SDCCglue.c: maxInterrupts defaults to 0,
9518           (emitMaps): added pdata,
9519           (createInterruptVect): (re)moved default,
9520           (glue): added pdata,
9521           (glue): moved __start__xstack to XSTK with default size 1
9522         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9523           and options.float_rent when options.stackAuto is set,
9524           (linkEdit): only write XDATA_NAME if provided on command line
9525         * src/SDCCmem.h,
9526         * src/SDCCmem.c: added pdata
9527         * src/port.h: added pdata_name to PORT
9528         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9529           (saveRegisters, unsaveRegisters): removed usage of B,
9530           (genMinus): fixed accumulator clash,
9531           (genJumpTab): added comment, this needs another look
9532         * src/mcs51/gen.c: added check for "B in use" paranoia,
9533           added pushB() and popB()
9534         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9535           chance
9536         * src/avr/main.c,
9537         * src/ds390/main.c,
9538         * src/hc08/main.c,
9539         * src/mcs51/main.c,
9540         * src/pic/main.c,
9541         * src/pic16/main.c,
9542         * src/xa51/main.c,
9543         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9544           added PSEG (PAG,XDATA) or NULL to port specifier
9545         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9546         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9547           (_mcs51_genInitStartup): removed __start__xstack equ,
9548           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9549         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9550         * src/z80/gen.c (_rleAppend): fixed warnings
9551         * support/regression/tests/zeropad.c: added pdata test
9552         * .version: bumped to 2.4.6
9553
9554 2004-10-17 Borut Razem <borut.razem AT siol.net>
9555
9556         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9557         as a part of nightly build
9558
9559 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9560
9561         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9562         WREG holds the first byte function parameters,
9563         * (aopForSym): take special case for symbols which are in FARSPACE
9564         but in CODESPACE too,
9565         * (assignResultValue): modified to take into account _G.useWreg,
9566         * (genCall): don't use wreg for parameter passing when function is
9567         declared as reentrant, too, added optimization INCF to stack
9568         pointer when stack parameter count is 1,
9569         * (genFunction, genEndFunction): refurnished and fixed to not using
9570         wreg for passing parameters when function has varargs or is
9571         reentrant, fixed bug with symbol name compare for generating
9572         functions in absolute address,
9573         * (pic16_storeForReturn): refurnished,
9574         * (genCmp): began writing a new version of the function, not ready
9575         yet, therefore it is disabled,
9576         * (genAssign): do not read code memory when assigning a function to
9577         a pointer function,
9578         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9579         array of characters, not pointer,
9580         * (pic16initialComments): in debug mode emit an .ident directive for
9581         the assembler,
9582         * (_process_pragma): emit a new warning type (internal to pic16)
9583         when setting stack to default length, emit a similar warning when
9584         placing a function at absolute address and address is not word aligned
9585         * (_pic16_parseOptions): added 'return TRUE' statement,
9586         * (_pic16_linkEdit): if compiling a source, then add the source's
9587         file object, first in the list of objects to link,
9588
9589 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9590
9591         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9592         * src/pic/main.c : removed VC warning.
9593         * src/pic/gen.c : changed comment.
9594
9595 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9596
9597         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9598         reference to a deprecated symbol _GPTRREG was causing failure to
9599         link. Thanks G. M. Gallant for the info.
9600
9601 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9602
9603         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9604         comments for Bugs item #954788.
9605
9606 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9607
9608         * src/pic16/device.c (pic16_dump_gsection,
9609         * pic16_groupRegistersInSection): handle symbols declared to be in
9610         access bank differently,
9611         * src/pic16/gen.c (struct _G): added field resDirect,
9612         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9613         send values read from stack directly to result and don't allocate
9614         temporary values,
9615         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9616         same registers,
9617         * (pic16_sameRegsOfs): NEW,
9618         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9619         free because they were not allocated from temporary pool,
9620         * pic16_popRegFromString): workaround to fix a problem with
9621         allocating variables twice or never,
9622         * (genGenPointerGet): using PRODL instead of FSR0H,
9623         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9624         instead of FSR0H,
9625         * (genAssign): take advantage of the _G.resDirect flag,
9626         * (genCast): around line 11844, use mov2f instead of directly
9627         MOVFF'ing between operands to account for literal values,
9628         * src/pic16/genutils.c: some new debug functions for gpsim have been
9629         added,
9630         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9631         float with integer part only,
9632         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9633         place variables in access bank
9634         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9635         updated sources to reflect recent changes in gen.c
9636
9637 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9638
9639         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9640         sources that searched for headers in installation path, now the
9641         device/include/pic16 is used,
9642         * src/pic16/glue.c (pic16glue),
9643         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9644         .line directives if not in debug mode, this suppresses assembler's
9645         warnings for ignored directives
9646
9647 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9648
9649         * src/port.h: made reset_regparms prototype void parameter explicit.
9650         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9651         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9652         * doc/sdccman.lyx: documented warning disabling and how to use
9653           printf_large to make it print floats.
9654         * device/include/stdbool.h: NEW
9655         * device/lib/_atof.c,
9656         * device/lib/_divuint.c,
9657         * device/lib/_divulong.c,
9658         * device/lib/expf.c,
9659         * device/lib/printf_large.c,
9660         * device/lib/sincosf.c,
9661         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9662         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9663           a completely reentrant lib.
9664
9665 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9666
9667         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9668         * device/include/pic16/stdio.h: fixed bug with colon
9669
9670 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9671
9672         * device/include/pic16/stdio.h,
9673         * device/include/pic16/stdlib.h,
9674         * device/include/pic16/math.h: NEW
9675         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9676         declared as _naked to reduce overhead
9677         * device/lib/Makefile.in (target port-specific-objects-pic16):
9678         changed * to *.* so to ignore the CVS directory,
9679         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9680         stacked variables back in stack,
9681         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9682         corruption
9683
9684 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9685
9686         * .version: bumped version number to 2.4.5
9687         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9688         * support/Util/SDCCerr.c (messages structure): added entry for
9689         W_POSSBUG2
9690
9691         Large cumulative patch for pic16 port and libraries.
9692         * device/include/pic16/sdcc-lib.h,
9693         * device/include/pic16/stdarg.h,
9694         * device/include/asm/pic16/features.h,
9695         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9696         * device/include/pic16/float.h: changes reentrant keyword with
9697         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9698         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9699         updated target build-libraries to include objects from gptr,
9700         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9701         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9702         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9703         all function headings,
9704         * src/SDCCmain.c: added global parameter userIncDirsSet,
9705         * (parseCmdLine): when option -I is encountered add directory to
9706         userIncDirsSet too,
9707         * src/version.awk: added space between control and long,
9708         * src/pic16/NOTES: added some notes for the port,
9709         * src/pic16/gen.c: added prototype for mov2fp function,
9710         * (fReturnpic16[]): properly named return value registers,
9711         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9712         * (aopForSym): added code to handle symbols with onStack flag set,
9713         symbols onStack are allocated PTRSIZE bytes,
9714         * (aopFreeAsmop): handles special case where asmops are stack objects,
9715         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9716         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9717         added argument lock to trace flaws in allocating temporary registers
9718         when developing port,
9719         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9720         * (pic16_popRegFromString): reenabled allocating a direct register
9721         from string,
9722         * (assignResultValue): various beautifications,
9723         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9724         referenced function argument,
9725         * (genIpush): reenabled to allow stacked arguments, handles only
9726         ic->parmPush iCodes,
9727         * (genCall, genPcall): major changes to allow for variable argument
9728         functions, fixed a bug with falsely restoring stack pointer after
9729         returning from call,
9730         * (genFunction): pending code for critical function,
9731         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9732         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9733         * (genNearPointerGet): fixed bug with indirect reading, was always
9734         reading from INDF0
9735         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9736         pointers,
9737         * (genAddrOf): rewrote code to take address of a stacked function parameter
9738         * (genCast): fixed casting to generic pointer type,
9739         * src/pic16/gen.h: added AOP_STA,
9740         * (struct asmop): added field stk,
9741         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9742         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9743         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9744         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9745         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9746         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9747         generic pointers,
9748         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9749         and library paths,
9750         * (pic16_port structure): generic pointer size is set to 3,
9751         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9752         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9753         compiler warning,
9754         * src/pic16/ralloc.c (allocReg): prevent allocating register when
9755         operand is an iTemp,
9756
9757 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9758
9759         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9760         * debugger/mcs51/simi.c: addapt new syntax of s51
9761
9762 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9763
9764         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9765         * src/pic16/pcode.c: commented out some calls to free() in order to
9766         fix bug #989576,
9767
9768 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9769
9770         * src/SDCCicode.h,
9771         * src/SDCCicode.c (isiCodeInFunctionCall),
9772         * src/avr/ralloc.c (selectSpil),
9773         * src/pic/ralloc.c (selectSpil),
9774         * src/pic16/ralloc.c (selectSpil),
9775         * src/ds390/ralloc.c (selectSpil),
9776         * src/hc08/ralloc.c (selectSpil),
9777         * src/xa51/ralloc.c (selectSpil),
9778         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9779         stack in the middle of a function call sequence (fixes bug #1020268)
9780         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9781         costs associated with the minimum switch case.
9782
9783 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9784
9785         * src/SDCC.lex: fixed bug #1030549
9786
9787 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9788
9789         * src/SDCCcse.h (struct cseDef),
9790         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9791         over a function call if the CSE is derived from a symbol whose
9792         address has been taken (fixes bug #1029883)
9793         * support/regression/tests/bug-1029883: a new regression test for
9794         this bug
9795
9796 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9797
9798         * src/hc08/gen.c (emitinline): fixed bug #1029778
9799         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9800         to a cast object is no longer a syntax error ("fixes" bug #1030006,
9801         and starts toward RFE #905167)
9802
9803 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9804
9805         * src/pic16/gen.c (mov2f): New function to move an operand to
9806         another without considering if it is a literal or a register,
9807         * (pic16_sameRegs): don't check if they are both AOP_REG,
9808         * (AccRsh): removed andmask=0 lines,
9809         * (genLeftShift): duplicated to be improved in future versions,
9810         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9811         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9812         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9813         * (pic16initMnemonics): added initialization for POC_INFSNZW,
9814         * (insertBankSwitch): fixed inserting banksel directives algorithm
9815         for instructions that follow a skip instruction, this fixes a report
9816         for broken subtraction code generation,
9817         * src/pic16/ralloc.c (deassignLRs): do not free register if current
9818         iCode is a left op, just in case result and right share the same
9819         registers
9820
9821 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9822
9823         * src/hc08/main.c,
9824         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9825         preservation of HX
9826         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9827         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9828         on 2004-09-12; it was buggy
9829
9830 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9831
9832         * src/SDCCsymt.h: removed RESULT_CHECK
9833         * src/SDCCast.c,
9834         * src/SDCCglue.c,
9835         * src/SDCCval.c,
9836         * src/pic/glue.c,
9837         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9838
9839 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9840
9841         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9842         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9843         configuration values no more rejected by compiler, they are assigned
9844         to configuration registers with a warning message instead,
9845         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9846         the for-loop so last conf register is emitted too,
9847         * (_pic16_initPaths): link library libsdcc.lib by default,
9848         * (_hasNativeMulFor): modified test for multiplication according to
9849         Raphael Neider's remarks. Integer multiplication is also done with
9850         support functions,
9851         * device/include/pic16/pic18fregs.h: corrected type error in while
9852         testing and including 18f6720 header file
9853
9854 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9855
9856         * src/pic16/device.h (pic16_options): removed field use_crt,
9857         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9858         until an optimization to handle single bits is added,
9859         * (pic16_loadFSR0): moved before genUnpackBits,
9860         * (genAnd): some white lines removed,
9861         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9862         leave_reset flags in pic16_options when using crt modules,
9863
9864 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9865
9866         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9867           for bugs 898889 & 979599. Also used some safer print instructions.
9868
9869 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9870
9871         * src/pic16/device.h (pic16_options_t): added field use_crt,
9872         crt_name, no_crt,
9873         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9874         catch a probable future bug,
9875         * src/pic16/gen.c: aopIdx function commented out,
9876         * (genAssign): commented out old code which used aopIdx,
9877         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9878         code, added if conditionals to take into account the --use-crt
9879         command line options,
9880         * src/pic16/main.c (pic16_optionsTable): added new command line
9881         options, --use-crt= and --no-crt,
9882         * (_pic16_linkEdit): now the proper crt object is added in the
9883         linker command line except than when --no-crt is specified,
9884         * src/pic16/pcode.c,
9885         * src/pic16/pcode.h: added some structures and functions for a new
9886         optimization scheme to compansate for instruction overhead between
9887         same iCodes, this scheme is currently under development and is not
9888         working in any way,
9889         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9890         to && operator,
9891         * device/lib/pic16/startup/crt0i.c,
9892         * device/lib/pic16/startup/crt0iz.c: added global char variable
9893         __uflags to force the generation of an idata section
9894
9895 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9896
9897         * doc/Makefile,
9898         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9899         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9900
9901 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9902
9903         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9904         Frieder) and clarified the default code optimization mode
9905
9906 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9907
9908         * src/SDCC.lex (doPragma, process_pragma),
9909         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9910         "opt_code_size", and "opt_code_balanced"
9911         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9912         regrouped options by category, added support for category headers
9913         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9914         and "--opt-code-size"
9915         * doc/sdccman.lyx: documented these new options and pragmas
9916         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9917         preference into account
9918
9919 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9920
9921         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9922           geniCodePreDec): Fixed bug 904237 by generating a warning
9923         * src/SDCCerr.h,
9924         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9925
9926 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9927
9928         * src/pic/device.c : When no max ram set validate full memory range.
9929         * src/pic/pcode.c,
9930         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9931
9932 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9933
9934         * device/lib/_gptrget.c,
9935         * device/lib/_gptrput.c: updated comment
9936         * device/lib/calloc.c,
9937         * device/lib/free.c,
9938         * device/lib/malloc.c,
9939         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9940         * src/SDCCcse.c (cseBBlock),
9941         * src/SDCCicode.c (printOperand, geniCodeArray),
9942         * src/SDCCicode.h (struct operand): fixed bug 868103
9943         * support/regression/tests/bug-868103.c: added
9944         * src/SDCCast.c (searchLitOp),
9945         * src/SDCCcse.h (struct cseDef),
9946         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9947         * src/SDCCicode.h (struct operand),
9948         * src/SDCCsymt.h (struct sym_link),
9949         * src/avr/gen.c (hasInc),
9950         * src/ds390/gen.c (hasInc),
9951         * src/hc08/gen.c (genPlusIncr, hasInc),
9952         * src/mcs51/gen.c (hasInc),
9953         * src/pic16/glue.c (pic16_printIvalChar),
9954         * src/pic16/ralloc.c (regWithIdx),
9955         * src/xa51/gen.c (hasInc) : removed warnings
9956         * src/SDCCast.c (createBlock): added comment ???
9957         * src/hc08/ralloc.c: updated comments
9958
9959 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9960
9961         * doc/sdccman.lyx: updated section on switch statements, added
9962         section about semaphore locking
9963         * doc/Makefile: added option -info for latex2html
9964         * device/lib/_gptrget.c,
9965         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
9966
9967 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9968
9969         * src/pic/device.h,
9970         * src/pic/device.c,
9971         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
9972          maxram is less than 0x100.
9973
9974 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
9975
9976         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
9977
9978 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9979
9980         * src/port.h,
9981         * src/mcs51/main.c,
9982         * src/ds390/main.c,
9983         * src/z80/main.c,
9984         * src/hc08/main.c,
9985         * src/pic/main.c,
9986         * src/pic16/main.c,
9987         * src/avr/main.c,
9988         * src/xa51/main.c
9989         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
9990         a jump table is the best form for a switch statement, including
9991         automatic insertion of missing cases to make the case range
9992         continuous. Developed in collaboration with Frieder Ferlemann.
9993
9994 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9995
9996         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
9997         accumulator result if it needs sign extension
9998
9999 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10000
10001         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10002
10003 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10004
10005         * device/lib/gbz80/printf.c,
10006         * device/lib/z80/printf.c: removed define for NULL
10007
10008 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10009
10010         * as/xa51/xa_link.c,
10011         * device/examples/ds390/ow390/ad26.c,
10012         * device/examples/ds390/ow390/cnt1d.c,
10013         * device/examples/ds390/ow390/counter.c,
10014         * device/examples/ds390/ow390/ds2480.h,
10015         * device/examples/ds390/ow390/ds2480ut.c,
10016         * device/examples/ds390/ow390/findtype.c,
10017         * device/examples/ds390/ow390/gethumd.c,
10018         * device/examples/ds390/ow390/owllu.c,
10019         * device/examples/ds390/ow390/ownetu.c,
10020         * device/examples/ds390/ow390/swt12.c,
10021         * device/examples/ds390/ow390/swtloop.c,
10022         * device/examples/ds390/ow390/temp.c,
10023         * device/examples/ds390/ow390/temp10.c,
10024         * device/examples/ds390/ow390/thermo21.c,
10025         * device/examples/ds390/ow390/tinilnk.c,
10026         * device/examples/ds390/ow390/tstfind.c,
10027         * device/examples/serialcomm/windows/serial.cpp,
10028         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10029         * device/include/reg51.h: fixed line endings for cvs
10030
10031 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10032
10033         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10034         packRegsForAccUse, packRegisters): new accumulator register
10035         packing algorithm
10036         * support/regression/ports/hc08/support.c (_putchar): suppress
10037         warning of unused variable
10038         * src/SDCCicode.c: added SWAP entry to codeTable
10039
10040 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10041
10042         * device/lib/sprintf.c: forgot to add this file before previous commit
10043
10044 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10045
10046         * src/pic16/gen.c (genPackBits): added operand right in function
10047         parameters, load result directly if p_type is POINTER (that is
10048         called by genNearPointerSet)
10049         * (genUnPackBits): added operand left in function parameters,
10050         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10051         FSR0 if accessing bitfields,
10052
10053 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10054
10055         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10056           _print_format; updated printf, sprintf, vsprintf
10057         * device/include/asm/default/features.h: corrected comment/define
10058         * device/lib/Makefile.in: added sprintf.c
10059         * device/lib/libsdcc.lib: added sprintf module
10060         * device/lib/printf_large.c,
10061         * device/lib/vprintf.c,
10062         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10063           into these 3 files
10064         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10065         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10066         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10067           hc08 test
10068         * support/regression/tests/zeropad.c: define idata as data for hc08
10069
10070 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10071
10072         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10073         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10074         labels are referenced at least once (even if a reference is not found)
10075         * src/hc08/gen.c (emitcode): set isComment flag for comments
10076         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10077         loads), rules 6a..6b (optimize jumps to return)
10078
10079 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10080
10081         * device/lib/acosf.c (acosf),
10082         * device/lib/asinf.c (asinf),
10083         * device/lib/atanf.c (atanf),
10084         * device/lib/ceilf.c (ceilf),
10085         * device/lib/cosf.c (cosf),
10086         * device/lib/coshf.c (coshf),
10087         * device/lib/cotf.c (cotf),
10088         * device/lib/fabsf.c (fabsf),
10089         * device/lib/floorf.c (floorf),
10090         * device/lib/log10f.c (log10f),
10091         * device/lib/logf.c (logf),
10092         * device/lib/sinf.c (sinf),
10093         * device/lib/sinhf.c (sinhf),
10094         * device/lib/sqrtf.c (sqrtf),
10095         * device/lib/tanf.c (tanf),
10096         * device/lib/tanhf.c (tanhf),
10097         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10098         replaced all instances of "reentrant" in the library functions
10099         defined in math.h with this macro.
10100         * support/regression/tests/float_trans.c: reenabled test for hc08
10101
10102 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10103
10104         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10105         erroneously deleted
10106
10107 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10108
10109         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10110         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10111         multi-byte volatile operands are used
10112         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10113         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10114         initialization to area GSINIT0 so that it would always precede
10115         any static initializers in GSINIT
10116         * support/regression/tests/zeropad.c: fixed idata define for hc08
10117         * support/regression/tests/bug-927659.c,
10118         * support/regression/tests/float_trans.c: disabled tests for hc08
10119         pending missing library routines
10120         * .version: increased version number to 2.4.4 - hc08 port now passes
10121         regression tests
10122
10123
10124 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10125
10126         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10127         * Makefile.common.in,
10128         * as/Makefile,
10129         * as/hc08/Makefile.in,
10130         * as/mcs51/Makefile.in,
10131         * as/z80/Makefile.in,
10132         * debugger/mcs51/Makefile.in,
10133         * device/include/Makefile.in,
10134         * device/lib/Makefile.in,
10135         * doc/Makefile,
10136         * link/Makefile,
10137         * link/z80/Makefile.in,
10138         * packihx/Makefile.in,
10139         * sim/ucsim/main_in.mk,
10140         * sim/ucsim/avr.src/Makefile.in,
10141         * sim/ucsim/doc/Makefile.in,
10142         * sim/ucsim/gui.src/serio.src/Makefile.in,
10143         * sim/ucsim/hc08.src/Makefile.in,
10144         * sim/ucsim/s51.src/Makefile.in,
10145         * sim/ucsim/xa.src/Makefile.in,
10146         * sim/ucsim/z80.src/Makefile.in,
10147         * src/Makefile.in,
10148         * support/cpp2/Makefile.in,
10149         * support/librarian/Makefile,
10150         * support/makebin/Makefile: added DESTDIR to the install path proposed
10151         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
10152         * doc/sdccman.lyx: added DESTDIR documentation
10153
10154 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
10155
10156         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
10157         instruction for interrupt handlers, use fast returns when returning
10158         from high priority interrupts
10159
10160 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10161
10162         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
10163         code generation
10164         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
10165         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
10166         bugs, ported much of Bernhard's code from mcs51
10167         * src/mcs51/gen.c (genSend),
10168         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
10169         than one when calling a reentrant function
10170         * device/lib/_mullong.c: defined an alternate struct layout for big
10171         endian ports (hc08)
10172
10173 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10174
10175         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
10176         test
10177
10178 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10179
10180         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
10181         are sane and complete before asking the port its prefered parameter
10182         passing method (fixes bug #1017633)
10183         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
10184         and _ret3
10185
10186 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10187
10188         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10189         problem in bitfields >= 8 bits.
10190
10191 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10192
10193         * src/SDCCsymt.c: undid changes that were not meant to be committed
10194
10195 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10196
10197         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10198
10199 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10200
10201         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10202           copied and wrong bit got inverted
10203
10204 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10205
10206         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10207         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10208         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10209         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10210         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10211         assignments to bitfields at known addresses
10212         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10213         reads from bitfields at known addresses
10214         * src/hc08/ralloc.c (packRegisters),
10215         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10216         genhc08Code): optimize pointer get values used as conditionals
10217         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10218         and branch
10219
10220 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10221
10222         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10223         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10224         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10225         as conditionals
10226
10227 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10228
10229         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10230
10231 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10232
10233         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10234         related problems
10235
10236 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10237
10238         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10239
10240 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10241
10242         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10243         mcs51 port
10244
10245 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10246
10247         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10248
10249 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10250
10251         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10252         cases use more compact code.
10253
10254 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10255
10256         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10257
10258 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10259
10260         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10261
10262 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10263
10264         * src/SDCCsymt.h,
10265         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10266         parameter of changePointer() from symbol* to sym_link*
10267         * src/SDCCast.c (decorateType): call changePointer() for CAST op
10268         * src/SDCCsymt.c (compareType): void* type is castable to other
10269         pointers, but not necesarily an exact match.
10270         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10271         is no longer blindly treated as an exact match.
10272         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10273
10274 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10275
10276         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10277
10278 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10279
10280         * src/pic/gen.c,
10281         * src/pic/pcode.c,
10282         * src/pic/ralloc.h,
10283         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10284
10285 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10286
10287         * src/pic/device.c,
10288         * src/pic/device.h,
10289         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10290
10291 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10292
10293         * src/mcs51/gen.c (emitcode): fixed bug #992819
10294
10295 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10296
10297         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10298           there's no need to make it worse
10299
10300 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10301
10302         * src/mcs51/ralloc.c (deassignLR),
10303         * src/ds390/ralloc.c (deassignLR),
10304         * src/hc08/ralloc.c (deassignLR),
10305         * src/z80/ralloc.c (deassignLR),
10306         * src/pic/ralloc.c (deassignLR),
10307         * src/pic16/ralloc.c (deassignLR),
10308         * src/avr/ralloc.c (deassignLR),
10309         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10310         rlivePoint): fixed another part of bug #971834
10311
10312 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10313
10314         * src/z80/main.c: enabled "critical" keyword
10315         * src/z80/mappings.i,
10316         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10317         functions (fixes bug #979646)
10318         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10319
10320 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10321
10322         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10323           such as c:\mydir.
10324
10325 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10326
10327         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10328           doesn't disable too much optimizations
10329
10330 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10331
10332         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10333
10334 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10335
10336         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10337
10338 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10339
10340         * src/pic/gen.c tidied up tabs
10341         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10342         * src/pic/main.c tidied up tabs
10343         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10344         * src/pic/pcoderegs.c tidied up tabs
10345         * src/pic/ralloc.c tidied up tabs
10346
10347 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10348
10349         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10350         to S_FIXED for pic16 port and when symbol is not in level 0,
10351         allocate for S_REGISTER storage class and pic16 port, too,
10352         * src/pic16/device.h: prototype for checkSym,
10353         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10354         * (pic16_assignConfigWordValue): test the value and the mask to
10355         validate that the value is suitable for the configuration word,
10356         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10357         collect extern declared symbols, don't emit symbol twice, check
10358         first if symbol is in publics set first,
10359         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10360         * added command line '--fstack' which enables an experimental
10361         feature for stack access, too buggy to be used yet...
10362         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10363         * (pic16_allocDirReg): when register has storage class S_REGISTER
10364         allocate in pic16_dynAccessRegs,
10365         * device/include/pic16/pic18f????.h: modified configuration word
10366         naming convention, words started as CONFIG0H but should be CONFIG1H
10367
10368 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10369
10370         * device/include/mcs51reg.h: fixed bug 970993
10371
10372 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10373
10374         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10375         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10376         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10377         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10378         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10379         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10380           error/warning numbers,
10381           added function setWarningDisabled()
10382         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10383         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10384           _memcmp.c _memmove.c calloc.c realloc.c free.c
10385         * support/regression/tests/malloc.c: added tests for new functionality
10386         * support/regression/tests/zeropad.c: added tests for truncated initializers
10387           and initialized char arrays starting with '\x0'
10388         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10389
10390 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10391
10392         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10393
10394 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10395
10396         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10397         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10398         peephole 177.e. Thanks to anonymous
10399
10400 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10401
10402         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10403         function isn't used in the source but referenced as a
10404         variable initializer then declare it as extern in .asm file
10405
10406 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10407
10408         * .version: increased version number to 2.4.3
10409
10410         Adding version extension according to ChangeLog CVS revision
10411         * src/Makefile.in (target all): added dependency 'version.h'
10412         * (rule version.h): added rule to create version.h from ChangeLog,
10413         * (rule dep): added dependency version.h,
10414         * src/version.awk: AWK script to create version.h
10415         * src/SDCCdwarf2.c (dwWriteModule),
10416         * src/SDCCglue.c (initialComments),
10417         * src/SDCCmain.c (printVersionInfo): modified to write after
10418         version string the version extension number,
10419         * src/SDCCutil.c: included "version.h"
10420         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10421         number,
10422         * src/SDCCutil.h: added prototype for getBuildNumber
10423
10424         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10425         includeDirsSet, too,
10426         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10427         const char [] is found in function prototype...
10428
10429         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10430         moving to WREG with source is already in WREG,
10431         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10432         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10433         * (aopForSym): stack'ed symbols are partially supported, added
10434         if-clause to support symbols in FARSPACE,
10435         * (sameRegs): added test for AOP_ACC to see if registers are same,
10436         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10437         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10438         * (pic16_popRegFromString): will not allocate a new register if it
10439         doesn't find one by name, bug may have introduced...
10440         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10441         * (genIpush): revived to use pic16 port's stack,
10442         * (genAddrOf): added incomplete case for stack'ed operand,
10443         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10444         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10445         can handle multibyte operands,
10446         * src/pic16/glue.c (pic16_printIval*): some debug info added,
10447         * (pic16initialComments): added message for MPLAB compatibility
10448         mode enabled,
10449         * src/pic16/main.h: prototype for pic16_mplab_comp,
10450         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10451         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10452         * (_pic16_linkEdit): NEW, handles link stage, transferred here
10453         because of increased complexity of procedure,
10454         * (_process_pragma): stack pragma changed to format 'stack pos len',
10455         emit symbol '_stack_end' to conform with gplink,
10456         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10457         to search for register,
10458         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10459         PO_GPR_REGISTER,
10460         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10461         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10462         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10463         case for PO_GPR_REGISTER,
10464         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10465         dies, the new era is ahead !...
10466         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10467         pic16_dynInternalRegs,
10468         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10469         * (pic16_allocDirReg): minor optimizations and bug fixes,
10470         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10471
10472         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10473         load stack and frame pointer with address of 'stack_end' symbol
10474
10475 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10476
10477         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10478         without source code but only variable initializers
10479
10480 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10481
10482         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10483         external are not declared as extern to reduce overhead while linking
10484
10485 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10486
10487         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10488
10489 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10490
10491         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10492           Yee Keat for the patch
10493         * src/SDCCast.c (decorateType): fixed bug #979599
10494         * src/ds390/gen.h: removed local fReturnSizeDS390
10495         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10496         * src/ds390/gen.c (genAnd, genOr, genXor),
10497         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10498
10499 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10500
10501         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10502         add relFilesSet to $3, manipulate $2 to handle linking of object
10503         files without source files in command line,
10504         * device/include/pic16 (all headers): added ID location macros,
10505         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10506         entries for ID location bytes,
10507         * (pic16_assignIdByteValue): NEW,
10508         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10509         added field dumpcalltree to pic16_options_t,
10510         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10511         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10512         emitting rFalseIfx label after check_carry label,
10513         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10514         pic16_emitDIRegs), NEW
10515         * (pic16glue): dump .calltree file when option --calltree found,
10516         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10517         * (_pic16_genAssemblerPreamble): emit ID locations after
10518         configuration registers,
10519         * (pic16_linkCmd): modifications of the link command,
10520         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10521         * (pic16_pCodeInitRegisters): don't init stack registers,
10522         * (pic16_findPrevInstruction): fixed bug,
10523         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10524         bug with immediate registers,
10525         * (buildCallTree): traces stack push and pop,
10526         * (pct2): dump also stack usage for each function,
10527         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10528         * (pic16_allocDirReg): various modifications,
10529         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10530         fixed to 1,
10531
10532 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10533
10534         * src/pic16/pcode.c: removed buggy double colon
10535
10536 2004-07-01 Borut Razem <borut.razem AT siol.net>
10537
10538         * support/scripts/sdcc.nsi: added include/pic16 to setup
10539
10540 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10541
10542         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10543         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10544         target 'clean',
10545         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10546         specific command line arguments. Also added sample lkr script
10547         for placing a variable at a specific memory bank.
10548         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10549         at a specific memory bank,
10550         * (pic16_dump_isection): fixed bug which caused string literals to
10551         be omitted when dumping idata section,
10552         * (pic16_groupRegistersInSection): added code to handle registers
10553         in specific memory banks,
10554         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10555         public, all references are renamed too,
10556         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10557         AOP_DPTR2,
10558         * (pic16_storeForReturn): added case to handle when dest is WREG,
10559         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10560         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10561         pic16_rel_udata, check to see if that register is marked as being
10562         a member of a specific memory bank,
10563         * (pic16_printIvalCharPtr): added code to add string literals either
10564         to code or the idata sections,
10565         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10566         also accept the 'udata' pragma,
10567         * src/pic16/main.h: new structure types sectName and sectSym
10568         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10569         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10570         * (pic16_findPrevInstruction): fixed, it returned nothing,
10571         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10572         instruction combinations,
10573         * (pic16_FixRegisterBanking): heavily reorganised,
10574         * (pic16_AnalyzeBanking): if generating banksel directives is
10575         disabled, then don't call FixRegisterBanking at all,
10576         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10577         completely removed,
10578         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10579
10580 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10581
10582         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10583         Phuah Yee Keat <yk.phuah AT nestac.com>
10584
10585 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10586
10587         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10588         correctly the IVT even if it is relocated to some other location
10589
10590 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10591
10592         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10593         * device/include/pic16/pic18f2220.h: NEW,
10594         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10595         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10596         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10597         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10598         nodefaultlibs, ivt_loc is the location of the interrupt vector
10599         table, and nodefaultlibs signs that default libraries should not be
10600         linked in link stage,
10601         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10602         according to --ivt-loc argument,
10603         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10604         when pragma stack is found,
10605
10606 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10607
10608         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10609         256 (range check), 257 (do while), 258.a-f (bit banging
10610         f.e. on 3-wire SPI bus)
10611
10612 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10613
10614         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10615         variables used exclusively within a loop
10616
10617 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10618
10619         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10620
10621 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10622
10623         * src/SDCClrange.c (computeClash): fixed bug #971834
10624
10625 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10626
10627         * src/mcs51/gen.c (genCmp): fixed bug #975903
10628         * src/hc08/gen.c (operandsEqu),
10629         * src/ds390/gen.c (operandsEqu),
10630         * src/z80/gen.c (operandsEqu),
10631         * src/pic/gen.c (operandsEqu),
10632         * src/pic16/gen.c (operandsEqu),
10633         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10634         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10635
10636 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10637
10638         * src/SDCCcse.c (cseBBlock): fixed bug #966963
10639
10640 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10641
10642         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10643         default case in switch statement,
10644         * glue.c (pic16_initPointer): expr is initialised via decoarteType
10645         to eliminate problem with initialisation of pointers, but problem
10646         still exists,
10647         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10648         * (emitStaticSegment): removed various lines emitting debug info,
10649         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10650         added processor registers for utilizing EEPROM,
10651         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10652         configurable and set 8
10653
10654 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10655
10656         * .version: increased version number to 2.4.2,
10657
10658         Cumulative patch for pic16 port
10659         * src/pic16/device.c: changed scheme to dump initial values for
10660         variables in idata segment, all print_idata* functions were removed,
10661         now the pic16_printIval* will be called,
10662         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10663         * _pic16_printPointerType, pic16_printPointerType,
10664         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10665         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10666         NEW, similar to the respective functions in SDCCglue.c,
10667         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10668         way, emitting hex bytes,
10669         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10670
10671 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10672
10673         * src/avr/ralloc.c (serialRegAssign),
10674         * src/xa51/ralloc.c (serialRegAssign),
10675         * src/pic/ralloc.c (serialRegAssign),
10676         * src/pic16/ralloc.c (serialRegAssign),
10677         * src/hc08/ralloc.c (serialRegAssign),
10678         * src/z80/ralloc.c (serialRegAssign),
10679         * src/ds390/ralloc.c (serialRegAssign),
10680         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10681
10682 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10683
10684         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10685         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10686
10687 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10688
10689         Cumulative patch for pic16 port:
10690         * src/pic16/device.h (typedef PIC16_device) modified fields for
10691         defining microcontrollers,
10692         * src/pic16/device.c: added new info for all devices in Pics16 array,
10693         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10694         to be optimised out by the pCode optimiser,
10695         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10696         specially, bug reported by G.M. Gallant,
10697         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10698         as force'd so that cannot be optimised out by pCode optimiser,
10699         * src/pic16/pcode.c,
10700         * src/pic16/pcodepeeph.c,
10701         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10702         they are disabled by default, but can be enabled explicit with
10703         command argument --denable-peeps, for testing,
10704         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10705         --pomit-ivt in COMPILE_FLAGS
10706
10707 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10708
10709         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10710           compilation on MSVC
10711
10712 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10713
10714         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10715
10716 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10717
10718         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10719         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10720
10721 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10722
10723         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10724         would only assign 0x300001 register.
10725
10726 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10727
10728         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10729         in COMPILE_FLAGS. Thanks to G. Gallant for report.
10730
10731 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10732
10733         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10734         for ds80c400
10735         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10736         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10737         added peephole 254 (left shift), 255 (jump table)
10738
10739 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10740
10741         * device/lib/Makefile.in: removed comment line with model-pic16,
10742         * (target port-specific-objects-pic16): the libraries and objects
10743         are copied to the build directory form the device/lib/pic16/bin
10744         directory
10745
10746         Cumulative patch concerning pic16 port:
10747         * library directory has been re-organized,
10748         * added support for PIC18F1220,
10749         * added headers and library sources for chips 18f1220,18f6520,
10750         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10751
10752         * configuration registers setting has changed, now each supported
10753         device has a complete description of the registers it uses,
10754         * all initialisations are moved to idata sections, these section
10755         can be absolute or relocatable,
10756         * fixed initialisation of codespace variables,
10757         * fixed warning about PCLATU and gpsim,
10758         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10759         * (genAssign): use table reads when assigning from variables in codespace,
10760         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10761         char/int variables placed in codespace,
10762         * (pic16_emitConfigRegs): NEW, emits a list with configuration
10763         registers set in .asm file, no need for --pomit-config-words anymore,
10764         * (pic16glue): some 8051 legacy segments are commented out
10765         (to be removed completely),
10766         * added support for alternative assembler and linker with --asm=
10767         and --link= command line arguments,
10768         * peepholes are disabled automatically in the port, no need to
10769         specify on command line,
10770         * port supports natively char/int/long multiplication, but converts
10771         all divisions to support functions,
10772         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10773         to the file set in variable $2,
10774         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10775         strings in ASCII format and not in hex,
10776         * ralloc.c (serialRegAssign): added a triplet of conditional calls
10777         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10778         allocate proper register if iCodes aren't temporary,
10779
10780 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10781
10782         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10783
10784 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10785
10786         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10787         is commented out
10788
10789 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10790
10791         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10792         computed address is reused
10793         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10794         multi-byte bitfields
10795
10796 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10797
10798         * src/z80/gen.c: (genArrayInit): must check for pointers too
10799
10800 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10801
10802         * support/regression/tests/zeropad.c: never meant to commit the
10803           nestedstruct test: removed, added check for GCC version
10804
10805 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10806
10807         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10808         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10809         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10810           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10811           bugs 928906 and 954082 half-empty initializers
10812         * src/SDCCsymt.h,
10813         * src/SDCCsymt.c (getAllocSize): added for above fix
10814         * src/z80/gen.c (genArrayInit): fixed bug 741044
10815         * support/regression/tests/zeropad.c: added tests
10816
10817 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10818
10819         * src/pic16/device.c (pic16_dump_section): corrected bug which
10820         caused some symbols of the libraries to be misplaced
10821
10822 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10823
10824         * src/pic16/glue.c,
10825         * src/pic16/ralloc.h,
10826         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10827         to fix conflict with pic port
10828
10829 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10830
10831         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10832         externs configuration variables,
10833         * src/pic16/ralloc.h,
10834         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10835         prototype in header, commented out some debug messages
10836
10837 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10838
10839         * src/pic16/glue.c,
10840         * src/pic16/main.c,
10841         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10842         for gpasm COFF object generation. Thanks to D. Hawkins for
10843         his patch info
10844
10845 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10846
10847         * src/ds390/main.c,
10848         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10849         Brock for spotting this)
10850         * src/ds390/gen.c (genEndFunction),
10851         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10852         interrupt handler and critical. Disable push/pop optimizations when
10853         peephole optimizations disabled.
10854
10855 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10856
10857         Updated pic16 library sources and headers.
10858         * device/lib/pic16/pic18f*/ ,
10859         * device/include/pic16/*.h: modified to handle structured SFR
10860         definitions
10861
10862 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10863
10864         * src/port.h (PORT structure): added hook initPaths, now each
10865         port can declare its own default search paths,
10866         which can been seen with the --print-search-dirs option,
10867         see pic16 port for example,
10868         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10869         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10870         * (doPrintSearchDirs): NEW, replaces in a central manner the
10871         printing of search dirs which was split in set*Paths functions,
10872         * (main): added call to port->initPaths and doPrintSearchDirs,
10873         * src/avr/main.c,
10874         * src/ds390/main.c,
10875         * src/hc08/main.c,
10876         * src/izt/i186.c,
10877         * src/izt/tlcs900h.c,
10878         * src/mcs51/main.c,
10879         * src/pic/main.c,
10880         * src/pic16/main.c: modified port structures to reflect addition of
10881         initPaths hook,
10882
10883         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10884         * (pic16_dump_section): for registers in same address reserve memory once,
10885         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10886         to no_banksel,
10887         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10888         result is greater in size than right or left,
10889         * (pic16_genUMult8X8_8): there are some cases where the result can
10890         be 16 bits size, so handle these,
10891         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10892         * (pic16_outBitC): modified to emit pcodes,
10893         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10894         or not,
10895         * (genDivOneByte): implemented algorithm to divide 8-bits,
10896         * (genCmp): uncommented goto, but issues still exist,
10897         * (genAnd): fixed a bug with variables >8bits,
10898         * (genPackBits): optimization added that uses BCF/BSF to change a
10899         single bit,
10900         * (genAssign): fixed bug when assigning floating point literals,
10901         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10902         __sdcc_gsinit_startup label,
10903         * src/pic16/main.c (_pic16_init): removed search directory
10904         initialisations,
10905         * (_pic16_initPaths): NEW, used to initialise search directories,
10906         * (_hasNativeMulFor): support functions for all except char/int
10907         multiplication, and char division,
10908         * (PIC16_port struct): modified entry for native mul support,
10909         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10910         no_banksel option,
10911         * (buildCallTree): call to register_usage is ifdef'ed out,
10912
10913 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10914
10915         * device/include/string.h: applied Stas Sergeev's patch to make this
10916         header file compatible with the preprocessor -Wundef option
10917         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10918         failure (fixes bug #941458)
10919
10920 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10921
10922         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10923         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10924         that the variable, not the function, should be static
10925         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10926         to be consistent with non-literal case
10927
10928 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10929
10930         * src/SDCCast.c (isConformingBody): fixed bug #949967
10931         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10932         convilong): fixed bug #952086
10933
10934 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10935
10936         * src/SDCCmem.c (allocVariables): fixed bug #955321
10937
10938 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10939
10940         * src/hc08/main.c (_hc08_genAssemblerEnd),
10941         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10942         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10943         completely eliminated the use of a temporary file
10944         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10945         when more than one file linked
10946         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10947
10948 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10949
10950         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10951         which fixes bug #543481
10952         * support/regression/tests/bug-751703.c: fixed comments left from a
10953         cut and paste error
10954         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
10955         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
10956         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
10957         scopes
10958         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
10959         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
10960         are now changed to underscores in moduleName
10961
10962 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10963
10964         * as/mcs51/lkmem.c: better fix for bug #954173
10965
10966 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
10967         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10968
10969         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
10970         * device/include/c8051f000.h,
10971         * device/include/c8051f120.h,
10972         * device/include/c8051f300.h,
10973         * device/include/c8051f310.h,
10974         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
10975         PWM16) and detab'ed
10976
10977 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10978
10979         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
10980         and mailing lists, doc'ed --no-peep-comments, removed reference
10981         to knoppix (newest version has no LyX/LaTeX), other minor changes
10982         * src/SDCCglue.c (glue): save 2 bytes stack space with
10983         option --main-return. The ljmp could probably be avoided too
10984
10985 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10986
10987         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
10988
10989 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10990
10991         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
10992         * src/SDCCopt.c (isLocalWithoutDef),
10993         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
10994         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
10995         (credit to Maarten Brock for patch #949363, on which this is based)
10996         * support/regression/tests/bug-751703.c: some test cases of extern used
10997         within inner scopes.
10998
10999 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11000
11001         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11002         SPEC_STRUCT
11003         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11004         struct definitions
11005         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11006         dwWriteLabel): fix to create valid debugger symbols even when
11007         the module name has non-alphanumeric symbols in it
11008         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11009         when a variable's allocation has been optimized away
11010
11011
11012 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11013
11014         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11015         * src/hc08/main.c,
11016         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11017         * src/mcs51/main.c,
11018         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11019         * src/ds390/main.c,
11020         * src/z80/gen.c (z80_emitDebuggerSymbol),
11021         * src/z80/main.c,
11022         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11023         * src/pic/main.c,
11024         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11025         * src/pic16/main.c,
11026         * src/avr/gen.c (avr_emitDebuggerSymbol),
11027         * src/avr/main.c,
11028         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11029         * src/xa51/main.c,
11030         * src/SDCCdebug.c (emitDebuggerSymbol),
11031         * src/SDCCdebug.h,
11032         * src/port.h: added a debugger struct to the port struct. Added a
11033         callback for defining debugger symbols
11034
11035         * src/SDCCast.c (createLabel),
11036         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11037         with isitmp = 1
11038         * src/SDCCicode.h,
11039         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11040         iCode back to the ast for the function
11041
11042         * src/hc08/ralloc.c (hc08_assignRegisters),
11043         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11044         unneeded fields from the regs struct.
11045         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11046         pushReg() & pullReg() functions instead of emitcode()
11047
11048         * src/hc08/gen.c (genLabel, genhc08Code),
11049         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11050
11051         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11052         debugger hooks
11053
11054         * src/hc08/gen.c (genEndFunction, genhc08Code),
11055         * src/hc08/gen.h,
11056         * src/mcs51/gen.c (genEndFunction, gen51Code),
11057         * src/mcs51/gen.h,
11058         * src/ds390/gen.c (genEndFunction, gen390Code),
11059         * src/ds390/gen.h,
11060         * src/z80/gen.c (genEndFunction, genZ80Code),
11061         * src/z80/gen.h,
11062         * src/z80/z80.h,
11063         * src/pic/gen.c (genEndFunction, genpic14Code),
11064         * src/pic/gen.h,
11065         * src/pic16/gen.c (genEndFunction, genpic16Code),
11066         * src/pic16/gen.h,
11067         * src/avr/gen.c (genEndFunction, genAVRCode),
11068         * src/avr/gen.h,
11069         * src/xa51/gen.c (genEndFunction, genXA51Code),
11070         * src/xa51/gen.h,
11071         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11072         specific code to cdbFile.c and out of the backend code generators
11073
11074         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11075         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11076         starting address is now 0
11077
11078         * as/hc08/asm.h,
11079         * as/hc08/m08pst.c,
11080         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11081         assembler directive for DWARF support
11082         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11083
11084         * src/src.dsp,
11085         * src/Makefile.in,
11086         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11087
11088 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11089
11090         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11091         and inappropriate peephole optimization in jump tables
11092
11093 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11094
11095         * as/hc08/m08pst.c,
11096         * src/SDCCglue.c: sdccopt works for the hc08 port now
11097
11098 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11099
11100         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11101
11102 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11103
11104         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11105
11106 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11107
11108         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11109         rules
11110         * src/SDCCmain.c,
11111         * src/SDCCglobl.h,
11112         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11113         comments from the peephole optimizer replacement rules
11114         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11115         symbols
11116         * src/SDCCcse.c (updateSpillLocation),
11117         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11118         equivalents
11119         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11120         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11121         objects far pointers
11122
11123 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11124
11125         * src/SDCCsymt.h: a missing part of my last change
11126         * src/pic/ralloc.c (regTypeNum),
11127         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11128
11129 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11130
11131         * src/SDCCicode.h,
11132         * src/SDCCicode.c (aggrToPtrDclType),
11133         * src/SDCCptropt.h,
11134         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
11135         ptrPseudoSymConvert),
11136         * src/pic/ralloc.c (regTypeNum),
11137         * src/pic16/ralloc.c (regTypeNum),
11138         * src/hc08/ralloc.c (regTypeNum),
11139         * src/ds390/ralloc.c (regTypeNum),
11140         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
11141         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
11142
11143 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11144
11145         * link/z80/lkmain.c (afile),
11146         * as/hc08/lkmain.c (afile),
11147         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11148         prevent a pointer problem when a filename has no directory and
11149         no extension specified.
11150
11151 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11152
11153         * link/z80/lkmain.c (afile): allow periods in directory names
11154         * link/z80/lkmain.c (afile),
11155         * as/mcs51/lkmain.c (afile),
11156         * as/hc08/lkmain.c (afile): allow linker script file to have an
11157         extension other than ".lnk"
11158         * link/z80/lklex.c (getfid),
11159         * link/z80/lkmain.c (parse),
11160         * as/mcs51/lklex.c (getfid),
11161         * as/mcs51/lkmain.c (parse),
11162         * as/hc08/lklex.c (getfid),
11163         * as/hc08/lkmain.c (parse): Support comments in the linker script
11164         file on lines by themselves and after filenames
11165
11166 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11167
11168         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
11169
11170 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11171
11172         * src/z80/peeph-z80.def: removed some peephole rules that don't
11173         work with multibyte arithmetic (fixed bug #937126)
11174         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
11175         to registers and not global variables
11176         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
11177         geniCodePreInc, geniCodePostDec, geniCodePreDec,
11178         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
11179         checking for assignments not internally generated (fixed bug #931895)
11180         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
11181         structure member (fixed bug #930072)
11182
11183 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11184
11185         * src/SDCCmain.c (linkEdit),
11186         * src/hc08/main.c (_hc08_parseOptions),
11187         * as/hc08/Makefile.in,
11188         * as/hc08/aslink.h,
11189         * as/hc08/asm.h,
11190         * as/hc08/m08pst.c,
11191         * as/hc08/lkrloc.c (relr, rele),
11192         * as/hc08/lkarea.c (lnkarea)
11193         * as/hc08/lkmain.c (afile, parse),
11194         * as/hc08/lkelf.c: support for ELF output
11195         * as/hc08/lks19.c (s19),
11196         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11197
11198 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11199
11200         * as/mcs51/lkihx.c: Fixed bug #899105.
11201
11202 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11203
11204         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11205         .dsp files from Unix to DOS.
11206
11207 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11208
11209         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11210         function pointers; we have been compliant for several months now.
11211         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11212         change that was accidently commented out
11213         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11214         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11215         bug #922319
11216
11217 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11218
11219         * src/hc08/gen.c: output of all of the internal debugging information
11220         is now controlled by the D() macro; it is disabled by default
11221
11222 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11223
11224         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11225         harder to keep the same registers during a CAST iCode
11226         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11227         long via int can be done in a single cast, if the signedness is
11228         correct.
11229         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11230         putchar() in tinibios.c in ds390's library
11231
11232 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11233
11234         * src/SDCCast.c (decorateType): fixed bug #898889,
11235         cast result of a literal complement too
11236         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11237         fixed check for bitfields
11238
11239 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11240
11241         * src/SDCCicode.c (geniCodeLogic): made it static,
11242         (geniCodeLogicAndOr): added in order to fix bug #905492,
11243         (ast2iCode): fixed bug #905492
11244         * support/regression/tests/bug-905492.c: added
11245         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11246         (processParms): fixed bug #927659: don't copy parms, this will clear
11247         decorated flag
11248         * support/regression/tests/bug-927659.c: added
11249
11250 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11251
11252         * src/SDCCast.c (addCast): don't cast float to char
11253         * device/lib/libsdcc.lib: added _memmove
11254
11255 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11256
11257         * device/lib/large/Makefile: fixed parallel execution by
11258         replacing `make` by `$(MAKE)`
11259
11260 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11261
11262         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11263         offsets (fixes bug #923936)
11264
11265 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11266
11267         * device/lib/small/Makefile: fixed parallel execution by
11268         replacing `make` by `$(MAKE)`
11269
11270 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11271
11272         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11273
11274 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
11275
11276         * src/pic/gen.c (genCpl): multi-byte complements were not working.
11277         * src/regression/Makefile: Regression test was not running.
11278
11279 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11280
11281         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11282         complement if possible
11283         * src/SDCCval.c (valComplement),
11284         * src/SDCCicode.c (operandOperation): fixed complement of literal
11285         * support/regression/tests/onebyte.c (testComplement): added
11286
11287 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11288
11289         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11290         return an optimized tree; actually replace actParm with the new tree
11291         * src/SDCCast.h: added some parantheses to remove side effects
11292         * support/regression/tests/bug-920866.c
11293
11294 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
11295         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11296         Bit operands were not being handled properly in the pic14 port.
11297         (now src/regression/add.c passes again).
11298
11299 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11300
11301         * src/SDCC.y (labeled_statement): case and default no longer require
11302         a following statement (RFE #893037)
11303
11304 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11305
11306         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11307         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11308         disabled (fixes bug #916294)
11309         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11310         "mov a,acc"; patch provided by Lenny Story
11311         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11312
11313 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11314
11315         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11316         functions
11317         * src/ds390/gen.c (genFunction, genEndFunction),
11318         * src/ds390/ralloc.c (ds390_assignRegisters),
11319         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11320         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11321         pushed if there are parameters passed on the stack. Also, a cleaner
11322         way to decide if r0/r1 should be pushed/popped. (Together they fix
11323         bug #918693)
11324
11325 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11326
11327         * doc/sdccman.lyx,
11328         * device/lib/mcs51/crtpagesfr.asm,
11329         * device/lib/mcs51/crtxinit.asm,
11330         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11331         to avoid confusion with Si Lab's SFRPAGE register.
11332
11333 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11334
11335         * src/SDCCglue.c (emitMaps): allow public sfr variables
11336         * src/SDCCglue.c (initialComments): include compiler build date
11337         with compiler version and put the timestamp of the generated
11338         assembly file on a serperate line to be less confusing.
11339         * src/port.h: added genInitStartup hook
11340         * src/avr/main.c,
11341         * src/ds390/main.c,
11342         * src/hc08/main.c,
11343         * src/pic/main.c,
11344         * src/pic16/main.c,
11345         * src/xa51/main.c,
11346         * src/z80/main.c: genInitStartup initialize as NULL (default to
11347         historical behaviour)
11348         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11349         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11350         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11351         library instead of hard coding it into the compiler.
11352         * support/regression/ports/mcs51-stack-auto/spec.mk,
11353         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11354         * device/lib/mcs51/Makefile,
11355         * device/lib/small/Makefile,
11356         * device/lib/large/Makefile,
11357         * device/lib/mcs51/crtpagesfr.asm,
11358         * device/lib/mcs51/crtstart.asm,
11359         * device/lib/mcs51/crtxclear.asm,
11360         * device/lib/mcs51/crtxinit.asm,
11361         * device/lib/mcs51/crtclear.asm,
11362         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11363         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11364         and into user configurable files.
11365         * device/lib/clean.mk: clean mcs51 directory too
11366         * support/regression/tests/longlit.c: added static to T1 declaration
11367         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11368         accesses in the initialization code
11369
11370 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11371
11372         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11373         OSCTRIMVAL as noted in bug #916008
11374
11375 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11376
11377         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11378         in loops with multiple exits (reported as incorrect registers
11379         used by Martin Helmling in Sdcc-user list)
11380
11381 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11382
11383         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11384         made ds390 register extensions look less like error messages
11385
11386 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11387
11388         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11389         reported by Adam Wozniak in Sdcc-user list
11390
11391 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11392
11393         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11394         arithmetic optimizations, added debug output
11395
11396 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11397
11398         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11399         * sdcc.spec: updated and split sdcc into 3 rpms
11400         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11401         needed for literals of LEFT_OP and '+'
11402         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11403         introduced RESULT_TYPE_NOPROM
11404         (geniCodeMultiply): fixed logic for decision if mul is optimized to
11405         left shift
11406         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11407         limited promotion to int only for '*'
11408         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11409
11410 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11411
11412         * src/pic16/gen.c (genSkip),
11413         (genc16bit2lit), (gencjneshort): commented out
11414         (is_LitOp): new helper function, checks operand type
11415         (genCmpEq): rewritten
11416
11417 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11418
11419         * support/regression/tests/bug-908454.c: added
11420
11421 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11422
11423         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11424         * src/SDCCicode.c (usualBinaryConversions): op needs int type
11425         (geniCodeCast): cosmetic, don't preserve bit storage class
11426         (geniCodeLeftShift): added promotion
11427         (geniCodeLogic): fixed regression
11428         * src/SDCCsymt.c (computeTypeOr): accept bits too
11429         (compareType): 2nd part of fix for bug #908454, needed for bitfields
11430
11431 2004-03-07  Borut Razem <borut.razem AT siol.net>
11432
11433         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11434
11435 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11436
11437         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11438         version of pic16_genPackRegisters which does not check if ic is a
11439         CAST operator,
11440         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11441         function cause string1.c regression test fails
11442
11443 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11444
11445         * sim/ucsim/configure.in,
11446         * sim/ucsim/configure,
11447         * sim/ucsim/doc/Makefile.in: use docdir
11448         * src/SDCC.y: fixed sbit atrributes
11449         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11450         * src/SDCCast.c (decorateType): |^& need special promotion handling
11451         * src/SDCCast.h,
11452         * src/SDCCsymt.h: moved definition of RESULT_TYPE
11453         * src/SDCCsymt.h (computeType),
11454         * src/SDCCicode.c: computeType() needs op
11455         * src/SDCCsymt.c (checkTypeSanity),
11456         * doc/sddman.lyx: "plain" bitfields are unsigned
11457         * src/SDCCsymt.c (computeTypeOr): added
11458         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11459         |^& ops
11460         * src/SDCCval.c (val*): computeType() needs op
11461         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11462         * support/regression/tests/onebyte.c: added tests for |^&
11463
11464 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11465
11466         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11467         for writing icode into asm output.
11468
11469 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11470
11471         * src/pic16/device.c: added some debug lines enabled
11472         with macro DEBUG_CHECK,
11473         * src/pic16/genarith.c: more debug in genPlus,
11474         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11475         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11476         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11477         * (aopForSym): onStack symbols are re-placed in data memspace,
11478         and onStack flag is cleared,
11479         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11480         copy temporary pcodeop,
11481         * (genPcall): added warning for not updating PCLATU,
11482         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11483         always true for pic16 port,
11484         * (genMultOneWord): NEW, supports integer multiplication,
11485         * (genMult): modified to call genMultOneWord,
11486         * (ifxForOp): added warning when return NULL,
11487         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11488         flag is set before call to operandFromSymbol for implicit
11489         added structures,
11490         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11491         options.intlong_rent are set by default,
11492         * (_hasNativeMulFor): modified to allow port generation of integer
11493         multiplication,
11494         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11495         set regtype to REG_SFR for all registers, restricting seting the
11496         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11497
11498 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11499
11500         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11501         more than 500 times in the regression tests
11502
11503 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11504
11505         * support/Util/SDCCerr.h,
11506         * support/Util/SDCCerr.c,
11507         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11508         enumerator_list),
11509         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11510         for symbol conflicts.
11511         * support/valdiags/tests/enum.c,
11512         * support/valdiags/tests/tentdecl.c,
11513         * support/valdiags/tests/struct.c: expect possible error messages
11514         referring to original symbol definitions.
11515         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11516         * src/SDCCsymt.h,
11517         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11518
11519 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11520
11521         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11522
11523 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11524
11525         * src/pic16/ralloc.c (newReg): fixed bug #908929
11526
11527 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11528
11529         * src/ds390/gen.c: added missing #include "main.h"
11530
11531 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11532
11533         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11534         checking if symbol is already in set,
11535         * src/pic16/device.h: prototype for checkAddSym,
11536         * src/pic16/gen.c: (_G): added entry interruptvector,
11537         * (assignResultValue): removed some commented out lines,
11538         * (genFunction): check for ISR via sym->type, absolute section for
11539         interrupt code is created via a new pBlock, the goto instruction is
11540         placed now correctly at the interrupt vector position, changed all
11541         references from ivec to _G.interruptvector,
11542         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11543         is the interrupt is a high priority one, same for return from ISR,
11544         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11545         externs to calls of checkAddSym,
11546         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11547         pic16_pcode_verbose flag is set,
11548         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11549         * src/pic16/pcoderegs.c: message about how many registers are saved
11550         will only be emitted if pic16_pcode_verbose flag is set,
11551
11552 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11553
11554         * src/ds390/ralloc.h,
11555         * src/ds390/ralloc.c (ds390_regWithIdx),
11556         * src/ds390/gen.c (emitcode),
11557         * src/ds390/main.h,
11558         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11559         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11560         ds390operandCompare, getRegsRead, getRegsWritten,
11561         initializeAsmLineNode): customized instruction size calculation for
11562         ds390, started basis for some register optimizations
11563         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11564         corresponding assembly output
11565         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11566         missing push/pop of r0/r1. Optimized push/pops
11567
11568 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11569
11570         * src/mcs51/main.c (instructionSize): fixed ACALL size
11571         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11572
11573 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11574
11575         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11576         the sorting of rlist with NULL elements
11577         * (print_idataType, print_idata): NEW to create idata sections
11578         * src/pic16/device.h: idataSymSet new variable
11579         * src/pic16/gen.c (genFunction): fixed some bugs in string
11580         comparing, improved the absolute section creation for ISRs,
11581         added FSR0L/FSR0H in registers that are saved in an ISR,
11582         * (genInline): fixed the processing of inline snippets,
11583         now they undergo no process by the peephole optimizer
11584         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11585         are placed in idataSymSet,
11586         * (pic16emitStaticSeg): extern symbols are added in externs,
11587         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11588         switching when aboslute variables are placed in access bank memory
11589         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11590         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11591         commented out with #if,
11592         * (pic16_packRegisters): reintroduce the check for CAST because some
11593         symbols are not correctly handled,
11594         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11595         pCodeInstruction instead of pCode,
11596         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11597         pCodeAsmDir definition,
11598         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11599         directive, then the argument directive is emitted without the leading
11600         tab, hack for inline labels which must be in the first column,
11601         * (compareLabel,pic16_findNextInstruction),
11602         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11603         * (insertBankSwitch): modified for the new pCodeAsmDir,
11604
11605 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11606         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11607
11608         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11609         instance,
11610         * (pushSide): commented out with #if,
11611         * (assignResultValue): fixed some typos in saving
11612         registers,
11613         * (genPcall): FIXED and sync'ed with genCall,
11614         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11615         * (genNearPointerGet): fixed to handle some more cases,
11616         implementation scheme via table reads,
11617         * (genConstPointerGet): modified to access code memory correct,
11618         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11619         and improved to handle some cases
11620         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11621         instead of "RETLW" for init data
11622         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11623         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11624         variables are placed in access bank memory (<0x80 and >=0xf80),
11625         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11626         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11627         TBLWT_POSTDEC,TBLWT_PREINC
11628         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11629         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11630         directives
11631         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11632         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11633         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11634         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11635
11636 2004-02-29  Borut Razem <borut.razem AT siol.net>
11637
11638         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11639         support/Util/findme.h, support/Util/system.h: enhance binary relative
11640         search for lib and include by using findProgramPath()
11641
11642 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11643
11644         * src/SDCCpeeph.h,
11645         * src/SDCCpeeph.c (pcDistance),
11646         * src/port.h,
11647         * src/mcs51/ralloc.h,
11648         * src/mcs51/ralloc.c (mcs51_regWithIdx),
11649         * src/mcs51/main.h,
11650         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11651         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11652         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11653         size calculation port specific, started basis for some register
11654         optimizations
11655         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11656         missing push/pop of r0/r1. Optimized push/pops
11657         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11658         * device/lib/_modsint.c (_modsint),
11659         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11660         and stack version so regression tests pass
11661
11662 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11663
11664         * src/Makefile.in (dep): include SLIBOBJS in dependency check
11665         * src/SDCCast.c (decorateType): catch another small optimization
11666         with '?' operator
11667         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11668         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11669         modified to finally use computeType() all over SDCC,
11670         see Feature Request #877103
11671         * src/SDCCval.h: cosmetic
11672         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11673         valCompare(); regression tested in muldiv.c
11674         * support/regression/tests/muldiv.c (testMod): mod sign follows
11675         dividend only
11676
11677 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11678
11679         * src/SDCCast.c (decorateType): fixed bug #902362
11680         * doc/INSTALL.txt: fixed install instructions for win32
11681
11682 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11683
11684         * device/include/Makefile.in (install): fixed by replacing spaces
11685         by tabs
11686         * doc/README.txt,
11687         * doc/INSTALL.txt: updated for release
11688         * doc/sdccman.lyx: added warning for --xstack being buggy
11689
11690 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11691
11692         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
11693         to eliminate build warnings.
11694         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11695
11696 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11697            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11698
11699         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11700         removed -penable-stack, added comment for stack pragma, added
11701         warning for not initializing the stack/frame registers, removed
11702         comment at interrupts section
11703
11704         Stack is made permanent, there is no ability to disable stack usage.
11705         * src/pic16/device.h,
11706         * src/pic16/device.c: removed all references to USE_STACK macro,
11707         * src/pic16/device.c (pic16_dump_section): when no elements in
11708         rlist, free rlist before return,
11709         * (pic16_dump_int_registers): NEW, internal registers are a new set
11710         of general purpose registers reused by each function,
11711         * (checkAddReg): returns 1 if registers is added to set,
11712         * (pic16_groupRegistersInSection): when a registers is of type
11713         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11714         * src/pic16/device.h: memRange and Assigned Memory are deleted,
11715         SRCASECMP macro is moved here from device.c
11716         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11717         PO_PCLATU, PO_PRODL, PO_PRODH,
11718         * (pic16_pCodeOpType, genMinus,
11719         changed compares to "a" register, with AOP_ACC,
11720         * (pic16_genPlus): fixed some bugs and indented properly,
11721         * (pic16_addSign): changed size to size+offset in the MOVWF
11722         instruction,
11723         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11724         multiply 8-bit operand by literal, result is 8-bit,
11725         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11726         multiply 2 8-bit operand, result is 8-bit,
11727         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11728         genUMult8X*_16,
11729         * src/pic16/gen.c: changed accUse to contain WREG only,
11730         * (pic16_emitcomment): renamed to pic16_emitpcomment,
11731         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11732         true, do not use immediate addressing any more unless sym is a
11733         pointer in codespace,
11734         * (aopForRemat): do not use immediate addressing when symbol not in
11735         codespace and when symbol's address is requested,
11736         * (aopOp): for-loop in if(sym->accUse) is modified for the new
11737         accUse size (= 1),
11738         * (aopGet): added case for AOP_ACC and don't return "accumulator
11739         bug" but WREG instead,
11740         * (popGetTempReg): pushes contents of temporary register in stack,
11741         * (popReleaseTempReg): pops contents of temporary register from
11742         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11743         * (pic16_popGet): separated case AOP_ACC to return register WREG
11744         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11745         or PO_IMMEDIATE and initializes their instance/offset appropriately,
11746         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11747         the use of immediate pointers to certain cases only.
11748
11749         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11750         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11751         * (assignResultValue, genCall, genRet): modified to use the new
11752         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11753         genPcall is still broken,
11754         * (genFunction): added code to create 'A' type pBlocks when
11755         interrupt functions are generated, code not extensively tested yet,
11756         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11757         * (genEndFunction): modified so ISRs pop stored registers from stack,
11758         * (genMultOneByte): cleanup,
11759         * (AccRsh): added flag andmask, to and result with appropriate mask,
11760         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11761         * (genDataPointerGet): fixed and reenabled its use,
11762         * (genNearDataPointerGet): bugs fixed,
11763         * (genDataPointerSet): bugs fixed,
11764         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11765         pic16_DumpSymbol, pic16_DumpOp,
11766         * src/pic16/genutils.h: function prototypes for the above functions,
11767         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11768         pointers,
11769         * (pic16emitRegularMap): many many many improvements, but needs a
11770         major cleanup,
11771         * src/pic16/main.c: enable_stack in pic16_options is removed,
11772         * (_pic16_parseOptions): removed command line options -penable-stack,
11773         * (_process_pragma): emit stack symbol only when stack pragma is
11774         processed,
11775         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11776         redirected to FSR0L/FSR0H pair,
11777         * (pic16_get_op, pic16_get_op2): modifications and improvements,
11778         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11779         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11780         for immediates,
11781         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11782         * (dumpPicOptype): NEW,
11783         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11784         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11785         with movff instruction,
11786         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11787         added pic16_int_regs, some packRegsFor* functions are commented out,
11788         because produce errors,
11789         * src/pic16/NOTES: minor modifications
11790
11791 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11792
11793         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11794         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11795         --pack-iram.
11796         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11797         * as/mcs51/lkaomf51.c: fixed bug #895763
11798
11799 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11800
11801         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11802
11803 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11804
11805         * doc/sdccman.lyx: added details about the HC08 storage classes and
11806         interrupts, fixed the register usage info for z80 & gbz80
11807
11808 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11809
11810         * doc/sdccman.lyx: added more pic16 port documentation
11811         * device/include/pic16/: added header pic18fregs.h
11812
11813 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11814
11815         * doc/sdccman.lyx: added Vangelis' contribution
11816
11817 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11818
11819         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11820         extend to the next CALL or PCALL, not just to the next CALL.
11821
11822 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11823
11824         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11825
11826 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11827
11828         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11829         bug #895752 and a better fix for bug #716790
11830
11831 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11832
11833         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11834
11835 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11836
11837         * doc/sdccman.lyx: minor changes, minor changed
11838
11839 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11840
11841         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11842         which can't handle SDCC_NEWONEBYTEOPS,
11843         (geniCodeMultiply): removed conversion from mult to shift for pic14
11844         and pic16
11845
11846 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11847
11848         * src/hc08/gen.h,
11849         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11850         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11851         thus fixing bug #895406
11852
11853 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11854
11855         * device/lib/_modsint.c,
11856         * device/lib/_modslong.c: sign follows divisor only
11857         * src/hc08/gen.c (genMultOneByte): if result size is 1,
11858         signs or signedness can be ignored
11859         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11860         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11861         added optimization for IFX,
11862         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11863         arguments;
11864         reenabled optimization for IFX, which was removed on 2004-01-11
11865         * src/SDCCast.h: added return type IFX
11866         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11867         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11868         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11869         SDCC_OLDONEBYTEOPS selects the old behaviour
11870         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11871         changed again and commented promotion rule
11872         * src/SDCCval.c (valDiv): promotion no longer necessary
11873         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11874         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11875         rewritten
11876         * support/regression/tests/onebyte.c: added
11877
11878 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11879
11880         * gen.c (genInline): reverted to old code for assemnling inline
11881         code because of bug reported James Chadd
11882
11883 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11884
11885         * ralloc.h: missing declarations from previous patch,
11886         seems that patch for ralloc.h was never applied, fixed
11887
11888 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11889            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11890
11891         * pcode.c,
11892         * pcode.h,
11893         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11894         indirect addressing. Marked FSR0 as deprecated
11895         * gen.c (pointerCode): commented out, not needed now
11896         (pic16_popGet2p): new MOVFF helper function
11897         (genGenPointerGet),
11898         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11899         (shiftRLong): removed duplicate debugging info
11900
11901 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11902
11903         * src/ds390/gen.c (genNearPointerGet),
11904         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11905         optimization with bits, but not bitfields.
11906         * src/ds390/ralloc.c (packRegisters),
11907         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11908
11909 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11910
11911         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11912
11913 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11914
11915         * src/SDCCsymt.h,
11916         * src/SDCCicode.c (operandFromSymbol),
11917         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11918         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11919         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11920         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11921         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11922         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11923         bug #892038
11924         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11925         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11926         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11927         * src/SDCCsymt.c (newSymbol),
11928         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11929         enumerator_list),
11930         * src/SDCCval.h,
11931         * src/SDCCval.c (newiList): fixed bug #885705
11932
11933 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11934
11935         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11936         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11937
11938 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11939
11940         * device/include/c8051f120.h,
11941         * device/include/c8051f300.h,
11942         * device/include/c8051f310.h: added/updated header files for Silicon
11943         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11944         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11945         in new section Submitting patches
11946
11947 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11948
11949         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11950         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11951         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11952         genGenPointerSet),
11953         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
11954         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11955         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11956         genGenPointerSet),
11957         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
11958         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11959         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11960         genGenPointerSet),
11961         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
11962         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11963         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11964         genGenPointerSet): fixed bug #892400
11965         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
11966         to eliminate build warnings.
11967         * src/SDCCast.c (processParms),
11968         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
11969         fixed bug 751859
11970         * support/valdiag/valdiag.py: added GCC to the list of defines active
11971         when compiling with gcc
11972
11973 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11974
11975         * support/Util/SDCCerr.h,
11976         * support/Util/SDCCerr.c,
11977         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
11978         with an incomplete type (fixed bug #883734)
11979         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
11980
11981 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11982
11983         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
11984
11985 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11986
11987         * src/SDCCast.c (decorateType),
11988         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
11989         function pointer implementation
11990         * support/regression/tests/funptrs.c: added tests to verify both forms
11991         of function pointers work correctly. Added tests to verify parameters
11992         are passed in the correct order.
11993
11994 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
11995
11996         * device.c (regCompare): registers are sorted by ascending
11997         address and increasing size,
11998         * main.c (_pic16_finaliseOptions): removed the declaration
11999         of compiler macro MCU. Now a macro of the format pic18fxxxx
12000         will be defined from the command line
12001
12002 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12003             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12004
12005         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12006         PCOP_RLCF was overwritten!
12007         * gen.c (genSkip): commented out calls to pic16_emitcode,
12008         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12009         * (genlshTwo),
12010         * (genRRC): added debugging info,
12011         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12012         overwritten while shifting,
12013         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12014         overwritten while shifting,
12015         * (AccLsh),
12016         * (AccRsh),
12017         * (shiftLLeftOrResult),
12018         * (shiftRLeftOrResult),
12019         * (shiftRLong),
12020         * (shiftLLong): Implemented with pic16_emitpcode
12021         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12022         * (genLeftShift): Fixed bug, operand for shift by variable always
12023         was "and"ed with 0x0f,
12024         * (genLeftShiftLiteral),
12025         * (genrshTwo),
12026         * (genRightShiftLiteral): added debugging info,
12027         * (genrshFour): added comment,
12028         * (genRightShift): determined signedness from operand "left"
12029         instead of "result"
12030
12031 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12032
12033         * src/SDCCicode.c (geniCodeParms),
12034         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12035         function pointers, fixed function pointer bugs #861242 and #861896
12036
12037 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12038
12039         * device/include/c8051f000.h,
12040         * device/include/c8051f120.h,
12041         * device/include/c8051f300.h: added header files for Silicon
12042         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12043
12044 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12045
12046         * src/SDCCast.c (processParams): added new type flow and restructured
12047         (gatherAutoInit): added new type flow
12048         (addCast): cosmetic changes
12049         (getLeftResultType): added new type flow for array indices, patch
12050         provided by Stas, see FR #877103
12051         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12052         array index patch by Stas
12053         * src/SDCCast.h: added prototype getResultTypeFromType()
12054         * src/SDCCval.h,
12055         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12056         * src/pic/glue.c (pic14emitStaticSeg),
12057         * src/pic16/glue.c (pic16emitStaticSeg),
12058         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12059         for initialization of symbols
12060         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12061         * support/Util/SDCCerr.h:
12062         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12063         * .version: bumped version number to 2.3.8
12064         * device/include/Makefile.in (install),
12065         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12066         avoid warnings
12067
12068 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12069
12070         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12071         Slade Rich fixed an optimization bug
12072         * src/pic/pcodepeep.c,
12073         * src/pic/pcoderegs.c
12074         * doc/Makefile (install): added test for directory
12075
12076 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12077
12078         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12079         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12080         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12081         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12082         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12083         * as/mcs51/asexpr.c (term),
12084         * as/hc08/asexpr.c (term): fixed bug #887146
12085
12086 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12087
12088         * src/z80/gen.c (genMult): handle single byte result product
12089         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12090         DUMMY_READ_VOLATILE (fixed bug #886367)
12091
12092 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12093
12094         * support/regression/tests/libmullong.c: fixed logic, on little endian
12095         hosts we ended without a mullong_wrapper()
12096
12097 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12098
12099         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12100         virus/worm forged address usage.
12101
12102 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12103
12104         Fixed promotion, it should be done on AST level:
12105         * src/SDCCast.c (addCast): added promotion to int
12106         (decorateType): updated call to upCast()
12107         * src/SDCCicode.c (geniCodeLeftShift): removed call to
12108         usualUnaryConversions()
12109
12110 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
12111
12112         * support/regression/tests/literalop.c (mulWrapper): Added a
12113         wrapper to remove integer overflow warnings.
12114
12115         * support/regression/tests/float_trans.c: Made work on host.
12116
12117         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12118         location of sz80.
12119
12120         * support/regression/generate-cases.py (main): Changed from inline
12121         to a main method.
12122
12123         * doc/Makefile (install): Changed to depth first to get rid of
12124         missing directory install warning.
12125
12126         * as/Makefile (install-doc): Made work on Mac.
12127
12128 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12129
12130         * src/SDCCast.c: added an additional type flow in decorateType() of
12131         opposite direction, see feature request #860006; it's enabled at runtime
12132         by setting the environment variable SDCC_NEWTYPEFLOW
12133         * src/SDCCast.h: changed prototype of decorateType()
12134         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
12135         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
12136         'char' to 'int' can be omitted, if both operands are 'unsigned char';
12137         see feature request #877103
12138         * src/SDCCval.c: updated call of decorateType()
12139         (valBitwise): fixed bug #882876
12140         (valMinus): added promotion
12141         (valLogicAndOr): result is unsigned
12142         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
12143         * src/SDCCsymt.c (computeType),
12144         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
12145         must not cause an unsigned operation
12146         * src/pic/glue (pic14emitRegularMap),
12147         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12148
12149 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12150
12151         * src/pic/pcode.c (PCodeID): commented out left over debug code
12152
12153 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
12154
12155         * support/valdiag/tests/overflow.c: added shift tests
12156         * src/pic/device.c,
12157         * src/pic/gen.c,
12158         * src/pic/gen.h,
12159         * src/pic/glue.c,
12160         * src/pic/main.c,
12161         * src/pic/pcode.c,
12162         * src/pic/pcode.h,
12163         * src/pic/pcodepeep.c,
12164         * src/pic/pcoderegs.c,
12165         * src/pic/ralloc.c,
12166         * src/pic/ralloc.h: applied patch from Slade Rich;
12167         added support for multiple code pages and multiple RAM banks on the
12168         PIC 14 port. The ASM files now no longer simply assume all the
12169         code / RAM are in the same page / bank. This means the linker can
12170         safely allocate code/RAM of separate ASM files to different pages/banks.
12171         * doc/sdccman.lyx: added Slade's tips
12172         * src/mcs51/peeph.def: fixed bug #880768
12173
12174 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12175
12176         * src/hc08/ralloc.c (rematStr): fixed bug #879282
12177         * src/SDCCast.c (decorateType): fixed bug #880197
12178
12179 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
12180
12181         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
12182         getopt.h.
12183
12184         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
12185         strtof is not part of C89 and isn't included with Mac OS X.
12186
12187 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12188
12189         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12190         shiftL2Left2Result): fixed bug #879326
12191         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12192         (genMultOneByte): fixed bug in signed vs unsigned multiplication
12193         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12194         address fetch for clr instruction
12195         * device/lib/hc08/_mulint.c: created optimized assembly version
12196         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12197
12198 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12199
12200         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12201         proposed in FR #877103
12202
12203 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12204
12205         * src/SDCCval.c (cheapestVal): added missing checks
12206         * src/SDCCicode.c (usualBinaryConversions): fixed condition
12207         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12208
12209 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12210
12211         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12212         equal operands
12213
12214 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12215
12216         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12217         loaded with the linker search paths (-L arguments) and the libraries
12218         to be linked with the current source (-l arguments). Changes
12219         currently will affect only the pic16 port.
12220         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12221         include path the port specific paths and port specific libraries,
12222         * gplink command now contains the $3 argument,
12223         * src/pic16/device.h,
12224         * src/pic16/device.c,: structure PIC_device is made public and
12225         renamed to PIC16_device, the same for variable Pics which is renamed
12226         to Pics16. Updated all references to them.
12227         * src/pic16/glue.c (pic16glue): corrected bug with code
12228         initialization which bypassed the variable initializations block.
12229
12230         * device/lib/pic16/Makefile.rules: removed --penable-stack from
12231         COMPILE_FLAGS and added the --nostdinc option
12232
12233 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12234
12235         * device/include/mc68hc908jb8.h: Register defs for another member
12236         of the hc08 family. Contributed by Bjorn Bringert - thanks!
12237
12238 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12239
12240         Documenting changes from previous commits.
12241         * configure.in (version 1.56),
12242         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12243         when generating output files to configure the pic16 library,
12244         but now I've commented it out, since gputils aren't installed in the
12245         SF compile farm, so library won't compile
12246
12247         * device/lib/Makefile.in (version 1.56): initially I've added in
12248         target 'all' the prerequestive 'model-pic16' so it compiled the
12249         pic16 library, but now I've commented it out for the same reasons
12250         above,
12251         * added targets 'model-pic16' and 'objects-pic16' to compile the
12252         library
12253         * added target 'port-specific-objects-pic16' to handle the
12254         generated libraries and copy them into the build/ directory
12255         * added target 'clean-intermediate-pic16' to clean intermediate
12256         files into pic16 directory
12257         * in target 'installdirs' added line to create directory pic16 in
12258         the installation path
12259
12260         * device/include/Makefile.in (version 1.11): in target 'install'
12261         added lines to copy all header files to installation path,
12262         * in target 'installdirs' added line create directory for pic16
12263         headers in the installation path
12264
12265 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12266
12267         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12268          a function call
12269
12270 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12271
12272         * configure,
12273         * device/lib/configure.in,
12274         * device/lib/configure: fixed for autoconf 2.57
12275
12276 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12277
12278         * src/z80/main.c (_parseOptions): fixed the portmode= command line
12279         option so that it actually works. Made it specific to the z80, since
12280         the gbz80 doesn't have these kinds of I/O ports.
12281
12282 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12283
12284         * device/include/z180.h,
12285         * device/lib/_memcpy.c,
12286         * device/lib/_memmove.c,
12287         * device/lib/_mulint.c,
12288         * device/lib/ser_ir.c,
12289         * device/lib/ser_ir_cts_rts.c,
12290         * device/lib/_strcmp.c,
12291         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12292         * src/z80/main.c (_process_pragma): add support for pragmas bank and
12293         portmode; added deprecation warning for bank= and protmode= forms.
12294         Also, guard against buffer overflow.
12295         * src/z80/gen.c (aopGet): generate better code for sfr banked read
12296
12297 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12298
12299         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12300         changed interrupt vector table generation to only emit declared vectors.
12301         * device/include/Makefile.in: added missing backslash
12302         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12303
12304 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12305
12306         Mainly changes to support compilation of the device libraries
12307         * src/pic16/device.c: stack is allocated via symbol and not
12308         via literal number. The symbol is placed in the corresponding
12309         position of the data ram
12310         * (pic16_dump_section): relocatable and absolute uninitialized
12311         data are now emitted in sorted order to reduce section naming,
12312         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12313         weren't marked as being in the access bank,
12314
12315 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12316
12317         Added portion of GNU PIC Library under the directory
12318         device/include/pic16 and device/lib/pic16. These files
12319         contain the declarations of SFRs for the PIC18Fxx2 devices.
12320         The directory is initialized via configure from toplevel.
12321
12322 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12323
12324         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12325         the spilllocations to be compared correctly
12326
12327 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12328
12329         * src/SDCCast.c (decorateType): fixed bug introduced today
12330
12331 2004-01-12  Borut Razem <borut.razem AT siol.net>
12332
12333         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12334         doc/sdccman.lyx: upper case pragmas are deprecated
12335
12336 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12337
12338         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
12339         in simpler and even better code
12340
12341 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12342
12343         * src/SDCCicode.c (operandOperation): fixed bug #874819
12344         * src/SDCCast.c (decorateType): fixed
12345         char foo (unsigned long ul) { return ul > 0; }
12346
12347 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12348
12349         * doc/sdccman.lyx: Moved and added some sections, small changes
12350         all over. Telling LaTeX to be less strict with word spacing
12351         to better keep the right margin. Changed some notes about
12352         maintainance of the ports in section 3.2.1 - is it OK like this?
12353
12354 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12355
12356         SDCC source changes:
12357         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12358         convilong): modified to inform the pic16 port that builtin functions
12359         are external
12360
12361         PIC16 PORT specific changes:
12362         * src/pic16/device.c pic16_dump_equates() added,
12363         processor registers declared internally by the port are emitted in
12364         the translation as equates,
12365         * src/pic16/gen.c: inline code is passed unprocessed to the
12366         translation,
12367         * (pic16_popGetLit2): fnuction modified to take second operand as
12368         pCodeOp pointer and not as literal,
12369         * (popRegFromIdx): prefixed with pic16_,
12370         * (pic16_popCombine2): modified to receive already allocated pCode
12371         operands,
12372         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12373         * (genFunction): initializes local stack frame and pushes on stack
12374         all the registers used by this function,
12375         * (genEndFunction): restores all registers from stack and restores
12376         stack frame,
12377         * src/pic16/glue.c (pic16emitRegularMap): various changes and
12378         improvements,
12379         * (pic16glue): changed the program startup sequence,
12380         * added new dbName code 'A' for functions placed in absolute section
12381         * src/pic16/main.c: added function attribute _naked,
12382         * added pragma 'code' to place a fnuction at an absolute address,
12383         * added command line arguments --debug-ralloc and --pcode-verbose,
12384         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12385         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12386         * (pic16_newpCodeOpLit2): modified to take the second operand as
12387         pCodeOp pointer,
12388         * (pic16_printpBlock): modified to emit each function in a separate
12389         section,
12390         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12391         UPPER for immediate operands,
12392         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12393         instruction,
12394         * src/pic16/peeph.def: all peepholes with movff are commented out,
12395         because there is a problem in the pcode peep optimizer,
12396         * src/pic16/ralloc.c: the register allocator can now reuse local
12397         function symbols for another function. This saves register usage.
12398         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12399
12400         Added file src/pic16/NOTES with information about program writing on
12401         the current port version.
12402
12403 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12404
12405         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12406         and peephole 252 (array access)
12407
12408 2004-01-09  Borut Razem <borut.razem AT siol.net>
12409
12410         * src/SDCCmain.c : fixed #872250: -l command line defined library
12411           files are scanned before standard library files
12412
12413 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12414
12415         * src/SDCCast.c (decorateType): fixed bug #874046
12416
12417 2004-01-09  Borut Razem <borut.razem AT siol.net>
12418
12419         * support/scripts/sdcc.nsi: remove previous installation
12420
12421 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12422
12423         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12424         bytes for last interrupt vector (mcs51)
12425         * sdcc.spec: fixed typo
12426
12427 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12428
12429         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12430         gen51Code): more efficient parameter receive for --model-large
12431         ("bug" #845294)
12432
12433 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12434
12435         * src/ds390/main.c,
12436         * src/z80/main.c: added missed needLinkerScript flags (more than
12437         one port structure defined in these file)
12438         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12439         bug #795325
12440
12441 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12442
12443         * src/SDCCmain.c: removed various references to DEFAULT_PORT
12444         * src/port.h: added flag needLinkerScript in port->linker
12445         structure to inform whether to create a .lnk file or not,
12446         * src/avr/main.c,
12447         * src/ds390/main.c,
12448         * src/hc08/main.c,
12449         * src/mcs51/main.c,
12450         * src/pic/main.c,
12451         * src/pic16/main.c,
12452         * src/xa51/main.c,
12453         * src/z80/main.c: changed appropriately to configure
12454         needLinkerScript flag
12455         * src/pic/gen.c,
12456         * src/pic16/gen.c (genAddrOf): fixed bug #863624
12457         * src/pic/glue.c: added variable udata_section_name to
12458         override default uninitialized data segment definition for
12459         devices only with SHAREBANK memory (reported from Erik Epetrich)
12460         * (pic14emitOverlay): modified to emit a commented overlay segment
12461         directive when no overlay data exist
12462         * (picglue): modified to emit uninitialized data segment
12463         according to udata_section_name
12464         * src/pic/main.c (_pic14_parseOptions): added command line
12465         options --udata-section-name=[name] to override default
12466         udata definition name
12467         * modified _linkCmd and _asmCmd to include compiler passed
12468         arguments via -W option
12469         * src/pic16/main.c: added $l in _asmCmd, changed extension for
12470         object file from '.rel' to '.o' in port->linker structure,
12471         changed size of fptr from 2 to 3 in port structure
12472
12473 2004-01-07  Borut Razem <borut.razem AT siol.net>
12474
12475         * support/scripts/sdcc.nsi: update PATH
12476         * support/scripts/sdcc.ico: craeted
12477
12478 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12479
12480         * device/include/Makefile.in: fix install
12481         * doc/Makefile: fix install
12482
12483 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12484
12485         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12486         in bug #860505
12487         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12488         how the function variable allocation summary is displayed; also
12489         include information about variables allocated to the overlay
12490         segment
12491
12492 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12493
12494         * as/mcs51/lkmain.c: Help about -Y option
12495         * as/mcs51/lkarea.c: Fixed gcc warnings
12496
12497 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12498
12499         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12500         fixed warning
12501         * support/valdiag/tests/overflow.c: added
12502         * src/SDCCast.c (decorateType),
12503         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12504         LEFT_OP (left shift)
12505
12506 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12507
12508         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12509         (default behaviour).
12510
12511 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12512
12513         A python script to validate compiler diagnostic messages. It can be
12514         used to verify that sdcc complains about bad c source code and
12515         gives a good location of the error.
12516         * support/valdiag/Makefile,
12517         * support/valdiag/valdiag.py,
12518         * support/valdiag/tests/*
12519
12520 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12521
12522         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12523         * src/SDCCsymt.c (newEnumType),
12524         * src/SDCCsymt.h
12525         * support/Util/SDCCerr.c,
12526         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12527         enum related bugs.
12528         * support/regression/tests/enum.c: added test for enum values that
12529         require at least 2 bytes of storage.
12530
12531 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12532
12533         * src/common.h: added ifndef/define/endif macros
12534         around the header file.
12535         Bug reported from Jesus Calvino-Fraga
12536
12537 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12538
12539         * sdcc.spec: updated
12540         * device/include/Makefile.in: don't install CVS directories
12541         * device/lib/Makefile.in: added removal of CVS directories after install
12542         * doc/Makefile: fixed install, added local_icons
12543         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12544         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12545         * src/ds390/gen.c (genRightShift): fixed bug #870788
12546         * src/SDCCast.c (decorateType): fixed bug #870781
12547
12548 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12549
12550         PIC16 port related changes:
12551         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12552         added variable stackPos,
12553
12554         * gen.c: genCall, assignResultValue: added support for
12555         pushing/retrieving function parameters to/from stack,
12556         genFunction,genEndFunction: setup stack frame for the
12557         generated function,
12558         genAddrOf: will be changed according to bug 863624
12559
12560         * added files genutils.c and genutils.h which contain gen*
12561         debugged and optimised functions extracted from gen.c
12562
12563         * glue.c: added variable 'externs' which holds extern symbols,
12564         pic16emitRegularMap: is modified to properly handle relocatable
12565          symbols under the new scheme,
12566         pic16createInterruptVect: is modified
12567         pic16printPublics: is modified to emit 'global' assembler directives,
12568         added pic16_printExterns to print extern symbols,
12569         pic16glue: initializes stack/frame pointer in the beginning of
12570         the assembly output. Temporary hack, will be corrected later,
12571         because gplink yet does not support stack and SDCC does not
12572         yet support a type of crt0.o object to create the final binary.
12573
12574         * Removed many lines that contain 8051 legacy code.
12575         * The code is finally placed under a 'code' directive.
12576         * Added port specific options.
12577
12578         * _process_pragma: simplified since now we do not need *special*
12579         include file to define SFR registers. But a separate header
12580         will be needed. This will be developed later.
12581         * _pic16_parseOptions: added, parses port specific options:
12582         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12583         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12584         --preplace-udata-with=
12585
12586         * _pic16_setDefaultOptions: modified to initialize section names,
12587         but hack is temporarly out of order since it needs improvement.
12588         * _pic16_genAssemblerPreamble: configuration words are emitted by
12589         their address instead of their name. This part is incomplete and
12590         supports only the 18Fxx2 devices. Other devices will emit an error
12591         during assembly since they do not contain the same set of config
12592         registers
12593         * _pic16_genIVT: is modified,
12594
12595         * pcode.c: added definitions for some hardware registers that are needed
12596         for stack support
12597         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12598         All PCI entries are updated. Now LFSR is supported.
12599         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12600         * added pic16_newpCodeOpLit2 to support instructions with
12601         two literal arguments
12602         * pic16_pCode2str: corrected code that emits assembler instructions
12603         with two literal operands and those that have an access bit modifier
12604         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12605         this fixes a bug which caused some labels to be lost, when an
12606         assembler directive was added, i.e. banksel,
12607         * pic16_FixRegisterBanking: improved logic that causes the insertion
12608         of bank switching,
12609         * InlineFunction: functions that are called once, are not any more
12610         inlined. This can be a port option in the future,
12611
12612         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12613
12614         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12615         hold the corresponding uninitialized symbols,
12616         * pic16_allocProcessorRegister: registers have explicit marked the
12617         accessBank field,
12618         * pic16_allocInternalRegister: registers are explicit marked as
12619         not used,
12620         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12621         processing list, so bit registers were lost,
12622         *
12623
12624         * ralloc.h: added field 'accessBank' and original symbol operand
12625         in register definition,
12626         * removed the field isMapped from register definition,
12627
12628         ** Several functions have been removed from various sources:
12629         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12630         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12631         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12632         pic16_assignRelocatableRegisters
12633
12634         ** others have been introduced:
12635         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12636         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12637
12638 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12639
12640         * support/scripts/inc2h.pl: changed definition of BIT_AT
12641         to emit 'sbit at' instead of 'bit at'. This was a request.
12642
12643         PIC16 port related preliminary changes:
12644         * gen.c: prefixed function popRegFromString with
12645         pic16_ and all references to it corrected
12646         * pcode.c: all pic16_pc_* hardware registers prefixed
12647         with underscore (_),
12648         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12649         * ralloc.c: newReg(): when register is REG_SFR then
12650         set address to rIdx,
12651         pic16_allocProcessorRegister(): marks register wasUsed=0
12652         pic16_writeUsedRegs(): added a call to assign processor
12653         registers via pic16_assignFixedRegisters
12654
12655 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12656
12657         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12658         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12659         variables in unused register banks.  Also the SSEG is placed
12660         wherever there is enough space for it, and IDATA can be anywhere
12661         in internal RAM.  For now compile using -Wl-Y[stack_size].
12662         The mem file is different for this option as well, since it
12663         makes no sense of talking about DSEG lenght.
12664
12665 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12666
12667         * src/SDCClrange.c: fixed bug 869095 that caused segfault
12668         in certain cases, e.g. when ROM assignment, patch provided
12669         from Albert den Haan.
12670
12671 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12672
12673         Many signedness and type propagation fixes:
12674         * src/SDCCicode.c: made geniCodeCast() static
12675         replaced SPEC_ by IS_ (cosmetic)
12676         (operandOperation): fixed div and mod operation
12677         (usualBinaryConversions): added support for promotion of char
12678         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12679         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12680         (geniCodeAdd): an array index will stay unsigned, even if promoted
12681         from char to int
12682         (geniCodeArray): ditto
12683         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12684         * src/SDCCsymt.c (computeType): added more support for char;
12685         promotion of char is selectable by promoteCharToInt, fixed signedness
12686         for all cases
12687         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12688         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12689         * src/SDCCval (val*): replaced signedness calculation by
12690         computeType()
12691         rearranged if-branches (cosmetic)
12692         (valShift): added warning W_SHIFT_CHANGED
12693         (valCompare): fixed problem with different types
12694         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12695         * support/regression/tests/literalop.c: added many cases
12696         * support/regression/tests/ast_constant_folding.c: changed finally to
12697         'unsigned int'
12698         * .version: new year, new version: 2.3.7
12699         * src/SDCCmain.c (main): applied patch #866468
12700         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12701         provided by Scott Bronson
12702         * doc/sdccman.lyx: updated documentation for sdcdb
12703         updated and added chapter tips
12704
12705 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12706
12707         * src/SDCCsymt.h: missing from yesterday's commits
12708
12709 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12710
12711         * src/SDCC.y (struct_or_union_specifier),
12712         * support/Util/SDCCerr.c,
12713         * support/Util/SDCCerr.h: verify that struct & union tags are used
12714         as declared.
12715
12716 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12717
12718         * src/SDCCglobl.h: missing from yesterday's commits
12719
12720 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12721
12722         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12723         sft_attributes, struct_declaration, parameter_declaration,
12724         type_name, start_block, declaration_list),
12725         * src/SDCC.lex (check_type): support redefinition of typedef names
12726
12727 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12728
12729         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12730         aligned xdata arrays. Erik helped me with the if clause.
12731
12732 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12733
12734         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12735         warning
12736
12737 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12738
12739         * src/SDCCast.h,
12740         * src/SDCCast.c (newAst_),
12741         * src/SDCCicode.h,
12742         * src/SDCCicode.c (ast2iCode, newiCode),
12743         * src/SDCCglobl.h,
12744         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12745         expr, statement, expression_statement, selection_statement,
12746         iteration_statement, expr_opt, jump_statement): foundation for tracking
12747         sequence points
12748         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12749         point code too)
12750
12751 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12752
12753         * support/Util/SDCCerr.c,
12754         * src/SDCCast.h,
12755         * src/SDCCast.c (createCase, createDefault, decorateType),
12756         * src/SDCClabel.c (labelUnreach),
12757         * src/SDCC.y (labeled_statement, jump_statement): More improvements
12758         to error messages.
12759         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12760         (with thanks to Stas Sergeev)
12761         * device/include/time.h,
12762         * device/lib/time.c (CheckTime): suppress unreachable code warning
12763
12764 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12765
12766         * src/SDCCast.c (createIvalCharPtr),
12767         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12768         bug #753752)
12769         * support/regression/tests/nullstring.c: tests for these two bugs
12770
12771 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12772
12773         * support/Util/SDCCerr.h,
12774         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12775         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12776         about storage class and 'at' used inside struct or union
12777         * src/SDCCBBlock.c (iCodeFromeBBlock),
12778         * src/SDCCcse.c (ifxOptimize),
12779         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12780         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12781         printIval, emitStaticSeg, emitOverlay),
12782         * src/SDCClabel.c (deleteIfx),
12783         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12784         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12785         gatherAutoInit, processParms),
12786         * support/Util/SDCCerr.h,
12787         * support/Util/SDCCerr.c (werrorfl): Support for better error location
12788         reporting for post-parse errors.
12789
12790 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12791
12792         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12793         implicit casts via union; they don't work on big endian systems
12794         (possible fix for bug #861138)
12795
12796 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12797
12798         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12799         * src/mcs51/main.c: fixed the fix for bug #737001
12800
12801 2003-12-15  Borut Razem <borut.razem AT siol.net>
12802
12803         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12804
12805 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12806
12807         * support/makebin/makebin.c: put output in binary mode
12808
12809 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12810
12811         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12812         xdata and data memory on startup. Set the environment variable
12813         SDCC_NOGENRAMCLEAR to disable this.
12814         * src/mcs51/peephole.def,
12815         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12816         (allows non-interrupt and interrupt code to safely compete for a resource
12817         without the non-interrupt code having to disable interrupts)
12818
12819 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12820
12821         * src/SDCCicode.c (geniCodeAdd),
12822         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12823         with valFromType if type might be a pointer and host is big endian).
12824         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12825         types, not just integer types.
12826         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12827         multiply defined with mismatching "at" address.
12828
12829 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12830
12831         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12832         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12833         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12834         with embedded nulls (fixed bug #753752)
12835
12836 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12837
12838         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12839         Apparently this did not see much testing (endless loop)
12840
12841 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12842
12843         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12844
12845 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12846
12847         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12848         gracefully handle NULL memmap pointers
12849
12850 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12851
12852         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12853         instead of deleting the iCode when an operand is volatile
12854         * src/z80/gen.c (genDummyRead),
12855         * src/mcs51/gen.c (genDummyRead),
12856         * src/ds390/gen.c (genDummyRead),
12857         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12858         not just IC_RIGHT
12859         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12860         * src/SDCC.y: fixed bug #850420
12861
12862 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12863
12864         Applied z80 i/o port patch from Peter Townson and fixed some operators
12865         to better handle operands in A register.
12866         * device/include/z180.h
12867         * src/SDCC.y
12868         * src/SDCCglue.c
12869         * src/z80/gen.c
12870         * src/z80/gen.h
12871         * src/z80/main.c
12872         * src/z80/peeph-z80.def
12873         * src/z80/peeph.def
12874         * src/z80/z80.h
12875
12876 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12877
12878         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12879
12880 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12881
12882         * device/lib/hc08/_mullong.c: Removed extra #endif
12883
12884 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12885
12886         * sim/ucsim/hc08.src/inst.cc,
12887         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12888         carries from x to h
12889         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12890         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12891         * device/include/stdarg.h: fixed varargs for hc08
12892         * device/lib/Makefile.in,
12893         * device/lib/hc08/Makefile,
12894         * device/lib/hc08/_mulint.c,
12895         * device/lib/hc08/_mullong.c: fixed some endian problems
12896
12897 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12898
12899         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12900         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12901         * device/lib/_gptrget.c,
12902         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12903
12904 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12905
12906         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12907         * src/SDCCast.c (astErrors): fixed bug #846007
12908         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12909
12910 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12911
12912         * src/SDCCast.c (decorateType): disabled a transformation I added in
12913         revision 1.188 (access to fields of a structure at an absolute address);
12914         it breaks with bitfields, extern declarations, and gcse analysis.
12915         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12916         could be assigned through a pointer, so don't complain.
12917         * src/SDCCast.c (astErrors),
12918         * src/SDCCast.h,
12919         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12920
12921 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12922
12923         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12924         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12925         output of __config directives, since gpasm now supports them
12926         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12927         pre-processor macro, i.e. -DMCU=p18f452
12928         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12929         and modified to handle 'cast' icode similarly to '=' icode
12930         * src/pic16/device.h (typedef struct PIC_device): added field
12931         'extMIface' to indicate that chip has external memory interface
12932         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12933         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12934         18F8720
12935
12936 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12937
12938         * src/SDCC.y (pointer): fixed bug #846006
12939         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12940         * src/SDCCast.c (decorateType): fixed bug #846009
12941         * src/ds390/peeph.def,
12942         * src/ds390/gen.c (genAnd, genOr),
12943         * src/mcs51/peeph.def,
12944         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12945
12946 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12947
12948         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12949         * src/SDCCdflow.c
12950         * src/SDCCcse.c
12951         * src/SDCCcse.h
12952         * src/SDCCBBlock.h
12953         * src/SDCCBBlock.c
12954
12955 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
12956
12957         fixed bug #845089
12958         * src/SDCCbitv.h,
12959         * src/SDCCbitv.c: added function to free a bitvector
12960         * src/SDCClrange.h,
12961         * src/SDCClrange.c: added function to recompute the liveranges
12962         * src/avr/ralloc.c,
12963         * src/ds390/ralloc.c,
12964         * src/hc08/ralloc.c,
12965         * src/mcs51/ralloc.c,
12966         * src/pic/ralloc.c,
12967         * src/pic16/ralloc.c,
12968         * src/xa51/ralloc.c,
12969         * src/z80/ralloc.c: recompute the liveranges after register packing
12970
12971 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
12972
12973         * src/SDCCloop.c (newInduction): fixed bug #845630
12974
12975 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12976
12977         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
12978         inadvertantly left behind from my 2003-11-12 change
12979
12980 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12981
12982         Updated headers I neglected to commit yesterday.
12983         * src/SDCClrange.h,
12984         * src/SDCCicode.h
12985
12986 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12987
12988         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
12989         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
12990         * src/SDCCopt.c (eBBlockFromiCode),
12991         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
12992         the creation of the key hash table from the sequencing so it can be used
12993         earlier (for some GCSE bug fixes still pending)
12994
12995 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12996
12997         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
12998         * support/regression/tests/addsub.c: testing genPlus shortcut
12999
13000 2003-11-15  Borut Razem <borut.razem AT siol.net>
13001
13002         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13003
13004 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13005
13006         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13007         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13008         ordering is immaterial.
13009         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13010
13011 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13012
13013         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13014         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13015         (SIGSEV) of bug #840381
13016         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13017         unlink new file before rename if new and old filenames are the same)
13018
13019 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13020
13021         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13022         uninitialized variables) for the mcs51. Set environment variable
13023         SDCC_GENRAMCLEAR to test.
13024         xdata initialization slightly shorter
13025
13026 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13027
13028         * src/SDCCsymt.h,
13029         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13030         #838241 & 780691 (basicly the same bug)
13031         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13032         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13033
13034 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13035
13036         * src/SDCCmain.c (linkEdit): "fix" #834252
13037
13038 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13039
13040         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13041         * src/SDCCast.h,
13042         * src/SDCC.y: fixed bug #819403
13043
13044 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13045
13046         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13047         the reentrant attribute.
13048         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13049         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13050         simulation
13051         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13052         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13053         erroneously reduced to a literal.
13054         * src/hc08/ralloc.c (packRegisters, rematStr),
13055         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13056         some cases
13057
13058 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13059
13060         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13061         * doc/sdccman.lyx: changed from 'article' to 'book'
13062         * doc/Makefile: readded test_suite_spec and cdbfileformat
13063
13064 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13065
13066         * device/include/stdlib.h: include malloc.h to comply with ANSI
13067         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13068
13069 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13070
13071         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13072         * doc/clean.mk: also remove *.out files
13073         * doc/sdccman.lyx: some additions, larger top/bottom margins
13074
13075 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13076
13077         * src/SDCC.y: fixed bug #837365
13078         * support/regression/tests/bitopcse.c
13079         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13080         a symbol (might be valop instead)
13081         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13082         * device/lib/clean.mk: added hc08 to the cleaning list
13083
13084 2003-11-04  Borut Razem <borut.razem AT siol.net>
13085
13086         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13087           made 2003-11-04
13088         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13089           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13090           malloc is declared in standard stdlib.h
13091
13092 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13093
13094         * device/lib/hc08/Makefile: need to clean .rel not .o files
13095         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13096
13097 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13098
13099         * src/port.h,
13100         * src/hc08/main.c,
13101         * src/mcs51/main.c,
13102         * src/ds390/main.c,
13103         * src/z80/main.c,
13104         * src/avr/main.c,
13105         * src/pic/main.c,
13106         * src/pic16/main.c,
13107         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13108         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13109         tests (which uses the port's oclsExpense function)
13110         * src/SDCC.y,
13111         * src/SDCCast.c,
13112         * src/SDCCicode.c,
13113         * src/hc08/gen.c,
13114         * src/ds390/gen.c,
13115         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13116
13117 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13118
13119         * src/SDCCcse.c (ifxOptimize),
13120         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13121         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13122         deleting the IFX iCode.
13123         * src/hc08/ralloc.c: reduced unneeded slocs
13124         * src/hc08/gen.c: fixed bug in asmopToBoolean
13125
13126 2003-11-04  Borut Razem <borut.razem AT siol.net>
13127
13128         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13129           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13130           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13131           transferred to configure
13132
13133 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13134
13135         Use headers defined in the C[++] standards:
13136         * sim/ucsim/gui.src/serio.src/fileio.cc
13137         * sim/ucsim/gui.src/serio.src/frontend.cc
13138         * sim/ucsim/gui.src/serio.src/main.cc
13139         * sim/ucsim/gui.src/serio.src/posix_signal.cc
13140         * support/Util/NewAlloc.c
13141         * as/hc08/lklibr.c
13142         * as/mcs51/lklibr.c
13143         * as/z80/aslist.c
13144         * as/z80/assym.c
13145
13146 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13147
13148         * Added MSVC projects for hc08 assembler and linker:
13149         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13150         /as/hc08/link_hc08.dsp
13151
13152 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
13153
13154         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
13155
13156 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
13157
13158         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
13159
13160 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13161
13162         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
13163
13164 2003-10-31  Borut Razem <borut.razem AT siol.net>
13165
13166         * support/cpp2/cpplib.h,
13167           support/cpp2/cpplib.c,
13168           support/cpp2/cpplex.c,
13169           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
13170           to switch _asm block preprocessing on / off. Default is
13171           #pragma preproc_asm +
13172
13173 2003-10-31  Borut Razem <borut.razem AT siol.net>
13174
13175         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
13176           when outputting comment blocks (when executed with -C option) and
13177           _asm (SDCPP specific) blocks
13178
13179 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13180
13181         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
13182
13183 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
13184
13185         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
13186
13187 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13188
13189         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13190         * src/SDCCast.c (decorateType): fixed bug #832664
13191
13192 2003-10-31  Borut Razem <borut.razem AT siol.net>
13193
13194         * support/cpp2/cpplex.c: fixed for SDCPP:
13195           comments(when executed with -C option) and _asm blocks
13196           were included even if they where in skipped #if block.
13197           Applied solution from GCC cpp 3.3.2
13198
13199 2003-10-31  Borut Razem <borut.razem AT siol.net>
13200
13201         * src/SDCC.lex: sdcc now understands both formats:
13202           '# <line_number> <file_name>' and
13203           '#line <line_number> <file_name>'
13204         * support/cpp2/cppmain.c: sdcpp now generates the standard
13205           '# <line_number> <file_name>' instead of former
13206           '#line <line_number> <file_name>'
13207
13208 2003-10-30  Borut Razem <borut.razem AT siol.net>
13209
13210         * support/cpp2/cpphash.h,
13211         * support/cpp2/cpplib.h
13212         * support/cpp2/cpplex.c,
13213         * support/cpp2/cppmain.c,
13214         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13215
13216 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13217
13218         Fixed a number of problems revealed by bug #827883.
13219         * src/SDCCloop.c (loopInvariants): Spill location of the
13220         result operand should be recomputed if extracted from
13221         a loop. Also, don't extract assignments of an iTemp
13222         from a literal.
13223         * src/SDCCast.c (isConformingBody): loop reversal should
13224         not occur if the control variable is involved with a
13225         relational operator.
13226
13227 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13228
13229         * .version: bumped to 2.3.6 to reflect the big improvements
13230         made by Erik and Klaus. Thanks!
13231
13232 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13233
13234         Replaced the livrange code.
13235         * src/SDCClrange.c: added new LR code
13236         * src/SDCCloop.c,
13237         * src/SDCCBBlock.h: removed remainig parts from old LR code
13238         * src/ds390/ralloc.c,
13239         * src/ds390/gen.c: minor fixes to make it work with new code
13240
13241 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13242
13243         * as/hc08/asm.h,
13244         * as/hc08/lkrloc.c,
13245         * src/hc08/gen.c,
13246         * src/hc08/ralloc.c: Fix various warnings related to the hc08
13247         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13248         (tweaked fix for bug #818696)
13249
13250 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13251
13252         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13253
13254 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13255
13256         * src/SDCCmain.c,
13257         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13258         * src/mcs51/gen.c (gencjneshort),
13259         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13260         more efficient (per Scott Bronson's suggestion)
13261
13262 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13263
13264         Extended the semantics of the critical keyword to include
13265         individual statements. See RFE #827755 and #799831
13266         * src/SDCC.y
13267         * src/SDCCicode.c
13268         * src/SDCCopt.c
13269         * src/SDCCast.c
13270         * support/Util/SDCCerr.c
13271         * support/Util/SDCCerr.h
13272         * src/mcs51/gen.c
13273         * src/ds390/gen.c
13274         * src/hc08/gen.c
13275
13276 2003-10-19  Borut Razem <borut.razem AT siol.net>
13277
13278         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13279
13280 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13281
13282         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13283         Fixed bug #818696
13284         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13285         and predecrement operand is displayed
13286
13287 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13288
13289         * src/SDCCval.c (valMinus): fixed bug #826041
13290
13291 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13292
13293         Some hc08 related updates that I missed earlier
13294         * sim/ucsim/stypes.h
13295         * support/regression/ports/hc08/spec.mk
13296
13297 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13298
13299         New target "hc08" for the Motorola 68hc08 family of micros
13300
13301         * configure
13302         * configure.in
13303         * Makefile
13304         * src/hc08/*
13305         * src/SDCCmain.c
13306         * src/port.h
13307         * sim/ucsim/hc08.src/*
13308         * sim/ucsim/configure.in
13309         * src/ucsim/configure
13310         * sim/ucsim/packages_in.mk
13311         * as/hc08/*
13312         * as/Makefile
13313         * device/include/mc68hc908qy.h
13314         * device/lib/hc08/*
13315         * device/lib/Makefile.in
13316         * support/regression/ports/hc08/*
13317         * support/regression/Makefile
13318
13319 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13320
13321         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13322         regression test
13323         * src/ds390/gen.c (genCast): fixed bug #821957
13324
13325 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13326
13327         * device/lib/logf.c: "fixed" overlay bug
13328         * support/regression/ports/host/spec.mk: added m library
13329         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13330         * support/regression/tests/float_trans: added (for Eric)
13331
13332 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13333
13334         * src/mcs51/gen.c (genCpl): fixed bug
13335         http://sf.net/mailarchive/message.php?msg_id=6263915
13336
13337 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13338
13339         * src/SDCCast.c (decorateType): added extended constant folding
13340         * src/SDCCsymt.c (computeType): cleanup
13341         * src/SDCCval.c (valShift): minor optimization
13342         * support/regression/tests/ast_constant_folding.c: added
13343
13344 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13345
13346         * src/SDCCmain.c: removed some unintended changes
13347
13348 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13349
13350         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13351         * src/z80/gen.c: fixed part of bug #817589
13352         * src/SDCCsymt.c (checkFunction): fixed bug #817895
13353
13354 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13355
13356         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13357         * src/SDCCcflow.c
13358         * src/SDCCcse.c
13359         * src/SDCCdflow.c
13360         * src/SDCClabel.c
13361         * src/SDCClrange.c
13362         * src/SDCCmem.c
13363         * src/SDCCopt.c
13364         * src/SDCCpeeph.c
13365         * src/SDCCset.c
13366         * src/avr/ralloc.c
13367         * src/ds390/ralloc.c
13368         * src/izt/ralloc.c
13369         * src/mcs51/ralloc.c
13370         * src/pic/ralloc.c
13371         * src/pic16/ralloc.c
13372         * src/xa51/ralloc.c
13373         * src/z80/ralloc.c
13374         * src/z80/gen.c: removed unused label "release:"
13375
13376 2003-10-06  Borut Razem <borut.razem AT siol.net>
13377
13378         * src/SDCC.lex: removed definition of unused variables
13379           save_optimize and save_options
13380
13381 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13382
13383         * clean.mk: removed '=' in "-maxdepth=1"
13384         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13385         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13386
13387 2003-10-06  Borut Razem <borut.razem AT siol.net>
13388
13389         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13390           my_unput() replaced by unput()
13391
13392 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13393
13394         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13395         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13396         type-punned pointer will break strict-aliasing rules"
13397         Old LR behaviour is again default; Klaus' LR can be choosen by
13398         defining the environment variable LRKLAUS
13399         * src/SDCCBBlock.h
13400         * src/SDCCloop.c
13401         * src/SDCClrange.c
13402         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13403         * clean.mk: fixed removal of files in bin/CVS/
13404         * device/lib/clean.mk: fixed removal of directories small and large
13405         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13406         * src/SDCCicode.c,
13407         * src/SDCCval.c: removed superflous test for pedantic
13408
13409 2003-10-05  Borut Razem <borut.razem AT siol.net>
13410
13411         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13412           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13413           message "unmatched #pragma SAVE and #pragma RESTORE"
13414
13415 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13416
13417         * doc/sdccman.lyx: various additions and updates (interrupts, inline
13418           assembly, critical functions, atomic, nojtbound)
13419
13420 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13421
13422         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13423         * src/SDCCBBlock.h
13424         * src/SDCCloop.c
13425         * src/SDCCloop.h
13426         * src/SDCClrange.c
13427
13428 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13429
13430         * src/z80/gen.h,
13431         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13432         * src/mcs51/gen.h
13433         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13434         * src/ds390/gen.h
13435         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13436         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13437         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13438
13439 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13440
13441         * src/z80/gen.c (genRet): fixed bug #524753
13442         * src/z80/gen.c (genCast): fixed internal error on cast from
13443         pointer to long
13444         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13445         fix for bug #477835 to the z80
13446         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13447         for tracking iCodes in the peephole optimizer for z80
13448
13449 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13450
13451         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13452         the other part of bug #814548
13453         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13454
13455 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
13456
13457         * src/SDCCcse.c: fixed part of bug #814548
13458
13459 2003-09-28  Borut Razem <borut.razem AT siol.net>
13460
13461         * src/asm.c: rewrite of printILine() to use temporary file instead
13462           a pipe
13463         * src/xa51/main.c: commented out declaration of int rewinds
13464
13465 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13466
13467         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13468
13469 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13470
13471         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13472         * src/asm.c (printILine): Fixed bug #811015
13473
13474 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13475
13476         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13477         freeing.
13478
13479 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13480
13481         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13482         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13483         to correctly handle general case of AOP_PAIRPTR
13484         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13485
13486 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13487
13488         * src/mcs51/ralloc.c (fillGaps),
13489         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13490         register positioning bug)
13491
13492 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13493
13494         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13495
13496 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13497
13498         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13499         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13500         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13501         (ralloc doesn't intentionally do this now, but perhaps later)
13502         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13503         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13504         register positioning bugs (Fixed bug #762602 and #795325)
13505         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13506         (Fixed bug #808779)
13507         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13508         lines that --i-code-in-asm generates
13509
13510 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13511
13512         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13513         trying to fclose a FILE* that was already closed.
13514
13515 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13516
13517         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13518         of const struct should be treated as if const themselves)
13519
13520 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13521
13522         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13523
13524 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13525
13526         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13527         Unix (/n) and DOS (/r/n) line terminations.
13528
13529 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13530
13531         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13532         bug #613775
13533
13534 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13535
13536         * src/mcs51/gen.c (genFunction, genEndFunction),
13537         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13538         and restore of EA so that stack offsets to parameters are
13539         correct when using both critical and reentrant/stack-auto.
13540         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13541         size (can be triggered in error if sloc is shared between
13542         different sized objects)
13543         * device/include/float.h: fixed macros to explicitly use
13544         unsigned long where needed
13545
13546 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13547
13548         Feature req. 799831: added code to allow nesting of critical functions
13549         * src/mcs51/gen.c (genFunction, genEndFunction)
13550         * src/ds390/gen.c (genFunction, genEndFunction)
13551
13552 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13553
13554         * src/SDCCsymt.c (sclsFromPtr),
13555         * src/SDCCsymt.h,
13556         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13557         support for standard C idiom of memory mapped variables; for
13558         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13559         to xdata int at 0x1234 tempvar = 1.
13560         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13561         provided by Akiya ISHIDA
13562
13563 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13564
13565         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13566         * src/SDCCval.c (constVal): added reduction from int to char
13567         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13568         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13569         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13570         to ignore the sign
13571         * support/regression/tests/shifts.c: fixed
13572
13573 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13574
13575         * src/z80/gen.c (genXor): Fixed bug #805445
13576
13577 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13578
13579         Fixed bug #621531 (const & volatile confusion in the type chain).
13580         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13581         refer to the const or volatile state of the pointer itself.
13582
13583         * src/SDCCast.c
13584         * src/SDCCglue.c
13585         * src/SDCCicode.c
13586         * src/SDCCsymt.c
13587         * src/SDCCval.c
13588         * src/SDCC.y
13589         * src/SDCCsymt.h
13590         * src/pic/gen.c
13591         * src/pic/ralloc.c
13592         * src/pic16/gen.c
13593         * src/pic16/ralloc.c
13594         * support/regression/tests/const.c
13595
13596 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13597
13598         When checking for duplicated modules, use absolute paths
13599         instead of relative paths.  Files changed:
13600
13601         * as/mcs51/lklib.c
13602         * link/z80/lklib.c
13603
13604 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13605
13606         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13607
13608 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13609
13610         * device/include/string.h: added size_t typedef, changed
13611         prototypes to use size_t, eliminated separate reentrant and
13612         non-reentrant declarations, added _memmove declaration
13613         * device/lib/_memcpy.c: changed to use size_t instead of int,
13614         changed /4 to >>2 to avoid division library call
13615         * device/lib/_memcmp.c,
13616         * device/lib/_memset.c,
13617         * device/lib/_strncat.c,
13618         * device/lib/_strncpy.c,
13619         * device/lib/_strncmp.c: changed to use size_t instead of int
13620         * device/lib/_memmove.c: new file (fixed bug #772294)
13621         * device/lib/Makefile.in: added _memmove.c
13622         * device/lib/z80/asm_strings.s: fixed bug #772290
13623         * support/regression/tests/bitfields.c: attempt to fix host assertion
13624         failure on amd64-unknown-linux2.2
13625
13626 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13627
13628         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13629         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13630         * as/z80/asmain.c (main): fixed bug #801766
13631
13632 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13633
13634         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13635         compilers
13636
13637 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13638
13639         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13640         reported in bug #800609
13641
13642 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
13643
13644         * Top header beautifications in src/pic16 directory:
13645           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13646           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13647           pcoderegs.h, ralloc.c, ralloc.h
13648         * main.c: added top header and GPL license notice
13649         * pcode.c: fixed the if-conditional warning
13650
13651 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
13652
13653         * device/lib/_mullong.c: replaced int by short for gcc
13654
13655 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13656
13657         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13658         and JUMPTABLE iCodes properly now (worked by accident before)
13659         * src/mcs51/gen.c (leftRightUseAcc),
13660         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13661         iCode properly now. Use getSize instead of nRegs since a & b
13662         aren't part of the nRegs tally.
13663
13664 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
13665
13666         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13667         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13668           before instructions that use the _STATUS register
13669
13670 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
13671
13672         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13673         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13674         fetching of the pointer
13675         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13676         copied from genNearPointerSet()
13677         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13678         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13679         If they pop r0/r1 they must be called in the opposite order than aopOp().
13680         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13681         (resp. --stack-auto), prepared for --xstack
13682
13683 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13684
13685         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13686
13687 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13688
13689         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13690         these ports have their own __sdcc_external_start()
13691
13692 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
13693
13694         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13695         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13696         type for bits was changed. It resulted in bit variables becoming
13697         global, which is not permitted in PIC 14 assembly output.
13698
13699 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13700
13701         * doc/sdccman.lyx: various additions and updates. Rearranged sections
13702
13703 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13704
13705         Z80 and MCS51 linkers complaint if a public symbol is defined
13706         in more than one library module:
13707
13708         * as/mcs51/lklib.c
13709         * link/z80/lklib.c
13710         * as/mcs51/Makefile.in
13711
13712 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13713
13714         A few small changes that speed up the peephole optimizer.
13715
13716         * src/SDCCpeeph.c
13717
13718 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13719
13720         Try to make the peephole optimizer smarter by maintaining
13721         an association between the assembly source code and the
13722         iCodes that originated them. Put this information to use
13723         with a new peephole rule condition "notVolatile" so that
13724         the rules can be aggressive yet still safe.
13725
13726         * src/SDCCpeeph.c
13727         * src/SDCCpeeph.h
13728         * src/mcs51/gen.c
13729         * src/mcs51/peeph.def
13730
13731 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13732
13733         Fixed bug #741761
13734
13735         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13736         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13737         if the left or right operand symbols have the accuse flag set.
13738
13739 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13740
13741         Changed the type of the result of the ! (NOT) operator to char;
13742         previously it returned the same type as the source. This allows
13743         us to eliminate all the genFloatNot functions (all of its target
13744         implementations were very buggy) since !float can use the same
13745         code as !long now.
13746
13747         * src/SDCCicode.c (ast2iCode): ! returns char
13748         * src/mcs51/gen.c (genNot, genNotFloat),
13749         * src/ds390/gen.c (genNot, genNotFloat),
13750         * src/z80/gen.c (genNot, genNotFloat),
13751         * src/pic/gen.c (genNot, genNotFloat),
13752         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13753
13754 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
13755
13756         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13757         1. Interrupt would not compile properly. Ensure PCLATH register is saved
13758            during interrupts. Ensure WSAVE is located at a shared bank address.
13759         2. Fixed page selection in some places
13760         3. Fixed BTFSS/C to where necessary use registers directly and not simply
13761            the registers name strings.
13762         4. Fixed "signed / unsigned compare" compiler warnings.
13763         5. The PIC port manages its own allocation of the general purpose
13764            registers, but makes no attempt to reuse them. As a result when
13765            compiling it soon runs out of general purpose registers. Some
13766            additional code was added to the files pcode.c and device.c to walk
13767            through the function call tree and rename the registers so that they
13768            get reused.
13769
13770         * src/pic/device.c
13771         * src/pic/gen.c
13772         * src/pic/glue.c
13773         * src/pic/pcode.c
13774         * src/pic/pcode.h
13775         * src/pic/ralloc.c
13776         * src/pic/ralloc.h
13777         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13778         genPlus() & genMinus() when the result is the same as left or right
13779
13780 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13781
13782         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13783
13784 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13785
13786         Made bitfield a distinct type from bit so that bitfields
13787         convert as per ANSI C and bits retain their traditional
13788         boolean style behaviour. Implemented bitfield support in
13789         the z80 port.
13790
13791         * src/SDCCsymt.h,
13792         * src/SDCCsymt.c,
13793         * src/SDCCast.c,
13794         * src/cdbFile.c,
13795         * src/mcs51/gen.c,
13796         * src/ds390/gen.c: bit v bitfield split
13797         * src/z80/gen.c: New support for bitfields
13798         * support/regression/tests/bitfields.c: reenabled z80,
13799         added more tests
13800
13801 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13802
13803         Rules 246.x, 247.x relate to bitfields, the others speed up
13804         access to xdata mapped I/O devices.
13805
13806         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13807
13808 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13809
13810         Cleaned up genPackBits and genUnpackBits and added two helper
13811         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13812         for literal assignments in genPackBits (thanks to Frieder for
13813         reminding me).
13814
13815         * src/mcs51/gen.c
13816         * src/ds390/gen.c
13817
13818 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13819
13820         Fixed bug #748310 (pointer to function type mishandled when the
13821         function name is omitted). Also fixed a SIGSEGV when a function
13822         attribute (reentrant, etc) is used on a non-function or on a
13823         function but misplaced before the parameter list.
13824
13825         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13826         bug #748310
13827         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13828         * support/Util/SDCCerr.h,
13829         * support/Util/SDCCerr.c: Added func attr misuse error msg
13830
13831 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13832
13833         Fixed bug #787649 by anonymous
13834         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13835         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13836
13837 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13838
13839         Fixed numerous bitfield problems.
13840
13841         * src/SDCC.y: More bitfield related error checking
13842         * src/SDCCsymt.h,
13843         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13844         * support/Util/SDCCerr.h,
13845         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13846         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13847         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13848         * support/regression/tests/bitfields.c: tests added
13849
13850 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13851
13852         Made the constant following the "interrupt" keyword optional. If
13853         omitted, the function will not automatically be given an entry
13854         in the interrupt vector table (similar to #pragma NOIV, but
13855         less syntacticly kludgy). The interrupt number is also now
13856         range checked. Also fixed a bug in the high order bit example
13857         in the manual.
13858
13859         * src/SDCC.y
13860         * src/SDCCmem.c
13861         * src/SDCCglue.c
13862         * src/SDCCsymt.h
13863         * support/Util/SDCCerr.c
13864         * support/Util/SDCCerr.h
13865         * doc/sdccman.lyx
13866
13867 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13868
13869         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13870         * src/SDCCicode.c (operandOperation): rewritten some ops
13871         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13872         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13873         other type
13874         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13875         be re-activated by defining REDUCE_LITERALS)
13876         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13877         unsigned, but are signed by default
13878         * src/SDCCval.c (constVal): rearranged
13879         * src/SDCCval.c (valMod): preliminary fix
13880         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13881         * support/regression/literalop.c: added, work in progress
13882
13883 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13884
13885         Generate warnings for useless declarations like "char data;"
13886         that don't do what new users expect.
13887
13888         * src/SDCC.y
13889         * support/Util/SDCCerr.h
13890         * support/Util/SDCCerr.c
13891
13892 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13893
13894         * src/SDCCval.c (valMult): fix overflow detection of negative int
13895
13896 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13897
13898         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13899
13900         Changes to support big endian targets:
13901
13902         * src/ports.h
13903         * src/SDCCglue.c
13904         * src/avr/main.c
13905         * src/ds390/main.c
13906         * src/izt/i186.c
13907         * src/mcs51/main.c
13908         * src/pic/main.c
13909         * src/pic16/main.c
13910         * src/xa51/main.c
13911         * src/z80/main.c
13912
13913 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13914
13915         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13916         * device/lib/time.c: fixed warning "integer overflow in expression"
13917
13918 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13919
13920         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13921         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13922         constants are unsigned; added recognition of "u" flag for unsigned
13923         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13924         * src/SDCCval.c (valDiv, valMod): fixed signdness
13925         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13926         signedness of modulo, left and right shift
13927         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13928         * support/Util/SDCCerr.h: added warning W_INT_OVL
13929         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13930         * src/SDCCast.c (ast_print): improved output of constants
13931
13932 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13933
13934         Fixed some warnings when building with MSVC:
13935
13936         * as/mcs51/asdata.c
13937         * as/z80/asdata.c
13938         * as/mcs51/asm.h
13939         * as/z80/asm.h
13940         * link/z80/aslink.h
13941         * link/z80/lkdata.c
13942         * link/z80/lkeval.c
13943         * link/z80/lkgb.c
13944         * link/z80/lkihx.c
13945         * link/z80/lks19.c
13946         * link/z80/lksym.c
13947         * support/cpp2/cpplib.c
13948         * src/ds390/gen.c
13949         * src/mcs51/gen.c
13950
13951 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13952
13953         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
13954
13955 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13956
13957         * support/librarian/clean.mk: Do not remove Makefile.
13958         * support/librarian/Makefile: added.
13959
13960 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13961
13962         Added librarian to MSVC build:
13963         * all.dsp
13964         * sdcc.dsw
13965         * support/librarian/librarian.dsp
13966
13967         'configure' not needed for librarian, removed:
13968         * support/librarian/configure
13969         * support/librarian/configure.in
13970         * support/librarian/config_in.h
13971         * support/librarian/Makefile.in
13972
13973         Hopefully these ones built the librarian and the rest of sdcc properly:
13974         * Makefile
13975         * Makefile.common.in
13976
13977         Messed up 'configure', so revert to previous version:
13978         * configure
13979         * configure.in
13980
13981 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
13982
13983         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
13984         there, while the mantissa of a double is "only" 53 bits wide.
13985
13986 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13987
13988         Adding sdcclib to the build.  MSVC project coming soon.
13989         Files added/changed:
13990
13991         * support/librarian/clean.mk
13992         * support/librarian/configure
13993         * support/librarian/configure.in
13994         * support/librarian/config_in.h
13995         * support/librarian/Makefile.bcc
13996         * support/librarian/Makefile.in
13997         * support/librarian/sdcclib.c
13998         * Makefile.bcc
13999         * Makefile
14000         * Makefile.common.in
14001         * configure
14002         * configure.in
14003
14004 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14005
14006         Linker now complaints if linked modules have conflicting options, for
14007         example, one compiled using --model-large and another one compiled with
14008         --model-small.  The following files were modified:
14009
14010         * as/mcs51/asdata.c
14011         * as/mcs51/aslink.h
14012         * as/mcs51/asm.h
14013         * as/mcs51/asmain.c
14014         * as/mcs51/asout.c
14015         * as/mcs51/i51pst.c
14016         * as/mcs51/lkdata.c
14017         * as/mcs51/lklibr.c
14018         * as/mcs51/lkmain.c
14019         * as/z80/asdata.c
14020         * as/z80/asm.h
14021         * as/z80/asmain.c
14022         * as/z80/asout.c
14023         * as/z80/z80pst.c
14024         * link/z80/aslink.h
14025         * link/z80/lkdata.c
14026         * link/z80/lklibr.c
14027         * link/z80/lkmain.c
14028         * src/SDCCglue.c
14029
14030 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14031
14032         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14033         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14034
14035 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14036
14037         * src/z80/mappings.i: fix _mul[us][int,long] entries
14038
14039 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14040
14041         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14042
14043 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14044
14045         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14046         * support/regression/tests/bitopcse.c: added
14047         fixed warning:
14048         * src/avr/gen.c:
14049         * src/pic/gen.c:
14050         * src/pic16/gen.c:
14051         * src/z80/gen.c:
14052         * src/xa51/gen.c:
14053
14054 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14055
14056         added support for new library format to z80, gbz80 linkers:
14057         *link/z80/aslink.h
14058         *link/z80/lklex.c
14059         *link/z80/lklib.c
14060         *link/z80/lklist.c
14061
14062 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14063
14064         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14065         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14066
14067 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14068
14069         added DUMMY_READ_VOLATILE:
14070         * src/SDCC.y:
14071         * src/avr/gen.c:
14072         * src/xa51/gen.c:
14073         * src/z80/gen.c:
14074         * src/pic/gen.c:
14075         * src/pic16/gen.c:
14076         * src/mcs51/gen.c:
14077         * src/ds390/gen.c:
14078         * src/SDCCcse.c (algebraicOpts): many improvements
14079         * src/SDCCcse.h: removed algebraicOpts()
14080         * src/SDCCicode.c (picDummyRead): added
14081
14082 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14083
14084         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14085         "Insufficient space in data memory".
14086
14087 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14088
14089         * src/mcs51/gen.c: fixed bug #771358
14090         * src/z80/gen.c: fixed bug #759087
14091
14092 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14093
14094         * src/pic16/glue.c: minor cleanup by Vangelis
14095
14096 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14097
14098         * device/include/regc515c.h: fixed #758477
14099         * device/lib/_gptrget.c: saving some cycles in generic pointer get
14100         * device/lib/_gptrput.c: saved a few bytes
14101         * my tab spacing is 8, yours too?)
14102         * device/lib/_ser.c: process RX bytes earlier than TX bytes
14103         * device/lib/serial.c: process RX bytes earlier than TX bytes
14104         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14105
14106 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14107
14108         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14109
14110 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14111
14112     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14113
14114 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
14115
14116         * device/lib/Makefile.in: bad fix, reverted to 1.43
14117
14118 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
14119
14120         * device/lib/Makefile.in: added missing z80 object files
14121
14122 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
14123
14124         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14125         pic16 progress by Vangelis:
14126         * src/SDCCglobl.h:
14127         * src/SDCCmain.c:
14128         * src/pic/Makefile:
14129         * src/pic:
14130         * pic/Makefile:
14131         * pic16/device.c:
14132         * pic16/device.h:
14133         * pic16/gen.c:
14134         * pic16/gen.h:
14135         * pic16/genarith.c:
14136         * pic16/glue.c:
14137         * pic16/main.c:
14138         * pic16/pcode.c:
14139         * pic16/pcode.h:
14140         * pic16/pcodepeep.c:
14141         * pic16/peeph.def:
14142
14143 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14144
14145     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
14146
14147 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14148
14149     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14150     added gbz80 build to MSVC project.
14151     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
14152     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
14153     from 8051 stuff and setup so it links using a .lnk file.
14154
14155 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14156
14157     * support/librarian/sdcclib.c: sdcc librarian.
14158     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
14159     with sdcclib.
14160
14161 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14162
14163     * as/mcs51/lkmain.c: properly handle extensions in function afile.
14164
14165 2003-07-02  Borut Razem <borut.razem AT siol.net>
14166
14167         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
14168         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
14169         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
14170         src/xa51/main.c, src/z80/main.c:
14171         virtualization of glue() function: each port has it's own glue function,
14172         which is accessed by do_glue function pointer in PORT.general structure
14173
14174 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
14175
14176         * DS800C400 fun, improved ROM interface and tinibios.
14177
14178 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
14179
14180         * More support for DS80C400. Now includes beginning of interface to ROM.
14181
14182 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
14183
14184         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
14185
14186 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14187
14188         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14189
14190 2003-06-19  Borut Razem <borut.razem AT siol.net>
14191
14192         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14193
14194 2003-06-19  Borut Razem <borut.razem AT siol.net>
14195
14196         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14197         fixed Z80 port - crt0.o: cannot open.
14198
14199 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
14200
14201         * support/Util/MySystem.c (merge_command): revert bad fix
14202
14203 2003-06-18  Borut Razem <borut.razem AT siol.net>
14204
14205         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14206
14207 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14208
14209         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14210         option --use-stdout sends errors to stdout instead of stderr.
14211
14212 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
14213
14214         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14215
14216 2003-06-15  Borut Razem <borut.razem AT siol.net>
14217
14218         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14219         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14220         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14221         fixed width array of pointers replaced with sets;
14222         multiple include and lib paths ared transferred to preprocessor and linker
14223         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14224         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14225         fixed width array of pointers
14226         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14227         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14228         fixupPath(), getPathDifference()
14229         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
14230         fixed width array of pointers
14231
14232 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
14233
14234         * src/pic16/ralloc.c: fix warnings
14235         * src/pic16/pcode.c: fix warning
14236
14237 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
14238
14239          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14240         know all the details, but essentially this set of changes enable
14241         the pic16 port to generate movff instructions and generate assembler
14242         directives,
14243         * src/SDCCmain.c:
14244         * src/pic16/gen.c:
14245         * src/pic16/glue.c:
14246         * src/pic16/pcode.c:
14247         * src/pic16/device.c:
14248         * src/pic16/main.c:
14249         * src/pic16/pcode.h:
14250         * src/pic16/pcoderegs.c:
14251         * src/pic16/ralloc.c:
14252         * src/pic16/ralloc.h:
14253
14254 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14255
14256         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14257         added option --vc, so sdcc errors and warnings are compatible with
14258         Microsoft Visual Studio.
14259
14260 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14261
14262         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14263           device/lib/libfloat.lib: added atof function.
14264
14265 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
14266
14267         * doc/sdccman.lyx: updated to Lyx 1.3
14268         * doc/cdbfileformat.lyx: updated to Lyx 1.3
14269         * doc/test_suite_spec.lyx: updated to Lyx 1.3
14270         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14271
14272 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
14273
14274         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14275
14276 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14277
14278         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14279           additions to the "related tools/documentation" section
14280
14281 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
14282
14283         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14284
14285 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
14286
14287         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14288         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14289
14290 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
14291
14292         * doc/sdccman.lyx: fix double dash and other minor things
14293         * doc/Makefile: fix double dash
14294
14295 2003-05-28  Karl Bongers(patches from Martin Helmling)
14296         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14297           condition and ignore commands.
14298
14299 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14300
14301         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14302           is in parts still quite out of date, I did changes as far as I felt makes sense
14303           for a non-native english speaker.
14304           Please feel free to add to the manual or to correct my changes.
14305         * doc/Makefile: undid touching the date of intermediate tex files.
14306
14307 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14308
14309         * doc/sdccman.lyx: Manual has an index now
14310
14311 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14312
14313         Finalize muluint/mulsint and mululong/mulslong merging:
14314         * device/lib/_mulint.c
14315         * device/lib/_mullong.c
14316         * device/lib/gbz80/mul.s
14317         * device/lib/gbz80/stubs.s
14318         * device/lib/z80/mul.s
14319         * device/lib/z80/stubs.s
14320         * src/SDCCsymt.c (initCSupport)
14321
14322 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14323
14324         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14325         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14326           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14327           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14328           instead of /Zm500.
14329
14330 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14331
14332         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14333           the regression tests I'm not brave enough to enable 245.b, 245.c
14334         * doc/sdccman.lyx: added latex preamble for hyperref package.
14335           Using pdflatex this will give you a hyperlinked pdf file with
14336           bookmarks. (prepend '%' before /usepackage if this breaks something)
14337
14338 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14339
14340          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14341
14342 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
14343
14344         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14345
14346 2003-05-21    <johan AT balder>
14347
14348         * src/SDCCglue.c (printIval): fixed bug #739934
14349
14350 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14351
14352         Applied patch from bug 737905 (renamed yylineo to mylineno):
14353         * src/altlex.c
14354         * src/SDCCast.c
14355         * src/SDCglobl.h
14356         * src/SDCC.lex
14357         * src/SDCCsymt.c
14358         * src/SDCCval.c
14359         * src/pic16/pcode.c: Cleaned warnings
14360         * src/pic16/pcodeflow.c: Cleaned warnings
14361         * src/pic16/pcoderegs.c: Cleaned warnings
14362
14363 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
14364
14365         * src/pic16/pcode.c: Cleaned warnings
14366         * src/pic16/pcodepeep.c: Cleaned warnings
14367         * src/pic16/ralloc.c: Cleaned warnings
14368
14369 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14370
14371         * doc/sdccman.lyx: fixed bug 739745
14372         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14373
14374 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
14375
14376         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14377         it can be defined with CFLAGS when running configure
14378         * src/SDCCmain.c: fixed compiling + linking with object files
14379
14380 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
14381
14382         * configure.in: configure for pic16 port,
14383             added --disable-pic16-port
14384         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14385         * src/SDCCmain.c: linkOptions is changed to set *,
14386             added if/endif conditional macros to remove options help
14387             messages from optionsTable when a port is not configured, added
14388             support for the PIc16 port in the ports table, when executing
14389             the compiler with no port specified on command line, a default
14390             port is selected with the new macro DEFAULT_PORT which is
14391             defined in port.h, in setDefaultOptions() linkOptions is removed
14392             from initialization assignment, since now it is a set,
14393             parseCmdLine uses setParseWithComma for linkOptions, in
14394             linkEdit() linkOptions are accessed with new function indexSet()
14395             which returns the i'th item of a set variable. See SDCCset.c, in
14396             linkEdit() when calling buildCmdLine(), added linkOptions as
14397             last argument. Now users can pass arguments to gplink via the
14398             -Wl option, main() uses pic16glue() to glue up pic16 programs
14399         * src/SDCCpeeph.c: various changes to support pic16
14400         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
14401             return the i'th item of the set
14402         * src/SDCCset.h: added function prototype for indexSet()
14403         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14404         * src/clean.mk: added pic16 in CLEANALLPORTS variable
14405         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14406             added macro DEFAULT_PORT
14407         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14408         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14409             generated
14410         * src/pic16/glue.c: commented out some error producing lines
14411         * src/pic16/main.c: __config directives are commented out to stop
14412             gpasm complaining and test the linkage with gplink, _linkCmd and
14413             _asmCmd changed to be more gplink and gpasm friendly
14414         * src/pic16/peeph.def: peep rule 3 is commented out, since it
14415             produced an error when parsed, peep rule 12 is added to utilize
14416             movff, but it is commented out since the pCode does not support
14417             yet a command with 2 address arguments
14418
14419 2003-05-18    <johan AT balder>
14420
14421         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14422         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14423 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
14424
14425         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14426   Added feature to script commands from file.
14427
14428 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
14429
14430         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14431         * src/SDCCutil.c: include ctype.h for win32
14432
14433 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
14434
14435         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14436
14437 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
14438
14439         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14440   Fixed so you can set breakpoints prior to run, run does not stop
14441   on entry now.  Add tbreak.  Other enhancements and fixes for use
14442   with ddd.
14443
14444 2003-05-12  Borut Razem <borut.razem AT siol.net>
14445
14446         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14447
14448 2003-05-11  Borut Razem <borut.razem AT siol.net>
14449
14450         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14451         the path of bin directory, so that PATH is the only env. variable, which has to be set
14452         in case of standard installation.
14453         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14454         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14455         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14456
14457 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14458
14459         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14460         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14461         temp files are in the port dir; clean the gen/test directory when
14462         generating new test.c
14463         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14464         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14465         * support/regression/tests/zeropad.c: added
14466
14467 2003-05-09    <johan AT balder>
14468
14469         * src/SDCCglue.c: fixed bug #597940
14470
14471 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
14472
14473         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14474   cache sfr, optimize next,step, fix off by one sourceline,
14475   support ddd list function.
14476         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14477
14478 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14479
14480         * support/regression/HTMLgen.py: added compare_s2f()
14481         * support/regression/Makefile: redo 1.27
14482         * support/regression/generate-cases.py: redo 1.5
14483
14484 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14485
14486         * support/regression/tests/float.c: workaround 33 bit hex constant
14487         * support/regression/tests/simplefloat.c: fix division for host
14488
14489 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14490
14491         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14492         that tame's the PIC's over-aggressive optimizer.
14493
14494 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14495
14496          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14497          support for MSVC.
14498
14499 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14500
14501         Initial support for DS80C400. "Hello world" runs on TINIm400
14502         (with polled I/O).
14503
14504 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14505
14506          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14507          * Some notes on ddd usage added in debugger/README
14508          Martin Helmling adding more features and fixes for ddd GUI debugger.
14509          Code added for nexti, stepi, up, down, and other adjustments.
14510
14511 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14512
14513         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14514         * src/pic/peeph.def Added two rules to optimize carry manipulation
14515         * src/pic/* removed debug printfs
14516
14517 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14518
14519         * debugger/mcs51/cmd.c: added header newalloc.h
14520
14521 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14522
14523         * as/Makefile: new EXEEXT
14524         * as/z80/Makefile: remove trailing slash of BUILDIR
14525         * as/z80/clean.mk: new EXEEXT
14526         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14527         * support/cpp2/Makefile.in: new EXEEXT
14528         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14529
14530 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14531
14532         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14533         EXEEXT was introduced to fix all related problems with targets
14534         "clean", "install" and "uninstall"; a couple of further flaws
14535         especially with "clean" have been fixed too
14536         * as/mcs51/Makefile.in
14537         * as/mcs51/clean.mk
14538         * as/z80/Makefile
14539         * Makefile
14540         * clean.mk
14541         * debugger/mcs51/Makefile.in
14542         * debugger/mcs51/clean.mk
14543         * link/z80/Makefile
14544         * link/z80/Makefile.in
14545         * link/z80/clean.mk
14546         * link/Makefile
14547         * packihx/Makefile.in
14548         * packihx/clean.mk
14549         * sim/ucsim/Makefile
14550         * sim/ucsim/clean.mk
14551         * sim/ucsim/avr.src/Makefile.in
14552         * sim/ucsim/avr.src/clean.mk
14553         * sim/ucsim/s51.src/Makefile.in
14554         * sim/ucsim/s51.src/clean.mk
14555         * sim/ucsim/xa.src/Makefile.in
14556         * sim/ucsim/xa.src/clean.mk
14557         * sim/ucsim/z80.src/Makefile.in
14558         * sim/ucsim/z80.src/clean.mk
14559         * sim/ucsim/main_in.mk
14560         * sim/ucsim/packages_in.mk
14561         * sim/ucsim/gui.src/Makefile.in
14562         * sim/ucsim/gui.src/serio.src/Makefile.in
14563         * sim/ucsim/gui.src/serio.src/clean.mk
14564         * src/Makefile.in
14565         * src/clean.mk
14566         * support/cpp2/Makefile.in
14567         * support/cpp2/clean.mk
14568         * support/makebin/Makefile
14569         * support/makebin/clean.mk
14570         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14571         * doc/sdccman.lyx: --program-suffix no longer needed
14572
14573 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
14574
14575          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14576          Martin Helmling added support for ddd GUI debugger.
14577          Code added to display assembly, set variables, and other commands
14578          to interface to ddd.
14579
14580 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14581
14582         * as/Makefile: fix target clean
14583         * as/clean.mk: fix target clean
14584         * as/z80/clean.mk: fix target clean
14585
14586 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14587
14588         * Makefile.common.in: added  AT EXEEXT AT
14589         * configure.in: removed all mingw32 stuff
14590         * configure: rebuilt from configure.in
14591         * doc/sdccman.lyx: updated section "installation"
14592         * support/scripts/sdcc_mingw32: adapted to configure
14593         * support/scripts/sdcc_cygwin_mingw32: added
14594
14595 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14596
14597         * src/pic Added object file support for the PIC port
14598         * src/pic Applied patch from Craig Franklin (this started the object file support)
14599         * src/regression Updated the PIC regression tests for object files
14600
14601 2003-04-20  Borut Razem <borut.razem AT siol.net>
14602
14603         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14604           lklex.c: In function `getfid':
14605           lklex.c:203: warning: array subscript has type `char'
14606         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14607           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14608         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14609           stack handling macros
14610
14611 2003-04-19  Borut Razem <borut.razem AT siol.net>
14612
14613         * "handling space characters in file path" task:
14614         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14615         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14616         * support/Util/MySystem.h: make it self-sufficient
14617         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14618           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14619           handling space characters in file path
14620         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14621           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14622         * support/Util/MySystem.c: handling space characters in executable's path
14623
14624 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14625
14626         * as/z80/Makefile: fix permanent rebuild of z80
14627         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14628         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14629
14630 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14631
14632         * src/SDCCopt.c: add special case optimization to replace modulo by
14633           a power of two with a bitwise AND.
14634
14635 2003-04-18    <johan AT balder>
14636
14637         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14638
14639 2003-04-17    <johan AT balder>
14640
14641         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14642         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14643
14644 2003-04-13  Borut Razem <borut.razem AT siol.net>
14645
14646         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14647         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14648           fixed mingw problem in adl_NORMALIZE_PATH
14649
14650 2003-04-12  Borut Razem <borut.razem AT siol.net>
14651
14652         * fixed "#pragma SAVE/RESTORE can not be nested":
14653         * src/SDCC.lex: reworked pragma handling functions
14654         * sdcc/src/SDCCglobl.h: reworked stack handling macros
14655         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14656
14657 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14658
14659         * src/SDCCutil.c (pathEquivalent): defined but not used
14660         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14661         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14662         * configure: rebuilt from configure.in
14663         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14664         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14665         * device/include/Makefile.in: replace sdcc_datadir
14666         * device/lib/Makefile.in: replace sdcc_datadir
14667         * Makefile.common.in: add LDFLAGS from configure
14668         * packihx/Makefile.in: use LDFLAGS
14669         * src/Makefile.in: use LDFLAGS
14670         * support/cpp2/Makefile.in: add LDFLAGS from configure
14671         * support/makebin/Makefile: use LDFLAGS
14672         * .version: bumped version number to 2.3.5
14673
14674 2003-04-12  Borut Razem <borut.razem AT siol.net>
14675
14676         * completed "different paths" task:
14677         * src/SDCCmacro.c: fixed bug in handling quotes
14678         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14679         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14680
14681 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14682
14683         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14684
14685 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14686
14687         * ds390/gen.c ds390/peeph.def: fix bug 706781
14688
14689 2003-04-11  Borut Razem <borut.razem AT siol.net>
14690
14691         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14692
14693 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
14694
14695         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14696         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14697          set - this bit used to not be set...).
14698         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14699           bad code in PIC Port
14700         * src/regression/and2.c added to test bug 609268
14701         * src/regression/Makefile added and2.c to regression test
14702
14703
14704 2003-04-08    <johan AT CP255758-A>
14705
14706         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14707         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14708         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14709
14710 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
14711
14712         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14713         fix bug #487815
14714         * support/cpp2/Makefile.in: fix bug #487815
14715         * configure: rebuilt from configure.in
14716         * Makefile.common.in: docdir changed, new path suffixes
14717         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14718         * sdcc_vc_in.h: reflect changes from sdccconf.h
14719         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14720         * src/SDCCutil.h: remove BINDIR hack
14721         * doc/sdccman.lyx: update new path hierarchy
14722
14723 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14724
14725         * src/SDCCpeeph.c: added okToRemoveSLOC test
14726
14727 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14728
14729         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14730
14731 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14732
14733         * src/SDCCpeeph.c: added labelIsReturnOnly test
14734         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14735
14736 2003-04-05    <johan AT balder>
14737
14738         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14739         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14740         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14741         * src/SDCCast.c: fixed a warning
14742         * src/SDCCast.h: fixed a warning
14743         * src/SDCCicode.c (operandFromAst): fixed a warning
14744
14745 2003-04-04    <johan AT balder>
14746
14747         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14748         * src/SDCCast.c (decorateType): fixed bug #715076
14749         * src/SDCC.y: fixed bug #702907
14750
14751 2003-04-03    <johan AT balder>
14752
14753         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14754         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14755         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14756         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14757         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14758
14759 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
14760
14761         * _decdptr.c: fix return values
14762         * _gptrget.c: fix return values
14763         * _gptrgetc.c: fix return values
14764         * _gptrput.c: fix return values
14765         * _mulint.c: fix return values
14766         * as/z80/Makefile: fix 'make -j' problem
14767
14768 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
14769
14770         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14771         * configure.in: big cleanup, updated to autoconf 2.5x
14772         * configure: rebuilt from configure.in
14773         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14774         * sdcc_vc_in.h: reflect changes from sdccconf.h
14775         * doc/Makefile: fixed a flaw in "make install"
14776
14777 2003-04-02    <johan AT balder>
14778
14779         * src/ds390/gen.c (genCmp): no comments
14780         * src/mcs51/gen.c (genCmp): no comments
14781         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14782         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14783
14784 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
14785
14786         * support/regression/generate-cases.py: place generated file in given sub directory
14787         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14788         * support/regression/Makefile: improvements for 'make -j';
14789         side effect: it's simpler and faster now
14790
14791 2003-03-31  Borut Razem <borut.razem AT siol.net>
14792
14793         * src/z80/main.c: link-{port} and as-{port} defined without path
14794         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14795
14796 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
14797
14798         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14799
14800 2003-03-30  Borut Razem <borut.razem AT siol.net>
14801
14802         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14803           changed type of list parameter to set
14804         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14805         * src/port.h: changed type of do_assemble() parameter to set
14806         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14807           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14808           definition of "cppoutfilename" macro with NULL value in preProcess()
14809         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14810         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14811         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14812           replaced with set *binPathSet
14813         * shash_add() deallocates the item, if allready exsists, before adding the new one
14814         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14815
14816 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
14817
14818         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14819           a nested for loop bug in the PIC port
14820         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14821           for loops
14822
14823 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
14824
14825         * support/Util/dbuf.h: remove C++ stuff to make it portable
14826
14827 2003-03-28  Borut Razem <borut.razem AT siol.net>
14828
14829         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14830           literal strings in stringLiteral()
14831         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14832         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14833           to the project
14834
14835 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
14836
14837         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14838
14839 2003-03-26    <johan AT balder>
14840
14841         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14842         * src/ds390/gen.c (saveRegisters): catched symbol abuse
14843         * src/SDCCast.c (decorateType): fixed " -v < 3"
14844
14845 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
14846
14847         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14848         Added Lenny Story's debug infrastructure changes:
14849         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
14850         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14851         * src/cdbFile.c: added
14852         * src/SDCCdebug.c: added
14853         * src/SDCCdebug.h: added
14854         * src/SDCCast.c (createFunction)
14855         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14856         * src/SDCCmain.c (parseCmdLine, main)
14857         * src/SDCCmem.c (redoStackOffsets)
14858         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14859         * src/SDCCsymt.h
14860         * src/common.h
14861         * src/avr/gen.c (genAVRCode)
14862         * src/ds390/gen.c (gen390Code)
14863         * src/mcs51/gen.c (gen51Code)
14864         * src/pic/gen.c (genpic14Code)
14865         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14866         * src/xa51/gen.c (genXA51Code)
14867         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14868
14869 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14870
14871         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14872         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14873
14874 2003-03-22    <johan AT balder>
14875
14876         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14877
14878 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14879
14880         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14881         * doc/cdbfileformat.lyx: added, written by Lenny Story
14882         * doc/Makefile: added cdbfileformat.lyx
14883         * doc/clean.mk: added cdbfileformat.lyx
14884
14885 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14886
14887         * src/mcs51/peeph.def: fix bug #705773
14888
14889 2003-03-20    <johan AT balder>
14890
14891         An sfr/sbit can have an "at #" AND an initializer
14892         * src/SDCCsymt.c (checkSClass):
14893         * src/SDCCmem.c (allocGlobal):
14894         * src/SDCCmem.c (allocLocal):
14895         * src/SDCCast.c (createBlock):
14896
14897 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14898
14899         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14900
14901 2003-03-16    <johan AT balder>
14902
14903         Undid the hackup of const and volatile, the problem is much bigger
14904         * src/SDCC.y:1.65
14905         * src/SDCCast.c:1.171
14906         * src/SDCCglue.c:1.138
14907         * src/SDCCicode.c:1.146
14908         * src/SDCCsymt.c:1.150
14909         * src/SDCCval.c:1.65
14910
14911 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14912
14913         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14914         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14915
14916 2003-03-13    <johan AT balder>
14917
14918         Hackup const and volatile modifiers in type chains a bit:
14919         * src/SDCC.y:1.63
14920         * src/SDCCast.c:1.169
14921         * src/SDCCglue.c:1.136
14922         * src/SDCCicode.c:1.143
14923         * src/SDCCsymt.c1.146
14924         * src/SDCCsymt.h1.59
14925         * src/SDCCval.c:1.63
14926
14927 2003-03-12    <johan AT balder>
14928
14929         * src/SDCCBBlock.h: more LRH debugging junk
14930         * src/SDCCcflow.h: more LRH debugging junk
14931         * src/SDCCloop.c: more LRH debugging junk
14932         * src/SDCC.y (struct_declaration): fixed bug #697590
14933         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14934         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14935         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14936
14937 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14938         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14939         test function names must now match exactly).
14940         * src/SDCCcse.c: added special case in findCheaperOp to allow
14941         extending a short integer. Makes less awful code for bug 700121 test case.
14942
14943 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14944
14945         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14946         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14947
14948 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14949
14950         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14951         actually called (operandsNotEqual() was called for all
14952         operandsNotEqualX tests).
14953
14954 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14955
14956         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
14957         with shorter literals. Fixes bug 700121.
14958
14959 2003-03-11    <johan AT balder>
14960
14961         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
14962
14963 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
14964
14965         * src/SDCCloop.c (mergeRegions): an evil beast is dead
14966         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
14967
14968 2003-03-10  Borut Razem <borut.razem AT siol.net>
14969
14970         * src/SDCCmain.c: pipe preprocessor's output
14971         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14972         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14973         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14974         which closes all pipes in pipeSet set
14975         * src/SDCCset.c: free deleted item in function deleteSetItem()
14976         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14977         moved from z80 to src subproject
14978         * .version: increased version number to 2.3.4
14979
14980 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
14981
14982         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
14983         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
14984         * support/regression/ports/xa51/spec.mk: fix typo
14985
14986 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
14987
14988         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
14989
14990 2003-03-09  Borut Razem <borut.razem AT siol.net>
14991
14992         * src/SDCCmain.c: pipe preprocessor's output
14993         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
14994         * sdcc_vc_in.h: define pclose as _pclose for WIN32
14995         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
14996         which closes all pipes in pipeSet set
14997         * src/SDCCset.c: free deleted item in function deleteSetItem()
14998         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
14999         moved from z80 to src subproject
15000
15001 2003-03-09  Borut Razem <borut.razem AT siol.net>
15002
15003         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15004         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15005         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15006         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15007         * src/SDCCglobl.h: unification of WIN32 native definitions
15008
15009 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15010
15011         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15012
15013 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15014
15015         * src/configure.in:   check for endianess (even while cross-compiling)
15016         * src/configure:      check for endianess (even while cross-compiling)
15017         * src/configure_in.h: check for endianess (even while cross-compiling)
15018         * src/avr/gen.c:        remove old endianess stuff
15019         * src/mcs51/gen.c:      remove old endianess stuff
15020         * src/ds390/gen.c:      remove old endianess stuff
15021         * src/pic/gen.c:        remove old endianess stuff
15022         * src/pic/genarith.c:   remove old endianess stuff
15023         * src/pic/glue.c:       fix endianess check
15024         * src/pic16/gen.c:      remove old endianess stuff
15025         * src/pic16/genarith.c: remove old endianess stuff
15026         * src/pic16/glue.c:     fix endianess check
15027         * src/xa51/gen.c:       remove old endianess stuff
15028         * src/z80/gen.c:        fix endianess check
15029         * src/SDCCglue.c:       fix endianess check
15030         * src/ds390/peeph.def: fix bug 700036
15031
15032 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15033
15034         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15035         * src/configure: find appropriate data-types on host for SDCC's int and long
15036         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15037         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15038         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15039
15040 2003-03-07    <johan AT balder>
15041
15042         Just a big NOOP:
15043                 some minor cleanups before the big shot
15044                 OP_DEFS and OP_USES now use Kevin's protection
15045                 new option --nolabelopt
15046
15047         * src/SDCCBBlock.c:
15048         * src/SDCCast.c,:
15049         * src/SDCCcflow.c:
15050         * src/SDCCcse.c:
15051         * src/SDCCicode.c:
15052         * src/SDCCicode.h:
15053         * src/SDCClabel.c:
15054         * src/SDCCloop.c:
15055         * src/SDCCmain.c:
15056         * src/ds390/ralloc.c:
15057         * src/mcs51/ralloc.c:
15058         * src/pic/ralloc.c:
15059         * src/xa51/ralloc.c:
15060         * src/z80/ralloc.c:
15061
15062 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15063
15064         * src/pic/pcode.c (get_op): fix 64 bit warnings
15065         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15066         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15067         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15068         * support/regression/tests/malloc.c: fix 64 bit warnings
15069
15070 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15071
15072         * src/mcs51/gen.c (genMinus): fixed bug 696436
15073
15074 2003-03-02  Borut Razem <borut.razem AT siol.net>
15075
15076         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15077
15078 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15079
15080         * configure.in: test for mkstemp
15081         * sdccconf_in.h: add HAVE_MKSTEMP
15082
15083 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15084
15085         * device/include/ctype.h: removed warning while using --stack-auto
15086         * device/include/malloc.h: removed warning while using --stack-auto
15087         * device/include/string.h: removed warning while using --stack-auto
15088
15089 2003-02-23  Borut Razem <borut.razem AT siol.net>
15090
15091         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15092         because NDEBUG is defined (see man assert)
15093         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15094
15095 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15096
15097         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15098         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15099
15100 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15101
15102         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15103         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15104
15105 2003-02-18    <johan AT balder>
15106
15107         * as/mcs51/asmain.c (asmbl): module can start with a digit
15108         * as/z80/asmain.c (asmbl): module can start with a digit
15109
15110 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
15111
15112         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15113         * src/asm.c: fix pipe() for Mingw32
15114
15115 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
15116
15117         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15118         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15119         make -V work again; --c1mode reads now from stdin
15120         * doc/sdccman.lyx: added --c1mode
15121         * support/Util/SDCCerr.c: new messages for c1 mode
15122         * support/Util/SDCCerr.h: new messages for c1 mode
15123         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15124
15125 2003-02-15    <johan AT balder>
15126
15127         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15128
15129 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
15130
15131         * doc/sdccman.lyx: Environment variables, -o and other minor things
15132
15133 2003-02-14    <johan AT balder>
15134
15135         * src/xa51/main.c: before anyone really tries to use it :)
15136
15137         * Install doc's in share/sdcc/doc
15138         * removed some obsolete files
15139         * Do a proper make distclean and uninstall
15140         M Makefile.common.in
15141         R sdccbuild.sh
15142         M as/Makefile
15143         M device/include/Makefile.in
15144         M device/lib/Makefile.in
15145         M doc/sdccman.lyx
15146         M link/Makefile
15147         M sim/ucsim/doc/Makefile.in
15148         M src/clean.mk
15149         R src/avr/peeph.rul
15150         R src/xa51/peeph.rul
15151         M support/cpp2/Makefile.in
15152         M support/makebin/Makefile
15153
15154
15155 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
15156
15157         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
15158
15159 2003-02-10  Borut Razem <borut.razem AT siol.net>
15160
15161         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
15162         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
15163         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
15164         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
15165         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
15166         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
15167         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
15168         src/z80/Makefile.bcc: Borland Makefile cleanup
15169         * as/z80/Makefile.bcc: Added Borland Makefile
15170         * support/cpp2/borland.h: Removed
15171
15172 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
15173
15174         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
15175         * src/SDCC.lex: new pragma NOIV
15176         * src/SDCCglobl.h: new pragma NOIV
15177         * src/SDCCmem.c: new pragma NOIV
15178
15179 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15180
15181         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
15182
15183 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15184
15185         * src/SDCCmain.c: signal handling is switched off by --debug
15186         * doc/Makefile: small fix for install; use clean.mk again
15187         * doc/clean.mk: clean *.pdf and *.html too
15188
15189 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
15190
15191         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15192         * device/lib/printfl.c: fix a ds390 bug by making it portable
15193         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15194         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15195         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15196         * debugger/mcs51/cmd.c: converted multi-line string literals
15197         * sim/ucsim/globals.cc: converted multi-line string literals
15198         * src/SDCCmain.c: introduced signal handler to remove temp files
15199         * doc/Makefile: small tweaks, implement clean
15200         * doc: removed generated files
15201
15202 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15203
15204         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
15205         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15206         Address Record is not correctly generated for DS390."
15207
15208 2003-02-02  Borut Razem <borut.razem AT siol.net>
15209
15210         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15211         * as/mcs51/asm.h: fixed compilation with Borland C
15212         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15213         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15214         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15215         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15216         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15217         src/z80/Makefile.bcc: delete $(LIB) only if exist
15218         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
15219
15220 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
15221
15222         * device/include/malloc.h: introduced NULL
15223         * device/include/string.h: introduced NULL
15224         * device/include/stdlib.h: introduced NULL
15225         * device/lib/_memcpy.c: removed NULL
15226         * device/lib/_strcat.c: removed NULL
15227         * device/lib/_strchr.c: removed NULL
15228         * device/lib/_strcmp.c: removed NULL
15229         * device/lib/_strcpy.c: removed NULL
15230         * device/lib/_strcspn.c: removed NULL
15231         * device/lib/_strlen.c: removed NULL
15232         * device/lib/_strncat.c: removed NULL
15233         * device/lib/_strncmp.c: removed NULL
15234         * device/lib/_strncpy.c: removed NULL
15235         * device/lib/_strpbrk.c: removed NULL
15236         * device/lib/_strrchr.c: removed NULL
15237         * device/lib/_strspn.c: removed NULL
15238         * device/lib/_strstr.c: removed NULL
15239         * device/lib/_strtok.c: removed NULL
15240         * device/lib/malloc.c: removed NULL, include own header
15241
15242 2003-02-02    <johan AT balder>
15243
15244         * 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
15245         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15246         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15247         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15248         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15249         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15250
15251 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15252
15253         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15254         area 'DATA'"
15255
15256 2003-02-01    <johan AT balder>
15257
15258         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15259
15260 2003-01-31    <johan AT CP255758-A>
15261
15262         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15263
15264 2003-01-30    <johan AT balder>
15265
15266         * src/SDCCBBlock.c: automatic bug detection
15267         * src/SDCCicode.c: automatic bug detection
15268
15269 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15270
15271         * src/SDCCglobl.h:   now --xram-size 0 works
15272         * src/SDCCmain.c:    now --xram-size 0 works
15273
15274 2003-01-29    <johan AT balder>
15275
15276         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15277
15278 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15279
15280         * as/mcs51/aslink.h: Added options --xram-size and --code-size
15281         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15282         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15283         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
15284         * src/SDCCglobl.h:   Added options --xram-size and --code-size
15285         * src/SDCCmain.c:    Added options --xram-size and --code-size
15286
15287 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
15288
15289         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15290         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15291
15292 2003-01-27    <johan AT balder>
15293
15294         * src/SDCC.y: fixed bug #613764
15295
15296 2003-01-26    <johan AT balder>
15297
15298         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
15299         * src/SDCCsymt.h: fixed bug #673374
15300         * src/SDCCglue.c: fixed bug #661910
15301         * src/SDCCast.c: fixed bug #458099 and 673374
15302
15303 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
15304
15305         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15306         * as/mcs51/strcmpi.h: added
15307         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15308         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15309         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15310         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15311         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15312         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15313         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15314         * as/mcs51/Makefile.aslink: new module strcmpi
15315         * as/mcs51/Makefile.asx8051: new module strcmpi
15316         * as/mcs51/Makefil.bcc: new module strcmpi
15317         * as/mcs51/Makefile.in: new module strcmpi
15318         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15319
15320 2003-01-26    <johan AT balder>
15321
15322         * src/SDCCglue.c: reverted back to 1.124
15323         * src/SDCCast.c: reverted back to 1.156
15324         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15325
15326 2003-01-25    <johan AT balder>
15327
15328         * src/SDCCglue.c: A better fix for bug #661910
15329         * src/SDCCast.c: A better fix for bug #661910
15330         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15331
15332 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15333
15334         * src/Makefile.in: remove spawn.o
15335         * src/SDCCmain.c: remove spawn.h
15336         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15337         * src/spawn.c: removed
15338         * src/spawn.h: removed
15339         * support/regression/ports/ds390/spec.mk: link with -r
15340
15341 2003-01-24    <johan AT CP255758-A>
15342
15343         * src/ds390/gen.c (aopOp): fixed bug #667458
15344         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15345         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15346         (createIvalCharPtr): an ival doesn't always have a storage class anymore
15347
15348 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15349
15350         * src/mcs51/peeph.def: better assembler identation by Frieder
15351         * src/mcs51/gen.c: better assembler identation by Frieder
15352
15353 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
15354
15355         * as/z80/string.h: removed for gcc 3.2
15356         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15357         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15358
15359 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15360
15361         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15362         * src/SDCCpeeph.c (replaceRule): fix bug #663503
15363         * support/regression/Makefile: separate temp files for ports
15364         * support/regression/generate-cases.py: separate temp files for ports
15365         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15366         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15367
15368 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15369
15370         * moved tinitalk to device/examples/ds390
15371
15372 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
15373
15374         * as/mcs51/lkmem.c: rflag is for DS390
15375         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15376         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15377                          (linkEdit): move mem- and map-files the same way as ihx-files
15378         * src/z80/main.c (_setDefaultOptions): removed --generic
15379         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15380         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15381         * src/pic/glue.c (picglue): --c1mode works again
15382         * src/pic16/glue.c (pic16glue): --c1mode works again
15383         * src/asm.c (printCLine): fix #660034
15384
15385 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
15386
15387         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15388         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15389         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15390         * as/mcs51/lkmem (summary): better fix for sp problem
15391         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15392         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15393         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15394                                               remove --stack-after-data
15395
15396 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15397
15398         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15399         * src/SDCCutil.c (join): ugly bug: missing '\0'
15400         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15401
15402 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15403
15404         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15405         * src/port.h: typo
15406         * src/pic/main.c (_asmCmd): gpasm supports -o
15407         * src/z80/main.c: more general macros
15408         * device/lib/Makefile.in: remove intermediate files
15409
15410 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15411
15412         * .version: Bumped version number to 2.3.3
15413         * src/SDCCBBlock.c: new option -o
15414         * src/SDCCglobl.h: new option -o
15415         * src/SDCCglue.c: new option -o
15416         * src/SDCCmain.c: new option -o
15417         * src/asm.c: new option -o
15418         * src/ds390/main.c: new option -o
15419         * src/pic/glue.c: new option -o
15420         * src/pic/pcode.c: new option -o
15421         * src/pic/ralloc.c: new option -o
15422         * src/pic16/glue.c: new option -o
15423         * src/pic16/pcode.c: new option -o
15424         * src/pic16/ralloc.c: new option -o
15425         * src/z80/main.c: new option -o
15426         * device/lib/Makefile.in: use -o
15427         * support/regression/ports/ds390/spec.mk: use -o
15428         * support/regression/ports/gbz80/spec.mk: use -o
15429         * support/regression/ports/mcs51/spec.mk: use -o
15430         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15431         * support/regression/ports/z80/spec.mk: use -o
15432         * support/regression/ports/ucz80/spec.mk: use -o
15433         * support/regression/ports/xa51/spec.mk: use -o
15434         * support/regression/fwk/lib/timeout.c: fix usage string
15435
15436 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
15437         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15438
15439 2003-01-07    <johan AT balder>
15440
15441         * src/SDCCast.c (decorateType): fixed bug #600035
15442
15443 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
15444         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15445         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15446         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15447         * src/pic/pcode.c: outcommented unused variable to remove warnings
15448         * src/pic/ralloc.c: outcommented unused variable to remove warnings
15449
15450 2003-01-06    <karl AT turbobit.com>
15451         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15452    regression tests.
15453
15454 2003-01-06    <johan AT balder>
15455
15456         * src/SDCCicode.c: fixed array add
15457
15458 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
15459         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15460         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15461
15462 2003-01-04    <johan AT balder>
15463
15464         * src/SDCCval.c (getNelements): fixed the initialized array of structures
15465
15466 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15467         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15468
15469 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15470         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15471         * support/regression/tests/bug-524697.c: fit mem usage into 8032
15472
15473 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15474         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15475
15476 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
15477         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15478
15479 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
15480         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15481
15482 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15483
15484     * in /sdcc/as/mcs51/ changed these files in order to create an
15485     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15486     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15487     following files to include the previous two files: aslink.dsp,
15488     Makefile.aslink, Makefile.bcc, and Makefile.in.
15489
15490     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15491     .adb instead of .cdb
15492
15493 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15494
15495         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15496         value from option --iram-size.
15497
15498 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15499
15500         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15501         dram[] array.
15502
15503 2002-09-18    <wiml AT hhhh.org>
15504
15505         * SDCClrange.h: exposed setFromRange() and setToRange()
15506         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15507           packRegsForAccUse() (bug 542397)
15508         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15509           multiple times and emitting the fetch operations more than once
15510           added aopGetUsesAcc() function to allow binary operators to
15511           fetch their operands in the correct order; made genMinus() emit
15512           compact code for X = LITERAL - Y
15513
15514 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15515         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15516         sprintf() in line 1267.
15517
15518 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15519         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15520         like ports.
15521
15522 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15523         Changes to aslink (All the changes are marked with 'JCF'):
15524
15525         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15526         summary().
15527
15528         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15529         area BSEG.  Also moves, if possible, the DATA area down into the internal
15530         ram so more space is available.
15531
15532         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15533         sflag.
15534
15535         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15536         not bytes.  Function summary() which creates a memory usage summary
15537         file with extension .mem.  Reports of overlaping stack and small stack
15538         size.  If the space for the stack is less than 16 bytes aslink trows a
15539         warning.
15540
15541         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15542         the 8051.  Option 'y' for memory summary output file.
15543
15544         Changes to sdcc (All the changes are marked with 'JCF'):
15545
15546         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15547
15548         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15549         overlaying area for it (uses RegBankUsed[4]).
15550
15551         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15552         bank zero as used by default.  By default aslink locates the stack
15553         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15554         the creation of the .mem file.  Delegates the allocation of data area
15555         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15556         the begining of the stack area to aslink.
15557
15558         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15559         glue() in SDCCglue.c creates an area for it.
15560
15561 2002-09-03  Borut Razem <borut.razem AT siol.net>
15562         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15563         sdcc/src/pic/glue.c:
15564         introduced atexit() handler for teporay files removal in case of
15565         errors, assertions, ...
15566
15567 2002-08-29  Borut Razem <borut.razem AT siol.net>
15568         * sdcc/support/cpp2/auto-host_vc_in.h:
15569         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15570         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15571         Maybe there is a similar problem with BORLANDC? It should be checked!
15572
15573         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15574         corrected improper use of assert: the assignment to clr variable was done inside the assert.
15575         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15576         was not executed, and the compiler (cl) launched a warning:
15577         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15578
15579 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
15580         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15581
15582 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15583         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15584
15585         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15586           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15587           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15588           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15589           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15590           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15591           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15592         - added Release configuration in VS projects
15593         - review of compiler an linker options
15594         - VC .exe files are generated in bin_vc directory, not to interfere
15595           with binaries generated from other projects (cygwin, mingw, bcc ...)
15596
15597         * sdcc/src/yacc.dsp: added
15598
15599         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15600         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15601         and insert the version number definitions from .version
15602
15603         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15604
15605         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15606         added - genarate auto-host.h using auto-host_vc_in.h as template
15607
15608         * sdcc/sdcc_vc.h,
15609         removed from CVS, generated automatically
15610
15611 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15612         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15613
15614 2002-08-11  Borut Razem <borut.razem AT siol.net>
15615         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15616
15617 2002-08-10  Borut Razem <borut.razem AT siol.net>
15618         * src/SDCCmain.c (main):
15619         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15620         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15621         The consequence was that some temporary files were not removed.
15622
15623         * src/SDCCglue.c:
15624         unification of code in functions tempfilename() and tempfile():
15625         function tempnam() is defined in Visual Studio 6.0 and .NET
15626
15627         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15628
15629         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15630           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15631         - removed compiler command line option /WX: Treats all warnings as errors
15632         - update a list of source files, included into the project
15633
15634         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15635           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15636         changed project type to Generic Project so that can be correcly converted to VS.NET project
15637
15638         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15639
15640         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15641
15642         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15643
15644         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15645         added return 0 statements after assert() to make compiler happy
15646
15647         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15648         added newline in the def file to keep MSC compiler satisfied
15649
15650         * sdcc/src/z80/gen.c:
15651         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15652           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15653         - solved MSC error in function aopDump()
15654
15655         * sdcc_vc.h: define PREFIX as "\\sdcc"
15656
15657 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
15658         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15659
15660 2002-06-22  Scott Dattalo <scott AT dattalo.com>
15661         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15662         - Rewrote the register banking algorithm.
15663         - Added pCode live-range analysis to registers (for now, only non-used and
15664         singly-used registers optimized away)
15665
15666         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15667
15668         * 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.
15669
15670 2002-05-10  Scott Dattalo <scott AT dattalo.com>
15671         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15672
15673 2002-04-22  Michael Hope  <michaelh AT vroom>
15674
15675         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15676
15677         * configure.in (DD_COPT): Added include support required for gbdk.
15678
15679         * .version: Bumped version number just to increase it.
15680
15681         * src/SDCCmain.c: Added -nostdinc to the default options.
15682
15683 2002-04-15  Michael Hope  <michaelh AT vroom>
15684
15685         * device/lib/z80/printf.c (sprintf): Added.
15686
15687         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15688
15689         * src/z80/peeph.def: Added transpose redundent load rule.
15690
15691         * src/z80/main.c: Added force callee saves for jaune.
15692
15693         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15694
15695         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15696
15697 2002-03-28  Johan Knol  <johan AT balder>
15698
15699         * src/SDCCval.c: fixed bug #532436
15700
15701 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15702         * /src/port.h:
15703         Added "char *Processor" field to the port structure.
15704
15705         * /src/SDCCmain.c:
15706         Added -p option. Allows port dependent processor to be specified.
15707
15708         * all ports:
15709         Initialized the new field char *Processor field to NULL in all ports
15710
15711         * /src/pic/*:
15712         Compiler generated registers for interrupt context saving
15713         were not getting allocated.
15714
15715 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
15716
15717         * /src/SDCCast.c:
15718         Fixed left shift. Will promote the left side of a left shift
15719         if a) left shifting more than size of operand or b) when assigned
15720         to something size > size of left side
15721
15722 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15723         * src/pic/*
15724         tons of changes. Register allocation has been
15725         rewritten. Added customization for the various PICs. Flow
15726         analysis is restructured. ...
15727
15728         * src/pic/device.h:
15729         Added
15730
15731         * src/pic/device.c:
15732         Added. device.c is a PIC port hack to accomodate variations
15733         in PIC devices.
15734
15735 2002-03-13  Michael Hope  <michaelh AT vroom>
15736
15737         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
15738
15739 2002-03-04  johanknol  <johanknol AT manik>
15740
15741         * /src/SDCCval.c: fixed
15742
15743         const unsigned char arr[][2] = { { 0, 1 } };
15744         t18.c:1: error: Initializer element is not constant
15745
15746 2002-03-04  bela  <bela AT manik>
15747
15748         * /device/include/mcs51reg.h:
15749         ds89c420 register definition update
15750
15751 2002-03-03    <johan AT FRIJA>
15752
15753         * support/Util/SDCCerr.c: did something, but don't no why anymore
15754
15755         * support/regression/tests/bug-524691.c: made it a little less shy
15756
15757         * src/SDCCast.c (decorateType): fixed bug #524697
15758
15759         * src/SDCCast.c: made some lineno improvements
15760
15761         * src/SDCCval.c (getNelements): changed warning to error
15762
15763         * src/SDCCglue.c (printIvalArray): changed warning to error
15764
15765         * src/SDCCicode.c: fixed a warning for mingw
15766
15767         * src/SDCCast.c (decorateType): fixed the << promotion for ops
15768
15769         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15770
15771 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
15772
15773         * src/ds390/peeph.def:
15774         Added some more peephole rules
15775
15776         * src/ds390/gen.c: Various fixes & enhancements
15777
15778         * src/SDCClrange.c, src/SDCClrange.h:
15779         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15780
15781         * src/ds390/ralloc.c:
15782         various fixes & enhancements (ds390) specific
15783
15784         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15785         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15786         from rallocs.
15787
15788         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15789
15790 2002-03-02    <johan AT FRIJA>
15791
15792         * src/SDCCast.c (decorateType): fixed bug #524708
15793
15794         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15795
15796         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15797
15798 2002-03-01  Michael Hope  <michaelh AT vroom>
15799
15800         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15801
15802         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15803
15804 2002-03-01    <johan AT FRIJA>
15805
15806         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15807
15808         * src/SDCCast.c (decorateType): fixed bug #524209
15809
15810         * src/SDCCval.c (valNot): fixed bug #524195
15811
15812 2002-02-26    <johan AT balder>
15813
15814         * src/xa51/gen.c: fixed a warning
15815
15816         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15817
15818         * src/SDCCast.c (decorateType): fixed bug #522534
15819
15820 2002-02-23    <johan AT balder>
15821
15822         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15823
15824 2002-02-22    <johan AT balder>
15825
15826         * src/SDCCast.c: fixed bug #514865
15827
15828         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15829
15830 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
15831
15832         * sdcc/src/SDCCloop.c:
15833         Previous fix was not good. basic blocks that have "break" or "return" are
15834         not really partof a loop , but live ranges used in these blocks should
15835         be live thru the entire loop, so set partOfLoop but don't add them to
15836         loop region
15837
15838 2002-02-21    <johan AT FRIJA>
15839
15840         * src/SDCCcse.c: fixed bug #514308
15841
15842 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
15843
15844         * src/SDCCloop.c:
15845         Fixed BUG #519583. If a conditional block ended in a return/break
15846         statement inside a loop, it was not being considered part of the loop.
15847
15848         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15849
15850 2002-02-10  Karl Bongers <karl AT turbobit.com>
15851
15852         * debugger/*:
15853         Fixed up SDCDB debugger somewhat.  Updated debugger/README
15854         with lots of comments and notes.
15855
15856         * device/examples/test2.c:
15857         Fix bug, "red" variable not being initialized(compiler complained).
15858
15859         * device/examples/Makefile, examples/test3.c:
15860         Add Makefile in device/examples folder, compiles test3.c
15861         for use as a multiple module SDCDB test case.
15862
15863         * sim/ucsim/cmd.src/cmdset.cc:
15864         Took out debug printfs in ucsim "next" command.
15865
15866         * sim/ucsim/xa.src:
15867         Karl and Johan start ucsim XA support.  Most dissassembly working,
15868         about 75% emulation done(plenty of work remaining).
15869
15870         * sim/ucsim/z80.src:
15871         Add Z80 support to ucsim, add test-ucz80 regression test,
15872         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15873         Notice z80 compiler fails on examples/test3.c/crc code.
15874
15875 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15876
15877         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15878         Added support for --parms-in-bank1
15879
15880         * src/ds390/peeph.def:
15881         added a few more peephole optimzations
15882
15883         * src/ds390/main.c:
15884         1) added __builtin_inp & __builtin_outp used to read in data of given length
15885            from a memory mapped port
15886         2) added __builtin_memcmp
15887         3) added __builtin_swapw swap bytes of a short
15888
15889         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15890         1) handle multiple send & receives from register bank1
15891         2) ralloc can now allocate DPTR1 to some liveRanges
15892
15893         * src/SDCCsymt.c, src/SDCCsymt.h:
15894         changes to handle multiple sends & receives
15895
15896         * src/SDCCptropt.h:
15897         added some pointer arithmetic optimization
15898
15899         * src/SDCCptropt.c:
15900         added some pointer arithmetic optimizations but not stable yet so not
15901         called from anywhere (will get this working shortly)
15902
15903         * src/SDCCopt.c: fixed for multiple sends & receives
15904
15905         * src/SDCCmain.c:
15906         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15907         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15908            set preprocessor defines (depending on options)
15909
15910         * src/SDCCicode.c, src/SDCCicode.h:
15911         changes made to handle multiple sends & receives
15912
15913         * src/SDCCglobl.h:
15914         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15915
15916         * src/SDCCcse.c, src/SDCCcse.h:
15917         added function findbackward def (to be used in upcoming optimization)
15918
15919         * src/SDCCcflow.c, src/SDCCcflow.h:
15920         added function returnAtEnd - to determine if a basic block terminates with
15921         a RETURN iCode
15922
15923         * src/SDCCast.c, src/SDCCast.h:
15924         added option parms-in-bank1
15925
15926         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15927         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15928         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15929         adjusted for --parms-in-bank1 option
15930
15931         * device/include/string.h:
15932         donot redefine "reentrant" keyword
15933
15934         * device/include/ds80c390.h: Added some more SFRs
15935
15936 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15937
15938         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15939
15940 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15941
15942         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15943
15944 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15945
15946         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15947
15948 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15949
15950         * Added --xram-movc option
15951
15952 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
15953
15954         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
15955
15956 2002-01-11  Johan Knol
15957
15958         * Added math lib of Jesus Calvino-Fraga
15959
15960 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
15961
15962         * src/SDCCmain.c (processFile): fix processing of ../../src.c
15963         * support/regression/Makefile: new target test-mcs51-stack-auto
15964         * support/regression/ports/mcs51-stack-auto/spec.mk: added
15965
15966 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15967
15968         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
15969
15970 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
15971
15972         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
15973
15974 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
15975
15976         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
15977
15978         * src/SDCCglue.h: add definition for printIvalChar()
15979
15980 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15981
15982         * src/SDCCast.c: fix #498138 by Johan
15983
15984         * src/SDCCglue.c: fix #498138 by Johan
15985
15986 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
15987
15988         * support/regression/Makefile: fix clean
15989
15990         * support/regression/ports/ds390/support.c: fix transmission of last character
15991
15992 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
15993
15994         * /sdcc/src/ds390/gen.c:
15995         a) improved computing address of stack variable
15996         b) took out some #if 0 code
15997         c) improved parmBytes adjustment
15998         d) improved genPlusIncr & genMinusIncr
15999         e) genCmp could generate bad code (when left assigned to DPTR)
16000         f) Fixed bug in hasInc
16001
16002         * /sdcc/src/ds390/ralloc.c:
16003         a) packRegsForSupport could mess up live information (Fixed)
16004         b) packRegsDPTRuse could be incorrect for left & right shift
16005
16006         * /sdcc/src/mcs51/ralloc.c:
16007         packRegsForSupport could mess up the live information (Fixed)
16008
16009         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16010
16011         * /sdcc/src/SDCCast.c:
16012         can reverse a loop even if function call is present as long
16013         as the loop control variable is local & is not passed as parameter
16014
16015 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16016
16017         * /sdcc/ChangeLog: *** empty log message ***
16018
16019         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16020         More builtin function additions for TININative
16021
16022         * /sdcc/src/ds390/ralloc.c:
16023         Had broken the regression testsuite
16024
16025         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16026
16027         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16028         Added funcattr hasStackParms will be set for reentrant functions when there
16029         are paramteres on the stack, this helps in minimizing frame pointer generation
16030         typeFromStr can handle function pointers now
16031
16032         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16033         *** empty log message ***
16034
16035 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16036
16037         * /src/ds390/gen.c, /src/ds390/main.c:
16038         More builtin function additions for TININative
16039
16040         * /src/ds390/ralloc.c:
16041         Had broken the regression testsuite
16042
16043         * /src/SDCCast.c: Fixed a bug in dumptree
16044
16045         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16046         Added funcattr hasStackParms will be set for reentrant functions when there
16047         are paramteres on the stack, this helps in minimizing frame pointer generation
16048         typeFromStr can handle function pointers now
16049
16050         * /doc/builtins.txt, /doc/TININative.txt:
16051         *** empty log message ***
16052
16053
16054 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16055
16056         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16057         ALPHA version for -mTININative
16058
16059         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16060         updated to reflect changes in the port structure
16061
16062         * /src/port.h:
16063         added function do_assemble (similar to do_link) if non-null this function
16064         will be called to do assembly (-mTININative) requires a multi command
16065         assembly
16066         added function genAssemblerEnd will be called to generate assembler Epilogue
16067
16068         * /src/SDCCsymt.c:
16069         added _JavaNative to debug info printing
16070
16071         * /src/SDCCmain.c: added option --tini-libid
16072         added port->do_assemble function (-mTININative) has a multi command assemble
16073
16074         * /src/SDCCglue.c: Disabled "constExpr" check
16075         added port->genAssemblerEnd function
16076
16077         * /src/SDCCglobl.h: Added option --tini-libid value
16078
16079         * /src/SDCCast.h:
16080         tookout optimizeCompare from the header (has no external references)
16081
16082         * /src/SDCCast.c: made one more function "static"
16083
16084 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16085
16086         * src/z80/mappings.i: Added z80asm support.
16087
16088         * src/z80/main.c: Added z80asm support on --asm=z80asm
16089
16090         * src/z80/gen.c: Fixed asm portability issues.
16091
16092         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16093
16094         * src/SDCCglue.c (printExterns): Added global/extern split.
16095
16096 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
16097
16098         * support/regression/Makefile: added test for mcs51 model large
16099
16100         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16101
16102         * support/regression/ports/gbz80/spec.mk: added -mgbz80
16103
16104 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
16105
16106         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
16107
16108 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
16109
16110         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16111
16112         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16113
16114 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
16115
16116         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16117
16118         * support/regression/tests/simplefloat.c: Port to mcs51.
16119
16120 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
16121         * support/regression/tests/bug-485362.c: Added.
16122
16123         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16124
16125         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16126
16127         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16128
16129         * src/z80/gen.c (aopDump): Added a dump function.
16130
16131 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
16132         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16133
16134         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
16135
16136         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
16137
16138         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
16139
16140         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
16141
16142         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
16143
16144         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
16145
16146         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16147
16148         * support/regression/ports/ds390/support.c: Use tinibios.
16149
16150         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
16151
16152 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
16153
16154         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
16155         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
16156
16157         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
16158
16159         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
16160
16161 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
16162
16163         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
16164
16165         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
16166         (packRegsForIYUse): Created and optimised.
16167
16168 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16169
16170         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
16171 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
16172
16173         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
16174
16175         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
16176
16177         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
16178
16179 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16180
16181         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
16182
16183         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
16184
16185 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16186
16187         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16188
16189         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16190
16191         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16192
16193 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16194
16195         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16196         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16197         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16198
16199         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16200
16201         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16202         (genNotFloat): Added.
16203         (genUminusFloat): Added.
16204
16205         * device/lib/z80/Makefile: Added floating pt stubs.
16206
16207         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16208
16209         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16210
16211         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16212
16213 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16214
16215         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16216
16217         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16218
16219         * sdcc/support/regression/Makefile: Add port ds390.
16220
16221         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16222
16223         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16224
16225         * sdcc/support/regression/ports/ds390/spec.mk: Added.
16226
16227         * sdcc/support/regression/ports/ds390/support.c: Added.
16228
16229         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16230
16231         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16232
16233         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16234
16235 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16236
16237         * device/include/malloc.h: Added z80 and gbz80 support.
16238
16239         * device/lib/gbz80/heap.s: Added.
16240
16241         * device/lib/z80/heap.s: Added.
16242
16243         * device/lib/malloc.c: Added z80 and gbz80 support.
16244
16245         * support/regression/tests/malloc.c (testMalloc): Added.
16246
16247         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16248
16249         * support/regression/tests/bug-478094.c: Added.
16250
16251         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16252
16253 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
16254
16255         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16256
16257         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16258
16259         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16260
16261         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16262
16263         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16264
16265 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16266
16267         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16268
16269 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
16270
16271         * support/regression/tests/bug-477927.c: Added.
16272
16273         * src/z80/peeph.def: Added minor rules.
16274
16275         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16276
16277         * src/z80/peeph.def: Added jump optimisation modification.
16278
16279 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
16280
16281         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16282
16283 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
16284
16285         * support/regression/tests/funptrs.c: Added.
16286
16287 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
16288
16289         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16290
16291 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
16292
16293         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16294
16295         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16296
16297         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16298         (movLeft2ResultLong): Created.
16299
16300         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16301         (joinPushes): Added.  Joins two char pushes into a word push.
16302
16303 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
16304
16305         * support/cpp2/Makefile.in (install): Added creation of dest dir.
16306
16307         * support/makebin/Makefile (install): Added creation of dest dir.
16308
16309 2001-10-24 Karl Bongers <karl AT turbobit.com>
16310
16311         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16312
16313 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16314
16315         * src/z80/ralloc.c: Turned off faulty pack for one use.
16316
16317         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16318
16319         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16320
16321 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
16322
16323         * support/regression/Makefile: Improved clean
16324
16325         * support/regression/ports/gbz80/spec.mk: Added clean
16326
16327         * support/regression/ports/host/spec.mk: Added clean
16328
16329         * support/regression/ports/z80/spec.mk: Added clean
16330
16331         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16332
16333         * support/regression/ports/mcs51/timeout.c: little improvements
16334
16335 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
16336
16337         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16338
16339         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16340
16341         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16342
16343 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
16344
16345         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16346
16347         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16348
16349 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
16350         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16351
16352         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16353
16354         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16355
16356         * src/mcs51/main.c (_linkCmd): Added bin path to command.
16357
16358         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16359
16360         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16361
16362         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16363
16364         * support/regression/tests/longor.c: Added.
16365
16366 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
16367
16368         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16369
16370         * as/mcs51/aslink.h: define PATH_MAX
16371
16372         * as/mcs51/asm.h: define PATH_MAX
16373
16374         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16375
16376         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16377
16378         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16379
16380         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16381
16382         * src/SDCCglobl.h: define PATH_MAX
16383
16384         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16385
16386         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16387
16388 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
16389
16390         * src/z80/gen.c (gencjneshort): Fixed
16391
16392         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16393
16394 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16395
16396         * support/regression/tests/bug-469671.c: Added.
16397
16398         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16399
16400 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
16401
16402         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16403
16404         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
16405
16406 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
16407
16408         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16409
16410         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
16411
16412         * src/device/lib/_mullong.c : removed hint: nooverlay bug
16413
16414         * src/device/lib/_divuint.c : removed hint: nooverlay bug
16415
16416         * src/device/lib/_divulong.c: removed hint: nooverlay bug
16417
16418         * src/device/lib/_moduint.c : removed hint: nooverlay bug
16419
16420         * src/device/lib/_modulong.c: removed hint: nooverlay bug
16421
16422 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
16423
16424         * 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.
16425
16426         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
16427
16428         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16429
16430 2001-10-07    <johan AT FRIJA>
16431
16432         * device/lib/gets.c (gets): fixed the return value.
16433
16434 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
16435         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16436
16437         * 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.
16438
16439         * 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.
16440
16441         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16442
16443         * src/pic/gen.c: Removed Safe_strdup.
16444
16445         * configure.in: Added option to enable libgc support.
16446
16447         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16448         (bitVectUnion): Optimised.
16449         (bitVectIntersect): Optimised.
16450         (bitVectBitsInCommon): Optimised.
16451         (bitVectCplAnd): Optimised.
16452
16453         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
16454
16455 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16456
16457         * src/SDCCmain.c: distinguish between assembler debug and plain options
16458
16459         * src/avr/main.c:   remove standard assembler options
16460
16461         * src/ds390/main.c: remove standard assembler options
16462
16463         * src/mcs51/main.c: remove standard assembler options
16464
16465         * src/port.h: removed "PENDING" comment
16466
16467 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16468
16469         * src/device/lib/_mulint.c  : new, with assember functions
16470
16471         * src/device/lib/_mullong.c : new, with assember functions
16472
16473         * src/device/lib/_divuint.c : with assember functions
16474
16475         * src/device/lib/_divsint.c : with assember functions
16476
16477         * src/device/lib/_divulong.c: with assember functions
16478
16479         * src/device/lib/_divslong.c: with assember functions
16480
16481         * src/device/lib/_moduint.c : with assember functions
16482
16483         * src/device/lib/_modsint.c : with assember functions
16484
16485         * src/device/lib/_modulong.c: with assember functions
16486
16487         * src/device/lib/_modslong.c: with assember functions
16488
16489         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16490
16491         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16492
16493         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16494                                       replaced _mululong.c and _mulslong.c by _mullong.c
16495
16496 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16497
16498         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16499
16500 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16501
16502         * src/SDCCglue.c: test, if win32api is available for MINGW
16503
16504 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16505
16506         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16507         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16508         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16509         * support/regression/ports/host/spec.mk: removed GENERIC
16510         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16511         * support/regression/ports/z80/spec.mk: removed GENERIC
16512
16513 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16514
16515         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16516
16517         * support/regression/tests/bug-467035.c: Created.
16518
16519 2001-10-01    <johan AT FRIJA>
16520
16521         * src/SDCC.y: fixed bug #466586 part 1
16522
16523 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16524
16525         * SDCCicode.c: z80 has no generic pointers
16526         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16527
16528 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16529
16530         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16531
16532 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16533
16534         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16535
16536         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16537
16538 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16539
16540         * configure.in: Fixed up so that ucsim is only configured once.
16541
16542         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16543
16544         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16545         (getPathDifference): As above.
16546
16547         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16548
16549         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16550
16551 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16552         * .version: Updated to 2.3.1
16553
16554         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16555         Added copyright header.
16556
16557         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16558         (assemble): Added support for macro based assembler commands.
16559         (linkEdit): Added support for macro based linker commands.
16560         (preProcess): Changed the pre-processor to use macros.
16561         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16562         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16563
16564         * device/lib/z80/crt0.s: Added module name for debugging.
16565
16566 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16567
16568         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16569
16570         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16571
16572         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16573
16574         * src/Makefile.in: Added SDCCmacro and SDCCutil
16575
16576 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
16577
16578         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16579
16580 2001-09-16    <johan AT FRIJA>
16581
16582         * 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.
16583
16584 2001-09-15    <johan AT FRIJA>
16585
16586         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16587         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16588
16589 2001-09-11    <johan AT FRIJA>
16590
16591         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16592
16593 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16594
16595         * support/regression/tests/bug-460444.c: Added test case.
16596
16597         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16598         (genCast): Added justification for all of the asserts.
16599
16600 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16601
16602         * support/regression/support.c: _xdata replaced by xdata
16603
16604         * support/regression/spec.mk: removed _generic
16605
16606 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16607
16608         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16609
16610         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16611         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16612
16613         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16614
16615         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16616
16617         * support/regression/tests/bug-460010.c: Added test case.
16618
16619         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16620
16621 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16622
16623         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16624
16625         * support/regression/testfwk.c: removed workaround for bug #436344
16626
16627         * support/regression/tests/bp.c: use less memory with mcs51
16628
16629         * support/regression/tests/bug-441448.c: use less memory
16630
16631         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16632
16633         * support/regression/collate-results.py: typo
16634
16635 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
16636
16637         * support/regression/tests/fetchoverlap.c: Added new test case.
16638
16639         * support/regression/tests/bp.c: Added new test case.
16640
16641         * support/regression/tests/bug-448984.c: Added new test case.
16642
16643         * support/regression/tests/pow2shifts.c: Added new test case.
16644
16645         * src/z80/gen.c: Turned off the noise it normally generates for the release.
16646         (genlshTwo): Fixed right shift for count > 8.
16647
16648         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16649
16650 2001-09-08    <johan AT FRIJA>
16651
16652         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16653
16654 2001-09-07    <johan AT FRIJA>
16655
16656         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16657
16658         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16659
16660 2001-09-06    <johan AT FRIJA>
16661
16662         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16663         * bernhard noted me at this: "() equals to (void)" (1.38)
16664
16665 2001-09-05    <johan AT FRIJA>
16666
16667         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16668
16669 2001-09-04    <johan AT FRIJA>
16670
16671         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16672
16673
16674 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
16675
16676         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
16677
16678 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
16679
16680         * link/z80/aslink.h: Fixed path for PATH_MAX
16681
16682 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
16683
16684         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16685
16686         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16687
16688         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16689
16690         * 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.
16691
16692 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
16693
16694         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16695         (genCmp): Fixed up genCmp for the GB with longs.
16696
16697         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16698
16699         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16700
16701         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16702
16703         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16704
16705 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
16706
16707         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
16708
16709 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
16710
16711         * 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.
16712
16713         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16714
16715 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
16716
16717         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
16718
16719         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16720
16721 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
16722
16723   * sim/ucsim/configure:    little improvement of Cygwin-detection
16724   * sim/ucsim/configure.in: little improvement of Cygwin-detection
16725   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16726   * support/regression/tests/bug-221100.c: small changes for mcs51
16727   * support/regression/tests/bug-221168.c: small changes for mcs51
16728   * support/regression/tests/bug-227710.c: small changes for mcs51
16729   * support/regression/tests/staticinit.c: small changes for mcs51
16730   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16731   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16732   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16733
16734 $Revision$