* device/include/pic16/stdio.h,
[fw/sdcc] / ChangeLog
1 2008-10-06 Raphael Neider <rneider AT web.de>
2
3         * device/include/pic16/stdio.h,
4           device/lib/pic16/libc/stdio/putchar.c: putchar should not be
5           declared __naked for convenience, named all arguments
6         * device/lib/pic16/libc/stdio/strmgpsim.c,
7           device/lib/pic16/libc/stdio/strmmssp.c,
8           device/lib/pic16/libc/stdio/strmusart.c: cosmetic changes
9         
10         * src/pic16/pcode.c (createReachingDefinitions): avoid segfault on
11           empty __naked functions,
12         * (pCodeLabelDestruct, pic16_unlinkpCode, pic16_pCodeUnlink): fix
13           corner cases (unlink first/last pCode in list), reuse more code
14
15 2008-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
16
17         * src/ds390/main.c (_ds390_genInitStartup): added
18         * src/SDCCpeeph.c (getPatternVar): new, added,
19           (labelInRange): fixed bug 2115959
20         * src/mcs51/peeph.def (rules 193.x to 198.x): check for labelInRange
21         * src/SDCCicode.h: added newiTempOperand
22         * src/SDCCcse.c (algebraicOpts): fixed bug for x*-1,
23           added optimizations for 0/x and x/-1, see also patch 2142900
24         * support/regression/tests/onebyte.c (testMul): added test cases
25
26 2008-09-20 Borut Razem <borut.razem AT siol.net>
27
28         * src/pic16/glue.c:
29           definition of absolute address symbols without initial value,
30           fixed SDCC crash "do not know how to intialize symbol"
31
32 2008-09-16 Maarten Brock <sourceforge.brock AT dse.nl>
33
34         * device/lib/z80/mul.s (__mulsuchar_rrx_s, __muluschar_rrx_s),
35         * device/lib/z80/div.s (__divsuchar_rrx_s, __modsuchar_rrx_s,
36           __divuschar_rrx_s, __moduschar_rrx_s): added mixed signedness versions
37         * device/lib/z80/stubs.s: added stubs for above functions
38         * src/SDCCopt.c (convilong),
39         * src/SDCCsymt.c (initCSupport): fixed bug 1900961
40         * src/SDCCsymt.h (__muldiv): enlarged for mixed signedness
41         * src/z80/main.c (_hasNativeMulFor): fixed bug, I think
42         * support/regression/tests/onebyte.c: enabled all tests for z80
43
44 2008-09-15 Borut Razem <borut.razem AT siol.net>
45
46         * device/include/pic16/stdio.h, device/lib/pic16/libc/stdio/streams.c,
47           device/lib/pic16/libc/stdio/printf.c,
48           device/lib/pic16/libc/stdio/strmusart.c,
49           device/lib/pic16/libc/stdio/printf_tiny.c,
50           device/lib/pic16/libc/stdio/sprintf.c,
51           device/lib/pic16/libc/stdio/strmgpsim.c,
52           device/lib/pic16/libc/stdio/putchar.c,
53           device/lib/pic16/libc/stdio/fprintf.c,
54           device/lib/pic16/libc/stdio/strmmssp.c,
55           device/device/lib/pic16/libc/stdio/vprintf.c,
56           device/lib/pic16/libc/stdio/printf_small.c,
57           device/lib/pic16/libc/stdio/vsprintf.c,
58           device/lib/pic16/libc/stdio/strmputchar.c,
59           device/lib/pic16/libc/Makefile.am,
60           device/lib/pic16/libc/Makefile.in:
61           *printf now returns int, puchar.c moved from stdlib to stdio,
62           *printf format parameter type changed from char * to const char *,
63           added GNU link excetion text to library source files,
64           applyed GNU coding style, removed useless svn ids,
65           added BINARY_SPECIFIER macro re-enables the use of the removed 'b'
66           binary specifier: "%b", "%hb" and "%lb"
67         * device/lib/pic16/libc/stdio/vfprintf.c:
68           applied patch #2044424: PIC16: vfprintf
69           thanks Mauro Giachero
70         * support/regression/tests/bug1057979.c:
71           removed old pic16 sprintf specifics
72         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.4
73         * doc/sdccman.lyx: documented 'b' binary format specifier removal
74
75 2008-09-15 Raphael Neider <rneider AT web.de>
76
77         * src/pic16/device.c (pic16_dump_usection): force udata sections
78           into the addressable range (0..0xFFF), workaround for a gpsim
79           bug preventing simulation of regtest bug1750318
80         * src/pic16/ralloc.c (deassignLRs): cosmetic changes,
81           (serialRegAssign): fixed regtest bug-971834,
82           (pic16_packRegisters): avoid null-pointer dereference
83
84 2008-09-14 Raphael Neider <rneider AT web.de>
85
86         * src/pic16/gen.c, src/pic16/ralloc.c: use
87           SYM_SPIL_LOC/SPIL_LOC macros, no functional changes
88         * src/pic16/ralloc.c (rematStr): reimplemented, fixes #1818857
89
90 2008-09-12 Borut Razem <borut.razem AT siol.net>
91
92         * support/regression/fwk/testfwk.h:
93           define pdata as data for pic16 target
94           thanks Mauro Giachero
95
96 2008-09-11 Borut Razem <borut.razem AT siol.net>
97
98         * support/regression/tests/bug-221100.c, support/regression/shifts.c,
99           support/regression/absolute.c:
100           applied patch #2105615: Some PIC16 testcase fixlets
101           thanks Mauro Giachero
102
103 2008-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
104
105         * src/z80/gen.c (genCmpGt, genCmpLt): fixed bug 2094505
106         * support/regression/tests/bug2094505.c: new, added
107
108 2008-09-07 Borut Razem <borut.razem AT siol.net>
109
110         * src/SDCCglue.c, src/SDCCast.c:
111           fixed throw of "excess elements" warning for char arrays
112
113 2008-09-07 Maarten Brock <sourceforge.brock AT dse.nl>
114
115         * as/z80/aslist.c (lstsym): changed old K&R to ANSI
116         * src/SDCCicode.c (geniCodeCritical): fixed bug for hc08
117         * src/z80/gen.c (genCritical, genEndCritical): fixed bug 2077267
118         * support/regression/tests/bug2077267.c: new, added
119
120 2008-09-05 Raphael Neider <rneider AT web.de>
121
122         * configure.in, Makefile.common.in: add support for ccache,
123           remove spurious $VERSION output, detect doc-tools even without
124           --enable-doc to facilitate later manual doc-builds, minor cleanup
125         * configure: regenerated
126
127         * doc/Makefile.in: quieten pdflatex, makeindex, and latex2html,
128           avoid races in parallel VPATH builds
129         * doc/clean.mk: remove .lyx files in the builddir for VPATH builds
130         * doc/sdccman.lyx: mention --without-ccache configure option
131
132 2008-09-01 Raphael Neider <rneider AT web.de>
133
134         * src/pic16/gen.c (pic16_derefPtr): handle CPOINTERs as well
135         * (genConstPointerGet): fix reading bitfields from __code space
136         * src/pic16/glue.c (pic16_printIvalBitFields): correctly mask
137           bitfield initializers (fix regression test bug1856409.c)
138         * (pic16_printIvalCharPtr,pic16_printIvalPtr): generalized to support
139           arbitrary sizes
140
141 2008-08-31 Raphael Neider <rneider AT web.de>
142
143         * src/pic16/gen.c (genAssign): removed useless compiler output
144         * (genPointerGet,genPointerSet,genCast),
145           src/pic16/glue.c (pic16_printGPointerType):
146           also handle PPOINTERs just to avoid spurious asserts
147         * (pic16_printIvalType,pic16_printIvalBitFields):
148           generalized to arbitrary type/bitfield sizes, allows compilation of
149           regression test bug-1981238.c
150         * (pic16_printIvalChar): fix regression test structflexarray.c
151         * (pic16_printIvalArray): avoid SIGSEGV on uninitialized strings
152           in initialized structs and fix #1843745
153         * (pic16_printIvalStruct): always output initializers for all fields,
154           even those not explicitly given, fixes zeropad.c regression test
155         * (pic16_printIvalUnion): fix union initializers (bug1426356.c,
156           #2073635, #1567098, and #1485812)
157         * src/pic16/main.c (_pic16_keywords): remove unsupported 'pdata'
158
159 2008-08-31 Borut Razem <borut.razem AT siol.net>
160
161         * support/regression/tests/bug-895992.c,
162           support/regression/tests/onebyte.c:
163           enabled pic16 regression testing since the bugs
164           1511794: pic16: regression test bug-895992.c fails
165           1444425: onebyte.c regression tes fails on pic16
166           are fixed, probably by fixing
167           2048464: PIC16: fix genUminus - addresses not.c regression test
168         * src/SDCCsymt.c, src/SDCCglue.c,
169           support/regression/tests/bug-1981238.c:
170           applied patch 2076664: fix #1981238 + SIGSEGV in SDCCGlue.c
171           thanks to RvS
172
173 2008-08-30 Borut Razem <borut.razem AT siol.net>
174
175         * support/cpp/libcpp/files.c: SDCPP synchronized with GCC CPP
176           release version 4.3.2
177
178 2008-08-24 Raphael Neider <rneider AT web.de>
179
180         * device/lib/pic16/configure, device/lib/pic16/configure.ac:
181           always use the sdcc from the current build tree (ignore $CC from
182           the environment, fixes compile farm builds)
183         * device/lib/Makefile.in: rename .a into .lib for compatibility,
184           remove more build products from install directory
185         * sdcc/src/pic16/main.c (_pic16_linkEdit,_pic16_finaliseOptions)
186         * sdcc/support/scripts/sdcc.nsi: revert to .lib extension for libs
187
188 2008-08-24 Borut Razem <borut.razem AT siol.net>
189
190         * src/SDCC.y: applied patch
191           2050245: Fix # 1963382
192           for bug
193           1963382: Listing File - C file comment is incorrect
194           thanks to RvS
195
196 2008-08-23 Borut Razem <borut.razem AT siol.net>
197
198         * src/pic16/gen.c: applied patch
199           2048464: PIC16: fix genUminus - addresses not.c regression test
200           thanks Mauro Giachero
201
202 2008-08-22 Borut Razem <borut.razem AT siol.net>
203
204         * device/lib/pic16/configure, device/lib/pic16/configure.ac,
205           src/pic16/main.c: allow spaces in gpasm and gplink paths
206
207 2008-08-15 Philipp Klaus Krause <pkk AT spth.de>
208
209         * src/z80/peep.c,
210         * src/z80/peeph-z80.def: minor peephole improvement
211
212 2008-08-15 Raphael Neider <rneider AT web.de>
213
214         * src/z80/gen.c (_vemit2): suppress compiler warning
215
216         * src/pic/*.[ch]: make proper use of header files and avoid
217           ad-hoc extern declarations, mark module-local helpers 'static',
218           removed dead/replaced code, no functional changes
219         * src/pic16/pcode.c: disentangled from pic14 backend
220
221 2008-08-14 Philipp Klaus Krause <pkk AT spth.de>
222
223         * src/z80/gen.c: fixed #2051348
224         * support/regression/tests/bug-2051348.c: regression test for #2051348
225
226 2008-08-10 Raphael Neider <rneider AT web.de>
227
228         * configure.in,
229         * Makefile.common.in: export PACKAGE for $docdir,
230           fixes #1957036, avoid some "underquoted definition" warnings
231         * configure: regenerated
232
233 2008-08-10 Raphael Neider <rneider AT web.de>
234
235         * device/lib/pic16/**: build pic16 library using autotools for
236           improved dependency tracking
237
238         * device/lib/Makefile.in,
239         * src/pic16/main.c,
240         * support/scripts/sdcc.nsi: adapt to changes in filenames (s/.lib/.a/)
241
242 2008-08-10 Raphael Neider <rneider AT web.de>
243
244         * src/pic/pcode.c (ReuseReg): do not overlay the registers used for
245           local variables if --nooverlay is given, workaround for #2023121
246
247 2008-08-08 Raphael Neider <rneider AT web.de>
248
249         * src/pic16/genarith.c (genAddLit): fix structure access (#1888004)
250
251 2008-08-08 Raphael Neider <rneider AT web.de>
252
253         * src/pic/pcoderegs.c,
254         * src/pic/pcode.c,
255         * src/pic16/pcode.c: replace own SAFE_snprintf with common SNPRINTF
256
257 2008-08-07 Borut Razem <borut.razem AT siol.net>
258
259         * src/SDCCval.c, src/SDCCmain.c, src/SDCC.lex,
260           device/lib/pic/Makefile.rules, device/lib/ds390/Makefile.in,
261           device/lib/ds400/Makefile.in, device/lib/hc08/Makefile.in,
262           support/cpp/libcpp/lex.c,  doc/sdccman.lyx:
263           applied modified patch 2038174: Add support for binary constants v2
264           thanks Mauro Giachero
265         * .version, doc/sdccman.lyx: bumped sdcc version to 2.8.3
266
267 2008-08-04 Raphael Neider <rneider AT web.de>
268
269         * doc/sdccman.lyx,
270         * src/pic16/device.h,
271         * src/pic16/glue.c,
272         * src/pic16/main.c: enable --optimize-goto by default
273
274         * device/lib/pic16/Makefile.common.in: suppress removed option
275
276         * src/pic16/gen.c,
277         * src/pic16/genutils.c: avoid too long relative branches (#2031890)
278
279 2008-07-30 Borut Razem <borut.razem AT siol.net>
280
281         * src/pic16/device.c, src/pic16/glue.c, src/pic16/pcode.c:
282           applied patch 22032433: PIC16: fix constant strings,
283           thanks Mauro Giachero
284
285 2008-07-29 Borut Razem <borut.razem AT siol.net>
286
287         * src/pic16/gen.c: applied patches:
288           2030306: [1/3] PIC16: fix failing rotate.c tests on 16-bit variables,
289           2030307: [2/3] PIC16: fix failing rotate.c tests for 32-bit var (1),
290           2030310: [3/3] PIC16: fix failing rotate.c tests for 32-bit var (2),
291           thanks Mauro Giachero
292
293 2008-07-13 Philipp Klaus Krause <pkk AT spth.de>
294
295         * src/port.h: Fixed typo in comment
296
297 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
298
299         * src/z80/mappings.i: Implemented RFE #1919415
300         * src/z80/peeph-z80.def: Implemented RFE #1919415, #1861376,
301           #1880202, #1914434, prepared for RFE #1703943
302
303 2008-07-12 Philipp Klaus Krause <pkk AT spth.de>
304
305         * src/z80/peeph.def,
306         * src/z80/peeph-z80.def,
307         * src/z80/peeph-gbz80.def: separate Z80 from GBZ80 peepholes in
308           preparation for Z80 peephole improvements
309
310 2008-06-21 Raphael Neider <rneider AT web.de>
311
312         * device/include/pic16/pic18f66j60.h,
313         * device/include/pic16/pic18f66j65.h,
314         * device/include/pic16/pic18f67j60.h,
315         * device/include/pic16/pic18f86j60.h,
316         * device/include/pic16/pic18f86j65.h,
317         * device/include/pic16/pic18f87j60.h,
318         * device/include/pic16/pic18f96j60.h,
319         * device/include/pic16/pic18f96j65.h,
320         * device/include/pic16/pic18f97j60.h,
321         * device/lib/pic16/libdev/pic18f66j60.c,
322         * device/lib/pic16/libdev/pic18f66j65.c,
323         * device/lib/pic16/libdev/pic18f67j60.c,
324         * device/lib/pic16/libdev/pic18f86j60.c,
325         * device/lib/pic16/libdev/pic18f86j65.c,
326         * device/lib/pic16/libdev/pic18f87j60.c,
327         * device/lib/pic16/libdev/pic18f96j60.c,
328         * device/lib/pic16/libdev/pic18f96j65.c,
329         * device/lib/pic16/libdev/pic18f97j60.c,
330         * device/include/pic16/pic16devices.txt,
331         * device/include/pic16/pic18fregs.h,
332         * device/lib/pic16/pics.all: added new devices
333
334         * device/include/pic16/adc.h,
335         * device/lib/pic16/libio/adc/adcbusy.c,
336         * device/lib/pic16/libio/adc/adcopen.c,
337         * device/lib/pic16/libio/adc/adcsetch.c,
338         * device/lib/pic16/libio/i2c/i2copen.c,
339         * device/lib/pic16/libio/usart/uopen.c: adapted to new devices,
340           all changes from a patch by Anton Strobl
341
342 2008-06-12 Borut Razem <borut.razem AT siol.net>
343
344         * sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/bp.cc,
345           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
346           sim/ucsim/z80.src/z80cl.h, sim/ucsim/z80.src/z80.cc,
347           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
348           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
349           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/uc390.cc,
350           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/uc390cl.h,
351           sim/ucsim/avr.src/avrcl.h, sim/ucsim/avr.src/avr.cc:
352           fixed bug 1990586: s51 simulator, uc::disass() unimplemented
353           by applying the modified patch from Risto Huotari
354
355 2008-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
356
357         * .version,
358         * doc/sdccman.lyx: bumped sdcc version to 2.8.2
359         * src/ds390/gen.c (aopPutUsesAcc, genAddrOf): fixed bug 1015185
360         * src/mcs51/gen.c (genNearPointerGet, genNearPointerSet): fixed bug 1938300
361         * support/regression/tests/bug1938300.c: new, added
362
363 2008-06-03 Maarten Brock <sourceforge.brock AT dse.nl>
364
365         * device/include/asm/ds390/features.h,
366         * device/include/asm/mcs51/features.h,
367         * device/include/mcs51/regc515c.h: inserted LGPL notice
368
369 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
370
371         * device/lib/gbz80/div.s,
372         * device/lib/z80/div.s: fixed bug 1904314 by applying a modified part of
373           patch 1597883, Thanks Robert Ramey
374
375 2008-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
376
377         * src/SDCCast.c (createIvalType, createIvalStruct, createIvalArray,
378           createIvalCharPtr, createIvalPtr, createIval),
379         * src/SDCCval.h
380         * src/SDCCval.c (convertIListToConstList, list2expr): handle incomplete
381           initializers for local auto variables
382         * support/regression/tests/zeropad.c: added testcase for auto initializers
383
384 2008-05-26 Raphael Neider <rneider AT web.de>
385
386         * device/lib/pic16/startup/crt0.c,
387         * device/lib/pic16/startup/crt0i.c,
388         * device/lib/pic16/startup/crt0iz.c: clean up, make use of access bank
389           explicit, fixed curr_entry loop for >= 256 initializer records,
390           removed debug code (write to 0xf7e)
391
392 2008-05-25 Raphael Neider <rneider AT web.de>
393
394         * device/include/pic/pic16f627a.h,
395         * device/include/pic/pic16f628a.h,
396         * device/include/pic/pic16f648a.h: added missing ports
397
398 2008-05-20 Maarten Brock <sourceforge.brock AT dse.nl>
399
400         * device/include/float.h: added __INFINITY
401         * device/lib/_fsadd.c: handle overflows
402         * device/lib/_fsmul.c,
403         * device/lib/_fsdiv.c: use __INFINITY
404         * device/lib/_fseq.c,
405         * device/lib/_fsneq.c: handle -0.0
406         * sim/ucsim/s51.src/uc89c51r.cc,
407         * sim/ucsim/s51.src/uc89c51rcl.h: fixed bug 1385430
408         * sim/ucsim/sim.src/hwcl.h: */* confuses VC
409         * src/mcs51/gen.c (genSend): fixed bug with --xstack
410         * support/regression/ports/mcs51-xstack-auto/spec.mk: print floats
411         * support/regression/tests/snprintf.c: test bug with --xstack
412
413 2008-05-19  Philipp Klaus Krause <pkk AT spth.de>
414
415         * src/SDCCpeeph.c (callFuncByName):
416           Support nested parenthesis in peephole function arguments (#1967300)
417
418 2008-05-19 Raphael Neider <rneider AT web.de>
419
420         * src/pic16/gen.c (pic16_emitpLabel,pic16_emitpLabelFORCE):
421           fixed duplicate labels (#1911325)
422
423 2008-05-19 Raphael Neider <rneider AT web.de>
424
425         * src/regression/empty.c: suppress warning
426         * src/regression/pointer1.c: enabled index_by_pointer()
427         * src/regression/inline.c: now works for pic16 as well
428
429         * src/pic16/device.c: include dbuf declarations
430         * src/pic16/device.h: removed obsolete prototypes
431
432         * src/pic16/gen.c, src/pic16/gen.h: moved generic pointer tags
433         * src/pic16/glue.c: made purely local functions static,
434           (pic16_printGPointerType, pic16_printIvalCharPtr,
435           pic16_printIvalFuncPtr, pic16_printIvalPtr): fixed initialized
436           generic pointers' tags (#1961866)
437
438         * src/pic16/pcode.c (assignValnums): optimize literal assignments
439
440 2008-05-19 Borut Razem <borut.razem AT siol.net>
441
442         * support/scripts/sdcc.nsi: remove uninstall.exe after uninstallation,
443           fixed typo, uninstall include/pic16/pic16devices.txt
444
445 2008-05-18 Borut Razem <borut.razem AT siol.net>
446
447         * support/Utils/dbuf_string.[ch]: added dbuf_chomp(),
448           the buffer is null terminated
449         * src/device/pic16.c:
450           applied modified patch 1965676: Patch for Win32 16 bit PIC
451         * sdcc_vc_in.h: defined YY_NO_UNISTD_H
452
453 2008-05-16 Maarten Brock <sourceforge.brock AT dse.nl>
454
455         * src/SDCC.lex (check_type),
456         * src/SDCC.y (type_specifier2 TYPE_NAME): fixed bug 1925942
457         * as/hc08/clean.mk,
458         * as/mcs51/clean.mk,
459         * as/z80/clean.mk: also clean *.dep
460         * device/lib/pic16/libsdcc/stack/Makefile,
461         * sim/ucsim/libtool: removed as they are rebuild by configure
462         * src/clean.mk: removed izt, so Makefile is not deleted for distclean
463
464 2008-05-13 Maarten Brock <sourceforge.brock AT dse.nl>
465
466         * src/SDCCast.c (fixupInline, createFunction): save currBlockno in
467           fixupInline instead of createFunction to fix bug 1864577
468           (inlineFindMaxBlockno): removed, use global blockNo
469         * src/SDCCglobl.h: added blockNo
470         * src/z80/peep.c,
471         * src/z80/peep.h: modified properties
472         * support/regression/tests/bug1864577.c: new, added
473
474 2008-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
475
476         * as/mcs51/asdata.c,
477         * as/mcs51/asm.h: added org_cnt
478         * as/mcs51/asmain.c (main, asmbl): fixed bug 1957716, changed old K&R to ANSI
479         * as/mcs51/asout.c: changed old K&R to ANSI
480         * as/mcs51/Makefile.in: use common identifiers
481         * as/hc08/asdata.c,
482         * as/hc08/asexpr.c,
483         * as/hc08/asm.h,
484         * as/hc08/asmain.c,
485         * as/hc08/asout.c,
486         * as/hc08/Makefile.bcc,
487         * as/hc08/Makefile.in: synchronized with as/mcs51/*
488         * sdcc_vc_in.h: added define __func__
489         * src/SDCCast.c (expandInlineFuncs): applied patch 1957148 to fix bug 1717305,
490           Thanks Ruud van Silfhout
491         * support/regression/tests/bug1717305.c: new, added
492
493 2008-05-05 Borut Razem <borut.razem AT siol.net>
494
495         * support/regression/Makefile.in,
496           support/regression/ports/ds390/spec.mk,
497           support/regression/ports/hc08/spec.mk,
498           support/regression/ports/mcs51-common/spec.mk,
499           support/regression/ports/pic14/spec.mk,
500           support/regression/ports/pic16/spec.mk,
501           support/regression/ports/ucz80/spec.mk,
502           support/regression/ports/z80/spec.mk:
503           added INC_DIR and LIBDIR paths
504         * src/ds390/gen.c: removed duplicated selicolon
505
506 2008-05-04 Borut Razem <borut.razem AT siol.net>
507
508         * support/regression/Makefile.in,
509           support/regression/fwk/lib/testfwk.c,
510           support/regression/ports/ds390/spec.mk,
511           support/regression/ports/hc08/spec.mk,
512           support/regression/ports/mcs51-common/spec.mk,
513           support/regression/ports/mcs51-large/spec.mk,
514           support/regression/ports/mcs51-medium/spec.mk,
515           support/regression/ports/mcs51-small/spec.mk,
516           support/regression/ports/mcs51-stack-auto/spec.mk,
517           support/regression/ports/mcs51-xstack-auto/spec.mk,
518           support/regression/ports/pic14/spec.mk,
519           support/regression/ports/pic16/spec.mk,
520           support/regression/ports/ucz80/spec.mk:
521           added possibility to define the sdcc binary directory SDCC_BIN_PATH
522           used to run regeression tests
523
524 2008-05-01 Raphael Neider <rneider AT web.de>
525
526         * doc/sdccman.lyx, support/scripts/inc2h-pic16.pl: updated list of
527           supported devices and instructions to add new ones
528
529 2008-05-01 Raphael Neider <rneider AT web.de>
530
531         * device/include/pic16/adc.h,
532           device/lib/pic16/libio/adc/adcbusy.c,
533           device/lib/pic16/libio/adc/adcopen.c,
534           device/lib/pic16/libio/adc/adcsetch.c: support old 18f242 and new
535           18f2455 style ADC devices, based on patch #1776197
536         * device/lib/pic16/libio/adc/adcclose.c,
537           device/lib/pic16/libio/adc/adcconv.c,
538           device/lib/pic16/libio/adc/adcread.c: cosmetic changes
539         * device/include/pic16/{pic18f2331.h,pic18f2431.h},
540           device/lib/pic16/libdev/{pic18f2331.c,pic18f2431.c}: reuse 18f4331
541         * device/include/pic16/pic18f4431.h,
542           device/lib/pic16/libdev/pic18f4431.c: remove outdated comments
543         * device/lib/pic16/libio/adc.ignore: forbid unhandled devices
544
545 2008-05-01 Raphael Neider <rneider AT web.de>
546
547         * src/pic16/device.h: removed unused field PIC16_device.sfrRange,
548           moved xinst flag into pic16_options_t
549         * src/pic16/device.c (default_device, pic16_list_devices,
550           pic16_find_device): removed references to sfrrange
551         * src/pic16/gen.c (genFunction),
552           src/pic16/glue.c (pic16initialComments),
553           src/pic16/main.c (pic16_optionsTable),
554           src/pic16/ralloc.c (newReg, pic16_writeUsedRegs): updated references
555           to xinst
556         * device/include/pic16/pic16devices.txt: removed sfrrange lines
557
558 2008-04-29 Raphael Neider <rneider AT web.de>
559
560         * src/pic16/devices.inc,
561           device/include/pic16/pic16devices.txt: replaced compiled-in list
562           of devices with a variant parsed at runtime
563         * src/pic16/device.c: added support for parsing pic16devices.txt,
564           clean up
565         * src/pic16/device.h: removed (now) unused fields from PIC_device
566         * src/pic16/main.c: removed #pragma maxram,
567           (_pic16_initPaths): removed bogus generation of search paths,
568           setup the port proper only after the search paths (for
569           pic16devices.txt) are set up,
570           (_pic16_finaliseOptions): moved processor dependant code here
571           from _pic16_initPaths(), clean up
572         * src/pic16/ralloc.c (pic16_init_stack),
573         * src/pic16/ralloc.h,
574         * src/pic16/pcode.c: clean up
575         * device/include/Makefile.in,
576           support/scripts/sdcc.nsi: also install/package pic16devices.txt
577         * support/scripts/inc2h-pic16.pl: updated instructions
578
579 2008-04-29 Raphael Neider <rneider AT web.de>
580
581         * device/include/pic16/{pic18f2480.h, pic18f2580.h, pic18f4423.h,
582           pic18f4480.h, pic18f4523.h, pic18f4580.h, pic18f6585.h, pic18f8585.h},
583           device/lib/pic16/libdev/{pic18f2480.c, pic18f2580.c, pic18f4423.c,
584           pic18f4480.c, pic18f4523.c, pic18f4580.c, pic18f6585.c, pic18f8585.c}:
585           added missing family members and 18f2480/2580/4480/4580 family
586         * device/include/pic16/{pic18f2423.h, pic18f2523.h}: use 18f4523.h
587         * device/include/pic16/pic18f2525.h: use 18f4620.h
588         * device/include/pic16/pic18f6680.h: use 18f8680.h
589         * device/include/pic16/pic18fregs.h,
590           device/lib/pic16/pics.all,
591           src/pic16/devices.inc: add new devices
592         * device/lib/pic16/libdev/{pic18f2423.c, pic18f2523.c}: use 18f4523.c
593         * device/lib/pic16/libdev/pic18f2525.c: use 18f4620.c
594         * device/lib/pic16/libdev/pic18f6680.c: uso 18f8680.c
595         * device/lib/pic16/libio/{adc.ignore, i2c.ignore, usart.ignore}:
596           prevent attempting to build the libio for some new devices
597
598 2008-04-29 Raphael Neider <rneider AT web.de>
599
600         * debugger/mcs51/Makefile.in: fixed paths to sources
601
602 2008-04-25 Borut Razem <borut.razem AT siol.net>
603
604         * as/link/lklibr.c: moved from as/link/z80/lklibr.c
605         * as/link/hc08/lklibr.c, as/link/mcs51/lklibr.c: deleted
606         * as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
607         * as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
608           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
609           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
610           as/link/z80/linkz80.dsp: lklibr.c moved
611         * doc/INSTALL.txt: binary archives in bz2 format
612         * support/cpp/auto-host_vc_in.h: CPP2 replaced with CPP
613
614 2008-04-23 Maarten Brock <sourceforge.brock AT dse.nl>
615
616         * src/SDCCglue.c (printIvalType, printIvalBitFields): fixed bug 1856409
617         * support/regression/tests/bug1856409.c: new, added
618
619 2008-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
620
621         * src/z80/peep.c,
622         * src/mcs51/peep.c: Use werror for error messages.
623         * src/SDCCicode.c (geniCodeConditional),
624         * src/SDCCsymt.c (structElemType): fixed bug 1839321
625         * src/z80/Makefile.bcc,
626         * src/z80/z80.dsp: added src/z80/peep.c/h
627         * support/regression/tests/bug1839321.c: new, added
628
629 2008-04-20 Raphael Neider <rneider AT web.de>
630
631         * device/include/pic16/pic18f2455.h: added bitfields for port C
632
633 2008-04-20 Philipp Klaus Krause <pkk AT spth.de>
634
635         * src/z80/peep.c: Use werror for error messages.
636
637 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
638
639         * src/z80/peep.h (declaration of notUsed()),
640         * src/z80/main.c (enabled notUsed() for z80 port, documented z80_port
641           struct),
642         * src/z80/z80.h (added dependency on peep.h),
643         * src/z80/peep.c (definition of notUsed()): Implemented RFE #1880202
644           for Z80.
645
646 2008-04-19 Philipp Klaus Krause <pkk AT spth.de>
647
648         * src/SDCCpeeph.c (added support for notUsed()),
649         * src/mcs51/main.c (added dependency on peep.h, documented mcs51_port
650           struct),
651         * src/port.h (removed dependency on mcs51/peep.h, added declaration
652           for notUsed()): Implemented generic (that is not port-specific) part
653           of RFE #1880202.
654
655 2008-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
656
657         * as/link/mcs51/lkmem.c (summary2): fixed bug 1796077
658         * device/lib/libsdcc.lib,
659         * device/lib/Makefile.in,
660         * support/regression/ports/mcs51-xstack-auto/spec.mk,
661         * device/lib/calloc.c: renamed to _calloc.c
662         * device/lib/free.c: renamed to _free.c
663         * device/lib/malloc.c: renamed to _malloc.c
664         * device/lib/realloc.c: renamed to _realloc.c
665         * src/ds390/gen.c (aopGet, aopPut, genPlusBits, genDataPointerSet,
666           genNearPointerSet, genPagedPointerSet): synchronized with mcs51/gen.c
667         * src/ds390/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq, ifxForOp,
668           genAnd, genOr, genXor, genIfx, gen390Code): fixed bug 1509084
669         * src/mcs51/gen.c (popForBranch, genIfxJump, genCmp, genCmpEq,
670           ifxForOp, genAnd, genOr, genXor, genNearPointerGet,
671           genPagedPointerGet, genFarPointerGet, genCodePointerGet,
672           genGenPointerGet, genIfx, gen51Code): fixed bug 1509084
673         * src/ds390/gen.c,
674         * src/mcs51/gen.c: throughout cosmetic changes for syncing both
675         * src/SDCCsymt.h: updated IS_OP_RUONLY, IS_OP_ACCUSE
676         * support/regression/tests/bug1509084.c: new, added
677
678 2008-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
679
680         * device/include/mcs51/cc2510fx.h: added _XPAGE
681         * device/include/mcs51/compiler.h: cosmetic changes
682
683 2008-03-31 Maarten Brock <sourceforge.brock AT dse.nl>
684
685         * sdcc.dsw: adapted for moved cpp2, added dependency for as_z80 on
686           config
687
688 2008-03-31 Borut Razem <borut.razem AT siol.net>
689
690         * support/cpp2 renamed to support/cpp
691         * support/cpp2/libiberty/filenames.h, support/cpp2/libiberty/hex.c,
692           support/cpp2/libiberty/splay-tree.c,
693           support/cpp2/libiberty/splay-tree.h, support/cpp2/libcpp/macro.c,
694           support/cpp2/libcpp/directives.c,
695           support/cpp2/libcpp/include/cpplib.h,
696           support/cpp2/libcpp/include/symtab.h,
697           support/cpp2/libcpp/include/line-map.h,
698           support/cpp2/libcpp/line-map.c, support/cpp2/libcpp/files.c,
699           support/cpp2/libcpp/init.c, support/cpp2/libcpp/traditional.c,
700           support/cpp2/libcpp/expr.c, support/cpp2/libcpp/internal.h,
701           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/system.h,
702           support/cpp2/libcpp/charset.c: SDCPP synchronized with GCC CPP
703           release version 4.3.0
704         * configure.in, configure, Makefile.in, Makefile.bcc:
705           adapted for moved cpp2
706
707 2008-03-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
708
709         * device/include/hc08/mc68hc908jkjl.h: committed fix for bug #1929739,
710           thanks Alejandro Pustowka <alejo_pustowka AT yahoo.com.mx>
711
712 2008-03-30 Maarten Brock <sourceforge.brock AT dse.nl>
713
714         * src/SDCCloop.c (loopInvariants): applied fix for bug 1717943, thanks
715           Robert Larice
716         * support/regression/tests/bug1717943.c: new, added
717
718 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
719
720         * src/z80/gen.c (assignResultValue): Reverted reversal of order of
721           bytewise return value assignments introduced in last commit.
722
723 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
724
725         * src/z80/gen.c (emitDebug, assignResultValue, genPlus, genMinus,
726           genMult, genJumpTab):
727           Use 16-bit instructions for addition in some additional cases,
728           implemented RFEs #1914251, #1914245, #1922090, #1921382, #1918323.
729
730 2008-03-30 Philipp Klaus Krause <pkk AT spth.de>
731
732         * src/z80/ralloc.c (serialRegAssign, allocReg, tryAllocatingRegPair):
733           Implemented RFE #1921450, changed some debug messages.
734
735 2008-03-30 Borut Razem <borut.razem AT siol.net>
736
737         * Small Device C Compiler 2.8.0 released
738         * .version, doc/sdccman.lyx: changed sdcc version to 2.8.1
739         * support/scripts/sdcc.nsi: added finish page; this version
740           was used for 2.8.0 release
741         * doc/knownbugs.html: removed; magically generated by the build
742           process using gen_known_bugs.pl from now on
743
744 2008-03-23 Borut Razem <borut.razem AT siol.net>
745
746         * src/pic/gen.h: Q&D solution for the bug, found by Jim Paris
747           and reverted it, since it was already fixed by Raphael ;-)
748         * doc/knownbugs.html: updated for RC2
749
750 2008-03-22 Raphael Neider <rneider AT web.de>
751
752         * src/SDCCicode.c (getPtrType): avoid unnecessary extra assignments
753           for PIC16 targets
754
755 2008-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
756
757         * src/mcs51/gen.c (adjustArithmeticResult): fixed bug 1839299
758         * support/regression/tests/bug1839277.c: added related testBug1839299
759
760 2008-03-21 Maarten Brock <sourceforge.brock AT dse.nl>
761
762         * src/ds390/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign),
763         * src/mcs51/gen.c (opIsGptr, adjustArithmeticResult, genAddrOf, genAssign):
764           fixed bug 1839277
765         * src/mcs51/gen.c: throughout only output hex constants
766         * src/SDCCicode.c (getPtrType, geniCodeCast): fixed code size regression
767         * support/regression/tests/bug1839277.c: new, added
768
769 2008-03-21 Philipp Klaus Krause <pkk AT spth.de>
770
771         * src/z80/ralloc.c (callFuncByName): Used // instead of /**/ to fix
772           compilation warning about nested comments.
773
774 2008-03-20 Maarten Brock <sourceforge.brock AT dse.nl>
775
776         * src/SDCCsymt.c (comparePtrType): fixed bug 1921073
777         * support/regression/tests/bug1921073.c: new, added
778
779 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
780
781         * src/z80/SDCCpeeph.c.c (callFuncByName):
782           Commented function parameters.
783
784 2008-03-17 Philipp Klaus Krause <pkk AT spth.de>
785
786         * src/z80/ralloc.c (packRegsForAccUse2):
787           disabled a broken accumulator packing optimization (fixed #1292721).
788         * support/regression/tests/bug-1292721: Regression test for #1292721.
789
790 2008-03-16 Raphael Neider <rneider AT web.de>
791
792         * src/pic/gen.c (SetIrp,genNearPointerGet,genNearPointerSet):
793           fixed code bloat regression using a variant of patch #1915618
794
795 2008-03-16 Borut Razem <borut.razem AT siol.net>
796
797         * support/scripts/sdcc.nsi: added section debugging macros, added SDCC
798           icon, changed startup menu for release distribution, code cleaning,
799           create url files instead links in startup menu
800
801 2008-03-16 Maarten Brock <sourceforge.brock AT dse.nl>
802
803         * src/SDCCcse.c (algebraicOpts): fixed bug 1579949
804         * support/regression/tests/bug1579949.c: new, added
805
806 2008-03-14 Paul Stoffregen <paul AT pjrc.com>
807
808         * device/lib/printf_fast.c: fixed bug 1255403
809
810 2008-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
811
812         * doc/sdccman.lyx: enhanced paragraph about bankswitching for mcs51
813         * src/cdbFile.c (cdbWriteBasicSymbol): fixed bug 1909409 for locals
814
815 2008-03-14 Borut Razem <borut.razem AT siol.net>
816
817         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated link-xx and aslink
818           command line options
819         * as/link/hc08/lkmain.c: converted tabs to spaces so that the usage
820           is correctly displayed
821         * as/link/z80/lkmain.c: usage line commented out
822
823 2008-03-13 Borut Razem <borut.razem AT siol.net>
824
825         * doc/sdccman.lyx: corrected to be able to convert to PDF,
826           updated the list pf supported pic14 devices
827
828 2008-03-12 Maarten Brock <sourceforge.brock AT dse.nl>
829
830         * doc/sdccman.lyx: added paragraph about bankswitching for mcs51
831
832 2008-03-12 Borut Razem <borut.razem AT siol.net>
833
834         * as/doc/asmlnk.doc, as/doc/asxhtm.html: updated command line options,
835           fixed documentation request #1718191
836         * as/hc80/asmain.c, as/mcs51/asmain.c: added option -c to usage
837         * doc/sdccman.lyx: added description of --no-std-crt0 gbz80
838           command line option
839
840 2008-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
841
842         * src/SDCCast.c (isConformingBody): fixed bug 1505811, thanks Robert Larice
843         * support/regression/tests/bug1505811.c: new, added
844
845 2008-03-09 Raphael Neider <rneider AT web.de>
846
847         * device/include/pic16/pic18f2620.h,
848         * device/include/pic16/pic18f4620.h,
849         * device/lib/pic16/libdev/pic18f2620.c,
850         * device/lib/pic16/libdev/pic18f4525.c,
851         * device/lib/pic16/libdev/pic18f4620.c: merged 18f2525/2620/4525/4620
852           family to consistently use pic18f4620.[ch], fixes #1832562
853
854 2008-03-09 Borut Razem <borut.razem AT siol.net>
855
856         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
857           changed sdcc version to 2.8.0
858         * knownbugs.html: regenerated
859         * support/scripts/gen_known_bugs.pl: added number of open bugs
860
861 2008-03-09 Raphael Neider <rneider AT web.de>
862
863         * src/pic16/gen.c (pic16_mov2w_volatile): NEW, read volatile operands,
864           (genOr): read volatile operand even if the result is known,
865           closes #1511838
866           (genOr,genXor): removed unused legacy code,
867           (genDummyRead): use pic16_mov2w_volatile()
868
869 2008-03-08 Borut Razem <borut.razem AT siol.net>
870
871         * src/SDCCglue.c: fixed bug #1864582: multiple definition of char
872           cons w. --model-large
873         * support/regression/staticinit.c: added regression test for bug
874           #1864582
875
876 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
877
878         * src/ds390/gen.c (pushSide, genPcall),
879         * src/hc08/gen.c (pushSide, genPcall): synchronized with mcs51
880         * src/mcs51/gen.c: cosmetic changes
881         * support/regression/fwk/include/testfwk.h: added macro reentrant
882         * support/regression/tests/bug1908493.c: new, added
883
884 2008-03-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
885
886         * src/SDCCdebug.c:, as/link/lkaomf51.c: Fixed bug 1909409: Pdata in OMF file
887
888 2008-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
889
890         * src/mcs51/gen.c (pushSide, genPcall): fixed bug 1908493
891         * src/SDCCmain.c (preProcess): removed -DSDCC_PARMS_IN_BANK1 because it is
892           already set in ds390/main.c and mcs51/main.c
893
894 2008-03-07 Raphael Neider <rneider AT web.de>
895
896         * src/regression/init0.c: new test for initialized arrays of function
897           pointers
898         * src/regression/Makefile: made a bit more flexible, added init0.c
899         * src/pic/glue.c (emitIvals): hacky fix for initializing from function
900           pointers, closes #1427663
901
902 2008-03-05 Borut Razem <borut.razem AT siol.net>
903
904         * dos/sdccman.lyx: docummented predefined macros SDCC_REVISION,
905           SDCC_PARMS_IN_BANK1, SDCC_FLOAT_REENT and SDCC_INT_LONG_REENT
906
907 2008-03-05 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
908
909         * support/librarian/sdcclib.c:Added feature request 1908061:
910           Synchronise sdcclib commands with ar.
911
912 2008-03-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
913
914         * src/SDCCmain.c: added predefined macros SDCC_REVISION (RFE #1907229),
915           and (depending on corresponding compiler option) SDCC_PARMS_IN_BANK1,
916           SDCC_FLOAT_REENT, SDCC_INT_LONG_REENT
917         * device/include/mcs51/compiler.h: removed umlauts, added double
918           underscore
919
920 2008-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
921
922         * src/SDCCptropt.c (ptrPseudoSymConvert): fixed bug 1536762
923         * support/regression/tests/bug1536762.c: new, added
924         * src/SDCCutil.c,
925         * src/SDCCutil.h: added getBuildDate()
926         * src/SDCCmain.c (printVersionInfo),
927         * src/SDCCglue.c (initialComments): use getBuildDate() instead of
928           __DATE__
929         * src/*/ralloc.c: removed IS_OP_RUONLY macro
930         * src/ds390/ralloc.c (packRegisters),
931         * src/mcs51/ralloc.c (packRegisters),
932         * src/z80/ralloc.c (packRegisters): applied fix for bug 1618050, thanks
933           Robert Larice
934         * support/regression/tests/bug1618050.c: new, added
935         * src/SDCCsymt.h: fixed typo in DECLSPEC2TXT
936         * support/regression/fwk/include/testfwk.h,
937         * support/regression/tests/bug1838000.c: moved _AUTOMEM and _STATMEM to
938           testfwk.h
939
940 2008-03-04 Raphael Neider <rneider AT web.de>
941
942         * src/pic/gen.c: removed unused prototypes, prevent internal errors
943           on accessing OP_SYM_TYPE(op)
944         * src/pic/gen.h: removed unused prototype of genMinusDec()
945         * src/pic/genarith.c (genMinus): cosmetic changes, rewritten to
946           fix #1876953 (invalid subtraction code), removed unused code
947
948 2008-03-03 Raphael Neider <rneider AT web.de>
949
950         * src/pic/gen.c,
951         * src/pic/gen.h,
952         * src/pic/genarith.c,
953         * src/pic/ralloc.c,
954         * src/pic/ralloc.h: removed AOP_R0, AOP_R1, AOP_DPTR, AOP_DPTR2,
955           AOP_ACC, and *_IDX and adjusted code, removed unused legacy code
956
957 2008-03-03 Raphael Neider <rneider AT web.de>
958
959         * src/pic/device.c (find_device): search user-specified paths first
960           for pic14devices.txt, fixes #1900827
961
962 2008-03-02 Borut Razem <borut.razem AT siol.net>
963
964         * support/scripts/sdcc.nsi: fixed bug in IsNT, LogicLib-isation of
965           AddToPath and RemoveFromPath
966
967 2008-03-01 Borut Razem <borut.razem AT siol.net>
968
969         * support/scripts/sdcc.nsi: reverted MULTIUSER page since it didn't
970           work correctly, added debugging support if -DSDCC.DEBUG command line
971           option is defined
972
973 2008-02-28 Borut Razem <borut.razem AT siol.net>
974
975         * doc/sdccman.lyx: cosmetic changes
976
977 2008-02-28 Maarten Brock <sourceforge.brock AT dse.nl>
978
979         * src/mcs51/ralloc.c (fillGaps): fixed bug 1839671
980         * doc/sdccman.lyx: fixed unmeant removal of spaces
981
982 2008-02-27 Borut Razem <borut.razem AT siol.net>
983
984         * support/scripts/sdcc.nsi: corrected installation directory for
985           current user installation mode
986         * doc/README.txt: added Philipp Klaus Krause to the developers list
987
988 2008-02-27 Maarten Brock <sourceforge.brock AT dse.nl>
989
990         * src/mcs51/gen.c (genUnpackBits): don't generate ifxJump, instead
991           return ifx condition
992           (genNearPointerGet, genPagedPointerGet, genFarPointerGet,
993           genCodePointerGet, genGenPointerGet): cleanup aop before generating
994             ifxJump to fix bug 1838000
995         * src/SDCCsymt.c (aggregateToPointer): fix problem for xstack
996         * support/regression/tests/bug1838000.c: new, added
997         * device/include/mcs51/cc1110.h: new, added, thanks to Pravin Angolkar
998
999 2008-02-26 Borut Razem <borut.razem AT siol.net>
1000
1001         * src/SDCCast.c, doc/sdccman.lyx: fixed RFE #1901171: inerger promotion
1002           of casted varargs
1003         * support/scripts/sdcc.nsi: added MULTIUSER page,
1004           NSIS upgraded to version 2.35
1005
1006 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1007
1008         * src/mcs51/ralloc.c (isSpiltOnStack): fixed bug 1565152
1009         * support/regression/tests/bug1565152.c: new, added
1010
1011 2008-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
1012
1013         * src/mcs51/gen.c (genPagedPointerSet): fixed bug 1670148
1014         * support/regression/ports/mcs51-xstack-auto/spec.mk: added expf.c
1015         * support/regression/tests/bug1670148.c: new, added
1016
1017 2008-02-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1018
1019         * device/include/mcs51/at89c51ed2.h: fixed bug 1901469.
1020
1021 2008-02-24 Borut Razem <borut.razem AT siol.net>
1022
1023         * src/SDCCast.c, src/SDCCast.h: fixed bug #1874922: explicit typecast
1024           is ineffective for unsigned char parameter
1025
1026 2008-02-24 Maarten Brock <sourceforge.brock AT dse.nl>
1027
1028         * src/SDCCast.c (expandInlineFuncs): fixed bug 1875869
1029         * src/SDCCglue.c (printIvalBitFields): fixed bug 1806631
1030         * support/regression/tests/bitopcse.c: removed hc08 exception, see testfwk.h
1031         * support/Util/MySystem.c (my_system): output errorcode when verbose
1032
1033 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1034
1035         * src/z80/gen.c (genMult): Rewrote 8-bit multiplication by constant,
1036           implements #1898231
1037
1038 2008-02-22 Philipp Klaus Krause <pkk AT spth.de>
1039
1040         * device/lib/z80/mul.s: Rewrote __muluchar_rrx_s, to improve 8-bit mult.,
1041           implements #1896290
1042
1043 2008-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
1044
1045         * src/SDCCast.c (createIvalStruct): fixed bug 1466761
1046
1047 2008-02-21 Borut Razem <borut.razem AT siol.net>
1048
1049         * support/regression/Makefile.in,
1050           support/regression/ports/ds390/spec.mk,
1051           support/regression/ports/hc08/spec.mk,
1052           support/regression/ports/mcs51-common/spec.mk,
1053           support/regression/ports/pic14/spec.mk,
1054           support/regression/ports/pic16/spec.mk,
1055           support/regression/ports/ucz80/spec.mk,
1056           support/regression/ports/xa51/spec.mk:
1057           added CFLAGS when compiling timeout
1058
1059 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1060
1061         * support/regression/tests/bugs-1596270-1736867.c: Regression test for
1062           #1596270, #1736867
1063
1064 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1065
1066         * src/SDCClrange.c (findPrevUse): fixed bug 1888147
1067         * support/regression/tests/bug1888147.c: new, added
1068
1069 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1070
1071         * src/z80/gen.c: fixed bugs #1596270, #1736867
1072
1073 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1074
1075         * src/z80/gen.c: fixed bug in register pair loading when swapping register
1076           contents, mostly fixes #1596270
1077
1078 2008-02-20 Philipp Klaus Krause <pkk AT spth.de>
1079
1080         * src/z80/peeph.def,
1081         * src/z80/peeph-z80.def: moved peephole that breaks gbz80 to z80-specific
1082           peepholes, fixes #1806565
1083
1084 2008-02-20 Maarten Brock <sourceforge.brock AT dse.nl>
1085
1086         * src/SDCCpeeph.c (operandBaseName): added check for @Ri
1087         * src/mcs51/peeph.def (rule 177.c): added operandsNotRelated(%1 %3)
1088           fixes bug 1739475, thanks Robert Larice
1089           (rule 271): new, added
1090
1091 2008-02-18 Borut Razem <borut.razem AT siol.net>
1092
1093         * sim/ucsim/s51.src/Makefile.in: fixed error made in previous commit
1094
1095 2008-02-17 Maarten Brock <sourceforge.brock AT dse.nl>
1096
1097         * src/SDCCmain.c (linkEdit): emit -z when using --debug for z80
1098
1099 2008-02-17 Raphael Neider <rneider AT web.de>
1100
1101         * src/pic16/genarith.c,
1102         * src/pic16/gen.c,
1103         * src/pic16/gen.h,
1104         * src/pic16/genutils.c: removed unused legacy code,
1105           removed unused fields from struct asmop and struct _G
1106
1107 2008-02-17 Raphael Neider <rneider AT web.de>
1108
1109         * src/pic16/gen.c (AccRsh): cosmetic changes,
1110           (shiftR1Left2ResultSigned,shiftR1Left2Result,shiftL1Left2Result,
1111           genRightShiftLiteral): fixed to work with SFRs as result by
1112           assigning only once to result,
1113           removed a lot of unused/excluded code fragments
1114
1115 2008-02-17 Raphael Neider <rneider AT web.de>
1116
1117         * device/include/pic/pic16f88.h,
1118         * device/include/pic/pic16f886.h,
1119         * device/include/pic/pic16f887.h: added TRISA6 and TRISA7
1120
1121 2008-02-17 Borut Razem <borut.razem AT siol.net>
1122
1123         * src/z80/peeph.def: applied patch
1124           #1893626: Optimize tail calls on Z80, thanks to Philipp Krause
1125         * src/z80/gen.c, src/z80/peeph.def: applied patch
1126           #1893510: Improve logical left shift on Z80, thanks to Philipp Krause
1127         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1128           sim/ucsim/s51.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
1129           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
1130           sim/ucsim/main_in.mk: renamed libutil.a to libucsimutil.a in order to
1131           enable compilation on Mac OS X 10.5 (Leopard) and XCode v3.0
1132
1133 2008-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
1134
1135         * as/link/mcs51/aslink.dsp: removed SDK define
1136         * as/link/z80/clean.mk: brought in sync with other ports
1137         * as/link/z80/lklibr.c (SdccLib, fndsym): handle the dflag here too
1138         * as/hc08/Makefile.bcc,
1139         * as/mcs51/Makefile.bcc,
1140         * as/z80/Makefile.bcc: noice.c was moved to as/asxxsrc/
1141         * src/z80/main.c (_setValues): use the now capitalized -Z,
1142           (z80_port, gbz80_port): generate debug information when asked
1143
1144 2008-02-16 Borut Razem <borut.razem AT siol.net>
1145
1146         * as/z80/asmain.c, as/z80/asm.h, as/z80/asdata.c,
1147           as/link/z80/lkmain.c, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1148           as/z80/Makefile.in. as/z80/Makefile.bcc:
1149           applied patch #1893393: patch for as-z80 and link-z80 to generate
1150           cdb, thanks to Armin Diehl
1151         * as/*/asnoice.c, as/hc08/as_hc08.dsp, as/hc08/Makefile.in,
1152           as/mcs51/asx8051.dsp, as/mcs51/Makefile.in:
1153           asnoice.c moved to as/asxxsrc/asnoice.c
1154         * src/z80/peeph-gbz80.def: applied patch
1155           #1880235: Z80 return peephole, thanks to Philipp Krause
1156
1157 2008-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
1158
1159         * .version,
1160         * doc/sdccman.lyx: bumped version to 2.7.5
1161         * src/SDCCsymt.c (compareType, comparePtrType): fixed bug 1281583
1162
1163 2008-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
1164
1165         * device/include/pic16/stdlib.h,
1166         * device/lib/pic16/libc/stdlib/ltoa.c,
1167         * device/lib/pic16/libc/stdio/vfprintf.c: ascii strings are char*
1168
1169 2008-02-13 Borut Razem <borut.razem AT siol.net>
1170
1171         * src/SDCCmain.c, src/SDCCglue.c: fixed --c1mode
1172         * src/pic16/glue.c, src/SDCCast.c, src/SDCCast.h, src/SDCCBBlock.c,
1173           src/SDCCcse.c, src/SDCCglue.c, src/SDCCicode.c, src/SDCCloop.c,
1174           src/SDCCopt.c,  src/SDCCval.c:
1175           fixed bug #1890273: SDCC Warning 154 shows wrong filename
1176
1177 2008-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
1178
1179         * src/SDCCsymt.c (compareType): fixed bug 1309013
1180
1181 2008-02-09 Borut Razem <borut.razem AT siol.net>
1182
1183         * src/SDCCval.c, src/SDCCval.h:
1184           code cleaning, added function constChrVal()
1185         * src/SDCCglue.c, src/pic/glue.c, src/pic16/glue.c, src/SDCCast.c, src/SDCC.y:
1186           call constChrVal() instead constVal()
1187
1188 2008-02-01 Maarten Brock <sourceforge.brock AT dse.nl>
1189
1190         * src/SDCCast.c (resolveSymbols): added reentrancy check for parameters
1191           of function pointer
1192         * src/SDCCerr.h,
1193         * src/SDCCerr.c: changed warning W_NONRENT_ARGS to error E_NONRENT_ARGS
1194         * support/regression/tests/absolute.c: added TestStruct TestVar (see also
1195           bug 1859853)
1196
1197 2008-02-01 Raphael Neider <rneider AT web.de>
1198
1199         * device/include/pic/pic16f886.h,
1200         * device/include/pic/pic16f887.h: added RA6 and RA7
1201
1202 2008-01-24 Raphael Neider <rneider AT web.de>
1203
1204         * device/include/pic/pic16f88.h: added RA6 and RA7
1205         * device/lib/pic/libdev/disabled_pic16f886.c,
1206         * device/lib/pic/libdev/disabled_pic16f887.c: renamed and enabled
1207
1208         * src/pic16/devices.inc,
1209         * device/include/pic16/pic18f2423.h,
1210         * device/include/pic16/pic18f2523.h,
1211         * device/include/pic16/pic18fregs.h,
1212         * device/lib/pic16/pics.all
1213         * device/lib/pic16/libdev/pic18f2423.c,
1214         * device/lib/pic16/libdev/pic18f2523.c: added 18f2423 and 18f2523
1215         * device/lib/pic16/libio/i2c.ignore,
1216         * device/lib/pic16/libio/usart.ignore,
1217         * device/lib/pic16/libio/adc.ignore: ignore new devices
1218
1219 2008-01-23 Maarten Brock <sourceforge.brock AT dse.nl>
1220
1221         * src/SDCCast.c (createRMW): fixed bug 1582651
1222
1223 2008-01-20 Borut Razem <borut.razem AT siol.net>
1224
1225         * src/SDCCcse.c: partially fixed enhancement request
1226           #1793872 - multiply by -1 not collapsed
1227         * support/regression/tests/arithcsi.c: added regression test
1228
1229 2008-01-19 Maarten Brock <sourceforge.brock AT dse.nl>
1230
1231         * as/mcs51/asx8051.dsp: removed define SDK
1232         * as/mcs51/i51mch.c (machine): fixed bug 1865114
1233         * device/include/asm/ds390/features.h: fixed bug with ds390 & stack-auto
1234         * as/link/lklex.c,
1235         * as/link/mcs51/lkmain.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1236           cosmetic changes, brought more in sync, changed old K&R to ANSI
1237
1238 2008-01-13 Borut Razem <borut.razem AT siol.net>
1239
1240         * support/scripts/sdcc.nsi: added Uninstall/reinstall page, ...
1241         * src/SDCCicode.c: fixed bug #1870216 - Error 122: dividing by zero
1242
1243 2007-12-30 Borut Razem <borut.razem AT siol.net>
1244
1245         * src/pic16/gen.c: fixed implementation of bitwise operations for
1246           pic16 target
1247         * support/regression/tests/bitwise.c: added test cases
1248
1249 2007-12-29 Borut Razem <borut.razem AT siol.net>
1250
1251         * src/SDCCasm.[ch]: renamed from asm[ch], use dbuf_getline(), ...
1252         * src/src.dsp, src/Makefile.bcc, src/Makefile.in, src/common.h,
1253           src/SDCCglue.c, src/xa51/main.c: asm.[ch] renamed to SDCCasm.[ch]
1254         * support/Util/dbuf_string.[ch]: added function dbuf_getline()
1255         * src/ds390/gen.c, src/hc08/gen.c, src/mcs51/gen.c, src/pic16/gen.c,
1256           src/pic/gen.c, src/z80/gen.c, src/xa51/gen.c, src/pic16/ralloc.c,
1257           src/pic16/pcode.[ch]: added const qualifier
1258         * as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1259           as/mcs51/Makefile.bcc, as/mcs51/Makefile.in, as/mcs51/asx8051.dsp,
1260           as/z80/Makefile.bcc, as/z80/Makefile.in, as/z80/as_gbz80.dsp,
1261           as/z80/as_z80.dsp: added dbuf.[ch] and dbuf_string[ch] to project
1262         * as/asxxsrc/aslex.c: use dbuf_getline()
1263         * as/hc08/asdata.c, as/hc08/asexpr.c, as/hc08/asm.h, as/hc08/m08adr.c,
1264           as/mcs51/asdata.c, as/mcs51/asexpr.c, as/mcs51/asm.h,
1265           as/mcs51/i51adr.c, as/z80/asdata.c, as/z80/asexpr.c, as/z80/aslist.c,
1266           as/z80/asm.h, as/z80/z80adr.c:
1267           changed type of ib and ip to const char *
1268
1269 2007-12-28 Borut Razem <borut.razem AT siol.net>
1270
1271         * as/asxxsrc/aslex.c: moved from as/mcs51/aslex.c;
1272           introduced (readlin) - long lines are turuncated
1273         * as/hc08/as_hc08.dsp, as/mcs51/asx8051.dsp, as/z80/as_gbz80.dsp,
1274           as/z80/as_z80.dsp, as/hc08/Makefile.in, as/mcs51/Makefile.in,
1275           as/z80/Makefile.in: moved aslex.c to asxxsrc
1276         * as/hc08/aslex.c, as/z80/aslex.c: deleted
1277         * as/hc08/asmain.c, as/mcs51/asmain.c:
1278           added missing initialization of a_addr field
1279         * support/regression/tests/long_asm_line.c: added regtest for long
1280           assembler line
1281
1282 2007-12-22 Borut Razem <borut.razem AT siol.net>
1283
1284         * src/SDCC.lex: fixed bug #1852894: # character hangs the compiler
1285
1286 2007-12-20 Maarten Brock <sourceforge.brock AT dse.nl>
1287
1288         * src/SDCCsymt.c (computeType): fixed bug, thanks Fan Weiguang
1289
1290 2007-12-16 Borut Razem <borut.razem AT siol.net>
1291
1292         * device/include/pic16/stdbool.h: removed, since already exists in
1293          device/include/; this also fixes bitopcse.c regression test for pic16
1294          target
1295         * support/regression/fwk/inclusw/testfwk.h: added macro ASSERT_FAILED
1296         * src/pic16/glue.c: fixed bug #1851855: generic static pointer
1297           dereference doesn't work; covered by regression test bug1399290
1298
1299 2007-12-05 Borut Razem <borut.razem AT siol.net>
1300
1301         * doc/sdccman.lyx: fixed bug #1844509 - Correction to Manual 4.6.9
1302           Adding new PIC16
1303
1304 2007-12-01 Borut Razem <borut.razem AT siol.net>
1305
1306         * sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/mem.cc:
1307           corrected handling of the highest_valid_address
1308
1309 2007-11-17 Raphael Neider <rneider AT web.de>
1310
1311         * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
1312         * src/pic/glue.c (picglue): emit .file if --debug is given
1313
1314 2007-11-17 Raphael Neider <rneider AT web.de>
1315
1316         * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
1317         care when left or right operand resides in result, fixes #1830220
1318
1319 2007-11-17 Borut Razem <borut.razem AT siol.net>
1320
1321         * src/SDCCglue.c, src/pic16/glue.c: reverted fix for bug
1322           #983491 - "Merge duplicate strings function is ineffective"
1323         * support/regression/tests/bug-983491.c: regtest disabled
1324         * as/asxxsrc: created
1325           as/asxxsrc/assym.c, as/asxxsrc/strcmpi.c: moved
1326           as/hc08/assym.c, as/mcs51/assym.c, as/strcmpi.c,
1327           as/z80/assym.c, as/hc08/asstore.c, as/mcs51/asstore.c: deleted
1328           as/hc08/Makefile.bcc, as/hc08/Makefile.in, as/hc08/as_hc08.dsp,
1329           as/hc08/asm.h, as/link/hc08/Makefile.bcc, as/link/hc08/Makefile.in,
1330           as/link/hc08/link_hc08.dsp, as/link/mcs51/Makefile.bcc,
1331           as/link/mcs51/Makefile.in, as/link/mcs51/aslink.dsp,
1332           as/link/z80/Makefile.in, as/link/z80/linkgbz80.dsp,
1333           as/link/z80/linkz80.dsp, as/mcs51/Makefile.bcc, as/mcs51/Makefile.in,
1334           as/mcs51/asm.h, as/mcs51/asx8051.dsp, as/z80/Makefile.bcc,
1335           as/z80/Makefile.in, as/z80/as_gbz80.dsp, as/z80/as_z80.dsp,
1336           as/z80/Makefile.as_hc08, as/mcs51/Makefile.asx8051: modified
1337           created as/asxxsrc directory, assym.c and strcpi.c moved into it
1338
1339 2007-11-15 Maarten Brock <sourceforge.brock AT dse.nl>
1340
1341         * device/include/stdarg.h: added and removed some casts
1342         * src/SDCCsymt.c (compareType): Fully check types between generic and
1343           non-generic pointers, also accept ptr-ptr to void-ptr assignments
1344
1345 2007-11-13 Borut Razem <borut.razem AT siol.net>
1346
1347         * support/regression/tests/bug-1817005.c:
1348           added regtest for bug #1817005 - as-z80 chokes on long labels
1349
1350 2007-11-12 Borut Razem <borut.razem AT siol.net>
1351
1352         * as/z80/asmain.c, as/z80/asm.h, as/z80/assym.c, as/z80/asdata.c,
1353           as/z80/asout.c, as/z80/aslist.c:
1354           fixed bug #1817005 - as-z80 chokes on long labels
1355
1356 2007-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
1357
1358         * as/hc08/asmain.c,
1359         * as/z80/asmain.c: cosmetic changes
1360         * as/hc08/alloc.h,
1361         * as/mcs51/alloc.h,
1362         * as/z80/alloc.h: removed
1363         * as/hc08/assym.c,
1364         * as/mcs51/assym.c: replaced alloc.h with stdlib.h
1365         * as/link/aslink.h: added LKDIRSEP and, LKDIRSEPSTR
1366         * as/link/hc08/Makefile.in,
1367         * as/link/mcs51/Makefile.in,
1368         * as/link/z80/Makefile.in: added -DUNIX to CFLAGS
1369         * as/link/lklex.c,
1370         * as/link/mcs51/lkarea.c,
1371         * as/link/mcs51/lkmain.c: cosmetic changes
1372         * as/link/hc08/lklibr.c,
1373         * as/link/z80/lklibr.c,
1374         * as/link/mcs51/lklibr.c: used LKDIRSEP, LKDIRSEPSTR and LKOBJEXT,
1375           used cygwin_conv_to_full_posix_path,
1376           added warnings, cosmetic changes, brought more in sync
1377           changed old K&R into ANSI function declarations
1378         * as/link/z80/lklibr.c (loadAdb): added
1379         * as/link/z80/lkmain.c: removed -- option from usage text
1380
1381 2007-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
1382
1383         * src/mcs51/gen.c (outBitC): optimized for no result
1384
1385 2007-10-31 Borut Razem <borut.razem AT siol.net>
1386
1387         * src/SDCCsymt.c: fixed (hopeful properly) bug
1388           #1805702 - order of extern matters
1389         * support/regression/tests/bug-1805702.c: enabled regtest for bug
1390           #1805702
1391
1392 2007-10-29 Borut Razem <borut.razem AT siol.net>
1393
1394         * src/SDCCsymt.c: reverted bad fixed of bug #1805702
1395           - order of extern matters
1396         * support/regression/tests/bug-1805702.c: disabled regtest for bug
1397           #1805702
1398
1399 2007-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
1400
1401         * src/ds390/peeph.def: replaced 24bitModeAndPortDS390 by
1402           24bitMode, portIsDS390
1403         * src/mcs51/gen.c (genOr): optimized for RFE 1750727
1404         * src/SDCCpeeph.c (flat24bitModeAndPortDS390): removed
1405           (notVolatileVariable): also check sloc names,
1406           (callFuncByName): moved ftab[] out of function and sorted it by use
1407
1408 2007-10-28 Maarten Brock <sourceforge.brock AT dse.nl>
1409
1410         * device/include/stdarg.h: fixed bug in va_start macro for --xstack
1411         * src/hc08/gen.c (aopForRemat): aop->aopu.aop_immd.from_cast_remat not set,
1412           aop->aopu.aop_immd.aop_immd2 not filled with (generic) pointer type
1413         * src/SDCCicode.c (geniCodeCast): fixed bug 880197
1414         * support/regression/tests/bug-880197.c: new, added
1415
1416 2007-10-28 Borut Razem <borut.razem AT siol.net>
1417
1418         * support/regression/Makefile.in,
1419           support/regression/ports/mcs51-large/spec.mk,
1420           support/regression/ports/mcs51-xstack-auto/spec.mk,
1421           support/regression/ports/mcs51-stack-auto/spec.mk,
1422           support/regression/ports/mcs51-medium/spec.mk,
1423           support/regression/ports/mcs51-common/spec.mk,
1424           support/regression/ports/mcs51-common/*,
1425           support/regression/ports/mcs51-small/*:
1426           mcs51 renamed to mcs51-common, created mcs51-small
1427         * src/SDCCsymt.c: fixed bug #1805702 - order of extern matters
1428         * support/regression/tests/bug-1805702.c: added regtest for bug
1429           #1805702
1430
1431 2007-10-26 Maarten Brock <sourceforge.brock AT dse.nl>
1432
1433         * src/mcs51/peeph.def: moved rules 257.x to 253.x and re-enabled 253.b,
1434           added new rules 265 - 270
1435         * support/regression/tests/bug1721024.c:new, added
1436         * support/regression/Makefile.in: renamed test-mcs51 to test-mcs51-small,
1437           introduced new test-mcs51 to run all mcs51 tests
1438
1439 2007-10-25 Maarten Brock <sourceforge.brock AT dse.nl>
1440
1441         * support/regression/tests/bug1816470.c: new, added
1442
1443 2007-10-21 Maarten Brock <sourceforge.brock AT dse.nl>
1444
1445         * src/SDCCast.c (resultTypePropagate): do propagate for LEFT_OP, do not
1446           propagate for *,+,- with float, fixed bug 1816470
1447           (decorateType): cast to resultTypeProp instead of resultType
1448
1449 2007-10-19 Borut Razem <borut.razem AT siol.net>
1450
1451         * src/pic16/glue.c: fixed bug #983491 - "Merge duplicate strings
1452           function is ineffective" for pic16 tareget
1453         * support/scripts/listerr.c: corrected include path
1454         * device/lib/_itoa.c: fixed bug #1806402 - _itoa and _uitoa leak to
1455           adjacent memory
1456
1457 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1458
1459         * support/regression/tests/using.c: new, added
1460         * support/regression/tests/vaargs.c: fixed and enabled test
1461
1462 2007-10-18 Borut Razem <borut.razem AT siol.net>
1463
1464         * src/SDCCglue.c: fixed bug #983491 - Merge duplicate strings function
1465           is ineffective
1466         * support/regression/tests/bug-983491.c: added regtest for bug #983491
1467
1468 2007-10-18 Maarten Brock <sourceforge.brock AT dse.nl>
1469
1470         * doc/sdccman.lyx: documented option --Werror
1471         * src/SDCCsymt.c (checkFunction): fixed bug 1815418 by setting
1472           RegBankUsed[] earlier
1473
1474 2007-10-14 Maarten Brock <sourceforge.brock AT dse.nl>
1475
1476         * device/include/mcs51/p89lpc938.h: new, added, thanks Kyle Guinn
1477         * src/pic/glue.c,
1478         * src/SDCCval.c,
1479         * src/SDCCast.c,
1480         * src/SDCCast.h: replaced AST_LIT_VALUE with AST_FLOAT_VALUE and
1481           AST_ULONG_VALUE
1482         * src/SDCCast.c (decorateType): improved optimization of tri-op
1483         * src/SDCCerr.c (vwerror, setWError),
1484         * src/SDCCerr.h,
1485         * src/SDCCmain.c (parseCmdLine): added option --Werror to treat all
1486           warnings as errors, thanks Stas Sergeev for PATCH 1813211
1487
1488 2007-10-13 Maarten Brock <sourceforge.brock AT dse.nl>
1489
1490         * src/mcs51/gen.c (leftRightUseAcc): use macro IS_OP_ACCUSE
1491         * src/SDCCast.c (decorateType): optimize bit=cond?1:0, RFE 1738430
1492         * support/regression/tests/bug-223113.c,
1493         * support/regression/tests/bug-426632.c,
1494         * support/regression/tests/bug-468811.c,
1495         * support/regression/tests/bug-477835.c,
1496         * support/regression/tests/bug-478094.c,
1497         * support/regression/tests/bug-499644.c,
1498         * support/regression/tests/bug-524209.c,
1499         * support/regression/tests/bug-524211.c,
1500         * support/regression/tests/packcast.c,
1501         * support/regression/tests/structidx.c: added empty tests
1502         * support/regression/tests/bug-607243.c: enabled test
1503
1504 2007-10-06 Borut Razem <borut.razem AT siol.net>
1505
1506         * .version, doc/sdccman.lyx: bumped version to 2.7.4 to indicate the full
1507            support of universal binaries on Mac OS X
1508
1509 2007-10-02 Borut Razem <borut.razem AT siol.net>
1510
1511         * src/SDCCval.h: unified double2ul macro for all platforms
1512         * src/SDCCval.c: fixed bug #1777758 - applied Maarten's patch
1513         * support/regression/tests/bitwise.c: added regtest for bug #1777758
1514
1515 2007-09-30 Borut Razem <borut.razem AT siol.net>
1516
1517         * src/SDCCval.h: fixed bug #1739860 - sdcc does not work correctly on some
1518           platforms
1519         * sdcc_vc_in.h: enabled warnings
1520         * src/hc08/gen.c: fixed MSVC warning C4146: unary minus operator applied to
1521           unsigned type, result still unsigned
1522         * src/mcs51/peep.c: fixed gcc warning: suggest parentheses around && within ||
1523
1524 2007-09-28 Raphael Neider <rneider AT web.de>
1525
1526         * src/pic/device.c (find_device): prevent buffer underflow error
1527         * src/pic/pcoderegs.c (OptimizeRegUsage): avoid dereferencing
1528           the just destroyed list entry
1529
1530 2007-09-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1531
1532         * doc/sdccman.lyx: there's a dedicated wiki page for cmake and sdcc, thanks
1533           Alexander Neundorf
1534
1535 2007-09-18 Borut Razem <borut.razem AT siol.net>
1536
1537         * src/SDCCval.c: fixed MSVC warning C4146: unary minus operator
1538          applied to unsigned type, result still unsigned
1539
1540 2007-09-17 Borut Razem <borut.razem AT siol.net>
1541
1542         * src/SDCC.y, src/SDCCast.c, src/SDCCcse.c, src/SDCCglue.c,
1543           src/SDCCicode.c, src/SDCCopt.c, src/SDCCsymt.c, src/SDCCval.c,
1544           src/SDCCval.h, src/hc08/gen.c, src/avr/gen.c, src/ds390/gen.c,
1545           src/mcs51/gen.c, src/pic/gen.c, src/pic/genarith.c, src/pic/glue.c,
1546           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/genarith.c,
1547           src/pic16/genutils.c, src/pic16/glue.c, src/pic16/main.c,
1548           src/z80/gen.c, src/z80/ralloc.c:
1549           fixed bug #1739860 - sdcc does not work correctly on some platforms
1550           (not finished)
1551           introduced and used ulFromVal(), double2ul(), used strtod() instead sscanf()
1552
1553 2007-09-17 Raphael Neider <rneider AT web.de>
1554
1555         * src/pic16/device.c: reverted to previous version
1556         * device/lib/pic16/Makefile.common.in: quieten gpasm via -Wa,-q
1557
1558 2007-09-16 Raphael Neider <rneider AT web.de>
1559
1560         * src/pic16/device.c (pic16_dump_usection): do not reserve 0 bytes,
1561           as this raises a ton of gpasm warnings, just emit a second label
1562         * src/pic16/devices.inc,
1563         * device/lib/pic16/pics.all,
1564         * device/lib/pic16/libdev/pic18f2585.c,
1565         * device/lib/pic16/libdev/pic18f2680.c,
1566         * device/lib/pic16/libdev/pic18f2682.c,
1567         * device/lib/pic16/libdev/pic18f2685.c,
1568         * device/lib/pic16/libdev/pic18f4585.c,
1569         * device/lib/pic16/libdev/pic18f4680.c,
1570         * device/lib/pic16/libdev/pic18f4682.c,
1571         * device/lib/pic16/libdev/pic18f4685.c,
1572         * device/include/pic16/pic18f2585.h,
1573         * device/include/pic16/pic18f2680.h,
1574         * device/include/pic16/pic18f2682.h,
1575         * device/include/pic16/pic18f2685.h,
1576         * device/include/pic16/pic18f4585.h,
1577         * device/include/pic16/pic18f4680.h,
1578         * device/include/pic16/pic18f4682.h,
1579         * device/include/pic16/pic18f4685.h,
1580         * device/include/pic16/pic18fregs.h: added 18f2585, 18f2680,
1581           18f2682, 18f2685, 18f4585, 18f4680, 18f4682, 18f4685,
1582           patch contributed by Anton Strobl, applied with changes
1583
1584 2007-09-16 Raphael Neider <rneider AT web.de>
1585
1586         * device/include/pic16/pic18f2431.h,
1587         * device/include/pic16/pic18f25j10.h,
1588         * device/include/pic16/pic18f4431.h,
1589         * device/include/pic16/pic18f45j10.h: adopted common include style
1590         * device/include/pic16/pic18f1320.h,
1591         * device/include/pic16/pic18f2320.h,
1592         * device/include/pic16/pic18f2525.h,
1593         * device/include/pic16/pic18f4320.h,
1594         * device/include/pic16/pic18f4525.h: NEW, just include proper .h file
1595         * device/include/pic16/pic18fregs.h: prepared for automatic include
1596           file selection by having DEVICE.h for every DEVICE
1597         * device/lib/pic16/libdev/pic18f2320.c,
1598         * device/lib/pic16/libdev/pic18f4320.c: just include proper .c file
1599
1600         * device/lib/pic16/configure.in,
1601         * device/lib/pic16/configure: use rm -rf instead of rmdir
1602         * device/lib/pic16/Makefile.in: use RMDIR to remove build directories
1603         * device/lib/pic16/libc/stdlib/free.c: avoid warning on pointer cast
1604
1605 2007-09-09 Borut Razem <borut.razem AT siol.net>
1606
1607         * src/SDCCmain.c, src/SDCCutil.c: print newline after printVersionInfo(),
1608           distingush between i386 and ppc Mac OS X versions
1609
1610 2007-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
1611
1612         * src/mcs51/gen.c (genReceive): fixed bug 1788177
1613         * support/regression/tests/bug1788177.c: new, added
1614
1615 2007-09-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1616
1617         * doc/sdccman.lyx: mentioned d52 and cmake, customizing startup code
1618         * device/include/mcs51/lint.h added keyword __naked
1619
1620 2007-09-04 Maarten Brock <sourceforge.brock AT dse.nl>
1621
1622         * src/pic16/glue.c,
1623         * src/pic/glue.c,
1624         * src/SDCCmem.h: removed maxRegBank
1625         * src/SDCCmem.c (allocVariables): removed maxRegBank and moved setting
1626           RegBankUsed[] to checkFunction() in SDCCsymt.c to fix bug 1759839
1627         * src/SDCCsymt.c (checkFunction): set RegBankUsed[] here
1628         * src/mcs51/peep.c (isCallerSaveFunc, termScanAtFunc): changed function
1629           name and behaviour to handle banked functions
1630           (scan4op): and use it to fix bug 1786213
1631
1632 2007-09-03 Raphael Neider <rneider AT web.de>
1633
1634         * device/include/pic16/pic18f248.h,
1635         * device/include/pic16/pic18f258.h,
1636         * device/include/pic16/pic18f448.h,
1637         * device/lib/pic16/libdev/pic18f248.c,
1638         * device/lib/pic16/libdev/pic18f258.c,
1639         * device/lib/pic16/libdev/pic18f448.c: fixed TRISEbits,
1640           added T0CONbits, fixes #1786891
1641
1642 2007-08-29 Maarten Brock <sourceforge.brock AT dse.nl>
1643
1644         * src/ds390/gen.c (genFarPointerSet),
1645         * src/hc08/ralloc.c (packRegisters),
1646         * src/mcs51/ralloc.c (packRegisters),
1647         * src/SDCCcse.c (cseBBlock): check if result is a symbol first to fix
1648           bug 1750318
1649         * src/SDCCicode.h: POINTER_SET can be true for literals too
1650         * support/regression/tests/bug1750318.c: new, added
1651
1652 2007-08-23 Borut Razem <borut.razem AT siol.net>
1653
1654         * debugger/mcs51/sdcdb.c: fixed compilation with older readline
1655           library versions without the completition functionality
1656
1657 2007-08-22 Raphael Neider <rneider AT web.de>
1658
1659         * device/include/pic16/pic18f1220.h,
1660         * device/lib/pic16/libdev/pic18f1220.c: applied patch #1776191
1661
1662 2007-08-12 Borut Razem <borut.razem AT siol.net>
1663
1664         * debugger/mcs51/Makefile.in: support/Util/SDCCerr.[ch] moved to src
1665
1666 2007-08-11 Borut Razem <borut.razem AT siol.net>
1667
1668         * support/Util/SDCCerr.c, support/Util/SDCCerr.h, src/src.dsp,
1669           src/Makefile.in, src/Makefile.bcc, support/scripts/listerr.c:
1670           support/Util/SDCCerr.[ch] moved to src
1671         * as/hc08/as_hc08.dsp, as/link/hc08/link_hc08.dsp,
1672           as/link/z80/linkgbz80.dsp, as/link/z80/linkz80.dsp,
1673           device/examples/ds390/tinitalk/tinitalk.dsp,
1674           device/examples/serialcomm/windows/serialcomm.dsp,
1675           support/librarian/librarian.dsp:
1676           removed linking of unused odbc32.lib and odbccp32.lib
1677         * support/scripts/winres.h:
1678           added for compilation with Visual C++ 2005 Express Edition
1679
1680 2007-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1681
1682         * device/include/mcs51/at89c51ed.h: Fixed typo in declarations of CKCON0
1683           and CKCON1.
1684
1685 2007-08-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1686
1687         * sdccconf_in.h: update the endian test so that SPARC Solaris
1688           does not throw syntax errors
1689
1690 2007-08-06 Borut Razem <borut.razem AT siol.net>
1691
1692         * doc/sdccman.lyx: removed two index entries which prevented the
1693           generation of sdcc doc archive
1694
1695 2007-08-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1696
1697         * doc/sdccman.lyx: Same changes made 2007-07-28 but using lyx 1.4.4
1698           instead of lyx 1.5.0.
1699
1700 2007-07-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1701
1702         * device/include/hc08/mc68hc908apxx.h: new header contributed by
1703           Lucas Loizaga, with minor modifications. Thanks!
1704
1705 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1706
1707         * doc/sdccman.lyx: Documented --acall-ajmp and described new features
1708           in sdcclib.
1709
1710 2007-07-28 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1711
1712         * src/SDCCglobl.h, src/SDCCpeeph.c, src/SDCCglue.c, src/mcs51/main.c,
1713           src/mcs51/peeph.def: Added option --acall-ajmp: replaces lcall/ljmp
1714           with acall/ajmp.
1715
1716 2007-07-22 Borut Razem <borut.razem AT siol.net>
1717
1718         * configure.in, configure: re-introduced .version
1719         * sdcc.spec, doc/INSTALL.txt: they are used only for releases;
1720           the version reverted to 2.7.0
1721
1722 2007-07-18 Maarten Brock <sourceforge.brock AT dse.nl>
1723
1724         * configure.in,
1725         * doc/sdccman.lyx: bumped version to 2.7.3
1726         * device/include/mcs51/compiler.h: fixed elif->else
1727         * src/mcs51/gen.c (genAnd, genOr): handle accuse for pure bit operands
1728         * src/mcs51/ralloc.c (createStackSpil): fixed SCLS bug with sloc for sbit,
1729           (operandUsesAcc, packRegsForAccUse): added parameter allowBitspace to
1730            enable accuse for bit operands
1731         * src/SDCCmain.c (printVersionInfo),
1732         * src/SDCCutil.c (getBuildEnvironment): factored out creation of build
1733           environment descriptor
1734         * src/SDCCutil.h: added getBuildEnvironment
1735         * src/SDCCglue.c (initialComments): use getBuildEnvironment
1736         * support/regression/tests/bug1464657.c: enabled test test_Peephole251
1737         * support/regression/tests/bug-408972.c: enabled test leftShiftLong
1738         * support/regression/tests/bug1348008.c,
1739         * support/regression/tests/bug1496419.c,
1740         * support/regression/tests/bug1503067.c,
1741         * support/regression/tests/preproc.c: added empty tests
1742
1743 2007-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
1744
1745         * support/regression/tests/bug1678803.c: new, added
1746
1747 2007-07-14 Maarten Brock <sourceforge.brock AT dse.nl>
1748
1749         * as/link/aslink.h,
1750         * as/link/hc08/lkihx.c,
1751         * as/link/hc08/lkrloc.c,
1752         * as/link/mcs51/lkihx.c,
1753         * as/link/mcs51/lkrloc.c: renamed ihxEntendedLinearAddress to
1754           ihxExtendedLinearAddress
1755         * as/link/mcs51/lkrloc.c (relr),
1756         * as/mcs51/asout.c (outr11, outr19): handle absolute destination for
1757           acall/ajmp, see bug 830513
1758
1759 2007-07-13 Maarten Brock <sourceforge.brock AT dse.nl>
1760
1761         * src/SDCCcse.c (replaceAllSymBySym): renamed siaddr to isaddr,
1762           (cseBBlock): remember aggr2ptr has been used
1763         * src/SDCCicode.c (operandSize): added function to handle aggr2ptr,
1764           (geniCodeAssign): fixed bug 868103
1765         * src/SDCCicode.h: made operand.aggr2ptr 2 bits wide,
1766           added operandSize prototype
1767         * src/mcs51/gen.c (aopOp): use operandSize to fix bug 868103,
1768           (genDataPointerSet): use max of size of right and result,
1769           (gencjne): added parameter useCarry for optimization,
1770           (genCmpEq): use carry if appropriate,
1771           (genXor): check if operand already in carry
1772         * support/regression/tests/bug-868103.c: enabled test
1773
1774 2007-07-12 Raphael Neider <rneider AT web.de>
1775
1776         * src/pic16/gen.c (genNearPointerSet): fixed handling of literals
1777
1778 2007-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
1779
1780         * src/SDCCsymt.c (compareType): fixed bugs 1738367 and 1745717 with patch
1781           from Robert Larice, thanks
1782         * support/regression/tests/bitopcse.c,
1783         * support/regression/tests/bitvars.c,
1784         * support/regression/tests/bug-908454.c: use <stdbool.h> for the bit types
1785         * support/regression/tests/bug-927659.c: enabled test for z80
1786         * support/regression/tests/bug1738367.c: added extra tests by Frieder
1787         * support/regression/tests/bug1745717.c: new, added
1788         * support/regression/tests/literalop.c,
1789         * support/regression/tests/nullstring.c: removed storage definitions that
1790           are now in testfwk.h
1791
1792 2007-07-10 Maarten Brock <sourceforge.brock AT dse.nl>
1793
1794         * device/include/stdbool.h: do not define __bool_true_false_are_defined
1795           and bool for targets that do not fully support it.
1796         * support/regression/tests/bug1546986.c,
1797         * support/regression/tests/bug1723128.c,
1798         * support/regression/tests/bug1734654.c,
1799         * support/regression/tests/bug1738367.c,
1800         * support/regression/tests/constantRange.c: only use bool if allowed
1801
1802 2007-07-09 Maarten Brock <sourceforge.brock AT dse.nl>
1803
1804         * src/mcs51/peep.c (isCallerSaveFunc): fixed bug 1749275, thanks Robert
1805           Larice, also handle function pointers
1806         * support/regression/tests/bug1749275.c: new, added
1807
1808 2007-07-03 Borut Razem <borut.razem AT siol.net>
1809
1810         * src/mcs51/gen.c, src/avr/gen.c, src/pic/gen.c, src/z80/gen.c,
1811           src/pic16/gen.c, src/hc08/gen.c, src/ds390/gen.c: fixed RFE
1812           #1746528: SDCC should ignore ':' in inline assembler comments
1813         * device/include/typeof.h: fixed bug #1747142: typeof.h needs fixing
1814
1815 2007-07-02 Maarten Brock <sourceforge.brock AT dse.nl>
1816
1817         * device/include/mcs51/C8051F360.h: fixed bug #1746410, thanks Chris Jones
1818         * device/lib/mcs51/crtxclear.asm: do not set __XPAGE unconditionally
1819
1820 2007-06-29 Borut Razem <borut.razem AT siol.net>
1821
1822         * src/SDCCmain.c: fixed bug
1823           #1744746: SDCC #4867: broken option --xram-size
1824
1825 2007-06-28 Borut Razem <borut.razem AT siol.net>
1826
1827         * sim/ucsim/configure.in, sim/ucsim/configure, sim/ucsim/ddconfig_in.h:
1828           find out the endianess of host machine for ucsim
1829
1830 2007-06-27 Borut Razem <borut.razem AT siol.net>
1831
1832         * support/regression/generate-cases.py: corrected the file name
1833           in warning
1834         * configure.in, configure, sdccconf_in.h: find out the endianess of
1835           host machine
1836         * src/SDCC.y: fixed bug #1744146: Crash when compiling array of
1837           negative size
1838
1839 2007-06-27 Gudjon I. Gudjonsson <gudjon AT gudjon.org>
1840
1841         * device/include/mcs51/p89c66x.h: NXP header file, OK to change licence
1842
1843 2007-06-26 Borut Razem <borut.razem AT siol.net>
1844
1845         * support/regression/generate-cases.py: display warning if function
1846           list is empty; implemented more flexible rule for detection of
1847           testing functions, allowing return type 'void' in the same line as
1848           the function name in the function definition
1849         * support/regression/tests/bug-1654060.c: corrected test
1850         * support/librarian/sdcclib.c: fixed warning:
1851           format '%s' expects type 'char *', but argument 2 has type 'int'
1852
1853 2007-06-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
1854
1855         * support/librarian/sdcclib.c: Added feature Requests [1510635]
1856           Multiple infiles for sdcclib.
1857
1858 2007-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
1859
1860         * src/SDCCast.c (inlineFindMaxBlockno, createFunction): fixed
1861           bug 1731741
1862
1863 2007-06-18 Borut Razem <borut.razem AT siol.net>
1864
1865         * src/SDCCmain.c: removed option -C since SDCC compiler doesn't know
1866           how to handle comments, so they have to be removed by the
1867           preprocessor; fixed bug #1738926:SDCC #4852: broken option -V
1868         * src/SDCCmain.c, src/SDCCargs.h, src/ds390/main.c, src/mcs15/main.c,
1869           src/pic16/main.c, src/pic/main.c, src/z80/main.c,
1870           support/Util/SDCCerr.c, support/Util/SDCCerr.h:
1871           table driven option hadling
1872
1873 2007-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
1874
1875         * src/SDCCast.c (decorateType),
1876         * src/SDCCicode.c (geniCodeConditional): moved optimization for '?' from
1877           iCode to ast level to fix bug 1738367
1878         * support/regression/tests/bug1738367.c: new, added
1879
1880 2007-06-15 Raphael Neider <rneider AT web.de>
1881
1882         * src/pic16/devices.inc,
1883         * device/lib/pic16/pics.all,
1884         * device/include/pic16/pic18fregs.h,
1885         * device/include/pic16/pic18f[24][45]20.h,
1886         * device/lib/pic16/libdev/pic18f[24][45]20.c: added support for
1887           18f2420, 18f2520, and 18f4420 devices, updated 18f4520 definitions
1888         * device/lib/pic16/Makefile.in: faster cleanup
1889
1890 2007-06-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1891
1892         * src/mcs51/peeph.def: added 177.i (mov from a is slightly cheaper)
1893
1894 2007-06-13 Raphael Neider <rneider AT web.de>
1895
1896         * src/SDCCmain.c: prevent NULL pointer dereference, avoid warning
1897
1898 2007-06-12 Raphael Neider <rneider AT web.de>
1899
1900         * support/scripts/inc2h.pl: conditionally emit defines for SFR bits,
1901           suppress bit defines if NO_BIT_DEFINES is #define'd
1902         * device/include/pic/pic*.h: recreated all headers to include
1903           conditional bit defines
1904         * device/include/pic/pic16f886.h,
1905         * device/include/pic/pic16f887.h: fixed based on newer .inc file
1906         * device/include/pic/recreate.sh: script to recreate the complete
1907           device library files based on the currently supported devices
1908
1909 2007-06-12 Borut Razem <borut.razem AT siol.net>
1910
1911         * src/pic16/main.c, src/SDCCargs.h, SDCCmain.c,
1912           support/regression/Makefile.in, support/scripts/build.mak,
1913           support/scripts/Makefile.snapshot:
1914           use new svn URL scheme
1915         * doc/sdccman.lyx: SDCC Wiki moved to
1916           http://sdcc.wiki.sourceforge.net/
1917
1918 2007-06-10 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1919
1920         * src/mcs51/peeph.def: disabled rule 132.d to fix #1734654
1921         * support/regression/tests/bug1734654.c: added
1922
1923 2007-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
1924
1925         * src/SDCCast.c (decorateType): optimized '?' for equal operands
1926         * src/SDCCicode.c (geniCodeConditional): optimization for bit result
1927           with literal operands
1928
1929 2007-06-10 Borut Razem <borut.razem AT siol.net>
1930
1931         * as/link/z80/lklibr.c: fixed mingw build warning
1932           lklibr.c:575: warning: implicit declaration of function 'tolower'
1933         * src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c,
1934           src/z80/main.c: move target specific options from src/SDCCmain.c
1935           to src/<target>/main.c
1936
1937 2007-06-09 Borut Razem <borut.razem AT siol.net>
1938
1939         * src/z80/gen.c: fixed bug #1294691: nested ifs make compiler crash;
1940           removed unused swap_sense; removed outBitCLong, replaced with outBitC
1941         * support/regression/tests/bug-1294691.c: added
1942
1943 2007-06-09 Maarten Brock <sourceforge.brock AT dse.nl>
1944
1945         * src/SDCCmem.c (allocDefault): removed check sym->level==0 for SPEC_ABSA,
1946           can also be static, fixes bug 1733438
1947         * src/SDCCsymt.c (checkSClass): static local vars in reentrant funcs can
1948           have absolute address too
1949           (computeType): added optimization for 'cond ? true : false'
1950         * support/regression/tests/absolute.c: added test for static absolute var
1951
1952 2007-06-08 Raphael Neider <rneider AT web.de>
1953
1954         * src/regression/Makefile: suppress parallel builds, allow easy
1955           switching between pic14/pic16 ports
1956         * src/regression/picregs.h: added pic14/16 header file switch
1957         * src/regression/{compare7.c,compare8.c,compare9.c,compare10.c,
1958           inline.c,nestfor.c,string1.c}: include "picregs.h"
1959
1960 2007-06-07 Borut Razem <borut.razem AT siol.net>
1961
1962         * sim/ucsim/*.[ch], sim/ucsim/configure, sim/ucsim/configure.in:
1963           permanent solution to suppress GCC 4.2.0 c++ warning:
1964           deprecated conversion from string constant to `char *'
1965           use 'const char *' where ever required
1966         * support/regression/generate-cases.py: implemented more flexible rule
1967           for detection of testing functions, allowing white-spaces surrounding
1968           the function name and the 'void' parameter.
1969         * support/regression/tests/constantRange.c,
1970           support/regression/tests/scott-compare3.c: fixed failing regression
1971           tests, uncovered by implementation of more flexible rule for detection
1972           of testing functions
1973
1974 2007-06-04 Maarten Brock <sourceforge.brock AT dse.nl>
1975
1976         * src/SDCCast.c(decorateType): better optimize '!!' and comparisons
1977
1978 2007-06-04 Borut Razem <borut.razem AT siol.net>
1979
1980         * configure.in, configure, config_vc.awk: sdcc version number is now
1981           stored in configure.in; removed .version
1982         * configure.in, configure, sdcc.spec, doc/sdccman.lyx, doc/sdccman.lyx,
1983           doc/INSTALL.txt: version bumped to 2.7.2
1984         * sim/ucsim/configure.in, sim/ucsim/configure:
1985           use "read" to read from .version
1986
1987 2007-06-03 Borut Razem <borut.razem AT siol.net>
1988
1989         * */Makefile.in: removed annoying warning:
1990           Makefile:xx: Makefile.dep: No such file or directory
1991
1992 2007-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
1993
1994         * src/mcs51/gen.c (outBitC, genRet): used IS_OP_RUONLY,
1995           (genNot, genXor): used toCarry, also fixes a bug for c = bit ^ val
1996         * src/mcs51/ralloc.c: removed IS_OP_RUONLY + some cosmetic changes
1997         * src/SDCCast.c (resultTypePropagate): propagate for '!',
1998           (decorateType): also optimize comparisons with RESULT_TYPE_BIT,
1999           bugfix: only use newBoolLink for bit result type
2000         * src/SDCCicode.c (geniCodeLogic): added param tree,
2001           bugfix: use newBoolLink if tree is bit type, bug appears when ruonly,
2002           (geniCodeLogicAndOr): use IS_BIT,
2003           (geniCodeJumpTable, geniCodeSwitch): added NULL param to geniCodeLogic,
2004           (ast2iCode): added tree param to geniCodeLogic for comparisons
2005         * src/SDCCsymt.h: added IS_OP_RUONLY and IS_OP_ACCUSE
2006         * support/regression/tests/bug1723128.c: added test NotZero
2007
2008 2007-06-01 Borut Razem <borut.razem AT siol.net>
2009
2010         * SDCPP synchronized with GCC CPP release version 4.2.0,
2011           currently the latest release:
2012         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
2013           support/cpp2/c-ppoutput.c, support/cpp2/cppdefault.c,
2014           support/cpp2/cppdefault.h, support/cpp2/except.h,
2015           support/cpp2/libcpp/directives.c, support/cpp2/libcpp/expr.c,
2016           support/cpp2/libcpp/files.c, support/cpp2/libcpp/include/cpplib.h,
2017           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
2018           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/macro.c,
2019           support/cpp2/libcpp/mkdeps.c, support/cpp2/libiberty/getpwd.c,
2020           support/cpp2/libiberty/hashtab.c, support/cpp2/optc-gen.awk,
2021           support/cpp2/opth-gen.awk, support/cpp2/opts.c,
2022           support/cpp2/opts.h, support/cpp2/output.h,
2023           support/cpp2/prefix.c, support/cpp2/sdcpp-opts.c,
2024           support/cpp2/sdcpp.dsp, support/cpp2/sdcpp.opt,
2025           support/cpp2/system.h, support/cpp2/version.c,
2026           support/cpp2/Makefile.in: modified
2027         * support/cpp2/opts-common.c: added
2028         * device/lib/pic16/libdev/pic18f[24][45]j10.c: fixed svn atrributes
2029         * device/lib/pic16/libdev/pic18f[24]5j10.c:
2030           search for included source file in local directory
2031         * sim/ucsim/configure, sim/ucsim/configure.in:
2032           temporary solution to suppress GCC 4.2.0 c++ warning:
2033           deprecated conversion from string constant to `char *'
2034
2035 2007-06-01 Raphael Neider <rneider AT web.de>
2036
2037         * device/lib/pic/libdev/pic12f683.c,
2038         * device/include/pic/pic12f683.h: added GPIO bits
2039
2040 2007-06-01 Raphael Neider <rneider AT web.de>
2041
2042         * doc/sdccman.lyx: added --disable-pic16-port, fixed some `--' and
2043           quotation marks, clarified role of PIC14 vs. PIC16 ports
2044         * src/pic16/devices.inc,
2045         * device/include/pic16/pic18fregs.h,
2046         * device/include/pic16/pic18f[24][45]j10.h,
2047         * device/lib/pic16/pics.all,
2048         * device/lib/pic16/libdev/pic18f[24][45]j10.c: added support for
2049           18f24j10, 18f25j10, 18f44j10, and 18f45j10
2050         * device/lib/pic16/libio/{i2c,adc,usart}.ignore: do not build IO libs
2051           for new devices as they are not yet supported by gputils
2052
2053 2007-05-31 Borut Razem <borut.razem AT siol.net>
2054
2055         * Small Device C Compiler 2.7.0 released
2056         * .version, sdcc.spec, doc/sdccman.lyx, doc/INSTALL.txt:
2057           changed sdcc version to 2.7.1
2058         * support/scripts/sdcc.nsi: added How to create WIN32 release
2059           setup.exe package
2060
2061 2007-05-29 Maarten Brock <sourceforge.brock AT dse.nl>
2062
2063         * doc/sdccman.lyx: documented initialization and allocation of absolute
2064           variables, bit parameter passing, the need for function pointers to be
2065           reentrant and alpha quality support of inline and retrict
2066
2067 2007-05-26 Borut Razem <borut.razem AT siol.net>
2068
2069         * support/regression/tests/bug1057979.c, support/regression/tests/malloc.c,
2070           support/regression/fwk/include/testfwk.h: fixed compilation on Mac OS x
2071         * docs/knownbugs.html: updated
2072
2073 2007-05-25 Maarten Brock <sourceforge.brock AT dse.nl>
2074
2075         * doc/sdccman.lyx: inserted footnotes about inline assembler labels,
2076           thanks Jan Waclawek
2077         * src/mcs51/gen.c (aopPut): fixed part of bug 1723128 when result is
2078           AOP_CRY and ruonly
2079           (gencjneshort): optimized when left is AOP_DIR
2080         * src/SDCCglue.c (printIvalStruct): fixed other part of bug 1723128 for
2081           initializing unions in a struct/array
2082         * support/regression/fwk/include/testfwk.h: added defines for data, near
2083           and far for host and z80
2084         * support/regression/tests/bug1723128.c: new, added
2085
2086 2007-05-22 Borut Razem <borut.razem AT siol.net>
2087
2088         * doc/knownbugs.html: updated
2089
2090 2007-05-21 Raphael Neider <rneider AT web.de>
2091
2092         * src/pic16/glue.c (pic16_initPointer): avoid assertion, emit better
2093           error message instead
2094         * src/pic/pcoderegs.c (pCodeOptime2pCodes): keep register state intact
2095
2096 2007-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2097
2098         * src/mcs51/peeph.def (257.b): disabled to fix bug 1721024
2099
2100 2007-05-21 Raphael Neider <rneider AT web.de>
2101
2102         * src/pic/pcoderegs.c (pCodeOptime2pCodes): fixed bogus optimization,
2103           closes #1722392
2104         * src/regression/gpsim_assert.h,
2105         * src/regression/Makefile,
2106         * src/regression/pcodeopt.c: regression test for the above fix
2107
2108 2007-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
2109
2110         * src/SDCCpeeph.c (labelIsUncondJump): ignore identical labels for
2111           jumps to self, fixed bug 1717281
2112
2113 2007-05-10 Borut Razem <borut.razem AT siol.net>
2114
2115         * support/scripts/gen_known_bugs.pl: cosmetic fix
2116         * doc/knownbugs.html: generated by gen_known_bugs.pl
2117
2118 2007-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2119
2120         * src/SDCCast.c (createFunction): also generate non-inlined version of
2121           function for functions declared as "static inline"
2122         * src/SDCCast.c (fixupInline, inlineAddDecl): reset symbol state so
2123           function can be inlined after non-inlined version generated.
2124
2125 2007-05-10 Borut Razem <borut.razem AT siol.net>
2126
2127         * support/scripts/gen_known_bugs.pl: added script
2128           which generates knownbugs.html
2129
2130 2007-05-09 Maarten Brock <sourceforge.brock AT dse.nl>
2131
2132         * doc/knownbugs.html: updated for release 2.7.0
2133
2134 2007-05-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2135
2136         * device/include/mcs51/uPSD33xx.h: Added patch by Jan Waclawek.
2137
2138 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2139
2140         * src/ds390/gen.c (emitcode): don't change properties of previous lines,
2141           (throughout): updated generating comments
2142         * src/mcs51/gen.c (emitcode): don't change properties of previous lines,
2143           (throughout): updated generating comments
2144         * src/SDCCpeeph.c (peepHole): continue searching at the first replaced
2145           rule instead of at the second, or it might skip lines when removing the
2146           complete match
2147         * support/regression/tests/bug1714204.c: changed test to foo
2148
2149 2007-05-08 Borut Razem <borut.razem AT siol.net>
2150
2151         * doc/sdccman.lyx: changed sdcc version to 2.7.0,
2152           thanks to SDCC Distributed Compile Farm members,
2153           added Z80 and GBZ80 command line options
2154         * .version, doc/INSTALL.txt, sdcc.spec: changed sdcc version to 2.7.0
2155
2156 2007-05-08 Maarten Brock <sourceforge.brock AT dse.nl>
2157
2158         * device/lib/mcs51/crtxinit.asm: added disabled version for dual dptr
2159         * device/include/mcs51/uPSD33xx.h: added sfr DPS as alias for DPTC
2160         * support/regression/tests/longlit.c: modified to be tested at all and
2161           to pass the actual test
2162
2163 2007-05-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2164
2165         * device/include/mcs51/uPSD33xx.h: Added.
2166
2167 2007-05-07 Maarten Brock <sourceforge.brock AT dse.nl>
2168
2169         * device/lib/_gptrput.c,
2170         * device/lib/_gptrget.c: removed old code,
2171          (_gptrgetWord),
2172         * src/ds390/gen.c (genGenPointerGet): fixed bug 1714204
2173         * support/regression/tests/bug1714204.c: new, added
2174
2175 2007-05-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2176
2177         * support/regression/tests/regtrack.c: test was never executed
2178           because of the regression test being picky about white spaces.
2179         * device/lib/mcs51/crtclear.asm: added comment
2180
2181 2007-05-06 Raphael Neider <rneider AT web.de>
2182
2183         * device/lib/pic/Makefile.rules,
2184         * device/lib/pic16/Makefile.rules: make sure *.ignore file exists,
2185           made "&> /dev/null" redirection sh-safe ("> /dev/null 2>&1")
2186
2187 2007-05-06 Raphael Neider <rneider AT web.de>
2188
2189         * src/pic16/device.h,
2190         * src/pic16/main.h,
2191         * src/pic16/main.c (pic16_optionsTable,_pic16_parseOptions,
2192           _pic16_setDefaultOptions): removed/reordered command-line args
2193         * doc/sdccman.lyx: updated PIC14 and PIC16 documentation (supported
2194           devices, regrouped command line args, environment variables),
2195           clarified sone points, added sections on how to add devices to the
2196           PIC14/PIC16 ports
2197
2198 2007-05-06 Maarten Brock <sourceforge.brock AT dse.nl>
2199
2200         * src/z80/peeph.def: fixed bug in rule 2
2201
2202 2007-05-05 Maarten Brock <sourceforge.brock AT dse.nl>
2203
2204         * src/port.h: added TARGET_MCS51_LIKE
2205         * src/SDCCpeeph.c (labelIsUncondJump): new, added, other targets could
2206           take advantage of it too
2207         * src/z80/gen.c (genIpush): push b, d or h directly instead of using a,
2208           (shiftR2Left2Result): Optimized: don't check shifting by 0
2209         * src/z80/peeph-z80.def,
2210         * src/z80/peeph.def: whole set of new rules by Philipp Krause with some
2211           modifications, see patch 1700823
2212         * src/mcs51/peep.c (): fixed bug 1712928
2213         * support/regression/tests/bug1712928.c: new, added
2214
2215 2007-05-05 Borut Razem <borut.razem AT siol.net>
2216
2217         * device/lib/pic16/Makefile.common.in,
2218           device/lib/pic/Makefile.common.in, sim/ucsim/cmd.src/Makefile.in:
2219           removed bash dependencies
2220
2221 2007-05-01 Borut Razem <borut.razem AT siol.net>
2222
2223         * src/SDCCicode.c:
2224           fixed bug #1710507: --i-code-in-asm makes compile fail
2225           all iCode comments are now one liners
2226         * src/mcs51/gen.c: fixed memory leak
2227
2228 2007-05-01 Raphael Neider <rneider AT web.de>
2229
2230         * device/lib/pic/libdev/*.c
2231         * device/include/pic/*.h: regenerated all device libs from updated
2232           .inc files
2233         * support/scripts/inc2h.pl: documented usage, now uses strict to
2234           catch more bugs
2235
2236 2007-04-30 Borut Razem <borut.razem AT siol.net>
2237
2238         * doc/sdccman.lyx:
2239           fixed bug #1669175: Problem with space in output paths
2240           documented how to use paths with spaces for Windows users
2241
2242 2007-04-29 Borut Razem <borut.razem AT siol.net>
2243
2244         * Fixed svn:eol-style and svn:keywords properties
2245         * src/SDCCval.c: fixed bug
2246           #1592871: Segfault with "large" const arrays of characters
2247           replaced recursion with iteration
2248         * Removed svn:executable property from non-executable files
2249
2250 2007-04-29 Maarten Brock <sourceforge.brock AT dse.nl>
2251
2252         * src/mcs51/gen.c (genRet): fixed bug 1707003
2253
2254 2007-04-27 Raphael Neider <rneider AT web.de>
2255
2256         * src/pic16/pcode.c (pBlockRemoveUnusedLabels,pic16_pBlockAddInval,
2257           createReachingDefinitions,assignValnums,pic16_destructDF,
2258           pic16_createDF,pic16_vcg_dumpedges,pic16_vcg_dump_default):
2259           prevent NULL pointer dereferences
2260         * device/lib/pic/libdev/pic16f886.c,
2261         * device/lib/pic/libdev/pic16f887.c: svn mv'ed to disabled_* to
2262           prevent building them, gputils do not really support them yet
2263
2264 2007-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2265
2266         * device/lib/_ltoa.c: 36 bytes less __data mem. This really
2267           helps printf_small. 32 bytes more __idata mem.
2268
2269 2007-04-27 Raphael Neider <rneider AT web.de>
2270
2271         * src/pic/pcode.c (addpCode2pBlock,LinkFlow,pBlockRemoveUnusedLabels):
2272           return early when pb or pb->pcHead is NULL (patch #1708427)
2273         * src/regression/empty.c,
2274         * src/regression/Makefile: added test with empty functions
2275         * support/Util/SDCCerr.c: fixed typo in E_INIT_STRUCT message
2276
2277 2007-04-27 Borut Razem <borut.razem AT siol.net>
2278
2279         * src/SDCCast.c: fixed feature request
2280           #1547512: Redundant strings linked when using sizeof("abc")
2281
2282 2007-04-23 Borut Razem <borut.razem AT siol.net>
2283
2284         * doc/sdccman.lyx, src/SDCCmain.c:
2285           peep-hole comments are generated only if --fverbose-asm option is
2286           specified and --no-peep-comments is not, as proposed by Frieder.
2287         * support/regression/Makefile.in: compile regression tests with
2288           --fverbose-asm option so one can "grep" whether a new (or an old)
2289           peephole is (still) applied; requested by Frieder.
2290
2291 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2292
2293         * device/include/pic/pic16f886.h,
2294         * device/include/pic/pic16f887.h,
2295         * device/lib/pic/libdev/pic16f886.c,
2296         * device/lib/pic/libdev/pic16f887.c,
2297         * device/include/pic/pic14devices.txt,
2298         * device/lib/pic/libdev/devices.txt: Add 16f886 and 16f887.
2299
2300 2007-04-23 Kevin Buettner <kevin AT buettner.to>
2301
2302         * device/lib/pic/libsdcc/idata.c: PAGESEL _main before going there,
2303           fixes #1704666
2304
2305 2007-04-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2306
2307         * device/lib/_memset.c: assembler version for mcs51
2308
2309 2007-04-22 Borut Razem <borut.razem AT siol.net>
2310
2311         * support/scripts/listerr.c: program to create the list of errors and
2312           warnings list from - added
2313         * doc/sdccman.lyx: removed the note
2314           "For list of warnings and corresponding codes, see err_warn.txt"
2315         * src/SDCCsymt.c: fixed bug #1699804:
2316           Bug with some uses of sizeof(static local array) (MCS51)
2317         * support/regression/tests/bug-1699804.c: added
2318
2319 2007-04-20 Maarten Brock <sourceforge.brock AT dse.nl>
2320
2321         * as/mcs51/asmain.c (search_path_append, search_path_fopen): new, added,
2322           (main): added option -i,
2323           (asmbl, case S_INCL): use search_path_fopen,
2324           mostly from patch 1579668 by Peter Miller, thanks
2325         * src/z80/main.c: fixed typo --callee-saves-bc
2326         * device/include/mcs51/compiler.h: added sfrword for Tasking
2327
2328 2007-04-20 Borut Razem <borut.razem AT siol.net>
2329
2330         * src/z80/main.c: replaced reserved keyword asm with asmblr
2331
2332 2007-04-19 Borut Razem <borut.razem AT siol.net>
2333
2334         * src/port.h: use const pointers to strings
2335         * src/SDCCargs.h: declared getStringArg() and getIntArg()
2336         * src/pic16/main.c: include SDCCargs.h
2337         * src/SDCCglobl.h: code_seg and const_seg are not pointers to
2338           const char, since the strings are dynamically allocated
2339         * src/SDCCmain.c: options.code_seg and options.const_seg are
2340           dynamically allocated; check port specific command line options
2341           before the general ones
2342         * src/z80/main.c: fixed bug #1631895: codeseg/constseg #pragma fail
2343
2344 2007-04-18 Maarten Brock <sourceforge.brock AT dse.nl>
2345
2346         * device/include/ds400rom.h,
2347         * device/lib/ds390/lcd390.c,
2348         * device/lib/ds390/memcpyx.c,
2349         * device/lib/ds390/rtc390.c,
2350         * device/lib/ds400/ds400rom.c,
2351         * device/lib/ds400/memcpyx.c,
2352         * device/lib/hc08/_ret.c: more replacements of keywords with their
2353           double underscore equivalents
2354         * device/lib/ds390/Makefile.in,
2355         * device/lib/ds400/Makefile.in,
2356         * device/lib/gbz80/Makefile.in,
2357         * device/lib/hc08/Makefile.in,
2358         * device/lib/mcs51/Makefile.in,
2359         * device/lib/z80/Makefile.in: added --std-c89 to CFLAGS
2360
2361 2007-04-17 Borut Razem <borut.razem AT siol.net>
2362
2363         * doc/sdccman.lyx, src/SDCCmain.c, src/SDCCglobal.h, src/ds390/gen.c,
2364           src/hc08/gen.c, src/mcs51/gen.c, src/mcs51/rtrack.c:
2365           fixed #1493816: option --no-gen-comments: --no-gen-comments renamed
2366           to --fverbose-asm, to be gcc'ish
2367
2368 2007-04-17 Maarten Brock <sourceforge.brock AT dse.nl>
2369
2370         * src/mcs51/gen.c (aopOp): set size to 1 for ruonly, fixes bug 1699455
2371
2372 2007-04-17 Borut Razem <borut.razem AT siol.net>
2373
2374         * doc/sdccman.lyx: fixed #1701874: Mac OSX references in SDCC manual
2375         * device/lib/ds400/tinibios.c, device/lib/hc08/_divuint.c,
2376           device/lib/hc08/_divulong.c: replaced _asm and _endasm keywords
2377           with their double underscore equivalent
2378
2379 2007-04-14 Borut Razem <borut.razem AT siol.net>
2380
2381         * doc/sdccman.lyx: some additional "freeware" replaced with "free open
2382           source"
2383
2384 2007-04-13 Borut Razem <borut.razem AT siol.net>
2385
2386         * doc/sdccman.lyx: -pedantic-parse-number is not in conformance with
2387           C99 standard
2388         * device/examples/serialcomm/windows/serial.[ch],
2389           device/examples/serialcomm/windows/test_serialcomm.cpp:
2390           updated by Bela Torok
2391         * device/examples/serialcomm/windows/serialcomm.dsw,
2392           device/examples/serialcomm/windows/serialcomm.dsp: added
2393
2394 2007-04-13 Jan Waclawek <wek AT efton.sk>
2395
2396         * doc/sdccman.lyx: additions and changes at various places
2397           (submitted as #1697136).
2398           (svn commit by Frieder Ferlemann <Frieder.Ferlemann AT web.de>)
2399
2400 2007-04-10 Borut Razem <borut.razem AT siol.net>
2401
2402         * doc/cdbfileformat.lyx, doc/sdccman.lyx, doc/test_suite_spec.lyx:
2403           LyX file format changed to 245
2404         * doc/sdccman.lyx, doc/README.txt, sdc/SDCC.lex, src/SDCCglue.c:
2405           "FreeWare" replaced with "free open source"
2406
2407 2007-04-10 Maarten Brock <sourceforge.brock AT dse.nl>
2408
2409         * device/include/mcs51/C8051F120.h: added some defines for bits in RSTSRC
2410
2411 2007-04-08 Maarten Brock <sourceforge.brock AT dse.nl>
2412
2413         * device/include/pic16/pic18fregs.h,
2414         * device/lib/_bp.c,
2415         * device/lib/_decdptr.c,
2416         * device/lib/_divsint.c,
2417         * device/lib/_divslong.c,
2418         * device/lib/_divuint.c,
2419         * device/lib/_divulong.c,
2420         * device/lib/_fs2schar.c,
2421         * device/lib/_fs2sint.c,
2422         * device/lib/_fs2slong.c,
2423         * device/lib/_fs2uchar.c,
2424         * device/lib/_fs2uint.c,
2425         * device/lib/_fs2ulong.c,
2426         * device/lib/_fsadd.c,
2427         * device/lib/_fscmp.c,
2428         * device/lib/_fsdiv.c,
2429         * device/lib/_fseq.c,
2430         * device/lib/_fsget1arg.c,
2431         * device/lib/_fsget2args.c,
2432         * device/lib/_fsgt.c,
2433         * device/lib/_fslt.c,
2434         * device/lib/_fsmul.c,
2435         * device/lib/_fsneq.c,
2436         * device/lib/_fsnormalize.c,
2437         * device/lib/_fsreturnval.c,
2438         * device/lib/_fsrshift.c,
2439         * device/lib/_fssub.c,
2440         * device/lib/_fsswapargs.c,
2441         * device/lib/_gptrget.c,
2442         * device/lib/_gptrgetc.c,
2443         * device/lib/_gptrput.c,
2444         * device/lib/_logexpf.c,
2445         * device/lib/_modsint.c,
2446         * device/lib/_modslong.c,
2447         * device/lib/_moduint.c,
2448         * device/lib/_modulong.c,
2449         * device/lib/_mulint.c,
2450         * device/lib/_mullong.c,
2451         * device/lib/_schar2fs.c,
2452         * device/lib/_ser.c,
2453         * device/lib/_setjmp.c,
2454         * device/lib/_sint2fs.c,
2455         * device/lib/_slong2fs.c,
2456         * device/lib/_spx.c,
2457         * device/lib/_uchar2fs.c,
2458         * device/lib/_uint2fs.c,
2459         * device/lib/_ulong2fs.c,
2460         * device/lib/asincosf.c,
2461         * device/lib/atanf.c,
2462         * device/lib/calloc.c,
2463         * device/lib/ds390/tinibios.c,
2464         * device/lib/ds400/tinibios.c,
2465         * device/lib/expf.c,
2466         * device/lib/free.c,
2467         * device/lib/hc08/_mulint.c,
2468         * device/lib/logf.c,
2469         * device/lib/malloc.c,
2470         * device/lib/printf_fast.c,
2471         * device/lib/printf_tiny.c,
2472         * device/lib/printfl.c,
2473         * device/lib/realloc.c,
2474         * device/lib/ser_ir.c,
2475         * device/lib/serial.c,
2476         * support/regression/tests/libmullong.c: replaced all special keywords
2477           with their double underscore equivalent
2478         * support/regression/ports/mcs51-xstack-auto/spec.mk,
2479         * device/lib/Makefile.in: compile libs with --std-c99 instead of
2480           --std-sdcc99
2481         * src/mcs51/gen.c (outBitC): don't store if result is return-use-only,
2482           (genRet): if the bit-symbol is ruonly it already is in the carry
2483         * src/mcs51/ralloc.c (regTypeNum): make regType REG_CND for ruonly bit
2484         * src/SDCCast.c (createFunction): applied patch 887171 by Stas Sergeev
2485         * src/SDCCicode.c (ast2iCode): '!', GETHBIT, GETABIT: only set operand
2486           type UCHAR if dest is not bit
2487
2488 2007-04-03 Maarten Brock <sourceforge.brock AT dse.nl>
2489
2490         * device/include/math.h,
2491         * device/lib/cotf.c,
2492         * device/lib/expf.c,
2493         * device/lib/sincoshf.c: changed XMAX to C99 HUGE_VALF
2494
2495 2007-04-01 Borut Razem <borut.razem AT siol.net>
2496
2497         * src/SDCC.lex, src/SDCCmain.c, support/cpp2/sdcpp.c:
2498           fixed bug #1692042: input buffer overflow...scanner uses REJECT
2499         * support/cpp2/sdcpp.c: fixed recursion bug - internal_error() called
2500           gcc_unreachable() called internal_error()...
2501
2502 2007-03-30 Raphael Neider <rneider AT web.de>
2503
2504         * src/pic/ralloc.c (isData): suppress garbage debug output
2505
2506 2007-03-28 Borut Razem <borut.razem AT siol.net>
2507
2508         * doc/sdccman.lyx:
2509           "Nightly Snapshots" replaced with "Snapshot Builds", since the SDCC
2510           is developed, built and used worldwide, and the word "night" doesn't
2511           make any sense.
2512
2513 2007-03-28 Maarten Brock <sourceforge.brock AT dse.nl>
2514
2515         * device/include/mcs51/C8051F360.h: new, added
2516         * device/include/mcs51/C8051F520.h: fixed buggy sbit addresses SPI0CN
2517
2518 2007-03-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2519
2520         * src/SDCC.y (declaration_specifiers, function_specifier),
2521         * support/Util/SDCCerr.c,
2522         * support/Util/SDCCerr.h,
2523         * src/SDCCsymt.h,
2524         * src/SDCCsymt.c (mergeSpec, checkFunction): Parse and validate the
2525           inline keyword
2526         * src/SDCCmem.c (deallocParms),
2527         * src/SDCCast.c: support for function inlining, not quite complete
2528         * src/SDCCsymt.c (printTypeChain, printTypeChainRaw): display
2529           'restrict' qualifier
2530
2531 2007-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2532
2533         * src/mcs51/gen.c (saveRegisters, unsaveRegisters): free some bitVects,
2534           (saveRBank, unsaveRBank): don't save bits,
2535           (genFunction, genEndFunction): save bits exactly once, fix bug 1535242
2536         * support/regression/tests/bug1535242.c: new, added
2537         * device/include/assert.h: applied patch 1686533 to fix bug 1686528,
2538           thanks Alexey Shamrin <shamrin AT gmail.com>,
2539           made assert.h header ANSI compliant (added a check for NDEBUG macro,
2540           removed header guard)
2541         * .version,
2542         * sdcc.spec: bumped version to 2.6.5
2543         * src/SDCCmain.c(parseCmdLine): fixed bug 1677144
2544
2545 2007-03-22 Borut Razem <borut.razem AT siol.net>
2546
2547         * debugger/mcs51/cmd.c, debugger/mcs51/sdcdb.c:
2548           fixed bug #1653671: sdcdb integration into ddd is broken
2549
2550 2007-03-22 Raphael Neider <rneider AT web.de>
2551
2552         * src/pic/gen.c (popGetExternal): augmented to also create references
2553           to external variables (not only labels),
2554           (genCall): comment on plan to reduce PAGESEL overhead,
2555           (genFunction, genEndFunction): also save/restore FSR around interrupt
2556           handling code, removed lots of unused code
2557           (genDivOneByte): release acquired temp register
2558         * src/pic/glue.c (pic14createInterruptVect): adapt to new signature
2559           of popGetExternal
2560         * device/lib/pic/libsdcc/shadowregs.c: NEW, provide storage location
2561           for registers that need to be saved during interrupts (FSR, STATUS,
2562           PCLATH; W needs special handling), currently only FSR is used
2563
2564 2007-03-22 Raphael Neider <rneider AT web.de>
2565
2566         * device/include/pic/pic14devices.txt: 16f688 has only one config word
2567
2568 2007-03-19 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2569
2570         * /as/link/mcs51/aslink.dsp: Object extension for mcs51 is 'rel' not 'o'.
2571
2572 2007-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
2573
2574         * src/mcs51/peeph.def (263.x): fixed bug for volatile variables
2575
2576 2007-03-14 Maarten Brock <sourceforge.brock AT dse.nl>
2577
2578         * as/link/aslink.h: added LKOBJEXT
2579         * as/link/hc08/link_hc08.dsp,
2580         * as/link/hc08/Makefile.bcc,
2581         * as/link/hc08/Makefile.in,
2582         * as/link/mcs51/aslink.dsp,
2583         * as/link/mcs51/Makefile.bcc,
2584         * as/link/mcs51/Makefile.in: moved lkamof51.c and lkdata.c
2585         * as/link/hc08/lkaomf51.c,      as/link/mcs51/lkaomf51.c,
2586         * as/link/lkaomf51.c: merged and moved
2587         * as/link/hc08/lkdata.c,        as/link/mcs51/lkdata.c,
2588         * as/link/z80/lkdata.c,
2589         * as/link/lkdata.c: merged and moved
2590         * as/link/hc08/lkmain.c,
2591         * as/link/mcs51/lkmain.c: cosmetic changes
2592         * as/link/z80/lkeval.c,         as/link/lkeval.c: merged
2593         * as/link/lklex.c: use LKOBJEXT
2594         * as/link/z80/lklist.c,         as/link/lklist.c: merged,
2595           ANSI-fied functions, removed bubble-sorts
2596         * as/link/z80/lksym.c           as/link/lksym.c: merged,
2597           ANSI-fied functions
2598         * as/link/z80/linkgbz80.dsp,
2599         * as/link/z80/linkz80.dsp,
2600         * as/link/z80/Makefile.in: added lkaomf51.c and lknoice.c,
2601           moved lkdata.c, lkeval.c, lkhead.c, lklex.x, lklist.c, lksym.c
2602         * as/link/z80/lkhead.c,
2603         * as/link/z80/lklex.c: deleted
2604         * as/link/z80/lklibr.c: moved LKOBJEXT to aslink.h
2605         * as/link/z80/lkmain.c: added copyfile()
2606
2607 2007-03-13 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2608
2609         * device/include/mcs51/P89LPC925.h: Added missing P1_6 and P1_7.
2610
2611 2007-03-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2612
2613         * device/lib/_strlen.c: assembler version for mcs51
2614
2615 2007-03-13 Raphael Neider <rneider AT web.de>
2616
2617         * device/include/pic16/pic18f2221.h,
2618         * device/include/pic16/pic18f2321.h,
2619         * device/include/pic16/pic18f2331.h,
2620         * device/include/pic16/pic18f4221.h,
2621         * device/include/pic16/pic18f4321.h,
2622         * device/include/pic16/pic18f4331.h: fixed config byte location names
2623         * support/scripts/inc2h-pic16.pl: removed debug output, emit
2624           consistently named config byte locations
2625
2626 2007-03-13 Borut Razem <borut.razem AT siol.net>
2627
2628         * src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
2629           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/s51.src/Makefile.in,
2630           sim/ucsim/xa.src/Makefile.in, sim/ucsim/z80.src/Makefile.in,
2631           as/link/z80/Makefile.in, as/z80/Makefile.in:
2632           introduced LDFLAGS
2633
2634 2007-03-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2635
2636         * device/lib/printfl.c: 13 bytes less __data mem (12 more __idata)
2637         * device/lib/printf_large.c: pointer was converted to generic
2638         pointer for mcs51 models other than model-small (Maarten noticed)
2639
2640 2007-03-10 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2641
2642         * device/include/mcs51/ADuC84x.h: Added.
2643
2644 2007-03-10 Borut Razem <borut.razem AT siol.net>
2645
2646         * src/SDCC.lex, src/SDCCutil.[ch], src/SDCCval:
2647           fixed RFE #1624219: double backslashes in filenames;
2648           functions hexEscape(), octalEscape() and copyStr() moved from
2649           SDCCval.c to SDCCutil.c and made them glovbally available
2650
2651 2007-03-09 Borut Razem <borut.razem AT siol.net>
2652
2653         * src/SDCC.lex, src/SDCCast.c. src/SDCCglobl.c, src/SDCCsymt.c,
2654           src/SDCCval.c: fixed bugs #1676768: Wrong line number reported and
2655           1673361: Missaligned comments in output files
2656
2657 2007-03-09 Raphael Neider <rneider AT web.de>
2658
2659         * device/include/pic/pic14devices.txt: fixed confsiz of 16f91[3467]
2660
2661 2007-03-09 Raphael Neider <rneider AT web.de>
2662
2663         * src/pic/gen.c,
2664         * src/pic/glue.c,
2665         * src/pic/ralloc.c: suppress undesired debug output
2666         * src/SDCCmain.c (linkEdit): initialize c to quieten compiler
2667
2668 2007-03-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2669
2670         * device/lib/printf_large.c: 6 bytes less __data mem (6 more __idata)
2671
2672 2007-03-07 Borut Razem <borut.razem AT siol.net>
2673
2674         * device/lib/pic16/libdev/pic18f[24][34]31.c:
2675           search include files in the current directory
2676
2677 2007-03-04 Maarten Brock <sourceforge.brock AT dse.nl>
2678
2679         * src/SDCCglue.c (emitMaps, glue),
2680         * src/SDCCmem.c (initMem, allocDefault): added x_abs for initialized
2681           absolute xdata
2682         * support/regression/tests/absolute.c: added xdata test
2683
2684 2007-03-03 Maarten Brock <sourceforge.brock AT dse.nl>
2685
2686         * src/SDCCmain.c (parseCmdLine): only set options.xstack_loc for mcs51,
2687           added condition to macro, fixes bug 1666080
2688
2689 2007-03-02 Raphael Neider <rneider AT web.de>
2690
2691         * src/pic/gen.c (genGenPointerSet): removed bogus assertion
2692
2693 2007-02-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2694
2695         * device/lib/mcs51/crtxclear.asm: pdata segment of 256 byte would not
2696         be cleared. Unconditionally set __XPAGE
2697         * src/hc08/gen.c: --no-gen-comments (RFE #1493816) for hc08
2698
2699 2007-02-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2700
2701         * src/SDCCglobl.h,
2702         * src/SDCCmain.c,
2703         * src/mcs51/gen.c,
2704         * src/mcs51/rtrack.c,
2705         * src/ds390/gen.c,
2706         * doc/sdccman.lyx: added --no-gen-comments
2707         * src/mcs51/peeph.def: added 192.b, disabled 185
2708
2709 2007-02-25 Raphael Neider <rneider AT web.de>
2710
2711         * src/pic16/gen.c (genCast): fixed typo
2712         * device/lib/pic16/Makefile.subdir: only install existing files
2713         * device/lib/pic16/libdev/Makefile.in: build serially, avoid races
2714
2715 2007-02-25 Maarten Brock <sourceforge.brock AT dse.nl>
2716
2717         * device/lib/mcs51/crtcall.asm: new, added for indirect calls
2718         * device/lib/mcs51/crtclear.asm,
2719         * device/lib/mcs51/crtxclear.asm: renumbered labels
2720         * device/lib/mcs51/Makefile.in: added crtcall.asm
2721         * doc/sdccman.lyx: documented mcs51 crt* library startup code
2722         * src/mcs51/gen.c (movc): removed,
2723           (aopGet, genPlusBits): clear a after loading the carry (possibly from
2724             acc.x or psw.x),
2725           (toCarry, genSend, genRet): added function toCarry,
2726           (genPcall): use "lcall @a+dptr" for functions w/o parameters,
2727           (assignBit, genAssign, genCast): added function assignBit
2728         * src/mcs51/Makefile.bcc: added rtrack.c
2729         * src/mcs51/ralloc.h: made valueKnown a bitfield
2730         * src/mcs51/rtrack.c (getReg, rtrackUpdate): added getReg,
2731           fixed "jbc acc" and "cpl acc" bug, enhanced "cjne", "jnz" and "djnz",
2732           disabled InvalidateAllRx for lcall __gptrput, added "xch a,rn"
2733         * src/pic/pcode.c (FixRegisterBanking): fixed warning used uninitialized
2734         * src/z80/gen.c: added AOP_IS_PAIRPTR,
2735           (_pop): only pop valid pairs, see gencjneshort,
2736           (gencjneshort): return pair that still needs to be popped, restructured,
2737           (gencjne, genCmpEq): call _pop
2738
2739 2007-02-23 Raphael Neider <rneider AT web.de>
2740
2741         * device/include/pic/pic14devices.txt: 16f684 has only one config word
2742
2743 2007-02-22 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2744
2745         * device/include/mcs51/P89LPC925.h: Added.
2746
2747 2007-02-18 Raphael Neider <rneider AT web.de>
2748
2749         * src/pic/glue.c (emitInitVal): fixed #1659894 (SIGSEGV on arrays)
2750
2751 2007-02-17 Borut Razem <borut.razem AT siol.net>
2752
2753         * support/cpp2/directives.c, support/cpp2/version.c:
2754           synchronized with GCC CPP 4.1.2
2755
2756 2007-02-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2757
2758         * src/mcs51/rtrack.h,
2759         * src/mcs51/rtrack.c: added register tracking for the mcs51 port,
2760           by checking the strings passed by emitcode() to the assembler.
2761           Feel free to change. This in part addresses RFE #482179.
2762           Set environment variable SDCC_RTRACK to enable.
2763         * src/mcs51/gen.c: inserted hooks
2764         * src/mcs51/ralloc.h: added two members to struct regs
2765         * support/regression/tests/regtrack.c: added
2766
2767 2007-02-14 Borut Razem <borut.razem AT siol.net>
2768
2769         * src/SDCC.y: fixed bug #1291133: duplicate members across enum(s)
2770         * Makefile.in: applied patch from Makefile related part of
2771           #1469393: Compiler does not initialize static data
2772
2773 2007-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
2774
2775         * src/SDCCicode.c (geniCodeAssign): return (itemp) right instead of left
2776           for better fix of bug 1273984, compiles pic16 rand.c
2777
2778 2007-02-12 Borut Razem <borut.razem AT siol.net>
2779
2780         * src/pic16/main.c: fixed pic16 standard library directory bug
2781
2782 2007-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
2783
2784         * src/hc08/gen.c (genSwap): fix swap regression test
2785
2786 2007-02-10 Borut Razem <borut.razem AT siol.net>
2787
2788         * src/SDCCsymt.c: fixed bug #1159134: invalid duplicate declarations
2789           with same scope
2790         * support/regression/tests/bug-1654060.c: added regression test for
2791           #1654060
2792
2793 2007-02-09 Bernhard Held <bernhard AT bernhardheld.de>
2794
2795         * src/mcs51/gen.c (genRet): fixed RFE 1652561: added code for bit to
2796         bit moves in return statement
2797
2798 2007-02-09 Borut Razem <borut.razem AT siol.net>
2799
2800         * src/SDCC.y: fixed bug #1654060 typedef within function causes
2801           syntax error
2802
2803 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2804
2805         * src/mcs51/gen.c (aopPut): use direct name for pushing registers
2806         * src/SDCCmain.c (parseCmdLine): dbuf_s path must be initialised
2807
2808 2007-02-07 Raphael Neider <rneider AT web.de>
2809
2810         * src/pic16/devices.inc,
2811         * device/include/pic16/pic18fregs.h,
2812         * device/include/pic16/pic18f[24][34]31.h,
2813         * device/lib/pic16/libdev/pic18f[24][34]31.c,
2814         * device/lib/pic16/pics.all: added 18f[24][34]31 family
2815         * device/lib/pic16/libio/i2c.ignore: do not build i2c
2816
2817 2007-02-07 Maarten Brock <sourceforge.brock AT dse.nl>
2818
2819         * device/lib/printf_large.c (_print_format): fixed compare/assign bug, how
2820           can this have lived here for so many years?
2821         * src/SDCCicode.c (ast2iCode): return left instead of right for assignment,
2822           fixes bug 1273984, see also patch 1645121, thanks Gnther Jehle
2823         * support/regression/tests/bug1273984.c: new, added, thanks Gnther Jehle
2824
2825 2007-02-06 Bernhard Held <bernhard AT bernhardheld.de>
2826
2827         * src/SDCCBlock.c (addiCodeToeBBlock): fixed bug 1652207: GOTO icodes
2828         appended by loop induction must be at the very end of the eBBlock
2829
2830 2007-02-05 Kevin Vigor
2831
2832         * src/ds390/gen.c, src/ds390/main.c: Address bug 1469393.
2833
2834 2007-02-05 Borut Razem <borut.razem AT siol.net>
2835
2836         * support/regression/fwk/lib/timeout.c: native WIN32 port,
2837           implemented #1651830 Reg. tests: rewrite timeout.c to use WIN32 API
2838
2839 2007-02-03 Borut Razem <borut.razem AT siol.net>
2840
2841         * src/SDCC.y, src/SDCCmain.c, src/SDCCglobl.h, doc/sdccman.lyx:
2842           applied patch #1646602 option to set default signedness of char to
2843           unsigned, added -funsigned-char command line option,
2844           thanks to Gunther Jehle
2845         * device/lib/Makefile.in: added the -f option to rm so it doesn't
2846           prompt for file deletion a few hundred times (especially the
2847           subversion files, which have ro permissions so it asks for
2848           confirmation), thanks to Simon McAuliffe;
2849           added {} + option to find in order to remove multiple files from a
2850           single rm commad
2851
2852 2007-02-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
2853
2854         * device/include/mcs51/SST89x5xRDx.h: Added.
2855
2856 2007-02-02 Raphael Neider <rneider AT web.de>
2857
2858         * src/pic/glue.c (emitSymbolSet): check sym->etype before use
2859         * src/regression/Makefile: use --no-pcode-opt, ignore failing tests
2860
2861 2007-02-01 Raphael Neider <rneider AT web.de>
2862
2863         * src/pic/glue.c (picglue,emitSymbolSet,showAllMemmaps): emit the
2864           config words again
2865
2866 2007-01-31 Borut Razem <borut.razem AT siol.net>
2867
2868         * support/Util/dbuf_string.h: added ATTRIBUTE_PRINTF to dbuf_printf()
2869           if compiled with GCC. Thanks to Raphael Neider
2870
2871 2007-01-31 Raphael Neider <rneider AT web.de>
2872
2873         * src/pic/pcode.c (isValidIdChar,bankCompare): fuzzy matching of
2874             operand names, handles name and (name + n) for all n,
2875           (sameBank): restructured, also check bank allocation policy,
2876         * src/pic/glue.c (emitPseudoStack): fixed printf arguments,
2877           (pic14_operandsAllocatedInSameBank): check whether to operands
2878             will be allocated into the same bank (i.e., section) to reduce
2879             BANKSEL overhead, queried from pcode.c:sameBank,
2880           (pic14printLocals): reintroduced clustering registers into a single
2881             section: all compiler generated symbols will now reside in one
2882             bank (per file), reducing BANKSEL overhead and code size,
2883           (showAllMemmaps): use local dbuf where possible
2884
2885 2007-01-29 Raphael Neider <rneider AT web.de>
2886
2887         * src/pic/gen.c (popGetExternal): simplified, mark symbol as used,
2888           (call_libraryfunc): retrieve/create symbol and mark as used,
2889           (genFunction): mark defined functions as non-extern and add again
2890            to code memmap for later output
2891         * src/pic/glue.c (emitPseudoStack): put into own subroutine,
2892           (pic14printLocals): reworked for new symbol emission,
2893           (emitIfNew,pic14_constructAbsMap,emitIvalLabel,emitIvals,emitInitVal,
2894           showAllMemmaps): reworked symbol output using dbufs, added handling
2895             of string literals (still incomplete),
2896           (picglue): removed symbol emission, moved into showAllMemmaps,
2897           (emitSymbolSet): new workhorse for symbol output,
2898           (pic14emitMaps,pic14printPublics,pic14printExterns): commented out
2899
2900 2007-01-29 Borut Razem <borut.razem AT siol.net>
2901
2902         * src/SDCCmain.c, src/SDCCutil.c: dbuf_splitFile: file extension
2903           component contains the extension separator.
2904
2905 2007-01-28 Borut Razem <borut.razem AT siol.net>
2906
2907         * sim/ucsim/cmd.src/cmdutil.cc: NUL device is detected as CG_FILE type
2908           on WIN32
2909         * src/SDCCdwarf2.c, src/SDCCglobl.h, src/SDCCmain.c, src/SDCCutil.c,
2910           src/SDCCutil.h, src/avr/gen.c, src/ds390/gen.c, src/hc08/gen.c,
2911           src/mcs51/gen.c, src/pic/device.c, src/pic/gen.c, src/pic/pcode.c,
2912           src/pic/pcodepeep.c, src/pic/ralloc.c, src/pic16/device.h,
2913           src/pic16/gen.c, src/pic16/main.c, src/pic16/pcode.c,
2914           src/pic16/pcodepeep.c, src/pic16/ralloc.c, src/xa51/gen.c,
2915           src/z80/gen.c, support/Util/MySystem.c:
2916           accept slash and backslash as directory separator on WIN32 and
2917           Cygwin ports
2918
2919 2007-01-28 Raphael Neider <rneider AT web.de>
2920
2921         * src/pic16/devices.inc,
2922         * device/include/pic16/pic18f[24][23]21.h,
2923         * device/include/pic16/pic18fregs.h,
2924         * device/lib/pic16/libdev/pic18f[24][23]21.c,
2925         * device/lib/pic16/pics.all: added support for the 18f[24][23]21 family
2926         * device/lib/pic16/libio/adc.ignore,
2927         * device/lib/pic16/libio/i2c.ignore,
2928         * device/lib/pic16/libio/usart.ignore: do not build I/O lib for new
2929           family, as gputils do not yet support the devices
2930         * device/lib/pic16/Makefile.subdir: ignore errors on install
2931         * support/scripts/inc2h-pic16.pl: script to generate pic16 device
2932           headers and libraries from gputils .inc files
2933
2934 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2935
2936         * doc/sdccman.lyx: add printf_fast_f precision limitation note
2937
2938 2007-01-26 Paul Stoffregen <paul AT pjrc.com>
2939
2940         * doc/sdccman.lyx: add printf benchmarks
2941
2942 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2943
2944         * device/lib/printf_fast.c: fix %c, char promoted to int
2945         * device/lib/printf_tiny.c: fix %c, char promoted to int
2946
2947 2007-01-25 Paul Stoffregen <paul AT pjrc.com>
2948
2949         * device/lib/printf_fast.c: fix float overflow check, bug #1525093
2950
2951 2007-01-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2952
2953         * support/regression/tests/swap.c: 64 bit hosts failed
2954         * doc/sdccman.lyx: added preliminary mcs51 printf feature matrix
2955
2956 2007-01-25 Raphael Neider <rneider AT web.de>
2957
2958         * src/pic/pcode.c (sameBank,FixRegisterBanking): optimize banksels
2959           based on absolute register address, patch by Alex Blond
2960
2961 2007-01-22 Raphael Neider <rneider AT web.de>
2962
2963         * src/pic/glue.c (pic14emitRegularMap): mark initialized symbols as
2964           emitted, do not emit them again...
2965
2966 2007-01-22 Raphael Neider <rneider AT web.de>
2967
2968         * src/regression/bank1.c, src/regression/compare6.c,
2969           src/regression/add.c: cosmetic changes
2970         * src/pic/pcode.h: moved GPTRTAG_* here from gen.c
2971         * src/pic/gen.c: fixed global zero and one,
2972           (aopForSym): removed unued code,
2973           (aopGet): assert aop is defined, check and use `index' of
2974             pCodeImmd operands (fixes #1630908),
2975         * src/pic/pcode.c (get_op): added output of generic pointer tag,
2976           (register_reassign): prevent accidental register unification,
2977           (ReuseReg): cosmetic changes (also above)
2978         * src/pic/glue.c (pic14_constructAbsMap,pic14emitRegularMap,
2979           pic14emitStaticSeg): do not emit initialized data,
2980           (printIval*): replaced with working versions,
2981           (pic14createInterruptVect,picglue): use idata for initialized data,
2982             now init data should work in all modules (not only main()),
2983         * device/lib/pic/libsdcc/idata.c: NEW, handle initialized data
2984
2985 2007-01-21 Borut Razem <borut.razem AT siol.net>
2986
2987         * sim/ucsim/configure.in: introduced macro DD_COPT_NO_IGNORE,
2988           use -fPIC or -fpic if they are supported and not ignored
2989         * src/SDCCval.c: fixed bug introduced by me in rev. #4577
2990         * support/cpp2/libcpp/lex.c: fixed gcc 4.1.1 warnings
2991
2992 2007-01-20 Borut Razem <borut.razem AT siol.net>
2993
2994         * src/SDCC.lex, src/SDCCmain.c, sdc/SDCCglobl.h, doc/sdccman.lyx:
2995           implemented RFE #1470316: allow "$" in variable names
2996
2997 2007-01-20 Raphael Neider <rneider AT web.de>
2998
2999         * device/include/pic/pic14regs.h: reverted accidental wipe of the file
3000
3001 2007-01-20 Raphael Neider <rneider AT web.de>
3002
3003         * device/lib/pic/libdev/devices.txt: device list for mkall.sh
3004         * device/lib/pic/libdev/mkall.sh: script to rebuild all device libs
3005         * device/lib/pic/libdev/pic14ports.txt: device PORT specifications
3006         * support/scripts/inc2h.pl: fixed major .inc parsing bugs,
3007           applied patch from Robert Tate (#1629249) to add PORTs and TRISs
3008         * device/lib/pic/libdev/pic*.c,
3009         * device/include/pic/pic*.h: regenerated with enhanced inc2h.pl
3010         * device/lib/pic/libdev/Makefile.in: show progress
3011
3012 2007-01-19 Bernhard Held <bernhard AT bernhardheld.de>
3013
3014         * doc/sdccman.lyx: updated "configure options" for autoconf 2.6
3015         * support/scripts/sdcc_cygwin_mingw32,
3016         * support/scripts/sdcc_mingw32,
3017         * support/scripts/build.mak: replaced --datadir by --datarootdir for
3018         conformance with autoconf 2.6
3019
3020 2007-01-19 Raphael Neider <rneider AT web.de>
3021
3022         * src/pic/device.c (register_map): fixed list construction
3023         * src/pic/gen.c (genDivOneByte,genModOneByte): accept result > 1 byte,
3024           (genMod): removed case for genModbits,
3025           (genModbits): removed as now unused/unimplemented
3026         * src/pic/glue.c (picglue): prevent name clash with sources 'init.c'
3027
3028 2007-01-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3029
3030         * support/regression/tests/swap.c: added in response to #1638622
3031         * doc/sdccman.lyx: synced version, minor changes
3032
3033 2007-01-18 Borut Razem <borut.razem AT siol.net>
3034
3035         * SDCClabel.c: fixed bug #1638651: wrong linenumber presented in warning,
3036           thanks to Gunther Jehle
3037         * src/asm.c: don't die if the file drfined in #line couldn't be opened
3038         * src/SDCC.lex, src/SDCCglobal.h, src/SDCCicode.c, src/SDCCsymt.c,
3039           src/SDCCval.c: removed redundant definitions of currFname and mylineno;
3040           use filename in lineno instead.
3041         * SDCCast.c: removed MSVC warning C4018: '==' : signed/unsigned mismatch,
3042           print the file name in ast_print()
3043
3044 2007-01-18 Borut Razem <borut.razem AT siol.net>
3045
3046         * support/Util/dbuf_string.c: removed (PTR) cast since it is not
3047           defined in MSVC
3048         * src/SDCC.lex: stringLiteral() returns const char pointer,
3049           EOF detection in stringLiteral(), fixed asmbuf memory leak,
3050           fixed column counting
3051         * src/SDCCval.[ch]: constVal(), value *strVal() and charVal()
3052           accept const char pointer as parameter
3053         * src/SDCCdwarf2.c: corrected buffer size
3054
3055 2007-01-17 Borut Razem <borut.razem AT siol.net>
3056
3057         * support/Util/dbuf_string.c: fixed for amd64
3058
3059 2007-01-15 Borut Razem <borut.razem AT siol.net>
3060
3061         * src/pic16/ralloc.c, src/pic/ralloc.c, src/SDCC.y:
3062           removed terminal symbol ELIPSIS, since it was never generated by the
3063           lexer and it was wrongly used in parameter_identifier_list rule
3064
3065 2007-01-15 Raphael Neider <rneider AT web.de>
3066
3067         * doc/sdccman.lyx: updated PIC14/16 command line args, updated PIC14
3068             code page and data banking description
3069         * src/pic/genarith.c,
3070         * src/pic/gen.h: removed bit arithmetic functions,
3071             updated exit(1) to exit(EXIT_FAILURE)
3072         * device/lib/pic16/libsdcc/stack/stack.S: default to 256 byte stack
3073         * device/include/pic16/pic18f2455.h,
3074         * device/lib/pic16/libdev/pic18f2455.c: added PORTD, LATD, LATE,
3075             TRISD and TRISE, fixed/added some bit names
3076         * device/lib/pic16/libdev/pic18f{2550,4550,4455}.c,
3077         * device/include/pic16/pic18f{2550,4550,4455}.h: simply include
3078             updated pic18f2455.{c,h} instead of duplicating them
3079
3080 2007-01-14 Borut Razem <borut.razem AT siol.net>
3081
3082         * as/mcs51/asnoice.c, as/hc08/asnoice.c: fixed bug #1447412:
3083           Cannot debug files that contain spaces in the path name
3084           by converting spaces in asm file name to underscores
3085
3086 2007-01-13 Borut Razem <borut.razem AT siol.net>
3087
3088         * doc/sdccman.lyx: fixed format errors
3089
3090 2007-01-10 Borut Razem <borut.razem AT siol.net>
3091
3092         * src/SDCC.lex, src/SDCCmain.c: fixed bug #1631895:
3093           codeseg/constseg #pragma fail
3094         * suppoprt/cpp2/Makefile.bcc: reenable Borland C compilation
3095         * suppoprt/cpp2/configure.in, suppoprt/cpp2/libcpp/lex.c,
3096           suppoprt/cpp2/Makefile.in, suppoprt/cpp2/sdcpp-opts,
3097           suppoprt/cpp2/sdcpp.[ch]: house cleaning
3098
3099 2007-01-09 Borut Razem <borut.razem AT siol.net>
3100
3101         * get rid of diagnistic.[ch], pretty-print.[ch],
3102           c-pretty-print.[ch], ... used just for error, warning, ...
3103           message formatting
3104         * suppoprt/cpp2/pretty-print.[ch], suppoprt/cpp2/diagnostic.[ch],
3105           suppoprt/cpp2/diagnostic.def, suppoprt/cpp2/input.h,
3106           suppoprt/cpp2/pretty-print.[ch]:
3107           removed
3108         * suppoprt/cpp2/Makefile.in, suppoprt/cpp2/opts.c,
3109           suppoprt/cpp2/sdcpp-opts.c, suppoprt/cpp2/sdcpp.[ch],
3110           suppoprt/cpp2/sdcpp.dsp:
3111           changed
3112
3113 2007-01-08 Maarten Brock <sourceforge.brock AT dse.nl>
3114
3115         * device/lib/printf_large.c (output_float): removed recursion,
3116           use smaller buffer on stack for mcs51,
3117           fixed bug printing 1.96
3118         * support/regression/tests/snprintf.c: added test
3119
3120 2007-01-07 Borut Razem <borut.razem AT siol.net>
3121
3122         * use dynamic memory buffers instead temporary files
3123         * support/Util/dbuf_string.c, support/Util/dbuf_string.h:
3124           added
3125         * src/Makefile.in, src/SDCC.lex, src/SDCCast.c, src/SDCCast.h,
3126           src/SDCCcse.c, src/SDCCglobl.h, src/SDCCglue.c, src/SDCCglue.h,
3127           src/SDCCicode.c, src/SDCCicode.h, src/SDCCmain.c, src/SDCCmem.c,
3128           src/SDCCmem.h, src/SDCCpeeph.c, src/SDCCpeeph.h, src/SDCCsymt.c,
3129           src/SDCCsymt.h, src/SDCCutil.c, src/asm.c, src/asm.h, src/avr/gen.c,
3130           src/avr/main.c, src/ds390/gen.c, src/ds390/main.c, src/hc08/gen.c,
3131           src/hc08/main.c, src/izt/gen.c, src/mcs51/gen.c, src/mcs51/main.c,
3132           src/pic/device.c, src/pic/gen.c, src/pic/glue.c, src/pic/main.c,
3133           src/pic/ralloc.c, src/pic16/gen.c, src/pic16/glue.c,
3134           src/pic16/main.c, src/pic16/ralloc.c, src/port.h, src/src.dsp,
3135           src/xa51/gen.c, src/xa51/main.c, src/z80/gen.c, src/z80/main.c,
3136           support/Util/dbuf.c, support/Util/dbuf.h:
3137           modified
3138         * .version, sdcc.spec: bumped version to 2.6.4
3139
3140 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3141
3142         * src/port.h: added TARGET_Z80_LIKE macro
3143         * src/SDCCmain.c (linkEdit): use TARGET_Z80_LIKE,
3144           output PSEG location if --xram-loc or --xstack-loc was used
3145         * as/link/mcs51/lkarea.c (lnksect2): set segment address afterwards
3146
3147 2007-01-07 Maarten Brock <sourceforge.brock AT dse.nl>
3148
3149         * as/as_gbz80.dsp, as/z80/as_gbz80.dsp,
3150         * as/as_z80.dsp,   as/z80/as_z80.dsp,
3151         * as/asx8051.dsp,  as/mcs51/asx8051.dsp,
3152         * sdcc.dsw: moved project files into subdir
3153         * as/hc08/as_hc08.dsp,
3154         * as/hc08/Makefile.bcc,
3155         * as/hc08/Makefile.in,
3156         * as/mcs51/Makefile.bcc,
3157         * as/mcs51/Makefile.in,
3158         * as/z80/Makefile.bcc,
3159         * as/z80/Makefile.in,
3160         * as/link/mcs51/Makefile.bcc: use as/strcmpi.c
3161         * as/hc08/asm.h,
3162         * as/mcs51/asm.h,
3163         * as/z80/asm.h: added as_strcmpi() and as_strncmpi() prototypes
3164         * as/hc08/asmain.c,
3165         * as/hc08/assym.c,
3166         * as/mcs51/asmain.c,
3167         * as/mcs51/assym.c,
3168         * as/z80/assym.c: removed include "strcmpi.h"
3169         * as/hc08/strcmpi.c,
3170         * as/hc08/strcmpi.h,
3171         * as/mcs51/strcmpi.c,
3172         * as/mcs51/strcmpi.h,
3173         * support/Util/strcmpi.c,
3174         * support/Util/strcmpi.h: removed files
3175         * as/strcmpi.c: added as_strncmpi()
3176
3177 2007-01-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3178
3179         * sdcc.dsw: Added some dependencies on project config.dsp
3180
3181 2007-01-05 Maarten Brock <sourceforge.brock AT dse.nl>
3182
3183         * as/link/mcs51/lkarea.c (lnkarea2, lnksect2): replaced [di]seg_ap->a_addr
3184           with [di]ram_start to fix a regresion
3185
3186 2007-01-03 Bernhard Held <bernhard AT bernhardheld.de>
3187
3188         * configure.in: added missing mcs51 in status output
3189         * Makefile.in: add support/regression to SDCC_EXTRA to distclean this
3190         directory
3191         * debugger/mcs51/clean.mk (distclean): remove config.h
3192         * src/clean.mk (clean): remove SDCCy.c, SDCCy.h, SDCClex.c
3193         * support/cpp2/Makefile.in (clean): remove s-options, optionlist,
3194         options.h, s-options-h and options.c
3195         * support/cpp2/clean.mk: unused, removed
3196         * Makefile.common.in,
3197         * main_in.mk,
3198         * as/Makefile.in,
3199         * as/hc08/Makefile.in,
3200         * as/hc08/clean.mk,
3201         * as/mcs51/Makefile.in,
3202         * as/mcs51/clean.mk,
3203         * as/z80/clean.mk,
3204         * as/z80/conf.mk,
3205         * as/z80/Makefile.in,
3206         * as/z80/clean.mk,
3207         * as/link/Makefile.in,
3208         * as/link/hc08/Makefile.in,
3209         * as/link/hc08/clean.mk,
3210         * as/link/mcs51/Makefile.in,
3211         * as/link/mcs51/clean.mk,
3212         * as/link/z80/Makefile.in,
3213         * as/link/z80/clean.mk,
3214         * as/link/z80/conf.mk,
3215         * debugger/mcs51/Makefile.in,
3216         * debugger/mcs51/clean.mk,
3217         * device/include/Makefile.in,
3218         * device/lib/Makefile.in,
3219         * device/lib/mcs51/Makefile.in,
3220         * device/lib/pic/Makefile.in,
3221         * device/lib/pic/Makefile.common.in,
3222         * device/lib/pic/Makefile.subdir,
3223         * device/lib/pic/Makefile.rules,
3224         * device/lib/pic16/libio/Makefile.in,
3225         * device/lib/pic16/Makefile.subdir,
3226         * device/lib/pic16/libdev/Makefile.in,
3227         * device/lib/pic16/Makefile.rules,
3228         * device/lib/pic16/Makefile.common.in,
3229         * sim/ucsim/avr.src/Makefile.in,
3230         * sim/ucsim/main_in.mk,
3231         * sim/ucsim/cmd.src/Makefile.in,
3232         * sim/ucsim/doc/Makefile.in,
3233         * sim/ucsim/gui.src/Makefile.in,
3234         * sim/ucsim/gui.src/obsolete/portmon.src/Makefile.in,
3235         * sim/ucsim/gui.src/serio.src/Makefile.in,
3236         * sim/ucsim/hc08.src/Makefile.in,
3237         * sim/ucsim/libltdl/Makefile.in,
3238         * sim/ucsim/s51.src/Makefile.in,
3239         * sim/ucsim/sim.src/Makefile.in,
3240         * sim/ucsim/sim.src/conf.mk,
3241         * sim/ucsim/xa.src/Makefile.in,
3242         * sim/ucsim/z80.src/Makefile.in,
3243         * src/Makefile.in,
3244         * src/clean.mk,
3245         * src/port.mk,
3246         * support/cpp2/Makefile.in,
3247         * support/librarian/Makefile.in,
3248         * support/librarian/clean.mk,
3249         * support/makebin/Makefile.in,
3250         * support/makebin/clean.mk,
3251         * support/packihx/Makefile.in,
3252         * support/regression/Makefile.in,
3253         * support/regression/ports/ds390/spec.mk,
3254         * support/regression/ports/gbz80/spec.mk,
3255         * support/regression/ports/hc08/spec.mk,
3256         * support/regression/ports/mcs51/spec.mk,
3257         * support/regression/ports/mcs51-large/spec.mk,
3258         * support/regression/ports/mcs51-medium/spec.mk,
3259         * support/regression/ports/mcs51-xstack-auto/spec.mk,
3260         * support/regression/ports/pic14/spec.mk,
3261         * support/regression/ports/pic16/spec.mk,
3262         * support/regression/ports/mcs51-stack-auto/spec.mk,
3263         * support/regression/ports/ucz80/spec.mk,
3264         * support/regression/ports/xa51/spec.mk,
3265         * support/regression/ports/z80/spec.mk: fixed for autoconf 2.6x by
3266         adding a slash after $(top_builddir) and/or adding @datarootdir@
3267         * configure.in,
3268         * debugger/mcs51/configure.in,
3269         * device/lib/pic/configure.in,
3270         * device/lib/pic16/configure.in,
3271         * sim/ucsim/configure.in,
3272         * support/cpp2/configure.in,
3273         * support/packihx/configure.in: changed AC_PREREQ to 2.60
3274         * configure,
3275         * debugger/mcs51/configure,
3276         * device/lib/pic/configure,
3277         * device/lib/pic16/configure,
3278         * sim/ucsim/configure,
3279         * support/cpp2/configure,
3280         * support/packihx/configure: generated with autoconf 2.60
3281
3282 2007-01-02 Maarten Brock <sourceforge.brock AT dse.nl>
3283
3284         * as/link/hc08/lkihx.c (newArea),
3285         * as/link/hc08/lkrloc.c: renamed newArea() to ihxNewArea()
3286
3287 2007-01-02 Borut Razem <borut.razem AT siol.net>
3288
3289         * doc/sdccman.lyx: documented #pragma sdcc_hash
3290         * support/cpp2/sdcpp.c: allow_naked_hash (value of #pragma sdcc_hash)
3291           initialized to 0
3292         * support/cpp2/c-ppoutput.c: fixed warning: no newline at end of file
3293
3294 2007-01-01 Bernhard Held <bernhard AT bernhardheld.de>
3295
3296         * src/SDCCast.c (createDo): backPatchLabels() needs falseLabel in
3297         empty 'while'-loop to work correctly, see regression test 'while.c'
3298         * support/regression/tests/while.c: added
3299
3300 2007-01-01 Borut Razem <borut.razem AT siol.net>
3301
3302         * support/cpp2/libcpp/directives.c, support/cpp2/libcpp/identifiers.c,
3303           support/cpp2/libcpp/init.c, support/cpp2/libcpp/sdcpp-opts.c,
3304           support/cpp2/libcpp/sdcpp.c:
3305           sdcpp specific pragma/directive/option handling moved to sdcpp.c
3306         * doc/sdccman.lyx: reference to the GCC 4.1.1 CPP Manual
3307         * support/cpp2/libcpp/mkdeps.c: synchronized with GCC CPP 4.1.1
3308
3309 2006-12-31 Borut Razem <borut.razem AT siol.net>
3310
3311         * SDCPP synchronized with GCC CPP release version 4.1.1,
3312           currently the latest release:
3313         * support/cpp2/libcpp, support/cpp2/libcpp/include,
3314           support/cpp2/libcpp/include/cpp-id-data.h
3315           support/cpp2/libiberty/fopen_unlocked.c
3316           support/cpp2/libiberty/md5.c
3317           support/cpp2/md5.h
3318           support/cpp2/opt-functions.awk
3319           support/cpp2/opt-gather.awk
3320           support/cpp2/optc-gen.awk
3321           support/cpp2/opth-gen.awk:
3322           added
3323         * support/cpp2/Makefile.in, support/cpp2/auto-host_vc_in.h,
3324           support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3325           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3326           support/cpp2/c-pretty-print.h, support/cpp2/cppdefault.c,
3327           support/cpp2/cppdefault.h, support/cpp2/diagnostic.c,
3328           support/cpp2/diagnostic.h, support/cpp2/except.h,
3329           support/cpp2/hwint.h, support/cpp2/input.h,
3330           support/cpp2/intl.h, support/cpp2/move-if-change,
3331           support/cpp2/opts.c, support/cpp2/opts.h,
3332           support/cpp2/output.h, support/cpp2/prefix.c,
3333           support/cpp2/prefix.h, support/cpp2/pretty-print.c,
3334           support/cpp2/pretty-print.h, support/cpp2/sdcpp-opts.c,
3335           support/cpp2/sdcpp.c, support/cpp2/sdcpp.dsp,
3336           support/cpp2/sdcpp.h, support/cpp2/sdcpp.opt,
3337           support/cpp2/sdcppa.dsp, support/cpp2/symcat.h,
3338           support/cpp2/version.c:
3339           modified
3340         * support/cpp2/libcpp/charset.c, support/cpp2/libcpp/directives.c,
3341           support/cpp2/libcpp/errors.c, support/cpp2/libcpp/expr.c,
3342           support/cpp2/libcpp/files.c, support/cpp2/libcpp/identifiers.c,
3343           support/cpp2/libcpp/include/cpplib.h, support/cpp2/libcpp/include/line-map.h,
3344           support/cpp2/libcpp/include/mkdeps.h, support/cpp2/libcpp/include/symtab.h,
3345           support/cpp2/libcpp/init.c, support/cpp2/libcpp/internal.h,
3346           support/cpp2/libcpp/lex.c, support/cpp2/libcpp/line-map.c,
3347           support/cpp2/libcpp/macro.c, support/cpp2/libcpp/mkdeps.c,
3348           support/cpp2/libcpp/symtab.c, support/cpp2/libcpp/system.h,
3349           support/cpp2/libcpp/traditional.c, support/cpp2/libcpp/ucnid.h,
3350           support/cpp2/libiberty/hashtab.c, support/cpp2/libiberty/hashtab.h:
3351           moved
3352         * support/cpp2/cppcharset.c, support/cpp2/cpperror.c,
3353           support/cpp2/cppexp.c, support/cpp2/cppfiles.c,
3354           support/cpp2/cpphash.c, support/cpp2/cpphash.h,
3355           support/cpp2/cppinit.c, support/cpp2/cpplex.c,
3356           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3357           support/cpp2/cppmacro.c, support/cpp2/cpptrad.c,
3358           support/cpp2/cppucnid.h, support/cpp2/hashtab.c,
3359           support/cpp2/hashtab.h, support/cpp2/hashtable.c,
3360           support/cpp2/hashtable.h, support/cpp2/line-map.c,
3361           support/cpp2/line-map.h, support/cpp2/mkdeps.c,
3362           support/cpp2/mkdeps.h, support/cpp2/options_vc_in.c,
3363           support/cpp2/options_vc_in.h, support/cpp2/opts.sh,
3364           support/cpp2/system.h:
3365           deleted / moved
3366
3367 2006-12-31 Borut Razem <borut.razem AT siol.net>
3368
3369         * configure.in, configure: fixed bug #1538756: configure dies if bison
3370           and flex are not installed, 2nd try
3371
3372 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3373
3374         * src/mcs51/peeph.def: renamed rule 400 to 500, moved rule 253.x to
3375         400.x for better code in RFE 899102
3376
3377 2006-12-30 Bernhard Held <bernhard AT bernhardheld.de>
3378
3379         * src/SDCCpeeph.c (deadMove),
3380         * src/port.h,
3381         * src/mcs51/peep.h: renamed 'op' by 'reg'
3382         * src/mcs51/peep.c (isFunc, isCallerSaveFunc): added,
3383         (scan4op): small change for removeDeadMove(), added support for
3384         'callee saves' and/or PACLL function calls,
3385         (removeDeadMove): added, removes superflous 'mov r%1,%2',
3386         (removeDeadPopPush): renamed from mcs51DeadMove(), common parts
3387         left in new dispatcher mcs51DeadMove()
3388         (mcs51DeadMove): dispatcher for removeDeadPopPush() and new
3389         removeDeadMove()
3390         * src/mcs51/peeph.def: added rule 301 removing superflous 'mov r%1,%2'
3391
3392 2006-12-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3393
3394         * support/cpp2/options_vc_in.h, support/cpp2/options_vc_in.c,
3395           support/cpp2/sdcppa.dsp: create 'options.h' and 'options.c' under MSVC.
3396
3397 2006-12-30 Borut Razem <borut.razem AT siol.net>
3398
3399         * support/cpp2/spacs.h: deleted from svn
3400         * configure.in, configure: fixed bug #1538756: configure dies if bison
3401           and flex are not installed
3402
3403 2006-12-29 Maarten Brock <sourceforge.brock AT dse.nl>
3404
3405         * src/z80/gen.c (assignResultValue): fixed bug when registers overlap,
3406           with this z80 passes printf float test when enabled
3407         * support/regression/tests/bug1057979.c: typo disabled ds390 float test
3408
3409 2006-12-28 Borut Razem <borut.razem AT siol.net>
3410
3411         * support/cpp2/config.in, support/cpp2/configure.in,
3412           support/cpp2/configure, support/cpp2/Makefile.in:
3413           fix for the solaris build
3414
3415 2006-12-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3416
3417         * src/SDCC.y (type_specifier2, pointer),
3418         * src/SDCCsymt.h,
3419         * src/SDCCsymt.c (mergeSpec, checkSClass),
3420         * support/Util/SDCCerr.c,
3421         * support/Util/SDCCerr.h: Parse and validate the restrict keyword
3422         * support/valdiag/valdiag.py: Allow test cases to specify
3423           required language standard
3424         * support/valdiag/tests/restrict.c: New file to test restrict keyword
3425         * support/valdiag/tests/tentdecl.c: Supress empty source file error
3426
3427 2006-12-27 Borut Razem <borut.razem AT siol.net>
3428
3429         * support/cpp2/cppmain.c, support/cpp2/mbchar.[ch]: removed
3430         * support/cpp2/libiberty/Makefile.in, support/cpp2/libiberty/sdcpp.dsp:
3431           mbchar removed
3432         * support/cpp2/libiberty/getpwd.c, support/cpp2/sdcpp.h:
3433           fixed for borland C
3434         * support/cpp2/libiberty/Makefile.bcc: updated
3435         * src/pic16/main.c: fixed #pragma udata handling
3436         * src/mcs51/mcs51.dsp: added peep.[ch] to the project
3437
3438 2006-12-26 Bernhard Held <bernhard AT bernhardheld.de>
3439
3440         * src/SDCCpeeph.c: made labelHashEntry global,
3441         made pcDistance, FBYNAME static,
3442         (pcDistance): made static, use isComment and isLabel,
3443         (deadMove): added,
3444         (getLabelRef): added, extracted from labelRefCount(),
3445         (labelRefCount): use new getLabelRef(),
3446         (callFuncByName): made static, added deadMove,
3447         use isComment and isLabel,
3448         (newPeepRule): made static, set isLabel,
3449         (isLabelDefinition): added parameter isPeepRule to allow '%' in
3450         labels from peephole rules,
3451         (buildLabelRefCountHash): speed up by running isLabelDefinition() only
3452         when isComment or isLabel is set
3453         * src/SDCCpeeph.h: added "isLabel" and "visited" to struct lineNode,
3454         added labelHashEntry, isLabelDefinition, labelHash and getLabelRef
3455         to make them global
3456         * src/mcs51/peep.h: added
3457         * src/mcs51/peep.c: added, implements mcs51DeadMove()
3458         * src/port.h: added peep->deadMove to port structure
3459         * src/mcs51/main.c: initialize peep->deadMove with mcs51DeadMove
3460         * src/mcs51/peeph.def: renumbered rule 300 to 400, added new rule 300
3461         deadMove, finally removed no. 1 and 2
3462         * src/mcs51/gen.c,
3463         * src/pic/gen.c,
3464         * src/z80/gen.c,
3465         * src/z80/ralloc.c,
3466         * src/pic16/gen.c,
3467         * src/ds390/gen.c,
3468         * src/hc08/gen.c: mark lines with isComment or isLabel
3469         * sim/ucsim/s51.src/uc390hw.cc: don't waist 65535 ticks before CKRDY
3470         * .version,
3471         * sdcc.spec: bumped version to 2.6.3
3472
3473 2006-12-26 Borut Razem <borut.razem AT siol.net>
3474
3475         * support/cpp2/Makefile.in: added dependency on options.h
3476         * configure: regenerated
3477         * support/cpp2/sdcpp.opt, support/cpp2/move-if-change: svn:eol-style native
3478         * support/cpp2/Makefile.in: added vasprintf.c
3479
3480 2006-12-25 Borut Razem <borut.razem AT siol.net>
3481
3482         * SDCPP synchronized with GCC CPP release version 3.4.6,
3483           the latest release before 4.x:
3484         * support/cpp2/Makefile.in, support/cpp2/config.h,
3485           support/cpp2/configure, support/cpp2/configure.in,
3486           support/cpp2/cppdefault.c, support/cpp2/cppdefault.h,
3487           support/cpp2/cpperror.c, support/cpp2/cppexp.c,
3488           support/cpp2/cppfiles.c, support/cpp2/cpphash.c,
3489           support/cpp2/cpphash.h, support/cpp2/cppinit.c,
3490           support/cpp2/cpplex.c, support/cpp2/cpplib.c,
3491           support/cpp2/cpplib.h, support/cpp2/cppmacro.c,
3492           support/cpp2/cpptrad.c, support/cpp2/except.h,
3493           support/cpp2/hashtable.c, support/cpp2/hashtable.h,
3494           support/cpp2/hwint.h, support/cpp2/intl.h,
3495           support/cpp2/line-map.c, support/cpp2/line-map.h,
3496           support/cpp2/mkdeps.c, support/cpp2/mkdeps.h,
3497           support/cpp2/output.h, support/cpp2/prefix.c,
3498           support/cpp2/prefix.h, support/cpp2/sdcpp.dsp,
3499           support/cpp2/system.h, support/cpp2/version.c:
3500           modified
3501         * support/cpp2/c-incpath.c, support/cpp2/c-incpath.h,
3502           support/cpp2/c-ppoutput.c, support/cpp2/c-pretty-print.c,
3503           support/cpp2/c-pretty-print.h, support/cpp2/cppcharset.c,
3504           support/cpp2/cppucnid.h, support/cpp2/diagnostic.c,
3505           support/cpp2/diagnostic.def, support/cpp2/diagnostic.h,
3506           support/cpp2/hashtab.c, support/cpp2/hashtab.h,
3507           support/cpp2/input.h, support/cpp2/libiberty/getpwd.c,
3508           support/cpp2/libiberty/vasprintf.c, support/cpp2/libiberty/xmemdup.c,
3509           support/cpp2/move-if-change, support/cpp2/opts.c,
3510           support/cpp2/opts.h, support/cpp2/opts.sh,
3511           support/cpp2/pretty-print.c, support/cpp2/pretty-print.h,
3512           support/cpp2/sdcpp.opt, support/cpp2/sdcpp-opts.c,
3513           support/cpp2/win32, support/cpp2/win32/dirent.c,
3514           support/cpp2/win32/dirent.h:
3515           added
3516         * support/cpp2/sdcpp.c: renamed from sdcppmain.c
3517         * support/cpp2/sdcpp.h: renamed from sdcc.h
3518         * sdcppinit.c: deleted
3519
3520 2006-12-23 Borut Razem <borut.razem AT siol.net>
3521
3522         * support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3523           support/cpp2/cpplib.[ch], support/cpp2/sdcppinit.c, doc/sdccman.lyx,
3524           preproc.c: an other try to fix bug #982435: introduced
3525           -pedantic-parse-number command line option and pedantic_parse_number
3526           pragma
3527
3528 2006-12-21 Maarten Brock <sourceforge.brock AT dse.nl>
3529
3530         * as/link/mcs51/lkarea.c (lnkarea2): handle absolute areas, restructured
3531            BSEG handling,
3532           (lnksect2): use --data-loc and --idata-loc as lower bound for ramstart,
3533            corrected overlayed areax addresses, warn about memory overlaps
3534         * as/mcs51/asmain.c (asmbl): create a new area for every .org directive
3535         * src/avr/main.c,
3536         * src/ds390/main.c,
3537         * src/hc08/main.c,
3538         * src/mcs51/main.c,
3539         * src/pic16/main.c,
3540         * src/pic/main.c,
3541         * src/xa51/main.c,
3542         * src/z80/main.c,
3543         * src/port.h: added xabs_name and iabs_name
3544         * src/SDCCglue.c (emitRegularMap): allocate for absolutes with initializer
3545           (glue, emitMaps): create and emit maps d_abs and i_abs
3546         * src/SDCCglue.h: cosmetic changes
3547         * src/SDCCmain.c (setDefaultOptions): idata can start below 0x80
3548         * src/SDCCmem.h,
3549         * src/SDCCmem.c (initMem): added x_abs, i_abs and d_abs
3550           (allocDefault): put absolute, initialized globals in them
3551         * support/regression/tests/absolute.c: added absolute bdata test
3552         * device/lib/printf_large.c (output_float): moved fpBuffer to stack/xdata
3553
3554 2006-12-20 Borut Razem <borut.razem AT siol.net>
3555
3556         * support/cpp2/cpphash.h, support/cpp2/cpplex.c: fixed bug #982435
3557         * support/regression/tests/preproc.c: renamed from bug-1351710.c,
3558           added regression test for bug #982435
3559
3560 2006-12-18 Borut Razem <borut.razem AT siol.net>
3561
3562         * src/SDCCutil.c: fixed a bug in (get_pragma_token)
3563         * src/pic16/main.c, src/SDCC.lex, src/z80/main.c:
3564           small cosmetic changes
3565         * src/SDCC.lex: (stringLiteral) fixed bug #1351710
3566         * support/regression/tests/bug-1351710.c: added regression test
3567
3568 2006-12-18 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3569
3570         * doc/sdccman.lyx: added the long missed iCode table
3571           "<where is figure II?>", added links to wiki
3572
3573 2006-12-17 Borut Razem <borut.razem AT siol.net>
3574
3575         * doc/sdccman.lyx, src/pic16/main.c, src/pic/main.c, src/port.h,
3576           src/SDCC.lex, src/SDCCutil.[ch], src/z80/main.c,
3577           support/Util/SDCCerr.[ch]: removed deprecated pragmas,
3578           unified table driven pragma handling, pragma argument type checking
3579         * support/Util/dbuf.c: (dbuf_set_size) allow to set size equal to the
3580           current one - version 1.1.3
3581         * src/SDCCmain.c: (setParseWithComma) substituted brain damaged strtok
3582
3583 2006-12-13 Raphael Neider <rneider AT web.de>
3584
3585         * src/pic/device.h: removed AssignedMemory structure and macros
3586         * src/pic/device.c: removed global finalMapping (linker assigns
3587             memory locations),
3588           (register_map): add SFRs to remembered memRanges
3589           (addMemRange,isSFR,dump_map,dump_sfr,mapRegister,assignRegister,
3590           assignFixedRegisters,assignRelocatableRegisters): removed,
3591           (setMaxRAM,validAddress): adapted accordingly,
3592           (pic14_hasSharebank,pic14_getSharedStack): only report and use
3593             reasonably sized sharebanks,
3594         * src/pic/ralloc.c (writeUsedRegs): stripped down (remove?),
3595           (allDefsOutOfRange): removed unused code,
3596         * src/pic/main.c (_process_pragma): removed memmap/maxram pragma
3597             handling
3598         * src/pic/pcode.c (register_reassign): removed recursion warning,
3599             fired far too often,
3600         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap): modified
3601             to use existing pic14_stringInSet() to avoid duplicate symbols,
3602             tidied up the code a bit,
3603           (pic14printLocals): added in symmetry to printExterns, replaces
3604             writeUsedRegs more or less,
3605           (picglue): call new pic14_printLocals(),
3606         * device/include/pic/pic*.h: removed #pragma memmap directives,
3607             information gathered from include/pic/pic14devices.txt
3608         * support/scripts/inc2h.pl: do not emit #pragma memmap lines
3609
3610 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3611
3612         * device/include/mcs51/C8051F520.h: fixed buggy CPT0MX
3613
3614 2006-12-11 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3615
3616         * device/include/mcs51/cc2430.h: fixed missing ';'
3617
3618 2006-12-10 Raphael Neider <rneider AT web.de>
3619
3620         * device/lib/pic16/libc/stdio/vfprintf.c,
3621         * device/lib/pic16/libc/stdio/printf_small.c,
3622         * device/lib/pic16/libc/stdio/printf_timy.c: pop int from stack for
3623           char arguments, as char varargs are cast to int by the caller,
3624           hopefully fixes #1604915 (other device libraries are still affected)
3625
3626 2006-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3627
3628         * src/mcs51/ralloc.c (packRegsForAssign),
3629         * src/hc08/ralloc.c (packRegsForAssign): fixed bug #1605880
3630
3631 2006-12-10 Maarten Brock <sourceforge.brock AT dse.nl>
3632
3633         * device/include/malloc.h: removed init_dynamic_memory
3634         * device/lib/malloc.c: made init_dynamic_memory static and automatically
3635           call it once from malloc. Also use _sdcc_heap[] from _heap.c
3636         * device/lib/_heap.c: new, added, contains _sdcc_heap[]
3637         * device/lib/libsdcc.lib,
3638         * device/lib/Makefile.in,
3639         * support/regression/ports/mcs51-xstack-auto/spec.mk: added _heap.c
3640         * doc/sdccman.lyx: documented use of new _heap.c
3641         * support/regression/tests/malloc.c: removed init_dynamic_memory
3642         * src/cdbFile.c(spacesToUnderscores): new function,
3643           (cdbWriteEndFunction, cdbWriteCLine): use spacesToUnderscores, fixes bug
3644           1068030
3645         * device/include/tinibios.h: removed defines for putchar and getchar
3646         * device/lib/ds390/Makefile.in: added putchar.c
3647         * device/lib/ds390/putchar.c: new, added, fixes bug 1465671
3648
3649 2006-12-09 Borut Razem <borut.razem AT siol.net>
3650
3651         * support/cpp2/sdcc.h: prevent multiple inclusion
3652         * support/cpp2/options.h: deleted
3653
3654 2006-12-08 Borut Razem <borut.razem AT siol.net>
3655
3656         * support/cpp2/sdcc.h: removed x*alloc() macros
3657         * support/cpp2/libiberty.h: uncommented out x*alloc() declarations
3658         * support/cpp2/Makefile.bcc, support/cpp2/Makefile.in,
3659           support/cpp2/sdcpp.sdc: x*alloc files added to the project
3660         * support/cpp2/system.h: moved #include "sdcc.h"
3661         * support/cpp2/libiberty/xexit.c, support/cpp2/libiberty/xmalloc.c,
3662           support/cpp2/libiberty/xstrdup.c, support/cpp2/libiberty/xstrerror.c:
3663           added
3664         * support/cpp2/sdcppinit.c: added -isysroot, -fsigned-char,
3665           -funsigned-char options
3666         * support/cpp2/sdcppmain.c: fixed bug 1611411
3667
3668 2006-12-07 Borut Razem <borut.razem AT siol.net>
3669
3670         * support/cpp2/cpplib.c: reverted sdcpp special handling of _Pragma()
3671           directive
3672
3673 2006-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
3674
3675         * src/SDCCsymt.c (addDecl): fixed bug 1609244
3676         * src/SDCCmain.c (linkEdit): fixed bug 1609279
3677         * doc/sdccman.lyx,
3678         * .version: bumped to 2.6.2 because a) it's been a while
3679           b) the linker sources have moved c) the preprocessor is upgraded
3680
3681 2006-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3682
3683         * support/regression/tests/snprintf.c: some checks
3684         * lib/src/printf_large.c: %bc: read char instead of int from stack
3685
3686 2006-12-03 Maarten Brock <sourceforge.brock AT dse.nl>
3687
3688         * device/include/mcs51/cc2430.h: inserted _XPAGE
3689
3690 2006-12-02 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3691
3692         * device/include/mcs51/cc2430.h: added
3693
3694 2006-12-02 Maarten Brock <sourceforge.brock AT dse.nl>
3695
3696         * device/include/asm/default/features.h,
3697         * device/include/asm/ds390/features.h,
3698         * device/include/mcs51/at89s53.h,
3699         * device/include/ser.h,
3700         * device/include/ser_ir.h,
3701         * device/include/serial.h: changed keywords to double underscore variants,
3702           fixes bug 1590261 some more, thanks Steven Borley
3703
3704 2006-12-01 Raphael Neider <rneider AT web.de>
3705
3706         * src/pic/pcode.c (register_reassign): do not crash on recursive code
3707           but emit warning (recursion is not supported for pic14)
3708
3709 2006-11-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3710
3711         * src/mcs51/peeph.def: added 101.a,b (moves to int/long xdata)
3712         * doc/sdccman.lyx: various small changes, acknowledged Sourceforge
3713
3714 2006-11-30 Raphael Neider <rneider AT web.de>
3715
3716         * src/pic/device.c (dump_sfr): always emit symbols
3717         * src/pic/glue.c (pic14printPublics): fixed typo
3718
3719 2006-11-30 Raphael Neider <rneider AT web.de>
3720
3721         * src/pic/device.c (create_pic,ram_map): add memRange entries to PIC
3722           (pic14_getSharebankSize, pic14_getSharebankAddress): replaced with
3723           (pic14_hasSharebank,pic14_isShared,pic14_allRAMShared,
3724            pic14_getSharedStack): NEW, evaluate the memRange entries to locate
3725            a sharebank, use a non-shared bank for the stack if none available
3726         * src/pic/device.h (struct memRange): added linked list next field,
3727           added prototypes for above functions
3728         * src/pic/ralloc.c (initStack): handle shared and banked stacks,
3729           (typeRegWithIdx): accept fixed and unfixed stack registers
3730         * src/pic/pcode.c (pCodeInitRegisters): use new functions to create
3731           the stack, handle shared and banked stack (except for WSAVE),
3732           (insertBankSel): removed useless optimization (will never fire),
3733           (FixRegisterBanking): added optimization for devices with only one
3734           possibly aliased bank of memory, like 16f84
3735         * src/pic/glue.c (pic14_constructAbsMap): back to udata_ovr, as some
3736           devices have no SHAREBANK in the linker script
3737         * device/include/pic/pic14devices.txt: documented memmap
3738         * device/lib/pic/libdev/Makefile.in: removed --stack-loc again
3739
3740 2006-11-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3741
3742         * src/hc08/gen.c (transferRegReg, loadRegFromAop, forceStackedAop,
3743           storeRegToAop, freeAsmop, genPlusIncr, genPlus, genPointerGetSetOfs,
3744           genAnd, genOr, genXor, genLeftShiftLiteral, genRightShiftLiteral,
3745           genhc08Code): switched most of the D (debug) macros to DD (detailed
3746           debug) macros to better control clutter in the generated .asm file.
3747         * src/hc08/gen.c: (forceStackedAop, genUminus, genLeftShift,
3748           genRightShift): fixed bug with non-constant bit shift stored to
3749           a volatile result (SF Open Discussion forum thread #1616749).
3750           Single byte case is not yet optimized.
3751
3752 2006-11-28 Maarten Brock <sourceforge.brock AT dse.nl>
3753
3754         * device/include/asm/mcs51/features.h,
3755         * device/include/malloc.h,
3756         * device/include/stdio.h: changed keywords to double underscore variants,
3757           fixes bug 1590261
3758
3759 2006-11-27 Borut Razem <borut.razem AT siol.net>
3760
3761         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3762           support/cpp2/Makefile.in, support/cpp2/cppfiles.c,
3763           support/cpp2/output.h, support/cpp2/cppinit.c,
3764           support/cpp2/cpplib.c, support/cpp2/cpplib.h,
3765           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3766           support/cpp2/cppdefault.c, support/cpp2/system.h,
3767           support/cpp2/cpphash.h, support/cpp2/cpplex.c,
3768           support/cpp2/cppdefault.h, support/cpp2/mbchar.c,
3769           support/cpp2/prefix.c, support/cpp2/except.h,
3770           support/cpp2/hwint.h, support/cpp2/cppmacro.c,
3771           support/cpp2/line-map.h, support/cpp2/sdcpp.dsp,
3772           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3773           support/cpp2/version.c, support/cpp2/cppmain.c,
3774           support/cpp2/version.h, support/cpp2/hashtable.c,
3775           support/cpp2/cpperror.c:
3776           synchronized with GCC CPP release version 3.3.6,
3777           the latest where cppmain.c still exists.
3778         * support/cpp2/cpptrad.c, support/cpp2/sdcppmain.c,
3779           support/cpp2/sdcppinit.c: added
3780
3781 2006-11-27 Borut Razem <borut.razem AT siol.net>
3782
3783         * support/cpp2/cpplex.c:
3784           fixed _asm ... _endasm handling bug, introduce with GCC CPP
3785           synchronization
3786         * support/cpp2/cpplib.c: removed definitions of unused variables
3787
3788 2006-11-26 Borut Razem <borut.razem AT siol.net>
3789
3790         * support/cpp2/libiberty.h: commented out x*alloc() declarations
3791           since they are redefined by macros in support/cpp2/sdcc.h
3792         * support/cpp2/sdcc.h: x*alloc macro redefinition
3793
3794 2006-11-25 Borut Razem <borut.razem AT siol.net>
3795
3796         * support/cpp2/cppexp.c, support/cpp2/hashtable.h,
3797           support/cpp2/configure, support/cpp2/Makefile.in,
3798           support/cpp2/cppfiles.c, support/cpp2/output.h,
3799           support/cpp2/cppinit.c, support/cpp2/cpplib.c,
3800           support/cpp2/config.h, support/cpp2/cpplib.h,
3801           support/cpp2/Makefile.bcc, support/cpp2/cpphash.c,
3802           support/cpp2/cppdefault.c, support/cpp2/config.in,
3803           support/cpp2/system.h, support/cpp2/cpplex.c,
3804           support/cpp2/cpphash.h, support/cpp2/mbchar.c,
3805           support/cpp2/cppdefault.h, support/cpp2/prefix.c
3806           support/cpp2/hwint.h, support/cpp2/mbchar.h,
3807           support/cpp2/prefix.h, support/cpp2/cppmacro.c,
3808           support/cpp2/configure.in, support/cpp2/intl.h,
3809           support/cpp2/sdcpp.dsp, support/cpp2/acconfig.h,
3810           support/cpp2/sdcc.h, support/cpp2/mkdeps.c,
3811           support/cpp2/version.c, support/cpp2/cppmain.c,
3812           support/cpp2/ansidecl.h, support/cpp2/libiberty.h,
3813           support/cpp2/hashtable.c, support/cpp2/aclocal.m4,
3814           support/cpp2/cpperror.c,
3815           support/cpp2/libiberty/safe-ctype.c,
3816           support/cpp2/libiberty/safe-ctype.h,
3817           support/cpp2/libiberty/splay-tree.c,
3818           support/cpp2/libiberty/obstack.c,
3819           support/cpp2/libiberty/lbasename.c,
3820           support/cpp2/libiberty/splay-tree.h,
3821           support/cpp2/libiberty/obstack.h:
3822           synchronized with GCC CPP release version 3.2.3,
3823           the latest before integration of cpp into gcc
3824         * support/cpp2/except.h, support/cpp2/line-map.c,
3825           support/cpp2/line-map.h,
3826           support/cpp2/libiberty/hex.c,
3827           support/cpp2/libiberty/concat.c,
3828           support/cpp2/libiberty/filenames.h: added
3829         * support/cpp2/intl.c: deleted
3830
3831 2006-11-24 Borut Razem <borut.razem AT siol.net>
3832
3833         * src/SDCC.y: enabled compilation of empty source file
3834         * support/Util/SDCCerr.[ch]: added sdcc warning 190 -
3835           "ISO C forbids an empty source file"
3836         * device/lib/_startup.c, device/lib/printf_tiny.c: disable warning 190
3837           if all the code is ifdefed out.
3838
3839 2006-11-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3840
3841         * src/hc08/gen.c (genPcall): fix for bug #1601032
3842
3843 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3844
3845         * device/include/mcs51/c8051f000.h, device/include/mcs51/C8051F000.h,
3846         * device/include/mcs51/c8051f018.h, device/include/mcs51/C8051F018.h,
3847         * device/include/mcs51/c8051f020.h, device/include/mcs51/C8051F020.h,
3848         * device/include/mcs51/c8051f040.h, device/include/mcs51/C8051F040.h,
3849         * device/include/mcs51/c8051f060.h, device/include/mcs51/C8051F060.h,
3850         * device/include/mcs51/c8051f120.h, device/include/mcs51/C8051F120.h,
3851         * device/include/mcs51/c8051f200.h, device/include/mcs51/C8051F200.h,
3852         * device/include/mcs51/c8051f300.h, device/include/mcs51/C8051F300.h,
3853         * device/include/mcs51/c8051f310.h, device/include/mcs51/C8051F310.h,
3854         * device/include/mcs51/c8051f320.h, device/include/mcs51/C8051F320.h,
3855         * device/include/mcs51/c8051f326.h, device/include/mcs51/C8051F326.h,
3856         * device/include/mcs51/c8051f330.h, device/include/mcs51/C8051F330.h,
3857         * device/include/mcs51/c8051f340.h, device/include/mcs51/C8051F340.h,
3858         * device/include/mcs51/c8051f350.h, device/include/mcs51/C8051F350.h,
3859         * device/include/mcs51/c8051f410.h, device/include/mcs51/C8051F410.h:
3860           Renamed to all upper case as per the standard set by SiLabs
3861
3862 2006-11-23 Maarten Brock <sourceforge.brock AT dse.nl>
3863
3864         * device/include/mcs51/C8051F520.h: new, added
3865         * device/include/mcs51/compiler.h: added link about predefined macros
3866
3867 2006-11-23 Raphael Neider <rneider AT web.de>
3868
3869         * src/regression/Makefile: add -L path to fresh library
3870         * src/regression/simulate: emphasize FAILED output
3871         * src/regression/create_stc: output _failures from gpsim
3872         * src/regression/compare4.c,
3873         * src/regression/rotate6.c: fixed char literals,
3874           all compile, all run =8-D
3875
3876         * src/pic/pcode.h: added isPCASMDIR macro
3877         * src/pic/gen.c (genAnd): fixed bit offset
3878         * src/pic/ralloc.c (allocNewDirReg,allocDirReg,allocRegByName,
3879           packBits): unified register numbering schemes,
3880           (newReg): do not insert stack registers into hash table,
3881           (initStack): unpinned pseudo stack, simplified,
3882           (typeRegWithIdx): fixed retrieval of stack registers,
3883         * src/pic/pcode.c (addpCodeComment,sameBank): added,
3884           (pCodeReplace): removed invalid assertion,
3885           (insertPCodeInstruction): fixed newly added labels,
3886           (insertBankSwitch,BankSelect,IsBankChange,DoBankSelect,
3887           FixRegisterBankingInFlow,compareBankFlow,FixBankFlow,
3888           DumpFlow): removed unsed (broken?) code,
3889           (insertBankSel): prevent STATUS from being BANKSELed,
3890           (FixRegisterBanking): rewritten from scratch, implemented generic
3891             optimizations (suppress BANKSELs to same register and to registers
3892             present in all banks),
3893           (AnalyzeBanking): update flow after BANKSELection
3894
3895         * src/pic/glue.c (pic14_constructAbsMap): emit pseudo stack in
3896             sharebank, let linker place it, mark STKxx symbols as emitted
3897
3898 2006-11-21 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3899
3900         * src/regression/arrays.c,
3901         * src/regression/bank1.c,
3902         * src/regression/bool2.c,
3903         * src/regression/compare7.c,
3904         * src/regression/compare8.c,
3905         * src/regression/compare9.c,
3906         * src/regression/compare10.c,
3907         * src/regression/configword.c,
3908         * src/regression/for.c,
3909         * src/regression/mult1.c,
3910         * src/regression/pointer1.c,
3911         * src/regression/rotate6.c,
3912         * src/regression/string1.c,
3913         * src/regression/struct1.c,
3914         * src/regression/Makefile: make PIC14 regression tests run again
3915           (3 fail, 6 won't compile)
3916
3917 2006-11-21 Raphael Neider <rneider AT web.de>
3918
3919         * device/include/pic16/pic18f4550.h,
3920         * device/include/pic16/pic18f4455.h,
3921         * device/lib/pic16/libdev/pic18f4550.c,
3922         * device/lib/pic16/libdev/pic18f4455.c: fixed #1578591 and #1595144
3923         * configure.in: removed superfluous closing bracket
3924
3925 2006-11-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3926
3927         * device/lib/expf.c: Fixed bug 1599523: result of expf(x) is
3928           always positive.
3929
3930 2006-11-21 Raphael Neider <rneider AT web.de>
3931
3932         * src/pic/device.{c,h}: added pic14_getPIC()
3933         * src/pic/gen.c (continueIfTrue,jumpIfTrue): added PIC code,
3934           (genAnd): added PIC code for one case, fixes #1597044
3935         * src/pic/pcode.c (BankSelect): Ohoh, added generic optimization for
3936           SFRs that are present in all banks (e.g., STATUS)
3937
3938 2006-11-20 Raphael Neider <rneider AT web.de>
3939
3940         * src/pic/pcode.c: changed inverted ops for DECFSZ/DECFSZW and
3941           INCFSZ/INCFSZW and declared them as changing Z bit,
3942           (insertPCodeInstruction): correctly invert the above instructions,
3943           fixes #1599333,
3944           (DoBankSelect): don't panic on po_immediates
3945
3946 2006-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3947
3948         * as/link/aslink.h,
3949         * as/link/mcs51/lkihx.c (newArea),
3950         * as/link/mcs51/lkrloc.c: renamed newArea() to ihxNewArea()
3951         * as/link/mcs51/lkihx.c (ihx): output reset vector as start address
3952
3953 2006-11-11 Raphael Neider <rneider AT web.de>
3954
3955         * src/pic/pcode.c (newpCodeOpBit): search SymbolTab for referenced
3956           bitfield symbols, fixes #1579535 (once more...).
3957
3958 2006-11-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3959
3960         * support/regression/generate-cases.py,
3961         * support/regression/fwk/include/testfwk.h,
3962         * support/regression/fwk/lib/testfwk.c: used code pointers,
3963           (about 50kByte less code generated for mcs51)
3964
3965 2006-11-06 Borut Razem <borut.razem AT siol.net>
3966
3967         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3968           debugger/mcs51/configure: fixed failed check because the function
3969           rl_function_of_keyseq isn't in Readline 5.2. Thanks to Ilya Goldberg
3970           who submitted the patch for gpsim.
3971         * debugger/mcs51/configure.in: removed the result message
3972         * debugger/mcs51/Makefile.in: fixed the config.status warning
3973           "... seems to ignore the --datarootdir setting"
3974
3975 2006-11-03 Maarten Brock <sourceforge.brock AT dse.nl>
3976
3977         * device/include/mcs51/c8051f020.h,
3978         * device/include/mcs51/c8051f040.h,
3979         * device/include/mcs51/c8051f060.h,
3980         * device/include/mcs51/c8051f120.h: added PS0, fixed bug 1589279
3981         * src/z80/gen.c (gencjneshort),
3982         * src/z80/peeph.def: applied patch 1571373, thanks Philipp Krause
3983
3984 2006-10-31 Borut Razem <borut.razem AT siol.net>
3985
3986         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3987           debugger/mcs51/configure: get readline version
3988
3989 2006-10-30 Borut Razem <borut.razem AT siol.net>
3990
3991         * debugger/mcs51/sdcdb.c: replaced hardcoded "/" with DIR_SEPARATOR_STRING
3992         * debugger/mcs51/acinclude.m4, debugger/mcs51/aclocal.m4,
3993           debugger/mcs51/configure: locate readline even when cross compiling
3994         * support/scripts/sdcc.nsi: include readline5.dll into the setup package
3995
3996 2006-10-29 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
3997
3998         * device/include/mcs51/serial_IO.h: putchar() and getchar() using
3999           serial port.
4000
4001 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4002
4003         * device/include/malloc.h,
4004         * device/lib/calloc.c,
4005         * device/lib/free.c,
4006         * device/lib/malloc.c,
4007         * device/lib/realloc.c: moved definition of struct into sources
4008         * support/regression/tests/malloc.c: use void* for init_dynamic_memory()
4009
4010 2006-10-29 Maarten Brock <sourceforge.brock AT dse.nl>
4011
4012         * as/asx8051.dsp: corrected output directories
4013         * as/link/hc08: new directory for hc08 linker
4014         * as/hc08/aslink.h,             as/link/aslink.h,
4015         * as/hc08/aslink.mak,           as/link/hc08/aslink.mak,
4016         * as/hc08/clean.mk,             as/link/hc08/clean.mk,
4017         * as/hc08/link_hc08.dsp,        as/link/hc08/link_hc08.dsp,
4018         * as/hc08/lkaomf51.c,           as/link/hc08/lkaomf51.c,
4019         * as/hc08/lkarea.c,             as/link/hc08/lkarea.c,
4020         * as/hc08/lkdata.c,             as/link/hc08/lkdata.c,
4021         * as/hc08/lkelf.c,              as/link/hc08/lkelf.c,
4022         * as/hc08/lkihx.c,              as/link/hc08/lkihx.c,
4023         * as/hc08/lklibr.c,             as/link/hc08/lklibr.c,
4024         * as/hc08/lkmain.c,             as/link/hc08/lkmain.c,
4025         * as/hc08/lkmem.c,              as/link/hc08/lkmem.c,
4026         * as/hc08/lkrloc.c,             as/link/hc08/lkrloc.c,
4027         * as/hc08/lks19.c,              as/link/hc08/lks19.c,
4028         * as/hc08/Makefile.aslink,      as/link/hc08/Makefile.aslink,
4029         * as/hc08/Makefile.bcc,         as/link/hc08/Makefile.bcc,
4030         * as/hc08/Makefile.in,          as/link/hc08/Makefile.in,
4031         * as/link/hc08/conf.mk,
4032         * configure,
4033         * configure.in,
4034         * Makefile.in,
4035         * sdcc.dsw: moved hc08 linker to as/link/hc08
4036         * as/hc08/lkeval.c,     as/link/mcs51/lkeval.c,     as/link/lkeval.c,
4037         * as/hc08/lkhead.c,     as/link/mcs51/lkhead.c,     as/link/lkhead.c,
4038         * as/hc08/lklex.c,      as/link/mcs51/lklex.c,      as/link/lklex.c,
4039         * as/hc08/lklist.c,     as/link/mcs51/lklist.c,     as/link/lklist.c,
4040         * as/hc08/lknoice.c,    as/link/mcs51/lknoice.c,    as/link/lknoice.c,
4041         * as/hc08/lksym.c,      as/link/mcs51/lksym.c,      as/link/lksym.c,
4042         * as/link/mcs51/aslink.dsp,
4043         * as/link/mcs51/Makefile.in: factored out the common files
4044         * as/hc08/lkstore.c: deleted, use the one already in as/link/
4045         * as/clean.mk: extra cleaning common files
4046         * as/link/mcs51/strcmpi.c,      as/strcmpi.c: moved
4047         * as/link/mcs51/strcmpi.h: deleted, moved protoype to aslink.h
4048         * as/mcs51/asm.h: include sdccconf.h or sdcc_vc.h
4049
4050 2006-10-29 Raphael Neider <rneider AT web.de>
4051
4052         * src/pic/ralloc.c (newReg): create aliases for registers with
4053           multiple names to fix #1579535 and #1584001,
4054           (regWithIdx,dirregWithName): resolve aliases on lookup
4055         * src/pic/pcode.c (DoBankSelect): die with error message on failing
4056           bankselect
4057         * device/lib/pic/libdev/Makefile.in: move pseudo stack down to 0x4f
4058           to prevent build errors on small devices
4059
4060 2006-10-28 Raphael Neider <rneider AT web.de>
4061
4062         * src/pic/gen.c (genFunction,genCall): drop "same code page"
4063           assumption within interrupt handlers, fixes #1584940
4064         * src/pic/glue.c (pic14_constructAbsMap): mark absolute symbols as
4065           "emitted" to avoid emitting them again in udata
4066
4067 2006-10-27 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4068
4069         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4070         Removed.
4071
4072 2006-10-26 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4073
4074         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c:
4075         Initialize uart only if SM0 and SM1 are zero.  Also, use flag to turn
4076         on/off CR to CRLF conversion.
4077
4078 2006-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4079
4080         * doc/sdccman.lyx: updated IRQ section
4081
4082 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4083
4084         * device/lib/serial_io.c: removed
4085         * device/lib/_putchar.c, device/lib/_getchar.c, device/lib/inituart.c
4086         replacements for serial_io.c
4087
4088 2006-10-24 Maarten Brock <sourceforge.brock AT dse.nl>
4089
4090         * src/z80/main.c (_process_pragma, _parseOptions): fixed bug 1583318
4091
4092 2006-10-24 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4093
4094         * device/lib/serial_io.c: Default putchar() and getchar() for
4095           mcs51 uses serial port.
4096
4097 2006-10-23 Maarten Brock <sourceforge.brock AT dse.nl>
4098
4099         * src/mcs51/gen.c (movc): improved check for 0 and 1, see RFE 1582704
4100
4101 2006-10-23 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4102
4103         * support/regression/ports/mcs51/support.c: smaller
4104         _sdcc_external_startup()
4105         * device/lib/mcs51/crtxclear.asm: don't check high byte of l_PSEG
4106
4107 2006-10-20 Maarten Brock <sourceforge.brock AT dse.nl>
4108
4109         * device/lib/gbz80/crt0.s,
4110         * device/lib/gbz80/crt0_rle.s,
4111         * device/lib/gbz80/div.s,
4112         * device/lib/gbz80/fstubs.s,
4113         * device/lib/gbz80/heap.s,
4114         * device/lib/gbz80/mul.s,
4115         * device/lib/gbz80/putchar.s,
4116         * device/lib/gbz80/stubs.s,
4117         * device/lib/z80/crt0.s,
4118         * device/lib/z80/crt0_rle.s,
4119         * device/lib/z80/div.s,
4120         * device/lib/z80/fstubs.s,
4121         * device/lib/z80/heap.s,
4122         * device/lib/z80/mul.s,
4123         * device/lib/z80/putchar.s,
4124         * device/lib/z80/stubs.s: reverted, I was mistaken
4125
4126 2006-10-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4127
4128         * src/mcs51/peeph.def: peephole 238.x added check for notvolatile
4129         * support/regression/ports/mcs51/support.c: removed race
4130         condition on TI in _putchar allowing to use serial port mode 0
4131
4132 2006-10-20 Borut Razem <borut.razem AT siol.net>
4133
4134         * debugger/mcs51/sdcdb.c: replaced isblank() with isspace()
4135
4136 2006-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4137
4138         * device/lib/gbz80/crt0.s,
4139         * device/lib/gbz80/crt0_rle.s,
4140         * device/lib/gbz80/div.s,
4141         * device/lib/gbz80/fstubs.s,
4142         * device/lib/gbz80/heap.s,
4143         * device/lib/gbz80/mul.s,
4144         * device/lib/gbz80/putchar.s,
4145         * device/lib/gbz80/stubs.s,
4146         * device/lib/z80/crt0.s,
4147         * device/lib/z80/crt0_rle.s,
4148         * device/lib/z80/div.s,
4149         * device/lib/z80/fstubs.s,
4150         * device/lib/z80/heap.s,
4151         * device/lib/z80/mul.s,
4152         * device/lib/z80/putchar.s,
4153         * device/lib/z80/stubs.s: removed all leading underscores from area names
4154
4155 2006-10-17 Maarten Brock <sourceforge.brock AT dse.nl>
4156
4157         * support/regression/ports/mcs51/support.c: use highest baudrate so the
4158           regression tests are not waiting in the simulator for simulated
4159           transmission of debug output
4160
4161 2006-10-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4162
4163         * device/lib/printf_large.c: slightly smaller
4164         * doc/sdccman.lyx: do not use spaces within html links
4165
4166 2006-10-16 Borut Razem <borut.razem AT siol.net>
4167
4168         * configure.in, configure, sdccconf_in.h, src/SDCCglobal,
4169           debugger/mcs51/Makefile.in, debugger/mcs51/sdcdb.[ch],
4170           debugger/mcs51/aclocal.m4, debugger/mcs51/acinclide.m4,
4171           debugger/mcs51/config.h.in, debugger/mcs51/configure.in,
4172           debugger/mcs51/configure:
4173           [ 1185668 ] add gnu readline support to sdcdb - enabled
4174
4175 2006-10-16 Raphael Neider <rneider AT web.de>
4176
4177         * src/pic/pcode.c (BankSelect): another fix on (partial) BANKSELs,
4178           fixes #1577882, removes close to all banking optimizations
4179
4180 2006-10-15 Maarten Brock <sourceforge.brock AT dse.nl>
4181
4182         * src/SDCCsymt.c (checkSClass): no error for uninitialised absolute
4183           variables in code memory
4184         * support/regression/tests/absolute.c: added test for this
4185
4186 2006-10-15 Raphael Neider <rneider AT web.de>
4187
4188         * src/pic/pcode.c (InsertBankSel): suppress BANKSELs for one bank
4189           devices,
4190           (BankSelect): emit BANKSEL before touching linker-placed regs,
4191           fixes #1570934
4192
4193 2006-10-10 Raphael Neider <rneider AT web.de>
4194
4195         * src/SDCCmain.c (optionsTable): accept --stack-size for PICs,
4196         * src/pic/device.c (pic14_getSharebankSize,pic14_getSharebankAddress),
4197         * src/pic/main.c (_pic14_parseOptions),
4198         * src/pic/main.h: mostly reverted to previous state, now use results
4199             from SDCCmain.c's argument parsing
4200
4201 2006-10-10 Borut Razem <borut.razem AT siol.net>
4202
4203         * debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
4204           debugger/mcs51/sdcdb.[ch], debugger/mcs51/simi.c:
4205           [ 1185668 ] add gnu readline support to sdcdb -
4206           prepared for READLINE, not enabled yet,
4207           thanks to <tal.bav AT gmail.com>
4208
4209 2006-10-10 Raphael Neider <rneider AT web.de>
4210
4211         * src/pic16/pcode.c (pic16_pCode2str): use isACCESS_BANK macro
4212         * src/pic16/devices.inc,
4213         * device/include/pic16 (pic18f[24]620.h),
4214         * device/include/pic18fregs.h,
4215         * device/lib/pic16/pics.all,
4216         * device/lib/pic16/libdev/pic18f[24]{620,525}.c): added support for
4217             18f2620, 18f4620, 18f2525, and 18f4525 devices, thanks to
4218             Gary Plumbridge and Anton Strobl
4219
4220 2006-10-10 Raphael Neider <rneider AT web.de>
4221
4222         * src/pic/main.c (_pic14_parseOptions): added --stack-loc=NUM and
4223           --stack-siz=NUM options to configure the argument passing stack
4224         * src/pic/main.h: added stackLocation and stackSize to pic14_options_t
4225         * src/pic/device.c (mapRegister): catch out-of-memory SIGSEGVs,
4226           (pic14_getSharebankSize): obey --stack-siz=NUM,
4227           (pic14_getSharebankAddress): obey --stack-loc=NUM
4228
4229 2006-10-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4230
4231         * doc/sdccman.lyx: added to the manual
4232         * doc/figures/ddd_example.png: added (neither pdflatex nor
4233         most browsers seem to like the .eps file)
4234
4235 2006-10-06 Bernhard Held <bernhard AT bernhardheld.de>
4236
4237         * src/SDCCglue.c (tempfileandname): changed un*x tmp search paths
4238         to /tmp and /var/tmp acc. LSB
4239         * src/SDCCast.c (addCast): Fixed bug 1571231: promote in case of
4240         RESULT_TYPE_IFX
4241         * support/regression/tests/onebyte.c: added test
4242
4243 2006-10-05 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4244
4245         * src/mcs51/gen.c: emitcode for "add a,0x%02x" requires only 8 bits.
4246
4247 2006-10-05 Borut Razem <borut.razem AT siol.net>
4248
4249         * partially fixed [ 1570701 ] peephole - not replacing code from multiline macros,
4250           thanks to dfulab:
4251           - sdcc.dsw: changed property eol-style to CRLF
4252           - support/scripts/resource.rc: replaced references to "afxres.h" with "winres.h"
4253
4254 2006-10-04 Raphael Neider <rneider AT web.de>
4255
4256         * device/include/pic/{pic16f84.h,pic16f84a.h},
4257         * device/lib/pic/libdev/{pic16f84.c,pic16f84a.c}: added PORT[AB]_bits
4258           from patch #1522504, thanks to Robas Teodor
4259
4260 2006-10-02 Maarten Brock <sourceforge.brock AT dse.nl>
4261
4262         * as/link/z80/lkarea.c: essentially reverted lnksect() to #4380 which
4263           fixes bug 1566015
4264
4265 2006-10-01 Maarten Brock <sourceforge.brock AT dse.nl>
4266
4267         * src/pic16/glue.c (pic16emitMaps),
4268         * src/pic/glue.c (pic14emitMaps): hopefully fixed bug 1568779
4269         * device/lib/gets.c: fixed bug 1568829,thanks Philipp Krause
4270         * device/lib/pic16/libc/string/memcpypgm2ram.c,
4271         * device/lib/pic16/libc/string/memcpyram2ram.c: fixed bug 1568836, thanks
4272           Philipp Krause
4273         * as/mcs51/asmain.c (asmbl, newdot): fixed problems with absolute areas
4274         * as/link/mcs51/lkmem.c (summary2): reverted, do do count abs segments
4275
4276 2006-09-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4277
4278         * support/librarian/sdcclib.c: Added option -l.
4279         * as/link/mcs51/lkmem.c: don't use absolute segments to compute memory
4280           usage totals.
4281         * device/lib/make51lib.bat: added.  Allows building mcs51 libraries easily
4282           using Windows command prompt.
4283
4284 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4285
4286         * device/lib/libsdcc.lib: added module rand
4287         * src/ds390/ralloc.c (rematStr),
4288         * src/hc08/ralloc.c (rematStr),
4289         * src/mcs51/ralloc.c (rematStr),
4290         * src/z80/ralloc.c (rematStr): made output more consistent
4291         * src/mcs51/gen.c: cosmetic changes
4292
4293 2006-09-30 Maarten Brock <sourceforge.brock AT dse.nl>
4294
4295         * src/port.h: added mem.cabs_name to PORT
4296         * src/ds390/main.c,
4297         * src/hc08/main.c,
4298         * src/mcs51/main.c,
4299         * src/pic16/main.c,
4300         * src/pic/main.c,
4301         * src/xa51/main.c,
4302         * src/z80/main.c: added cabs_name initializers
4303         * src/SDCCglue.c (emitStaticSeg): allocate and initialize absolute
4304           constants
4305           (emitMaps): emit absolutes in code memory into cabs_name
4306         * src/SDCCmem.c,
4307         * src/SDCCmem.h: added memory map c_abs and defined CABS_NAME
4308         * src/ds390/gen.c (genCodePointerGet): fixed bug if left is a literal
4309         * support/regression/fwk/include/testfwk.h: added define for at
4310         * support/regression/tests/absolute.c: added, new
4311
4312 2006-09-29 Maarten Brock <sourceforge.brock AT dse.nl>
4313
4314         * src/mcs51/gen.c (genPlusIncr, genMinusDec, genAddrOf): small
4315           optimizations, see also patch 887161 by Stas Sergeev
4316         * src/mcs51/peeph.def(104, 207, 209, 212): disabled as they do not seem
4317           to be necessary anymore,
4318           (102, 103, 104, 127): renamed all occurances of bp to _bp
4319
4320 2006-09-27 Maarten Brock <sourceforge.brock AT dse.nl>
4321
4322         * device/include/mcs51/at89c51snd1c.h: fixed MSK_SREQ definition
4323           thanks Weston T. Schmidt for patch 1555221
4324         * src/mcs51/peeph.def: renamed rule 257 to 257.a, added 257.b
4325         * src/SDCCicode.c(geniCodeMultiply): small optimization
4326
4327 2006-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
4328
4329         * device/include/stdlib.h: added rand prototypes
4330         * device/lib/rand.c: new, added
4331         * device/lib/Makefile.in: added rand.c
4332         * src/z80/peeph.def,
4333         * src/z80/peeph-gbz80.def,
4334         * src/z80/peeph-z80.def: updated conditonals, fixed bug 1565908
4335
4336 2006-09-20 Raphael Neider <rneider AT web.de>
4337
4338         * device/lib/pic16/libio/i2c/i2cnack.c (i2c_nack): fixed ACKDT bit
4339
4340 2006-09-19 Maarten Brock <sourceforge.brock AT dse.nl>
4341
4342         * as/link/aslink.h: cosmetic changes
4343         * as/link/mcs51/Makefile.in,
4344         * as/link/z80/Makefile.in: fixed build on CF where VPATH is used
4345
4346 2006-09-17 Maarten Brock <sourceforge.brock AT dse.nl>
4347
4348         * as/link/aslink.h,
4349         * as/link/mcs51/aslink.h,
4350         * as/link/z80/aslink.h: merged and moved to as/link/
4351         * as/link/lkstore.c,
4352         * as/link/mcs51/lkstore.c: moved to as/link/
4353         * as/link/clean.mk: remove *.o
4354         * as/link/mcs51/alloc.h: deleted
4355         * as/link/mcs51/lkarea.c: added lnksect prototype
4356         * as/link/mcs51/lkdata.c,
4357         * as/link/mcs51/lklex.c,
4358         * as/link/mcs51/lkmain.c: renamed as_getline to lk_getline
4359         * as/link/mcs51/lkmem.c,
4360         * as/link/mcs51/lknoice.c: removed include strcmpi.h
4361         * as/link/mcs51/lksym.c: include stdlib.h instead of malloc.h or alloc.h
4362         * as/link/mcs51/aslink.dsp,
4363         * as/link/mcs51/Makefile.aslink,
4364         * as/link/mcs51/Makefile.bcc,
4365         * as/link/mcs51/Makefile.in: updated for moved files
4366         * as/link/z80/lkarea.c,
4367         * as/link/z80/lkhead.c,
4368         * as/link/z80/lklex.c,
4369         * as/link/z80/lklibr.c,
4370         * as/link/z80/lklist.c,
4371         * as/link/z80/lkmain.c,
4372         * as/link/z80/lkrloc.c,
4373         * as/link/z80/lksym.c: synced with mcs51
4374         * as/link/z80/lkdata.c,
4375         * as/link/z80/lkeval.c,
4376         * as/link/z80/lkihx.c,
4377         * as/link/z80/lks19.c: cosmetic changes
4378         * as/link/z80/Makefile.in,
4379         * as/link/z80/linkgbz80.dsp,
4380         * as/link/z80/linkz80.dsp: updated for moved files
4381
4382 2006-09-16 Borut Razem <borut.razem AT siol.net>
4383
4384         * debugger/mcs51/sdcdb.c: partially fixed
4385           [ 1203664 ] sdcdb fails to open files w. two "." periods
4386         * debugger/mcs51/simi.c, debugger/mcs51/symtab.c,
4387           debugger/mcs51/symtab.h: fixed indenting
4388         * configure.in, configure: up to date with latest Maarten's changes
4389
4390 2006-09-15 Maarten Brock <sourceforge.brock AT dse.nl>
4391
4392         as/link/mcs51
4393         as/aslink.dsp,                  as/link/mcs51/aslink.dsp,
4394         as/link/mcs51/aslink.h,         as/mcs51/aslink.h,
4395         as/link/mcs51/aslink.mak,       as/mcs51/aslink.mak,
4396         as/link/mcs51/lkaomf51.c,       as/mcs51/lkaomf51.c,
4397         as/link/mcs51/lkarea.c,         as/mcs51/lkarea.c,
4398         as/link/mcs51/lkdata.c,         as/mcs51/lkdata.c,
4399         as/link/mcs51/lkeval.c,         as/mcs51/lkeval.c,
4400         as/link/mcs51/lkhead.c,         as/mcs51/lkhead.c,
4401         as/link/mcs51/lkihx.c,          as/mcs51/lkihx.c,
4402         as/link/mcs51/lklex.c,          as/mcs51/lklex.c,
4403         as/link/mcs51/lklibr.c,         as/mcs51/lklibr.c,
4404         as/link/mcs51/lklist.c,         as/mcs51/lklist.c,
4405         as/link/mcs51/lkmain.c,         as/mcs51/lkmain.c,
4406         as/link/mcs51/lkmem.c,          as/mcs51/lkmem.c,
4407         as/link/mcs51/lknoice.c,        as/mcs51/lknoice.c,
4408         as/link/mcs51/lkrloc.c,         as/mcs51/lkrloc.c,
4409         as/link/mcs51/lks19.c,          as/mcs51/lks19.c,
4410         as/link/mcs51/lkstore.c,        as/mcs51/lkstore.c,
4411         as/link/mcs51/lksym.c,          as/mcs51/lksym.c,
4412         as/link/mcs51/Makefile.aslink,  as/mcs51/Makefile.aslink,
4413         as/link/mcs51/alloc.h,
4414         as/link/mcs51/clean.mk,
4415         as/link/mcs51/conf.mk,
4416         as/link/mcs51/Makefile.bcc,
4417         as/link/mcs51/Makefile.in,
4418         as/link/mcs51/readme.390,
4419         as/link/mcs51/strcmpi.c,
4420         as/link/mcs51/strcmpi.h,
4421         as/mcs51/clean.mk,
4422         as/mcs51/Makefile.bcc,
4423         as/mcs51/Makefile.in,
4424         configure,
4425         Makefile.in,
4426         sdcc.dsw: moved mcs51 linker to as/link/mcs51
4427
4428 2006-09-14 Maarten Brock <sourceforge.brock AT dse.nl>
4429
4430         * as/link,
4431         * as/link/Makefile.in,
4432         * as/link/z80/linkgbz80.dsp,
4433         * as/link/z80/linkz80.dsp,
4434         * configure,
4435         * link,
4436         * link/clean.mk,
4437         * link/Makefile.in,
4438         * link/README,
4439         * link/z80,
4440         * link/z80/aslink.h,
4441         * link/z80/clean.mk,
4442         * link/z80/conf.mk,
4443         * link/z80/linkgbz80.dsp,
4444         * link/z80/linkz80.dsp,
4445         * link/z80/lkarea.c,
4446         * link/z80/lkdata.c,
4447         * link/z80/lkeval.c,
4448         * link/z80/lkgb.c,
4449         * link/z80/lkgg.c,
4450         * link/z80/lkhead.c,
4451         * link/z80/lkihx.c,
4452         * link/z80/lklex.c,
4453         * link/z80/lklibr.c,
4454         * link/z80/lklist.c,
4455         * link/z80/lkmain.c,
4456         * link/z80/lkrloc.c,
4457         * link/z80/lks19.c,
4458         * link/z80/lksym.c,
4459         * link/z80/Makefile.in,
4460         * Makefile.in,
4461         * sdcc.dsw: moved link/ to as/link/
4462
4463 2006-09-11 Maarten Brock <sourceforge.brock AT dse.nl>
4464
4465         * as/mcs51/i51mch.c (machine): fixed warning
4466
4467 2006-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
4468
4469         * as/mcs51/i51mch.c (machine): S_DJNZ fixed bug 1554318
4470
4471 2006-09-09 Borut Razem <borut.razem AT siol.net>
4472
4473         * debugger/mcs51/sdcdb.c, debugger/mcs51/simi.c:
4474           sdcdb WIN32 native port
4475         * src/clean.mk: fixed
4476
4477 2006-09-08 Borut Razem <borut.razem AT siol.net>
4478
4479         * doc/sdccman.lyx: SDCDB and ucSim are available on Win32 platforms.
4480
4481 2006-09-08 Raphael Neider <rneider AT web.de>
4482
4483         * src/pic16/main.c (_pic16_linkEdit,pic16_linkCmd),
4484         * src/pic/main.c(_pic14_do_link, linkCmd): pass "-w" and "-r"
4485             to gplink to disable processor mismatch warning and to allow
4486             the use of devices with only aliased (shared) memory banks,
4487           (_pic16_genAssemblerPreamble): include pXXX.inc on --mplab-comp
4488
4489 2006-09-07 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4490
4491         * doc/sdccman.lyx: Some re-formating plus example on using
4492           #pragma preproc_asm +/-
4493
4494 2006-09-07 Borut Razem <borut.razem AT siol.net>
4495
4496         * support/scripts/sdcc.nsi: added SDCDB executables in a separate
4497           section
4498
4499 2006-09-06 Borut Razem <borut.razem AT siol.net>
4500
4501         * support/scripts/sdcc.nsi: fixed Error: unterminated string parsing
4502           line at sdcc.nsi:153
4503         * sdcc/debugger/mcs51/simi.c: argsToCmdLine() fixes
4504
4505 2006-09-05 Borut Razem <borut.razem AT siol.net>
4506
4507         * configure.in, configure: support for winsock2
4508         * debugger/mcs51/break.h, debugger/mcs51/cmd.c,
4509           debugger/mcs51/cmd.h, debugger/mcs51/sdcdb.c,
4510           debugger/mcs51/sdcdb.h, debugger/mcs51/simi.c,
4511           debugger/mcs51/simi.h, debugger/mcs51/symtab.c,
4512           debugger/mcs51/symtab.h: sdcdb WIN32 native port
4513
4514 2006-09-05 Maarten Brock <sourceforge.brock AT dse.nl>
4515
4516         * src/SDCCopt.c (cnvToFcall): fixed bug 1551947 by updating OP_USES
4517           and OP_DEFS
4518         * support/regression/tests/bug1551947.c: new, added
4519         * src/SDCCsymt.h: strings are char* not byte*
4520
4521 2006-09-05 Raphael Neider <rneider AT web.de>
4522
4523         * device/lib/pic16/libdev/pic18f4550.c,
4524           device/include/pic16/pic18f4550.h: added PORTD/TRISD
4525             declarations/definitions from patch #1520949
4526
4527 2006-09-05 Raphael Neider <rneider AT web.de>
4528
4529         * src/pic16/gen.c (genPackBits): fix assignment to 8-bit,
4530           byte-aligned bitfields, fixes #1539278
4531
4532 2006-09-05 Raphael Neider <rneider AT web.de>
4533
4534         * src/pic/gen.c (genReceive): skip unreferenced arguments,
4535           fixes #1544120
4536
4537 2006-09-04 Borut Razem <borut.razem AT siol.net>
4538
4539         * support/scripts/sdcc.nsi: move ucSim executables to a separate section
4540         * support/scripts/sdcc_cygwin_mingw32: don't disable ucsim,
4541           -mno-cygwin is a part of the compiler name
4542         * support/scripts/sdcc_mingw32: don't disable ucsim
4543
4544 2006-09-03 Borut Razem <borut.razem AT siol.net>
4545
4546         * sdcc.spec: corrected for 2.6.0. Thanks to Christer Weinigel.
4547         * device/lib/Makefile.in device/lib/clean.mk: small but essential corrections
4548
4549 2006-09-03 Raphael Neider <rneider AT web.de>
4550
4551         * src/pic/ralloc.c,
4552         * src/pic/pcode.c (InitReuseRegs): allocate registers with pseudo
4553           indices >= 0x1000 to disambiguate them from fixed regs __at(addr),
4554           fixes #1550049
4555
4556 2006-09-01 Borut Razem <borut.razem AT siol.net>
4557
4558         * sim/ucsim/cmd.src/cmdutil.cc: #include <sys/time.h> and <unistd.h>
4559           to make ppc-osx happy
4560
4561 2006-08-31 Borut Razem <borut.razem AT siol.net>
4562
4563         * sim/ucsim/cmd.src/newcmdposix.cc: #include <assert.h>
4564         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4565         * sim/ucsim/cmd.src/newcmd.cc: #include <ctype.h>
4566         * support/regression/ports/ds390/spec.mk,
4567           support/regression/ports/mcs51/spec.mk,
4568           support/regression/ports/xa51/spec.mk: introduced DEV_NULL variable.
4569           To run regression tests in mingw environment:
4570           make DEV_NULL=NUL CC=gcc
4571
4572 2006-08-30 Borut Razem <borut.razem AT siol.net>
4573
4574         * sim/ucsim/cmd.src/newcmdposix.cc, sim/ucsim/cmd.src/newcmdposixcl.h,
4575           sim/ucsim/cmd.src/newcmdwin32.cc, sim/ucsim/cmd.src/newcmdwin32cl.h,
4576           sim/ucsim/app.cc, sim/ucsim/appcl.h, sim/ucsim/configure,
4577           sim/ucsim/configure.in, sim/ucsim/ddconfig_in.h, sim/ucsim/error.cc,
4578           sim/ucsim/errorcl.h, sim/ucsim/option.cc, sim/ucsim/optioncl.h,
4579           sim/ucsim/utils.cc, sim/ucsim/utils.h, sim/ucsim/cmd.src/Makefile.in,
4580           sim/ucsim/avr.src/avr.cc, sim/ucsim/avr.src/avrcl.h,
4581           sim/ucsim/cmd.src/bp.cc, sim/ucsim/cmd.src/bpcl.h,
4582           sim/ucsim/cmd.src/cmdconf.cc, sim/ucsim/cmd.src/cmdgui.cc,
4583           sim/ucsim/cmd.src/cmdmem.cc, sim/ucsim/cmd.src/cmdset.cc,
4584           sim/ucsim/cmd.src/cmdsetcl.h, sim/ucsim/cmd.src/cmdstat.cc,
4585           sim/ucsim/cmd.src/cmduc.cc, sim/ucsim/cmd.src/cmduccl.h,
4586           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4587           sim/ucsim/cmd.src/command.cc, sim/ucsim/cmd.src/commandcl.h,
4588           sim/ucsim/cmd.src/get.cc, sim/ucsim/cmd.src/getcl.h,
4589           sim/ucsim/cmd.src/info.cc, sim/ucsim/cmd.src/newcmd.cc,
4590           sim/ucsim/cmd.src/newcmdcl.h, sim/ucsim/cmd.src/set.cc,
4591           sim/ucsim/cmd.src/show.cc, sim/ucsim/cmd.src/timer.cc,
4592           sim/ucsim/hc08.src/hc08.cc, sim/ucsim/hc08.src/hc08cl.h,
4593           sim/ucsim/s51.src/Makefile.in, sim/ucsim/s51.src/interrupt.cc,
4594           sim/ucsim/s51.src/interruptcl.h, sim/ucsim/s51.src/pca.cc,
4595           sim/ucsim/s51.src/pcacl.h, sim/ucsim/s51.src/port.cc,
4596           sim/ucsim/s51.src/portcl.h, sim/ucsim/s51.src/serial.cc,
4597           sim/ucsim/s51.src/serialcl.h, sim/ucsim/s51.src/timer0.cc,
4598           sim/ucsim/s51.src/timer0cl.h, sim/ucsim/s51.src/timer1.cc,
4599           sim/ucsim/s51.src/timer1cl.h, sim/ucsim/s51.src/timer2.cc,
4600           sim/ucsim/s51.src/timer2cl.h, sim/ucsim/s51.src/uc390.cc,
4601           sim/ucsim/s51.src/uc390cl.h, sim/ucsim/s51.src/uc390hw.cc,
4602           sim/ucsim/s51.src/uc390hwcl.h, sim/ucsim/s51.src/uc51.cc,
4603           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/wdt.cc,
4604           sim/ucsim/s51.src/wdtcl.h, sim/ucsim/sim.src/hw.cc,
4605           sim/ucsim/sim.src/hwcl.h, sim/ucsim/sim.src/mem.cc,
4606           sim/ucsim/sim.src/memcl.h, sim/ucsim/sim.src/obsolete.cc,
4607           sim/ucsim/sim.src/obsolete.h, sim/ucsim/sim.src/sim.cc,
4608           sim/ucsim/sim.src/simcl.h, sim/ucsim/sim.src/stack.cc,
4609           sim/ucsim/sim.src/stackcl.h, sim/ucsim/sim.src/test_mem_speed.cc,
4610           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
4611           sim/ucsim/xa.src/xa.cc, sim/ucsim/xa.src/xacl.h,
4612           sim/ucsim/z80.src/z80.cc, sim/ucsim/z80.src/z80cl.h:
4613           ucsim WIN32 native port
4614
4615 2006-08-30 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4616
4617         * doc/sdccman.lyx: added note on dynamic memory heap initialization
4618
4619 2006-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4620
4621         * src/mcs51/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4622         * src/ds390/gen.c (aopGetUsesAcc): handle AOP_DPTR2 and AOP_DPTRn too
4623
4624 2006-08-26 Maarten Brock <sourceforge.brock AT dse.nl>
4625
4626         * src/ds390/gen.c (genAnd, genOr, genXor): fixed bug 1546986
4627         * support/regression/tests/bug1546986.c: new, added
4628         * as/mcs51/.cvsignore,
4629         * debugger/mcs51/.cvsignore,
4630         * src/.cvsignore: deleted
4631
4632 2006-08-25 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4633
4634         * device/include/mcs51/P89c51RD2.h: fixed bug 1546936 (error in sbit
4635           definitions)
4636
4637 2006-08-20 Borut Razem <borut.razem AT siol.net>
4638
4639         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h:
4640           removed cl_listen_console::match(), cl_console::match(),
4641           restructured cl_commander::proc_input()
4642
4643 2006-08-16 Borut Razem <borut.razem AT siol.net>
4644
4645         * sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/newcmdcl.h,
4646           sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/cmdutil.h,
4647           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/uc.cc: code cleaning
4648
4649 2006-08-14 Borut Razem <borut.razem AT siol.net>
4650
4651         * support/regression/Makefile.in,
4652           support/regression/ports/pic14/gpsim.cmd,
4653           support/regression/ports/pic14/spec.mk,
4654           support/regression/ports/pic14/support.c:
4655           added pic14 regression test
4656
4657 2006-08-14 Maarten Brock <sourceforge.brock AT dse.nl>
4658
4659         * as/doc/asxhtm.html: documented changed ABS behaviour
4660         * as/doc/README: fixed some typos
4661
4662 2006-08-13 Maarten Brock <sourceforge.brock AT dse.nl>
4663
4664         * support/regression/tests/float_trans.c: disabled test if __STDC_IEC_559__
4665           not defined on host
4666
4667 2006-08-12 Borut Razem <borut.razem AT siol.net>
4668
4669         * support/regression/fwk/include/testfwk.h,
4670           support/regression/fwk/lib/testfwk.c,
4671           support/regression/generate-cases.py,
4672           support/regression/Makefile.in:
4673           regression test framework does not depend on function pointers and
4674           variable arguments
4675
4676 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4677
4678         * device/include/stddef.h: c temporary hack to fix bug 1518273
4679
4680 2006-08-09 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4681
4682         * device/include/mcs51/cc2510fx.h: added
4683         * src/z80/z80.dsp, src/gbz80/gbz80.dsp: added support/Util/strcmpi.ch
4684           to projects.
4685
4686 2006-08-09 Maarten Brock <sourceforge.brock AT dse.nl>
4687
4688         * as/z80/assym.c (mlookup): ignore case when looking up mnemonics
4689         * as/z80/Makefile.in: added strcmpi.c
4690         * as/z80/z80adr.c: added upper case registers and lower case conditionals
4691         * support/Util/strcmpi.ch: added with intention to remove from mcs51/hc08
4692
4693 2006-08-08 Maarten Brock <sourceforge.brock AT dse.nl>
4694
4695         * device/lib/gbz80/asm_strings.s,
4696         * device/lib/gbz80/crt0_rle.s,
4697         * device/lib/gbz80/div.s,
4698         * device/lib/gbz80/mul.s,
4699         * device/lib/gbz80/shift.s,
4700         * device/lib/z80/asm_strings.s,
4701         * device/lib/z80/crt0_rle.s,
4702         * device/lib/z80/div.s,
4703         * device/lib/z80/mul.s,
4704         * device/lib/z80/shift.s: changed to all lower case menmonics except the
4705           flags which are all upper case
4706
4707 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4708
4709         * as/z80/asm.h: made CASE_SENSITIVE 1
4710         * link/z80/aslink.h: made CASE_SENSITIVE 1
4711         * src/z80/gen.c (throughout): made all conditionals upper case
4712         * support/regression/tests/bug1503067.c: new
4713
4714 2006-08-07 Maarten Brock <sourceforge.brock AT dse.nl>
4715
4716         * src/z80/gen.c (aopPut): fixed bug !*ixy should be !*iyx,
4717           (shiftIntoPair): added case 2 for PAIR_IY,
4718           (setupToPreserveCarry): replaced parameters with iCode and check if
4719            PAIR_DE is in use to fix bug 1399290,
4720           (genPlus, genMinus): updated call to setupToPreserveCarry
4721         * support/regression/tests/bug1399290.c: new
4722
4723 2006-08-06 Maarten Brock <sourceforge.brock AT dse.nl>
4724
4725         * device/lib/Makefile.in (Z80SOURCES): enabled float support
4726         * sim/ucsim/z80.src/inst.cc (inst_rst): generate breakpoint on RST8,ACC==0
4727         * src/ds390/gen.c (shiftRLong),
4728         * src/hc08/gen.c (shiftLLong, shiftRLong): fixed bug 1533966
4729         * src/mcs51/gen.c (sameReg): changed to sameByte,
4730           (xch_a_aopGet): new,
4731           (shiftL2Left2Result, shiftR2Left2Result, shiftRLeftOrResult, shiftLLong,
4732            shiftRLong): fixed bug 1533966
4733         * src/z80/gen.c (shiftR2Left2Result, shiftL2Left2Result, genlshTwo,
4734           genLeftShiftLiteral, genrshTwo, genRightShiftLiteral): fixed bug 1533966
4735         * support/regression/Makefile.in: disabled z80, enabled ucz80
4736         * support/regression/tests/float_trans.c: enabled test for z80 and host
4737         * support/regression/tests/shifts2.c: new, for testing bug 1533966
4738
4739 2006-08-01 Borut Razem <borut.razem AT siol.net>
4740
4741         * src/mcs51/gen.c, src/dc390/gen.c: fixed warning:
4742           comparison is always false due to limited range of data type
4743           on PPC64 machine (openpower-linux1) where "char = unsigned char"
4744
4745 2006-08-01 Maarten Brock <sourceforge.brock AT dse.nl>
4746
4747         * sim/ucsim/hc08.src/hc08mac.h: removed faulty and unused add_u16_disp
4748         * sim/ucsim/hc08.src/hc08.cc: removed faulty and unused int8
4749         * sim/ucsim/z80.src/z80mac.h (add_u16_disp): use explicit signed char cast
4750         * sim/ucsim/z80.src/z80.cc: removed faulty and unused int8
4751
4752 2006-07-31 Borut Razem <borut.razem AT siol.net>
4753
4754         * sim/ucsim/configure, sim/ucsim/cmd.src/newcmdcl.h,
4755           sim/ucsim/cmd.src/newcmd.cc, sim/ucsim/cmd.src/cmdutil.cc,
4756           sim/ucsim/z80.src/Makefile.in, sim/ucsim/configure.in,
4757           sim/ucsim/hc08.src/Makefile.in, sim/ucsim/hc08.src/hc08.cc,
4758           sim/ucsim/ddconfig_in.h, sim/ucsim/s51.src/Makefile.in,
4759           sim/ucsim/s51.src/uc51cl.h, sim/ucsim/s51.src/serialcl.h,
4760           sim/ucsim/s51.src/uc51.cc, sim/ucsim/s51.src/serial.cc,
4761           sim/ucsim/app.cc, sim/ucsim/avr.src/Makefile.in:
4762           enable ucsim mingw compilation. Serial port is disabled,
4763           since it uses termios.h API, which is not available on native
4764           WIN32
4765
4766 2006-07-31 Borut Razem <borut.razem AT siol.net>
4767
4768         * Small Device C Compiler 2.6.0 released
4769         * support/scripts/sdcc.nsi: added FULL_DOC option
4770         * .version, doc/sdccman.lyx: changed sdcc version to 2.6.1
4771
4772 2006-07-28 Borut Razem <borut.razem AT siol.net>
4773
4774         * support/scripts/sdcc.nsi: remove $INSTDIR/include/asm/pic16/*.h
4775         * doc/INSTALL.txt: updated
4776
4777 2006-07-27 Borut Razem <borut.razem AT siol.net>
4778
4779         * device/lib/pic/Makefile.in, device/lib/pic/Makefile.subdir,
4780           device/lib/pic/libdev/Makefile.in: fixed bug
4781           [ 1438354 ] pic libsdcc: distclean doesn't work
4782         * device/lib/pic16/Makefile.in, device/lib/pic16/Makefile.subdir,
4783           device/lib/pic16/libio/Makefile.in: fixed bug
4784           [ 1438344 ] pic16 lib: clean doesn't work properly
4785         * doc/knownbugs.html removed [ 1438354 ] and [ 1438344 ] from the list
4786
4787 2006-07-26 Maarten Brock <sourceforge.brock AT dse.nl>
4788
4789         * device/lib/pic/libsdcc/fsdiv.c,
4790         * device/lib/pic/libsdcc/fsmul.c,
4791         * device/lib/pic16/libsdcc/float/fsdiv.c,
4792         * device/lib/pic16/libsdcc/float/fsmul.c,
4793         * device/lib/_fsdiv.c,
4794         * device/lib/_fsmul.c: bugfix, handle too large and too small numbers
4795         * support/regression/tests/bug1520966.c: added
4796         * doc/knownbugs.html: removed [ 1520966 ] from the list
4797
4798 2006-07-25 Borut Razem <borut.razem AT siol.net>
4799
4800         * configure.in, configure, sdccconf_in.h: fixed bug
4801           [ 1519095 ] regression test onebyte.c fails on ppc64 host
4802         * doc/knownbugs.html: removed [ 1519095 ] from the list
4803
4804 2006-07-25 Maarten Brock <sourceforge.brock AT dse.nl>
4805
4806         * doc/knownbugs.html: added, contains list of known bugs at release
4807         * device/include/mcs51/compiler.h: fixed SFR32 for SDCC
4808
4809 2006-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
4810
4811         * device/include/mcs51/compiler.h: added SFRX for xdata based special
4812           function registers and corrected defaults with additional warning
4813         * device/lib/malloc.c: cosmetic changes
4814         * device/lib/realloc.c: bugfix for bug #1496907, Thanks Efim Monyak
4815         * src/ds390/ralloc.c (getRegBitNoSpil): reenabled,
4816           (fillGaps): and used it
4817
4818 2006-07-20 Raphael Neider <rneider AT web.de>
4819
4820         * src/pic/device.c (addMemRange,assignRegister): suppress verbose
4821           output unless SDCCPICDEBUG is set
4822         * device/lib/pic16/Makefile.rules (%.lib target): suppress verbose
4823           output if SILENT is set
4824
4825 2006-07-11 Borut Razem <borut.razem AT siol.net>
4826
4827         * doc/README.txt: updated
4828
4829 2006-07-10 Borut Razem <borut.razem AT siol.net>
4830
4831         * support/scripts/sdcc.nsi: added device/include/asm/pic/features.h and
4832           device/lib/src/pic/libm/*.c and device/lib/src/pic16/libsdcc/stack/*.S
4833           in WIN32 installation
4834         * .version, sdcc.spec, doc/sdccman.lyx: changed sdcc version to 2.6.0 -
4835           release candidate 1
4836
4837 2006-07-08 Maarten Brock <sourceforge.brock AT dse.nl>
4838
4839         * device/include/mcs51/XC866.h: added sbit definitions for Px_x, P1_x, P2_x
4840         * src/pic16/glue.c (initPointer): fixed bug 1496419 for pic16
4841
4842 2006-07-06 Maarten Brock <sourceforge.brock AT dse.nl>
4843
4844         * src/hc08/gen.c (genAddrOf): fixed bug when offset on stack is >127
4845
4846 2006-07-06 Borut Razem <borut.razem AT siol.net>
4847
4848         * support/regression/tests/bitfields.c:
4849           fixed bug [ 1518322 ] regression test bitfields fails on ppc hosts
4850         * support/regression/tests/constantRange.c:
4851           fixed bug [ 1518317 ] regression test constantRange fails on alpha host
4852
4853 2006-07-04 Borut Razem <borut.razem AT siol.net>
4854
4855         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in,
4856           src/port.mk,
4857           src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4858           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4859           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4860           reverted changes from 2006-07-03
4861         * Makefile.common.in: added @CPPFLAGS@ to CPPFLAGS
4862         * support/regression/Makefile.in, support/regression/ports/host/spec.mk:
4863           added CPPFLAGS, used by the host port
4864
4865 2006-07-03 Bernhard Held <bernhard AT bernhardheld.de>
4866
4867         * support/regression/valdiag/tests/switch.c,
4868         * support/regression/valdiag/tests/constantRange.c: adapted to gcc 4
4869         * support/regression/tests/libmullong.c: fixed for host
4870         * support/regression/ports/host/spec.mk: disable all warnings for host,
4871         SDCC runs with --less-pedantic too
4872
4873 2006-07-03 Borut Razem <borut.razem AT siol.net>
4874
4875         * src/configure.in, src/configure, src/Makefile.in, as/z80/Makefile.in:
4876           defined CPPFLAGS
4877         * src/port.mk: defined CPPFLAGS, renamed to src/port.mk.in
4878         * src/avr/Makefile.in, src/ds390/Makefile.in, src/ds400/Makefile.in,
4879           src/hc08/Makefile.in, src/mcs51/Makefile.in, src/pic16/Makefile.in,
4880           src/pic/Makefile.in, src/xa51/Makefile.in, src/z80/Makefile.in:
4881           include ../port.mk
4882         * sim/ucsim/main_in.mk, sim/ucsim/avr.src/Makefile.in,
4883           sim/ucsim/gui.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
4884           sim/ucsim/s52.src/Makefile.in, sim/ucsim/sim.src/Makefile.in,
4885           sim/ucsim/xa.src/Makefile.in: ignore header files for dependencies
4886
4887 2006-07-02 Raphael Neider <rneider AT web.de>
4888
4889         * src/pic16/devices.inc,
4890         * device/include/pic16/pic18fregs.h,
4891         * device/include/pic16/pic18f4550.h,
4892         * device/lib/pic16/pics.all,
4893         * device/lib/pic16/libdev/pic18f4550.c: added support for 18f4550
4894
4895 2006-07-01 Bernhard Held <bernhard AT bernhardheld.de>
4896
4897         * as/hc08/lkaomf51.c (OutputName),
4898         * as/mcs51/lkaomf51.c (OutputName),
4899         * as/z80/asmain.c (asmbl),
4900         * src/ds390/main.c (asmLineNodeFromLineNode),
4901         * src/hc08/ralloc.c (hc08_assignRegisters),
4902         * src/mcs51/main.c (asmLineNodeFromLineNode),
4903         * src/xa51/ralloc.c (checkRegMask),
4904         * src/xa51/gen.c (emitcode),
4905         * src/z80/gen.c (_emit2),
4906         * src/SDCCast.c (searchLitOp),
4907         * src/SDCCglobl.h,
4908         * support/packihx/packihx.c,
4909         * support/Util/MySystem.c (split_command): fix gcc 4 warnings
4910         * src/ds390/gen.c (aopPutUsesAcc),
4911         * src/ds390/ralloc.c (getRegBitNoSpil): unused, therefore disabled
4912         * support/regression/tests/libmullong.c (mullong_wrapper),
4913         * src/SDCCsymt.c (powof2),
4914         * src/SDCCast.c,
4915         * src/SDCCicode.c: renamed TYPE_WORD by TYPE_TARGET_INT and so on
4916         * src/SDCCsymt.h: added TYPE_TARGET_*
4917         * src/SDCCutil.c (doubleFromFixed16x16, fixed16x16FromDouble),
4918         * src/SDCCutil.h (doubleFromFixed16x16, fixed16x16FromDouble): moved to
4919         SDCCast because 1) header problems 2) this is the right place
4920         * src/SDCCast.c (doubleFromFixed16x16, fixed16x16FromDouble): added
4921         * src/SDCCval.h (doubleFromFixed16x16, fixed16x16FromDouble): added
4922         prototype
4923
4924 2006-06-29 Bernhard Held <bernhard AT bernhardheld.de>
4925
4926         * src/SDCCicode.h: removed buggy semicolon in unused macro
4927         * src/SDCClrange.c (findPrevUseSym, rlivePoint): fixed bug #1486853,
4928         search for previous definiton of auto symbols too,
4929         (findPrevUse): fixed logic of emitWarnings
4930
4931 2006-06-26 Raphael Neider <rneider AT web.de>
4932
4933         * src/pic16/gen.c (genFunction, genEndFunction): also preserve
4934           PCLATH and PCLATU on interrupts, potentially fixes #1505141
4935
4936 2006-06-25 Raphael Neider <rneider AT web.de>
4937
4938         * device/lib/pic/libm: NEW, added math library functions
4939         * device/lib/pic/libsdcc: NEW; added float support functions
4940         * device/lib/pic/{Makefile.in,configure.in,configure}: added libm/
4941         * device/include/pic/{limits.h,errno.h,sdcc-lib.h,float.h,math.h}:
4942           NEW, added math related headers
4943         * device/include/asm/pic/features.h: NEW
4944         * src/pic/gen.c (emitpcode_real): emit warning on NULL pCodeOp,
4945           (popGet): allow larger offsets for AOP_PCODE,
4946           (genDataPointerSet): handle literals explicitly, more debug output,
4947           (genAssign): fixed for float using aopLiteral ;-)
4948         * src/pic/glue.c (pic14createInterruptVect): inserted pagesel before
4949           GOTO initialisation routine
4950         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): set wasUsed
4951           flag on registers, fixes #1469043 (local variables do not work)
4952         * src/pic/main.c (_pic14_do_link),
4953         * src/pic16/main.c (_pic16_linkEdit): use fullDstFileName if
4954           available
4955
4956 2006-06-25 Borut Razem <borut.razem AT siol.net>
4957
4958         * device/lib/pic16/libc/stdio/sprintf.c: return the number of
4959           characters printed (not including the trailing '\0' used to end
4960           output to strings). Problem detected in regression test bug-927659.c.
4961           NOTE: printf() family functions should return int instead
4962           unsigned int!
4963         * device/lib/pic16/libc/stdio/vfprintf.c: "%%" prints "%", unknown
4964           specifier are printed as themselves
4965         * sdcc/support/regression/tests/bug1057979.c: pic16 printf doesn't
4966           support flags, width and precision specifiers
4967
4968 2006-06-24 Borut Razem <borut.razem AT siol.net>
4969
4970         * sdcc/support/regression/tests/bitvars.c: added gbz80, pic16 and pic16
4971           to the list of sdcc tagrets not supporting bit type
4972         * sdcc/support/regression/tests/bug-905992.c.c: excluded regression
4973           testfor pic16 due to bug:
4974           [ 1511794 ] pic16: regression test bug-895992.c fails
4975
4976 2006-06-24 Maarten Brock <sourceforge.brock AT dse.nl>
4977
4978         * src/mcs51/gen.c (genCmp): optimization for RFE 1162453
4979         * src/SDCCglue.c (initPointer), fixed bug 1496419
4980         * support/regression/tests/bug1496419.c: new, added
4981
4982 2006-06-22 Borut Razem <borut.razem AT siol.net>
4983
4984         * support/regression/ports/pic16/support.c: use gpsim usart module from
4985           libgpsim_modules library
4986
4987 2006-06-21 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
4988
4989         * device/include/mcs51/at89c51ed2.h: Fixed bug 1510144 changed
4990         IP0H to IPH0.
4991
4992 2006-06-19 Raphael Neider <rneider AT web.de>
4993
4994         * src/pic/glue.h,src/pic16/glue.h: added prototypes
4995         * src/pic/glue.c,src/pic16/glue.c (pic1x_stringInSet,
4996           pic1x_emitSymbolIfNew): NEW, check for a string in a set,
4997           (pic14printExterns,pic14printPublics,pic16printPublics,
4998           pic16_printExterns): use new functions to emit symbols
4999           (picglue,pic16glue): emit publics before emitting externs
5000         * src/pic/gen.c,src/pic16/gen.c (genFunction): remember the names of
5001           locally defined functions to avoid bug #1443651
5002         * support/regression/tests/bug-716242.c: removed pic16 workaround
5003         * support/regression/ports/pic16/spec.mk: ignore errors during build
5004
5005 2006-06-19 Raphael Neider <rneider AT web.de>
5006
5007         * src/pic/glue.h: added pic14aopLiteral prototype
5008         * src/pic/glue.c (pic14aopLiteral): return unsigned int
5009         * src/pic/gen.c: removed stdint.h dependency
5010           (aopGet): use Safe_strdup()
5011           (bitpatternFromVal): removed, replaced use with pic14aopLiteral
5012           (genDataPointerSet): use pic14aopLiteral()
5013         * src/pic16/glue.h, src/pic16/glue.c, src/pic16/gen.c: similar changes
5014           for pic16; thanks to Bernhard and Maarten
5015
5016 2006-06-18 Borut Razem <borut.razem AT siol.net>
5017
5018         * support/regression/tests/structflexarray.c: flexible array members
5019           not supported by gcc < 3
5020         * sim/ucsim/configure, sim/ucsim/configure.in: do not compile serio
5021           GUI tool by default
5022         * src/pic/gen.c: don't include [p]strdin.h on solaris
5023         * support/Util/pstdint.h: addad svn attributes
5024         * support/regression/tests/constantRange.c,
5025           support/regression/tests/rotate.c: include inttypes.h instead
5026           stdint.h on solaris, addad svn attributes
5027
5028 2006-06-18 Raphael Neider <rneider AT web.de>
5029
5030         * src/SDCCsymt.c (initCSupport): change return type of divschar to
5031           int for PIC16
5032         * src/pic16/genarith.c (genAddLit): sign-extend via standard routine
5033           (pic16_genMinusBits): simplified sign-extension
5034           (pic16_genUMult8XLit_8,pic16_genUMult8X8_8): renamed to
5035             pic16_genMult8XLit_n resp. pic16_genMult8X8_n, fixed and
5036             adjusted to correctly handle mixed-signed operands, disabled
5037             now unused multiplciation routines
5038         * src/pic16/gen.c (pic16_pushpCodeOp): fixed to handle literals
5039           (assignResultValue): added argument denoting the size of the result
5040             as returned by the function (fixes upcasts in assigning from
5041             function calls: char foo(); int i = foo();)
5042           (genCall,genPcall,genGenPointerGet,genReceive): pass size of
5043             function result to assignResultValue
5044           (genMult): disabled inlined multiplication code
5045           (genDiv): augmented to also handle the modulus operator, fixed to
5046             handle mixed-signed operands correctly
5047           (genMod): simply call genDiv, disabled unused code
5048           (genAssign): fixed missing (sign-)extension on result
5049         * src/pic16/main.c (_hasNativeMulFor): accept literals [-128..256) as
5050             valid char operands, allow signed operands for native code, added
5051             division and modulo operator handling
5052         * device/lib/pic16/libsdcc/char/divschar.c: divschar returns an int
5053
5054         As a consequence, onebyte.c (if split into two files) and muldiv.c
5055         pass regression tests.
5056
5057 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5058
5059         * doc/Makefile.in: two runs of makeindex seem needed to get
5060         correct page references in the index of sdccman.pdf
5061         * doc/sdccman.lyx: mentioned cmon51, added links, small changes
5062
5063 2006-06-17 Borut Razem <borut.razem AT siol.net>
5064
5065         * sdcc/device/lib/Makefile.in: corrected PORTINCDIR path
5066
5067 2006-06-17 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5068
5069         * doc/sdccman.lyx: updated, added (porting source code, debugging),
5070         mentioned ec2drv and paulmon
5071
5072 2006-06-16 Maarten Brock <sourceforge.brock AT dse.nl>
5073
5074         * as/mcs51/lkarea.c (lnkarea2): clear new xdatamap, bugfix for two
5075           consecutive abs areas
5076           (find_empty_space, allocate_space): added map to handle codemap or
5077            xdatamap,
5078           (lnksect2): renamed rloc to locIndex, fixed bug 960060 by handling
5079            absolute idata and xdata
5080         * as/mcs51/lkmem.c (summary2): updated legend
5081
5082 2006-06-16 Raphael Neider <rneider AT web.de>
5083
5084         * src/pic16/gen.c (shiftR2Left2Result): fixed bug #1507127
5085
5086 2006-06-13 Maarten Brock <sourceforge.brock AT dse.nl>
5087
5088         * debugger/mcs51/cmd.c (cmdListFunctions): fixed bugs 1181163 and
5089           1208515
5090         * src/SDCClrange.c (findPrevUse): fixed bug 1294475
5091
5092 2006-06-13 Vangelis Rokas <vrokas AT users.sourceforge.net>
5093
5094         * src/port.h (struct PORT): added field gp_tags, to hold the tag
5095         value of generic pointers,
5096         * src/avr/main.c,
5097           src/ds390/main.c,
5098           src/hc08/main.c,
5099           src/izt/i186.c,
5100           src/izt/tlcs900h.c,
5101           src/mcs51/main.c,
5102           src/pic/main.c,
5103           src/pic16/main.c,
5104           src/xa51/main.c,
5105           src/z80/main.c: PORT structure, added elements for gp_tags field,
5106         * src/SDCCsymt.h: replaced hardwired values of GPTYPE_* macros with
5107         fields in the PORT structure of each port,
5108         * src/SDCCast.c (decorateType): allow processing of generic pointers
5109         for PIC16 port (FPTRSIZE equals GPTRSIZE), also set GPTYPE_NEAR for
5110         S_FIXED symbols
5111
5112 2006-06-12 Maarten Brock <sourceforge.brock AT dse.nl>
5113
5114         * link/z80/lkgb.c,
5115         * link/z80/lkgg.c,
5116         * src/pic16/gen.c,
5117         * src/pic16/main.c,
5118         * src/pic16/pcode.c,
5119         * src/pic/main.c,
5120         * src/pic/pcoderegs.c,
5121         * src/SDCCicode.c,
5122         * src/SDCCmain.c,
5123         * src/SDCCsymt.c: replaced all exit(-1) by exit(EXIT_FAILURE) to fix
5124           bug 1504689 on minGW
5125
5126 2006-06-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5127
5128         * device/lib/printf_tiny.c: fixed bug #1465675 (%x format specifier)
5129
5130 2006-06-12 Bernhard Held <bernhard AT bernhardheld.de>
5131
5132         * src/SDCCast.c (backPatchLabels): fixed bug #1504636
5133
5134 2006-06-11 Maarten Brock <sourceforge.brock AT dse.nl>
5135
5136         * device/lib/printf_large.c (OUTPUT_CHAR, _output_char): added and used
5137           for optimization
5138
5139 2006-06-11 Vangelis Rokas <vrokas AT users.sourceforge.net>
5140
5141         * src/pic16/gen.c (genCast): fixed bug with assignment of a pointer
5142         to a char variable. Fixed bug #1504211
5143         * device/include/pic16/adc.h,
5144         device/include/lib/pic16/libio/adc/adcopen.c: applied patch #1364387
5145         and fixed bug #1364390
5146
5147 2006-06-10 Borut Razem <borut.razem AT siol.net>
5148
5149         * CVSROOT: removed the CVS left-over
5150
5151 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5152
5153         * as/hc08/asmain.c (asexit),
5154         * as/hc08/lkmain.c (lkexit),
5155         * as/mcs51/asmain.c (asexit),
5156         * as/mcs51/lkmain.c (lkexit),
5157         * src/SDCCglue.c (DEFSETFUNC),
5158         * src/SDCCmain.c (linkEdit, assemble),
5159         * support/librarian/sdcclib.c (AddRel),
5160           replaced unlink() by standard C remove()
5161         * src/SDCC.y: replaced removePostIncDecOps() by createRMW()
5162         * src/SDCCast.c (replaceAstWithTemporary, createRMW,
5163           gatherImplicitVariables): new, added to fix bug 608752,
5164           (createFunction): added gatherImplicitVariables()
5165         * src/SDCCast.h: added createRMW prototype
5166         * src/SDCCsymt.h (struct symbol): added infertype
5167         * support/regression/tests/bug608752.c: new, added
5168
5169 2006-06-10 Raphael Neider <rneider AT web.de>
5170
5171         * src/pic16/gen.c (pic16_aopOp): use WREG as destination even for
5172           multibyte dummy reads (fixes #1503234)
5173
5174 2006-06-10 Maarten Brock <sourceforge.brock AT dse.nl>
5175
5176         * device/include/mcs51/compiler.h: new, added header file to enable
5177           creating common sfr definition header files for different compilers
5178
5179 2006-06-05 Raphael Neider <rneider AT web.de>
5180
5181         * src/pic16/{pcode.h,genarith.c}:
5182           introduced pCodeOp combining any two pCodeOps (previously only
5183           two register operands could be combined), removed pcop2 from
5184           pCodepReg, replaced pCodeOpReg2 with pCodeOp2, fixes #1492366
5185         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): added case for PO_TWO_OPS
5186         * src/pic16/gen.c (pic16_popGet2,pic16_popGet2p,pic16_popCombine2):
5187           rewritten to use new PO_TWO_OPS
5188         * src/pic16/main.c (_hasNativeMulFor): cover more cases natively,
5189         * src/pic16/pcode.c (pic16_newpCodeOpImmd): initialize rIdx field,
5190           (pic16_newpCodeOp): catch invalid attempts on PO_TWO_OPS,
5191           (pic16_newpCodeOp2): NEW, create combined pCodeOp,
5192           (pic16_get_op): embraced return arg to allow #define return(x),
5193             added new case for combined opcodes
5194           (pic16_get_op2): reduced to use pic16_get_op() on second pCodeOp,
5195           (pic16_pCode2str,pic16_getRegFrompCodeOp,
5196            pic16_getRegFromInstruction2): fixed/added handling of new pCodeOp
5197
5198 2006-06-04 Bernhard Held <bernhard AT bernhardheld.de>
5199
5200         * src/SDCCval.c (checkConstantRange): added
5201         * src/SDCCval.h: added checkConstantRange
5202         * support/Util/SDCCerr.c,
5203         * support/Util/SDCCerr.h: replaced unused W_IF_NEVER_TRUE and
5204         W_IF_ALWAYS_TRUE by W_COMP_RANGE and W_LIT_OVERFLOW
5205         * src/SDCC.y: moved early 'condition transformations' to SDCCast.c
5206         * src/SDCCast.c (decorateType): added checkConstantRange,
5207         added 'condition transformations' from SDCC.y so that now W_COMP_RANGE
5208         can be emitted with the correct always true/false warning,
5209         added optimization for double '!';
5210         result of decorateType() must be assigned back to the tree, because
5211         decorateType() can change the tree
5212         * src/SDCCicode.c (geniCodeLogic),
5213         (geniCodeAssign): replaced new checkConstantRange, added warnings,
5214         (checkConstantRange): removed, it was only a fragment which never
5215         emitted a warning
5216         * src/SDCCsymt.c (computeType): fixed promotion for
5217         "-1 < (unsigned bit) b"
5218         * src/pic/ralloc.c (packRegsForAssign),
5219         * src/pic16/ralloc.c (packRegsForAssign),
5220         * src/hc08/ralloc.c (packRegsForAssign),
5221         * src/z80/ralloc.c (packRegsForAssign): ported fix for bug #930931
5222         from mcs51
5223         * src/mcs51/ralloc.c (packRegsForAssign): removed outcommented source
5224         * support/regression/tests/constantRange.c: added
5225         * support/valdiag/tests/constantRange.c: added
5226         * support/valdiag/valdiag.py: added -DPORT_HOST=1
5227
5228 2006-06-02 Borut Razem <borut.razem AT siol.net>
5229
5230         * support/regression/ports/pic16/support.c: increase stack size
5231           to 255 bytes
5232         * support/regression/Makefile.in: sort tests by name so that the
5233           resutlts can be compared on different machines / platforms
5234
5235 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5236
5237         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
5238         * src/ds390/gen.c (emitLabel): new, added,
5239           (genDjnz): fixed stack overflow bug,
5240           (throughout): cosmetic changes to sync with mcs51/gen.c,
5241           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
5242         * src/mcs51/gen.c (genEndFunction): small optimization,
5243           (throughout): cosmetic changes to sync with ds390/gen.c
5244
5245 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5246
5247         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
5248           (_print_format): fixed printing pointers
5249         * src/mcs51/gen.c (emitLabel, movb): new, added,
5250           (genAssign): small optimization,
5251           (genDjnz): fixed stack overflow bug,
5252           (throughout): replaced sprintf with SNPRINTF,
5253           replaced mcs51_regWithIdx with REG_WITH_INDEX,
5254           replaced emitcode("mov", "b,...") with MOVB(...),
5255           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
5256           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5257         * src/mcs51/peeph.def: added rules 140 and 264
5258         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
5259           so they may get optimized into registers
5260
5261 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
5262
5263         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
5264           immediately when encountered,
5265           (printUsage): always use stderr even on windows
5266
5267 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
5268
5269         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
5270         (processParms): fixed bug #1247551
5271         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
5272         parseCmdLine, main): print '--version' to stdout,
5273         print 'help' to stdout if --help is given,
5274         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
5275         arguments are given; fixed --help
5276
5277 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
5278
5279         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
5280         * support/regression/tests/bug-1493710.c: added
5281
5282 2006-05-27 Borut Razem <borut.razem AT siol.net>
5283
5284         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
5285           static instead auto
5286         * support/regression/ports/pic16/support.c: increase stack size
5287           from default 64 bytes to 128 bytes
5288         * support/regression/tests/staticinit.c,
5289           support/regression/tests/float.c: regression tests fully enabled
5290           for pic16 port by putting the initialized data arrays into the code
5291           section
5292         * support/regression/ports/pic16/spec.mk: don't link default libraries.
5293           This was changed by mistake in the previous version.
5294
5295 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
5296
5297         * src/pic16/gen.c (genFunction, genEndFunction): some
5298         beautifications, fixed bug with falsely restoring FSR2 in large
5299         stack model, thanks to Beau E. Cox for reporting the bug
5300
5301 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
5302
5303         * debugger/mcs51/break.c,
5304         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5305           use %p to print pointers, made address variables unsigned
5306         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
5307         * debugger/mcs51/symtab.c (parseSymbol): must return something
5308         * src/mcs51/gen.c (aopForSym): small optimization,
5309            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
5310           (freeAsmop): added missing break,
5311           (aopPut): removed parameter bvolatile, determine it inside the function,
5312           (saveRegisters, unsaveRegisters): small optimization,
5313           (genIpush): removed pointless check,
5314           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
5315           replaced sprintf with SNPRINTF,
5316           replaced strcpy with strncpyz,
5317           updated aopPut calls,
5318           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
5319         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
5320
5321 2006-05-24 Borut Razem <borut.razem AT siol.net>
5322
5323         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
5324           modification of test for the pic16 port, put the array to the code
5325           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
5326
5327 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
5328
5329         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
5330         * support/Util/pstdint.h: added
5331
5332 2006-05-22 Borut Razem <borut.razem AT siol.net>
5333
5334         * src/regression/Makefile: removed bool2.c test, added -q linker option
5335         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
5336           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
5337           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
5338           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
5339           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
5340           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
5341           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
5342           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
5343           define SUPPORT_BIT_TYPES 0, removed unused bit variables
5344
5345 2006-05-22 Raphael Neider <rneider AT web.de>
5346
5347         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
5348           bug #1492360 (problematic due to generic pointers, see code)
5349
5350 2006-05-22 Borut Razem <borut.razem AT siol.net>
5351
5352         * support/regression/ports/pic16/specs.mk: removed stack size linker
5353           directive
5354         * support/regression/tests/array.c,
5355           support/regression/tests/bitopcse.c,
5356           support/regression/tests/bug-908454.c,
5357           support/regression/tests/malloc.c: modified for pic16 regression test
5358         * support/regression/tests/bitfields.c:
5359           pic16 - excluded bitfileds of size > 8
5360         * support/regression/tests/bp.c: pic16 - reduced data size
5361         * support/regression/tests/bug-221100.c: pic16 - reduced data size
5362         * support/regression/tests/bug-460010.c:
5363           pic16 - used the absolute address the fits in memory
5364         * support/regression/tests/bug-716242.c:
5365           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
5366         * support/regression/tests/float.c:
5367           pic16 - excluded - data size too big
5368         * support/regression/tests/onebyte.c:
5369           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
5370         * support/regression/tests/shifts.c:
5371           pic16 - function names probably have to differ in first X characters
5372           (gpasm limitation?)
5373         * support/regression/tests/staticinit.c:
5374           pic16 - excluded some tests due error: no target memory available for
5375           section ".idata"
5376
5377 2006-05-22 Borut Razem <borut.razem AT siol.net>
5378
5379         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5380           second try. Thanks Stas Sergeev once more.
5381
5382 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
5383
5384         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
5385           (genLeftShift, genRightShift): fixed bug 1491627
5386         * src/hc08/peeph.def (rules 7, 8.x): added
5387         * support/regression/tests/shifts.c (ShiftLeftByParam,
5388           ShiftRightByParam, testShiftByParam): added to test variable shifting
5389
5390 2006-05-20 Raphael Neider <rneider AT web.de>
5391
5392         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
5393         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
5394           (allocReg): add only new registers to dynAllocRegs,
5395           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
5396             #1489055, #1445850, and probably #1483693
5397
5398 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
5399
5400         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
5401         bug in for-loop that didn't emit the last of CONFIG and ID registers
5402
5403 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
5404
5405         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
5406           with offset
5407         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
5408           1489016, 1434401 and 1490124
5409         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
5410           1489016, 1434401 and 1490124
5411
5412 2006-05-17 Borut Razem <borut.razem AT siol.net>
5413
5414         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
5415           thanks Stas Sergeev
5416
5417 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5418
5419         * device/include/mcs51/P89c51RD2.h,
5420         * device/include/mcs51/P89LPC901.h,
5421         * device/include/mcs51/P89LPC922.h,
5422         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
5423
5424 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5425
5426         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
5427         to fix missing stack pragma in compiled binary object file,
5428
5429 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
5430
5431         * support/packihx/configure.in,
5432         * support/packihx/configure: removed warning, autoconf >= 2.5x can
5433         determine sizeof basic types even while cross compiling
5434
5435 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
5436
5437         * src/avr/gen.c (aopop),
5438         * src/ds390/gen.c (aopOp),
5439         * src/hc08/gen.c (aopOp),
5440         * src/mcs51/gen.c (aopop),
5441         * src/pic16/gen.c (pic16_aopOp),
5442         * src/pic/gen.c (aopOp),
5443         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
5444         if size of operand is smaller than spill location
5445
5446 2006-05-12 Borut Razem <borut.razem AT siol.net>
5447
5448         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
5449           have to have CR/LF line endings even if they are checked out on *nix
5450           or on WIN32 in cygwin binmode
5451
5452 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
5453
5454         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
5455         * device/include/ds80c390.h: added sfr16 definitions
5456         * src/ds390/gen.c,
5457         * src/ds390/gen.h,
5458         * src/ds390/main.c,
5459         * src/ds390/ralloc.c,
5460         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
5461           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
5462           bit returning functions
5463         * support/regression/tests/sfr16.c: enabled test on ds390
5464
5465 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5466
5467         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
5468         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
5469
5470 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
5471
5472         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
5473         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
5474           (cl_address_space constructor): removed expensive initialization,
5475           (cl_address_space::get_cell): extended for late initialization,
5476           (cl_address_space::*): use late initialization,
5477           (cl_address_decoder::activate): removed expensive initialization,
5478           This reduced regression test running time by 25%
5479
5480 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
5481
5482         * packihx/,
5483         * configure.in,
5484         * configure,
5485         * sdcc.dsw,
5486         * Makefile.bcc,
5487         * Makefile.in,
5488         * support/packihx/Makefile.in,
5489         * support/packihx/clean.mk,
5490         * support/packihx/Makefile.bcc,
5491         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
5492
5493 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5494
5495         * src/SDCCval.c (valNot): fix for regression test failure
5496           of not.c on big endian hosts
5497
5498 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5499
5500         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
5501
5502 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5503
5504         * device/lib/mcs51/Makefile.in: changed string comparison operator
5505           to = for POSIX compliance; == is bash extension
5506
5507 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
5508
5509         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
5510           kosmonaut_pirx
5511
5512 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
5513
5514         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
5515         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
5516         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
5517         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
5518         bug report #1478657,
5519
5520 2006-05-05 Borut Razem <borut.razem AT siol.net>
5521
5522         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
5523           making the html
5524
5525 2006-05-02 Borut Razem <borut.razem AT siol.net>
5526
5527         * doc/Makefile.in: removed *.ind dependency since there is no rule to
5528           create *.ind, which made make to fail if invoked with -j 2
5529
5530 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
5531
5532         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
5533           Hubert Sack for patch 1479782
5534
5535 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
5536
5537         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
5538
5539 2006-05-01 Raphael Neider <rneider AT web.de>
5540
5541         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
5542           (create_pic): store only prefix-free device name,
5543           (init_pic): check for device names with "16" prefix,
5544           (list_valid_pics),
5545         * src/pic/device.h (struct PIC_device),
5546         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
5547             stored device name,
5548         * device/include/pic/pic12f{635,675,629,683}.h,
5549         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
5550         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
5551         * device/include/pic/pic16f505.h,
5552         * device/lib/pic/libdev/pic16f505.c: removed
5553         * device/include/pic/pic14devices.txt: added support for pic12f
5554             devices, removed unsupported non 16-bit devices
5555             [above changes provided by patch from Zik Saleeba]
5556         * src/pic/*, src/pic16/*, device/include/pic16/*,
5557           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
5558
5559 2006-05-01 Borut Razem <borut.razem AT siol.net>
5560
5561         * configure.in, configure, doc/Makefile.in:
5562           sync with nightly build makefile - latex, dvipdf and dvips
5563           not needed any more
5564
5565 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
5566
5567         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
5568         in the library source
5569
5570 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
5571
5572         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
5573
5574 2006-04-28 Raphael Neider <rneider AT web.de>
5575
5576         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
5577         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
5578           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
5579         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
5580
5581 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
5582
5583         * device/lib/pic/libdev/Makefile.in,
5584         * device/lib/hc08/Makefile.in,
5585         * device/lib/gbz80/Makefile.in,
5586         * device/lib/z80/Makefile.in,
5587         * device/lib/ds390/Makefile.in,
5588         * device/lib/ds400/Makefile.in: added srcdir to include search path,
5589         thanks to Borut for the bug report
5590         * configure.in,
5591         * configure: always create doc/Makefile independent from --enable-doc
5592         * Makefile.in: always install from directory doc independent from
5593         --enable-doc
5594         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
5595         removed
5596         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
5597         * doc/Makefile.in: install *.txt if present
5598         * device/include/Makefile.in (install): added installation of pic/*.inc
5599         and pic/*.txt files again, they were erroneously removed
5600
5601 2006-04-28 Raphael Neider <rneider AT web.de>
5602
5603         * src/pic/{gen.c,main.h,pcode.c},
5604         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
5605             concerning signedness with casts
5606
5607 2006-04-28 Raphael Neider <rneider AT web.de>
5608
5609         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
5610             definition of an interrupt handler,
5611         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
5612             interrupt handler stuff from picglue() to separate routine,
5613           (picglue): enabled definition of intr handlers in files w/o main()
5614
5615 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5616
5617         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
5618           compilation with MSVC 2005 Express Edition (VC8)
5619
5620 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
5621
5622         * device/lib/Makefile: fixed build of gbz80 lib
5623
5624 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
5625
5626         * support/regression/tests/bug-460010.c,
5627         * support/regression/tests/bug-524691.c,
5628         * support/regression/tests/bug-716242.c: removed conditional defines
5629           that are already in testfwk.h
5630
5631 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
5632
5633         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
5634           (AccAXRsh1): added, shift right by 1,
5635           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
5636            AccAXLrl1
5637         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
5638
5639 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
5640
5641         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
5642         remove cast to same type
5643         * src/SDCCast.c (decorateType): fix for RFE 1475742,
5644         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
5645         * as/z80/Makefile,
5646         * link/z80/Makefile: removed, they have moved to
5647         Makefile.in files
5648         * configure,
5649         * configure.in: replaced duplicate message about ucsim by missing sdcpp
5650         * install-sh: fix bug #1204398 by setting umask 0022
5651         * device/lib/Makefile: separate build of z80 and gbz80 lib
5652
5653 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
5654
5655         Enabled VPATH feature: changed nearly all Makefiles (149 files).
5656         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
5657
5658         One basic decision: e.g. src/clean.mk includes further files. In order
5659         to make this work there are two solutions:
5660         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
5661           run configure on them. This way they can use
5662           'include $(srcdir)/port-clean.mk'
5663         - always include clean.mk by the Makefile at the same level. To avoid
5664           that `make clean` tries to include and build Makefile.dep the
5665           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
5666           implemented, because now even `make uninstall` doesn't create
5667           Makefile.in. clean.mk could be eliminated by pasting it in
5668           Makefile.in.
5669
5670         * debugger/mcs51/Makefile.in: build own objects from library sources
5671         (SLIB, SDCC) in current directory
5672
5673         * configure, configure.in: renamed --disable-device-lib-build in
5674         --disable-device-lib; added --enable-doc, the required tools are
5675         searched by configure; added result message; the toolchain for the
5676         belonging ports are now only built, if the port is enabled.
5677
5678         * support/regression/*: all output is written in directory gen, because
5679         the fwk and ports directories don't livet in the build tree using vpath
5680
5681         * doc/sdccman.lyx: renamed --disable-device-lib-build to
5682         --disable-device-lib, added --enable-doc, added section VPATH
5683
5684         * sim/ucsim/configure.in,
5685         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
5686         z80 are enabled by default
5687
5688 2006-04-24 Raphael Neider <rneider AT web.de>
5689
5690         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
5691             to config word, "pic14_"-prefixed some extern functions
5692           (pic14_emitConfigWord): emit __config directive(s) if assignment to
5693             config word has been found
5694         * src/pic/device.h: added prototypes
5695         * src/pic/pcode.c: added "pic14_"-prefix where needed
5696         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
5697             fixup
5698         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
5699             words,
5700           (pic14emitRegularMap): ignore config words,
5701           (pic14createInterruptVect): moved generating __config directives away
5702           (picglue): have __config directives emitted
5703
5704 2006-04-24 Borut Razem <borut.razem AT siol.net>
5705
5706         * doc/Makefile: sync with nightly build makefile
5707
5708 2006-04-24 Raphael Neider <rneider AT web.de>
5709
5710         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
5711             registers that have not been assigned proper liveranges,
5712             fixes #1469504 and #1474602,
5713           (pCodeRegOptimizeRegUsage): fixed typo in comment
5714
5715 2006-04-24 Borut Razem <borut.razem AT siol.net>
5716
5717         * device/examples/main8051.c: deleted - it was removed from CVS
5718           24.mar.2000 and after that modified 18.feb.2001, so it reappered
5719           after the transition to Subversion
5720         * src/SDCCalloc.h: deleted - it was removed  from CVS
5721           3.feb.2001 and after that modified 18.feb.2001, so it reappered
5722           after the transition to Subversion
5723         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
5724           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
5725           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
5726           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
5727
5728 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
5729
5730         * as/asx8051.dsp: added mcs51/strcmpi.h
5731         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
5732         * as/hc08/aslink.h: updated lnksect prototype
5733         * as/hc08/asm.h,
5734         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
5735         * as/hc08/asmain.c,
5736         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
5737           (newdot): handle A_ABS
5738         * as/hc08/asout.c,
5739         * as/mcs51/asout.c (outarea): output address
5740         * as/hc08/lkaomf51.c,
5741         * as/mcs51/lkaomf51.c: disabled unused array UsageType
5742         * as/hc08/m08pst.c,
5743         * as/mcs51/i51pst.c,
5744         * as/z80/z80pst.c: "ABS" is not A_OVR
5745         * as/hc08/lkarea.c (newarea): read a_addr,
5746           (lnkarea): added codemap array, sort absolute areas to the front,
5747            combine all GSINITx/GSFINAL,
5748           (find_empty_space, allocate_space): new functions,
5749           (lnksect): return next address, handle absolute sections
5750         * as/mcs51/lkarea.c (newarea): read a_addr,
5751           lnksect2 prototype changed,
5752           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
5753           (find_empty_space, allocate_space): new, factored out of lnksect2,
5754           (lnksect2): return next address, handle absolute sections
5755         * as/hc08/lkhead.c,
5756         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
5757         * as/hc08/lklibr.c (addfile, fndsym),
5758         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
5759           index out of range and detect both '\' and '/'
5760         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
5761         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
5762           regression tests (ds390 cannot return bool yet)
5763         * doc/sdccman.lyx: changed version number, document changed --no-peep,
5764           document critical interrupts on z80, document changed SDCC define
5765         * src/asm.c (_asxxxx_mapping): fixed .org directive,
5766           (_a390_mapping): added .org directive
5767         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
5768           (genMultOneByte): fixed warnings
5769         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
5770           ones
5771         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
5772         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
5773           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
5774         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
5775         * src/pic16/main.c: removed newReg prototype
5776         * src/pic16/pcode.c,
5777         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
5778           warnings
5779         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
5780           ones
5781         * src/pic16/ralloc.c
5782         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
5783           to fix warnings
5784         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
5785           from short to PIC_OPTYPE
5786         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
5787         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
5788           optype from short to PIC_OPTYPE
5789         * src/port.h: made int_size unsigned to fix warnings
5790         * src/SDCC.y: fixed warning on MSVC
5791         * src/SDCCicode.c (getArraySizePtr): return unsigned int
5792         * src/SDCCopt.c (convertToFcall): fixed warnings
5793         * src/SDCCsymt.h: removed double prototype for genSymName
5794         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
5795           offset int to fix warnings
5796
5797 2006-04-22 Borut Razem <borut.razem AT siol.net>
5798
5799         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5800           references to CVS replaced with Subversion
5801
5802 2006-04-21 Borut Razem <borut.razem AT siol.net>
5803
5804         * doc/sdccman.lyx, */Makefile, */Makefile.in:
5805           references to CVS replaced with Subversion
5806
5807 2006-04-19 Borut Razem <borut.razem AT siol.net>
5808
5809         * src/version.awk: adapted for svn
5810         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
5811           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
5812           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
5813           /binutils-avr/etc/*.vi, *.jin: removed all properties
5814           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
5815
5816 2006-04-19 Borut Razem <borut.razem AT siol.net>
5817
5818         * CVS to Subversion migration completed
5819
5820 2006-04-18 Borut Razem <borut.razem AT siol.net>
5821
5822         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}/lib/pic/*.o,
5823           ${DEV_ROOT}/lib/src/pic/libdev/*.S, ${DEV_ROOT}/lib/src/pic/libdev/*.inc
5824
5825 2006-04-17 Borut Razem <borut.razem AT siol.net>
5826
5827         * device/include/Makefile.in: added pic/*.inc to the installation
5828
5829 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
5830
5831         * support/regression/collate-results.py: fixed output in case of
5832         a valdiag error
5833         * support/regression/generate-cases.py: fixed splitting of pathnames
5834         with dots
5835         * as/hc08/lklibr.c (addfile),
5836         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
5837
5838 2006-04-11 Raphael Neider <rneider AT web.de>
5839
5840         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
5841         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
5842         * src/pic16/pcode.c (assignValnums): fixed #1460578
5843
5844 2006-04-11 Raphael Neider <rneider AT web.de>
5845
5846         * device/lib/pic/libdev/*.c,
5847         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
5848           fixes #1468739, enables compilation in --std-c99 mode
5849         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
5850
5851 2006-04-11 Raphael Neider <rneider AT web.de>
5852
5853         * src/pic/device.c (find_device): removed debug output
5854           (list_valid_pics): enabled verbose listing of supported devices
5855         * device/include/stdbool.h: define bool as char for pic14/16 as well
5856
5857 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5858
5859         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
5860
5861 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
5862
5863         * .version: bumped version to 2.5.6
5864         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
5865
5866 2006-04-06 Raphael Neider <rneider AT web.de>
5867
5868         * .version: bumped version to 2.5.6 (pic14 ABI changed)
5869         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
5870         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
5871           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
5872             pic14_constructAbsMap
5873           (pic14printPublics): declare absolute global symbols as global
5874           (pic14createInterruptVect),
5875         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
5876           (newReg): assume new registers unused, use correct name in
5877             hashtable (reg->name instead of name), more debugLog output
5878         * src/pic/device.h (PIC_device): added fields for verbose output
5879         * src/pic/device.c: moved device definition to pic14devices.txt,
5880             added routines for runtime parsing of pic14devices.txt,
5881             added support for second config word
5882         * src/pic/main.c (_process_pragma): removed #pragma maxram,
5883           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
5884           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
5885           (_pic14_parseOptions): moved pCodeInitRegisters here
5886           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
5887         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
5888           (pCodeInitRegisters): rewrapped comments, perpared new approach to
5889             handling the pseudo stack
5890         * device/lib/Makefile.in: ignore failures in objects-pic16,
5891         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
5892         * device/lib/pic/NEWS: document new dependency on picXXX.lib
5893         * device/lib/pic/Makefile.subdir,
5894         * device/lib/pic16/Makefile.subdir: improved clean rules
5895         * device/lib/pic/libdev/: NEW, pic14 device libraries
5896         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
5897         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
5898         * device/include/Makefile.in: create subdir and install pic14 headers
5899         * device/include/pic/p16f_common.inc: removed unused declarations
5900         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
5901             PICs from inc2h.pl v1.6,
5902             replaced BIT_AT macros with struct declarations
5903         * device/include/pic/pic14devices.txt: definition of supported devices,
5904             all above improvements contributed by Zik Saleeba, thanks
5905         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
5906         * support/scripts/sdcc.nsi: also install pic14 device libraries and
5907             headers
5908
5909 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5910
5911         * device/include/mcs51/c8051f410.h: added interrupt numbers,
5912         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
5913           thanks to Charles Olds
5914
5915 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5916
5917         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
5918
5919 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
5920
5921         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
5922         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
5923         * support/regression/bug1464657.c: added, new test
5924
5925 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5926
5927         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
5928           version number
5929
5930 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5931
5932         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
5933           --no-peep and --peep-file <file> are used don't use default rules but
5934           do use the <file>
5935
5936 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
5937
5938         * src/mcs51/gen.c (genCall): fixed bug 1457608
5939
5940 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5941
5942         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
5943         changes seem to cause (trigger?) problems with the build system.
5944
5945 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
5946
5947         * src/SDCCpeeph.c (operandsLiteral): new, added,
5948           (callFuncByName): inserted operandsLiteral
5949         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
5950
5951 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5952
5953         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
5954         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
5955
5956 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
5957
5958         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
5959           implemented patch 1120823 Thanks to Willy De la Court (normal
5960           interrupts need an interrupt number now if they are made critical),
5961           and enabled nesting of critical functions though not for gbz80
5962           (genCritical, genEndCritical): added functions
5963           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
5964         * src/z80/mappings.i: added "ei" to all mappings
5965
5966 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5967
5968         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
5969         submitted by the Debian SDCC maintainer Aurelien Jarno:
5970         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
5971         archive with gcc 4.1 on mips and wrote the patch"
5972
5973 2006-03-16 Raphael Neider <rneider AT web.de>
5974
5975         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
5976           the left operand is shorter than the result (c* = lit-c* + int),
5977           fixes bug #1450796
5978         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
5979           OP_SYMBOL
5980
5981 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
5982
5983         * src/.version: increased version number to 2.5.5
5984         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
5985         linking is done manually in pic16 port's _linkEdit,
5986         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
5987         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
5988         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
5989         allocate asmop as AOP_ACC,
5990         (aopForRemat): added parameter 'bool result' in function declaration,
5991         (pic16_aopGet): return AOP_ACC when accessing WREG,
5992         (pic16_popGetTempReg): minor modification,
5993         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
5994         'pic16_allocWithIdx',
5995         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
5996         calling function in absolute addresses,
5997         (genAssign): take into account AOP_ACC asmop,
5998         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
5999         * src/pic16/pcoderegs.c: some debug functions and lines added,
6000         * src/pic16/ralloc.c (decodeRegType): added but commented out,
6001         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
6002         register too,
6003         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
6004         call to allocReg, not by manually allocating a new one,
6005         (pic16_assignRegisters): now before going through the register
6006         allocating functions mark all registers as free. This eliminates some
6007         side effects resulting from peephole parser done earlier in the backbone
6008
6009 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
6010
6011         * src/SDCCicode.c (geniCodeLogic),
6012         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
6013
6014 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
6015
6016         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
6017           (genSend): bugfix, do not allocate and free twice,
6018           (shiftRLong): handle partially overlapping aops
6019         * support/regression/tests/bitopcse.c: fixed warning redefined idata
6020
6021 2006-03-08 Borut Razem <borut.razem AT siol.net>
6022
6023         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
6024           for pic16
6025
6026 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
6027
6028         * support/regression/tests/bug1409955.c: new, added
6029         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
6030         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
6031           (aopForSym, aopOp): increment asmop.allocated if reused,
6032           (freeAsmop): decrement asmop.allocated and check for zero instead of
6033           using asmop.freed,
6034           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
6035           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
6036            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
6037            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
6038            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
6039            genSignedRightShift, genRightShift, genDataPointerGet,
6040            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
6041            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
6042             in reverse order from allocation,
6043           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
6044             added swappedLR to keep track
6045         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
6046           pdata & code for GCC, z80, gbz80 & hc08
6047         * support/regression/tests/zeropad.c: moved defines to testfwk.h
6048
6049 2006-03-08 Raphael Neider <rneider AT web.de>
6050
6051         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
6052
6053 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
6054
6055         * device/include/mcs51/c8051f410.h: new SiLabs mcu
6056         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
6057         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
6058
6059 2006-03-06 Borut Razem <borut.razem AT siol.net>
6060
6061         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
6062           made the linker quiet
6063
6064 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
6065
6066         * src/pic16/gen.c (genPcall): fixed bug #1443644
6067         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
6068         which dumps before the function entry point a data byte which represents
6069         the number of the local variables used by the specified function, added
6070         'xinst' for initial support for Extended Instruction Support,
6071         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
6072         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
6073         port->fun_prefix anymore (may change later),
6074         (genFunction, genEndFunction): do not store/restore local registers for
6075         _main (this should take care the --main-return command line option in
6076         the future),
6077         (genOr): removed some legacy pic-port instructions,
6078         * src/pic16/genarith.c (genAddLit): re-enabled old code because
6079         performing operations with SFR's causes data to be written more than
6080         once to each SFR. Perhaps SFRs should be handled in special cases...
6081         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
6082         pcode.h
6083         * src/pic16/main.c (_process_pragma): stack bound checking did not take
6084         into account for stack starting position,
6085         (struct OPTIONS pic16_optionsTable): added command line argument
6086         --extended or -y for Extended Instruction Support,
6087         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
6088         (deassignLRs): *** perhaps the most important change, old 'for' code
6089         (commented out for reference), didn't account for some registers which
6090         were left marked 'not free' after a pointer operation. The change
6091         reduces register usage a lot in some cases
6092
6093 2006-03-04 Borut Razem <borut.razem AT siol.net>
6094
6095         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
6096           _clean
6097         * support/regression/tests/bug-524697.c: decreased array size for
6098           mcs51 to fit into the internal RAM
6099         * support/regression/Makefile.in: a little bit more verbose
6100
6101 2006-03-03 Borut Razem <borut.razem AT siol.net>
6102
6103         * support/regression/fwk/lib/testfwk.c,
6104           support/regression/fwk/include/testfwk.h: introduced function
6105           _prints(), nonrecursive _printn(), call _initEmu() from main()
6106         * support/regression/ports/gbz80/support.asm,
6107           support/regression/ports/ucz80/support.asm,
6108           support/regression/ports/z80/support.asm,
6109           support/regression/ports/ds390/support.c,
6110           support/regression/ports/hc08/support.c,
6111           support/regression/ports/host/support.c,
6112           support/regression/ports/mcs51/support.c,
6113           support/regression/ports/xa51/support.c: added empty _initEmu()
6114           function
6115         * support/regression/ports/pic16/gpsim.cmd,
6116           support/regression/ports/pic16/spec.mk,
6117           support/regression/ports/pic16/support.c,
6118           support/regression/Makefile.in: added pic16 regression test
6119
6120 2006-03-01 Raphael Neider <rneider AT web.de>
6121
6122         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
6123           genConstPointerGet): use safe way of generating MOVFF to cover
6124             literals as well as registers, fixes bug #1440527
6125         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
6126             dereference
6127           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
6128             more correctly, fixes bug #1232186
6129           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
6130         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
6131             gplink guess the correct processor in more cases, applied patch
6132             from Till Riedel attached to and fixing bug #1436552
6133
6134 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6135
6136         * support/regression/tests/array.c: added, contains check for #1434401
6137         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
6138
6139 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
6140
6141         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
6142         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
6143         * device/include/mcs51/c8051f326.h,
6144         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
6145         * device/include/mcs51/c8051f000.h,
6146         * device/include/mcs51/c8051f018.h,
6147         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
6148           PCON_IDLE,PCON_STOP and added sfr16 definitions
6149
6150 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6151
6152         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
6153           genGetWord): fixed bug 1409955
6154
6155 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
6156
6157         * device/include/hc08/mc68hc908gp32.h,
6158         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
6159
6160 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
6161
6162         * src/SDCCast.c (constExprValue): return NULL if not a value
6163         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
6164         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
6165         * support/regression/tests/bitfields.c: enabled signed bitfield for all
6166
6167 2006-02-13 Borut Razem <borut.razem AT siol.net>
6168
6169         * src/regression/ptrarg.c: added, fails due to bug #1430967
6170         * src/regression/Makefile: ptrarg.c added, ...
6171
6172 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
6173
6174         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
6175         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
6176
6177 2006-02-11 Borut Razem <borut.razem AT siol.net>
6178
6179         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
6180           print "Processor: xxx" message to stdout only if --verbose
6181
6182 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
6183
6184         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
6185         * support/regression/tests/bug1426356.c: added
6186         * support/regression/tests/bitfields.c: removed 2 tests
6187
6188 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
6189
6190         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
6191         * device/include/mcs51/c8051f330.h,
6192         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
6193           PCON_IDLE,PCON_STOP and added sfr16 definitions
6194         * device/lib/_divsint.c,
6195         * device/lib/_divuint.c,
6196         * device/lib/_divulong.c,
6197         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
6198           register bank bug for small stackauto
6199
6200 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
6201
6202         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
6203
6204 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
6205
6206         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
6207         * all.dsp: corrected several bin paths
6208         * device/include/mcs51/c8051f120.h,
6209         * device/include/mcs51/c8051f300.h,
6210         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
6211           to PCON_IDLE,PCON_STOP
6212         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
6213         * device/lib/printf_large.c (output_float): fixed bug 1388703
6214         * support/regression/tests/bug1057979.c: added test for bug 1388703
6215
6216 2006-02-08 Raphael Neider <rneider AT web.de>
6217
6218         * src/pic/pcode.c (pciTRIS): fixed typo,
6219           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
6220           (LinkFlow): fixed handling of flows that end in a call,
6221           (ReuseReg): perform safety check earlier
6222         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
6223             to work with flows at the beginning of a pBlock,
6224             fixes #1426557 (Symbol not previously defined),
6225           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
6226             usage information
6227           (RemoveUnusedRegisters): update register usage info
6228         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
6229             created, reuse existing ones instead
6230         * src/pic/gen.c (genPcall): fixed #1424719
6231
6232 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
6233
6234         * link/z80/lkmain.c,
6235         * link/z80/lklex.c,
6236         * link/z80/lkdata.c,
6237         * link/z80/aslink.h: fixed build on current cygwin:
6238         replaced getline() by lk_getline()
6239
6240 2006-02-01 Borut Razem <borut.razem AT siol.net>
6241
6242         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
6243           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
6244           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
6245           src/regression/bool1.c, src/regression/bool2.c,
6246           src/regression/bool3.c, src/regression/call1.c,
6247           src/regression/compare.c, src/regression/compare10.c,
6248           src/regression/compare2.c, src/regression/compare3.c,
6249           src/regression/compare4.c, src/regression/compare5.c,
6250           src/regression/compare6.c, src/regression/compare7.c,
6251           src/regression/compare8.c, src/regression/compare9.c,
6252           src/regression/configword.c, src/regression/for.c,
6253           src/regression/inline.c, src/regression/mult1.c,
6254           src/regression/nestfor.c, src/regression/or1.c,
6255           src/regression/pointer1.c, src/regression/ptrfunc.c,
6256           src/regression/rotate1.c, src/regression/rotate2.c,
6257           src/regression/rotate3.c, src/regression/rotate4.c,
6258           src/regression/rotate5.c, src/regression/rotate6.c,
6259           src/regression/rotate7.c, src/regression/string1.c,
6260           src/regression/struct1.c, src/regression/sub.c,
6261           src/regression/sub2.c, src/regression/switch1.c,
6262           src/regression/while.c, src/regression/xor.c,
6263           src/regression/create_stc, src/regression/simulate,
6264           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
6265           regression tests
6266         * src/regression/gpsim_assert.h: added
6267
6268 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
6269
6270         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
6271         ((void (code *) (void)) 0) ();
6272         * as/hc08/aslex.c,
6273         * as/hc08/aslink.h,
6274         * as/hc08/asm.h,
6275         * as/hc08/asmain.c,
6276         * as/hc08/lkdata.c,
6277         * as/hc08/lklex.c,
6278         * as/hc08/lkmain.c,
6279         * as/mcs51/aslex.c,
6280         * as/mcs51/aslink.h,
6281         * as/mcs51/asm.h,
6282         * as/mcs51/asmain.c,
6283         * as/mcs51/lkdata.c,
6284         * as/mcs51/lklex.c,
6285         * as/mcs51/lkmain.c,
6286         * as/z80/aslex.c,
6287         * as/z80/asm.h,
6288         * as/z80/asmain.c: fixed build on current cygwin:
6289         replaced getline() by as_getline()
6290
6291 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6292
6293         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
6294         declarator in the symbol chain
6295         * src/SDCCsymt.h,
6296         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
6297         parameter list for function pointers
6298         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
6299         * support/regression/tests/bug-716242.c: added
6300
6301 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6302
6303         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
6304         offset if possible
6305         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
6306
6307 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6308
6309         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
6310         inifinitely recurseable, added static
6311         * support/regression/tests/bug-1408066.c: added
6312
6313 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
6314
6315         * src/SDCCicode.h,
6316         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
6317         renamed, added possibility to create "postLoopLbl"-labels
6318         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
6319         newiTempLoopHeaderLabel
6320         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
6321         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
6322         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
6323         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
6324         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
6325         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
6326         (basicInduction): fixed bug #136564, made static,
6327         (loopInduction): changed parameter of basicInduction, made static,
6328         (addPostLoopBlock): added
6329         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
6330         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
6331         findLoopEndSeq
6332         * support/regression/tests/bug-136564.c: added
6333         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
6334         --std-sdcc99 to LIBSDCCFLAGS
6335
6336 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
6337
6338         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
6339         while loop
6340         * support/regression/tests/bug-1406131.c: added
6341
6342 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
6343
6344         * src/SDCCast.c (decorateType): fix promotion of unary minus
6345         * src/SDCCsymt.c (computeType): beautified
6346         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
6347         (valUnaryPM, valComplement): fix sign and promotion,
6348         (valNot): ANSI: result type is int (SDCC: unsigned char)
6349         * support/regression/tests/uminus.c: speedup by removing superflous
6350         test case 'int'
6351         * support/regression/tests/onebyte.c: added promotion and signedness
6352         tests for unary minus
6353         * support/regressions/tests/bug-477927.c: disable warning about
6354         uninitialized variables
6355         * support/regression/tests/not.c: added
6356
6357 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
6358
6359         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
6360         * src/mcs51/gen.c (gen51Code): show final register usage after
6361         fillGaps in asm with --i-code-in-asm
6362         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
6363         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
6364         incUsed, rliveClear, adjustIChain): made static,
6365         (setFromRange): excluded because it's unused,
6366         (findPrevUseSym, markWholeLoop): added,
6367         (findPrevUse): rewritten; fixes bug 895992; now a complete search
6368         through all branches of predecessors enables sdcc to emit the warning
6369         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
6370         (rlivePoint): made static, added parameter emitWarnings which is only
6371         true during the first run out of two,
6372         (findRecursiveSucc, findRecursivePred): removed,
6373         (computeLiveRanges): made static, added parameter emitWarnings,
6374         (dumpIcRlive): added for debugging only
6375         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
6376         removed prototype of setFromRange()
6377         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
6378         in call of computeLiveRanges()
6379         * support/regression/tests/bug-895992.c: added
6380         * support/regression/tests/bug-971834.c: added
6381         * support/valdiag/tests/bug-895992.c: added
6382         * support/valdiag/tests/bug-971834.c: added
6383
6384 2005-12-18 Raphael Neider <rneider AT web.de>
6385
6386         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
6387           (genUnpackBits): improved code for direct operands,
6388           (genPackBits): improved code for literal assignment to bitfields
6389             and for direct destination operands (no FSR indirection),
6390             prevented redundant AND, fixes #1362800,
6391           (AccLsh): added parameter to disable masking of the result
6392         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
6393           skip instructions with side-effects (like incfsz),
6394           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
6395         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
6396         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
6397           fixes #1375263
6398
6399 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
6400
6401         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
6402         volatile variables as spill location
6403
6404 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
6405
6406         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
6407         replacing literals
6408         * support/regression/tests/bug-1376320.c: added
6409
6410 2005-12-08 Raphael Neider <rneider AT web.de>
6411
6412         * src/pic/device.c: renamed is_shared to pic14_is_shared
6413         * src/pic/gen.c (genIfx): re-enabled handling of sbits
6414         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
6415           (is_valid_identifier): added for above workaround
6416
6417 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
6418
6419         * device/lib/Makefile.in: fixed to enable port-specific-objects
6420         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
6421           char, thanks Hubert Sack
6422         * doc/sdccman.lyx: documented --xstack-loc,
6423           elaborated a bit more on interrupts and pitfalls,
6424           removed "setjmp/longjmp unsupported",
6425           documented some unsupported C99 features
6426         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
6427         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
6428           if, thanks Hubert Sack
6429         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
6430         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
6431           make make_library
6432         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
6433           regression tests can report resource usage (rfe 700441)
6434         * support/regression/collate-results.py: report resource usage
6435         * support/regression/ports/ds390/spec.mk,
6436         * support/regression/ports/hc08/spec.mk,
6437         * support/regression/ports/mcs51/spec.mk,
6438         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
6439         * support/regression/ports/ds390/uCsim.cmd,
6440         * support/regression/ports/hc08/uCsim.cmd,
6441         * support/regression/ports/mcs51/uCsim.cmd,
6442         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
6443         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
6444           library, use the default one
6445         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
6446           building the library
6447
6448 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
6449
6450         * config.dsp: added dependency on .version and configure_vc.awk
6451         * device/include/setjmp.h: updated for --stack-auto and --xstack
6452         * device/include/mcs51/at89c51snd1c.h: corrected line endings
6453         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
6454         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
6455         * device/lib/libsdcc.lib: added _setjmp
6456         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
6457           (decorateType): fixed bug 1372851,
6458           (optimizeGetHbit): fixed warning
6459         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
6460           array initialisation
6461         * support/regression/tests/bug1057979.c: added test for bug 1358192
6462         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
6463
6464 2005-12-03 Borut Razem <borut.razem AT siol.net>
6465
6466         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
6467           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
6468
6469 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6470
6471         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
6472         createIval): implement symbol independant "flexible array member",
6473         (createIvalCharPtr): implemented flexible array initialisation with a
6474         string
6475         * src/SDCCsymt.c (copyStruct): removed,
6476         (getSize): fixed misleading comment,
6477         (getAllocSize): removed, the additional allocation size is now in
6478         sym->flexArrayLength,
6479         (checkStructFlexArray): new, syntax checks for flexible array members,
6480         (compStructSize): added syntax checks for "flexible array members"
6481         (copyStruct): removed,
6482         (copyLinkChain): removed inefficient fix for bug 770487
6483         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
6484         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
6485         symbol->flexArrayLength
6486         * src/SDCCerr.c,
6487         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
6488         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
6489         * support/regression/tests/structflexarray.c: added
6490         * support/valdiag/tests/structflexiblearray.c: added
6491
6492 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
6493
6494         * src/SDCCast.c (decorateType): fixed bug 1368489
6495         * support/Util/SDCCerr.c,
6496         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
6497
6498 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6499
6500         * device/include/mcs51/at89c51snd1c.h: added file submitted by
6501           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
6502
6503 2005-11-27 Borut Razem <borut.razem AT siol.net>
6504
6505         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
6506           support/cpp2/mkdeps.h: added command line option
6507           -obj-ext=<extension> to SDCPP to define object file externion, used
6508           for generation of make dependencies (-M)
6509         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
6510
6511 2005-11-26 Borut Razem <borut.razem AT siol.net>
6512
6513         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
6514           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
6515           added pic and pic16 libraries
6516
6517 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6518
6519         * device/include/float.h: Corrected typo in prototype of __fsgt
6520
6521 2005-11-25 Borut Razem <borut.razem AT siol.net>
6522
6523         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
6524           added creation of model-mcs51-stack-auto libraries
6525
6526 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
6527
6528         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
6529         and fields-list too
6530         * src/SDCCast.c (createIvalArray): removed obsolete comment
6531
6532 2005-11-24 Borut Razem <borut.razem AT siol.net>
6533
6534         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
6535           added missing device/lib/mcs51/crt*.asm sources
6536
6537 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
6538
6539         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
6540
6541 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
6542
6543         * device/lib/_fs2schar.c,
6544         * device/lib/_fs2sint.c,
6545         * device/lib/_fs2slong.c: optimized inline asm
6546
6547 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6548
6549         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6550           Better handling of floats between -1.0 and 0.0.
6551
6552 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6553
6554         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
6555           (the missing "if"s prohibited removal of redundant labels)
6556
6557 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6558
6559         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
6560           Properly convert floats between -1.0 and 0.0 to long, int, and char
6561           types (max integer value of negative floats tends to zero).
6562         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6563           Removed changes made so to work properly with floats between
6564           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
6565           and _fs2char.c
6566
6567 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6568
6569         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
6570         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
6571         (genCast) cosmetic change
6572         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
6573         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
6574         from mcs51
6575         * support/regression/tests/bitfields (testSignedBitfields): added
6576
6577 2005-11-18 Borut Razem <borut.razem AT siol.net>
6578
6579         * sdcc/device/lib/Makefile.in: remove all unnecessary files
6580         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
6581           introduced SILENT option to make building of pic16 libraries less
6582
6583 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6584
6585         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
6586           Now they work properly with floats between -1.0 and 0.0
6587         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
6588
6589 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
6590
6591         * src/SDCCicode.c (printOperand): added missing else
6592
6593 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
6594
6595         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
6596         reformatted for better readability
6597         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
6598         signed bitfields
6599
6600 2005-11-17 Borut Razem <borut.razem AT siol.net>
6601
6602         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
6603           introduced SILENT option to make building of pic16 libraries less
6604           verbose - used for nightly snapshot build
6605         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
6606           available on Win32 platforms.
6607         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
6608           medium, large, pic and pic16
6609
6610 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6611
6612         * device/lib/printf_large.c: Temporary patch for bug 1358192:
6613           printf("%f"...) sets fraction to zero.
6614
6615 2005-11-16 Raphael Neider <rneider AT web.de>
6616
6617         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
6618           fixes #1357221
6619         * src/pic/gen.c (genIfx): implemented for CARRY bit
6620         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
6621           to generic pointers, fixes #1357332,
6622           (pic16_movLit2f): NEW,
6623           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
6624
6625 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
6626
6627         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
6628
6629 2005-11-11 Raphael Neider <rneider AT web.de>
6630
6631         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
6632         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
6633           compute pointer's type from operand,
6634           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
6635           improved single bit reads, fixes bug #1353379
6636
6637 2005-11-09 Borut Razem <borut.razem AT siol.net>
6638
6639         * support/scripts/sdcc.nsi: added lib/pic to the package
6640
6641 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
6642
6643         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
6644
6645 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
6646
6647         * support/regression/tests/bug1348008.c: added
6648         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
6649         * support/regression/tests/bug1337835.c: updated comment
6650
6651 2005-11-06 Borut Razem <borut.razem AT siol.net>
6652
6653         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6654           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6655           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6656           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6657           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
6658           dynamic construction of cl_error_class and derivates - 2.nd try
6659
6660 2005-11-05 Borut Razem <borut.razem AT siol.net>
6661
6662         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
6663           bug, which caused Bus Errors on sparc solaris
6664
6665 2005-11-04 Borut Razem <borut.razem AT siol.net>
6666
6667         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
6668           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
6669           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
6670           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
6671           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
6672           and derivates to resolve the initialization problem on OSX
6673
6674 2005-11-02 Borut Razem <borut.razem AT siol.net>
6675
6676         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6677           corrected typo - #include <winsock2.h>
6678
6679 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
6680
6681         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
6682           (_asxxxx_mapping): added org directive for future enhancements
6683
6684 2005-11-01 Borut Razem <borut.razem AT siol.net>
6685
6686         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
6687           enabled sockets on WIN32
6688         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
6689
6690 2005-10-31 Borut Razem <borut.razem AT siol.net>
6691
6692         * support/regression/generate-cases.py: escape backslashes in {testcase}:
6693           WIN32 backslash path delimiters should be escaped when used in C strings
6694         * support/regression/tests/bitfields.c: exclude failing assertions for
6695           __CYGWIN32__ and __MINGW32__ hosts
6696
6697 2005-10-30 Borut Razem <borut.razem AT siol.net>
6698
6699         * src/SDCCutil.c: corrected double comparison typo
6700
6701 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
6702
6703         * device/lib/medium/Makefile: added for new memory model medium
6704         * device/include/asm/mcs51/features.h: updated for medium/pdata
6705         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
6706           added Multiply & Accumulate sbit's and MAC0_PAGE define
6707         * device/include/mcs51/c8051f300.h: added sfr16 definitions
6708         * device/include/mcs51/c8051f310.h: added sfr16 definitions
6709         * device/lib/_mullong.c: update for medium model
6710         * device/lib/incl.mk: added medium model
6711         * doc/sdccman.lyx: documented medium model
6712         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
6713         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
6714         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
6715         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
6716           (allocParms): set SCLS and OCLS to pdata for medium model
6717         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
6718           for pdata,
6719           (powof2): return <0 if not power of 2
6720         * src/avr/gen.c (genBitWise): use updated powof2
6721         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
6722           (shiftR2Left2Result): small optimization in setup, save acc when storing,
6723           (shiftLLeftOrResult): use B if necessary
6724         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
6725         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
6726         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
6727         * support/regression/Makefile.in: added test-mcs51-medium
6728         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
6729
6730 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
6731
6732         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
6733         specifier unsigned
6734         * device/lib/time.c (mktime): fixed bug 1334315
6735
6736 2005-10-28 Raphael Neider <rneider AT web.de>
6737
6738         * device/include/pic/p16f_common.inc: added common declarations
6739         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
6740
6741 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6742
6743         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
6744           (aopPutUsesAcc): added to predict accumulator use,
6745           (assignResultValue): save acc if necessary,
6746           (genMinusDec): store result if indirectly addressed,
6747           (genDivOneByte):  save acc if necessary,
6748           (movLeft2Result): bugfix if left already in acc,
6749           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
6750             attention to accumulator use (esp. pdata),
6751           (genReceive): receive pdata correctly
6752         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
6753         * src/SDCCicode.h: added isOperandInPagedSpace prototype
6754
6755 2005-10-27 Raphael Neider <rneider AT web.de>
6756
6757         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
6758
6759 2005-10-27 Raphael Neider <rneider AT web.de>
6760
6761         * .version: changed version to 2.5.4
6762         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
6763         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
6764           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
6765             arithmetics support routines
6766         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
6767         * device/lib/Makefile.in: also create installdir for pic
6768
6769         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
6770           pic14 port as well
6771         * src/pic/device.c (dump_sfr): rewritten to delegate register
6772           placement to the linker (use `extern sym' rather than sym EQU addr),
6773           (validAddress): fixed to check last specified address
6774         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
6775           (popGetLit): truncate literal value to 8 bit,
6776           (popGet): moved assert to more appropriate place
6777           (popGetExternal): create pCode operand from and mark the according
6778             symbol as being `extern'
6779           (popGetAddr): added sanity check on immediate's offset, provide
6780             GPOINTER tag on demand
6781           (aopPut): fixed for immediates,
6782           (mov2w_op): move operand's address or contents to WREG (depending on
6783             operand type), safer variant of mov2w,
6784           (movwf,call_libraryfunc): NEW, handy abbreviations,
6785           (get_argument_pcop,get_return_val_pcop,pass_argument,
6786           get_returnvalue): interface for accessing function parameters and
6787             return values,
6788           (assignResultValuei,genRet): use new parameter/return value interface
6789           (pic14_getDataSize): back to old version handling generic pointers,
6790           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
6791             provided implementation and/or fixed old one,
6792           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
6793             calls, removed legacy 8051 reference code
6794           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
6795           (loadSignToC): NEW, move the operands sign bit to CARRY,
6796           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
6797             genRightShiftSigned, accepts negative shift counts,
6798           (setup_fsr): load FSR and adjust IRP (indirect memory access),
6799           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
6800             generic pointers, __data pointers and __code pointers,
6801           (genUnpackBits,genPackBits): rewritten to work with generic pointers
6802             and signed bitfields, limit bitfields to 8 bit,
6803           (genDataPointerGet): fixed number of bytes read,
6804           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
6805           (genPointerGet,genPointerSet): fixed handling of __code pointers,
6806             pointers to constant data are no longer assumed to point to __code
6807             space, removed invalid pointer types,
6808           (bitpatternFromVal): retrieve the PICs representation of an integer
6809             or float literal,
6810           (genDataPointerSet): fixed assigning to po_immediate operands,
6811           (genGenPointerSet): implemented as library call,
6812           (genIfx): fixed incorrect condition,
6813           (genAddrOf): limit generic pointers' addresses to 2 bytes,
6814             provide GPOINTER tag according to destination's storage class,
6815           (genCast): added code to handle casting to generic pointers, added
6816             sign-/zero extension of the result
6817           (aop_isLitLike,op_isLitLike): fixed handling of immediates
6818         * src/pic/gen.h: added macros to access IRP bit in STATUS register
6819         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
6820           extend the result
6821         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
6822           address/register resides in the shared banks
6823           (emitSymbolToFile): improved to handle global and `pinned' symbols,
6824             put all variables into separate sections (have the linker arrange
6825             them)
6826           (picglue): put init code and interrupt handlers in separate sections
6827         * src/pic/main.c: added port specific options table, modified to PORT
6828           structure to make GPOINTERs 3 byte, added pic14_options
6829           (_pic14_do_link): private linking routine (update paths to libraries,
6830             add libsdcc.lib by default)
6831         * src/pic/main.h: declare pic14_options
6832         * src/pic/pcode.c: fixed instructions i/o relations,
6833           (RegCond): reverted to correct version,
6834           (newpCodeOpLit): truncate literals to 8 bit,
6835           (genericPrint): added debug output,
6836           (getRegFromInstruction): fixed for various operand types, simplified
6837           (BuildFlow): fixed broken handling of isntructions with labels
6838           (LinkFlow): start at last instruction in flow (skip trailing comments),
6839             pass the flow on to the next instruction after CALL
6840           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
6841           (insertPCodeInstruction): fixed inserting after a skip instruction,
6842           (DoBankSelect): fixed for labeled instructions
6843           (OptimizepBlock): honor --nopeep switch
6844           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
6845         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
6846         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
6847           (pCodeOptime2pCodes): allow disabling this optimization via
6848             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
6849             but is still buggy), started implementation of a dataflow based
6850             pCode optimization (CSE + dead code elimination)
6851           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
6852         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
6853           names are independant of the stack location and therefore portable across
6854           devices
6855
6856 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
6857
6858         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
6859           (selectSpil): fixed bug 1337835 by not spilling bit variables
6860         * support/regression/tests/bug1337835.c: added test for this bug
6861         * src/mcs51/peeph.def: restart after rule 3.c,
6862           addded rules 263.x to optimize loading constants
6863
6864 2005-10-26 Raphael Neider <rneider AT web.de>
6865
6866         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
6867         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
6868           (genAssign): emit warning when casting literals to generic pointer
6869             type, also applies when taking the address of a fixed variable,
6870           (genCast): improved casting to generic pointers
6871         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
6872           extern variables, added verbose error message
6873         * device/include/pic16/{string.h,errno.h}: added #pragma library c
6874
6875 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
6876
6877         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
6878         carry must be complemented too
6879         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
6880         could be emitted by genMinus
6881         * src/SDCCval.c (constVal): fixed bug 1305065
6882
6883 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
6884
6885         * src/SDCCast.c (addCast): added promotion for bit variables
6886         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
6887         promotion casts + optimisation
6888         (optimizeGetWord): fix warning 'i' might be used uninitialized
6889         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
6890         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
6891
6892 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
6893
6894         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
6895         all chars are promoted to int; promotion should be handled in SDCCast.c
6896
6897 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6898
6899         * device/lib/_strcmp.c: Fixed bug 1326457
6900
6901 2005-10-11 Raphael Neider <rneider AT web.de>
6902
6903         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
6904         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
6905
6906 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
6907
6908         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
6909         * support/regression/tests/sfr16.c: added test for the sfr32 bug
6910
6911 2005-10-04 Raphael Neider <rneider AT web.de>
6912
6913         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
6914           device/lib/pic16/pics.all: added pic18f1320
6915         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
6916
6917 2005-09-30 Raphael Neider <rneider AT web.de>
6918
6919         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
6920         * src/pic16/devices.inc: NEW, provides device descriptions
6921         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
6922
6923 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
6924
6925         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
6926           GETHBIT
6927
6928 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
6929
6930         * doc/sdccman.lyx: updated Highest Order Bit documentation,
6931           documented Any Order Bit, Higher Order Byte and Higher Order Word
6932         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
6933         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
6934           (optimizeGetAbit): new, to get any bit, not only the high bit,
6935           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
6936           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
6937           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
6938           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
6939             RIGHT_OP: also try GETBYTE, GETWORD optimization,
6940             GETABIT, GETBYTE, GETWORD: decorate them,
6941           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
6942           (ast_print): added GETABIT, GETBYTE, GETWORD
6943         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
6944         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
6945           (geniCodeBinary): new generic binary icode,
6946           (ast2iCode): added GETABIT, GETBYTE, GETWORD
6947         * src/port.h: updated comment for PORT.hasExtBitOp
6948         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
6949           (genGetByte): new, to get a single byte,
6950           (genGetWord): new, to get a word from a long,
6951           (gen51Code): added GETABIT, GETBYTE, GETWORD
6952         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
6953
6954 2005-09-23 Raphael Neider <rneider AT web.de>
6955
6956         * configure.in, configure: have device/lib/pic configured
6957         * device/lib/Makefile.in: added model-pic14
6958         * device/lib/clean.mk: added pic/ to clean rule
6959         * device/lib/pic: added rudimentary pic14 library providing support
6960           functions for multiplication/division/generic pointer access
6961         * src/SDCCopt.c (convilong): mark support functions as extern
6962           for pic14 port as well
6963         * src/pic/gen.c (genMult): added assertions,
6964           (genpic14Code): emit warning on unhandled iCodes
6965         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
6966         * src/pic/pcode.c (pCodeOpCopy),
6967         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
6968           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
6969           SFR_REGISTER}), made safe for future extensions
6970         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
6971           instructions even if preceeded by SKIP instructions (also remove
6972           them); removed unused code
6973         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
6974           prevents leaving parts of the structure uninitialized after copying
6975
6976 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
6977
6978         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
6979           ago by me
6980         * support/regression/tests/addsub.c: added test for the bug
6981
6982 2005-09-21 Raphael Neider <rneider AT web.de>
6983
6984         * device/include/pic16/pic18f1220.h,
6985           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
6986         * device/lib/pic16/Makefile.rules: added missing opening paren
6987         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
6988           are provided in genutils.c,
6989           (genUminusFloat,genUminus,genCmpEq): added asserts on different
6990           operand/result sizes,
6991           (genCmp): assert on NULL pointers first, then check deref'ed values
6992         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
6993           result size
6994
6995 2005-09-18 Raphael Neider <rneider AT web.de>
6996
6997         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
6998           as these are now unused,
6999           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
7000         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
7001           local, avoids uninitialized pointer dereference on r->name
7002         * src/pic16/ralloc.c (newReg): fixed indentation
7003
7004 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
7005
7006         * src/SDCCval.c (constVal): fixed bug 730366
7007         * support/Util/SDCCerr.c,
7008         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
7009
7010 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
7011
7012         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
7013
7014 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
7015
7016         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
7017
7018 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
7019
7020         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
7021           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7022         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
7023           (hex2dec): made hex_digit unsigned char, removed ascii dependance
7024         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
7025         * packihx/packihx.c (hexDigit): made c unsigned char
7026         * as/mcs51/lklibr.c (fndsym),
7027         * link/z80/lkgb.c (gb),
7028         * link/z80/lklibr.c (fndsym),
7029         * link/z80/lkrloc.c (relr),
7030         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
7031         * src/SDCC.lex (checkCurrFile, process_pragma),
7032         * src/SDCCglue.c (spacesToUnderscores),
7033         * src/SDCCmain.c (setParseWithComma, processFile),
7034         * src/asm.c (tvsprintf, printCLine),
7035         * src/avr/gen.c (emitcode, aopPut),
7036         * src/ds390/gen.c (emitcode),
7037         * src/hc08/gen.c (emitcode, emitinline),
7038         * src/mcs51/gen.c (emitcode, genInline),
7039         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7040           tokenizeLineNode),
7041         * src/pic/ralloc.c (debugLog),
7042         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
7043           tokenizeLineNode),
7044         * src/pic16/ralloc.c (debugLog),
7045         * src/z80/main.c (_process_pragma):
7046            made all ctype.h function calls safe
7047         * src/SDCCopt.c: include math.h for fabs
7048         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
7049           and used them throughout the code to make ctype.h function calls safe
7050         * src/ds390/main.c (asmLineNodeFromLineNode),
7051         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
7052         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
7053            unsigned char*
7054         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
7055           (newpCodeAsmDir): made ctype.h function calls safe
7056         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
7057           pic16_emitcode):  made lbp unsigned char*
7058         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
7059           (pic16_newpCodeAsmDir): made ctype.h function calls safe
7060         * src/xa51/gen.c (emitcode),
7061         * src/z80/gen.c (_emit2): made lbp unsigned char*
7062         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
7063            char*
7064
7065 2005-09-05 Raphael Neider <rneider AT web.de>
7066
7067         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
7068           access bank splitpoint
7069
7070 2005-09-05 Raphael Neider <rneider AT web.de>
7071
7072         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
7073
7074 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
7075
7076         * .version: changed to version 2.5.3
7077         * doc/sdccman.lyx: changed version to 2.5.3,
7078           documented --codeseg and --constseg and pragma codeseg and constseg,
7079           documented bit parameters (reentrant) and bit returning
7080         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
7081            currFunc->recvSize, but is this ok for all ports?
7082           (ast2iCode): result of ~ on unsigned char must be cast to int for
7083            bool to work
7084         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
7085           function pointers in bit space
7086         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
7087           (processFuncArgs): call port.reg_parm() with reentrancy info
7088         * src/port.h,
7089         * src/avr/main.c,
7090         * src/ds390/main.c,
7091         * src/hc08/main.c,
7092         * src/pic/main.c,
7093         * src/pic16/main.c,
7094         * src/xa51/main.c,
7095         * src/z80/main.c: port.reg_parm prototype extended with
7096           "bool reentrant" parameter
7097         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
7098           options.stackAuto for allocating bit register parameters
7099         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
7100           (genSend): set BitBankUsed if it is,
7101           (selectRegBank): factored out of genCall for use in genPcall,
7102           (genCall): removed redundant dtype assignmen, use selectRegBank,
7103           (genPcall): handle returning in Carry properly, save in F0 if needed,
7104           (genReceive): handle bit register parameters
7105         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
7106           (mcs51_assignRegisters): enable bit registers for all reentrant
7107            functions and don't set BitBankUsed unconditionally
7108         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
7109         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
7110         * support/regression/tests/funptrs.c: added tests for BOOL and for return
7111
7112 2005-08-27 Borut Razem <borut.razem AT siol.net>
7113
7114         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
7115         ppc-osx (Darwin) does not support -u option. It seems that it is
7116         supported only on Linux - GNU cp
7117
7118 2005-08-25 Borut Razem <borut.razem AT siol.net>
7119
7120         * sim/ucsim/gui.src/serio.src/Makefile.in,
7121           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
7122           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7123           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
7124           install and strip, since the strip at /usr/ccs/bin should be used
7125           on solaris
7126
7127 2005-08-24 Borut Razem <borut.razem AT siol.net>
7128
7129         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
7130
7131 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
7132
7133         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
7134         ffffffffu
7135
7136 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
7137
7138         * as/mcs51/aslink.h: completed lkrloc.c prototypes
7139         * as/mcs51/lkmain.c (link_main): fixed warning
7140         * device/include/stdbool.h: ds390 has no advanced bit support yet
7141         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
7142         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
7143         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
7144           and updated their macros
7145         * src/SDCCval.c (constVal): updated comment for renamed b_long
7146
7147 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
7148
7149         * as/mcs51/asdata.c: changed ctype['['] to BINOP
7150         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
7151           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
7152           (oprio): set priority for '['
7153         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
7154            and adb_24_bit
7155         * as/mcs51/asm.h: added defines R_BIT and S_BIT
7156         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
7157         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
7158         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
7159           added overlayable BIT_BANK area
7160         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
7161           (summary2): explain 'T' in legenda
7162         * as/mcs51/lkrloc.c: replaced old K&R style,
7163           (relr): added R_BIT processing,
7164           (errmsg): added "Bit-addressable relocation error",
7165           (adb_bit): added for converting from byte- to bit-addressable space,
7166           (adb_24_bit): added for converting from byte- to bit-addressable space
7167         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
7168            used in reentrant functions now even as return value
7169         * device/lib/_gptrput.c (_gptrput): removed obsolete code
7170         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
7171           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
7172         * src/SDCCglobl.h: added indicator BitBankUsed
7173         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
7174            the bit registers b0-b7
7175         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
7176           (geniCodeCast): fixed bug 1263853,
7177           (geniCodeLogicAndOr): put result in bool or char,
7178           (geniCodeReceive): added parameter func for accessing the return type,
7179           (geniCodeFunctionBody): pass func to geniCodeReceive
7180         * src/SDCCmain.c: added indicator BitBankUsed
7181         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
7182         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
7183           (checkSClass): don't put automatic bool/bit on stack,
7184           (checkFunction): removed check on function cannot return bit
7185         * src/SDCCsymt.h: added newBoolLink prototype
7186         * src/mcs51/gen.c (rb1regs): added bit registers,
7187           (movc): created for assigning to carry,
7188           (pushReg, popReg): created for pushing registers,
7189           (sameRegs): check both AOP_REG and AOP_CRY types,
7190           (aopOp): handle bit registers,
7191           (aopPut): optimization no self-assign,
7192           (saveRegisters): push reg->base (bits) only once for bit registers,
7193            and use pushReg,
7194           (unsaveRegisters): pop reg->base only once and use popReg,
7195           (assignResultValue): added parameter func and return in carry for bits,
7196           (genIpush): optimization no reload in A if not changed,
7197           (genSend): bit parameters in reentrant functions are passed in bit
7198            registers by first assigning to bits in B, then save registers and
7199            copy B to bits,
7200           (genCall): handle returning in Carry properly, save it in F0 if needed,
7201           (genPcall): updated assignResultValue call, this is not safe yet for bit
7202            returning function !!!
7203           (genFunction): don't generate equ's for bit registers and use pushReg,
7204           (genEndFunction): take care of bit returning functions and use popReg,
7205           (genRet): return bit in Carry,
7206           (genIfx): optimize bit registers and other directly addressable bits,
7207           (genReceive): updated assignResultValue call
7208         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
7209           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
7210            registers when using stack-auto
7211         * src/mcs51/ralloc.c (_G): added allBitregs,
7212           (regs8051): added the bit registers,
7213           (createStackSpil): use macro IS_BIT,
7214           (getRegBit): added to allocate a bit register, else spill,
7215           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
7216           (updateRegUsage): factored out to ease stepping while debugging,
7217           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
7218            also allocate bit registers,
7219           (fillGaps): handle bit registers,
7220           (findAllBitregs): added to create bit vector with all bit registers,
7221           (mcs51_allBitregs): returns this bit vector,
7222           (mcs51_assignRegisters): when using stack-auto use bit registers for
7223            passing parameters and creating local variables
7224         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
7225
7226 2005-08-22 Borut Razem <borut.razem AT siol.net>
7227
7228         * device/lib/Makefile.in: replaced find option -or with -o
7229           to make it run on solaris
7230
7231 2005-08-22 Raphael Neider <rneider AT web.de>
7232
7233         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
7234           fixes #1265442 (crash on Solaris)
7235
7236 2005-08-20 Borut Razem <borut.razem AT siol.net>
7237
7238         * configure, configure.in: added tests for libsocket and libnsl libraries,
7239           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
7240           from support/regression/Makefile.in
7241         * support/regression/Makefile.in: added
7242         * device/lib/pic16/Makefile.common.in: force make to use bash shell
7243         * sim/ucsim/libtool: regenerated on sparc-solaris
7244         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
7245           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
7246           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
7247           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
7248           sparc-solaris, which doesn't use GNU ld linker
7249         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
7250         * as/Makefile: find on sparc-solaris does not support -maxdepth option
7251
7252 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
7253
7254         * src/mcs51/peeph.def: updated comments
7255
7256 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7257
7258         * device/lib/_gptrget.c,
7259         * device/lib/_gptrput.c: slightly shorter
7260         * doc/sdccman.lyx: incremented version
7261         * src/mcs51/peeph.def: moved peephole comments to the line of first
7262           change to better keep line correlation, reanimated 186.e
7263         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
7264
7265 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
7266
7267         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
7268           David Saxton with quotes around file name.
7269
7270 2005-08-15 Borut Razem <borut.razem AT siol.net>
7271
7272         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
7273           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
7274           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
7275           make tests run on x86_64 platform
7276
7277 2005-08-13 Raphael Neider <rneider AT web.de>
7278
7279         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
7280           as it might be executed DURING a build (parallel make is wonderful)
7281
7282 2005-08-13 Raphael Neider <rneider AT web.de>
7283
7284         * device/lib/Makefile.in (port-specific-objects-pic16):
7285           revert to cp $(PORT)/bin/*.* $(PORTDIR)
7286         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
7287           dependency
7288         * device/lib/pic16/Makefile.rules: build subdirs before creating
7289           the library, removed builddir rule, create $(builddir) early in
7290           recurse rule, use empty recurse rule for leaf directories
7291         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
7292           mkdir errors (race condition), removed duplicate suffix "hex"
7293           from clean rules
7294         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
7295         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
7296           prevents mkdir -p from aborting on Alpha
7297
7298 2005-08-12 Raphael Neider <rneider AT web.de>
7299
7300         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
7301           db-statements in order to allow for arrays of pointers in code
7302           sections to be placed without interspersed 0-padding, fixes
7303           bug #1256215
7304         * (emitStatistics): fixed division by zero for pic18f1220
7305         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
7306           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
7307         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
7308         * (pic16_pCodeConstString): keep track of already emitted string
7309           literals to prevent "duplicate definitions of symbol _str_NR"
7310         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
7311           debug message
7312         * device/lib/Makefile.in: ignore failing PIC16 library builds
7313         * device/lib/pic16/Makefile: do not build if gputils are missing
7314         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
7315
7316 2005-08-10 Raphael Neider <rneider AT web.de>
7317
7318         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
7319           my last commit)
7320
7321 2005-08-10 Raphael Neider <rneider AT web.de>
7322
7323         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
7324           Rokas' patch to add the new fixed point type "__fixed16x16"
7325         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
7326           functions for __fixed16x16 arithmetics
7327         * device/lib/pic16: reimplemented the build system to support
7328           a separate build directory, better handling of libio (create
7329           the library in a separate subdir for each architecture) and
7330           easier configuration (centralized in Makefile.common)
7331
7332 2005-08-07 Raphael Neider <rneider AT web.de>
7333
7334         * src/pic16/gen.c (genrshTwo): fixed sign extension
7335         * src/pic16/device.c: added pic18f2320, 4220 and 4320
7336         * device/include/pic16/pic18f2220.h: changed some bit definitions,
7337           added T0CONbits
7338         * device/include/pic16/pic18f4220.h: NEW, header for
7339           pic18f4220 and pic18f4320
7340         * device/include/pic16/pic18fregs.h: added new devices,
7341           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
7342         * device/include/pic16/signal.h: resolved name clashes
7343           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
7344           to also allow testing for interrupt enable bits, added
7345           comments on how to use the macros
7346         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
7347         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
7348           register definitions for the devices
7349         * device/lib/pic16/pics.all: added new devices
7350         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
7351           allocated memory
7352         * device/lib/pic16/libc/stdlib/memfree: do not count
7353           the block header as free memory
7354         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
7355           simplified and added missing end-of-blocklist-marker
7356           (reported by Peter Onion, fixes #1252814)
7357         * (_mergeHeapBlock): fixed loop condition
7358         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
7359           len==0, restructured code
7360         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
7361           up a bit, reduced bitfield accesses, prevent endless loops
7362           in case of heap corruption
7363         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
7364           "unreferenced arguments/must return a value" warnings
7365         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
7366           replaced BAUDREG with SPBRG
7367         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
7368           device/lib/pic16/debug/gstack/gstack.c: replaced
7369           _naked, _asm, _endasm with __naked, __asm, __endasm
7370
7371 2005-08-05 Raphael Neider <rneider AT web.de>
7372
7373         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
7374           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
7375
7376 2005-08-05 Borut Razem <borut.razem AT siol.net>
7377
7378         * device/lib/Makefile.in: added missing ';'
7379         * configure: removed ^M characters
7380
7381 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7382
7383         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
7384           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
7385           License
7386
7387 2005-08-04 Borut Razem <borut.razem AT siol.net>
7388
7389         * configure.in: pic16 libraries build 2nd try - enable running
7390           configure in device/lib/pic16
7391         * configure: regenerated from configure.in
7392         * device/lib/Makefile.in: create $(PORT)/bin directory
7393
7394 2005-08-03 Raphael Neider <rneider AT web.de>
7395
7396         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
7397           to get/set values via pointers
7398         * (genUnpackBits,genPackBits): changed detection of
7399           ptr->bitfield vs. sym.bitfield, fixed access via generic
7400           pointers, removed dead (wrong) code for multibyte bitfields
7401         * (genNearPointerGet, genGenPointerGet): removed useless code,
7402           fixed bitfield detection, fixes #1250594
7403         * (genNearPointerSet): removed useless code
7404         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
7405           and introduced macro pic16_emitpcode that conditionally emits
7406           the origin of the following pCode (useful for debugging SDCC)
7407         * src/pic16/pcode.c: changed (and disabled) some debug outputs
7408         * (createDefmap): fixed handling of LFSR for --optimize-df
7409
7410 2005-08-02 Borut Razem <borut.razem AT siol.net>
7411
7412         * device/lib/Makefile.in: pic16 libraries build enabled since
7413           gputils-0.13.2 are now localy installed at sourceforge's compile farm
7414
7415 2005-08-02 Raphael Neider <rneider AT web.de>
7416
7417         * src/pic16/gen.c (genPackBits): removed deprecated warning
7418         * (genGenPointerSet): fixed bitfield detection
7419
7420 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7421
7422         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
7423
7424 2005-07-31 Raphael Neider <rneider AT web.de>
7425
7426         * device/lib/pic16/libdev/pic18f458.c,
7427           device/include/pic16/pic18f458.h: added missing T0CONbits
7428
7429 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
7430
7431         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
7432
7433 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
7434
7435         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
7436
7437 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7438
7439         * device/include/mcs51/at89c51ed2.h: added.
7440
7441 2005-07-23 Raphael Neider <rneider AT web.de>
7442
7443         * src/pic/gen.h: added emitpcode macro for debugging
7444         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
7445           and replace by macro adding debug information on demand
7446         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
7447         * (gencjne): tried to fix; replaced with correct (slower) code
7448         * (gen{Unp,P}ackBits): fixed single bit access
7449         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
7450         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
7451           previous instruction
7452         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
7453           register has to be handled with care (forbidding movement
7454           of assignments/uses, removing assignments completely, ...)
7455         * (pCodeOptime2pCodes): make use of regIsSpecial
7456         * added lots of debugging output (commented out)
7457         * src/pic/rallloc.c (deassignLRs): prevent operand registers
7458           from being reused as result UNLESS it is known to work
7459
7460 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
7461
7462         * support/Util/dbuf.h: include <stddef.h> for size_t
7463         * .version: changed to version 2.5.2
7464
7465 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7466
7467         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
7468
7469 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7470
7471         * src/hc08/gen.c (genMinus): fixed bug #1241835,
7472           (genModOneByte): removed needless psha/pula
7473
7474 2005-07-22 Raphael Neider <rneider AT web.de>
7475
7476         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
7477           have PIC14 handled like PIC16, fixes broken pic14 linker calls
7478         * src/pic/gen.c (resolveIfx): do not "invent" labels
7479         * (genSkipc): changed to positive logic
7480         * (genSkipCond): removed as no longer needed
7481         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
7482           backport from PIC16
7483         * (genLeftShift): check operands are in different registers
7484         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
7485           INCF does not update CARRY...
7486         * src/pic/main.c: fixed _linkCmd
7487         * src/pic/pcode.c (unlinkpCode): added inactive code
7488         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
7489           alive (do not assign result and operand overlapping registers)
7490
7491 2005-07-22 Raphael Neider <rneider AT web.de>
7492
7493         * src/pic/device.c (dump_sfr): replaced register declaration with
7494           call to emitSymbolToFile() to avoid duplicate symbols
7495         * (assignRelocatableRegisters): do not declare external symbols
7496         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
7497           right (take size of type, not etype)
7498         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
7499         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
7500         * (packRegsForAccUse): disabled assignment of WREG as
7501           the result reg to prevent occurence of just fixed #1235003,
7502           fixes #1242954
7503         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
7504           symbols (avoids duplicate symbols in .asm file)
7505         * (pic14emitRegularMap): use emitSymbolToFile()
7506         * src/pic/gen.c (aopOp): fixed spillLocation handling
7507         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
7508         * (genDataPointerSet): removed unneccessary variables/output
7509
7510 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
7511
7512         * as/mcs51/lkarea.c: enlarged codemap for banked memory
7513         * device/lib/mcs51/crtbank.asm: added # to 0x0F
7514
7515 2005-07-21 Raphael Neider <rneider AT web.de>
7516
7517         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
7518           architecture cannot handle them efficiently, fixes bug #1235003
7519         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
7520           check for empty sets before using them (fixes bug #1232190)
7521
7522 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
7523
7524         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
7525           (lnksect2): generate warnings for memory overlap
7526         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
7527           constseg to set the name of these segments so you can instruct the linker
7528           to place them in banks
7529         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
7530         * src/SDCCglobl.h: added MODEL_HUGE to enum,
7531           added code_seg and const_seg to options
7532         * src/SDCCglue.c (emitMaps): use options.const_seg,
7533           (createInterruptVect): put interrupt vectors in segment HOME,
7534           (glue): put HOME before static segment and put the main glue in HOME,
7535           (glue): use options.code_seg
7536         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
7537         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
7538           these segments so you can instruct the linker to place them in banks
7539           (linkEdit): use code_loc for HOME segment which should be the first
7540           segment in code memory now
7541         * src/SDCCmem.c: fixed more stuff like bug 1238386
7542         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
7543           (changePointer): don't change function pointers to code pointers for
7544           banked functions,
7545           (compareType): added exceptional check for banked function pointers
7546         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
7547         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
7548           after static in code memory
7549         * src/mcs51/gen.c: added aopLiteralLong prototype,
7550           (aopForSym): use getSize for functions,
7551           (genCall): generate banked calls over one trampoline __sdcc_banked_call
7552           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
7553           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
7554           the segment,
7555           (genPcall): use call for literal function pointers and generate banked
7556           calls over the one trampoline so there's only one place for the user to
7557           modify according to his/hers hardware,
7558           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
7559           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
7560         * src/mcs51/main.c: added keyword banked,
7561           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
7562         * support/Util/SDCCerr.c,
7563         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
7564           needed for passing the bank and address to the trampoline
7565         * device/lib/mcs51/crtbank.asm: added for bankswitching
7566         * device/lib/mcs51/Makefile: added crtbank
7567
7568 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7569
7570         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
7571           for fields at offset 0 of a struct or union as reported
7572           on 2005-07-07 in the developer mailing list.
7573
7574 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
7575
7576         * src/SDCCmem.c: fixed bug 1238386
7577
7578 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7579
7580         * src/mcs51/peeph.def: added labelrefcounting for peepholes
7581           (patch #1144962), added peephole 300, enabled 259.x
7582         * doc/sdccman.lyx: removed screenshot and provided link instead
7583
7584 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7585
7586         * doc/sdccman.lyx: added section about debugging with ddd
7587         * doc/figures/ddd_example.eps: screenshot of debugging session
7588
7589 2005-07-04 Raphael Neider <rneider AT web.de>
7590
7591         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
7592           like CODE pointers, fixes #1115683
7593         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
7594           call, fixes bugs #1232211, #1228110,
7595           fixed wrong casts to pCodeFlow from pCodeInstructions
7596
7597 2005-07-04 Raphael Neider <rneider AT web.de>
7598
7599         * src/pic/gen.c (popGet): changed assert to allow for
7600           bit operands
7601         * (popGetAddr): changed signature to provide
7602           an additional index, patched all call sites
7603         * (genCmpEq): handle literal-like operands correctly
7604         * (genAddrOf): added sanity checks on __code/__data pointers
7605         * (genAssign): added handling of symbols from __code section
7606         * (gencjne): do not generate code for comparisons whose result
7607           is neither stored nor used, fixes bug #1171114
7608         * (AccLsh, AccRsh): operate on operand instead of WREG
7609         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
7610           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
7611           by known count
7612         * rewrote complete shift-by-literal logic, commented unused
7613           functions out
7614         * (genConstPointerGet): get multiple bytes (if result size > 1),
7615           fixed handling of non-immediate addresses
7616         * (genPointerGet): handle CODE pointers like CONST pointers
7617         * (genpic14Code): insert C-SRC lines as Cource-pCodes
7618         * ({aop,op}_isLitLike): NEW, single place to decide whether an
7619           operand is to be treated as a literal or not
7620         * (mov2w,genPcall,genCmpEq),
7621           src/pic/genarith.c: use aop_isLitLike() to decide between
7622           literal/register contents
7623         * (addSign): added missing offset
7624         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
7625           only emit comment in debug-mode,
7626           use {aop,op}_isLitLike throughout the file
7627         * src/pic/glue.c: fix initializers for pointers (work in progress)
7628         * src/pic/pcode.c (get_op): honor index on _const symbols
7629         * ({reset,dump}pCodeStatistics): NEW, estimate code size
7630         * (dumppBlock): added pCode size estimation
7631         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
7632           check for IS_SYMOP before OP_SYMBOL'ing
7633         * fixed indentation, compacted switch-statements
7634         * (allocReg): find free register and allocate it instead of
7635           allocating new registers all the time
7636         * (deassignLRs): prevent POINTER_GET's from being assigned the same
7637           registers as its operands (necessary only for multibyte GETs)
7638
7639 2005-07-01 Raphael Neider <rneider AT web.de>
7640
7641         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
7642           debugging .asm-output macros FENTRY + FEXIT
7643         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
7644           way... I wonder...
7645         * (emitpComment): NEW, printf to pCode
7646         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
7647           offset handling
7648         * (popGetAddr): NEW, variant of popGet to access an immediates
7649           high(er) bytes instead of the n'th byte of memory they reference,
7650           replaced popGet with popGetAddr where neccessary
7651         * (genDataPointerGet): reactivated and fixed implementation
7652         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
7653           accesses
7654         * (genDataPointerSet): fixed multibyte assignments
7655         * (genpic14Code): fixed --i-code-in-asm handling
7656         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
7657         * (genPlus): fixed index-out-of-bounds error
7658         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
7659         * src/pic/ralloc.c: added debugging output macro FENTRY2
7660         * (spillThis): fixed indentation, enbraced for-body for clarity
7661         * (rematStr): commented out as now unused
7662         * (regTypeNum): commented out special spill case (overwrites
7663           arbitrary values)
7664         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
7665
7666 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
7667
7668         * doc/sdccman.lyx: documented sfr16/sfr32,
7669           added example for using storage class with function pointers
7670         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
7671
7672 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
7673
7674         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
7675         * device/lib/_itoa.c,
7676         * device/lib/_ltoa.c: optimized codesize
7677         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
7678           but don't know how to suppress the double warning.
7679         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
7680         * support/Util/SDCCerr.c,
7681         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
7682
7683 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
7684
7685         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
7686           fixed old K&R prototypes
7687         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
7688         * device/lib/_gptrget.c,
7689         * device/lib/_gptrgetc.c,
7690         * device/lib/_gptrput.c: changed versions for new memory indicator values,
7691           also new versions for small generic pointers and banked generic pointers
7692         * src/port.h: added const_name
7693         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
7694         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
7695         * src/SDCCcse.c (findPrevIc): check all associative operators
7696         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
7697         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
7698         * src/SDCCmem.c: updated comments,
7699           set far-space to 0 for pdata, results in optimized code
7700         * src/SDCCmem.h: added macro CONST_NAME
7701         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
7702           moving the info into the highest bits, see also gptrget/gptrput
7703         * src/src.dsp: added sdcc.ico to project files
7704         * src/avr/gen.c (genCast): fixed bug 0x%d
7705         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
7706         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
7707           relation between ptr_type and DCL_TYPE,
7708           (genCast): fixed bug 0x%d
7709         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
7710           (CODE)" for const_name
7711         * src/hc08/gen.c (genCast): fixed bug 0x%d
7712         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
7713           (hc08_port): added "CONST (CODE)" for const_name
7714         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
7715           (aopForRemat, adjustArithmeticResult): disconnected direct relation
7716           between ptr_type and DCL_TYPE,
7717           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
7718           operand* and took AOP() inside function so sfr-ness can be checked,
7719           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
7720           new prototype,
7721           (genFunction, genEndFunction): optimized stack setup,
7722           (genMinus): optimized for literals with ending zeroes (in bytes),
7723           (genCast): fixed bug 0x%d
7724         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
7725           (mcs51_port): added "CONST (CODE)" for const_name
7726         * src/mcs51/peeph.def: made rule 226 more generic
7727         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
7728         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
7729         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
7730         * src/z80/main.c (z80_port): added NULL for const_name,
7731           (gbz80_port): added NULL for const_name
7732         * support/regression/tests/bug663539.c,
7733         * support/regression/tests/sfr16.c: new tests
7734
7735 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7736
7737         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
7738
7739 2005-06-24 Raphael Neider <rneider AT web.de>
7740
7741         * device/lib/pic16/libdev/pic18f[68][567]20.c:
7742           corrected typos...
7743         * device/include/pic16/signal.h: added USBIF
7744           and SIG_USB
7745
7746 2005-06-24 Raphael Neider <rneider AT web.de>
7747
7748         * device/lib/pic16/libdev/pic18f2455.c,
7749           device/include/pic16/pic18f2455.h: NEW
7750         * device/include/pic16/pic18fregs.h,
7751           device/lib/pic16/pics.all,
7752           src/pic16/device.c: added 18f2455
7753         * device/lib/pic16/libdev/pic18f[68][567]20.c,
7754           device/include/pic16/{pic18f[68][567].h,usart.h}:
7755           replaced MULTIPLE_USARTS define with more relaible
7756           compatibility sfrs (for USART access)
7757
7758 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
7759
7760         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
7761           and the output asm file line is printed on two lines.
7762
7763 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7764
7765         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
7766           BGT, BLE, BHI, and BLS instructions
7767         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
7768           genCmpEq): removed
7769         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
7770           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
7771           fixes bug #1216342
7772         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
7773
7774 2005-06-15 Raphael Neider <rneider AT web.de>
7775
7776         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
7777         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
7778         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
7779           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
7780           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
7781
7782 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7783
7784         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
7785           Marcel Telka in bug #1215704
7786
7787 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
7788
7789         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
7790           located in shared memory bank.
7791
7792 2005-05-31 Raphael Neider <rneider AT web.de>
7793
7794         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
7795           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
7796           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
7797
7798 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
7799
7800         * device/lib/_strncpy.c: fixed the fix
7801
7802 2005-05-26 Raphael Neider <rneider AT web.de>
7803
7804         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
7805           initializers with \0, bug #1208187
7806         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
7807           intializers with \0, bug #1208187
7808
7809 2005-05-26 Raphael Neider <rneider AT web.de>
7810
7811         * src/pic16/glue.c (pic16_printIvalChar): fixed string
7812           initializers with \0, bug #1208187
7813         * src/pic16/main.c (_process_pragma): added sanity checks
7814           for stack position and size, emit warnings when appropriate
7815
7816 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
7817
7818         * device/lib/_strncpy.c: fixed not filling with \0
7819
7820 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7821
7822         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
7823           createFunction),
7824         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
7825           compound_statement),
7826         * src/SDCCsymt.h,
7827         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
7828
7829 2005-05-24 Raphael Neider <rneider AT web.de>
7830
7831         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
7832
7833 2005-05-24 Raphael Neider <rneider AT web.de>
7834
7835         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
7836           TRISE definitions, closes bug #1162453
7837
7838 2005-05-22 Raphael Neider <rneider AT web.de>
7839
7840         * src/pic16/main.c (_process_pragma): check for missing
7841           arguments to pragmas code and udata
7842         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
7843           consistency fixes to match other headers (thanks to Jim Paris)
7844         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
7845
7846 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
7847
7848         * src/SDCCicode.c (isOperandEqual): fixed missing ;
7849
7850 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
7851
7852         * support/regression/tests/bug1198642.c: new test
7853         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
7854         * src/SDCCcse.c (findPrevIc): added comment, please have a look
7855         * support/scripts/resource.h,
7856         * support/scripts/resource.rc,
7857         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
7858         * support/scripts/sdcc.ico: added 32x32 icon
7859
7860 2005-05-18 Raphael Neider <rneider AT web.de>
7861
7862         * device/lib/pic16/libdev/pic18f*.c,
7863         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
7864           keywords to "__sfr" and "__at (X)"
7865         * device/include/pic16/pic18fregs.h: added pic18f4520
7866         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
7867           #1203088 (MPLAB compatibility)
7868
7869 2005-05-17 Raphael Neider <rneider AT web.de>
7870
7871         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
7872         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
7873         * device/lib/pic16/pics.all: added new devices
7874         * src/pic16/device.c: added support for pic18f4520
7875
7876 2005-05-16 Raphael Neider <rneider AT web.de>
7877         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
7878         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
7879         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
7880           convenience function for bit access
7881
7882 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
7883
7884         * device/lib/printf_large.c: fixed bug 1193299
7885         * support/regression/tests/bug1057979.c: added test %3.3s
7886
7887 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7888
7889         * device/include/mcs51/8051.h,
7890         * device/include/mcs51/8052.h: made parseable with lint
7891         * device/include/mcs51/lint.h: added include file for (sp)lint
7892         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
7893         * doc/cdbfileformat.lyx,
7894         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
7895
7896 2005-05-14 Raphael Neider <rneider AT web.de>
7897
7898         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
7899         * device/lib/pic16/libc/stdlib/itoa.c (new)
7900         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
7901         * device/lib/pic16/libio/Makefile: exclude subdir according to
7902           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
7903         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
7904         * src/pic16/gen.c (genFunction): prevent annoying warning
7905         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
7906           nameclashes on BeOS
7907         * support/cpp2/cppmain.c (cpp_output_string): new
7908         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
7909           fixes bug 1116802
7910
7911 2005-05-13 Borut Razem <borut.razem AT siol.net>
7912
7913         * src/SDCCmain.c (linkEdit): fixed bug 1195202
7914
7915 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7916
7917         * .version: changed to version 2.5.1; back to bleeding edge development
7918
7919 2005-05-11 Borut Razem <borut.razem AT siol.net>
7920
7921         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
7922           generate PDF version 1.3 documents
7923
7924 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7925
7926         * .version: changed to version 2.5.0
7927
7928 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7929
7930         * doc/sdccman.lyx: updated weblinks, index and smaller updates
7931
7932 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7933
7934         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
7935         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
7936         well as many smaller updates.
7937         * .version: changed to version 2.5.0-pre1
7938
7939 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7940
7941         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
7942
7943 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
7944
7945         * support/regression/tests/bug1185672.c: added
7946         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
7947           bug 1185672
7948         * src/mcs51/gen.c (genCall): added comments, made it look safer
7949         * src/mcs51/gen.c (genEndFunction): simplified
7950
7951 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
7952
7953         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
7954
7955 2005-04-14 Borut Razem <borut.razem AT siol.net>
7956
7957         * fixed bug 1045046 - SIGSEGV with really simple code?:
7958           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
7959           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
7960
7961 2005-04-14 Borut Razem <borut.razem AT siol.net>
7962
7963         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
7964           src/pic16/device.h: temporarily disabled experimental #inline pragma
7965           for 2.5.0 release
7966
7967 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
7968
7969         * device/include/z80/stdio.h,
7970         * device/include/z80/string.h: removed these highly incomplete files so
7971           SDCC can use the default ones in device/include/
7972
7973 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7974
7975         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
7976         gcc warning.
7977         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
7978         fix sdcpp warnings.
7979
7980 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
7981
7982         * device/include/malloc.h: removed redundant __reentrant prototypes
7983         * device/lib/_mullong.c: added working xstack variant in asm (C version
7984           doesn't pass regression tests)
7985         * device/lib/bpx.c: used __data and made bpx char for mcs51
7986         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
7987           (createFunction): fixed bug with xstackPtr
7988         * src/SDCCcse.c: corrected comments
7989         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
7990           (killDeadCode, eBBlockFromiCode): removed unused code
7991         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
7992           corrected comments
7993         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
7994           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
7995           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
7996           (genModOneByte): fixed warning in MSVC
7997         * src/mcs51/main.c (): added comments
7998         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
7999
8000 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
8001
8002         * src/SDCCmain.c (linkEdit): oops, changed one line too many
8003
8004 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
8005
8006         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
8007
8008 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
8009
8010         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
8011         characters arrays of larger size than the declared one.
8012
8013 2005-04-10 Borut Razem <borut.razem AT siol.net>
8014
8015         * src/pic/gen.c (genInline),
8016           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
8017           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
8018           (findNextInstruction), (findPrevInstruction),
8019           (findInstructionUsingLabel),
8020           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
8021         * src/pic/pcode.c (findLabel): added missing '\n'
8022         * src/src.dsp: added SDCCdwarf2.c to the project
8023
8024 2005-04-09 Borut Razem <borut.razem AT siol.net>
8025
8026         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
8027
8028 2005-04-08 Raphael Neider <rneider AT web.de>
8029
8030         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
8031           into the chain after a given one) and mergeDefmapSymbols (combine
8032           defmap entries for each symbol per pcode)
8033         * (createDefmap): have defmap entries merged in the end
8034         * (defmapReplaceSymRef): split defmap entries covering two accesses to
8035           a symbol before replacing one access type's symbol, merge symbols in
8036           the end (replacement symbol might already have an entry)
8037         * (assignValnums): keep reference to written WREG intact
8038
8039 2005-04-08 Raphael Neider <rneider AT web.de>
8040
8041         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
8042           Alpha)
8043
8044 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
8045
8046         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
8047         bytes
8048
8049 2005-04-07 Raphael Neider <rneider AT web.de>
8050
8051         * device/include/pic16/usart.h: added compatibility defines for
8052           devices with more than one USART
8053         * device/include/pic16/pic18f[68][567]20.h: activated above defines
8054
8055 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8056
8057         * device/lib/Makefile.in: updated for port specific include
8058
8059 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8060
8061         * support/regression/ports/mcs51/spec.mk: added mcs51 include
8062
8063 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
8064
8065         * device/include/8051.h,
8066         * device/include/8052.h,
8067         * device/include/at89S8252.h,
8068         * device/include/at89c55.h,
8069         * device/include/at89x051.h,
8070         * device/include/at89x51.h,
8071         * device/include/at89x52.h,
8072         * device/include/mcs51reg.h,
8073         * device/include/reg51.h,
8074         * device/include/reg764.h,
8075         * device/include/regc515c.h,
8076         * device/include/sab80515.h: (re)moved these 12 files
8077         * device/include/mcs51/8051.h,
8078         * device/include/mcs51/8052.h,
8079         * device/include/mcs51/at89S8252.h,
8080         * device/include/mcs51/at89c55.h,
8081         * device/include/mcs51/at89x051.h,
8082         * device/include/mcs51/at89x51.h,
8083         * device/include/mcs51/at89x52.h,
8084         * device/include/mcs51/mcs51reg.h,
8085         * device/include/mcs51/reg51.h,
8086         * device/include/mcs51/reg764.h,
8087         * device/include/mcs51/regc515c.h,
8088         * device/include/mcs51/sab80515.h: and added them here
8089
8090 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
8091
8092         * device/include/stdarg.h: changed SDCC specific keywords to double
8093           underlined form.
8094         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
8095           mcs51 and ds390.
8096         * device/include/hc08/mc68hc908gp32.h,
8097         * device/include/hc08/mc68hc908jb8.h,
8098         * device/include/hc08/mc68hc908jkjl.h,
8099         * device/include/hc08/mc68hc908qy.h: fixed comments
8100         * device/include/mcs51/README: updated
8101         * device/include/mcs51/c8051f120.h: added PINRSF
8102         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
8103         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
8104           amidst code. Also inline is not supported.
8105
8106 2005-04-06 Raphael Neider <rneider AT web.de>
8107
8108         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
8109         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
8110           callers stack/frame pointers
8111
8112 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
8113
8114         * device/include/pic16/usart.h: added, missing in previous commit,
8115         * device/include/pic16/adc.h: fixed typo,
8116         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
8117         commit,
8118         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
8119         <p18fxxx.inc>
8120         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
8121         uninitialized because a bug appears with gplink
8122         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
8123         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
8124         complains for unrecognised option
8125
8126 2005-04-05 Raphael Neider <rneider AT web.de>
8127
8128         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
8129           structs as well (using memcpy)
8130         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
8131           on ISRs (GOTO has no label)
8132         * src/pic16/device.h: added OF_OPTIMIZE_DF
8133         * src/pic16/main.c: added compiler switch --optimize-df to enable the
8134           new data flow analysis/optimization
8135         * src/pic16/pcode.c: added (prototypes for and implementation of)
8136           dataflow analysis functions, fixed pCodeInstructions' inCond and
8137           outCond values, made RCALL a branch instruction
8138         * (pic16_unlinkpCode): keep C line if possible
8139         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
8140           C line moved if possible
8141         * (pic16_getRegFrompCodeOp): NEW, improved version of...
8142         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
8143           to use new pic16_getRegFrompCodeOp (works for more SFRs)
8144         * (pic16_BuildFlow): fixed skip instructions with label (did not start
8145           new flow)
8146         * (pic16_getJumptabpCode): NEW, needed in...
8147         * (LinkFlow): fixed handling of jumptables, calls and conditional
8148           branches
8149         * (pic16_InsertCommentAfter): NEW
8150         * (pic16_pCodeReplace): made verbose and flow preserving
8151         * (AnalyzeFlow): added call to data flow analysis
8152         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
8153         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
8154         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
8155
8156 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8157
8158         * src/SDCCast.c (decorateType): fixed bug #1105626
8159
8160 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
8161
8162         * device/include/asm/pic16/features.h,
8163         * pic18f*.h headers,
8164         * device/include/pic16/adc.h,
8165         * device/include/pic16/delay.h,
8166         * device/include/pic16/i2c.h,
8167         * device/include/pic16/malloc.h,
8168         * device/include/pic16/stdio.h,
8169         * device/include/pic16/stdlib.h,
8170         * device/include/pic16/string.h,
8171         * device/lib/pic16/libc/stdio/printf_tiny.c,
8172         * device/lib/pic16/libc/stdio/printf_small.c,
8173         * device/lib/pic16/libc/stdio/strmgpsim.c,
8174         * device/lib/pic16/libc/stdio/strmmssp.c,
8175         * device/lib/pic16/libc/stdio/strmusart.c,
8176         * device/lib/pic16/libc/stdio/vfprintf.c,
8177         * device/lib/pic16/libc/stdlib/ltoa.c,
8178         * device/lib/pic16/libc/stdlib/putchar.c,
8179         * device/lib/pic16/libc/stdlib/x_ftoa.c,
8180         * device/lib/pic16/libc/stdlib/memchrpgm.c,
8181         * device/lib/pic16/libc/stdlib/memchrram.c,
8182         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
8183         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
8184         * device/lib/pic16/libio/adc/adcbusy.c,
8185         * device/lib/pic16/libio/adc/adcread.c,
8186         * device/lib/pic16/libio/adc/adcsetch.c,
8187         * device/lib/pic16/libio/usart/ubaud.c,
8188         * device/lib/pic16/libio/usart/ubusy.c,
8189         * device/lib/pic16/libio/usart/udrdy.c,
8190         * device/lib/pic16/libio/usart/uopen.c,
8191         * device/lib/pic16/libio/usart/uputc.c,
8192         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
8193         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
8194         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
8195         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
8196         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
8197         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
8198         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
8199         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
8200         specific keywords to double underlined form,
8201         * device/lib/pic16/libc/Makefile.rules,
8202         * device/lib/pic16/libsdcc/Makefile.rules,
8203         * device/lib/pic16/libm/Makefile,
8204         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
8205         to compile with C standard set in Makefile.common
8206         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
8207         rand.c and crc.c in compilation process,
8208         * device/lib/pic16/libsdcc/int/divuint.c,
8209         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
8210         `c' from signed to unsigned,
8211         * device/lib/pic16/startup/crt0.c,
8212         * device/lib/pic16/startup/crt0i.c,
8213         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
8214         keywords to double underlined form, bug fixes in _do_cinit function
8215         which prevented the correct initialization of the .idata segment,
8216         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
8217         core to enter a infinite loop
8218         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
8219
8220 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8221
8222         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
8223
8224 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8225
8226         * device/include/Makefile.in: add support for hc08 subdirectory
8227         * device/include/hc08/: new subdirectory
8228         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
8229         Lucas Loizaga, thanks!
8230         * device/include/hc08/mc68hc908qy.h,
8231         * device/include/hc08/mc68hc908gp32.h,
8232         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
8233         their own directory. Changed internal macro names to use the compiler
8234         reserved namespace. Changed SDCC specific keywords to double
8235         underlined form.
8236         * device/include/math.h,
8237         * device/include/malloc.h,
8238         * device/include/stdarg.h,
8239         * device/include/stdbool.h
8240         * device/include/string.h,
8241         * device/include/tinibios.h,
8242         * device/include/ds400rom.h,
8243         * device/include/8051.h,
8244         * device/include/8052.h,
8245         * device/include/80c51xa.h,
8246         * device/include/at89c55.h,
8247         * device/include/at89S8252.h,
8248         * device/include/at89x51.h,
8249         * device/include/at89x52.h,
8250         * device/include/ds80c390.h,
8251         * device/include/reg764.h,
8252         * device/include/regc515c.h,
8253         * device/include/sab80515.h,
8254         * device/include/mcs51/c8051f000.h,
8255         * device/include/mcs51/c8051f018.h,
8256         * device/include/mcs51/c8051f020.h,
8257         * device/include/mcs51/c8051f040.h,
8258         * device/include/mcs51/c8051f060.h,
8259         * device/include/mcs51/c8051f120.h,
8260         * device/include/mcs51/c8051f300.h,
8261         * device/include/mcs51/c8051f310.h,
8262         * device/include/mcs51/c8051f320.h,
8263         * device/include/mcs51/c8051f330.h,
8264         * device/include/mcs51/c8051f350.h,
8265         * device/include/z180.h: Changed SDCC specific keywords to double
8266         underlined form.
8267
8268 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
8269
8270         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
8271         18F4455,
8272         * (pic16_assignConfigWordValue): disable testing of configuration
8273         register value with config mask,
8274         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
8275         function with port->fun_prefix,
8276         * (genFunction): when generating a naked interrupt function never
8277         create an absolute segment placed in interrupt vector address, place
8278         the actual interrupt function at IVA instead, when an interrupt
8279         function is generated with unspecified interrupt then do not create
8280         the absolute section,
8281         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
8282         code for generating a call to generic pointer get/put function with
8283         a call to function pic16_callGenericPointer(),
8284         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
8285         the call to the generic pointer get/put functions with prefixing the
8286         function name with port->fun_prefix,
8287         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
8288         * src/pic16/main.c (_process_pragma): prefix function with
8289         port->fun_prefix,
8290         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
8291         calling assembler, old 18Fxxxx macro is deprecated,
8292         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
8293         PC_ASMDIR in while condition,
8294         * (findInstruction): add PC_ASMDIR in while condition,
8295         * (buildCallTree): prefix main with port->fun_prefix,
8296         * (pic16_pCode2str): fixed bug that didn't emit the memory access
8297         identifier for variable with banked access in instructions BTFSS,
8298         BTFSC, BCF, BSF, BTG
8299         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
8300         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
8301         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
8302         perform optimization when enviroment variable NO_REG_OPT is set,
8303         * (insideLRBlock): NEW, return 1 if register is inside an
8304         INF_LOCALREGS block,
8305         * (RemoveRegFromLRBlock): remove a register that is completely
8306         eliminated by register optimization, but it is still left in local
8307         register store/restore in/from stack block,
8308         * (Remove2pcodes): after removing register, check to see if it
8309         should be removed from local register store/restore in/from stack
8310         block,
8311         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
8312         DUMMY_READ_VOLATILE,
8313
8314         * device/include/pic16/adc.h: minor prototype modifications and
8315         update,
8316         * device/include/pic16/malloc.h: added GPL notice various
8317         modifications,
8318         * device/include/pic16/stdint.h: NEW, standard header for ints
8319         * device/include/pic16/delay.h: NEW, header for delay functions,
8320         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
8321         delay1mtcy,
8322         * device/include/pic16/signal.h: NEW, header providing helper macros
8323         for implementing signal handlers,
8324         * device/include/pic16/stdio.h: added prototypes for functions,
8325         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
8326         prototypes for stdin and stdout, added macro PUTCHAR to
8327         automatically implement putchar function prototype,
8328         * device/include/pic16/usart.h: modified and updated USART library,
8329         * device/lib/pic16/libio/adc/,
8330         * device/lib/pic16/libio/i2c: some modifications to improve library
8331         performance,
8332         * device/lib/pic16/libc/stdio/: modifications for the new printf*
8333         family of functions,
8334         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
8335         family of functions and other sources,
8336         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
8337         of the PIC18Fxx[28] devices,
8338         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
8339         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
8340         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
8341         _do_cinit function, because the previous failed when local variables
8342         where not placed in the same memory bank,
8343         * device/lib/pic16/libsdcc/char/: various modifications to improve
8344         library performance,
8345         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
8346         information on the new functions of the c library and more...
8347
8348 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8349
8350         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
8351
8352 2005-03-26 Raphael Neider <rneider AT web.de>
8353
8354         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
8355           if condition == CARRY)
8356         * (genCmp): adapted to new genSkipc semantics
8357         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
8358           on rIfx (genCmp was broken)
8359
8360 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8361
8362         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
8363         * src/z80/main.c (_keywords[]),
8364         * src/SDCCglobal.h (struct options),
8365         * src/SDCC.y,
8366         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
8367         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
8368         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
8369         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
8370         always available in leading double underscore form. The C99 support is
8371         mostly missing, but it's a start.
8372         * support/regression/tests/bug-227710.c: fixed nonconforming use of
8373         reserved identifier "__data".
8374
8375 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
8376
8377         * src/mcs51/peeph.def: fixed bug 1170013
8378
8379 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
8380
8381         * device/include/mcs51reg.h: fixed bug 842007
8382
8383 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8384
8385         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
8386         last time.
8387
8388 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8389
8390         * src/port.h (struct PORT),
8391         * src/avr/ralloc.c (avr_assignRegisters),
8392         * src/avr/main.c,
8393         * src/ds390/ralloc.c (ds390_assignRegisters),
8394         * src/ds390/main.c,
8395         * src/hc08/ralloc.c (hc08_assignRegisters),
8396         * src/hc08/main.c,
8397         * src/mcs51/ralloc.c (mcs51_assignRegisters),
8398         * src/mcs51/main.c,
8399         * src/pic/ralloc.c (pic14_assignRegisters),
8400         * src/pic/main.c,
8401         * src/pic16/ralloc.c (pic16_assignRegisters),
8402         * src/pic16/main.c,
8403         * src/xa51/ralloc.c (xa51_assignRegisters),
8404         * src/xa51/main.c,
8405         * src/z80/ralloc.c (z80_assignRegisters),
8406         * src/z80/ralloc.h,
8407         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
8408         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
8409         * src/SDCCcse.h,
8410         * src/SDCCdflow.c (computeDataFlow),
8411         * src/SDCCdflow.h,
8412         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
8413         * src/SDCCloop.h,
8414         * src/SDCCcflow.c (*),
8415         * src/SDCCcflow.h,
8416         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
8417         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
8418         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
8419         immedDom() returning wrong block; probably fixes bug #1160833)
8420
8421 2005-03-20 Borut Razem <borut.razem AT siol.net>
8422
8423         * support/scripts/inc2h.pl: WIN32 port
8424
8425 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
8426
8427         * device/lib/makefile.in: added abs.c and labs.c
8428
8429 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
8430
8431         * device/include/stdint.h: added
8432         * device/lib/abs.c: added
8433         * device/lib/labs.c: added
8434         * device/include/stdlib.h: added abs() and labs() prototypes
8435         * device/lib/libsdcc.lib: added abs and labs
8436         * device/include/float.h,
8437         * device/lib/_fsmul.c,
8438         * device/lib/printf_fast.c,
8439         * device/lib/printf_tiny.c: updated comments
8440
8441 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8442
8443         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
8444         bug #1164313
8445
8446 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8447
8448         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
8449         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
8450
8451 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
8452
8453         * device/lib/printf_large.c: removed inline assembly for portability and
8454           readability. Use printf_fast if speed or size are more important.
8455         * src/pic16/gen.c: removed conditions around use of DEBUGpc
8456         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
8457
8458 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
8459
8460         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
8461         prevent compiler warning
8462
8463 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
8464
8465         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
8466         moved to level 0 and declared as static. Also they are explicit
8467         placed in access bank. This was necessery because some times they
8468         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
8469         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
8470         optimizations. Currently only compare to unsigned char is implemented,
8471         * src/pic16/gen.c: added fReturnIdx array,
8472         * (struct resolvedIfx) is moved to gen.h and made public,
8473         * (struct _G): added sregsAlloc and sregsAllocSet fields,
8474         * (aopForSym): added an optimization to directly store in stack of
8475         the operand of a SEND iCode,
8476         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
8477         but as registers instead (AOP_REG) using the fReturnIdx array,
8478         * (pic16_freeAsmop): remove the freed register from the
8479         _G.sregsAlloc field,
8480         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
8481         a compare of 'WREG',
8482         * (pic16_popGetTempRegCond): changed function prototype, now
8483         function takes also a bitVector argument v which holds the current
8484         set of registers that are allocated for stack access by aopForSym,
8485         registers allocated in aopForSym for accessing stack symbols are not
8486         any more part of the functions usedRegs field,
8487         * (genCall): some times aopOp is called for a stack variable to be
8488         send, aopForSym might perform the push, if this is true make sure
8489         that genCall doesn't push the variable twice by testing _G.resDirect,
8490         * (genFunction): changed testing for unspecified interrupt number
8491         from 256 to INTNO_UNSPEC,
8492         * modified selection scheme of frame pointer generation. Previously
8493         if function did use local registers a frame pointer was generated,
8494         now a frame pointer is generated only if function has arguments
8495         (that need PLUSW2 register access), or has stack arguments, or the
8496         compiler is not instructed to omit the frame pointer,
8497         * (genEndFunction): before restoring local registers that were saved
8498         in the function preamble, also restore the registers that *might*
8499         have been allocated for stack access,
8500         * (genRet): removed some old comments,
8501         * (genCmp, the active (RN's) version): added a call to the
8502         pic16_genCmp_special function to perform the compare with a more
8503         robust and optimized way,
8504         * (genInline): a feature has been added in inline code generation,
8505         which allows a wildcard variable substitution when writing inline
8506         assembly. Code is incomplete and experimental therefore undocumented,
8507         * (genCast): changed order of aopOp for result and right to allow
8508         aopForSym to directly load the result if possible,
8509         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
8510         perform an optimized compare on some selected special occasions,
8511         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
8512         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
8513         generate an IVT any more,
8514         * src/pic16/main.c (pic16_optionsTable): added command line option
8515         --optimize-cmp,
8516         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
8517         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
8518         macros,
8519         * src/pic16/NOTES: Raphael Neider added in list of active developers
8520         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
8521         jumptable_end to prevent bug #,
8522         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
8523         inCond and outCond fields,
8524         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
8525         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
8526         turn off register spilling,
8527         * (packRegsForOneUse): synced with other ports' versions although it
8528         is not used currently,
8529         * (pic16_packRegisters): added an optimization while reading
8530         structure bitfields, some registers may be saved (malloc code is
8531         decreased by 80 bytes)
8532
8533 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
8534
8535         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
8536         left is a bitfield, if yes, then don't optimize assignment. Perhaps
8537         this can be optimized more?
8538
8539 2005-03-10 Raphael Neider <rneider AT web.de>
8540
8541         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
8542           genNearPointerGet): (hopefully) fixed access to bitfields via
8543           pointers (p->bitN = x; and x = p->bitN; failed)
8544
8545 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
8546
8547         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
8548
8549 2005-03-09 Raphael Neider <rneider AT web.de>
8550
8551         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
8552
8553 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
8554
8555         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
8556         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
8557           (regTypeNum): set REG_BIT type if necessary
8558         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
8559         * support/regression/tests/critical.c: check bug 1144613
8560
8561 2005-03-02 Raphael Neider <rneider AT web.de>
8562
8563         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
8564
8565 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8566
8567         * src/avr/ralloc.c (serialRegAssign),
8568         * src/ds390/ralloc.c (serialRegAssign),
8569         * src/hc08/ralloc.c (serialRegAssign),
8570         * src/mcs51/ralloc.c (serialRegAssign),
8571         * src/pic/ralloc.c (serialRegAssign),
8572         * src/pic16/ralloc.c (serialRegAssign),
8573         * src/xa51/ralloc.c (serialRegAssign),
8574         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
8575
8576 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
8577
8578         * src/SDCCast.c (decorateType): fixed bug 1124787
8579
8580 2005-02-20 Hubert Sack <sack AT digiplan.de>
8581         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8582
8583         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
8584         patch #1121755
8585
8586 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8587
8588         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
8589         to keep the correct label reference count when adding/removing references
8590         to labels. A peephole file using this is appended to patch #1144962.
8591
8592 2005-02-14 Raphael Neider <rneider AT web.de>
8593
8594         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
8595         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
8596         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
8597           retrievals of result operand's value on assignment
8598
8599 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
8600
8601         * device/include/pic16/string.h: modified prototype for memccpy()
8602         to memccpy(void *, void *, char, size_t)
8603         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
8604         check whether to omit frame pointer or not,
8605         * (genInline): convert all occurences of "\n" to LF in inline
8606         assembler blocks, this helps formatting the inline text,
8607         * (pic16_loadFSR0): modified prototype,
8608         * (genNearPointerGet, genNearPointerSet): reorganization of code,
8609         removed some 8051 legacy code,
8610         * (genPackBits): enabled handling bitfields exceeding one byte in size,
8611         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
8612         before allocating temporary registers in functions,
8613
8614 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
8615
8616         * support/regression/tests/bitvars.c: corrected the "fix"
8617
8618 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
8619
8620         * support/regression/tests/bitvars.c,
8621         * support/regression/tests/bitwise.c,
8622         * support/regression/tests/rotate.c: "fixed" problems on Alpha
8623
8624 2005-02-10 Raphael Neider <rneider AT web.de>
8625
8626         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
8627           different size for Alpha
8628         * src/pic16/gen.c (genCmpEq) : improved compare with 0
8629
8630 2005-02-09 Raphael Neider <rneider AT web.de>
8631
8632         * src/SDCC.lex(doPragma) : save and restore warning options as well
8633           (also added new stack plus clone- and copyAndFreeSDCCERRG())
8634         * have #pragma less_pedantic set the errorlevel to WARNING
8635           (fixes #1117001)
8636         * (cloneOptimize) : fixed wrong malloc's size
8637         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
8638           facilitate correct handling of #pragma (save|restore)
8639
8640 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
8641
8642         * src/mcs51/gen.c: removed non-standard C nameless struct/union
8643
8644 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
8645
8646         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
8647
8648 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
8649
8650         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
8651
8652 2005-02-02 Raphael Neider <rneider AT web.de>
8653
8654         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
8655         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
8656         * (pic16_storeForReturn): fixed to allow returning function pointers
8657         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
8658         * device/include/pic16/{stddef.h,stdbool.h}: added
8659
8660 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
8661
8662         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
8663
8664 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
8665
8666         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
8667         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
8668          appeared to be required
8669
8670 2005-01-31 Borut Razem <borut.razem AT siol.net>
8671
8672         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
8673           include/mcs51 and include/z80 directories to the package
8674
8675 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8676
8677         * src/hc08/gen.c (genFunction): fixed bug #1112752
8678
8679 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8680
8681         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
8682
8683 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8684
8685         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
8686
8687 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
8688
8689         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
8690
8691 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
8692
8693         * device/include/c8051fxxx.h: removed these 6 files
8694         * device/include/mcs51/c8051fxxx.h: added these 11 new files
8695
8696 2005-01-26 Raphael Neider <rneider AT web.de>
8697
8698         * src/pic16/gen.c (genAssign): fixed assignment from longs
8699           in codespace (were cut to three bytes)
8700         * (genDummyRead): implemented (except for CODESPACE...),
8701           fixed bug #1108575
8702         * src/pic16/glue.c (emitStatistics): beautified
8703         * device/lib/pic16/libm/Makefile: added include path
8704
8705 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8706
8707         * src/z80/gen.c (aopPut): fixed bug #1103902
8708
8709 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8710
8711         * device/lib/expf.c: fixed bug #1095792
8712
8713 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
8714
8715         * device/lib/pic16/libm: added Math library sources
8716
8717 2005-01-24 Raphael Neider <rneider AT web.de>
8718
8719         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
8720           to enable upcast to pCodeOpReg2 (there is no type tag to
8721           differenciate the two and pic16_popGet2p cast into PCOR2)
8722         * src/pic16/main.c (_process_pragma): fixed another malloc bug
8723           (sizeof(sectNames) changed to sizeof(sectName))
8724           Both patches fix segfaults under MinGW.
8725
8726 2005-01-23 Raphael Neider <rneider AT web.de>
8727
8728         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
8729           Safe_[mc]?alloc()'ed variables
8730         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
8731           of (byte sized) temporaries (assign them to WREG for now)
8732         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
8733           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
8734           this might fix SIGSEGVs on MinGW...
8735         * src/SDCCopt.c (killDeadCode): restored original behaviour
8736           (volatile operands might get thrown away though)
8737
8738 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
8739
8740         * src/pic16/gen.c: fixed bug #1106975,
8741         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
8742         pointer update, INTCON is saved, global interrupts are disabled and
8743         restored after updateing TOS.
8744         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
8745         * added function attribute 'shadowregs' to take advantage of shadow
8746         registers,
8747         * added function attribute 'wparam' as an alternative to the wparam
8748         pragma,
8749         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
8750         user declares a non-ISR function as 'shadowregs',
8751         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
8752
8753 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
8754
8755         * .version: bumped version number to 2.4.8
8756         * device/lib/pic16/pics.all: list of PIC18F devices supported by
8757         pic16 port,
8758         * device/lib/pic16/libio/i2c/: I2C module support library,
8759         * device/include/pic16/i2c.h: I2C support library header,
8760         * device/lib/pic16/libc/stdio/: standard IO support sources,
8761         * (printf_small.c): printf_small() source, supports float print,
8762         * (printf_tiny.c): printf_tiny() source, does not support floats,
8763         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
8764         enable global optimizations for entire library source, other
8765         Makefiles in the source tree are also modified to reflect this,
8766         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
8767         function,
8768         * doc/sdccman.lyx: updated to reflect new changes,
8769         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
8770         sym->onStack if-case,
8771         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
8772         sbit, idata, _idata, xdata, _xdata,
8773         * added pragma library, to link an external library, (see doc),
8774         * removed command line options, --pomit-config-words, --pomit-ivt,
8775         --pleave-reset-vector,
8776         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
8777         when calling assembler to reflect memory model used, also define
8778         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
8779         reflect stack model used,
8780         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
8781         on stack return NULL,
8782
8783 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8784
8785         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
8786           of the operands is volatile. Fixes #1020220
8787
8788 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
8789
8790         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
8791         * (OptimizeRegUsage): make sure that there is really no other flow where
8792           the first pCode is used
8793
8794 2005-01-22 Raphael Neider <rneider AT web.de>
8795
8796         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
8797           to fix #1106967 (pCode->seq are not set up correctly)
8798
8799 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8800
8801         * src/SDCCglue.c (glue): make sure code area is declared before the
8802         static initialization area.
8803
8804 2005-01-21 Raphael Neider <rneider AT web.de>
8805
8806         * device/lib/Makefile.in: fixed test for pic16 install dir
8807         * device/lib/pic16/*/Makefile*: modified compile flags to enable
8808           optimizations
8809         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
8810           added --optimize-goto compiler switch and pragma wparam documentation
8811         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
8812         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
8813           and PRODH closing bug #1071770 (peephole optimizer)
8814
8815 2005-01-19 Raphael Neider <rneider AT web.de>
8816
8817         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
8818           cmdLine buffers (used when calling sdcpp...) are large enough
8819           (MAX_PATH=256 truncates arguments leading to system halts when
8820           used in MinGW...)
8821         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
8822         * (genUminus): rewritten to for efficiency
8823         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
8824           used uninitialized in some cases)
8825         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
8826           copy the third byte from the int -- now assumes 0x80 (data memory)
8827         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
8828           operands (genAddLit expects the iCode's operands to swapped as
8829           well), fixed leftover bytes (crashed for short left operands)
8830         * (pic16_genMinusDec): performance improvements, removed false
8831           PIC14 emitSKPNCs
8832         * (pic16_genMinus): fixed to cope with differently sized operands
8833         * src/pic16/glue.c (pic16_glue): added new banksel optimization
8834           for --obanksel > 1
8835         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
8836         * src/pic16/graph.[ch]: implementation of directed graphs, used by
8837           new banksel optimization
8838         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
8839           analysis for temporary registers (segfaults...)
8840         * src/pic16/peeph.def: added rule
8841
8842 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
8843
8844         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
8845         which converts a float number to its ASCII representation
8846         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
8847         functions to convert the fractional and integer part of a float to ASCII,
8848         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
8849         realloc.c): added _MALLOC_SPEC to explicit place variables in data
8850         ram
8851         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
8852         _STATMEM macros,
8853         * device/include/pic16/adc.h: added GPL info,
8854         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
8855         a pCodeOp as tested operand,
8856         * (genNearPointerGet): optimized bit testing, does not use
8857         intermediate register for bit value, test directly instead with
8858         BTFSS, BTFSC, works only for single bits,
8859         * (genpic16Code): dump the name of the iCode in the asm,
8860         * src/pic16/ralloc.c (decodeOp): removed static declaration and
8861         renamed to pic16_decodeOp,
8862         * (serialRegAssign): do not allocate a temporary register for iCode
8863         sequences that test a single bit for 1/0
8864
8865 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
8866
8867         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
8868         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
8869         access stack and frame pointers. They are initially assigned to
8870         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
8871         accessing SFRs. Updated all occurences of modification of stack or
8872         frame pointer in gen.c and pcode.c,
8873         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
8874         assigning of a literal value to pointers,
8875         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
8876         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
8877         selected
8878
8879 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
8880
8881         * doc/sdccman.lyx: update documentation about stack pragma, added
8882         some info for stack memory models
8883
8884 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8885
8886         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
8887
8888 2005-01-08 Raphael Neider <rneider AT web.de>
8889
8890         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
8891           udata sections to fix bug #1097823
8892
8893 2005-01-05 Raphael Neider <rneider AT web.de>
8894
8895         * src/pic16/gen.c (genGenericShift): added handling of differently
8896           sized left operand and result
8897
8898 2005-01-04 Raphael Neider <rneider AT web.de>
8899
8900         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
8901         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
8902           to hold the condition bit)
8903         * added new version of genCmp (old code available via #define)
8904         * added new version of genShiftLeft/genShiftRight in a generic
8905           way, now supports shifting by negative values
8906         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
8907           shiftCount (expected by genGenericShift)
8908         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
8909         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
8910           dump
8911         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
8912           is an invalid literal too...)
8913
8914 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
8915
8916         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
8917         from Raphael Neider,
8918         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
8919         for 8-bit literals. This fixes some literal operands which are sign
8920         extended to 16-bits ints when instruction needs only 8-bits.
8921
8922 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
8923
8924         * device/lib/logf.c: added mcs51 assembly version
8925         * device/lib/expf.c: added mcs51 assembly version
8926         * device/lib/_logexpf.c: new shared asm code for expf and logf
8927         * device/include/math.h: add defines for assembly math library
8928         * device/lib/Makefile.in: build new _logexpf.c
8929         * device/lib/libfloat.lib: use new _logexpf.c
8930
8931 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8932
8933         * src/pic/device.c
8934         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
8935           device types which have less than 0x7f registers.
8936
8937 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
8938
8939         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
8940
8941 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8942
8943         * device/lib/printf_fast.c: only build on supported arch.
8944         * device/lib/printf_tiny.c: only build on supported arch.
8945         * device/lib/printf_fast_f.c: only build if asm float lib
8946         * device/lib/_fsget1arg.c: only build if asm float lib
8947         * device/lib/_fsget2args.c: only build if asm float lib
8948         * device/lib/_fsnormalize.c: only build if asm float lib
8949         * device/lib/_fsreturnval.c: only build if asm float lib
8950         * device/lib/_fsrshift.c: only build if asm float lib
8951         * device/lib/_fsswapargs.c: only build if asm float lib
8952         * device/include/stdio.h: don't provide print_fast,
8953           print_fast_f, print_tiny prototypes if --xstack used
8954
8955 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
8956
8957         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
8958         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
8959           to the SOURCES
8960
8961 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
8962
8963         * device/lib/printf_fast_f.c: same as printf_fast, but
8964           with floating point enabled
8965         * device/lib/printf_fast.c: minor tweaks
8966         * device/include/stdio.h: add printf_fast_f
8967
8968 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8969
8970         * src/SDCCmain.c: make --float-reent default for mcs51
8971         * device/lib/_fsadd.c: added mcs51 assembly version
8972         * device/lib/_fssub.c: added mcs51 assembly version
8973         * device/lib/_fsmul.c: added mcs51 assembly version
8974         * device/lib/_fsdiv.c: added mcs51 assembly version
8975         * device/lib/_fseq.c: added mcs51 assembly version
8976         * device/lib/_fsneq.c: added mcs51 assembly version
8977         * device/lib/_fsgt.c: added mcs51 assembly version
8978         * device/lib/_fslt.c: added mcs51 assembly version
8979         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
8980         * device/lib/Makefile.in: add _fscmp to build
8981         * device/lib/libfloat.lib: add _fscmp to build
8982
8983 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
8984
8985         * device/lib/_fs2slong.c: added mcs51 assembly version
8986         * device/lib/_fs2sint.c: added mcs51 assembly version
8987         * device/lib/_fs2schar.c: added mcs51 assembly version
8988         * device/lib/_fs2ulong.c: added mcs51 assembly version
8989         * device/lib/_fs2uint.c: added mcs51 assembly version
8990         * device/lib/_fs2uchar.c: added mcs51 assembly version
8991         * device/lib/_slong2fs.c: added mcs51 assembly version
8992         * device/lib/_sint2fs.c: added mcs51 assembly version
8993         * device/lib/_schar2fs.c: added mcs51 assembly version
8994         * device/lib/_ulong2fs.c: added mcs51 assembly version
8995         * device/lib/_uint2fs.c: added mcs51 assembly version
8996         * device/lib/_uchar2fs.c: added mcs51 assembly version
8997         * device/include/float.h: added #define to select asm vs c
8998
8999 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
9000
9001         * device/lib/printf_fast.c: improvements to float output
9002         * device/include/float.h: add defines for assembly float library
9003         * device/lib/_fsget1arg.c: receive 1 float arg
9004         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
9005         * device/lib/_fsnormalize.c: normalize a float
9006         * device/lib/_fsreturnval.c: return float, various helper routines
9007         * device/lib/_fsrshift.c: right shift a float's mantissa
9008         * device/lib/_fsswapargs.c: swap 2 floats
9009         * device/lib/Makefile.in: build these 6 new files for mcs51
9010         * device/lib/libfloat.lib: add these 6 files to the library
9011
9012 2004-12-26 Borut Razem <borut.razem AT siol.net>
9013
9014         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
9015           built by gcc 3.4.2
9016
9017 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
9018
9019         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
9020           and fully reentrant and register bank neutral.
9021         * device/lib/printf_fast.c: added float (not enabled by default),
9022           added compact/slower integer (also not enabled by default),
9023           improved size/speed of fast integer code, other minor changes
9024         * device/include/stdio.h, device/lib/Makefile.in,
9025           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
9026
9027 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
9028
9029         * src/pic16/pcode.c: declaring variables other than at the start of a
9030           block is not supported in C by VC6.
9031
9032 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
9033
9034         * applied a previous patch from Raphael Neider that wasn't included
9035         in the previous commits, which fixes infinite loops within jumptable
9036         improvements,
9037         * made some fixes that previous patches introduced
9038
9039 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
9040
9041         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
9042         that fixes an issue with AOP_PCODE asmop's offset,
9043         * (pic16_popCopyReg): update instance field too,
9044         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
9045         function of pic port,
9046         * (genCmp, genAnd, genAssign),
9047         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
9048
9049 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
9050
9051         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
9052         variables initial values to idata section,
9053         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
9054         variables in some functions. This utilizes parmBytes field of iCode
9055         structure to hold the offset of the variable in stack. (might be
9056         able to use the stack field too?)
9057         * applied patch from Raphael Neider # ### , # ###
9058         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
9059         variable initial values in idata section,
9060         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
9061         for static variables with initial value
9062         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
9063         applied fix in while loop from Raphael Neider.
9064
9065 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
9066
9067         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
9068         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
9069         * src/ds390/ralloc.c (serialRegAssign): spill bits
9070         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
9071         * support/Util/SDCCerr.c,
9072         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
9073         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
9074         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
9075
9076 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
9077
9078         * device/include/sdcc-lib.h: inserted LGPL, added includes
9079           asm/ds390/features.h and asm/mcs51/features.h
9080         * device/include/asm/default/features.h,
9081         * device/include/asm/gbz80/features.h,
9082         * device/include/asm/z80/features.h: added empty _AUTOMEM
9083           and _STATMEM
9084         * device/include/asm/ds390/features.h,
9085         * device/include/asm/mcs51/features.h: added files with defines for
9086           _AUTOMEM and _STATMEM indicating automatic and static storage class
9087         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
9088         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
9089         * src/SDCCicode.c (geniCodeCast),
9090         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
9091         * src/SDCCloop.c (loopInduction): removed unused variable lr
9092         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
9093           to convertToFcall to include char modulo (RFE 1065037), added check
9094           if left operand is unsigned and use abs of literal value
9095         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
9096           as it doesn't work after conversion from peephole.def to peephole.rul
9097         * src/mcs51/gen.c (toBoolean): added check for size,
9098           (genModOneByte): optimized code for signed char modulo a literal
9099           power of 2 (thanks to Hubert Sack),
9100           (genRRC): removed unnecessary "clr c",
9101           (genRLC): replaced "add a,acc" with cheaper "rlc a"
9102         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
9103           jump optimization,
9104           swapped rules 256.c and 256.d,
9105           extended 256.d by using new multiple checks (thanks Erik),
9106           added rules 256.e and 256.f,
9107           updated rule 261.a and 261.b to new generated code
9108         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
9109
9110 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9111
9112         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
9113           induction related bugs, including first part of bug #1074377
9114
9115 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
9116
9117         * applied patch from bug-report #1076292,
9118         * applied patches for genAnd and Goto-optimizations for Raphael
9119         Neider,
9120         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
9121         dump a less iCode information,
9122         * src/pic16/device.h (pic16_options_t): added field debgen,
9123         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
9124         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
9125         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
9126         puclic,
9127         * (various functions): added macros FENTRY and FENTRY2 to functions,
9128         to emit function prologue,
9129         * (various functions): fixed indentation,
9130         * (genNearPointerGet): fixed loading of FSR0,
9131         * (genPackBits): applied patch from Raphael Neider to fix updating
9132         of FSR0 and touching only the modified bits,
9133         * src/pic16/genarith.c (various functions): added macros FENTRY to
9134         emit function prologue in comments,
9135         * src/pic16/pcode.h: added functions debugf2, debugf3,
9136         * src/pic16/ralloc.c: partial fix for packForPush caused
9137         segmentation fault,
9138
9139 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9140
9141         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
9142           <stsp AT users.sourceforge.net> with reversed byte order
9143         * support/regression/tests/rotate.c: added (ds390 skips some tests)
9144
9145 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9146
9147         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
9148           bug #1074377
9149         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
9150         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
9151
9152 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9153
9154         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
9155
9156 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9157
9158         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
9159           conditions,
9160           (setFromConditionArgs): friendly operand parser for peephole rules,
9161           (operandBaseName, operandsNotRelated): new peephole condition
9162           "operandsNotRelated" -- similar to "operandsNotSame", but takes
9163           architecture specific register naming into account, handles n-way
9164           comparisons, and supports quoted literals
9165         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
9166
9167 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9168
9169         * src/mcs51/peeph.def: fixed bug #1076940
9170
9171 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
9172
9173         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
9174
9175 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9176
9177         Adding support for replacing ljmps with sjmps in jumptables
9178         generated for switch statements. For now you need to set the
9179         environment variable SDCC_SJMP_JUMPTABLE to enable this.
9180         Now 4 algorithms for mcs51 jumptable generation are used:
9181         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
9182         addresses loaded pc-relative for up to 112 cases and stack-pushing
9183         target addresses loaded with offset from dptr for up to 256 cases.
9184
9185         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
9186         * src/mcs51/main.c: adapted constants for switch table generation
9187         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
9188
9189 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
9190
9191         * device/lib/printf_large.c (_print_format): fixed bug 1073386
9192         * support/regression/tests/bug1057979.c: added test for bug 1073386
9193
9194 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9195
9196         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
9197         compilers
9198
9199 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
9200
9201         * src/pic16/device.h,
9202         * src/pic16/genarith.c,
9203         * src/pic16/glue.c,
9204         * src/pic16/main.c,
9205         * src/pic16/pcode.c: applied patches #1068154 and #1070213
9206
9207 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
9208
9209         Large cummulative patch for pic16 port.
9210         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
9211         to call when a stack overflow occurs,
9212         * (malloc.h): added CVS Id tag,
9213         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
9214         variable,
9215         * added libc directory. The current version of LibC contains string
9216         functions, ctype functions and macros and some functions of the
9217         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
9218         be extensively tested in the future. Standard disclaimer here.
9219         Library is not automatically build yet. But one can build it by
9220         invoking 'make' inside the libc directory.
9221         * added ADC library under libio. Preliminary version yet.
9222
9223         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
9224         * src/pic16/gen.c (aopForRemat): asmop size is filled by
9225         aopForRemat() now and not by pic16_aopOp(),
9226         * (pic16_popGetTempReg): removed warning messgae when allocating
9227         temporary registers, its a buggy feature and will be removed,
9228         * (pic16_popGet): set register instance field in AOP_CRY,
9229         * (pic16_outBitC): fixed for results in size greater than 1,
9230         * (genUminusFloat): fixed for pic16, ported code from mcs51,
9231         * (pic16_storeForReturn): optimized return of 0,
9232         * (genCmp): experimental code for new genCmp which uses PIC18's
9233         special compare&skip instructions. Initial tests fail some times
9234         with variables grater than 1 byte in size, so new code is disabled,
9235         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
9236         a single bit,
9237         * (genCast): began a fix to optimize the casting of a bit to another
9238         bit, now assigning a bitfield to another bitfield will fail, sorry,
9239         * src/pic16/main.c: disabled the use of lr-support feature,
9240         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
9241         * added some function prototypes, added function _debugf prototype,
9242         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
9243         bits with offset (case PO_GPR_BIT),
9244         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
9245         command line,
9246         * (isBankInstruction): modified to return 0 for no banking instruction,
9247         and 1 for banking instruction,
9248         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
9249         caused stop processing pCodes after a inline assembly block,
9250         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
9251         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
9252         registers when it shouldn't,
9253         * src/pic16/ralloc.c (allocReg): add preliminary support for
9254         supporting a limited set of temporary registers,
9255
9256 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9257
9258         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
9259           genDataPointerSet): ensure assignments always copy in MSB to LSB
9260           order,
9261           (loadRegFromAop): recognize CLRH optimization,
9262           (genFunction): optimize RECEIVE iCodes in reentrant functions
9263
9264 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9265
9266         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
9267           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
9268           selected.
9269         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
9270         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
9271           contiguous with data
9272
9273 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9274
9275         * device/lib/_gptrget.c (_gptrget),
9276         * device/lib/_gptrgetc.c (_gptrgetc),
9277         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
9278           instead of sjmp to ret
9279         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
9280           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
9281
9282 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
9283
9284         * .version: bumped version to 2.4.7
9285         * device/lib/_gptrget.c (_gptrget): is now _naked
9286         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
9287         * device/lib/_gptrput.c (_gptrput): is now _naked
9288         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
9289           (createFunction): fixed xstack
9290         * src/SDCCglue.c (emitMaps): set allocation required for bit area
9291         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
9292           or bit either,
9293           (geniCodeCritical): store original interrupt state in an iTemp bit
9294           var unless stack-auto
9295         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
9296         * src/SDCCmain.c (setIncludePath): added include/target to search path
9297         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
9298         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
9299           prototype,
9300           (processFuncArgs): put bit vars in bit area
9301         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
9302           unsaveRBank): fixed xstack,
9303           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
9304           (genFunction, genEndFunction): fixed xstack,
9305           (genAssign): optimization don't walk backwards through mem
9306         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
9307         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
9308         * support/regression/Makefile: also make library (for stack-auto) when
9309           making "all" and added "test-mcs51-xstack-auto"
9310         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
9311         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
9312         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
9313         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
9314         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
9315           make-library by MAKE_LIBRARY
9316         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
9317           regression tests for xstack
9318         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
9319         * support/regression/tests/critical.c: test for critical on mcs51
9320
9321 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9322
9323         * support/regression/ports/ucz80/spec.mk: use include and lib files from
9324           built version of sdcc instead of installed version
9325
9326 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
9327
9328         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
9329         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
9330           vprintf.c now
9331         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
9332         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
9333           WARNING: remove device/lib/build/z80/printf.o by hand when
9334           updating from previous build!
9335         * device/lib/z80/printf.c: updated comment
9336         * support/regression/tests/bug1057979.c: test all ports now
9337         * support/regression/tests/bug1065458.c: file added
9338
9339 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9340
9341         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
9342           *_start and *_end symbols for static functions
9343
9344 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
9345
9346         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
9347           and search crt0.o in all library paths,
9348           (setIncludePath): proper handling of --nostdinc,
9349           (setLibPath): proper handling of --nostdlib
9350         * support/regression/Makefile,
9351         * support/regression/ports/ds390/spec.mk,
9352         * support/regression/ports/gbz80/spec.mk,
9353         * support/regression/ports/hc08/spec.mk,
9354         * support/regression/ports/mcs51/spec.mk,
9355         * support/regression/ports/mcs51-large/spec.mk,
9356         * support/regression/ports/mcs51-stack-auto/spec.mk,
9357         * support/regression/ports/z80/spec.mk: use include and lib files from
9358           built version of sdcc instead of installed version
9359         * doc/sdccman.lyx: fixed typo in --nostdinc
9360
9361 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
9362
9363         * src/pic/pcode.c,
9364         * src/pic/device.c,
9365         * src/pic/ralloc.c,
9366         * src/pic/gen.c : added support to generate code for struct bit fields.
9367
9368 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
9369
9370         * as/xa51/xa_version.h,
9371         * device/include/errno.h,
9372         * device/include/regc515c.h,
9373         * device/lib/_itoa.c,
9374         * device/lib/_ltoa.c,
9375         * device/lib/ser_ir_cts_rts.c,
9376         * sim/ucsim/xa.src/glob.cc,
9377         * sim/ucsim/xa.src/inst_gen.cc,
9378         * sim/ucsim/xa.src/xa_bit.cc,
9379         * sim/ucsim/xa.src/xa_sfr.cc,
9380         * sim/ucsim/z80.src/inst_dd.cc,
9381         * sim/ucsim/z80.src/inst_fdcb.cc,
9382         * support/scripts/keil2sdcc.pl,
9383         * src/pic16/pic16.dsp,
9384         * src/pic16/pic16a.dsp: corrected cvs line endings
9385         * device/lib/printf_large.c: fixed bug 1057979
9386         * src/pic16/gen.c: fixed non-C standard code
9387         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
9388         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
9389         * support/regression/ports/mcs51/support.c: reload T1 asap
9390         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
9391           pdata use and clear idata startup behaviour
9392         * support/regression/tests/bug1057979.c: added
9393
9394 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
9395
9396         * device/examples/ds390/ow390/ad26.h,
9397         * device/examples/ds390/ow390/cnt1d.h,
9398         * device/examples/ds390/ow390/crcutil.c,
9399         * device/examples/ds390/ow390/ownet.h,
9400         * device/examples/ds390/ow390/owsesu.c,
9401         * device/examples/ds390/ow390/swt12.h,
9402         * device/examples/ds390/ow390/swtoper.c,
9403         * device/examples/ds390/ow390/temp10.h,
9404         * device/examples/ds390/ow390/thermodl.c,
9405         * device/examples/ds390/tinitalk/tinitalk.dsp,
9406         * device/examples/ds390/tinitalk/tinitalk.dsw,
9407         * device/examples/mcs51/clock/hw.h,
9408         * device/examples/mcs51/simple2/go.bat,
9409         * device/examples/serialcomm/windows/serial.h,
9410         * device/examples/xa51/dummy.c,
9411         * device/examples/xa51/hello.c,
9412         * device/include/80c51xa.h,
9413         * device/include/at89x051.h: corrected cvs line endings
9414
9415 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
9416
9417         * src/pic16/main.c (options): added command line --gstack, to trace
9418         stack over/under flows,
9419         * added pragma 'wparam' to allow passing first byte of function
9420         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
9421         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
9422         call to __gstack_test function and sets up the symbol as extern,
9423         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
9424         * popaop): added call to pic16_testStackOverflow,
9425         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
9426         wparamList list,
9427         * (genCall, genPcall): now all parameters are passed via stack
9428         except in functions that are pass to wparam pragma in which WREG is
9429         used too,
9430         * (genPcall): REENTRANT flag is checked to see if variable prototype
9431         contains reentrant keyword, don't call a non-reentrant function, via
9432         a reentrant function pointer or vice versa, functions are never
9433         passed via WREG,
9434         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
9435         D.Winkler,
9436         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
9437         SIGSEGV when accessing a NULL register stucture,
9438         * (pic16_printGPointerType): modified to handle UPPER modifier for
9439         function initializers, changed prototype of function to simpler one,
9440         * (pic16_printIvalFuncPtr): check to see if function is already
9441         added in externs list,
9442         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
9443         optimized a move from W to SFR with a move to the same register
9444         later after a CALL,
9445         * device/lib/pic16/debug: NEW directory, contains debug features
9446         which are enabled when linking with libdebug.lib, currently command
9447         line option --gstack enables stack pointer tracing for over/under
9448         flow, corresponding sources are in debug/gstack
9449
9450 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
9451
9452         * doc/sdccman.lyx: updated SDCC version,
9453         * (PIC16 port): update list of command line options,
9454         * src/pic16/device.h (structure pic16_options_t): added field gstack
9455         to enable stack overflow tracing on push/pops,
9456         * src/pic16/device.c (statistics structure): added statistics
9457         structure,
9458         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
9459         pic16_dump_int_registers): increase statistics counters for each
9460         * variable which is encountered
9461         * (pic16_dump_usection): emit each .udata variable to its own udata
9462         section,
9463         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
9464         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
9465         parameters via stack, otherwise use old scheme,
9466         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
9467         assembler output file,
9468         * src/pic16/main.c: added command line options --gstack to enable
9469         push/pop tracing for stack overflow,
9470         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
9471         instructions): added size of each instruction,
9472         * (pic16_countInstruction): estimate size of instructions in
9473         the_pFile list, inline assembly blocks are not counted,
9474         * (pic16_FixRegisterBanking): trace previous register usage, when
9475         banksel optimizations is greater than 0, don't emit a redudant
9476         banksel directive,
9477
9478 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
9479
9480         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
9481         * src/pic16/ralloc.c : applied same fix for pic16.
9482         * src/pic/gen.c : tidied it up a little.
9483
9484 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9485
9486         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
9487         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
9488
9489 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9490
9491         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
9492
9493 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9494
9495         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
9496         non-reentrant function __modsint in the interrupt function (thus
9497         corrupting math operations during serial I/O)
9498         * device/lib/ser_ir.c: as above, changed buffersize
9499         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
9500         256.c,d for zeroing
9501         * doc/Makefile: added option -t for rsync
9502
9503 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9504
9505         * src/SDCCast.h (struct ast),
9506         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
9507
9508 2004-10-20 Borut Razem <borut.razem AT siol.net>
9509
9510         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
9511         package
9512
9513 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
9514
9515         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
9516         makefile targets,
9517         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
9518         support functions to replace long sequences of MOVFF's from access
9519         bank registers to stack and vice versa,
9520         * src/pic16/device.h: added new field opt_flags, where optimization
9521         flags can be set to enable certain features,
9522         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
9523         * pBlock, (genFunction, genEndFunction): surroung loop for
9524         saving/loading used registers in stack with PC_INFO pCodes,
9525         INF_LREGS. Code in between can then be optimized by pCode optimizer
9526         to support function calls,
9527         * (genDataPointerSet): fixed bug which loaded float fields in
9528         structures with corrupt data,
9529         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
9530         in a standard way debug info on stderr. Feature used for developing
9531         and debugging only,
9532         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
9533         obsolete chunks of code,
9534         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
9535         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
9536         * pic16/src/pcode.c (pic16_newpCodeInfo,
9537         * (pic16_newpCodeOpLocalRegs),
9538         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
9539         feature,
9540         * (pic16_pCodeConstString): printing of the initial value of a
9541         symbol as a comment is inhibited since parsing was already done by
9542         copyStr and output is corrupt,
9543         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
9544
9545 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9546
9547         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
9548
9549 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
9550
9551         * as/mcs51/lkarea.c: removed old K&R style,
9552           (lnksect): changed check on boundary error,
9553           (lnksect2): changed check on boundary error,
9554           (lnksect2): extend XSTK to end of page if size = 1
9555         * as/mcs51/lkmain.c: removed old K&R style,
9556           (Areas51): create l_IRAM symbol
9557         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
9558         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
9559           model-mcs51-stack-auto, added model-mcs51-xstack-auto
9560         * device/lib/_mullong.c: added version to be compiled with xstack
9561         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
9562         * device/lib/mcs51/crtxclear.asm: clear pdata as well
9563         * device/lib/mcs51/crtxstack.asm: fixed comment
9564         * src/SDCCglue.c: maxInterrupts defaults to 0,
9565           (emitMaps): added pdata,
9566           (createInterruptVect): (re)moved default,
9567           (glue): added pdata,
9568           (glue): moved __start__xstack to XSTK with default size 1
9569         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
9570           and options.float_rent when options.stackAuto is set,
9571           (linkEdit): only write XDATA_NAME if provided on command line
9572         * src/SDCCmem.h,
9573         * src/SDCCmem.c: added pdata
9574         * src/port.h: added pdata_name to PORT
9575         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
9576           (saveRegisters, unsaveRegisters): removed usage of B,
9577           (genMinus): fixed accumulator clash,
9578           (genJumpTab): added comment, this needs another look
9579         * src/mcs51/gen.c: added check for "B in use" paranoia,
9580           added pushB() and popB()
9581         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
9582           chance
9583         * src/avr/main.c,
9584         * src/ds390/main.c,
9585         * src/hc08/main.c,
9586         * src/mcs51/main.c,
9587         * src/pic/main.c,
9588         * src/pic16/main.c,
9589         * src/xa51/main.c,
9590         * src/z80/main.c: (reset_regparms) made void parameter explicit and
9591           added PSEG (PAG,XDATA) or NULL to port specifier
9592         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
9593         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
9594           (_mcs51_genInitStartup): removed __start__xstack equ,
9595           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
9596         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
9597         * src/z80/gen.c (_rleAppend): fixed warnings
9598         * support/regression/tests/zeropad.c: added pdata test
9599         * .version: bumped to 2.4.6
9600
9601 2004-10-17 Borut Razem <borut.razem AT siol.net>
9602
9603         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
9604         as a part of nightly build
9605
9606 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
9607
9608         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
9609         WREG holds the first byte function parameters,
9610         * (aopForSym): take special case for symbols which are in FARSPACE
9611         but in CODESPACE too,
9612         * (assignResultValue): modified to take into account _G.useWreg,
9613         * (genCall): don't use wreg for parameter passing when function is
9614         declared as reentrant, too, added optimization INCF to stack
9615         pointer when stack parameter count is 1,
9616         * (genFunction, genEndFunction): refurnished and fixed to not using
9617         wreg for passing parameters when function has varargs or is
9618         reentrant, fixed bug with symbol name compare for generating
9619         functions in absolute address,
9620         * (pic16_storeForReturn): refurnished,
9621         * (genCmp): began writing a new version of the function, not ready
9622         yet, therefore it is disabled,
9623         * (genAssign): do not read code memory when assigning a function to
9624         a pointer function,
9625         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
9626         array of characters, not pointer,
9627         * (pic16initialComments): in debug mode emit an .ident directive for
9628         the assembler,
9629         * (_process_pragma): emit a new warning type (internal to pic16)
9630         when setting stack to default length, emit a similar warning when
9631         placing a function at absolute address and address is not word aligned
9632         * (_pic16_parseOptions): added 'return TRUE' statement,
9633         * (_pic16_linkEdit): if compiling a source, then add the source's
9634         file object, first in the list of objects to link,
9635
9636 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
9637
9638         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
9639         * src/pic/main.c : removed VC warning.
9640         * src/pic/gen.c : changed comment.
9641
9642 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
9643
9644         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
9645         reference to a deprecated symbol _GPTRREG was causing failure to
9646         link. Thanks G. M. Gallant for the info.
9647
9648 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
9649
9650         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
9651         comments for Bugs item #954788.
9652
9653 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
9654
9655         * src/pic16/device.c (pic16_dump_gsection,
9656         * pic16_groupRegistersInSection): handle symbols declared to be in
9657         access bank differently,
9658         * src/pic16/gen.c (struct _G): added field resDirect,
9659         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
9660         send values read from stack directly to result and don't allocate
9661         temporary values,
9662         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
9663         same registers,
9664         * (pic16_sameRegsOfs): NEW,
9665         * (freeAsmop): if _G.resDirect is set then do not mark registers as
9666         free because they were not allocated from temporary pool,
9667         * pic16_popRegFromString): workaround to fix a problem with
9668         allocating variables twice or never,
9669         * (genGenPointerGet): using PRODL instead of FSR0H,
9670         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
9671         instead of FSR0H,
9672         * (genAssign): take advantage of the _G.resDirect flag,
9673         * (genCast): around line 11844, use mov2f instead of directly
9674         MOVFF'ing between operands to account for literal values,
9675         * src/pic16/genutils.c: some new debug functions for gpsim have been
9676         added,
9677         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
9678         float with integer part only,
9679         * src/pic16/main.c (_process_pragma): handle pragma udata access to
9680         place variables in access bank
9681         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
9682         updated sources to reflect recent changes in gen.c
9683
9684 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
9685
9686         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
9687         sources that searched for headers in installation path, now the
9688         device/include/pic16 is used,
9689         * src/pic16/glue.c (pic16glue),
9690         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
9691         .line directives if not in debug mode, this suppresses assembler's
9692         warnings for ignored directives
9693
9694 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
9695
9696         * src/port.h: made reset_regparms prototype void parameter explicit.
9697         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
9698         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
9699         * doc/sdccman.lyx: documented warning disabling and how to use
9700           printf_large to make it print floats.
9701         * device/include/stdbool.h: NEW
9702         * device/lib/_atof.c,
9703         * device/lib/_divuint.c,
9704         * device/lib/_divulong.c,
9705         * device/lib/expf.c,
9706         * device/lib/printf_large.c,
9707         * device/lib/sincosf.c,
9708         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
9709         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
9710           a completely reentrant lib.
9711
9712 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
9713
9714         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
9715         * device/include/pic16/stdio.h: fixed bug with colon
9716
9717 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
9718
9719         * device/include/pic16/stdio.h,
9720         * device/include/pic16/stdlib.h,
9721         * device/include/pic16/math.h: NEW
9722         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
9723         declared as _naked to reduce overhead
9724         * device/lib/Makefile.in (target port-specific-objects-pic16):
9725         changed * to *.* so to ignore the CVS directory,
9726         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
9727         stacked variables back in stack,
9728         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
9729         corruption
9730
9731 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
9732
9733         * .version: bumped version number to 2.4.5
9734         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
9735         * support/Util/SDCCerr.c (messages structure): added entry for
9736         W_POSSBUG2
9737
9738         Large cumulative patch for pic16 port and libraries.
9739         * device/include/pic16/sdcc-lib.h,
9740         * device/include/pic16/stdarg.h,
9741         * device/include/asm/pic16/features.h,
9742         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
9743         * device/include/pic16/float.h: changes reentrant keyword with
9744         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
9745         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
9746         updated target build-libraries to include objects from gptr,
9747         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
9748         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
9749         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
9750         all function headings,
9751         * src/SDCCmain.c: added global parameter userIncDirsSet,
9752         * (parseCmdLine): when option -I is encountered add directory to
9753         userIncDirsSet too,
9754         * src/version.awk: added space between control and long,
9755         * src/pic16/NOTES: added some notes for the port,
9756         * src/pic16/gen.c: added prototype for mov2fp function,
9757         * (fReturnpic16[]): properly named return value registers,
9758         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
9759         * (aopForSym): added code to handle symbols with onStack flag set,
9760         symbols onStack are allocated PTRSIZE bytes,
9761         * (aopFreeAsmop): handles special case where asmops are stack objects,
9762         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
9763         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
9764         added argument lock to trace flaws in allocating temporary registers
9765         when developing port,
9766         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
9767         * (pic16_popRegFromString): reenabled allocating a direct register
9768         from string,
9769         * (assignResultValue): various beautifications,
9770         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
9771         referenced function argument,
9772         * (genIpush): reenabled to allow stacked arguments, handles only
9773         ic->parmPush iCodes,
9774         * (genCall, genPcall): major changes to allow for variable argument
9775         functions, fixed a bug with falsely restoring stack pointer after
9776         returning from call,
9777         * (genFunction): pending code for critical function,
9778         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
9779         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
9780         * (genNearPointerGet): fixed bug with indirect reading, was always
9781         reading from INDF0
9782         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
9783         pointers,
9784         * (genAddrOf): rewrote code to take address of a stacked function parameter
9785         * (genCast): fixed casting to generic pointer type,
9786         * src/pic16/gen.h: added AOP_STA,
9787         * (struct asmop): added field stk,
9788         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
9789         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
9790         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
9791         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
9792         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
9793         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
9794         generic pointers,
9795         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
9796         and library paths,
9797         * (pic16_port structure): generic pointer size is set to 3,
9798         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
9799         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
9800         compiler warning,
9801         * src/pic16/ralloc.c (allocReg): prevent allocating register when
9802         operand is an iTemp,
9803
9804 2004-09-24 Martin Helmling <mh AT octo-soft.de>
9805
9806         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
9807         * debugger/mcs51/simi.c: addapt new syntax of s51
9808
9809 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
9810
9811         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
9812         * src/pic16/pcode.c: commented out some calls to free() in order to
9813         fix bug #989576,
9814
9815 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9816
9817         * src/SDCCicode.h,
9818         * src/SDCCicode.c (isiCodeInFunctionCall),
9819         * src/avr/ralloc.c (selectSpil),
9820         * src/pic/ralloc.c (selectSpil),
9821         * src/pic16/ralloc.c (selectSpil),
9822         * src/ds390/ralloc.c (selectSpil),
9823         * src/hc08/ralloc.c (selectSpil),
9824         * src/xa51/ralloc.c (selectSpil),
9825         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
9826         stack in the middle of a function call sequence (fixes bug #1020268)
9827         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
9828         costs associated with the minimum switch case.
9829
9830 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9831
9832         * src/SDCC.lex: fixed bug #1030549
9833
9834 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9835
9836         * src/SDCCcse.h (struct cseDef),
9837         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
9838         over a function call if the CSE is derived from a symbol whose
9839         address has been taken (fixes bug #1029883)
9840         * support/regression/tests/bug-1029883: a new regression test for
9841         this bug
9842
9843 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9844
9845         * src/hc08/gen.c (emitinline): fixed bug #1029778
9846         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
9847         to a cast object is no longer a syntax error ("fixes" bug #1030006,
9848         and starts toward RFE #905167)
9849
9850 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
9851
9852         * src/pic16/gen.c (mov2f): New function to move an operand to
9853         another without considering if it is a literal or a register,
9854         * (pic16_sameRegs): don't check if they are both AOP_REG,
9855         * (AccRsh): removed andmask=0 lines,
9856         * (genLeftShift): duplicated to be improved in future versions,
9857         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
9858         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
9859         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
9860         * (pic16initMnemonics): added initialization for POC_INFSNZW,
9861         * (insertBankSwitch): fixed inserting banksel directives algorithm
9862         for instructions that follow a skip instruction, this fixes a report
9863         for broken subtraction code generation,
9864         * src/pic16/ralloc.c (deassignLRs): do not free register if current
9865         iCode is a left op, just in case result and right share the same
9866         registers
9867
9868 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9869
9870         * src/hc08/main.c,
9871         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
9872         preservation of HX
9873         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
9874         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
9875         on 2004-09-12; it was buggy
9876
9877 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
9878
9879         * src/SDCCsymt.h: removed RESULT_CHECK
9880         * src/SDCCast.c,
9881         * src/SDCCglue.c,
9882         * src/SDCCval.c,
9883         * src/pic/glue.c,
9884         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
9885
9886 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
9887
9888         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
9889         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
9890         configuration values no more rejected by compiler, they are assigned
9891         to configuration registers with a warning message instead,
9892         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
9893         the for-loop so last conf register is emitted too,
9894         * (_pic16_initPaths): link library libsdcc.lib by default,
9895         * (_hasNativeMulFor): modified test for multiplication according to
9896         Raphael Neider's remarks. Integer multiplication is also done with
9897         support functions,
9898         * device/include/pic16/pic18fregs.h: corrected type error in while
9899         testing and including 18f6720 header file
9900
9901 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
9902
9903         * src/pic16/device.h (pic16_options): removed field use_crt,
9904         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
9905         until an optimization to handle single bits is added,
9906         * (pic16_loadFSR0): moved before genUnpackBits,
9907         * (genAnd): some white lines removed,
9908         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
9909         leave_reset flags in pic16_options when using crt modules,
9910
9911 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
9912
9913         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
9914           for bugs 898889 & 979599. Also used some safer print instructions.
9915
9916 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
9917
9918         * src/pic16/device.h (pic16_options_t): added field use_crt,
9919         crt_name, no_crt,
9920         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
9921         catch a probable future bug,
9922         * src/pic16/gen.c: aopIdx function commented out,
9923         * (genAssign): commented out old code which used aopIdx,
9924         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
9925         code, added if conditionals to take into account the --use-crt
9926         command line options,
9927         * src/pic16/main.c (pic16_optionsTable): added new command line
9928         options, --use-crt= and --no-crt,
9929         * (_pic16_linkEdit): now the proper crt object is added in the
9930         linker command line except than when --no-crt is specified,
9931         * src/pic16/pcode.c,
9932         * src/pic16/pcode.h: added some structures and functions for a new
9933         optimization scheme to compansate for instruction overhead between
9934         same iCodes, this scheme is currently under development and is not
9935         working in any way,
9936         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
9937         to && operator,
9938         * device/lib/pic16/startup/crt0i.c,
9939         * device/lib/pic16/startup/crt0iz.c: added global char variable
9940         __uflags to force the generation of an idata section
9941
9942 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
9943
9944         * doc/Makefile,
9945         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
9946         * doc/sdccman.lyx: updated sdcc version to 2.4.4
9947
9948 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9949
9950         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
9951         Frieder) and clarified the default code optimization mode
9952
9953 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
9954
9955         * src/SDCC.lex (doPragma, process_pragma),
9956         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
9957         "opt_code_size", and "opt_code_balanced"
9958         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
9959         regrouped options by category, added support for category headers
9960         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
9961         and "--opt-code-size"
9962         * doc/sdccman.lyx: documented these new options and pragmas
9963         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
9964         preference into account
9965
9966 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9967
9968         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
9969           geniCodePreDec): Fixed bug 904237 by generating a warning
9970         * src/SDCCerr.h,
9971         * src/SDCCerr.c: added warning W_SIZEOF_VOID
9972
9973 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
9974
9975         * src/pic/device.c : When no max ram set validate full memory range.
9976         * src/pic/pcode.c,
9977         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
9978
9979 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
9980
9981         * device/lib/_gptrget.c,
9982         * device/lib/_gptrput.c: updated comment
9983         * device/lib/calloc.c,
9984         * device/lib/free.c,
9985         * device/lib/malloc.c,
9986         * device/lib/realloc.c: added LGPL, made them reentrant-safe
9987         * src/SDCCcse.c (cseBBlock),
9988         * src/SDCCicode.c (printOperand, geniCodeArray),
9989         * src/SDCCicode.h (struct operand): fixed bug 868103
9990         * support/regression/tests/bug-868103.c: added
9991         * src/SDCCast.c (searchLitOp),
9992         * src/SDCCcse.h (struct cseDef),
9993         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
9994         * src/SDCCicode.h (struct operand),
9995         * src/SDCCsymt.h (struct sym_link),
9996         * src/avr/gen.c (hasInc),
9997         * src/ds390/gen.c (hasInc),
9998         * src/hc08/gen.c (genPlusIncr, hasInc),
9999         * src/mcs51/gen.c (hasInc),
10000         * src/pic16/glue.c (pic16_printIvalChar),
10001         * src/pic16/ralloc.c (regWithIdx),
10002         * src/xa51/gen.c (hasInc) : removed warnings
10003         * src/SDCCast.c (createBlock): added comment ???
10004         * src/hc08/ralloc.c: updated comments
10005
10006 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10007
10008         * doc/sdccman.lyx: updated section on switch statements, added
10009         section about semaphore locking
10010         * doc/Makefile: added option -info for latex2html
10011         * device/lib/_gptrget.c,
10012         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
10013
10014 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10015
10016         * src/pic/device.h,
10017         * src/pic/device.c,
10018         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
10019          maxram is less than 0x100.
10020
10021 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
10022
10023         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
10024
10025 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10026
10027         * src/port.h,
10028         * src/mcs51/main.c,
10029         * src/ds390/main.c,
10030         * src/z80/main.c,
10031         * src/hc08/main.c,
10032         * src/pic/main.c,
10033         * src/pic16/main.c,
10034         * src/avr/main.c,
10035         * src/xa51/main.c
10036         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
10037         a jump table is the best form for a switch statement, including
10038         automatic insertion of missing cases to make the case range
10039         continuous. Developed in collaboration with Frieder Ferlemann.
10040
10041 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10042
10043         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
10044         accumulator result if it needs sign extension
10045
10046 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10047
10048         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
10049
10050 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10051
10052         * device/lib/gbz80/printf.c,
10053         * device/lib/z80/printf.c: removed define for NULL
10054
10055 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
10056
10057         * as/xa51/xa_link.c,
10058         * device/examples/ds390/ow390/ad26.c,
10059         * device/examples/ds390/ow390/cnt1d.c,
10060         * device/examples/ds390/ow390/counter.c,
10061         * device/examples/ds390/ow390/ds2480.h,
10062         * device/examples/ds390/ow390/ds2480ut.c,
10063         * device/examples/ds390/ow390/findtype.c,
10064         * device/examples/ds390/ow390/gethumd.c,
10065         * device/examples/ds390/ow390/owllu.c,
10066         * device/examples/ds390/ow390/ownetu.c,
10067         * device/examples/ds390/ow390/swt12.c,
10068         * device/examples/ds390/ow390/swtloop.c,
10069         * device/examples/ds390/ow390/temp.c,
10070         * device/examples/ds390/ow390/temp10.c,
10071         * device/examples/ds390/ow390/thermo21.c,
10072         * device/examples/ds390/ow390/tinilnk.c,
10073         * device/examples/ds390/ow390/tstfind.c,
10074         * device/examples/serialcomm/windows/serial.cpp,
10075         * device/examples/serialcomm/windows/test_serialcomm.cpp,
10076         * device/include/reg51.h: fixed line endings for cvs
10077
10078 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10079
10080         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
10081         packRegsForAccUse, packRegisters): new accumulator register
10082         packing algorithm
10083         * support/regression/ports/hc08/support.c (_putchar): suppress
10084         warning of unused variable
10085         * src/SDCCicode.c: added SWAP entry to codeTable
10086
10087 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
10088
10089         * device/lib/sprintf.c: forgot to add this file before previous commit
10090
10091 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
10092
10093         * src/pic16/gen.c (genPackBits): added operand right in function
10094         parameters, load result directly if p_type is POINTER (that is
10095         called by genNearPointerSet)
10096         * (genUnPackBits): added operand left in function parameters,
10097         * (genNearPointerGet, genNearPointerSet): prevent the loading of
10098         FSR0 if accessing bitfields,
10099
10100 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
10101
10102         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
10103           _print_format; updated printf, sprintf, vsprintf
10104         * device/include/asm/default/features.h: corrected comment/define
10105         * device/lib/Makefile.in: added sprintf.c
10106         * device/lib/libsdcc.lib: added sprintf module
10107         * device/lib/printf_large.c,
10108         * device/lib/vprintf.c,
10109         * device/lib/sprintf.c: totally refactored printf_large and vprintf
10110           into these 3 files
10111         * support/regression/Makefile: changed ALL_PORTS into a usefull default
10112         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
10113         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
10114           hc08 test
10115         * support/regression/tests/zeropad.c: define idata as data for hc08
10116
10117 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10118
10119         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
10120         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
10121         labels are referenced at least once (even if a reference is not found)
10122         * src/hc08/gen.c (emitcode): set isComment flag for comments
10123         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
10124         loads), rules 6a..6b (optimize jumps to return)
10125
10126 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10127
10128         * device/lib/acosf.c (acosf),
10129         * device/lib/asinf.c (asinf),
10130         * device/lib/atanf.c (atanf),
10131         * device/lib/ceilf.c (ceilf),
10132         * device/lib/cosf.c (cosf),
10133         * device/lib/coshf.c (coshf),
10134         * device/lib/cotf.c (cotf),
10135         * device/lib/fabsf.c (fabsf),
10136         * device/lib/floorf.c (floorf),
10137         * device/lib/log10f.c (log10f),
10138         * device/lib/logf.c (logf),
10139         * device/lib/sinf.c (sinf),
10140         * device/lib/sinhf.c (sinhf),
10141         * device/lib/sqrtf.c (sqrtf),
10142         * device/lib/tanf.c (tanf),
10143         * device/lib/tanhf.c (tanhf),
10144         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
10145         replaced all instances of "reentrant" in the library functions
10146         defined in math.h with this macro.
10147         * support/regression/tests/float_trans.c: reenabled test for hc08
10148
10149 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
10150
10151         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
10152         erroneously deleted
10153
10154 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10155
10156         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
10157         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
10158         multi-byte volatile operands are used
10159         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
10160         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
10161         initialization to area GSINIT0 so that it would always precede
10162         any static initializers in GSINIT
10163         * support/regression/tests/zeropad.c: fixed idata define for hc08
10164         * support/regression/tests/bug-927659.c,
10165         * support/regression/tests/float_trans.c: disabled tests for hc08
10166         pending missing library routines
10167         * .version: increased version number to 2.4.4 - hc08 port now passes
10168         regression tests
10169
10170
10171 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
10172
10173         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
10174         * Makefile.common.in,
10175         * as/Makefile,
10176         * as/hc08/Makefile.in,
10177         * as/mcs51/Makefile.in,
10178         * as/z80/Makefile.in,
10179         * debugger/mcs51/Makefile.in,
10180         * device/include/Makefile.in,
10181         * device/lib/Makefile.in,
10182         * doc/Makefile,
10183         * link/Makefile,
10184         * link/z80/Makefile.in,
10185         * packihx/Makefile.in,
10186         * sim/ucsim/main_in.mk,
10187         * sim/ucsim/avr.src/Makefile.in,
10188         * sim/ucsim/doc/Makefile.in,
10189         * sim/ucsim/gui.src/serio.src/Makefile.in,
10190         * sim/ucsim/hc08.src/Makefile.in,
10191         * sim/ucsim/s51.src/Makefile.in,
10192         * sim/ucsim/xa.src/Makefile.in,
10193         * sim/ucsim/z80.src/Makefile.in,
10194         * src/Makefile.in,
10195         * support/cpp2/Makefile.in,
10196         * support/librarian/Makefile,
10197         * support/makebin/Makefile: added DESTDIR to the install path proposed
10198         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
10199         * doc/sdccman.lyx: added DESTDIR documentation
10200
10201 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
10202
10203         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
10204         instruction for interrupt handlers, use fast returns when returning
10205         from high priority interrupts
10206
10207 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10208
10209         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
10210         code generation
10211         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
10212         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
10213         bugs, ported much of Bernhard's code from mcs51
10214         * src/mcs51/gen.c (genSend),
10215         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
10216         than one when calling a reentrant function
10217         * device/lib/_mullong.c: defined an alternate struct layout for big
10218         endian ports (hc08)
10219
10220 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10221
10222         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
10223         test
10224
10225 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10226
10227         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
10228         are sane and complete before asking the port its prefered parameter
10229         passing method (fixes bug #1017633)
10230         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
10231         and _ret3
10232
10233 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10234
10235         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
10236         problem in bitfields >= 8 bits.
10237
10238 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10239
10240         * src/SDCCsymt.c: undid changes that were not meant to be committed
10241
10242 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10243
10244         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
10245
10246 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
10247
10248         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
10249           copied and wrong bit got inverted
10250
10251 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10252
10253         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
10254         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
10255         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
10256         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
10257         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
10258         assignments to bitfields at known addresses
10259         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
10260         reads from bitfields at known addresses
10261         * src/hc08/ralloc.c (packRegisters),
10262         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
10263         genhc08Code): optimize pointer get values used as conditionals
10264         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
10265         and branch
10266
10267 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10268
10269         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
10270         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
10271         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
10272         as conditionals
10273
10274 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10275
10276         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
10277
10278 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10279
10280         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
10281         related problems
10282
10283 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
10284
10285         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
10286
10287 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10288
10289         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
10290         mcs51 port
10291
10292 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
10293
10294         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
10295
10296 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10297
10298         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
10299         cases use more compact code.
10300
10301 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
10302
10303         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
10304
10305 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10306
10307         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
10308
10309 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10310
10311         * src/SDCCsymt.h,
10312         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
10313         parameter of changePointer() from symbol* to sym_link*
10314         * src/SDCCast.c (decorateType): call changePointer() for CAST op
10315         * src/SDCCsymt.c (compareType): void* type is castable to other
10316         pointers, but not necesarily an exact match.
10317         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
10318         is no longer blindly treated as an exact match.
10319         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
10320
10321 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
10322
10323         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
10324
10325 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
10326
10327         * src/pic/gen.c,
10328         * src/pic/pcode.c,
10329         * src/pic/ralloc.h,
10330         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
10331
10332 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
10333
10334         * src/pic/device.c,
10335         * src/pic/device.h,
10336         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
10337
10338 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10339
10340         * src/mcs51/gen.c (emitcode): fixed bug #992819
10341
10342 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
10343
10344         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
10345           there's no need to make it worse
10346
10347 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10348
10349         * src/mcs51/ralloc.c (deassignLR),
10350         * src/ds390/ralloc.c (deassignLR),
10351         * src/hc08/ralloc.c (deassignLR),
10352         * src/z80/ralloc.c (deassignLR),
10353         * src/pic/ralloc.c (deassignLR),
10354         * src/pic16/ralloc.c (deassignLR),
10355         * src/avr/ralloc.c (deassignLR),
10356         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
10357         rlivePoint): fixed another part of bug #971834
10358
10359 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10360
10361         * src/z80/main.c: enabled "critical" keyword
10362         * src/z80/mappings.i,
10363         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
10364         functions (fixes bug #979646)
10365         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
10366
10367 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10368
10369         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
10370           such as c:\mydir.
10371
10372 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
10373
10374         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
10375           doesn't disable too much optimizations
10376
10377 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10378
10379         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
10380
10381 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
10382
10383         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
10384
10385 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
10386
10387         * src/pic/gen.c tidied up tabs
10388         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
10389         * src/pic/main.c tidied up tabs
10390         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
10391         * src/pic/pcoderegs.c tidied up tabs
10392         * src/pic/ralloc.c tidied up tabs
10393
10394 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
10395
10396         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
10397         to S_FIXED for pic16 port and when symbol is not in level 0,
10398         allocate for S_REGISTER storage class and pic16 port, too,
10399         * src/pic16/device.h: prototype for checkSym,
10400         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
10401         * (pic16_assignConfigWordValue): test the value and the mask to
10402         validate that the value is suitable for the configuration word,
10403         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
10404         collect extern declared symbols, don't emit symbol twice, check
10405         first if symbol is in publics set first,
10406         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
10407         * added command line '--fstack' which enables an experimental
10408         feature for stack access, too buggy to be used yet...
10409         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
10410         * (pic16_allocDirReg): when register has storage class S_REGISTER
10411         allocate in pic16_dynAccessRegs,
10412         * device/include/pic16/pic18f????.h: modified configuration word
10413         naming convention, words started as CONFIG0H but should be CONFIG1H
10414
10415 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
10416
10417         * device/include/mcs51reg.h: fixed bug 970993
10418
10419 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
10420
10421         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
10422         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
10423         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
10424         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
10425         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
10426         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
10427           error/warning numbers,
10428           added function setWarningDisabled()
10429         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
10430         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
10431           _memcmp.c _memmove.c calloc.c realloc.c free.c
10432         * support/regression/tests/malloc.c: added tests for new functionality
10433         * support/regression/tests/zeropad.c: added tests for truncated initializers
10434           and initialized char arrays starting with '\x0'
10435         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
10436
10437 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
10438
10439         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
10440
10441 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10442
10443         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
10444         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
10445         peephole 177.e. Thanks to anonymous
10446
10447 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
10448
10449         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
10450         function isn't used in the source but referenced as a
10451         variable initializer then declare it as extern in .asm file
10452
10453 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
10454
10455         * .version: increased version number to 2.4.3
10456
10457         Adding version extension according to ChangeLog CVS revision
10458         * src/Makefile.in (target all): added dependency 'version.h'
10459         * (rule version.h): added rule to create version.h from ChangeLog,
10460         * (rule dep): added dependency version.h,
10461         * src/version.awk: AWK script to create version.h
10462         * src/SDCCdwarf2.c (dwWriteModule),
10463         * src/SDCCglue.c (initialComments),
10464         * src/SDCCmain.c (printVersionInfo): modified to write after
10465         version string the version extension number,
10466         * src/SDCCutil.c: included "version.h"
10467         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
10468         number,
10469         * src/SDCCutil.h: added prototype for getBuildNumber
10470
10471         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
10472         includeDirsSet, too,
10473         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
10474         const char [] is found in function prototype...
10475
10476         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
10477         moving to WREG with source is already in WREG,
10478         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
10479         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
10480         * (aopForSym): stack'ed symbols are partially supported, added
10481         if-clause to support symbols in FARSPACE,
10482         * (sameRegs): added test for AOP_ACC to see if registers are same,
10483         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
10484         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
10485         * (pic16_popRegFromString): will not allocate a new register if it
10486         doesn't find one by name, bug may have introduced...
10487         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
10488         * (genIpush): revived to use pic16 port's stack,
10489         * (genAddrOf): added incomplete case for stack'ed operand,
10490         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
10491         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
10492         can handle multibyte operands,
10493         * src/pic16/glue.c (pic16_printIval*): some debug info added,
10494         * (pic16initialComments): added message for MPLAB compatibility
10495         mode enabled,
10496         * src/pic16/main.h: prototype for pic16_mplab_comp,
10497         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
10498         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
10499         * (_pic16_linkEdit): NEW, handles link stage, transferred here
10500         because of increased complexity of procedure,
10501         * (_process_pragma): stack pragma changed to format 'stack pos len',
10502         emit symbol '_stack_end' to conform with gplink,
10503         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
10504         to search for register,
10505         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
10506         PO_GPR_REGISTER,
10507         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
10508         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
10509         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
10510         case for PO_GPR_REGISTER,
10511         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
10512         dies, the new era is ahead !...
10513         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
10514         pic16_dynInternalRegs,
10515         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
10516         * (pic16_allocDirReg): minor optimizations and bug fixes,
10517         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
10518
10519         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
10520         load stack and frame pointer with address of 'stack_end' symbol
10521
10522 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
10523
10524         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
10525         without source code but only variable initializers
10526
10527 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
10528
10529         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
10530         external are not declared as extern to reduce overhead while linking
10531
10532 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
10533
10534         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
10535
10536 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
10537
10538         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
10539           Yee Keat for the patch
10540         * src/SDCCast.c (decorateType): fixed bug #979599
10541         * src/ds390/gen.h: removed local fReturnSizeDS390
10542         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
10543         * src/ds390/gen.c (genAnd, genOr, genXor),
10544         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
10545
10546 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
10547
10548         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
10549         add relFilesSet to $3, manipulate $2 to handle linking of object
10550         files without source files in command line,
10551         * device/include/pic16 (all headers): added ID location macros,
10552         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
10553         entries for ID location bytes,
10554         * (pic16_assignIdByteValue): NEW,
10555         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
10556         added field dumpcalltree to pic16_options_t,
10557         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
10558         is used instead of pic16_Gstack_base_addr, check if (ifx) before
10559         emitting rFalseIfx label after check_carry label,
10560         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
10561         pic16_emitDIRegs), NEW
10562         * (pic16glue): dump .calltree file when option --calltree found,
10563         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
10564         * (_pic16_genAssemblerPreamble): emit ID locations after
10565         configuration registers,
10566         * (pic16_linkCmd): modifications of the link command,
10567         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
10568         * (pic16_pCodeInitRegisters): don't init stack registers,
10569         * (pic16_findPrevInstruction): fixed bug,
10570         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
10571         bug with immediate registers,
10572         * (buildCallTree): traces stack push and pop,
10573         * (pct2): dump also stack usage for each function,
10574         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
10575         * (pic16_allocDirReg): various modifications,
10576         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
10577         fixed to 1,
10578
10579 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
10580
10581         * src/pic16/pcode.c: removed buggy double colon
10582
10583 2004-07-01 Borut Razem <borut.razem AT siol.net>
10584
10585         * support/scripts/sdcc.nsi: added include/pic16 to setup
10586
10587 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
10588
10589         * device/lib/Makefile.in: fixed bug in target objects-pic16,
10590         * device/lib/pic16/Makefile: prefixed with dash (-) command under
10591         target 'clean',
10592         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
10593         specific command line arguments. Also added sample lkr script
10594         for placing a variable at a specific memory bank.
10595         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
10596         at a specific memory bank,
10597         * (pic16_dump_isection): fixed bug which caused string literals to
10598         be omitted when dumping idata section,
10599         * (pic16_groupRegistersInSection): added code to handle registers
10600         in specific memory banks,
10601         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
10602         public, all references are renamed too,
10603         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
10604         AOP_DPTR2,
10605         * (pic16_storeForReturn): added case to handle when dest is WREG,
10606         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
10607         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
10608         pic16_rel_udata, check to see if that register is marked as being
10609         a member of a specific memory bank,
10610         * (pic16_printIvalCharPtr): added code to add string literals either
10611         to code or the idata sections,
10612         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
10613         also accept the 'udata' pragma,
10614         * src/pic16/main.h: new structure types sectName and sectSym
10615         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
10616         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
10617         * (pic16_findPrevInstruction): fixed, it returned nothing,
10618         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
10619         instruction combinations,
10620         * (pic16_FixRegisterBanking): heavily reorganised,
10621         * (pic16_AnalyzeBanking): if generating banksel directives is
10622         disabled, then don't call FixRegisterBanking at all,
10623         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
10624         completely removed,
10625         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
10626
10627 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
10628
10629         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
10630         Phuah Yee Keat <yk.phuah AT nestac.com>
10631
10632 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10633
10634         * src/pic16/glue.c (pic16createInterruptVect): function now emits
10635         correctly the IVT even if it is relocated to some other location
10636
10637 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
10638
10639         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
10640         * device/include/pic16/pic18f2220.h: NEW,
10641         * device/lib/pic16/libdev/pic18f2220.c: NEW,
10642         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
10643         * src/pic16/device.c (struct Pics16): added info for 18f2220,
10644         * src/pic16/device.h (struct pic16_options): added ivt_loc and
10645         nodefaultlibs, ivt_loc is the location of the interrupt vector
10646         table, and nodefaultlibs signs that default libraries should not be
10647         linked in link stage,
10648         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
10649         according to --ivt-loc argument,
10650         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
10651         when pragma stack is found,
10652
10653 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10654
10655         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
10656         256 (range check), 257 (do while), 258.a-f (bit banging
10657         f.e. on 3-wire SPI bus)
10658
10659 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10660
10661         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
10662         variables used exclusively within a loop
10663
10664 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
10665
10666         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
10667
10668 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10669
10670         * src/SDCClrange.c (computeClash): fixed bug #971834
10671
10672 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10673
10674         * src/mcs51/gen.c (genCmp): fixed bug #975903
10675         * src/hc08/gen.c (operandsEqu),
10676         * src/ds390/gen.c (operandsEqu),
10677         * src/z80/gen.c (operandsEqu),
10678         * src/pic/gen.c (operandsEqu),
10679         * src/pic16/gen.c (operandsEqu),
10680         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
10681         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
10682
10683 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10684
10685         * src/SDCCcse.c (cseBBlock): fixed bug #966963
10686
10687 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
10688
10689         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
10690         default case in switch statement,
10691         * glue.c (pic16_initPointer): expr is initialised via decoarteType
10692         to eliminate problem with initialisation of pointers, but problem
10693         still exists,
10694         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
10695         * (emitStaticSegment): removed various lines emitting debug info,
10696         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
10697         added processor registers for utilizing EEPROM,
10698         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
10699         configurable and set 8
10700
10701 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
10702
10703         * .version: increased version number to 2.4.2,
10704
10705         Cumulative patch for pic16 port
10706         * src/pic16/device.c: changed scheme to dump initial values for
10707         variables in idata segment, all print_idata* functions were removed,
10708         now the pic16_printIval* will be called,
10709         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
10710         * _pic16_printPointerType, pic16_printPointerType,
10711         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
10712         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
10713         NEW, similar to the respective functions in SDCCglue.c,
10714         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
10715         way, emitting hex bytes,
10716         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
10717
10718 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10719
10720         * src/avr/ralloc.c (serialRegAssign),
10721         * src/xa51/ralloc.c (serialRegAssign),
10722         * src/pic/ralloc.c (serialRegAssign),
10723         * src/pic16/ralloc.c (serialRegAssign),
10724         * src/hc08/ralloc.c (serialRegAssign),
10725         * src/z80/ralloc.c (serialRegAssign),
10726         * src/ds390/ralloc.c (serialRegAssign),
10727         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
10728
10729 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10730
10731         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
10732         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
10733
10734 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
10735
10736         Cumulative patch for pic16 port:
10737         * src/pic16/device.h (typedef PIC16_device) modified fields for
10738         defining microcontrollers,
10739         * src/pic16/device.c: added new info for all devices in Pics16 array,
10740         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
10741         to be optimised out by the pCode optimiser,
10742         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
10743         specially, bug reported by G.M. Gallant,
10744         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
10745         as force'd so that cannot be optimised out by pCode optimiser,
10746         * src/pic16/pcode.c,
10747         * src/pic16/pcodepeeph.c,
10748         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
10749         they are disabled by default, but can be enabled explicit with
10750         command argument --denable-peeps, for testing,
10751         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
10752         --pomit-ivt in COMPILE_FLAGS
10753
10754 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10755
10756         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
10757           compilation on MSVC
10758
10759 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
10760
10761         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
10762
10763 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10764
10765         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
10766         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
10767
10768 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
10769
10770         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
10771         would only assign 0x300001 register.
10772
10773 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
10774
10775         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
10776         in COMPILE_FLAGS. Thanks to G. Gallant for report.
10777
10778 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
10779
10780         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
10781         for ds80c400
10782         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
10783         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
10784         added peephole 254 (left shift), 255 (jump table)
10785
10786 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
10787
10788         * device/lib/Makefile.in: removed comment line with model-pic16,
10789         * (target port-specific-objects-pic16): the libraries and objects
10790         are copied to the build directory form the device/lib/pic16/bin
10791         directory
10792
10793         Cumulative patch concerning pic16 port:
10794         * library directory has been re-organized,
10795         * added support for PIC18F1220,
10796         * added headers and library sources for chips 18f1220,18f6520,
10797         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
10798
10799         * configuration registers setting has changed, now each supported
10800         device has a complete description of the registers it uses,
10801         * all initialisations are moved to idata sections, these section
10802         can be absolute or relocatable,
10803         * fixed initialisation of codespace variables,
10804         * fixed warning about PCLATU and gpsim,
10805         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
10806         * (genAssign): use table reads when assigning from variables in codespace,
10807         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
10808         char/int variables placed in codespace,
10809         * (pic16_emitConfigRegs): NEW, emits a list with configuration
10810         registers set in .asm file, no need for --pomit-config-words anymore,
10811         * (pic16glue): some 8051 legacy segments are commented out
10812         (to be removed completely),
10813         * added support for alternative assembler and linker with --asm=
10814         and --link= command line arguments,
10815         * peepholes are disabled automatically in the port, no need to
10816         specify on command line,
10817         * port supports natively char/int/long multiplication, but converts
10818         all divisions to support functions,
10819         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
10820         to the file set in variable $2,
10821         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
10822         strings in ASCII format and not in hex,
10823         * ralloc.c (serialRegAssign): added a triplet of conditional calls
10824         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
10825         allocate proper register if iCodes aren't temporary,
10826
10827 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
10828
10829         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
10830
10831 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
10832
10833         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
10834         is commented out
10835
10836 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10837
10838         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
10839         computed address is reused
10840         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
10841         multi-byte bitfields
10842
10843 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10844
10845         * src/z80/gen.c: (genArrayInit): must check for pointers too
10846
10847 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
10848
10849         * support/regression/tests/zeropad.c: never meant to commit the
10850           nestedstruct test: removed, added check for GCC version
10851
10852 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
10853
10854         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
10855         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
10856         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
10857           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
10858           bugs 928906 and 954082 half-empty initializers
10859         * src/SDCCsymt.h,
10860         * src/SDCCsymt.c (getAllocSize): added for above fix
10861         * src/z80/gen.c (genArrayInit): fixed bug 741044
10862         * support/regression/tests/zeropad.c: added tests
10863
10864 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
10865
10866         * src/pic16/device.c (pic16_dump_section): corrected bug which
10867         caused some symbols of the libraries to be misplaced
10868
10869 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10870
10871         * src/pic16/glue.c,
10872         * src/pic16/ralloc.h,
10873         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
10874         to fix conflict with pic port
10875
10876 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
10877
10878         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
10879         externs configuration variables,
10880         * src/pic16/ralloc.h,
10881         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
10882         prototype in header, commented out some debug messages
10883
10884 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
10885
10886         * src/pic16/glue.c,
10887         * src/pic16/main.c,
10888         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
10889         for gpasm COFF object generation. Thanks to D. Hawkins for
10890         his patch info
10891
10892 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10893
10894         * src/ds390/main.c,
10895         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
10896         Brock for spotting this)
10897         * src/ds390/gen.c (genEndFunction),
10898         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
10899         interrupt handler and critical. Disable push/pop optimizations when
10900         peephole optimizations disabled.
10901
10902 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10903
10904         Updated pic16 library sources and headers.
10905         * device/lib/pic16/pic18f*/ ,
10906         * device/include/pic16/*.h: modified to handle structured SFR
10907         definitions
10908
10909 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
10910
10911         * src/port.h (PORT structure): added hook initPaths, now each
10912         port can declare its own default search paths,
10913         which can been seen with the --print-search-dirs option,
10914         see pic16 port for example,
10915         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
10916         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
10917         * (doPrintSearchDirs): NEW, replaces in a central manner the
10918         printing of search dirs which was split in set*Paths functions,
10919         * (main): added call to port->initPaths and doPrintSearchDirs,
10920         * src/avr/main.c,
10921         * src/ds390/main.c,
10922         * src/hc08/main.c,
10923         * src/izt/i186.c,
10924         * src/izt/tlcs900h.c,
10925         * src/mcs51/main.c,
10926         * src/pic/main.c,
10927         * src/pic16/main.c: modified port structures to reflect addition of
10928         initPaths hook,
10929
10930         * src/pic16/device.c (regCompare): registers are finally sorted by name,
10931         * (pic16_dump_section): for registers in same address reserve memory once,
10932         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
10933         to no_banksel,
10934         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
10935         result is greater in size than right or left,
10936         * (pic16_genUMult8X8_8): there are some cases where the result can
10937         be 16 bits size, so handle these,
10938         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
10939         * (pic16_outBitC): modified to emit pcodes,
10940         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
10941         or not,
10942         * (genDivOneByte): implemented algorithm to divide 8-bits,
10943         * (genCmp): uncommented goto, but issues still exist,
10944         * (genAnd): fixed a bug with variables >8bits,
10945         * (genPackBits): optimization added that uses BCF/BSF to change a
10946         single bit,
10947         * (genAssign): fixed bug when assigning floating point literals,
10948         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
10949         __sdcc_gsinit_startup label,
10950         * src/pic16/main.c (_pic16_init): removed search directory
10951         initialisations,
10952         * (_pic16_initPaths): NEW, used to initialise search directories,
10953         * (_hasNativeMulFor): support functions for all except char/int
10954         multiplication, and char division,
10955         * (PIC16_port struct): modified entry for native mul support,
10956         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
10957         no_banksel option,
10958         * (buildCallTree): call to register_usage is ifdef'ed out,
10959
10960 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10961
10962         * device/include/string.h: applied Stas Sergeev's patch to make this
10963         header file compatible with the preprocessor -Wundef option
10964         * src/SDCCmain.c (main): abort compilation if preprocessor reports
10965         failure (fixes bug #941458)
10966
10967 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10968
10969         * src/SDCCopt.c (killDeadCode): fixed bug #907733
10970         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
10971         that the variable, not the function, should be static
10972         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
10973         to be consistent with non-literal case
10974
10975 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10976
10977         * src/SDCCast.c (isConformingBody): fixed bug #949967
10978         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
10979         convilong): fixed bug #952086
10980
10981 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10982
10983         * src/SDCCmem.c (allocVariables): fixed bug #955321
10984
10985 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10986
10987         * src/hc08/main.c (_hc08_genAssemblerEnd),
10988         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
10989         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
10990         completely eliminated the use of a temporary file
10991         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
10992         when more than one file linked
10993         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
10994
10995 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
10996
10997         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
10998         which fixes bug #543481
10999         * support/regression/tests/bug-751703.c: fixed comments left from a
11000         cut and paste error
11001         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
11002         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
11003         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
11004         scopes
11005         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
11006         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
11007         are now changed to underscores in moduleName
11008
11009 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11010
11011         * as/mcs51/lkmem.c: better fix for bug #954173
11012
11013 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
11014         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11015
11016         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
11017         * device/include/c8051f000.h,
11018         * device/include/c8051f120.h,
11019         * device/include/c8051f300.h,
11020         * device/include/c8051f310.h,
11021         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
11022         PWM16) and detab'ed
11023
11024 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11025
11026         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
11027         and mailing lists, doc'ed --no-peep-comments, removed reference
11028         to knoppix (newest version has no LyX/LaTeX), other minor changes
11029         * src/SDCCglue.c (glue): save 2 bytes stack space with
11030         option --main-return. The ljmp could probably be avoided too
11031
11032 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11033
11034         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
11035
11036 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11037
11038         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
11039         * src/SDCCopt.c (isLocalWithoutDef),
11040         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
11041         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
11042         (credit to Maarten Brock for patch #949363, on which this is based)
11043         * support/regression/tests/bug-751703.c: some test cases of extern used
11044         within inner scopes.
11045
11046 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11047
11048         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
11049         SPEC_STRUCT
11050         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
11051         struct definitions
11052         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
11053         dwWriteLabel): fix to create valid debugger symbols even when
11054         the module name has non-alphanumeric symbols in it
11055         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
11056         when a variable's allocation has been optimized away
11057
11058
11059 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11060
11061         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
11062         * src/hc08/main.c,
11063         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
11064         * src/mcs51/main.c,
11065         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
11066         * src/ds390/main.c,
11067         * src/z80/gen.c (z80_emitDebuggerSymbol),
11068         * src/z80/main.c,
11069         * src/pic/gen.c (pic14_emitDebuggerSymbol),
11070         * src/pic/main.c,
11071         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
11072         * src/pic16/main.c,
11073         * src/avr/gen.c (avr_emitDebuggerSymbol),
11074         * src/avr/main.c,
11075         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
11076         * src/xa51/main.c,
11077         * src/SDCCdebug.c (emitDebuggerSymbol),
11078         * src/SDCCdebug.h,
11079         * src/port.h: added a debugger struct to the port struct. Added a
11080         callback for defining debugger symbols
11081
11082         * src/SDCCast.c (createLabel),
11083         * src/SDCC.y (labeled_statement): mark all compiler generated labels
11084         with isitmp = 1
11085         * src/SDCCicode.h,
11086         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
11087         iCode back to the ast for the function
11088
11089         * src/hc08/ralloc.c (hc08_assignRegisters),
11090         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
11091         unneeded fields from the regs struct.
11092         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
11093         pushReg() & pullReg() functions instead of emitcode()
11094
11095         * src/hc08/gen.c (genLabel, genhc08Code),
11096         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
11097
11098         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
11099         debugger hooks
11100
11101         * src/hc08/gen.c (genEndFunction, genhc08Code),
11102         * src/hc08/gen.h,
11103         * src/mcs51/gen.c (genEndFunction, gen51Code),
11104         * src/mcs51/gen.h,
11105         * src/ds390/gen.c (genEndFunction, gen390Code),
11106         * src/ds390/gen.h,
11107         * src/z80/gen.c (genEndFunction, genZ80Code),
11108         * src/z80/gen.h,
11109         * src/z80/z80.h,
11110         * src/pic/gen.c (genEndFunction, genpic14Code),
11111         * src/pic/gen.h,
11112         * src/pic16/gen.c (genEndFunction, genpic16Code),
11113         * src/pic16/gen.h,
11114         * src/avr/gen.c (genEndFunction, genAVRCode),
11115         * src/avr/gen.h,
11116         * src/xa51/gen.c (genEndFunction, genXA51Code),
11117         * src/xa51/gen.h,
11118         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
11119         specific code to cdbFile.c and out of the backend code generators
11120
11121         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
11122         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
11123         starting address is now 0
11124
11125         * as/hc08/asm.h,
11126         * as/hc08/m08pst.c,
11127         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
11128         assembler directive for DWARF support
11129         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
11130
11131         * src/src.dsp,
11132         * src/Makefile.in,
11133         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
11134
11135 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11136
11137         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
11138         and inappropriate peephole optimization in jump tables
11139
11140 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11141
11142         * as/hc08/m08pst.c,
11143         * src/SDCCglue.c: sdccopt works for the hc08 port now
11144
11145 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
11146
11147         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
11148
11149 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11150
11151         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
11152
11153 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11154
11155         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
11156         rules
11157         * src/SDCCmain.c,
11158         * src/SDCCglobl.h,
11159         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
11160         comments from the peephole optimizer replacement rules
11161         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
11162         symbols
11163         * src/SDCCcse.c (updateSpillLocation),
11164         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
11165         equivalents
11166         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
11167         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
11168         objects far pointers
11169
11170 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11171
11172         * src/SDCCsymt.h: a missing part of my last change
11173         * src/pic/ralloc.c (regTypeNum),
11174         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
11175
11176 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11177
11178         * src/SDCCicode.h,
11179         * src/SDCCicode.c (aggrToPtrDclType),
11180         * src/SDCCptropt.h,
11181         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
11182         ptrPseudoSymConvert),
11183         * src/pic/ralloc.c (regTypeNum),
11184         * src/pic16/ralloc.c (regTypeNum),
11185         * src/hc08/ralloc.c (regTypeNum),
11186         * src/ds390/ralloc.c (regTypeNum),
11187         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
11188         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
11189
11190 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11191
11192         * link/z80/lkmain.c (afile),
11193         * as/hc08/lkmain.c (afile),
11194         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
11195         prevent a pointer problem when a filename has no directory and
11196         no extension specified.
11197
11198 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11199
11200         * link/z80/lkmain.c (afile): allow periods in directory names
11201         * link/z80/lkmain.c (afile),
11202         * as/mcs51/lkmain.c (afile),
11203         * as/hc08/lkmain.c (afile): allow linker script file to have an
11204         extension other than ".lnk"
11205         * link/z80/lklex.c (getfid),
11206         * link/z80/lkmain.c (parse),
11207         * as/mcs51/lklex.c (getfid),
11208         * as/mcs51/lkmain.c (parse),
11209         * as/hc08/lklex.c (getfid),
11210         * as/hc08/lkmain.c (parse): Support comments in the linker script
11211         file on lines by themselves and after filenames
11212
11213 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11214
11215         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
11216
11217 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11218
11219         * src/z80/peeph-z80.def: removed some peephole rules that don't
11220         work with multibyte arithmetic (fixed bug #937126)
11221         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
11222         to registers and not global variables
11223         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
11224         geniCodePreInc, geniCodePostDec, geniCodePreDec,
11225         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
11226         checking for assignments not internally generated (fixed bug #931895)
11227         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
11228         structure member (fixed bug #930072)
11229
11230 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11231
11232         * src/SDCCmain.c (linkEdit),
11233         * src/hc08/main.c (_hc08_parseOptions),
11234         * as/hc08/Makefile.in,
11235         * as/hc08/aslink.h,
11236         * as/hc08/asm.h,
11237         * as/hc08/m08pst.c,
11238         * as/hc08/lkrloc.c (relr, rele),
11239         * as/hc08/lkarea.c (lnkarea)
11240         * as/hc08/lkmain.c (afile, parse),
11241         * as/hc08/lkelf.c: support for ELF output
11242         * as/hc08/lks19.c (s19),
11243         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
11244
11245 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11246
11247         * as/mcs51/lkihx.c: Fixed bug #899105.
11248
11249 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11250
11251         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
11252         .dsp files from Unix to DOS.
11253
11254 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11255
11256         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
11257         function pointers; we have been compliant for several months now.
11258         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
11259         change that was accidently commented out
11260         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
11261         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
11262         bug #922319
11263
11264 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11265
11266         * src/hc08/gen.c: output of all of the internal debugging information
11267         is now controlled by the D() macro; it is disabled by default
11268
11269 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11270
11271         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
11272         harder to keep the same registers during a CAST iCode
11273         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
11274         long via int can be done in a single cast, if the signedness is
11275         correct.
11276         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
11277         putchar() in tinibios.c in ds390's library
11278
11279 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
11280
11281         * src/SDCCast.c (decorateType): fixed bug #898889,
11282         cast result of a literal complement too
11283         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
11284         fixed check for bitfields
11285
11286 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
11287
11288         * src/SDCCicode.c (geniCodeLogic): made it static,
11289         (geniCodeLogicAndOr): added in order to fix bug #905492,
11290         (ast2iCode): fixed bug #905492
11291         * support/regression/tests/bug-905492.c: added
11292         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
11293         (processParms): fixed bug #927659: don't copy parms, this will clear
11294         decorated flag
11295         * support/regression/tests/bug-927659.c: added
11296
11297 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
11298
11299         * src/SDCCast.c (addCast): don't cast float to char
11300         * device/lib/libsdcc.lib: added _memmove
11301
11302 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
11303
11304         * device/lib/large/Makefile: fixed parallel execution by
11305         replacing `make` by `$(MAKE)`
11306
11307 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11308
11309         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
11310         offsets (fixes bug #923936)
11311
11312 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
11313
11314         * device/lib/small/Makefile: fixed parallel execution by
11315         replacing `make` by `$(MAKE)`
11316
11317 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11318
11319         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
11320
11321 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
11322
11323         * src/pic/gen.c (genCpl): multi-byte complements were not working.
11324         * src/regression/Makefile: Regression test was not running.
11325
11326 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
11327
11328         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
11329         complement if possible
11330         * src/SDCCval.c (valComplement),
11331         * src/SDCCicode.c (operandOperation): fixed complement of literal
11332         * support/regression/tests/onebyte.c (testComplement): added
11333
11334 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
11335
11336         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
11337         return an optimized tree; actually replace actParm with the new tree
11338         * src/SDCCast.h: added some parantheses to remove side effects
11339         * support/regression/tests/bug-920866.c
11340
11341 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
11342         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
11343         Bit operands were not being handled properly in the pic14 port.
11344         (now src/regression/add.c passes again).
11345
11346 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11347
11348         * src/SDCC.y (labeled_statement): case and default no longer require
11349         a following statement (RFE #893037)
11350
11351 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11352
11353         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
11354         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
11355         disabled (fixes bug #916294)
11356         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
11357         "mov a,acc"; patch provided by Lenny Story
11358         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
11359
11360 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11361
11362         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
11363         functions
11364         * src/ds390/gen.c (genFunction, genEndFunction),
11365         * src/ds390/ralloc.c (ds390_assignRegisters),
11366         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
11367         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
11368         pushed if there are parameters passed on the stack. Also, a cleaner
11369         way to decide if r0/r1 should be pushed/popped. (Together they fix
11370         bug #918693)
11371
11372 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11373
11374         * doc/sdccman.lyx,
11375         * device/lib/mcs51/crtpagesfr.asm,
11376         * device/lib/mcs51/crtxinit.asm,
11377         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
11378         to avoid confusion with Si Lab's SFRPAGE register.
11379
11380 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11381
11382         * src/SDCCglue.c (emitMaps): allow public sfr variables
11383         * src/SDCCglue.c (initialComments): include compiler build date
11384         with compiler version and put the timestamp of the generated
11385         assembly file on a serperate line to be less confusing.
11386         * src/port.h: added genInitStartup hook
11387         * src/avr/main.c,
11388         * src/ds390/main.c,
11389         * src/hc08/main.c,
11390         * src/pic/main.c,
11391         * src/pic16/main.c,
11392         * src/xa51/main.c,
11393         * src/z80/main.c: genInitStartup initialize as NULL (default to
11394         historical behaviour)
11395         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
11396         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
11397         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
11398         library instead of hard coding it into the compiler.
11399         * support/regression/ports/mcs51-stack-auto/spec.mk,
11400         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
11401         * device/lib/mcs51/Makefile,
11402         * device/lib/small/Makefile,
11403         * device/lib/large/Makefile,
11404         * device/lib/mcs51/crtpagesfr.asm,
11405         * device/lib/mcs51/crtstart.asm,
11406         * device/lib/mcs51/crtxclear.asm,
11407         * device/lib/mcs51/crtxinit.asm,
11408         * device/lib/mcs51/crtclear.asm,
11409         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
11410         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
11411         and into user configurable files.
11412         * device/lib/clean.mk: clean mcs51 directory too
11413         * support/regression/tests/longlit.c: added static to T1 declaration
11414         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
11415         accesses in the initialization code
11416
11417 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11418
11419         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
11420         OSCTRIMVAL as noted in bug #916008
11421
11422 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11423
11424         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
11425         in loops with multiple exits (reported as incorrect registers
11426         used by Martin Helmling in Sdcc-user list)
11427
11428 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11429
11430         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
11431         made ds390 register extensions look less like error messages
11432
11433 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11434
11435         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
11436         reported by Adam Wozniak in Sdcc-user list
11437
11438 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
11439
11440         * src/SDCCast.c (decorateType): fixed with bug and promotion in
11441         arithmetic optimizations, added debug output
11442
11443 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
11444
11445         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
11446         * sdcc.spec: updated and split sdcc into 3 rpms
11447         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
11448         needed for literals of LEFT_OP and '+'
11449         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
11450         introduced RESULT_TYPE_NOPROM
11451         (geniCodeMultiply): fixed logic for decision if mul is optimized to
11452         left shift
11453         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
11454         limited promotion to int only for '*'
11455         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
11456
11457 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
11458
11459         * src/pic16/gen.c (genSkip),
11460         (genc16bit2lit), (gencjneshort): commented out
11461         (is_LitOp): new helper function, checks operand type
11462         (genCmpEq): rewritten
11463
11464 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
11465
11466         * support/regression/tests/bug-908454.c: added
11467
11468 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
11469
11470         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
11471         * src/SDCCicode.c (usualBinaryConversions): op needs int type
11472         (geniCodeCast): cosmetic, don't preserve bit storage class
11473         (geniCodeLeftShift): added promotion
11474         (geniCodeLogic): fixed regression
11475         * src/SDCCsymt.c (computeTypeOr): accept bits too
11476         (compareType): 2nd part of fix for bug #908454, needed for bitfields
11477
11478 2004-03-07  Borut Razem <borut.razem AT siol.net>
11479
11480         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
11481
11482 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
11483
11484         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
11485         version of pic16_genPackRegisters which does not check if ic is a
11486         CAST operator,
11487         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
11488         function cause string1.c regression test fails
11489
11490 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
11491
11492         * sim/ucsim/configure.in,
11493         * sim/ucsim/configure,
11494         * sim/ucsim/doc/Makefile.in: use docdir
11495         * src/SDCC.y: fixed sbit atrributes
11496         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
11497         * src/SDCCast.c (decorateType): |^& need special promotion handling
11498         * src/SDCCast.h,
11499         * src/SDCCsymt.h: moved definition of RESULT_TYPE
11500         * src/SDCCsymt.h (computeType),
11501         * src/SDCCicode.c: computeType() needs op
11502         * src/SDCCsymt.c (checkTypeSanity),
11503         * doc/sddman.lyx: "plain" bitfields are unsigned
11504         * src/SDCCsymt.c (computeTypeOr): added
11505         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
11506         |^& ops
11507         * src/SDCCval.c (val*): computeType() needs op
11508         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
11509         * support/regression/tests/onebyte.c: added tests for |^&
11510
11511 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
11512
11513         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
11514         for writing icode into asm output.
11515
11516 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
11517
11518         * src/pic16/device.c: added some debug lines enabled
11519         with macro DEBUG_CHECK,
11520         * src/pic16/genarith.c: more debug in genPlus,
11521         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
11522         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
11523         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
11524         * (aopForSym): onStack symbols are re-placed in data memspace,
11525         and onStack flag is cleared,
11526         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
11527         copy temporary pcodeop,
11528         * (genPcall): added warning for not updating PCLATU,
11529         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
11530         always true for pic16 port,
11531         * (genMultOneWord): NEW, supports integer multiplication,
11532         * (genMult): modified to call genMultOneWord,
11533         * (ifxForOp): added warning when return NULL,
11534         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
11535         flag is set before call to operandFromSymbol for implicit
11536         added structures,
11537         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
11538         options.intlong_rent are set by default,
11539         * (_hasNativeMulFor): modified to allow port generation of integer
11540         multiplication,
11541         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
11542         set regtype to REG_SFR for all registers, restricting seting the
11543         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
11544
11545 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11546
11547         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
11548         more than 500 times in the regression tests
11549
11550 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11551
11552         * support/Util/SDCCerr.h,
11553         * support/Util/SDCCerr.c,
11554         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11555         enumerator_list),
11556         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
11557         for symbol conflicts.
11558         * support/valdiags/tests/enum.c,
11559         * support/valdiags/tests/tentdecl.c,
11560         * support/valdiags/tests/struct.c: expect possible error messages
11561         referring to original symbol definitions.
11562         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
11563         * src/SDCCsymt.h,
11564         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
11565
11566 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
11567
11568         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
11569
11570 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
11571
11572         * src/pic16/ralloc.c (newReg): fixed bug #908929
11573
11574 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11575
11576         * src/ds390/gen.c: added missing #include "main.h"
11577
11578 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
11579
11580         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
11581         checking if symbol is already in set,
11582         * src/pic16/device.h: prototype for checkAddSym,
11583         * src/pic16/gen.c: (_G): added entry interruptvector,
11584         * (assignResultValue): removed some commented out lines,
11585         * (genFunction): check for ISR via sym->type, absolute section for
11586         interrupt code is created via a new pBlock, the goto instruction is
11587         placed now correctly at the interrupt vector position, changed all
11588         references from ivec to _G.interruptvector,
11589         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
11590         is the interrupt is a high priority one, same for return from ISR,
11591         * src/pic16/glue.c: changed all calls of addSetHead for publics and
11592         externs to calls of checkAddSym,
11593         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
11594         pic16_pcode_verbose flag is set,
11595         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
11596         * src/pic16/pcoderegs.c: message about how many registers are saved
11597         will only be emitted if pic16_pcode_verbose flag is set,
11598
11599 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11600
11601         * src/ds390/ralloc.h,
11602         * src/ds390/ralloc.c (ds390_regWithIdx),
11603         * src/ds390/gen.c (emitcode),
11604         * src/ds390/main.h,
11605         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
11606         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11607         ds390operandCompare, getRegsRead, getRegsWritten,
11608         initializeAsmLineNode): customized instruction size calculation for
11609         ds390, started basis for some register optimizations
11610         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
11611         corresponding assembly output
11612         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
11613         missing push/pop of r0/r1. Optimized push/pops
11614
11615 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11616
11617         * src/mcs51/main.c (instructionSize): fixed ACALL size
11618         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
11619
11620 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
11621
11622         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
11623         the sorting of rlist with NULL elements
11624         * (print_idataType, print_idata): NEW to create idata sections
11625         * src/pic16/device.h: idataSymSet new variable
11626         * src/pic16/gen.c (genFunction): fixed some bugs in string
11627         comparing, improved the absolute section creation for ISRs,
11628         added FSR0L/FSR0H in registers that are saved in an ISR,
11629         * (genInline): fixed the processing of inline snippets,
11630         now they undergo no process by the peephole optimizer
11631         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
11632         are placed in idataSymSet,
11633         * (pic16emitStaticSeg): extern symbols are added in externs,
11634         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
11635         switching when aboslute variables are placed in access bank memory
11636         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
11637         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
11638         commented out with #if,
11639         * (pic16_packRegisters): reintroduce the check for CAST because some
11640         symbols are not correctly handled,
11641         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
11642         pCodeInstruction instead of pCode,
11643         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
11644         pCodeAsmDir definition,
11645         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
11646         directive, then the argument directive is emitted without the leading
11647         tab, hack for inline labels which must be in the first column,
11648         * (compareLabel,pic16_findNextInstruction),
11649         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
11650         * (insertBankSwitch): modified for the new pCodeAsmDir,
11651
11652 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11653         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
11654
11655         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
11656         instance,
11657         * (pushSide): commented out with #if,
11658         * (assignResultValue): fixed some typos in saving
11659         registers,
11660         * (genPcall): FIXED and sync'ed with genCall,
11661         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
11662         * (genNearPointerGet): fixed to handle some more cases,
11663         implementation scheme via table reads,
11664         * (genConstPointerGet): modified to access code memory correct,
11665         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
11666         and improved to handle some cases
11667         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
11668         instead of "RETLW" for init data
11669         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
11670         not IN_DIRSPACE, work around to reduce bank switching when aboslute
11671         variables are placed in access bank memory (<0x80 and >=0xf80),
11672         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
11673         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
11674         TBLWT_POSTDEC,TBLWT_PREINC
11675         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
11676         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
11677         directives
11678         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
11679         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
11680         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
11681         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
11682
11683 2004-02-29  Borut Razem <borut.razem AT siol.net>
11684
11685         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
11686         support/Util/findme.h, support/Util/system.h: enhance binary relative
11687         search for lib and include by using findProgramPath()
11688
11689 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11690
11691         * src/SDCCpeeph.h,
11692         * src/SDCCpeeph.c (pcDistance),
11693         * src/port.h,
11694         * src/mcs51/ralloc.h,
11695         * src/mcs51/ralloc.c (mcs51_regWithIdx),
11696         * src/mcs51/main.h,
11697         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
11698         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
11699         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
11700         size calculation port specific, started basis for some register
11701         optimizations
11702         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
11703         missing push/pop of r0/r1. Optimized push/pops
11704         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
11705         * device/lib/_modsint.c (_modsint),
11706         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
11707         and stack version so regression tests pass
11708
11709 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
11710
11711         * src/Makefile.in (dep): include SLIBOBJS in dependency check
11712         * src/SDCCast.c (decorateType): catch another small optimization
11713         with '?' operator
11714         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
11715         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
11716         modified to finally use computeType() all over SDCC,
11717         see Feature Request #877103
11718         * src/SDCCval.h: cosmetic
11719         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
11720         valCompare(); regression tested in muldiv.c
11721         * support/regression/tests/muldiv.c (testMod): mod sign follows
11722         dividend only
11723
11724 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
11725
11726         * src/SDCCast.c (decorateType): fixed bug #902362
11727         * doc/INSTALL.txt: fixed install instructions for win32
11728
11729 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
11730
11731         * device/include/Makefile.in (install): fixed by replacing spaces
11732         by tabs
11733         * doc/README.txt,
11734         * doc/INSTALL.txt: updated for release
11735         * doc/sdccman.lyx: added warning for --xstack being buggy
11736
11737 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
11738
11739         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
11740         to eliminate build warnings.
11741         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
11742
11743 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
11744            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11745
11746         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
11747         removed -penable-stack, added comment for stack pragma, added
11748         warning for not initializing the stack/frame registers, removed
11749         comment at interrupts section
11750
11751         Stack is made permanent, there is no ability to disable stack usage.
11752         * src/pic16/device.h,
11753         * src/pic16/device.c: removed all references to USE_STACK macro,
11754         * src/pic16/device.c (pic16_dump_section): when no elements in
11755         rlist, free rlist before return,
11756         * (pic16_dump_int_registers): NEW, internal registers are a new set
11757         of general purpose registers reused by each function,
11758         * (checkAddReg): returns 1 if registers is added to set,
11759         * (pic16_groupRegistersInSection): when a registers is of type
11760         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
11761         * src/pic16/device.h: memRange and Assigned Memory are deleted,
11762         SRCASECMP macro is moved here from device.c
11763         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
11764         PO_PCLATU, PO_PRODL, PO_PRODH,
11765         * (pic16_pCodeOpType, genMinus,
11766         changed compares to "a" register, with AOP_ACC,
11767         * (pic16_genPlus): fixed some bugs and indented properly,
11768         * (pic16_addSign): changed size to size+offset in the MOVWF
11769         instruction,
11770         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
11771         multiply 8-bit operand by literal, result is 8-bit,
11772         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
11773         multiply 2 8-bit operand, result is 8-bit,
11774         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
11775         genUMult8X*_16,
11776         * src/pic16/gen.c: changed accUse to contain WREG only,
11777         * (pic16_emitcomment): renamed to pic16_emitpcomment,
11778         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
11779         true, do not use immediate addressing any more unless sym is a
11780         pointer in codespace,
11781         * (aopForRemat): do not use immediate addressing when symbol not in
11782         codespace and when symbol's address is requested,
11783         * (aopOp): for-loop in if(sym->accUse) is modified for the new
11784         accUse size (= 1),
11785         * (aopGet): added case for AOP_ACC and don't return "accumulator
11786         bug" but WREG instead,
11787         * (popGetTempReg): pushes contents of temporary register in stack,
11788         * (popReleaseTempReg): pops contents of temporary register from
11789         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
11790         * (pic16_popGet): separated case AOP_ACC to return register WREG
11791         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
11792         or PO_IMMEDIATE and initializes their instance/offset appropriately,
11793         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
11794         the use of immediate pointers to certain cases only.
11795
11796         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
11797         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
11798         * (assignResultValue, genCall, genRet): modified to use the new
11799         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
11800         genPcall is still broken,
11801         * (genFunction): added code to create 'A' type pBlocks when
11802         interrupt functions are generated, code not extensively tested yet,
11803         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
11804         * (genEndFunction): modified so ISRs pop stored registers from stack,
11805         * (genMultOneByte): cleanup,
11806         * (AccRsh): added flag andmask, to and result with appropriate mask,
11807         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
11808         * (genDataPointerGet): fixed and reenabled its use,
11809         * (genNearDataPointerGet): bugs fixed,
11810         * (genDataPointerSet): bugs fixed,
11811         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
11812         pic16_DumpSymbol, pic16_DumpOp,
11813         * src/pic16/genutils.h: function prototypes for the above functions,
11814         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
11815         pointers,
11816         * (pic16emitRegularMap): many many many improvements, but needs a
11817         major cleanup,
11818         * src/pic16/main.c: enable_stack in pic16_options is removed,
11819         * (_pic16_parseOptions): removed command line options -penable-stack,
11820         * (_process_pragma): emit stack symbol only when stack pragma is
11821         processed,
11822         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
11823         redirected to FSR0L/FSR0H pair,
11824         * (pic16_get_op, pic16_get_op2): modifications and improvements,
11825         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
11826         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
11827         for immediates,
11828         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
11829         * (dumpPicOptype): NEW,
11830         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
11831         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
11832         with movff instruction,
11833         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
11834         added pic16_int_regs, some packRegsFor* functions are commented out,
11835         because produce errors,
11836         * src/pic16/NOTES: minor modifications
11837
11838 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11839
11840         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
11841         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
11842         --pack-iram.
11843         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
11844         * as/mcs51/lkaomf51.c: fixed bug #895763
11845
11846 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
11847
11848         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
11849
11850 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11851
11852         * doc/sdccman.lyx: added details about the HC08 storage classes and
11853         interrupts, fixed the register usage info for z80 & gbz80
11854
11855 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
11856
11857         * doc/sdccman.lyx: added more pic16 port documentation
11858         * device/include/pic16/: added header pic18fregs.h
11859
11860 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
11861
11862         * doc/sdccman.lyx: added Vangelis' contribution
11863
11864 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11865
11866         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
11867         extend to the next CALL or PCALL, not just to the next CALL.
11868
11869 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
11870
11871         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
11872
11873 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11874
11875         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
11876         bug #895752 and a better fix for bug #716790
11877
11878 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11879
11880         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
11881
11882 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11883
11884         * doc/sdccman.lyx: minor changes, minor changed
11885
11886 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
11887
11888         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
11889         which can't handle SDCC_NEWONEBYTEOPS,
11890         (geniCodeMultiply): removed conversion from mult to shift for pic14
11891         and pic16
11892
11893 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11894
11895         * src/hc08/gen.h,
11896         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
11897         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
11898         thus fixing bug #895406
11899
11900 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
11901
11902         * device/lib/_modsint.c,
11903         * device/lib/_modslong.c: sign follows divisor only
11904         * src/hc08/gen.c (genMultOneByte): if result size is 1,
11905         signs or signedness can be ignored
11906         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
11907         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
11908         added optimization for IFX,
11909         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
11910         arguments;
11911         reenabled optimization for IFX, which was removed on 2004-01-11
11912         * src/SDCCast.h: added return type IFX
11913         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
11914         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
11915         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
11916         SDCC_OLDONEBYTEOPS selects the old behaviour
11917         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
11918         changed again and commented promotion rule
11919         * src/SDCCval.c (valDiv): promotion no longer necessary
11920         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
11921         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
11922         rewritten
11923         * support/regression/tests/onebyte.c: added
11924
11925 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
11926
11927         * gen.c (genInline): reverted to old code for assemnling inline
11928         code because of bug reported James Chadd
11929
11930 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
11931
11932         * ralloc.h: missing declarations from previous patch,
11933         seems that patch for ralloc.h was never applied, fixed
11934
11935 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
11936            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
11937
11938         * pcode.c,
11939         * pcode.h,
11940         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
11941         indirect addressing. Marked FSR0 as deprecated
11942         * gen.c (pointerCode): commented out, not needed now
11943         (pic16_popGet2p): new MOVFF helper function
11944         (genGenPointerGet),
11945         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
11946         (shiftRLong): removed duplicate debugging info
11947
11948 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11949
11950         * src/ds390/gen.c (genNearPointerGet),
11951         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
11952         optimization with bits, but not bitfields.
11953         * src/ds390/ralloc.c (packRegisters),
11954         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
11955
11956 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
11957
11958         * src/SDCCcse.c (algebraicOpts): copy operands before modification
11959
11960 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11961
11962         * src/SDCCsymt.h,
11963         * src/SDCCicode.c (operandFromSymbol),
11964         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
11965         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
11966         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
11967         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
11968         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
11969         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
11970         bug #892038
11971         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
11972         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
11973         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
11974         * src/SDCCsymt.c (newSymbol),
11975         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
11976         enumerator_list),
11977         * src/SDCCval.h,
11978         * src/SDCCval.c (newiList): fixed bug #885705
11979
11980 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
11981
11982         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
11983         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
11984
11985 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
11986
11987         * device/include/c8051f120.h,
11988         * device/include/c8051f300.h,
11989         * device/include/c8051f310.h: added/updated header files for Silicon
11990         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
11991         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
11992         in new section Submitting patches
11993
11994 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
11995
11996         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
11997         genFarPointerGet, genCodePointerGet, genGenPointerGet,
11998         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
11999         genGenPointerSet),
12000         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
12001         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12002         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12003         genGenPointerSet),
12004         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
12005         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12006         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12007         genGenPointerSet),
12008         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
12009         genFarPointerGet, genCodePointerGet, genGenPointerGet,
12010         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
12011         genGenPointerSet): fixed bug #892400
12012         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
12013         to eliminate build warnings.
12014         * src/SDCCast.c (processParms),
12015         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
12016         fixed bug 751859
12017         * support/valdiag/valdiag.py: added GCC to the list of defines active
12018         when compiling with gcc
12019
12020 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12021
12022         * support/Util/SDCCerr.h,
12023         * support/Util/SDCCerr.c,
12024         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
12025         with an incomplete type (fixed bug #883734)
12026         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
12027
12028 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12029
12030         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
12031
12032 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12033
12034         * src/SDCCast.c (decorateType),
12035         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
12036         function pointer implementation
12037         * support/regression/tests/funptrs.c: added tests to verify both forms
12038         of function pointers work correctly. Added tests to verify parameters
12039         are passed in the correct order.
12040
12041 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
12042
12043         * device.c (regCompare): registers are sorted by ascending
12044         address and increasing size,
12045         * main.c (_pic16_finaliseOptions): removed the declaration
12046         of compiler macro MCU. Now a macro of the format pic18fxxxx
12047         will be defined from the command line
12048
12049 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
12050             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
12051
12052         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
12053         PCOP_RLCF was overwritten!
12054         * gen.c (genSkip): commented out calls to pic16_emitcode,
12055         * (genCmpEQ): fixed "long" compares, only high word did get compared,
12056         * (genlshTwo),
12057         * (genRRC): added debugging info,
12058         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
12059         overwritten while shifting,
12060         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
12061         overwritten while shifting,
12062         * (AccLsh),
12063         * (AccRsh),
12064         * (shiftLLeftOrResult),
12065         * (shiftRLeftOrResult),
12066         * (shiftRLong),
12067         * (shiftLLong): Implemented with pic16_emitpcode
12068         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
12069         * (genLeftShift): Fixed bug, operand for shift by variable always
12070         was "and"ed with 0x0f,
12071         * (genLeftShiftLiteral),
12072         * (genrshTwo),
12073         * (genRightShiftLiteral): added debugging info,
12074         * (genrshFour): added comment,
12075         * (genRightShift): determined signedness from operand "left"
12076         instead of "result"
12077
12078 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12079
12080         * src/SDCCicode.c (geniCodeParms),
12081         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
12082         function pointers, fixed function pointer bugs #861242 and #861896
12083
12084 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12085
12086         * device/include/c8051f000.h,
12087         * device/include/c8051f120.h,
12088         * device/include/c8051f300.h: added header files for Silicon
12089         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
12090
12091 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
12092
12093         * src/SDCCast.c (processParams): added new type flow and restructured
12094         (gatherAutoInit): added new type flow
12095         (addCast): cosmetic changes
12096         (getLeftResultType): added new type flow for array indices, patch
12097         provided by Stas, see FR #877103
12098         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
12099         array index patch by Stas
12100         * src/SDCCast.h: added prototype getResultTypeFromType()
12101         * src/SDCCval.h,
12102         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
12103         * src/pic/glue.c (pic14emitStaticSeg),
12104         * src/pic16/glue.c (pic16emitStaticSeg),
12105         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
12106         for initialization of symbols
12107         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
12108         * support/Util/SDCCerr.h:
12109         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
12110         * .version: bumped version number to 2.3.8
12111         * device/include/Makefile.in (install),
12112         * doc/Makefile (install): changed to 'rm `find ...`' construct to
12113         avoid warnings
12114
12115 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
12116
12117         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
12118         Slade Rich fixed an optimization bug
12119         * src/pic/pcodepeep.c,
12120         * src/pic/pcoderegs.c
12121         * doc/Makefile (install): added test for directory
12122
12123 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12124
12125         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
12126         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
12127         * src/pic/ralloc.c (getRegPtr, getRegGpr),
12128         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
12129         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
12130         * as/mcs51/asexpr.c (term),
12131         * as/hc08/asexpr.c (term): fixed bug #887146
12132
12133 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12134
12135         * src/z80/gen.c (genMult): handle single byte result product
12136         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
12137         DUMMY_READ_VOLATILE (fixed bug #886367)
12138
12139 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12140
12141         * support/regression/tests/libmullong.c: fixed logic, on little endian
12142         hosts we ended without a mullong_wrapper()
12143
12144 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12145
12146         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
12147         virus/worm forged address usage.
12148
12149 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
12150
12151         Fixed promotion, it should be done on AST level:
12152         * src/SDCCast.c (addCast): added promotion to int
12153         (decorateType): updated call to upCast()
12154         * src/SDCCicode.c (geniCodeLeftShift): removed call to
12155         usualUnaryConversions()
12156
12157 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
12158
12159         * support/regression/tests/literalop.c (mulWrapper): Added a
12160         wrapper to remove integer overflow warnings.
12161
12162         * support/regression/tests/float_trans.c: Made work on host.
12163
12164         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
12165         location of sz80.
12166
12167         * support/regression/generate-cases.py (main): Changed from inline
12168         to a main method.
12169
12170         * doc/Makefile (install): Changed to depth first to get rid of
12171         missing directory install warning.
12172
12173         * as/Makefile (install-doc): Made work on Mac.
12174
12175 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
12176
12177         * src/SDCCast.c: added an additional type flow in decorateType() of
12178         opposite direction, see feature request #860006; it's enabled at runtime
12179         by setting the environment variable SDCC_NEWTYPEFLOW
12180         * src/SDCCast.h: changed prototype of decorateType()
12181         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
12182         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
12183         'char' to 'int' can be omitted, if both operands are 'unsigned char';
12184         see feature request #877103
12185         * src/SDCCval.c: updated call of decorateType()
12186         (valBitwise): fixed bug #882876
12187         (valMinus): added promotion
12188         (valLogicAndOr): result is unsigned
12189         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
12190         * src/SDCCsymt.c (computeType),
12191         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
12192         must not cause an unsigned operation
12193         * src/pic/glue (pic14emitRegularMap),
12194         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
12195
12196 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
12197
12198         * src/pic/pcode.c (PCodeID): commented out left over debug code
12199
12200 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
12201
12202         * support/valdiag/tests/overflow.c: added shift tests
12203         * src/pic/device.c,
12204         * src/pic/gen.c,
12205         * src/pic/gen.h,
12206         * src/pic/glue.c,
12207         * src/pic/main.c,
12208         * src/pic/pcode.c,
12209         * src/pic/pcode.h,
12210         * src/pic/pcodepeep.c,
12211         * src/pic/pcoderegs.c,
12212         * src/pic/ralloc.c,
12213         * src/pic/ralloc.h: applied patch from Slade Rich;
12214         added support for multiple code pages and multiple RAM banks on the
12215         PIC 14 port. The ASM files now no longer simply assume all the
12216         code / RAM are in the same page / bank. This means the linker can
12217         safely allocate code/RAM of separate ASM files to different pages/banks.
12218         * doc/sdccman.lyx: added Slade's tips
12219         * src/mcs51/peeph.def: fixed bug #880768
12220
12221 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12222
12223         * src/hc08/ralloc.c (rematStr): fixed bug #879282
12224         * src/SDCCast.c (decorateType): fixed bug #880197
12225
12226 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
12227
12228         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
12229         getopt.h.
12230
12231         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
12232         strtof is not part of C89 and isn't included with Mac OS X.
12233
12234 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12235
12236         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
12237         shiftL2Left2Result): fixed bug #879326
12238         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
12239         (genMultOneByte): fixed bug in signed vs unsigned multiplication
12240         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
12241         address fetch for clr instruction
12242         * device/lib/hc08/_mulint.c: created optimized assembly version
12243         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
12244
12245 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
12246
12247         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
12248         proposed in FR #877103
12249
12250 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
12251
12252         * src/SDCCval.c (cheapestVal): added missing checks
12253         * src/SDCCicode.c (usualBinaryConversions): fixed condition
12254         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
12255
12256 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
12257
12258         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
12259         equal operands
12260
12261 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
12262
12263         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
12264         loaded with the linker search paths (-L arguments) and the libraries
12265         to be linked with the current source (-l arguments). Changes
12266         currently will affect only the pic16 port.
12267         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
12268         include path the port specific paths and port specific libraries,
12269         * gplink command now contains the $3 argument,
12270         * src/pic16/device.h,
12271         * src/pic16/device.c,: structure PIC_device is made public and
12272         renamed to PIC16_device, the same for variable Pics which is renamed
12273         to Pics16. Updated all references to them.
12274         * src/pic16/glue.c (pic16glue): corrected bug with code
12275         initialization which bypassed the variable initializations block.
12276
12277         * device/lib/pic16/Makefile.rules: removed --penable-stack from
12278         COMPILE_FLAGS and added the --nostdinc option
12279
12280 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12281
12282         * device/include/mc68hc908jb8.h: Register defs for another member
12283         of the hc08 family. Contributed by Bjorn Bringert - thanks!
12284
12285 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
12286
12287         Documenting changes from previous commits.
12288         * configure.in (version 1.56),
12289         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
12290         when generating output files to configure the pic16 library,
12291         but now I've commented it out, since gputils aren't installed in the
12292         SF compile farm, so library won't compile
12293
12294         * device/lib/Makefile.in (version 1.56): initially I've added in
12295         target 'all' the prerequestive 'model-pic16' so it compiled the
12296         pic16 library, but now I've commented it out for the same reasons
12297         above,
12298         * added targets 'model-pic16' and 'objects-pic16' to compile the
12299         library
12300         * added target 'port-specific-objects-pic16' to handle the
12301         generated libraries and copy them into the build/ directory
12302         * added target 'clean-intermediate-pic16' to clean intermediate
12303         files into pic16 directory
12304         * in target 'installdirs' added line to create directory pic16 in
12305         the installation path
12306
12307         * device/include/Makefile.in (version 1.11): in target 'install'
12308         added lines to copy all header files to installation path,
12309         * in target 'installdirs' added line create directory for pic16
12310         headers in the installation path
12311
12312 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
12313
12314         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
12315          a function call
12316
12317 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
12318
12319         * configure,
12320         * device/lib/configure.in,
12321         * device/lib/configure: fixed for autoconf 2.57
12322
12323 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12324
12325         * src/z80/main.c (_parseOptions): fixed the portmode= command line
12326         option so that it actually works. Made it specific to the z80, since
12327         the gbz80 doesn't have these kinds of I/O ports.
12328
12329 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12330
12331         * device/include/z180.h,
12332         * device/lib/_memcpy.c,
12333         * device/lib/_memmove.c,
12334         * device/lib/_mulint.c,
12335         * device/lib/ser_ir.c,
12336         * device/lib/ser_ir_cts_rts.c,
12337         * device/lib/_strcmp.c,
12338         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
12339         * src/z80/main.c (_process_pragma): add support for pragmas bank and
12340         portmode; added deprecation warning for bank= and protmode= forms.
12341         Also, guard against buffer overflow.
12342         * src/z80/gen.c (aopGet): generate better code for sfr banked read
12343
12344 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12345
12346         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
12347         changed interrupt vector table generation to only emit declared vectors.
12348         * device/include/Makefile.in: added missing backslash
12349         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
12350
12351 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12352
12353         Mainly changes to support compilation of the device libraries
12354         * src/pic16/device.c: stack is allocated via symbol and not
12355         via literal number. The symbol is placed in the corresponding
12356         position of the data ram
12357         * (pic16_dump_section): relocatable and absolute uninitialized
12358         data are now emitted in sorted order to reduce section naming,
12359         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
12360         weren't marked as being in the access bank,
12361
12362 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
12363
12364         Added portion of GNU PIC Library under the directory
12365         device/include/pic16 and device/lib/pic16. These files
12366         contain the declarations of SFRs for the PIC18Fxx2 devices.
12367         The directory is initialized via configure from toplevel.
12368
12369 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
12370
12371         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
12372         the spilllocations to be compared correctly
12373
12374 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12375
12376         * src/SDCCast.c (decorateType): fixed bug introduced today
12377
12378 2004-01-12  Borut Razem <borut.razem AT siol.net>
12379
12380         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
12381         doc/sdccman.lyx: upper case pragmas are deprecated
12382
12383 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
12384
12385         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
12386         in simpler and even better code
12387
12388 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
12389
12390         * src/SDCCicode.c (operandOperation): fixed bug #874819
12391         * src/SDCCast.c (decorateType): fixed
12392         char foo (unsigned long ul) { return ul > 0; }
12393
12394 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12395
12396         * doc/sdccman.lyx: Moved and added some sections, small changes
12397         all over. Telling LaTeX to be less strict with word spacing
12398         to better keep the right margin. Changed some notes about
12399         maintainance of the ports in section 3.2.1 - is it OK like this?
12400
12401 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
12402
12403         SDCC source changes:
12404         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
12405         convilong): modified to inform the pic16 port that builtin functions
12406         are external
12407
12408         PIC16 PORT specific changes:
12409         * src/pic16/device.c pic16_dump_equates() added,
12410         processor registers declared internally by the port are emitted in
12411         the translation as equates,
12412         * src/pic16/gen.c: inline code is passed unprocessed to the
12413         translation,
12414         * (pic16_popGetLit2): fnuction modified to take second operand as
12415         pCodeOp pointer and not as literal,
12416         * (popRegFromIdx): prefixed with pic16_,
12417         * (pic16_popCombine2): modified to receive already allocated pCode
12418         operands,
12419         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
12420         * (genFunction): initializes local stack frame and pushes on stack
12421         all the registers used by this function,
12422         * (genEndFunction): restores all registers from stack and restores
12423         stack frame,
12424         * src/pic16/glue.c (pic16emitRegularMap): various changes and
12425         improvements,
12426         * (pic16glue): changed the program startup sequence,
12427         * added new dbName code 'A' for functions placed in absolute section
12428         * src/pic16/main.c: added function attribute _naked,
12429         * added pragma 'code' to place a fnuction at an absolute address,
12430         * added command line arguments --debug-ralloc and --pcode-verbose,
12431         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
12432         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
12433         * (pic16_newpCodeOpLit2): modified to take the second operand as
12434         pCodeOp pointer,
12435         * (pic16_printpBlock): modified to emit each function in a separate
12436         section,
12437         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
12438         UPPER for immediate operands,
12439         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
12440         instruction,
12441         * src/pic16/peeph.def: all peepholes with movff are commented out,
12442         because there is a problem in the pcode peep optimizer,
12443         * src/pic16/ralloc.c: the register allocator can now reuse local
12444         function symbols for another function. This saves register usage.
12445         * src/pic16/ralloc.h: added flag isLocal in structure regs,
12446
12447         Added file src/pic16/NOTES with information about program writing on
12448         the current port version.
12449
12450 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12451
12452         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
12453         and peephole 252 (array access)
12454
12455 2004-01-09  Borut Razem <borut.razem AT siol.net>
12456
12457         * src/SDCCmain.c : fixed #872250: -l command line defined library
12458           files are scanned before standard library files
12459
12460 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12461
12462         * src/SDCCast.c (decorateType): fixed bug #874046
12463
12464 2004-01-09  Borut Razem <borut.razem AT siol.net>
12465
12466         * support/scripts/sdcc.nsi: remove previous installation
12467
12468 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12469
12470         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
12471         bytes for last interrupt vector (mcs51)
12472         * sdcc.spec: fixed typo
12473
12474 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12475
12476         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
12477         gen51Code): more efficient parameter receive for --model-large
12478         ("bug" #845294)
12479
12480 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12481
12482         * src/ds390/main.c,
12483         * src/z80/main.c: added missed needLinkerScript flags (more than
12484         one port structure defined in these file)
12485         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
12486         bug #795325
12487
12488 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
12489
12490         * src/SDCCmain.c: removed various references to DEFAULT_PORT
12491         * src/port.h: added flag needLinkerScript in port->linker
12492         structure to inform whether to create a .lnk file or not,
12493         * src/avr/main.c,
12494         * src/ds390/main.c,
12495         * src/hc08/main.c,
12496         * src/mcs51/main.c,
12497         * src/pic/main.c,
12498         * src/pic16/main.c,
12499         * src/xa51/main.c,
12500         * src/z80/main.c: changed appropriately to configure
12501         needLinkerScript flag
12502         * src/pic/gen.c,
12503         * src/pic16/gen.c (genAddrOf): fixed bug #863624
12504         * src/pic/glue.c: added variable udata_section_name to
12505         override default uninitialized data segment definition for
12506         devices only with SHAREBANK memory (reported from Erik Epetrich)
12507         * (pic14emitOverlay): modified to emit a commented overlay segment
12508         directive when no overlay data exist
12509         * (picglue): modified to emit uninitialized data segment
12510         according to udata_section_name
12511         * src/pic/main.c (_pic14_parseOptions): added command line
12512         options --udata-section-name=[name] to override default
12513         udata definition name
12514         * modified _linkCmd and _asmCmd to include compiler passed
12515         arguments via -W option
12516         * src/pic16/main.c: added $l in _asmCmd, changed extension for
12517         object file from '.rel' to '.o' in port->linker structure,
12518         changed size of fptr from 2 to 3 in port structure
12519
12520 2004-01-07  Borut Razem <borut.razem AT siol.net>
12521
12522         * support/scripts/sdcc.nsi: update PATH
12523         * support/scripts/sdcc.ico: craeted
12524
12525 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
12526
12527         * device/include/Makefile.in: fix install
12528         * doc/Makefile: fix install
12529
12530 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12531
12532         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
12533         in bug #860505
12534         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
12535         how the function variable allocation summary is displayed; also
12536         include information about variables allocated to the overlay
12537         segment
12538
12539 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12540
12541         * as/mcs51/lkmain.c: Help about -Y option
12542         * as/mcs51/lkarea.c: Fixed gcc warnings
12543
12544 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12545
12546         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
12547         fixed warning
12548         * support/valdiag/tests/overflow.c: added
12549         * src/SDCCast.c (decorateType),
12550         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
12551         LEFT_OP (left shift)
12552
12553 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12554
12555         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
12556         (default behaviour).
12557
12558 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12559
12560         A python script to validate compiler diagnostic messages. It can be
12561         used to verify that sdcc complains about bad c source code and
12562         gives a good location of the error.
12563         * support/valdiag/Makefile,
12564         * support/valdiag/valdiag.py,
12565         * support/valdiag/tests/*
12566
12567 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12568
12569         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
12570         * src/SDCCsymt.c (newEnumType),
12571         * src/SDCCsymt.h
12572         * support/Util/SDCCerr.c,
12573         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
12574         enum related bugs.
12575         * support/regression/tests/enum.c: added test for enum values that
12576         require at least 2 bytes of storage.
12577
12578 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12579
12580         * src/common.h: added ifndef/define/endif macros
12581         around the header file.
12582         Bug reported from Jesus Calvino-Fraga
12583
12584 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
12585
12586         * sdcc.spec: updated
12587         * device/include/Makefile.in: don't install CVS directories
12588         * device/lib/Makefile.in: added removal of CVS directories after install
12589         * doc/Makefile: fixed install, added local_icons
12590         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
12591         * src/mcs51/gen.c (genRightShift): fixed bug #870788
12592         * src/ds390/gen.c (genRightShift): fixed bug #870788
12593         * src/SDCCast.c (decorateType): fixed bug #870781
12594
12595 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
12596
12597         PIC16 port related changes:
12598         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
12599         added variable stackPos,
12600
12601         * gen.c: genCall, assignResultValue: added support for
12602         pushing/retrieving function parameters to/from stack,
12603         genFunction,genEndFunction: setup stack frame for the
12604         generated function,
12605         genAddrOf: will be changed according to bug 863624
12606
12607         * added files genutils.c and genutils.h which contain gen*
12608         debugged and optimised functions extracted from gen.c
12609
12610         * glue.c: added variable 'externs' which holds extern symbols,
12611         pic16emitRegularMap: is modified to properly handle relocatable
12612          symbols under the new scheme,
12613         pic16createInterruptVect: is modified
12614         pic16printPublics: is modified to emit 'global' assembler directives,
12615         added pic16_printExterns to print extern symbols,
12616         pic16glue: initializes stack/frame pointer in the beginning of
12617         the assembly output. Temporary hack, will be corrected later,
12618         because gplink yet does not support stack and SDCC does not
12619         yet support a type of crt0.o object to create the final binary.
12620
12621         * Removed many lines that contain 8051 legacy code.
12622         * The code is finally placed under a 'code' directive.
12623         * Added port specific options.
12624
12625         * _process_pragma: simplified since now we do not need *special*
12626         include file to define SFR registers. But a separate header
12627         will be needed. This will be developed later.
12628         * _pic16_parseOptions: added, parses port specific options:
12629         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
12630         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
12631         --preplace-udata-with=
12632
12633         * _pic16_setDefaultOptions: modified to initialize section names,
12634         but hack is temporarly out of order since it needs improvement.
12635         * _pic16_genAssemblerPreamble: configuration words are emitted by
12636         their address instead of their name. This part is incomplete and
12637         supports only the 18Fxx2 devices. Other devices will emit an error
12638         during assembly since they do not contain the same set of config
12639         registers
12640         * _pic16_genIVT: is modified,
12641
12642         * pcode.c: added definitions for some hardware registers that are needed
12643         for stack support
12644         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
12645         All PCI entries are updated. Now LFSR is supported.
12646         * Removed pic16_pciTRIS is mentioned by mdubuc in source
12647         * added pic16_newpCodeOpLit2 to support instructions with
12648         two literal arguments
12649         * pic16_pCode2str: corrected code that emits assembler instructions
12650         with two literal operands and those that have an access bit modifier
12651         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
12652         this fixes a bug which caused some labels to be lost, when an
12653         assembler directive was added, i.e. banksel,
12654         * pic16_FixRegisterBanking: improved logic that causes the insertion
12655         of bank switching,
12656         * InlineFunction: functions that are called once, are not any more
12657         inlined. This can be a port option in the future,
12658
12659         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
12660
12661         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
12662         hold the corresponding uninitialized symbols,
12663         * pic16_allocProcessorRegister: registers have explicit marked the
12664         accessBank field,
12665         * pic16_allocInternalRegister: registers are explicit marked as
12666         not used,
12667         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
12668         processing list, so bit registers were lost,
12669         *
12670
12671         * ralloc.h: added field 'accessBank' and original symbol operand
12672         in register definition,
12673         * removed the field isMapped from register definition,
12674
12675         ** Several functions have been removed from various sources:
12676         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
12677         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
12678         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
12679         pic16_assignRelocatableRegisters
12680
12681         ** others have been introduced:
12682         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
12683         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
12684
12685 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
12686
12687         * support/scripts/inc2h.pl: changed definition of BIT_AT
12688         to emit 'sbit at' instead of 'bit at'. This was a request.
12689
12690         PIC16 port related preliminary changes:
12691         * gen.c: prefixed function popRegFromString with
12692         pic16_ and all references to it corrected
12693         * pcode.c: all pic16_pc_* hardware registers prefixed
12694         with underscore (_),
12695         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
12696         * ralloc.c: newReg(): when register is REG_SFR then
12697         set address to rIdx,
12698         pic16_allocProcessorRegister(): marks register wasUsed=0
12699         pic16_writeUsedRegs(): added a call to assign processor
12700         registers via pic16_assignFixedRegisters
12701
12702 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
12703
12704         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
12705         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
12706         variables in unused register banks.  Also the SSEG is placed
12707         wherever there is enough space for it, and IDATA can be anywhere
12708         in internal RAM.  For now compile using -Wl-Y[stack_size].
12709         The mem file is different for this option as well, since it
12710         makes no sense of talking about DSEG lenght.
12711
12712 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
12713
12714         * src/SDCClrange.c: fixed bug 869095 that caused segfault
12715         in certain cases, e.g. when ROM assignment, patch provided
12716         from Albert den Haan.
12717
12718 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
12719
12720         Many signedness and type propagation fixes:
12721         * src/SDCCicode.c: made geniCodeCast() static
12722         replaced SPEC_ by IS_ (cosmetic)
12723         (operandOperation): fixed div and mod operation
12724         (usualBinaryConversions): added support for promotion of char
12725         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
12726         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
12727         (geniCodeAdd): an array index will stay unsigned, even if promoted
12728         from char to int
12729         (geniCodeArray): ditto
12730         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
12731         * src/SDCCsymt.c (computeType): added more support for char;
12732         promotion of char is selectable by promoteCharToInt, fixed signedness
12733         for all cases
12734         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12735         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
12736         * src/SDCCval (val*): replaced signedness calculation by
12737         computeType()
12738         rearranged if-branches (cosmetic)
12739         (valShift): added warning W_SHIFT_CHANGED
12740         (valCompare): fixed problem with different types
12741         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
12742         * support/regression/tests/literalop.c: added many cases
12743         * support/regression/tests/ast_constant_folding.c: changed finally to
12744         'unsigned int'
12745         * .version: new year, new version: 2.3.7
12746         * src/SDCCmain.c (main): applied patch #866468
12747         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
12748         provided by Scott Bronson
12749         * doc/sdccman.lyx: updated documentation for sdcdb
12750         updated and added chapter tips
12751
12752 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12753
12754         * src/SDCCsymt.h: missing from yesterday's commits
12755
12756 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12757
12758         * src/SDCC.y (struct_or_union_specifier),
12759         * support/Util/SDCCerr.c,
12760         * support/Util/SDCCerr.h: verify that struct & union tags are used
12761         as declared.
12762
12763 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12764
12765         * src/SDCCglobl.h: missing from yesterday's commits
12766
12767 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12768
12769         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
12770         sft_attributes, struct_declaration, parameter_declaration,
12771         type_name, start_block, declaration_list),
12772         * src/SDCC.lex (check_type): support redefinition of typedef names
12773
12774 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12775
12776         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
12777         aligned xdata arrays. Erik helped me with the if clause.
12778
12779 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12780
12781         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
12782         warning
12783
12784 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12785
12786         * src/SDCCast.h,
12787         * src/SDCCast.c (newAst_),
12788         * src/SDCCicode.h,
12789         * src/SDCCicode.c (ast2iCode, newiCode),
12790         * src/SDCCglobl.h,
12791         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
12792         expr, statement, expression_statement, selection_statement,
12793         iteration_statement, expr_opt, jump_statement): foundation for tracking
12794         sequence points
12795         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
12796         point code too)
12797
12798 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12799
12800         * support/Util/SDCCerr.c,
12801         * src/SDCCast.h,
12802         * src/SDCCast.c (createCase, createDefault, decorateType),
12803         * src/SDCClabel.c (labelUnreach),
12804         * src/SDCC.y (labeled_statement, jump_statement): More improvements
12805         to error messages.
12806         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
12807         (with thanks to Stas Sergeev)
12808         * device/include/time.h,
12809         * device/lib/time.c (CheckTime): suppress unreachable code warning
12810
12811 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12812
12813         * src/SDCCast.c (createIvalCharPtr),
12814         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
12815         bug #753752)
12816         * support/regression/tests/nullstring.c: tests for these two bugs
12817
12818 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12819
12820         * support/Util/SDCCerr.h,
12821         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
12822         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
12823         about storage class and 'at' used inside struct or union
12824         * src/SDCCBBlock.c (iCodeFromeBBlock),
12825         * src/SDCCcse.c (ifxOptimize),
12826         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
12827         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
12828         printIval, emitStaticSeg, emitOverlay),
12829         * src/SDCClabel.c (deleteIfx),
12830         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
12831         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
12832         gatherAutoInit, processParms),
12833         * support/Util/SDCCerr.h,
12834         * support/Util/SDCCerr.c (werrorfl): Support for better error location
12835         reporting for post-parse errors.
12836
12837 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12838
12839         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
12840         implicit casts via union; they don't work on big endian systems
12841         (possible fix for bug #861138)
12842
12843 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12844
12845         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
12846         * src/mcs51/main.c: fixed the fix for bug #737001
12847
12848 2003-12-15  Borut Razem <borut.razem AT siol.net>
12849
12850         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
12851
12852 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12853
12854         * support/makebin/makebin.c: put output in binary mode
12855
12856 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12857
12858         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
12859         xdata and data memory on startup. Set the environment variable
12860         SDCC_NOGENRAMCLEAR to disable this.
12861         * src/mcs51/peephole.def,
12862         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
12863         (allows non-interrupt and interrupt code to safely compete for a resource
12864         without the non-interrupt code having to disable interrupts)
12865
12866 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12867
12868         * src/SDCCicode.c (geniCodeAdd),
12869         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
12870         with valFromType if type might be a pointer and host is big endian).
12871         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
12872         types, not just integer types.
12873         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
12874         multiply defined with mismatching "at" address.
12875
12876 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12877
12878         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
12879         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
12880         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
12881         with embedded nulls (fixed bug #753752)
12882
12883 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12884
12885         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
12886         Apparently this did not see much testing (endless loop)
12887
12888 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12889
12890         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
12891
12892 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12893
12894         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
12895         gracefully handle NULL memmap pointers
12896
12897 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12898
12899         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
12900         instead of deleting the iCode when an operand is volatile
12901         * src/z80/gen.c (genDummyRead),
12902         * src/mcs51/gen.c (genDummyRead),
12903         * src/ds390/gen.c (genDummyRead),
12904         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
12905         not just IC_RIGHT
12906         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
12907         * src/SDCC.y: fixed bug #850420
12908
12909 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12910
12911         Applied z80 i/o port patch from Peter Townson and fixed some operators
12912         to better handle operands in A register.
12913         * device/include/z180.h
12914         * src/SDCC.y
12915         * src/SDCCglue.c
12916         * src/z80/gen.c
12917         * src/z80/gen.h
12918         * src/z80/main.c
12919         * src/z80/peeph-z80.def
12920         * src/z80/peeph.def
12921         * src/z80/z80.h
12922
12923 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12924
12925         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
12926
12927 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12928
12929         * device/lib/hc08/_mullong.c: Removed extra #endif
12930
12931 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12932
12933         * sim/ucsim/hc08.src/inst.cc,
12934         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
12935         carries from x to h
12936         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
12937         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
12938         * device/include/stdarg.h: fixed varargs for hc08
12939         * device/lib/Makefile.in,
12940         * device/lib/hc08/Makefile,
12941         * device/lib/hc08/_mulint.c,
12942         * device/lib/hc08/_mullong.c: fixed some endian problems
12943
12944 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
12945
12946         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
12947         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
12948         * device/lib/_gptrget.c,
12949         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
12950
12951 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12952
12953         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
12954         * src/SDCCast.c (astErrors): fixed bug #846007
12955         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
12956
12957 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12958
12959         * src/SDCCast.c (decorateType): disabled a transformation I added in
12960         revision 1.188 (access to fields of a structure at an absolute address);
12961         it breaks with bitfields, extern declarations, and gcse analysis.
12962         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
12963         could be assigned through a pointer, so don't complain.
12964         * src/SDCCast.c (astErrors),
12965         * src/SDCCast.h,
12966         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
12967
12968 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
12969
12970         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
12971         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
12972         output of __config directives, since gpasm now supports them
12973         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
12974         pre-processor macro, i.e. -DMCU=p18f452
12975         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
12976         and modified to handle 'cast' icode similarly to '=' icode
12977         * src/pic16/device.h (typedef struct PIC_device): added field
12978         'extMIface' to indicate that chip has external memory interface
12979         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
12980         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
12981         18F8720
12982
12983 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12984
12985         * src/SDCC.y (pointer): fixed bug #846006
12986         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
12987         * src/SDCCast.c (decorateType): fixed bug #846009
12988         * src/ds390/peeph.def,
12989         * src/ds390/gen.c (genAnd, genOr),
12990         * src/mcs51/peeph.def,
12991         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
12992
12993 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
12994
12995         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
12996         * src/SDCCdflow.c
12997         * src/SDCCcse.c
12998         * src/SDCCcse.h
12999         * src/SDCCBBlock.h
13000         * src/SDCCBBlock.c
13001
13002 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
13003
13004         fixed bug #845089
13005         * src/SDCCbitv.h,
13006         * src/SDCCbitv.c: added function to free a bitvector
13007         * src/SDCClrange.h,
13008         * src/SDCClrange.c: added function to recompute the liveranges
13009         * src/avr/ralloc.c,
13010         * src/ds390/ralloc.c,
13011         * src/hc08/ralloc.c,
13012         * src/mcs51/ralloc.c,
13013         * src/pic/ralloc.c,
13014         * src/pic16/ralloc.c,
13015         * src/xa51/ralloc.c,
13016         * src/z80/ralloc.c: recompute the liveranges after register packing
13017
13018 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
13019
13020         * src/SDCCloop.c (newInduction): fixed bug #845630
13021
13022 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13023
13024         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
13025         inadvertantly left behind from my 2003-11-12 change
13026
13027 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13028
13029         Updated headers I neglected to commit yesterday.
13030         * src/SDCClrange.h,
13031         * src/SDCCicode.h
13032
13033 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13034
13035         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
13036         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
13037         * src/SDCCopt.c (eBBlockFromiCode),
13038         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
13039         the creation of the key hash table from the sequencing so it can be used
13040         earlier (for some GCSE bug fixes still pending)
13041
13042 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13043
13044         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
13045         * support/regression/tests/addsub.c: testing genPlus shortcut
13046
13047 2003-11-15  Borut Razem <borut.razem AT siol.net>
13048
13049         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
13050
13051 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13052
13053         * src/SDCCcse.c (cseBBlock): fixed bug #527779
13054         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
13055         ordering is immaterial.
13056         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
13057
13058 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13059
13060         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
13061         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
13062         (SIGSEV) of bug #840381
13063         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
13064         unlink new file before rename if new and old filenames are the same)
13065
13066 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13067
13068         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
13069         uninitialized variables) for the mcs51. Set environment variable
13070         SDCC_GENRAMCLEAR to test.
13071         xdata initialization slightly shorter
13072
13073 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13074
13075         * src/SDCCsymt.h,
13076         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
13077         #838241 & 780691 (basicly the same bug)
13078         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
13079         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
13080
13081 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
13082
13083         * src/SDCCmain.c (linkEdit): "fix" #834252
13084
13085 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13086
13087         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
13088         * src/SDCCast.h,
13089         * src/SDCC.y: fixed bug #819403
13090
13091 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13092
13093         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
13094         the reentrant attribute.
13095         * src/hc08/gen.c (genPackBits): added missing stack readjustment
13096         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
13097         simulation
13098         * src/SDCCast.c (decorateType): fixed bug with storage class not being
13099         updated during pointer dereference; f.e. ~(((char *)1)*) was being
13100         erroneously reduced to a literal.
13101         * src/hc08/ralloc.c (packRegisters, rematStr),
13102         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
13103         some cases
13104
13105 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13106
13107         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
13108         * doc/sdccman.lyx: changed from 'article' to 'book'
13109         * doc/Makefile: readded test_suite_spec and cdbfileformat
13110
13111 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
13112
13113         * device/include/stdlib.h: include malloc.h to comply with ANSI
13114         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
13115
13116 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13117
13118         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
13119         * doc/clean.mk: also remove *.out files
13120         * doc/sdccman.lyx: some additions, larger top/bottom margins
13121
13122 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13123
13124         * src/SDCC.y: fixed bug #837365
13125         * support/regression/tests/bitopcse.c
13126         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
13127         a symbol (might be valop instead)
13128         * device/lib/Makefile.in: added errno.c to HC08SOURCES
13129         * device/lib/clean.mk: added hc08 to the cleaning list
13130
13131 2003-11-04  Borut Razem <borut.razem AT siol.net>
13132
13133         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
13134           made 2003-11-04
13135         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13136           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
13137           malloc is declared in standard stdlib.h
13138
13139 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13140
13141         * device/lib/hc08/Makefile: need to clean .rel not .o files
13142         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
13143
13144 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13145
13146         * src/port.h,
13147         * src/hc08/main.c,
13148         * src/mcs51/main.c,
13149         * src/ds390/main.c,
13150         * src/z80/main.c,
13151         * src/avr/main.c,
13152         * src/pic/main.c,
13153         * src/pic16/main.c,
13154         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
13155         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
13156         tests (which uses the port's oclsExpense function)
13157         * src/SDCC.y,
13158         * src/SDCCast.c,
13159         * src/SDCCicode.c,
13160         * src/hc08/gen.c,
13161         * src/ds390/gen.c,
13162         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
13163
13164 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13165
13166         * src/SDCCcse.c (ifxOptimize),
13167         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
13168         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
13169         deleting the IFX iCode.
13170         * src/hc08/ralloc.c: reduced unneeded slocs
13171         * src/hc08/gen.c: fixed bug in asmopToBoolean
13172
13173 2003-11-04  Borut Razem <borut.razem AT siol.net>
13174
13175         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
13176           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
13177           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
13178           transferred to configure
13179
13180 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
13181
13182         Use headers defined in the C[++] standards:
13183         * sim/ucsim/gui.src/serio.src/fileio.cc
13184         * sim/ucsim/gui.src/serio.src/frontend.cc
13185         * sim/ucsim/gui.src/serio.src/main.cc
13186         * sim/ucsim/gui.src/serio.src/posix_signal.cc
13187         * support/Util/NewAlloc.c
13188         * as/hc08/lklibr.c
13189         * as/mcs51/lklibr.c
13190         * as/z80/aslist.c
13191         * as/z80/assym.c
13192
13193 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13194
13195         * Added MSVC projects for hc08 assembler and linker:
13196         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
13197         /as/hc08/link_hc08.dsp
13198
13199 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
13200
13201         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
13202
13203 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
13204
13205         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
13206
13207 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13208
13209         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
13210
13211 2003-10-31  Borut Razem <borut.razem AT siol.net>
13212
13213         * support/cpp2/cpplib.h,
13214           support/cpp2/cpplib.c,
13215           support/cpp2/cpplex.c,
13216           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
13217           to switch _asm block preprocessing on / off. Default is
13218           #pragma preproc_asm +
13219
13220 2003-10-31  Borut Razem <borut.razem AT siol.net>
13221
13222         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
13223           when outputting comment blocks (when executed with -C option) and
13224           _asm (SDCPP specific) blocks
13225
13226 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13227
13228         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
13229
13230 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
13231
13232         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
13233
13234 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
13235
13236         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
13237         * src/SDCCast.c (decorateType): fixed bug #832664
13238
13239 2003-10-31  Borut Razem <borut.razem AT siol.net>
13240
13241         * support/cpp2/cpplex.c: fixed for SDCPP:
13242           comments(when executed with -C option) and _asm blocks
13243           were included even if they where in skipped #if block.
13244           Applied solution from GCC cpp 3.3.2
13245
13246 2003-10-31  Borut Razem <borut.razem AT siol.net>
13247
13248         * src/SDCC.lex: sdcc now understands both formats:
13249           '# <line_number> <file_name>' and
13250           '#line <line_number> <file_name>'
13251         * support/cpp2/cppmain.c: sdcpp now generates the standard
13252           '# <line_number> <file_name>' instead of former
13253           '#line <line_number> <file_name>'
13254
13255 2003-10-30  Borut Razem <borut.razem AT siol.net>
13256
13257         * support/cpp2/cpphash.h,
13258         * support/cpp2/cpplib.h
13259         * support/cpp2/cpplex.c,
13260         * support/cpp2/cppmain.c,
13261         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
13262
13263 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13264
13265         Fixed a number of problems revealed by bug #827883.
13266         * src/SDCCloop.c (loopInvariants): Spill location of the
13267         result operand should be recomputed if extracted from
13268         a loop. Also, don't extract assignments of an iTemp
13269         from a literal.
13270         * src/SDCCast.c (isConformingBody): loop reversal should
13271         not occur if the control variable is involved with a
13272         relational operator.
13273
13274 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
13275
13276         * .version: bumped to 2.3.6 to reflect the big improvements
13277         made by Erik and Klaus. Thanks!
13278
13279 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
13280
13281         Replaced the livrange code.
13282         * src/SDCClrange.c: added new LR code
13283         * src/SDCCloop.c,
13284         * src/SDCCBBlock.h: removed remainig parts from old LR code
13285         * src/ds390/ralloc.c,
13286         * src/ds390/gen.c: minor fixes to make it work with new code
13287
13288 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13289
13290         * as/hc08/asm.h,
13291         * as/hc08/lkrloc.c,
13292         * src/hc08/gen.c,
13293         * src/hc08/ralloc.c: Fix various warnings related to the hc08
13294         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
13295         (tweaked fix for bug #818696)
13296
13297 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13298
13299         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
13300
13301 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13302
13303         * src/SDCCmain.c,
13304         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
13305         * src/mcs51/gen.c (gencjneshort),
13306         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
13307         more efficient (per Scott Bronson's suggestion)
13308
13309 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13310
13311         Extended the semantics of the critical keyword to include
13312         individual statements. See RFE #827755 and #799831
13313         * src/SDCC.y
13314         * src/SDCCicode.c
13315         * src/SDCCopt.c
13316         * src/SDCCast.c
13317         * support/Util/SDCCerr.c
13318         * support/Util/SDCCerr.h
13319         * src/mcs51/gen.c
13320         * src/ds390/gen.c
13321         * src/hc08/gen.c
13322
13323 2003-10-19  Borut Razem <borut.razem AT siol.net>
13324
13325         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
13326
13327 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13328
13329         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
13330         Fixed bug #818696
13331         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
13332         and predecrement operand is displayed
13333
13334 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13335
13336         * src/SDCCval.c (valMinus): fixed bug #826041
13337
13338 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13339
13340         Some hc08 related updates that I missed earlier
13341         * sim/ucsim/stypes.h
13342         * support/regression/ports/hc08/spec.mk
13343
13344 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13345
13346         New target "hc08" for the Motorola 68hc08 family of micros
13347
13348         * configure
13349         * configure.in
13350         * Makefile
13351         * src/hc08/*
13352         * src/SDCCmain.c
13353         * src/port.h
13354         * sim/ucsim/hc08.src/*
13355         * sim/ucsim/configure.in
13356         * src/ucsim/configure
13357         * sim/ucsim/packages_in.mk
13358         * as/hc08/*
13359         * as/Makefile
13360         * device/include/mc68hc908qy.h
13361         * device/lib/hc08/*
13362         * device/lib/Makefile.in
13363         * support/regression/ports/hc08/*
13364         * support/regression/Makefile
13365
13366 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13367
13368         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
13369         regression test
13370         * src/ds390/gen.c (genCast): fixed bug #821957
13371
13372 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
13373
13374         * device/lib/logf.c: "fixed" overlay bug
13375         * support/regression/ports/host/spec.mk: added m library
13376         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
13377         * support/regression/tests/float_trans: added (for Eric)
13378
13379 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
13380
13381         * src/mcs51/gen.c (genCpl): fixed bug
13382         http://sf.net/mailarchive/message.php?msg_id=6263915
13383
13384 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
13385
13386         * src/SDCCast.c (decorateType): added extended constant folding
13387         * src/SDCCsymt.c (computeType): cleanup
13388         * src/SDCCval.c (valShift): minor optimization
13389         * support/regression/tests/ast_constant_folding.c: added
13390
13391 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13392
13393         * src/SDCCmain.c: removed some unintended changes
13394
13395 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13396
13397         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
13398         * src/z80/gen.c: fixed part of bug #817589
13399         * src/SDCCsymt.c (checkFunction): fixed bug #817895
13400
13401 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
13402
13403         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
13404         * src/SDCCcflow.c
13405         * src/SDCCcse.c
13406         * src/SDCCdflow.c
13407         * src/SDCClabel.c
13408         * src/SDCClrange.c
13409         * src/SDCCmem.c
13410         * src/SDCCopt.c
13411         * src/SDCCpeeph.c
13412         * src/SDCCset.c
13413         * src/avr/ralloc.c
13414         * src/ds390/ralloc.c
13415         * src/izt/ralloc.c
13416         * src/mcs51/ralloc.c
13417         * src/pic/ralloc.c
13418         * src/pic16/ralloc.c
13419         * src/xa51/ralloc.c
13420         * src/z80/ralloc.c
13421         * src/z80/gen.c: removed unused label "release:"
13422
13423 2003-10-06  Borut Razem <borut.razem AT siol.net>
13424
13425         * src/SDCC.lex: removed definition of unused variables
13426           save_optimize and save_options
13427
13428 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
13429
13430         * clean.mk: removed '=' in "-maxdepth=1"
13431         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
13432         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
13433
13434 2003-10-06  Borut Razem <borut.razem AT siol.net>
13435
13436         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
13437           my_unput() replaced by unput()
13438
13439 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
13440
13441         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
13442         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
13443         type-punned pointer will break strict-aliasing rules"
13444         Old LR behaviour is again default; Klaus' LR can be choosen by
13445         defining the environment variable LRKLAUS
13446         * src/SDCCBBlock.h
13447         * src/SDCCloop.c
13448         * src/SDCClrange.c
13449         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
13450         * clean.mk: fixed removal of files in bin/CVS/
13451         * device/lib/clean.mk: fixed removal of directories small and large
13452         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
13453         * src/SDCCicode.c,
13454         * src/SDCCval.c: removed superflous test for pedantic
13455
13456 2003-10-05  Borut Razem <borut.razem AT siol.net>
13457
13458         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
13459           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
13460           message "unmatched #pragma SAVE and #pragma RESTORE"
13461
13462 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13463
13464         * doc/sdccman.lyx: various additions and updates (interrupts, inline
13465           assembly, critical functions, atomic, nojtbound)
13466
13467 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
13468
13469         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
13470         * src/SDCCBBlock.h
13471         * src/SDCCloop.c
13472         * src/SDCCloop.h
13473         * src/SDCClrange.c
13474
13475 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13476
13477         * src/z80/gen.h,
13478         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13479         * src/mcs51/gen.h
13480         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13481         * src/ds390/gen.h
13482         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
13483         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
13484         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
13485
13486 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13487
13488         * src/z80/gen.c (genRet): fixed bug #524753
13489         * src/z80/gen.c (genCast): fixed internal error on cast from
13490         pointer to long
13491         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
13492         fix for bug #477835 to the z80
13493         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
13494         for tracking iCodes in the peephole optimizer for z80
13495
13496 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13497
13498         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
13499         the other part of bug #814548
13500         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
13501
13502 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
13503
13504         * src/SDCCcse.c: fixed part of bug #814548
13505
13506 2003-09-28  Borut Razem <borut.razem AT siol.net>
13507
13508         * src/asm.c: rewrite of printILine() to use temporary file instead
13509           a pipe
13510         * src/xa51/main.c: commented out declaration of int rewinds
13511
13512 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13513
13514         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
13515
13516 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13517
13518         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
13519         * src/asm.c (printILine): Fixed bug #811015
13520
13521 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13522
13523         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
13524         freeing.
13525
13526 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13527
13528         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
13529         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
13530         to correctly handle general case of AOP_PAIRPTR
13531         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
13532
13533 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13534
13535         * src/mcs51/ralloc.c (fillGaps),
13536         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
13537         register positioning bug)
13538
13539 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
13540
13541         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
13542
13543 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13544
13545         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
13546         genCodePointerGet, genGenPointerGet, genFarPointerSet,
13547         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
13548         (ralloc doesn't intentionally do this now, but perhaps later)
13549         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
13550         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
13551         register positioning bugs (Fixed bug #762602 and #795325)
13552         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
13553         (Fixed bug #808779)
13554         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
13555         lines that --i-code-in-asm generates
13556
13557 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13558
13559         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
13560         trying to fclose a FILE* that was already closed.
13561
13562 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13563
13564         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
13565         of const struct should be treated as if const themselves)
13566
13567 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
13568
13569         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
13570
13571 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13572
13573         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
13574         Unix (/n) and DOS (/r/n) line terminations.
13575
13576 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13577
13578         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
13579         bug #613775
13580
13581 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13582
13583         * src/mcs51/gen.c (genFunction, genEndFunction),
13584         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
13585         and restore of EA so that stack offsets to parameters are
13586         correct when using both critical and reentrant/stack-auto.
13587         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
13588         size (can be triggered in error if sloc is shared between
13589         different sized objects)
13590         * device/include/float.h: fixed macros to explicitly use
13591         unsigned long where needed
13592
13593 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
13594
13595         Feature req. 799831: added code to allow nesting of critical functions
13596         * src/mcs51/gen.c (genFunction, genEndFunction)
13597         * src/ds390/gen.c (genFunction, genEndFunction)
13598
13599 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13600
13601         * src/SDCCsymt.c (sclsFromPtr),
13602         * src/SDCCsymt.h,
13603         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
13604         support for standard C idiom of memory mapped variables; for
13605         example, *((xdata int*)0x1234) = 1 is now internally equivalent
13606         to xdata int at 0x1234 tempvar = 1.
13607         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
13608         provided by Akiya ISHIDA
13609
13610 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
13611
13612         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
13613         * src/SDCCval.c (constVal): added reduction from int to char
13614         * src/SDCCval.c (valMult, valDiv): fixed sign handling
13615         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
13616         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
13617         to ignore the sign
13618         * support/regression/tests/shifts.c: fixed
13619
13620 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13621
13622         * src/z80/gen.c (genXor): Fixed bug #805445
13623
13624 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13625
13626         Fixed bug #621531 (const & volatile confusion in the type chain).
13627         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
13628         refer to the const or volatile state of the pointer itself.
13629
13630         * src/SDCCast.c
13631         * src/SDCCglue.c
13632         * src/SDCCicode.c
13633         * src/SDCCsymt.c
13634         * src/SDCCval.c
13635         * src/SDCC.y
13636         * src/SDCCsymt.h
13637         * src/pic/gen.c
13638         * src/pic/ralloc.c
13639         * src/pic16/gen.c
13640         * src/pic16/ralloc.c
13641         * support/regression/tests/const.c
13642
13643 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13644
13645         When checking for duplicated modules, use absolute paths
13646         instead of relative paths.  Files changed:
13647
13648         * as/mcs51/lklib.c
13649         * link/z80/lklib.c
13650
13651 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13652
13653         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
13654
13655 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13656
13657         * device/include/string.h: added size_t typedef, changed
13658         prototypes to use size_t, eliminated separate reentrant and
13659         non-reentrant declarations, added _memmove declaration
13660         * device/lib/_memcpy.c: changed to use size_t instead of int,
13661         changed /4 to >>2 to avoid division library call
13662         * device/lib/_memcmp.c,
13663         * device/lib/_memset.c,
13664         * device/lib/_strncat.c,
13665         * device/lib/_strncpy.c,
13666         * device/lib/_strncmp.c: changed to use size_t instead of int
13667         * device/lib/_memmove.c: new file (fixed bug #772294)
13668         * device/lib/Makefile.in: added _memmove.c
13669         * device/lib/z80/asm_strings.s: fixed bug #772290
13670         * support/regression/tests/bitfields.c: attempt to fix host assertion
13671         failure on amd64-unknown-linux2.2
13672
13673 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13674
13675         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
13676         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
13677         * as/z80/asmain.c (main): fixed bug #801766
13678
13679 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
13680
13681         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
13682         compilers
13683
13684 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13685
13686         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
13687         reported in bug #800609
13688
13689 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
13690
13691         * Top header beautifications in src/pic16 directory:
13692           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
13693           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
13694           pcoderegs.h, ralloc.c, ralloc.h
13695         * main.c: added top header and GPL license notice
13696         * pcode.c: fixed the if-conditional warning
13697
13698 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
13699
13700         * device/lib/_mullong.c: replaced int by short for gcc
13701
13702 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13703
13704         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
13705         and JUMPTABLE iCodes properly now (worked by accident before)
13706         * src/mcs51/gen.c (leftRightUseAcc),
13707         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
13708         iCode properly now. Use getSize instead of nRegs since a & b
13709         aren't part of the nRegs tally.
13710
13711 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
13712
13713         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
13714         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
13715           before instructions that use the _STATUS register
13716
13717 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
13718
13719         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
13720         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
13721         fetching of the pointer
13722         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
13723         copied from genNearPointerSet()
13724         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
13725         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
13726         If they pop r0/r1 they must be called in the opposite order than aopOp().
13727         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
13728         (resp. --stack-auto), prepared for --xstack
13729
13730 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13731
13732         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
13733
13734 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
13735
13736         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
13737         these ports have their own __sdcc_external_start()
13738
13739 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
13740
13741         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13742         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
13743         type for bits was changed. It resulted in bit variables becoming
13744         global, which is not permitted in PIC 14 assembly output.
13745
13746 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13747
13748         * doc/sdccman.lyx: various additions and updates. Rearranged sections
13749
13750 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13751
13752         Z80 and MCS51 linkers complaint if a public symbol is defined
13753         in more than one library module:
13754
13755         * as/mcs51/lklib.c
13756         * link/z80/lklib.c
13757         * as/mcs51/Makefile.in
13758
13759 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13760
13761         A few small changes that speed up the peephole optimizer.
13762
13763         * src/SDCCpeeph.c
13764
13765 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13766
13767         Try to make the peephole optimizer smarter by maintaining
13768         an association between the assembly source code and the
13769         iCodes that originated them. Put this information to use
13770         with a new peephole rule condition "notVolatile" so that
13771         the rules can be aggressive yet still safe.
13772
13773         * src/SDCCpeeph.c
13774         * src/SDCCpeeph.h
13775         * src/mcs51/gen.c
13776         * src/mcs51/peeph.def
13777
13778 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13779
13780         Fixed bug #741761
13781
13782         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
13783         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
13784         if the left or right operand symbols have the accuse flag set.
13785
13786 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13787
13788         Changed the type of the result of the ! (NOT) operator to char;
13789         previously it returned the same type as the source. This allows
13790         us to eliminate all the genFloatNot functions (all of its target
13791         implementations were very buggy) since !float can use the same
13792         code as !long now.
13793
13794         * src/SDCCicode.c (ast2iCode): ! returns char
13795         * src/mcs51/gen.c (genNot, genNotFloat),
13796         * src/ds390/gen.c (genNot, genNotFloat),
13797         * src/z80/gen.c (genNot, genNotFloat),
13798         * src/pic/gen.c (genNot, genNotFloat),
13799         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
13800
13801 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
13802
13803         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
13804         1. Interrupt would not compile properly. Ensure PCLATH register is saved
13805            during interrupts. Ensure WSAVE is located at a shared bank address.
13806         2. Fixed page selection in some places
13807         3. Fixed BTFSS/C to where necessary use registers directly and not simply
13808            the registers name strings.
13809         4. Fixed "signed / unsigned compare" compiler warnings.
13810         5. The PIC port manages its own allocation of the general purpose
13811            registers, but makes no attempt to reuse them. As a result when
13812            compiling it soon runs out of general purpose registers. Some
13813            additional code was added to the files pcode.c and device.c to walk
13814            through the function call tree and rename the registers so that they
13815            get reused.
13816
13817         * src/pic/device.c
13818         * src/pic/gen.c
13819         * src/pic/glue.c
13820         * src/pic/pcode.c
13821         * src/pic/pcode.h
13822         * src/pic/ralloc.c
13823         * src/pic/ralloc.h
13824         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
13825         genPlus() & genMinus() when the result is the same as left or right
13826
13827 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13828
13829         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
13830
13831 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13832
13833         Made bitfield a distinct type from bit so that bitfields
13834         convert as per ANSI C and bits retain their traditional
13835         boolean style behaviour. Implemented bitfield support in
13836         the z80 port.
13837
13838         * src/SDCCsymt.h,
13839         * src/SDCCsymt.c,
13840         * src/SDCCast.c,
13841         * src/cdbFile.c,
13842         * src/mcs51/gen.c,
13843         * src/ds390/gen.c: bit v bitfield split
13844         * src/z80/gen.c: New support for bitfields
13845         * support/regression/tests/bitfields.c: reenabled z80,
13846         added more tests
13847
13848 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
13849
13850         Rules 246.x, 247.x relate to bitfields, the others speed up
13851         access to xdata mapped I/O devices.
13852
13853         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
13854
13855 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13856
13857         Cleaned up genPackBits and genUnpackBits and added two helper
13858         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
13859         for literal assignments in genPackBits (thanks to Frieder for
13860         reminding me).
13861
13862         * src/mcs51/gen.c
13863         * src/ds390/gen.c
13864
13865 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13866
13867         Fixed bug #748310 (pointer to function type mishandled when the
13868         function name is omitted). Also fixed a SIGSEGV when a function
13869         attribute (reentrant, etc) is used on a non-function or on a
13870         function but misplaced before the parameter list.
13871
13872         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
13873         bug #748310
13874         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
13875         * support/Util/SDCCerr.h,
13876         * support/Util/SDCCerr.c: Added func attr misuse error msg
13877
13878 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13879
13880         Fixed bug #787649 by anonymous
13881         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
13882         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
13883
13884 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13885
13886         Fixed numerous bitfield problems.
13887
13888         * src/SDCC.y: More bitfield related error checking
13889         * src/SDCCsymt.h,
13890         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
13891         * support/Util/SDCCerr.h,
13892         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
13893         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13894         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
13895         * support/regression/tests/bitfields.c: tests added
13896
13897 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13898
13899         Made the constant following the "interrupt" keyword optional. If
13900         omitted, the function will not automatically be given an entry
13901         in the interrupt vector table (similar to #pragma NOIV, but
13902         less syntacticly kludgy). The interrupt number is also now
13903         range checked. Also fixed a bug in the high order bit example
13904         in the manual.
13905
13906         * src/SDCC.y
13907         * src/SDCCmem.c
13908         * src/SDCCglue.c
13909         * src/SDCCsymt.h
13910         * support/Util/SDCCerr.c
13911         * support/Util/SDCCerr.h
13912         * doc/sdccman.lyx
13913
13914 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
13915
13916         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
13917         * src/SDCCicode.c (operandOperation): rewritten some ops
13918         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
13919         * src/SDCCsymt.c (computeType): literals are handled the same way as any
13920         other type
13921         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
13922         be re-activated by defining REDUCE_LITERALS)
13923         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
13924         unsigned, but are signed by default
13925         * src/SDCCval.c (constVal): rearranged
13926         * src/SDCCval.c (valMod): preliminary fix
13927         * src/SDCCval.c (valCastLiteral): use TYPE_* types
13928         * support/regression/literalop.c: added, work in progress
13929
13930 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13931
13932         Generate warnings for useless declarations like "char data;"
13933         that don't do what new users expect.
13934
13935         * src/SDCC.y
13936         * support/Util/SDCCerr.h
13937         * support/Util/SDCCerr.c
13938
13939 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
13940
13941         * src/SDCCval.c (valMult): fix overflow detection of negative int
13942
13943 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
13944
13945         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
13946
13947         Changes to support big endian targets:
13948
13949         * src/ports.h
13950         * src/SDCCglue.c
13951         * src/avr/main.c
13952         * src/ds390/main.c
13953         * src/izt/i186.c
13954         * src/mcs51/main.c
13955         * src/pic/main.c
13956         * src/pic16/main.c
13957         * src/xa51/main.c
13958         * src/z80/main.c
13959
13960 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
13961
13962         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
13963         * device/lib/time.c: fixed warning "integer overflow in expression"
13964
13965 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
13966
13967         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
13968         * src/SDCCval.c (constVal): changed default to signed; hex and octal
13969         constants are unsigned; added recognition of "u" flag for unsigned
13970         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
13971         * src/SDCCval.c (valDiv, valMod): fixed signdness
13972         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
13973         signedness of modulo, left and right shift
13974         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
13975         * support/Util/SDCCerr.h: added warning W_INT_OVL
13976         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
13977         * src/SDCCast.c (ast_print): improved output of constants
13978
13979 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
13980
13981         Fixed some warnings when building with MSVC:
13982
13983         * as/mcs51/asdata.c
13984         * as/z80/asdata.c
13985         * as/mcs51/asm.h
13986         * as/z80/asm.h
13987         * link/z80/aslink.h
13988         * link/z80/lkdata.c
13989         * link/z80/lkeval.c
13990         * link/z80/lkgb.c
13991         * link/z80/lkihx.c
13992         * link/z80/lks19.c
13993         * link/z80/lksym.c
13994         * support/cpp2/cpplib.c
13995         * src/ds390/gen.c
13996         * src/mcs51/gen.c
13997
13998 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
13999
14000         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
14001
14002 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14003
14004         * support/librarian/clean.mk: Do not remove Makefile.
14005         * support/librarian/Makefile: added.
14006
14007 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14008
14009         Added librarian to MSVC build:
14010         * all.dsp
14011         * sdcc.dsw
14012         * support/librarian/librarian.dsp
14013
14014         'configure' not needed for librarian, removed:
14015         * support/librarian/configure
14016         * support/librarian/configure.in
14017         * support/librarian/config_in.h
14018         * support/librarian/Makefile.in
14019
14020         Hopefully these ones built the librarian and the rest of sdcc properly:
14021         * Makefile
14022         * Makefile.common.in
14023
14024         Messed up 'configure', so revert to previous version:
14025         * configure
14026         * configure.in
14027
14028 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
14029
14030         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
14031         there, while the mantissa of a double is "only" 53 bits wide.
14032
14033 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14034
14035         Adding sdcclib to the build.  MSVC project coming soon.
14036         Files added/changed:
14037
14038         * support/librarian/clean.mk
14039         * support/librarian/configure
14040         * support/librarian/configure.in
14041         * support/librarian/config_in.h
14042         * support/librarian/Makefile.bcc
14043         * support/librarian/Makefile.in
14044         * support/librarian/sdcclib.c
14045         * Makefile.bcc
14046         * Makefile
14047         * Makefile.common.in
14048         * configure
14049         * configure.in
14050
14051 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14052
14053         Linker now complaints if linked modules have conflicting options, for
14054         example, one compiled using --model-large and another one compiled with
14055         --model-small.  The following files were modified:
14056
14057         * as/mcs51/asdata.c
14058         * as/mcs51/aslink.h
14059         * as/mcs51/asm.h
14060         * as/mcs51/asmain.c
14061         * as/mcs51/asout.c
14062         * as/mcs51/i51pst.c
14063         * as/mcs51/lkdata.c
14064         * as/mcs51/lklibr.c
14065         * as/mcs51/lkmain.c
14066         * as/z80/asdata.c
14067         * as/z80/asm.h
14068         * as/z80/asmain.c
14069         * as/z80/asout.c
14070         * as/z80/z80pst.c
14071         * link/z80/aslink.h
14072         * link/z80/lkdata.c
14073         * link/z80/lklibr.c
14074         * link/z80/lkmain.c
14075         * src/SDCCglue.c
14076
14077 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14078
14079         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
14080         as/mcs51/lklibr.c: Generate a warning when a library is not found.
14081
14082 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
14083
14084         * src/z80/mappings.i: fix _mul[us][int,long] entries
14085
14086 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14087
14088         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
14089
14090 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14091
14092         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
14093         * support/regression/tests/bitopcse.c: added
14094         fixed warning:
14095         * src/avr/gen.c:
14096         * src/pic/gen.c:
14097         * src/pic16/gen.c:
14098         * src/z80/gen.c:
14099         * src/xa51/gen.c:
14100
14101 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14102
14103         added support for new library format to z80, gbz80 linkers:
14104         *link/z80/aslink.h
14105         *link/z80/lklex.c
14106         *link/z80/lklib.c
14107         *link/z80/lklist.c
14108
14109 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
14110
14111         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
14112         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
14113
14114 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
14115
14116         added DUMMY_READ_VOLATILE:
14117         * src/SDCC.y:
14118         * src/avr/gen.c:
14119         * src/xa51/gen.c:
14120         * src/z80/gen.c:
14121         * src/pic/gen.c:
14122         * src/pic16/gen.c:
14123         * src/mcs51/gen.c:
14124         * src/ds390/gen.c:
14125         * src/SDCCcse.c (algebraicOpts): many improvements
14126         * src/SDCCcse.h: removed algebraicOpts()
14127         * src/SDCCicode.c (picDummyRead): added
14128
14129 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14130
14131         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
14132         "Insufficient space in data memory".
14133
14134 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14135
14136         * src/mcs51/gen.c: fixed bug #771358
14137         * src/z80/gen.c: fixed bug #759087
14138
14139 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
14140
14141         * src/pic16/glue.c: minor cleanup by Vangelis
14142
14143 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14144
14145         * device/include/regc515c.h: fixed #758477
14146         * device/lib/_gptrget.c: saving some cycles in generic pointer get
14147         * device/lib/_gptrput.c: saved a few bytes
14148         * my tab spacing is 8, yours too?)
14149         * device/lib/_ser.c: process RX bytes earlier than TX bytes
14150         * device/lib/serial.c: process RX bytes earlier than TX bytes
14151         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
14152
14153 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
14154
14155         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
14156
14157 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14158
14159     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
14160
14161 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
14162
14163         * device/lib/Makefile.in: bad fix, reverted to 1.43
14164
14165 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
14166
14167         * device/lib/Makefile.in: added missing z80 object files
14168
14169 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
14170
14171         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
14172         pic16 progress by Vangelis:
14173         * src/SDCCglobl.h:
14174         * src/SDCCmain.c:
14175         * src/pic/Makefile:
14176         * src/pic:
14177         * pic/Makefile:
14178         * pic16/device.c:
14179         * pic16/device.h:
14180         * pic16/gen.c:
14181         * pic16/gen.h:
14182         * pic16/genarith.c:
14183         * pic16/glue.c:
14184         * pic16/main.c:
14185         * pic16/pcode.c:
14186         * pic16/pcode.h:
14187         * pic16/pcodepeep.c:
14188         * pic16/peeph.def:
14189
14190 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14191
14192     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
14193
14194 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14195
14196     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
14197     added gbz80 build to MSVC project.
14198     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
14199     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
14200     from 8051 stuff and setup so it links using a .lnk file.
14201
14202 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14203
14204     * support/librarian/sdcclib.c: sdcc librarian.
14205     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
14206     with sdcclib.
14207
14208 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14209
14210     * as/mcs51/lkmain.c: properly handle extensions in function afile.
14211
14212 2003-07-02  Borut Razem <borut.razem AT siol.net>
14213
14214         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
14215         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
14216         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
14217         src/xa51/main.c, src/z80/main.c:
14218         virtualization of glue() function: each port has it's own glue function,
14219         which is accessed by do_glue function pointer in PORT.general structure
14220
14221 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
14222
14223         * DS800C400 fun, improved ROM interface and tinibios.
14224
14225 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
14226
14227         * More support for DS80C400. Now includes beginning of interface to ROM.
14228
14229 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
14230
14231         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
14232
14233 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14234
14235         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
14236
14237 2003-06-19  Borut Razem <borut.razem AT siol.net>
14238
14239         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
14240
14241 2003-06-19  Borut Razem <borut.razem AT siol.net>
14242
14243         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
14244         fixed Z80 port - crt0.o: cannot open.
14245
14246 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
14247
14248         * support/Util/MySystem.c (merge_command): revert bad fix
14249
14250 2003-06-18  Borut Razem <borut.razem AT siol.net>
14251
14252         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
14253
14254 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14255
14256         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14257         option --use-stdout sends errors to stdout instead of stderr.
14258
14259 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
14260
14261         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
14262
14263 2003-06-15  Borut Razem <borut.razem AT siol.net>
14264
14265         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
14266         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
14267         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
14268         fixed width array of pointers replaced with sets;
14269         multiple include and lib paths ared transferred to preprocessor and linker
14270         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
14271         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
14272         fixed width array of pointers
14273         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
14274         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
14275         fixupPath(), getPathDifference()
14276         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
14277         fixed width array of pointers
14278
14279 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
14280
14281         * src/pic16/ralloc.c: fix warnings
14282         * src/pic16/pcode.c: fix warning
14283
14284 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
14285
14286          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
14287         know all the details, but essentially this set of changes enable
14288         the pic16 port to generate movff instructions and generate assembler
14289         directives,
14290         * src/SDCCmain.c:
14291         * src/pic16/gen.c:
14292         * src/pic16/glue.c:
14293         * src/pic16/pcode.c:
14294         * src/pic16/device.c:
14295         * src/pic16/main.c:
14296         * src/pic16/pcode.h:
14297         * src/pic16/pcoderegs.c:
14298         * src/pic16/ralloc.c:
14299         * src/pic16/ralloc.h:
14300
14301 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14302
14303         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
14304         added option --vc, so sdcc errors and warnings are compatible with
14305         Microsoft Visual Studio.
14306
14307 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14308
14309         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
14310           device/lib/libfloat.lib: added atof function.
14311
14312 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
14313
14314         * doc/sdccman.lyx: updated to Lyx 1.3
14315         * doc/cdbfileformat.lyx: updated to Lyx 1.3
14316         * doc/test_suite_spec.lyx: updated to Lyx 1.3
14317         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
14318
14319 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
14320
14321         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
14322
14323 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14324
14325         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
14326           additions to the "related tools/documentation" section
14327
14328 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
14329
14330         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
14331
14332 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
14333
14334         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
14335         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
14336
14337 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
14338
14339         * doc/sdccman.lyx: fix double dash and other minor things
14340         * doc/Makefile: fix double dash
14341
14342 2003-05-28  Karl Bongers(patches from Martin Helmling)
14343         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
14344           condition and ignore commands.
14345
14346 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14347
14348         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
14349           is in parts still quite out of date, I did changes as far as I felt makes sense
14350           for a non-native english speaker.
14351           Please feel free to add to the manual or to correct my changes.
14352         * doc/Makefile: undid touching the date of intermediate tex files.
14353
14354 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14355
14356         * doc/sdccman.lyx: Manual has an index now
14357
14358 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
14359
14360         Finalize muluint/mulsint and mululong/mulslong merging:
14361         * device/lib/_mulint.c
14362         * device/lib/_mullong.c
14363         * device/lib/gbz80/mul.s
14364         * device/lib/gbz80/stubs.s
14365         * device/lib/z80/mul.s
14366         * device/lib/z80/stubs.s
14367         * src/SDCCsymt.c (initCSupport)
14368
14369 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14370
14371         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
14372         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
14373           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
14374           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
14375           instead of /Zm500.
14376
14377 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14378
14379         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
14380           the regression tests I'm not brave enough to enable 245.b, 245.c
14381         * doc/sdccman.lyx: added latex preamble for hyperref package.
14382           Using pdflatex this will give you a hyperlinked pdf file with
14383           bookmarks. (prepend '%' before /usepackage if this breaks something)
14384
14385 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14386
14387          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
14388
14389 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
14390
14391         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
14392
14393 2003-05-21    <johan AT balder>
14394
14395         * src/SDCCglue.c (printIval): fixed bug #739934
14396
14397 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14398
14399         Applied patch from bug 737905 (renamed yylineo to mylineno):
14400         * src/altlex.c
14401         * src/SDCCast.c
14402         * src/SDCglobl.h
14403         * src/SDCC.lex
14404         * src/SDCCsymt.c
14405         * src/SDCCval.c
14406         * src/pic16/pcode.c: Cleaned warnings
14407         * src/pic16/pcodeflow.c: Cleaned warnings
14408         * src/pic16/pcoderegs.c: Cleaned warnings
14409
14410 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
14411
14412         * src/pic16/pcode.c: Cleaned warnings
14413         * src/pic16/pcodepeep.c: Cleaned warnings
14414         * src/pic16/ralloc.c: Cleaned warnings
14415
14416 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
14417
14418         * doc/sdccman.lyx: fixed bug 739745
14419         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
14420
14421 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
14422
14423         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
14424         it can be defined with CFLAGS when running configure
14425         * src/SDCCmain.c: fixed compiling + linking with object files
14426
14427 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
14428
14429         * configure.in: configure for pic16 port,
14430             added --disable-pic16-port
14431         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
14432         * src/SDCCmain.c: linkOptions is changed to set *,
14433             added if/endif conditional macros to remove options help
14434             messages from optionsTable when a port is not configured, added
14435             support for the PIc16 port in the ports table, when executing
14436             the compiler with no port specified on command line, a default
14437             port is selected with the new macro DEFAULT_PORT which is
14438             defined in port.h, in setDefaultOptions() linkOptions is removed
14439             from initialization assignment, since now it is a set,
14440             parseCmdLine uses setParseWithComma for linkOptions, in
14441             linkEdit() linkOptions are accessed with new function indexSet()
14442             which returns the i'th item of a set variable. See SDCCset.c, in
14443             linkEdit() when calling buildCmdLine(), added linkOptions as
14444             last argument. Now users can pass arguments to gplink via the
14445             -Wl option, main() uses pic16glue() to glue up pic16 programs
14446         * src/SDCCpeeph.c: various changes to support pic16
14447         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
14448             return the i'th item of the set
14449         * src/SDCCset.h: added function prototype for indexSet()
14450         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
14451         * src/clean.mk: added pic16 in CLEANALLPORTS variable
14452         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
14453             added macro DEFAULT_PORT
14454         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
14455         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
14456             generated
14457         * src/pic16/glue.c: commented out some error producing lines
14458         * src/pic16/main.c: __config directives are commented out to stop
14459             gpasm complaining and test the linkage with gplink, _linkCmd and
14460             _asmCmd changed to be more gplink and gpasm friendly
14461         * src/pic16/peeph.def: peep rule 3 is commented out, since it
14462             produced an error when parsed, peep rule 12 is added to utilize
14463             movff, but it is commented out since the pCode does not support
14464             yet a command with 2 address arguments
14465
14466 2003-05-18    <johan AT balder>
14467
14468         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14469         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
14470 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
14471
14472         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
14473   Added feature to script commands from file.
14474
14475 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
14476
14477         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
14478         * src/SDCCutil.c: include ctype.h for win32
14479
14480 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
14481
14482         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
14483
14484 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
14485
14486         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
14487   Fixed so you can set breakpoints prior to run, run does not stop
14488   on entry now.  Add tbreak.  Other enhancements and fixes for use
14489   with ddd.
14490
14491 2003-05-12  Borut Razem <borut.razem AT siol.net>
14492
14493         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
14494
14495 2003-05-11  Borut Razem <borut.razem AT siol.net>
14496
14497         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
14498         the path of bin directory, so that PATH is the only env. variable, which has to be set
14499         in case of standard installation.
14500         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
14501         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
14502         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
14503
14504 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14505
14506         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
14507         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
14508         temp files are in the port dir; clean the gen/test directory when
14509         generating new test.c
14510         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
14511         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
14512         * support/regression/tests/zeropad.c: added
14513
14514 2003-05-09    <johan AT balder>
14515
14516         * src/SDCCglue.c: fixed bug #597940
14517
14518 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
14519
14520         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14521   cache sfr, optimize next,step, fix off by one sourceline,
14522   support ddd list function.
14523         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
14524
14525 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
14526
14527         * support/regression/HTMLgen.py: added compare_s2f()
14528         * support/regression/Makefile: redo 1.27
14529         * support/regression/generate-cases.py: redo 1.5
14530
14531 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
14532
14533         * support/regression/tests/float.c: workaround 33 bit hex constant
14534         * support/regression/tests/simplefloat.c: fix division for host
14535
14536 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
14537
14538         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
14539         that tame's the PIC's over-aggressive optimizer.
14540
14541 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14542
14543          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
14544          support for MSVC.
14545
14546 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
14547
14548         Initial support for DS80C400. "Hello world" runs on TINIm400
14549         (with polled I/O).
14550
14551 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
14552
14553          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
14554          * Some notes on ddd usage added in debugger/README
14555          Martin Helmling adding more features and fixes for ddd GUI debugger.
14556          Code added for nexti, stepi, up, down, and other adjustments.
14557
14558 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
14559
14560         * src/pic/pCodepeep.c non-wildcard asmops are now handled
14561         * src/pic/peeph.def Added two rules to optimize carry manipulation
14562         * src/pic/* removed debug printfs
14563
14564 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
14565
14566         * debugger/mcs51/cmd.c: added header newalloc.h
14567
14568 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
14569
14570         * as/Makefile: new EXEEXT
14571         * as/z80/Makefile: remove trailing slash of BUILDIR
14572         * as/z80/clean.mk: new EXEEXT
14573         * Makefile.common.in: add to CFLAGS (and others), don't replace it
14574         * support/cpp2/Makefile.in: new EXEEXT
14575         * src/pic/glue.c (pic14emitRegularMap): fixed warning
14576
14577 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
14578
14579         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
14580         EXEEXT was introduced to fix all related problems with targets
14581         "clean", "install" and "uninstall"; a couple of further flaws
14582         especially with "clean" have been fixed too
14583         * as/mcs51/Makefile.in
14584         * as/mcs51/clean.mk
14585         * as/z80/Makefile
14586         * Makefile
14587         * clean.mk
14588         * debugger/mcs51/Makefile.in
14589         * debugger/mcs51/clean.mk
14590         * link/z80/Makefile
14591         * link/z80/Makefile.in
14592         * link/z80/clean.mk
14593         * link/Makefile
14594         * packihx/Makefile.in
14595         * packihx/clean.mk
14596         * sim/ucsim/Makefile
14597         * sim/ucsim/clean.mk
14598         * sim/ucsim/avr.src/Makefile.in
14599         * sim/ucsim/avr.src/clean.mk
14600         * sim/ucsim/s51.src/Makefile.in
14601         * sim/ucsim/s51.src/clean.mk
14602         * sim/ucsim/xa.src/Makefile.in
14603         * sim/ucsim/xa.src/clean.mk
14604         * sim/ucsim/z80.src/Makefile.in
14605         * sim/ucsim/z80.src/clean.mk
14606         * sim/ucsim/main_in.mk
14607         * sim/ucsim/packages_in.mk
14608         * sim/ucsim/gui.src/Makefile.in
14609         * sim/ucsim/gui.src/serio.src/Makefile.in
14610         * sim/ucsim/gui.src/serio.src/clean.mk
14611         * src/Makefile.in
14612         * src/clean.mk
14613         * support/cpp2/Makefile.in
14614         * support/cpp2/clean.mk
14615         * support/makebin/Makefile
14616         * support/makebin/clean.mk
14617         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
14618         * doc/sdccman.lyx: --program-suffix no longer needed
14619
14620 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
14621
14622          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
14623          Martin Helmling added support for ddd GUI debugger.
14624          Code added to display assembly, set variables, and other commands
14625          to interface to ddd.
14626
14627 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
14628
14629         * as/Makefile: fix target clean
14630         * as/clean.mk: fix target clean
14631         * as/z80/clean.mk: fix target clean
14632
14633 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
14634
14635         * Makefile.common.in: added  AT EXEEXT AT
14636         * configure.in: removed all mingw32 stuff
14637         * configure: rebuilt from configure.in
14638         * doc/sdccman.lyx: updated section "installation"
14639         * support/scripts/sdcc_mingw32: adapted to configure
14640         * support/scripts/sdcc_cygwin_mingw32: added
14641
14642 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
14643
14644         * src/pic Added object file support for the PIC port
14645         * src/pic Applied patch from Craig Franklin (this started the object file support)
14646         * src/regression Updated the PIC regression tests for object files
14647
14648 2003-04-20  Borut Razem <borut.razem AT siol.net>
14649
14650         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
14651           lklex.c: In function `getfid':
14652           lklex.c:203: warning: array subscript has type `char'
14653         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
14654           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
14655         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
14656           stack handling macros
14657
14658 2003-04-19  Borut Razem <borut.razem AT siol.net>
14659
14660         * "handling space characters in file path" task:
14661         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
14662         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
14663         * support/Util/MySystem.h: make it self-sufficient
14664         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
14665           src/z80/main.c, sdcc/as/mcs51/lklex.c:
14666           handling space characters in file path
14667         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
14668           (it will be used by assemblers, which have their own includes, e.g. gpasm)
14669         * support/Util/MySystem.c: handling space characters in executable's path
14670
14671 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
14672
14673         * as/z80/Makefile: fix permanent rebuild of z80
14674         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
14675         * support/regression/tests/bitfields.c: added Johan's bitfields.c
14676
14677 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
14678
14679         * src/SDCCopt.c: add special case optimization to replace modulo by
14680           a power of two with a bitwise AND.
14681
14682 2003-04-18    <johan AT balder>
14683
14684         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
14685
14686 2003-04-17    <johan AT balder>
14687
14688         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
14689         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
14690
14691 2003-04-13  Borut Razem <borut.razem AT siol.net>
14692
14693         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
14694         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
14695           fixed mingw problem in adl_NORMALIZE_PATH
14696
14697 2003-04-12  Borut Razem <borut.razem AT siol.net>
14698
14699         * fixed "#pragma SAVE/RESTORE can not be nested":
14700         * src/SDCC.lex: reworked pragma handling functions
14701         * sdcc/src/SDCCglobl.h: reworked stack handling macros
14702         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
14703
14704 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14705
14706         * src/SDCCutil.c (pathEquivalent): defined but not used
14707         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
14708         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
14709         * configure: rebuilt from configure.in
14710         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14711         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
14712         * device/include/Makefile.in: replace sdcc_datadir
14713         * device/lib/Makefile.in: replace sdcc_datadir
14714         * Makefile.common.in: add LDFLAGS from configure
14715         * packihx/Makefile.in: use LDFLAGS
14716         * src/Makefile.in: use LDFLAGS
14717         * support/cpp2/Makefile.in: add LDFLAGS from configure
14718         * support/makebin/Makefile: use LDFLAGS
14719         * .version: bumped version number to 2.3.5
14720
14721 2003-04-12  Borut Razem <borut.razem AT siol.net>
14722
14723         * completed "different paths" task:
14724         * src/SDCCmacro.c: fixed bug in handling quotes
14725         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
14726         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
14727
14728 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
14729
14730         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
14731
14732 2003-04-11 kevin Vigor <kevin AT vigor.nu>
14733
14734         * ds390/gen.c ds390/peeph.def: fix bug 706781
14735
14736 2003-04-11  Borut Razem <borut.razem AT siol.net>
14737
14738         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
14739
14740 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
14741
14742         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
14743         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
14744          set - this bit used to not be set...).
14745         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
14746           bad code in PIC Port
14747         * src/regression/and2.c added to test bug 609268
14748         * src/regression/Makefile added and2.c to regression test
14749
14750
14751 2003-04-08    <johan AT CP255758-A>
14752
14753         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
14754         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
14755         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
14756
14757 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
14758
14759         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
14760         fix bug #487815
14761         * support/cpp2/Makefile.in: fix bug #487815
14762         * configure: rebuilt from configure.in
14763         * Makefile.common.in: docdir changed, new path suffixes
14764         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14765         * sdcc_vc_in.h: reflect changes from sdccconf.h
14766         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
14767         * src/SDCCutil.h: remove BINDIR hack
14768         * doc/sdccman.lyx: update new path hierarchy
14769
14770 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14771
14772         * src/SDCCpeeph.c: added okToRemoveSLOC test
14773
14774 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14775
14776         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
14777
14778 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
14779
14780         * src/SDCCpeeph.c: added labelIsReturnOnly test
14781         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
14782
14783 2003-04-05    <johan AT balder>
14784
14785         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
14786         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
14787         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
14788         * src/SDCCast.c: fixed a warning
14789         * src/SDCCast.h: fixed a warning
14790         * src/SDCCicode.c (operandFromAst): fixed a warning
14791
14792 2003-04-04    <johan AT balder>
14793
14794         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
14795         * src/SDCCast.c (decorateType): fixed bug #715076
14796         * src/SDCC.y: fixed bug #702907
14797
14798 2003-04-03    <johan AT balder>
14799
14800         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
14801         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
14802         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
14803         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
14804         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
14805
14806 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
14807
14808         * _decdptr.c: fix return values
14809         * _gptrget.c: fix return values
14810         * _gptrgetc.c: fix return values
14811         * _gptrput.c: fix return values
14812         * _mulint.c: fix return values
14813         * as/z80/Makefile: fix 'make -j' problem
14814
14815 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
14816
14817         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
14818         * configure.in: big cleanup, updated to autoconf 2.5x
14819         * configure: rebuilt from configure.in
14820         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
14821         * sdcc_vc_in.h: reflect changes from sdccconf.h
14822         * doc/Makefile: fixed a flaw in "make install"
14823
14824 2003-04-02    <johan AT balder>
14825
14826         * src/ds390/gen.c (genCmp): no comments
14827         * src/mcs51/gen.c (genCmp): no comments
14828         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
14829         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
14830
14831 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
14832
14833         * support/regression/generate-cases.py: place generated file in given sub directory
14834         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
14835         * support/regression/Makefile: improvements for 'make -j';
14836         side effect: it's simpler and faster now
14837
14838 2003-03-31  Borut Razem <borut.razem AT siol.net>
14839
14840         * src/z80/main.c: link-{port} and as-{port} defined without path
14841         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
14842
14843 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
14844
14845         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
14846
14847 2003-03-30  Borut Razem <borut.razem AT siol.net>
14848
14849         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
14850           changed type of list parameter to set
14851         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
14852         * src/port.h: changed type of do_assemble() parameter to set
14853         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
14854           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
14855           definition of "cppoutfilename" macro with NULL value in preProcess()
14856         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
14857         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
14858         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
14859           replaced with set *binPathSet
14860         * shash_add() deallocates the item, if allready exsists, before adding the new one
14861         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
14862
14863 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
14864
14865         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
14866           a nested for loop bug in the PIC port
14867         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
14868           for loops
14869
14870 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
14871
14872         * support/Util/dbuf.h: remove C++ stuff to make it portable
14873
14874 2003-03-28  Borut Razem <borut.razem AT siol.net>
14875
14876         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
14877           literal strings in stringLiteral()
14878         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
14879         * src/Makefile.bcc, src/Makefile.in, src/src.dsp: added support/Util/dbuf.c
14880           to the project
14881
14882 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
14883
14884         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
14885
14886 2003-03-26    <johan AT balder>
14887
14888         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
14889         * src/ds390/gen.c (saveRegisters): catched symbol abuse
14890         * src/SDCCast.c (decorateType): fixed " -v < 3"
14891
14892 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
14893
14894         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
14895         Added Lenny Story's debug infrastructure changes:
14896         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
14897         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
14898         * src/cdbFile.c: added
14899         * src/SDCCdebug.c: added
14900         * src/SDCCdebug.h: added
14901         * src/SDCCast.c (createFunction)
14902         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
14903         * src/SDCCmain.c (parseCmdLine, main)
14904         * src/SDCCmem.c (redoStackOffsets)
14905         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
14906         * src/SDCCsymt.h
14907         * src/common.h
14908         * src/avr/gen.c (genAVRCode)
14909         * src/ds390/gen.c (gen390Code)
14910         * src/mcs51/gen.c (gen51Code)
14911         * src/pic/gen.c (genpic14Code)
14912         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
14913         * src/xa51/gen.c (genXA51Code)
14914         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
14915
14916 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
14917
14918         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
14919         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
14920
14921 2003-03-22    <johan AT balder>
14922
14923         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
14924
14925 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
14926
14927         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
14928         * doc/cdbfileformat.lyx: added, written by Lenny Story
14929         * doc/Makefile: added cdbfileformat.lyx
14930         * doc/clean.mk: added cdbfileformat.lyx
14931
14932 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
14933
14934         * src/mcs51/peeph.def: fix bug #705773
14935
14936 2003-03-20    <johan AT balder>
14937
14938         An sfr/sbit can have an "at #" AND an initializer
14939         * src/SDCCsymt.c (checkSClass):
14940         * src/SDCCmem.c (allocGlobal):
14941         * src/SDCCmem.c (allocLocal):
14942         * src/SDCCast.c (createBlock):
14943
14944 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
14945
14946         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
14947
14948 2003-03-16    <johan AT balder>
14949
14950         Undid the hackup of const and volatile, the problem is much bigger
14951         * src/SDCC.y:1.65
14952         * src/SDCCast.c:1.171
14953         * src/SDCCglue.c:1.138
14954         * src/SDCCicode.c:1.146
14955         * src/SDCCsymt.c:1.150
14956         * src/SDCCval.c:1.65
14957
14958 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
14959
14960         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
14961         * src/ds390/gen.c (genAddrOf): fixed bug #704087
14962
14963 2003-03-13    <johan AT balder>
14964
14965         Hackup const and volatile modifiers in type chains a bit:
14966         * src/SDCC.y:1.63
14967         * src/SDCCast.c:1.169
14968         * src/SDCCglue.c:1.136
14969         * src/SDCCicode.c:1.143
14970         * src/SDCCsymt.c1.146
14971         * src/SDCCsymt.h1.59
14972         * src/SDCCval.c:1.63
14973
14974 2003-03-12    <johan AT balder>
14975
14976         * src/SDCCBBlock.h: more LRH debugging junk
14977         * src/SDCCcflow.h: more LRH debugging junk
14978         * src/SDCCloop.c: more LRH debugging junk
14979         * src/SDCC.y (struct_declaration): fixed bug #697590
14980         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
14981         * src/ds390/gen.c (aopForRemat): fixed bug #700031
14982         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
14983
14984 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14985         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
14986         test function names must now match exactly).
14987         * src/SDCCcse.c: added special case in findCheaperOp to allow
14988         extending a short integer. Makes less awful code for bug 700121 test case.
14989
14990 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
14991
14992         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
14993         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
14994
14995 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
14996
14997         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
14998         actually called (operandsNotEqual() was called for all
14999         operandsNotEqualX tests).
15000
15001 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
15002
15003         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
15004         with shorter literals. Fixes bug 700121.
15005
15006 2003-03-11    <johan AT balder>
15007
15008         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
15009
15010 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
15011
15012         * src/SDCCloop.c (mergeRegions): an evil beast is dead
15013         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
15014
15015 2003-03-10  Borut Razem <borut.razem AT siol.net>
15016
15017         * src/SDCCmain.c: pipe preprocessor's output
15018         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15019         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15020         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15021         which closes all pipes in pipeSet set
15022         * src/SDCCset.c: free deleted item in function deleteSetItem()
15023         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15024         moved from z80 to src subproject
15025         * .version: increased version number to 2.3.4
15026
15027 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
15028
15029         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
15030         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
15031         * support/regression/ports/xa51/spec.mk: fix typo
15032
15033 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
15034
15035         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
15036
15037 2003-03-09  Borut Razem <borut.razem AT siol.net>
15038
15039         * src/SDCCmain.c: pipe preprocessor's output
15040         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
15041         * sdcc_vc_in.h: define pclose as _pclose for WIN32
15042         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
15043         which closes all pipes in pipeSet set
15044         * src/SDCCset.c: free deleted item in function deleteSetItem()
15045         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
15046         moved from z80 to src subproject
15047
15048 2003-03-09  Borut Razem <borut.razem AT siol.net>
15049
15050         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
15051         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
15052         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
15053         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
15054         * src/SDCCglobl.h: unification of WIN32 native definitions
15055
15056 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15057
15058         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
15059
15060 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15061
15062         * src/configure.in:   check for endianess (even while cross-compiling)
15063         * src/configure:      check for endianess (even while cross-compiling)
15064         * src/configure_in.h: check for endianess (even while cross-compiling)
15065         * src/avr/gen.c:        remove old endianess stuff
15066         * src/mcs51/gen.c:      remove old endianess stuff
15067         * src/ds390/gen.c:      remove old endianess stuff
15068         * src/pic/gen.c:        remove old endianess stuff
15069         * src/pic/genarith.c:   remove old endianess stuff
15070         * src/pic/glue.c:       fix endianess check
15071         * src/pic16/gen.c:      remove old endianess stuff
15072         * src/pic16/genarith.c: remove old endianess stuff
15073         * src/pic16/glue.c:     fix endianess check
15074         * src/xa51/gen.c:       remove old endianess stuff
15075         * src/z80/gen.c:        fix endianess check
15076         * src/SDCCglue.c:       fix endianess check
15077         * src/ds390/peeph.def: fix bug 700036
15078
15079 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
15080
15081         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
15082         * src/configure: find appropriate data-types on host for SDCC's int and long
15083         * src/configure.in: find appropriate data-types on host for SDCC's int and long
15084         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
15085         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
15086
15087 2003-03-07    <johan AT balder>
15088
15089         Just a big NOOP:
15090                 some minor cleanups before the big shot
15091                 OP_DEFS and OP_USES now use Kevin's protection
15092                 new option --nolabelopt
15093
15094         * src/SDCCBBlock.c:
15095         * src/SDCCast.c,:
15096         * src/SDCCcflow.c:
15097         * src/SDCCcse.c:
15098         * src/SDCCicode.c:
15099         * src/SDCCicode.h:
15100         * src/SDCClabel.c:
15101         * src/SDCCloop.c:
15102         * src/SDCCmain.c:
15103         * src/ds390/ralloc.c:
15104         * src/mcs51/ralloc.c:
15105         * src/pic/ralloc.c:
15106         * src/xa51/ralloc.c:
15107         * src/z80/ralloc.c:
15108
15109 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
15110
15111         * src/pic/pcode.c (get_op): fix 64 bit warnings
15112         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
15113         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
15114         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
15115         * support/regression/tests/malloc.c: fix 64 bit warnings
15116
15117 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
15118
15119         * src/mcs51/gen.c (genMinus): fixed bug 696436
15120
15121 2003-03-02  Borut Razem <borut.razem AT siol.net>
15122
15123         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
15124
15125 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
15126
15127         * configure.in: test for mkstemp
15128         * sdccconf_in.h: add HAVE_MKSTEMP
15129
15130 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
15131
15132         * device/include/ctype.h: removed warning while using --stack-auto
15133         * device/include/malloc.h: removed warning while using --stack-auto
15134         * device/include/string.h: removed warning while using --stack-auto
15135
15136 2003-02-23  Borut Razem <borut.razem AT siol.net>
15137
15138         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
15139         because NDEBUG is defined (see man assert)
15140         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
15141
15142 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15143
15144         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
15145         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
15146
15147 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
15148
15149         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
15150         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
15151
15152 2003-02-18    <johan AT balder>
15153
15154         * as/mcs51/asmain.c (asmbl): module can start with a digit
15155         * as/z80/asmain.c (asmbl): module can start with a digit
15156
15157 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
15158
15159         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
15160         * src/asm.c: fix pipe() for Mingw32
15161
15162 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
15163
15164         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
15165         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
15166         make -V work again; --c1mode reads now from stdin
15167         * doc/sdccman.lyx: added --c1mode
15168         * support/Util/SDCCerr.c: new messages for c1 mode
15169         * support/Util/SDCCerr.h: new messages for c1 mode
15170         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
15171
15172 2003-02-15    <johan AT balder>
15173
15174         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
15175
15176 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
15177
15178         * doc/sdccman.lyx: Environment variables, -o and other minor things
15179
15180 2003-02-14    <johan AT balder>
15181
15182         * src/xa51/main.c: before anyone really tries to use it :)
15183
15184         * Install doc's in share/sdcc/doc
15185         * removed some obsolete files
15186         * Do a proper make distclean and uninstall
15187         M Makefile.common.in
15188         R sdccbuild.sh
15189         M as/Makefile
15190         M device/include/Makefile.in
15191         M device/lib/Makefile.in
15192         M doc/sdccman.lyx
15193         M link/Makefile
15194         M sim/ucsim/doc/Makefile.in
15195         M src/clean.mk
15196         R src/avr/peeph.rul
15197         R src/xa51/peeph.rul
15198         M support/cpp2/Makefile.in
15199         M support/makebin/Makefile
15200
15201
15202 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
15203
15204         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
15205
15206 2003-02-10  Borut Razem <borut.razem AT siol.net>
15207
15208         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
15209         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
15210         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
15211         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
15212         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
15213         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
15214         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
15215         src/z80/Makefile.bcc: Borland Makefile cleanup
15216         * as/z80/Makefile.bcc: Added Borland Makefile
15217         * support/cpp2/borland.h: Removed
15218
15219 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
15220
15221         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
15222         * src/SDCC.lex: new pragma NOIV
15223         * src/SDCCglobl.h: new pragma NOIV
15224         * src/SDCCmem.c: new pragma NOIV
15225
15226 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15227
15228         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
15229
15230 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
15231
15232         * src/SDCCmain.c: signal handling is switched off by --debug
15233         * doc/Makefile: small fix for install; use clean.mk again
15234         * doc/clean.mk: clean *.pdf and *.html too
15235
15236 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
15237
15238         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
15239         * device/lib/printfl.c: fix a ds390 bug by making it portable
15240         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
15241         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
15242         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
15243         * debugger/mcs51/cmd.c: converted multi-line string literals
15244         * sim/ucsim/globals.cc: converted multi-line string literals
15245         * src/SDCCmain.c: introduced signal handler to remove temp files
15246         * doc/Makefile: small tweaks, implement clean
15247         * doc: removed generated files
15248
15249 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15250
15251         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
15252         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
15253         Address Record is not correctly generated for DS390."
15254
15255 2003-02-02  Borut Razem <borut.razem AT siol.net>
15256
15257         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
15258         * as/mcs51/asm.h: fixed compilation with Borland C
15259         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
15260         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
15261         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
15262         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
15263         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
15264         src/z80/Makefile.bcc: delete $(LIB) only if exist
15265         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
15266
15267 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
15268
15269         * device/include/malloc.h: introduced NULL
15270         * device/include/string.h: introduced NULL
15271         * device/include/stdlib.h: introduced NULL
15272         * device/lib/_memcpy.c: removed NULL
15273         * device/lib/_strcat.c: removed NULL
15274         * device/lib/_strchr.c: removed NULL
15275         * device/lib/_strcmp.c: removed NULL
15276         * device/lib/_strcpy.c: removed NULL
15277         * device/lib/_strcspn.c: removed NULL
15278         * device/lib/_strlen.c: removed NULL
15279         * device/lib/_strncat.c: removed NULL
15280         * device/lib/_strncmp.c: removed NULL
15281         * device/lib/_strncpy.c: removed NULL
15282         * device/lib/_strpbrk.c: removed NULL
15283         * device/lib/_strrchr.c: removed NULL
15284         * device/lib/_strspn.c: removed NULL
15285         * device/lib/_strstr.c: removed NULL
15286         * device/lib/_strtok.c: removed NULL
15287         * device/lib/malloc.c: removed NULL, include own header
15288
15289 2003-02-02    <johan AT balder>
15290
15291         * 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
15292         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
15293         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
15294         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
15295         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
15296         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
15297
15298 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15299
15300         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
15301         area 'DATA'"
15302
15303 2003-02-01    <johan AT balder>
15304
15305         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
15306
15307 2003-01-31    <johan AT CP255758-A>
15308
15309         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
15310
15311 2003-01-30    <johan AT balder>
15312
15313         * src/SDCCBBlock.c: automatic bug detection
15314         * src/SDCCicode.c: automatic bug detection
15315
15316 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15317
15318         * src/SDCCglobl.h:   now --xram-size 0 works
15319         * src/SDCCmain.c:    now --xram-size 0 works
15320
15321 2003-01-29    <johan AT balder>
15322
15323         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
15324
15325 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15326
15327         * as/mcs51/aslink.h: Added options --xram-size and --code-size
15328         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
15329         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
15330         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
15331         * src/SDCCglobl.h:   Added options --xram-size and --code-size
15332         * src/SDCCmain.c:    Added options --xram-size and --code-size
15333
15334 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
15335
15336         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
15337         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
15338
15339 2003-01-27    <johan AT balder>
15340
15341         * src/SDCC.y: fixed bug #613764
15342
15343 2003-01-26    <johan AT balder>
15344
15345         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
15346         * src/SDCCsymt.h: fixed bug #673374
15347         * src/SDCCglue.c: fixed bug #661910
15348         * src/SDCCast.c: fixed bug #458099 and 673374
15349
15350 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
15351
15352         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
15353         * as/mcs51/strcmpi.h: added
15354         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
15355         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
15356         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
15357         * as/mcs51/assym.c: strcmpi -> as_strcmpi
15358         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
15359         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
15360         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
15361         * as/mcs51/Makefile.aslink: new module strcmpi
15362         * as/mcs51/Makefile.asx8051: new module strcmpi
15363         * as/mcs51/Makefil.bcc: new module strcmpi
15364         * as/mcs51/Makefile.in: new module strcmpi
15365         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
15366
15367 2003-01-26    <johan AT balder>
15368
15369         * src/SDCCglue.c: reverted back to 1.124
15370         * src/SDCCast.c: reverted back to 1.156
15371         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
15372
15373 2003-01-25    <johan AT balder>
15374
15375         * src/SDCCglue.c: A better fix for bug #661910
15376         * src/SDCCast.c: A better fix for bug #661910
15377         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
15378
15379 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15380
15381         * src/Makefile.in: remove spawn.o
15382         * src/SDCCmain.c: remove spawn.h
15383         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
15384         * src/spawn.c: removed
15385         * src/spawn.h: removed
15386         * support/regression/ports/ds390/spec.mk: link with -r
15387
15388 2003-01-24    <johan AT CP255758-A>
15389
15390         * src/ds390/gen.c (aopOp): fixed bug #667458
15391         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
15392         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
15393         (createIvalCharPtr): an ival doesn't always have a storage class anymore
15394
15395 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
15396
15397         * src/mcs51/peeph.def: better assembler identation by Frieder
15398         * src/mcs51/gen.c: better assembler identation by Frieder
15399
15400 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
15401
15402         * as/z80/string.h: removed for gcc 3.2
15403         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
15404         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
15405
15406 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15407
15408         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
15409         * src/SDCCpeeph.c (replaceRule): fix bug #663503
15410         * support/regression/Makefile: separate temp files for ports
15411         * support/regression/generate-cases.py: separate temp files for ports
15412         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15413         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
15414
15415 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
15416
15417         * moved tinitalk to device/examples/ds390
15418
15419 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
15420
15421         * as/mcs51/lkmem.c: rflag is for DS390
15422         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
15423         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
15424                          (linkEdit): move mem- and map-files the same way as ihx-files
15425         * src/z80/main.c (_setDefaultOptions): removed --generic
15426         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
15427         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
15428         * src/pic/glue.c (picglue): --c1mode works again
15429         * src/pic16/glue.c (pic16glue): --c1mode works again
15430         * src/asm.c (printCLine): fix #660034
15431
15432 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
15433
15434         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
15435         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
15436         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
15437         * as/mcs51/lkmem (summary): better fix for sp problem
15438         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
15439         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
15440         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
15441                                               remove --stack-after-data
15442
15443 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
15444
15445         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
15446         * src/SDCCutil.c (join): ugly bug: missing '\0'
15447         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
15448
15449 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15450
15451         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
15452         * src/port.h: typo
15453         * src/pic/main.c (_asmCmd): gpasm supports -o
15454         * src/z80/main.c: more general macros
15455         * device/lib/Makefile.in: remove intermediate files
15456
15457 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
15458
15459         * .version: Bumped version number to 2.3.3
15460         * src/SDCCBBlock.c: new option -o
15461         * src/SDCCglobl.h: new option -o
15462         * src/SDCCglue.c: new option -o
15463         * src/SDCCmain.c: new option -o
15464         * src/asm.c: new option -o
15465         * src/ds390/main.c: new option -o
15466         * src/pic/glue.c: new option -o
15467         * src/pic/pcode.c: new option -o
15468         * src/pic/ralloc.c: new option -o
15469         * src/pic16/glue.c: new option -o
15470         * src/pic16/pcode.c: new option -o
15471         * src/pic16/ralloc.c: new option -o
15472         * src/z80/main.c: new option -o
15473         * device/lib/Makefile.in: use -o
15474         * support/regression/ports/ds390/spec.mk: use -o
15475         * support/regression/ports/gbz80/spec.mk: use -o
15476         * support/regression/ports/mcs51/spec.mk: use -o
15477         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
15478         * support/regression/ports/z80/spec.mk: use -o
15479         * support/regression/ports/ucz80/spec.mk: use -o
15480         * support/regression/ports/xa51/spec.mk: use -o
15481         * support/regression/fwk/lib/timeout.c: fix usage string
15482
15483 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
15484         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
15485
15486 2003-01-07    <johan AT balder>
15487
15488         * src/SDCCast.c (decorateType): fixed bug #600035
15489
15490 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
15491         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
15492         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
15493         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
15494         * src/pic/pcode.c: outcommented unused variable to remove warnings
15495         * src/pic/ralloc.c: outcommented unused variable to remove warnings
15496
15497 2003-01-06    <karl AT turbobit.com>
15498         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
15499    regression tests.
15500
15501 2003-01-06    <johan AT balder>
15502
15503         * src/SDCCicode.c: fixed array add
15504
15505 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
15506         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
15507         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
15508
15509 2003-01-04    <johan AT balder>
15510
15511         * src/SDCCval.c (getNelements): fixed the initialized array of structures
15512
15513 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15514         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
15515
15516 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15517         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
15518         * support/regression/tests/bug-524697.c: fit mem usage into 8032
15519
15520 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
15521         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
15522
15523 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
15524         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
15525
15526 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
15527         * src/mcs51/main.c: removed {bindir}{sep} from aslink
15528
15529 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15530
15531     * in /sdcc/as/mcs51/ changed these files in order to create an
15532     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
15533     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
15534     following files to include the previous two files: aslink.dsp,
15535     Makefile.aslink, Makefile.bcc, and Makefile.in.
15536
15537     * Changed /sdcc/src/SDCCmain.c so it creates files with extension
15538     .adb instead of .cdb
15539
15540 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15541
15542         * /sdcc/as/mcs51/lklist.c: Now reports memory usage using the
15543         value from option --iram-size.
15544
15545 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15546
15547         * /sdcc/as/mcs51/lklist.c: added boundary check before using
15548         dram[] array.
15549
15550 2002-09-18    <wiml AT hhhh.org>
15551
15552         * SDCClrange.h: exposed setFromRange() and setToRange()
15553         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
15554           packRegsForAccUse() (bug 542397)
15555         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
15556           multiple times and emitting the fetch operations more than once
15557           added aopGetUsesAcc() function to allow binary operators to
15558           fetch their operands in the correct order; made genMinus() emit
15559           compact code for X = LITERAL - Y
15560
15561 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15562         * /sdcc/as/mcs51/lklist.c: Fixed incorrect number of parameters to
15563         sprintf() in line 1267.
15564
15565 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15566         * /sdcc/src/SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
15567         like ports.
15568
15569 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
15570         Changes to aslink (All the changes are marked with 'JCF'):
15571
15572         * /sdcc/as/mcs51/aslink.h: External definition of sflag and
15573         summary().
15574
15575         * /sdcc/as/mcs51/lkarea.c: Computes the size of area BSEG_BYTES from
15576         area BSEG.  Also moves, if possible, the DATA area down into the internal
15577         ram so more space is available.
15578
15579         * /sdcc/as/mcs51/lkdata.c: Definition of memory summary output flag
15580         sflag.
15581
15582         * /sdcc/as/mcs51/lklist.c: For the BSEG area report the size in bits,
15583         not bytes.  Function summary() which creates a memory usage summary
15584         file with extension .mem.  Reports of overlaping stack and small stack
15585         size.  If the space for the stack is less than 16 bytes aslink trows a
15586         warning.
15587
15588         * /sdcc/as/mcs51/lkmain.c: Creation of some of the default areas for
15589         the 8051.  Option 'y' for memory summary output file.
15590
15591         Changes to sdcc (All the changes are marked with 'JCF'):
15592
15593         * /sdcc/src/SDCCglobl.h: External definition of RegBankUsed[4].
15594
15595         * /sdcc/src/SDCCglue.c:  If a register bank is used, creates an
15596         overlaying area for it (uses RegBankUsed[4]).
15597
15598         * /sdcc/src/SDCCmain.c: Definition RegBankUsed[4]; marks register
15599         bank zero as used by default.  By default aslink locates the stack
15600         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
15601         the creation of the .mem file.  Delegates the allocation of data area
15602         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
15603         the begining of the stack area to aslink.
15604
15605         * /sdcc/src/SDCCmem.c:  If a register bank is used, marks it so
15606         glue() in SDCCglue.c creates an area for it.
15607
15608 2002-09-03  Borut Razem <borut.razem AT siol.net>
15609         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
15610         sdcc/src/pic/glue.c:
15611         introduced atexit() handler for teporay files removal in case of
15612         errors, assertions, ...
15613
15614 2002-08-29  Borut Razem <borut.razem AT siol.net>
15615         * sdcc/support/cpp2/auto-host_vc_in.h:
15616         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
15617         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
15618         Maybe there is a similar problem with BORLANDC? It should be checked!
15619
15620         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
15621         corrected improper use of assert: the assignment to clr variable was done inside the assert.
15622         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
15623         was not executed, and the compiler (cl) launched a warning:
15624         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
15625
15626 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
15627         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
15628
15629 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
15630         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
15631
15632         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15633           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
15634           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
15635           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15636           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
15637           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
15638           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
15639         - added Release configuration in VS projects
15640         - review of compiler an linker options
15641         - VC .exe files are generated in bin_vc directory, not to interfere
15642           with binaries generated from other projects (cygwin, mingw, bcc ...)
15643
15644         * sdcc/src/yacc.dsp: added
15645
15646         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
15647         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
15648         and insert the version number definitions from .version
15649
15650         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
15651
15652         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
15653         added - genarate auto-host.h using auto-host_vc_in.h as template
15654
15655         * sdcc/sdcc_vc.h,
15656         removed from CVS, generated automatically
15657
15658 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
15659         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
15660
15661 2002-08-11  Borut Razem <borut.razem AT siol.net>
15662         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
15663
15664 2002-08-10  Borut Razem <borut.razem AT siol.net>
15665         * src/SDCCmain.c (main):
15666         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
15667         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
15668         The consequence was that some temporary files were not removed.
15669
15670         * src/SDCCglue.c:
15671         unification of code in functions tempfilename() and tempfile():
15672         function tempnam() is defined in Visual Studio 6.0 and .NET
15673
15674         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
15675
15676         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
15677           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
15678         - removed compiler command line option /WX: Treats all warnings as errors
15679         - update a list of source files, included into the project
15680
15681         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
15682           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
15683         changed project type to Generic Project so that can be correcly converted to VS.NET project
15684
15685         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
15686
15687         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
15688
15689         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
15690
15691         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
15692         added return 0 statements after assert() to make compiler happy
15693
15694         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
15695         added newline in the def file to keep MSC compiler satisfied
15696
15697         * sdcc/src/z80/gen.c:
15698         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
15699           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
15700         - solved MSC error in function aopDump()
15701
15702         * sdcc_vc.h: define PREFIX as "\\sdcc"
15703
15704 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
15705         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
15706
15707 2002-06-22  Scott Dattalo <scott AT dattalo.com>
15708         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
15709         - Rewrote the register banking algorithm.
15710         - Added pCode live-range analysis to registers (for now, only non-used and
15711         singly-used registers optimized away)
15712
15713         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
15714
15715         * 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.
15716
15717 2002-05-10  Scott Dattalo <scott AT dattalo.com>
15718         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
15719
15720 2002-04-22  Michael Hope  <michaelh AT vroom>
15721
15722         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
15723
15724         * configure.in (DD_COPT): Added include support required for gbdk.
15725
15726         * .version: Bumped version number just to increase it.
15727
15728         * src/SDCCmain.c: Added -nostdinc to the default options.
15729
15730 2002-04-15  Michael Hope  <michaelh AT vroom>
15731
15732         * device/lib/z80/printf.c (sprintf): Added.
15733
15734         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
15735
15736         * src/z80/peeph.def: Added transpose redundent load rule.
15737
15738         * src/z80/main.c: Added force callee saves for jaune.
15739
15740         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
15741
15742         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
15743
15744 2002-03-28  Johan Knol  <johan AT balder>
15745
15746         * src/SDCCval.c: fixed bug #532436
15747
15748 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15749         * /src/port.h:
15750         Added "char *Processor" field to the port structure.
15751
15752         * /src/SDCCmain.c:
15753         Added -p option. Allows port dependent processor to be specified.
15754
15755         * all ports:
15756         Initialized the new field char *Processor field to NULL in all ports
15757
15758         * /src/pic/*:
15759         Compiler generated registers for interrupt context saving
15760         were not getting allocated.
15761
15762 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
15763
15764         * /src/SDCCast.c:
15765         Fixed left shift. Will promote the left side of a left shift
15766         if a) left shifting more than size of operand or b) when assigned
15767         to something size > size of left side
15768
15769 2002-03-14  Scott Dattalo <scott AT dattalo.com>
15770         * src/pic/*
15771         tons of changes. Register allocation has been
15772         rewritten. Added customization for the various PICs. Flow
15773         analysis is restructured. ...
15774
15775         * src/pic/device.h:
15776         Added
15777
15778         * src/pic/device.c:
15779         Added. device.c is a PIC port hack to accomodate variations
15780         in PIC devices.
15781
15782 2002-03-13  Michael Hope  <michaelh AT vroom>
15783
15784         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
15785
15786 2002-03-04  johanknol  <johanknol AT manik>
15787
15788         * /src/SDCCval.c: fixed
15789
15790         const unsigned char arr[][2] = { { 0, 1 } };
15791         t18.c:1: error: Initializer element is not constant
15792
15793 2002-03-04  bela  <bela AT manik>
15794
15795         * /device/include/mcs51reg.h:
15796         ds89c420 register definition update
15797
15798 2002-03-03    <johan AT FRIJA>
15799
15800         * support/Util/SDCCerr.c: did something, but don't no why anymore
15801
15802         * support/regression/tests/bug-524691.c: made it a little less shy
15803
15804         * src/SDCCast.c (decorateType): fixed bug #524697
15805
15806         * src/SDCCast.c: made some lineno improvements
15807
15808         * src/SDCCval.c (getNelements): changed warning to error
15809
15810         * src/SDCCglue.c (printIvalArray): changed warning to error
15811
15812         * src/SDCCicode.c: fixed a warning for mingw
15813
15814         * src/SDCCast.c (decorateType): fixed the << promotion for ops
15815
15816         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
15817
15818 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
15819
15820         * src/ds390/peeph.def:
15821         Added some more peephole rules
15822
15823         * src/ds390/gen.c: Various fixes & enhancements
15824
15825         * src/SDCClrange.c, src/SDCClrange.h:
15826         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
15827
15828         * src/ds390/ralloc.c:
15829         various fixes & enhancements (ds390) specific
15830
15831         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
15832         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
15833         from rallocs.
15834
15835         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
15836
15837 2002-03-02    <johan AT FRIJA>
15838
15839         * src/SDCCast.c (decorateType): fixed bug #524708
15840
15841         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
15842
15843         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
15844
15845 2002-03-01  Michael Hope  <michaelh AT vroom>
15846
15847         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
15848
15849         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
15850
15851 2002-03-01    <johan AT FRIJA>
15852
15853         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
15854
15855         * src/SDCCast.c (decorateType): fixed bug #524209
15856
15857         * src/SDCCval.c (valNot): fixed bug #524195
15858
15859 2002-02-26    <johan AT balder>
15860
15861         * src/xa51/gen.c: fixed a warning
15862
15863         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
15864
15865         * src/SDCCast.c (decorateType): fixed bug #522534
15866
15867 2002-02-23    <johan AT balder>
15868
15869         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
15870
15871 2002-02-22    <johan AT balder>
15872
15873         * src/SDCCast.c: fixed bug #514865
15874
15875         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
15876
15877 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
15878
15879         * sdcc/src/SDCCloop.c:
15880         Previous fix was not good. basic blocks that have "break" or "return" are
15881         not really partof a loop , but live ranges used in these blocks should
15882         be live thru the entire loop, so set partOfLoop but don't add them to
15883         loop region
15884
15885 2002-02-21    <johan AT FRIJA>
15886
15887         * src/SDCCcse.c: fixed bug #514308
15888
15889 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
15890
15891         * src/SDCCloop.c:
15892         Fixed BUG #519583. If a conditional block ended in a return/break
15893         statement inside a loop, it was not being considered part of the loop.
15894
15895         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
15896
15897 2002-02-10  Karl Bongers <karl AT turbobit.com>
15898
15899         * debugger/*:
15900         Fixed up SDCDB debugger somewhat.  Updated debugger/README
15901         with lots of comments and notes.
15902
15903         * device/examples/test2.c:
15904         Fix bug, "red" variable not being initialized(compiler complained).
15905
15906         * device/examples/Makefile, examples/test3.c:
15907         Add Makefile in device/examples folder, compiles test3.c
15908         for use as a multiple module SDCDB test case.
15909
15910         * sim/ucsim/cmd.src/cmdset.cc:
15911         Took out debug printfs in ucsim "next" command.
15912
15913         * sim/ucsim/xa.src:
15914         Karl and Johan start ucsim XA support.  Most dissassembly working,
15915         about 75% emulation done(plenty of work remaining).
15916
15917         * sim/ucsim/z80.src:
15918         Add Z80 support to ucsim, add test-ucz80 regression test,
15919         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
15920         Notice z80 compiler fails on examples/test3.c/crc code.
15921
15922 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
15923
15924         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
15925         Added support for --parms-in-bank1
15926
15927         * src/ds390/peeph.def:
15928         added a few more peephole optimzations
15929
15930         * src/ds390/main.c:
15931         1) added __builtin_inp & __builtin_outp used to read in data of given length
15932            from a memory mapped port
15933         2) added __builtin_memcmp
15934         3) added __builtin_swapw swap bytes of a short
15935
15936         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
15937         1) handle multiple send & receives from register bank1
15938         2) ralloc can now allocate DPTR1 to some liveRanges
15939
15940         * src/SDCCsymt.c, src/SDCCsymt.h:
15941         changes to handle multiple sends & receives
15942
15943         * src/SDCCptropt.h:
15944         added some pointer arithmetic optimization
15945
15946         * src/SDCCptropt.c:
15947         added some pointer arithmetic optimizations but not stable yet so not
15948         called from anywhere (will get this working shortly)
15949
15950         * src/SDCCopt.c: fixed for multiple sends & receives
15951
15952         * src/SDCCmain.c:
15953         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
15954         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
15955            set preprocessor defines (depending on options)
15956
15957         * src/SDCCicode.c, src/SDCCicode.h:
15958         changes made to handle multiple sends & receives
15959
15960         * src/SDCCglobl.h:
15961         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
15962
15963         * src/SDCCcse.c, src/SDCCcse.h:
15964         added function findbackward def (to be used in upcoming optimization)
15965
15966         * src/SDCCcflow.c, src/SDCCcflow.h:
15967         added function returnAtEnd - to determine if a basic block terminates with
15968         a RETURN iCode
15969
15970         * src/SDCCast.c, src/SDCCast.h:
15971         added option parms-in-bank1
15972
15973         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
15974         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
15975         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
15976         adjusted for --parms-in-bank1 option
15977
15978         * device/include/string.h:
15979         donot redefine "reentrant" keyword
15980
15981         * device/include/ds80c390.h: Added some more SFRs
15982
15983 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
15984
15985         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
15986
15987 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
15988
15989         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
15990
15991 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
15992
15993         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
15994
15995 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
15996
15997         * Added --xram-movc option
15998
15999 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
16000
16001         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
16002
16003 2002-01-11  Johan Knol
16004
16005         * Added math lib of Jesus Calvino-Fraga
16006
16007 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
16008
16009         * src/SDCCmain.c (processFile): fix processing of ../../src.c
16010         * support/regression/Makefile: new target test-mcs51-stack-auto
16011         * support/regression/ports/mcs51-stack-auto/spec.mk: added
16012
16013 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16014
16015         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
16016
16017 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
16018
16019         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
16020
16021 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
16022
16023         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
16024
16025         * src/SDCCglue.h: add definition for printIvalChar()
16026
16027 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16028
16029         * src/SDCCast.c: fix #498138 by Johan
16030
16031         * src/SDCCglue.c: fix #498138 by Johan
16032
16033 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
16034
16035         * support/regression/Makefile: fix clean
16036
16037         * support/regression/ports/ds390/support.c: fix transmission of last character
16038
16039 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
16040
16041         * /sdcc/src/ds390/gen.c:
16042         a) improved computing address of stack variable
16043         b) took out some #if 0 code
16044         c) improved parmBytes adjustment
16045         d) improved genPlusIncr & genMinusIncr
16046         e) genCmp could generate bad code (when left assigned to DPTR)
16047         f) Fixed bug in hasInc
16048
16049         * /sdcc/src/ds390/ralloc.c:
16050         a) packRegsForSupport could mess up live information (Fixed)
16051         b) packRegsDPTRuse could be incorrect for left & right shift
16052
16053         * /sdcc/src/mcs51/ralloc.c:
16054         packRegsForSupport could mess up the live information (Fixed)
16055
16056         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
16057
16058         * /sdcc/src/SDCCast.c:
16059         can reverse a loop even if function call is present as long
16060         as the loop control variable is local & is not passed as parameter
16061
16062 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16063
16064         * /sdcc/ChangeLog: *** empty log message ***
16065
16066         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
16067         More builtin function additions for TININative
16068
16069         * /sdcc/src/ds390/ralloc.c:
16070         Had broken the regression testsuite
16071
16072         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
16073
16074         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
16075         Added funcattr hasStackParms will be set for reentrant functions when there
16076         are paramteres on the stack, this helps in minimizing frame pointer generation
16077         typeFromStr can handle function pointers now
16078
16079         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
16080         *** empty log message ***
16081
16082 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16083
16084         * /src/ds390/gen.c, /src/ds390/main.c:
16085         More builtin function additions for TININative
16086
16087         * /src/ds390/ralloc.c:
16088         Had broken the regression testsuite
16089
16090         * /src/SDCCast.c: Fixed a bug in dumptree
16091
16092         * /src/SDCCsymt.c, /src/SDCCsymt.h:
16093         Added funcattr hasStackParms will be set for reentrant functions when there
16094         are paramteres on the stack, this helps in minimizing frame pointer generation
16095         typeFromStr can handle function pointers now
16096
16097         * /doc/builtins.txt, /doc/TININative.txt:
16098         *** empty log message ***
16099
16100
16101 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
16102
16103         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
16104         ALPHA version for -mTININative
16105
16106         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
16107         updated to reflect changes in the port structure
16108
16109         * /src/port.h:
16110         added function do_assemble (similar to do_link) if non-null this function
16111         will be called to do assembly (-mTININative) requires a multi command
16112         assembly
16113         added function genAssemblerEnd will be called to generate assembler Epilogue
16114
16115         * /src/SDCCsymt.c:
16116         added _JavaNative to debug info printing
16117
16118         * /src/SDCCmain.c: added option --tini-libid
16119         added port->do_assemble function (-mTININative) has a multi command assemble
16120
16121         * /src/SDCCglue.c: Disabled "constExpr" check
16122         added port->genAssemblerEnd function
16123
16124         * /src/SDCCglobl.h: Added option --tini-libid value
16125
16126         * /src/SDCCast.h:
16127         tookout optimizeCompare from the header (has no external references)
16128
16129         * /src/SDCCast.c: made one more function "static"
16130
16131 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
16132
16133         * src/z80/mappings.i: Added z80asm support.
16134
16135         * src/z80/main.c: Added z80asm support on --asm=z80asm
16136
16137         * src/z80/gen.c: Fixed asm portability issues.
16138
16139         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
16140
16141         * src/SDCCglue.c (printExterns): Added global/extern split.
16142
16143 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
16144
16145         * support/regression/Makefile: added test for mcs51 model large
16146
16147         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
16148
16149         * support/regression/ports/gbz80/spec.mk: added -mgbz80
16150
16151 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
16152
16153         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
16154
16155 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
16156
16157         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
16158
16159         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
16160
16161 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
16162
16163         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
16164
16165         * support/regression/tests/simplefloat.c: Port to mcs51.
16166
16167 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
16168         * support/regression/tests/bug-485362.c: Added.
16169
16170         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
16171
16172         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
16173
16174         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
16175
16176         * src/z80/gen.c (aopDump): Added a dump function.
16177
16178 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
16179         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
16180
16181         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
16182
16183         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
16184
16185         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
16186
16187         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
16188
16189         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
16190
16191         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
16192
16193         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
16194
16195         * support/regression/ports/ds390/support.c: Use tinibios.
16196
16197         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
16198
16199 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
16200
16201         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
16202         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
16203
16204         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
16205
16206         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
16207
16208 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
16209
16210         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
16211
16212         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
16213         (packRegsForIYUse): Created and optimised.
16214
16215 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16216
16217         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
16218 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
16219
16220         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
16221
16222         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
16223
16224         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
16225
16226 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16227
16228         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
16229
16230         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
16231
16232 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16233
16234         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
16235
16236         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
16237
16238         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
16239
16240 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
16241
16242         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
16243         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
16244         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
16245
16246         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
16247
16248         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
16249         (genNotFloat): Added.
16250         (genUminusFloat): Added.
16251
16252         * device/lib/z80/Makefile: Added floating pt stubs.
16253
16254         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
16255
16256         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
16257
16258         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
16259
16260 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
16261
16262         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
16263
16264         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
16265
16266         * sdcc/support/regression/Makefile: Add port ds390.
16267
16268         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
16269
16270         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
16271
16272         * sdcc/support/regression/ports/ds390/spec.mk: Added.
16273
16274         * sdcc/support/regression/ports/ds390/support.c: Added.
16275
16276         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
16277
16278         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
16279
16280         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
16281
16282 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16283
16284         * device/include/malloc.h: Added z80 and gbz80 support.
16285
16286         * device/lib/gbz80/heap.s: Added.
16287
16288         * device/lib/z80/heap.s: Added.
16289
16290         * device/lib/malloc.c: Added z80 and gbz80 support.
16291
16292         * support/regression/tests/malloc.c (testMalloc): Added.
16293
16294         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
16295
16296         * support/regression/tests/bug-478094.c: Added.
16297
16298         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
16299
16300 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
16301
16302         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
16303
16304         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
16305
16306         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
16307
16308         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
16309
16310         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
16311
16312 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
16313
16314         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
16315
16316 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
16317
16318         * support/regression/tests/bug-477927.c: Added.
16319
16320         * src/z80/peeph.def: Added minor rules.
16321
16322         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
16323
16324         * src/z80/peeph.def: Added jump optimisation modification.
16325
16326 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
16327
16328         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
16329
16330 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
16331
16332         * support/regression/tests/funptrs.c: Added.
16333
16334 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
16335
16336         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
16337
16338 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
16339
16340         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
16341
16342         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
16343
16344         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
16345         (movLeft2ResultLong): Created.
16346
16347         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
16348         (joinPushes): Added.  Joins two char pushes into a word push.
16349
16350 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
16351
16352         * support/cpp2/Makefile.in (install): Added creation of dest dir.
16353
16354         * support/makebin/Makefile (install): Added creation of dest dir.
16355
16356 2001-10-24 Karl Bongers <karl AT turbobit.com>
16357
16358         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
16359
16360 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
16361
16362         * src/z80/ralloc.c: Turned off faulty pack for one use.
16363
16364         * src/z80/peeph-gbz80.def: Removed redundent restart options.
16365
16366         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
16367
16368 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
16369
16370         * support/regression/Makefile: Improved clean
16371
16372         * support/regression/ports/gbz80/spec.mk: Added clean
16373
16374         * support/regression/ports/host/spec.mk: Added clean
16375
16376         * support/regression/ports/z80/spec.mk: Added clean
16377
16378         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
16379
16380         * support/regression/ports/mcs51/timeout.c: little improvements
16381
16382 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
16383
16384         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
16385
16386         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
16387
16388         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
16389
16390 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
16391
16392         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
16393
16394         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
16395
16396 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
16397         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
16398
16399         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
16400
16401         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
16402
16403         * src/mcs51/main.c (_linkCmd): Added bin path to command.
16404
16405         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
16406
16407         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
16408
16409         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
16410
16411         * support/regression/tests/longor.c: Added.
16412
16413 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
16414
16415         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
16416
16417         * as/mcs51/aslink.h: define PATH_MAX
16418
16419         * as/mcs51/asm.h: define PATH_MAX
16420
16421         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
16422
16423         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
16424
16425         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
16426
16427         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
16428
16429         * src/SDCCglobl.h: define PATH_MAX
16430
16431         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
16432
16433         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
16434
16435 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
16436
16437         * src/z80/gen.c (gencjneshort): Fixed
16438
16439         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
16440
16441 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
16442
16443         * support/regression/tests/bug-469671.c: Added.
16444
16445         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
16446
16447 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
16448
16449         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
16450
16451         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
16452
16453 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
16454
16455         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
16456
16457         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
16458
16459         * src/device/lib/_mullong.c : removed hint: nooverlay bug
16460
16461         * src/device/lib/_divuint.c : removed hint: nooverlay bug
16462
16463         * src/device/lib/_divulong.c: removed hint: nooverlay bug
16464
16465         * src/device/lib/_moduint.c : removed hint: nooverlay bug
16466
16467         * src/device/lib/_modulong.c: removed hint: nooverlay bug
16468
16469 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
16470
16471         * 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.
16472
16473         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
16474
16475         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
16476
16477 2001-10-07    <johan AT FRIJA>
16478
16479         * device/lib/gets.c (gets): fixed the return value.
16480
16481 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
16482         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
16483
16484         * 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.
16485
16486         * 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.
16487
16488         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
16489
16490         * src/pic/gen.c: Removed Safe_strdup.
16491
16492         * configure.in: Added option to enable libgc support.
16493
16494         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
16495         (bitVectUnion): Optimised.
16496         (bitVectIntersect): Optimised.
16497         (bitVectBitsInCommon): Optimised.
16498         (bitVectCplAnd): Optimised.
16499
16500         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
16501
16502 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16503
16504         * src/SDCCmain.c: distinguish between assembler debug and plain options
16505
16506         * src/avr/main.c:   remove standard assembler options
16507
16508         * src/ds390/main.c: remove standard assembler options
16509
16510         * src/mcs51/main.c: remove standard assembler options
16511
16512         * src/port.h: removed "PENDING" comment
16513
16514 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16515
16516         * src/device/lib/_mulint.c  : new, with assember functions
16517
16518         * src/device/lib/_mullong.c : new, with assember functions
16519
16520         * src/device/lib/_divuint.c : with assember functions
16521
16522         * src/device/lib/_divsint.c : with assember functions
16523
16524         * src/device/lib/_divulong.c: with assember functions
16525
16526         * src/device/lib/_divslong.c: with assember functions
16527
16528         * src/device/lib/_moduint.c : with assember functions
16529
16530         * src/device/lib/_modsint.c : with assember functions
16531
16532         * src/device/lib/_modulong.c: with assember functions
16533
16534         * src/device/lib/_modslong.c: with assember functions
16535
16536         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
16537
16538         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
16539
16540         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
16541                                       replaced _mululong.c and _mulslong.c by _mullong.c
16542
16543 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
16544
16545         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
16546
16547 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16548
16549         * src/SDCCglue.c: test, if win32api is available for MINGW
16550
16551 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
16552
16553         * src/SDCCsymt.c: no more _modifier in printTypeChain()
16554         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
16555         * support/regression/ports/gbz80/spec.mk: removed GENERIC
16556         * support/regression/ports/host/spec.mk: removed GENERIC
16557         * support/regression/ports/mcs51/spec.mk: removed GENERIC
16558         * support/regression/ports/z80/spec.mk: removed GENERIC
16559
16560 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
16561
16562         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
16563
16564         * support/regression/tests/bug-467035.c: Created.
16565
16566 2001-10-01    <johan AT FRIJA>
16567
16568         * src/SDCC.y: fixed bug #466586 part 1
16569
16570 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
16571
16572         * SDCCicode.c: z80 has no generic pointers
16573         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
16574
16575 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
16576
16577         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
16578
16579 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
16580
16581         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
16582
16583         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
16584
16585 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
16586
16587         * configure.in: Fixed up so that ucsim is only configured once.
16588
16589         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
16590
16591         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
16592         (getPathDifference): As above.
16593
16594         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
16595
16596         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
16597
16598 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
16599         * .version: Updated to 2.3.1
16600
16601         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
16602         Added copyright header.
16603
16604         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
16605         (assemble): Added support for macro based assembler commands.
16606         (linkEdit): Added support for macro based linker commands.
16607         (preProcess): Changed the pre-processor to use macros.
16608         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
16609         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
16610
16611         * device/lib/z80/crt0.s: Added module name for debugging.
16612
16613 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
16614
16615         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16616
16617         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
16618
16619         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
16620
16621         * src/Makefile.in: Added SDCCmacro and SDCCutil
16622
16623 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
16624
16625         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
16626
16627 2001-09-16    <johan AT FRIJA>
16628
16629         * 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.
16630
16631 2001-09-15    <johan AT FRIJA>
16632
16633         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
16634         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
16635
16636 2001-09-11    <johan AT FRIJA>
16637
16638         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
16639
16640 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
16641
16642         * support/regression/tests/bug-460444.c: Added test case.
16643
16644         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
16645         (genCast): Added justification for all of the asserts.
16646
16647 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
16648
16649         * support/regression/support.c: _xdata replaced by xdata
16650
16651         * support/regression/spec.mk: removed _generic
16652
16653 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
16654
16655         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
16656
16657         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
16658         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
16659
16660         * src/z80/peeph.def: Added a rule to optimise shift then compare.
16661
16662         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
16663
16664         * support/regression/tests/bug-460010.c: Added test case.
16665
16666         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
16667
16668 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
16669
16670         * support/regression/Makefile: inter-port-clean adjusted for mcs51
16671
16672         * support/regression/testfwk.c: removed workaround for bug #436344
16673
16674         * support/regression/tests/bp.c: use less memory with mcs51
16675
16676         * support/regression/tests/bug-441448.c: use less memory
16677
16678         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
16679
16680         * support/regression/collate-results.py: typo
16681
16682 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
16683
16684         * support/regression/tests/fetchoverlap.c: Added new test case.
16685
16686         * support/regression/tests/bp.c: Added new test case.
16687
16688         * support/regression/tests/bug-448984.c: Added new test case.
16689
16690         * support/regression/tests/pow2shifts.c: Added new test case.
16691
16692         * src/z80/gen.c: Turned off the noise it normally generates for the release.
16693         (genlshTwo): Fixed right shift for count > 8.
16694
16695         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
16696
16697 2001-09-08    <johan AT FRIJA>
16698
16699         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
16700
16701 2001-09-07    <johan AT FRIJA>
16702
16703         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
16704
16705         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
16706
16707 2001-09-06    <johan AT FRIJA>
16708
16709         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
16710         * bernhard noted me at this: "() equals to (void)" (1.38)
16711
16712 2001-09-05    <johan AT FRIJA>
16713
16714         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
16715
16716 2001-09-04    <johan AT FRIJA>
16717
16718         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
16719
16720
16721 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
16722
16723         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
16724
16725 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
16726
16727         * link/z80/aslink.h: Fixed path for PATH_MAX
16728
16729 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
16730
16731         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
16732
16733         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
16734
16735         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
16736
16737         * 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.
16738
16739 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
16740
16741         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
16742         (genCmp): Fixed up genCmp for the GB with longs.
16743
16744         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
16745
16746         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
16747
16748         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
16749
16750         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
16751
16752 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
16753
16754         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
16755
16756 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
16757
16758         * 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.
16759
16760         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
16761
16762 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
16763
16764         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
16765
16766         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
16767
16768 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
16769
16770   * sim/ucsim/configure:    little improvement of Cygwin-detection
16771   * sim/ucsim/configure.in: little improvement of Cygwin-detection
16772   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
16773   * support/regression/tests/bug-221100.c: small changes for mcs51
16774   * support/regression/tests/bug-221168.c: small changes for mcs51
16775   * support/regression/tests/bug-227710.c: small changes for mcs51
16776   * support/regression/tests/staticinit.c: small changes for mcs51
16777   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
16778   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16779   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
16780
16781 $Revision$