]> git.gag.com Git - fw/sdcc/blob - ChangeLog
* src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
[fw/sdcc] / ChangeLog
1 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
4           (genLeftShift, genRightShift): fixed bug 1491627
5         * src/hc08/peeph.def (rules 7, 8.x): added
6         * support/regression/tests/shifts.c (ShiftLeftByParam,
7           ShiftRightByParam, testShiftByParam): added to test variable shifting
8
9 2006-05-20 Raphael Neider <rneider AT web.de>
10
11         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
12         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
13           (allocReg): add only new registers to dynAllocRegs,
14           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
15             #1489055, #1445850, and probably #1483693
16
17 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
18
19         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
20         bug in for-loop that didn't emit the last of CONFIG and ID registers
21
22 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
23
24         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
25           with offset
26         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
27           1489016, 1434401 and 1490124
28         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
29           1489016, 1434401 and 1490124
30
31 2006-05-17 Borut Razem <borut.razem AT siol.net>
32
33         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
34           thanks Stas Sergeev
35
36 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
37
38         * device/include/mcs51/P89c51RD2.h,
39         * device/include/mcs51/P89LPC901.h,
40         * device/include/mcs51/P89LPC922.h,
41         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
42
43 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
44
45         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
46         to fix missing stack pragma in compiled binary object file,
47
48 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
49
50         * support/packihx/configure.in,
51         * support/packihx/configure: removed warning, autoconf >= 2.5x can
52         determine sizeof basic types even while cross compiling
53
54 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
55
56         * src/avr/gen.c (aopop),
57         * src/ds390/gen.c (aopOp),
58         * src/hc08/gen.c (aopOp),
59         * src/mcs51/gen.c (aopop),
60         * src/pic16/gen.c (pic16_aopOp),
61         * src/pic/gen.c (aopOp),
62         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
63         if size of operand is smaller than spill location
64
65 2006-05-12 Borut Razem <borut.razem AT siol.net>
66
67         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
68           have to have CR/LF line endings even if they are checked out on *nix
69           or on WIN32 in cygwin binmode
70
71 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
72
73         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
74         * device/include/ds80c390.h: added sfr16 definitions
75         * src/ds390/gen.c,
76         * src/ds390/gen.h,
77         * src/ds390/main.c,
78         * src/ds390/ralloc.c,
79         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
80           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
81           bit returning functions
82         * support/regression/tests/sfr16.c: enabled test on ds390
83
84 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
85
86         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
87         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
88
89 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
90
91         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
92         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
93           (cl_address_space constructor): removed expensive initialization,
94           (cl_address_space::get_cell): extended for late initialization,
95           (cl_address_space::*): use late initialization,
96           (cl_address_decoder::activate): removed expensive initialization,
97           This reduced regression test running time by 25%
98
99 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
100
101         * packihx/,
102         * configure.in,
103         * configure,
104         * sdcc.dsw,
105         * Makefile.bcc,
106         * Makefile.in,
107         * support/packihx/Makefile.in,
108         * support/packihx/clean.mk,
109         * support/packihx/Makefile.bcc,
110         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
111
112 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
113
114         * src/SDCCval.c (valNot): fix for regression test failure
115           of not.c on big endian hosts
116
117 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
118
119         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
120
121 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
122
123         * device/lib/mcs51/Makefile.in: changed string comparison operator
124           to = for POSIX compliance; == is bash extension
125
126 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
127
128         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
129           kosmonaut_pirx
130
131 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
132
133         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
134         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
135         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
136         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
137         bug report #1478657,
138
139 2006-05-05 Borut Razem <borut.razem AT siol.net>
140
141         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
142           making the html
143
144 2006-05-02 Borut Razem <borut.razem AT siol.net>
145
146         * doc/Makefile.in: removed *.ind dependency since there is no rule to
147           create *.ind, which made make to fail if invoked with -j 2
148
149 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
150
151         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
152           Hubert Sack for patch 1479782
153
154 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
155
156         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
157
158 2006-05-01 Raphael Neider <rneider AT web.de>
159
160         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
161           (create_pic): store only prefix-free device name,
162           (init_pic): check for device names with "16" prefix,
163           (list_valid_pics),
164         * src/pic/device.h (struct PIC_device),
165         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
166             stored device name,
167         * device/include/pic/pic12f{635,675,629,683}.h,
168         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
169         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
170         * device/include/pic/pic16f505.h,
171         * device/lib/pic/libdev/pic16f505.c: removed
172         * device/include/pic/pic14devices.txt: added support for pic12f
173             devices, removed unsupported non 16-bit devices
174             [above changes provided by patch from Zik Saleeba]
175         * src/pic/*, src/pic16/*, device/include/pic16/*,
176           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
177
178 2006-05-01 Borut Razem <borut.razem AT siol.net>
179
180         * configure.in, configure, doc/Makefile.in:
181           sync with nightly build makefile - latex, dvipdf and dvips
182           not needed any more
183
184 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
185
186         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
187         in the library source
188
189 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
190
191         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
192
193 2006-04-28 Raphael Neider <rneider AT web.de>
194
195         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
196         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
197           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
198         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
199
200 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
201
202         * device/lib/pic/libdev/Makefile.in,
203         * device/lib/hc08/Makefile.in,
204         * device/lib/gbz80/Makefile.in,
205         * device/lib/z80/Makefile.in,
206         * device/lib/ds390/Makefile.in,
207         * device/lib/ds400/Makefile.in: added srcdir to include search path,
208         thanks to Borut for the bug report
209         * configure.in,
210         * configure: always create doc/Makefile independent from --enable-doc
211         * Makefile.in: always install from directory doc independent from
212         --enable-doc
213         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
214         removed
215         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
216         * doc/Makefile.in: install *.txt if present
217         * device/include/Makefile.in (install): added installation of pic/*.inc
218         and pic/*.txt files again, they were erroneously removed
219
220 2006-04-28 Raphael Neider <rneider AT web.de>
221
222         * src/pic/{gen.c,main.h,pcode.c},
223         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
224             concerning signedness with casts
225
226 2006-04-28 Raphael Neider <rneider AT web.de>
227
228         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
229             definition of an interrupt handler,
230         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
231             interrupt handler stuff from picglue() to separate routine,
232           (picglue): enabled definition of intr handlers in files w/o main()
233
234 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
235
236         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
237           compilation with MSVC 2005 Express Edition (VC8)
238
239 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
240
241         * device/lib/Makefile: fixed build of gbz80 lib
242
243 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
244
245         * support/regression/tests/bug-460010.c,
246         * support/regression/tests/bug-524691.c,
247         * support/regression/tests/bug-716242.c: removed conditional defines
248           that are already in testfwk.h
249
250 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
251
252         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
253           (AccAXRsh1): added, shift right by 1,
254           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
255            AccAXLrl1
256         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
257
258 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
259
260         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
261         remove cast to same type
262         * src/SDCCast.c (decorateType): fix for RFE 1475742,
263         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
264         * as/z80/Makefile,
265         * link/z80/Makefile: removed, they have moved to
266         Makefile.in files
267         * configure,
268         * configure.in: replaced duplicate message about ucsim by missing sdcpp
269         * install-sh: fix bug #1204398 by setting umask 0022
270         * device/lib/Makefile: separate build of z80 and gbz80 lib
271
272 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
273
274         Enabled VPATH feature: changed nearly all Makefiles (149 files).
275         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
276
277         One basic decision: e.g. src/clean.mk includes further files. In order
278         to make this work there are two solutions:
279         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
280           run configure on them. This way they can use
281           'include $(srcdir)/port-clean.mk'
282         - always include clean.mk by the Makefile at the same level. To avoid
283           that `make clean` tries to include and build Makefile.dep the
284           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
285           implemented, because now even `make uninstall` doesn't create
286           Makefile.in. clean.mk could be eliminated by pasting it in
287           Makefile.in.
288
289         * debugger/mcs51/Makefile.in: build own objects from library sources
290         (SLIB, SDCC) in current directory
291
292         * configure, configure.in: renamed --disable-device-lib-build in
293         --disable-device-lib; added --enable-doc, the required tools are
294         searched by configure; added result message; the toolchain for the
295         belonging ports are now only built, if the port is enabled.
296
297         * support/regression/*: all output is written in directory gen, because
298         the fwk and ports directories don't livet in the build tree using vpath
299
300         * doc/sdccman.lyx: renamed --disable-device-lib-build to
301         --disable-device-lib, added --enable-doc, added section VPATH
302
303         * sim/ucsim/configure.in,
304         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
305         z80 are enabled by default
306
307 2006-04-24 Raphael Neider <rneider AT web.de>
308
309         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
310             to config word, "pic14_"-prefixed some extern functions
311           (pic14_emitConfigWord): emit __config directive(s) if assignment to
312             config word has been found
313         * src/pic/device.h: added prototypes
314         * src/pic/pcode.c: added "pic14_"-prefix where needed
315         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
316             fixup
317         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
318             words,
319           (pic14emitRegularMap): ignore config words,
320           (pic14createInterruptVect): moved generating __config directives away
321           (picglue): have __config directives emitted
322
323 2006-04-24 Borut Razem <borut.razem AT siol.net>
324
325         * doc/Makefile: sync with nightly build makefile
326
327 2006-04-24 Raphael Neider <rneider AT web.de>
328
329         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
330             registers that have not been assigned proper liveranges,
331             fixes #1469504 and #1474602,
332           (pCodeRegOptimizeRegUsage): fixed typo in comment
333
334 2006-04-24 Borut Razem <borut.razem AT siol.net>
335
336         * device/examples/main8051.c: deleted - it was removed from CVS
337           24.mar.2000 and after that modified 18.feb.2001, so it reappered
338           after the transition to Subversion
339         * src/SDCCalloc.h: deleted - it was removed  from CVS
340           3.feb.2001 and after that modified 18.feb.2001, so it reappered
341           after the transition to Subversion
342         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
343           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
344           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
345           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
346
347 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
348
349         * as/asx8051.dsp: added mcs51/strcmpi.h
350         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
351         * as/hc08/aslink.h: updated lnksect prototype
352         * as/hc08/asm.h,
353         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
354         * as/hc08/asmain.c,
355         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
356           (newdot): handle A_ABS
357         * as/hc08/asout.c,
358         * as/mcs51/asout.c (outarea): output address
359         * as/hc08/lkaomf51.c,
360         * as/mcs51/lkaomf51.c: disabled unused array UsageType
361         * as/hc08/m08pst.c,
362         * as/mcs51/i51pst.c,
363         * as/z80/z80pst.c: "ABS" is not A_OVR
364         * as/hc08/lkarea.c (newarea): read a_addr,
365           (lnkarea): added codemap array, sort absolute areas to the front,
366            combine all GSINITx/GSFINAL,
367           (find_empty_space, allocate_space): new functions,
368           (lnksect): return next address, handle absolute sections
369         * as/mcs51/lkarea.c (newarea): read a_addr,
370           lnksect2 prototype changed,
371           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
372           (find_empty_space, allocate_space): new, factored out of lnksect2,
373           (lnksect2): return next address, handle absolute sections
374         * as/hc08/lkhead.c,
375         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
376         * as/hc08/lklibr.c (addfile, fndsym),
377         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
378           index out of range and detect both '\' and '/'
379         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
380         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
381           regression tests (ds390 cannot return bool yet)
382         * doc/sdccman.lyx: changed version number, document changed --no-peep,
383           document critical interrupts on z80, document changed SDCC define
384         * src/asm.c (_asxxxx_mapping): fixed .org directive,
385           (_a390_mapping): added .org directive
386         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
387           (genMultOneByte): fixed warnings
388         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
389           ones
390         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
391         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
392           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
393         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
394         * src/pic16/main.c: removed newReg prototype
395         * src/pic16/pcode.c,
396         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
397           warnings
398         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
399           ones
400         * src/pic16/ralloc.c
401         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
402           to fix warnings
403         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
404           from short to PIC_OPTYPE
405         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
406         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
407           optype from short to PIC_OPTYPE
408         * src/port.h: made int_size unsigned to fix warnings
409         * src/SDCC.y: fixed warning on MSVC
410         * src/SDCCicode.c (getArraySizePtr): return unsigned int
411         * src/SDCCopt.c (convertToFcall): fixed warnings
412         * src/SDCCsymt.h: removed double prototype for genSymName
413         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
414           offset int to fix warnings
415
416 2006-04-22 Borut Razem <borut.razem AT siol.net>
417
418         * doc/sdccman.lyx, */Makefile, */Makefile.in:
419           references to CVS replaced with Subversion
420
421 2006-04-21 Borut Razem <borut.razem AT siol.net>
422
423         * doc/sdccman.lyx, */Makefile, */Makefile.in:
424           references to CVS replaced with Subversion
425
426 2006-04-19 Borut Razem <borut.razem AT siol.net>
427
428         * src/version.awk: adapted for svn
429         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
430           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
431           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
432           /binutils-avr/etc/*.vi, *.jin: removed all properties
433           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
434
435 2006-04-19 Borut Razem <borut.razem AT siol.net>
436
437         * CVS to Subversion migration completed
438
439 2006-04-18 Borut Razem <borut.razem AT siol.net>
440
441         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
442           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
443
444 2006-04-17 Borut Razem <borut.razem AT siol.net>
445
446         * device/include/Makefile.in: added pic/*.inc to the installation
447
448 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
449
450         * support/regression/collate-results.py: fixed output in case of
451         a valdiag error
452         * support/regression/generate-cases.py: fixed splitting of pathnames
453         with dots
454         * as/hc08/lklibr.c (addfile),
455         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
456
457 2006-04-11 Raphael Neider <rneider AT web.de>
458
459         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
460         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
461         * src/pic16/pcode.c (assignValnums): fixed #1460578
462
463 2006-04-11 Raphael Neider <rneider AT web.de>
464
465         * device/lib/pic/libdev/*.c,
466         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
467           fixes #1468739, enables compilation in --std-c99 mode
468         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
469
470 2006-04-11 Raphael Neider <rneider AT web.de>
471
472         * src/pic/device.c (find_device): removed debug output
473           (list_valid_pics): enabled verbose listing of supported devices
474         * device/include/stdbool.h: define bool as char for pic14/16 as well
475
476 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
477
478         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
479
480 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
481
482         * .version: bumped version to 2.5.6
483         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
484
485 2006-04-06 Raphael Neider <rneider AT web.de>
486
487         * .version: bumped version to 2.5.6 (pic14 ABI changed)
488         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
489         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
490           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
491             pic14_constructAbsMap
492           (pic14printPublics): declare absolute global symbols as global
493           (pic14createInterruptVect),
494         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
495           (newReg): assume new registers unused, use correct name in
496             hashtable (reg->name instead of name), more debugLog output
497         * src/pic/device.h (PIC_device): added fields for verbose output
498         * src/pic/device.c: moved device definition to pic14devices.txt,
499             added routines for runtime parsing of pic14devices.txt,
500             added support for second config word
501         * src/pic/main.c (_process_pragma): removed #pragma maxram,
502           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
503           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
504           (_pic14_parseOptions): moved pCodeInitRegisters here
505           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
506         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
507           (pCodeInitRegisters): rewrapped comments, perpared new approach to
508             handling the pseudo stack
509         * device/lib/Makefile.in: ignore failures in objects-pic16,
510         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
511         * device/lib/pic/NEWS: document new dependency on picXXX.lib
512         * device/lib/pic/Makefile.subdir,
513         * device/lib/pic16/Makefile.subdir: improved clean rules
514         * device/lib/pic/libdev/: NEW, pic14 device libraries
515         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
516         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
517         * device/include/Makefile.in: create subdir and install pic14 headers
518         * device/include/pic/p16f_common.inc: removed unused declarations
519         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
520             PICs from inc2h.pl v1.6,
521             replaced BIT_AT macros with struct declarations
522         * device/include/pic/pic14devices.txt: definition of supported devices,
523             all above improvements contributed by Zik Saleeba, thanks
524         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
525         * support/scripts/sdcc.nsi: also install pic14 device libraries and
526             headers
527
528 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
529
530         * device/include/mcs51/c8051f410.h: added interrupt numbers,
531         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
532           thanks to Charles Olds
533
534 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
535
536         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
537
538 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
539
540         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
541         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
542         * support/regression/bug1464657.c: added, new test
543
544 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
545
546         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
547           version number
548
549 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
550
551         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
552           --no-peep and --peep-file <file> are used don't use default rules but
553           do use the <file>
554
555 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
556
557         * src/mcs51/gen.c (genCall): fixed bug 1457608
558
559 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
560
561         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
562         changes seem to cause (trigger?) problems with the build system.
563
564 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
565
566         * src/SDCCpeeph.c (operandsLiteral): new, added,
567           (callFuncByName): inserted operandsLiteral
568         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
569
570 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
571
572         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
573         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
574
575 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
576
577         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
578           implemented patch 1120823 Thanks to Willy De la Court (normal
579           interrupts need an interrupt number now if they are made critical),
580           and enabled nesting of critical functions though not for gbz80
581           (genCritical, genEndCritical): added functions
582           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
583         * src/z80/mappings.i: added "ei" to all mappings
584
585 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
586
587         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
588         submitted by the Debian SDCC maintainer Aurelien Jarno:
589         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
590         archive with gcc 4.1 on mips and wrote the patch"
591
592 2006-03-16 Raphael Neider <rneider AT web.de>
593
594         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
595           the left operand is shorter than the result (c* = lit-c* + int),
596           fixes bug #1450796
597         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
598           OP_SYMBOL
599
600 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
601
602         * src/.version: increased version number to 2.5.5
603         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
604         linking is done manually in pic16 port's _linkEdit,
605         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
606         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
607         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
608         allocate asmop as AOP_ACC,
609         (aopForRemat): added parameter 'bool result' in function declaration,
610         (pic16_aopGet): return AOP_ACC when accessing WREG,
611         (pic16_popGetTempReg): minor modification,
612         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
613         'pic16_allocWithIdx',
614         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
615         calling function in absolute addresses,
616         (genAssign): take into account AOP_ACC asmop,
617         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
618         * src/pic16/pcoderegs.c: some debug functions and lines added,
619         * src/pic16/ralloc.c (decodeRegType): added but commented out,
620         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
621         register too,
622         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
623         call to allocReg, not by manually allocating a new one,
624         (pic16_assignRegisters): now before going through the register
625         allocating functions mark all registers as free. This eliminates some
626         side effects resulting from peephole parser done earlier in the backbone
627
628 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
629
630         * src/SDCCicode.c (geniCodeLogic),
631         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
632
633 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
634
635         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
636           (genSend): bugfix, do not allocate and free twice,
637           (shiftRLong): handle partially overlapping aops
638         * support/regression/tests/bitopcse.c: fixed warning redefined idata
639
640 2006-03-08 Borut Razem <borut.razem AT siol.net>
641
642         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
643           for pic16
644
645 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
646
647         * support/regression/tests/bug1409955.c: new, added
648         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
649         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
650           (aopForSym, aopOp): increment asmop.allocated if reused,
651           (freeAsmop): decrement asmop.allocated and check for zero instead of
652           using asmop.freed,
653           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
654           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
655            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
656            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
657            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
658            genSignedRightShift, genRightShift, genDataPointerGet,
659            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
660            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
661             in reverse order from allocation,
662           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
663             added swappedLR to keep track
664         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
665           pdata & code for GCC, z80, gbz80 & hc08
666         * support/regression/tests/zeropad.c: moved defines to testfwk.h
667
668 2006-03-08 Raphael Neider <rneider AT web.de>
669
670         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
671
672 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
673
674         * device/include/mcs51/c8051f410.h: new SiLabs mcu
675         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
676         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
677
678 2006-03-06 Borut Razem <borut.razem AT siol.net>
679
680         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
681           made the linker quiet
682
683 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
684
685         * src/pic16/gen.c (genPcall): fixed bug #1443644
686         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
687         which dumps before the function entry point a data byte which represents
688         the number of the local variables used by the specified function, added
689         'xinst' for initial support for Extended Instruction Support,
690         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
691         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
692         port->fun_prefix anymore (may change later),
693         (genFunction, genEndFunction): do not store/restore local registers for
694         _main (this should take care the --main-return command line option in
695         the future),
696         (genOr): removed some legacy pic-port instructions,
697         * src/pic16/genarith.c (genAddLit): re-enabled old code because
698         performing operations with SFR's causes data to be written more than
699         once to each SFR. Perhaps SFRs should be handled in special cases...
700         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
701         pcode.h
702         * src/pic16/main.c (_process_pragma): stack bound checking did not take
703         into account for stack starting position,
704         (struct OPTIONS pic16_optionsTable): added command line argument
705         --extended or -y for Extended Instruction Support,
706         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
707         (deassignLRs): *** perhaps the most important change, old 'for' code
708         (commented out for reference), didn't account for some registers which
709         were left marked 'not free' after a pointer operation. The change
710         reduces register usage a lot in some cases
711
712 2006-03-04 Borut Razem <borut.razem AT siol.net>
713
714         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
715           _clean
716         * support/regression/tests/bug-524697.c: decreased array size for
717           mcs51 to fit into the internal RAM
718         * support/regression/Makefile.in: a little bit more verbose
719
720 2006-03-03 Borut Razem <borut.razem AT siol.net>
721
722         * support/regression/fwk/lib/testfwk.c,
723           support/regression/fwk/include/testfwk.h: introduced function
724           _prints(), nonrecursive _printn(), call _initEmu() from main()
725         * support/regression/ports/gbz80/support.asm,
726           support/regression/ports/ucz80/support.asm,
727           support/regression/ports/z80/support.asm,
728           support/regression/ports/ds390/support.c,
729           support/regression/ports/hc08/support.c,
730           support/regression/ports/host/support.c,
731           support/regression/ports/mcs51/support.c,
732           support/regression/ports/xa51/support.c: added empty _initEmu()
733           function
734         * support/regression/ports/pic16/gpsim.cmd,
735           support/regression/ports/pic16/spec.mk,
736           support/regression/ports/pic16/support.c,
737           support/regression/Makefile.in: added pic16 regression test
738
739 2006-03-01 Raphael Neider <rneider AT web.de>
740
741         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
742           genConstPointerGet): use safe way of generating MOVFF to cover
743             literals as well as registers, fixes bug #1440527
744         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
745             dereference
746           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
747             more correctly, fixes bug #1232186
748           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
749         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
750             gplink guess the correct processor in more cases, applied patch
751             from Till Riedel attached to and fixing bug #1436552
752
753 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
754
755         * support/regression/tests/array.c: added, contains check for #1434401
756         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
757
758 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
759
760         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
761         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
762         * device/include/mcs51/c8051f326.h,
763         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
764         * device/include/mcs51/c8051f000.h,
765         * device/include/mcs51/c8051f018.h,
766         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
767           PCON_IDLE,PCON_STOP and added sfr16 definitions
768
769 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
770
771         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
772           genGetWord): fixed bug 1409955
773
774 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
775
776         * device/include/hc08/mc68hc908gp32.h,
777         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
778
779 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
780
781         * src/SDCCast.c (constExprValue): return NULL if not a value
782         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
783         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
784         * support/regression/tests/bitfields.c: enabled signed bitfield for all
785
786 2006-02-13 Borut Razem <borut.razem AT siol.net>
787
788         * src/regression/ptrarg.c: added, fails due to bug #1430967
789         * src/regression/Makefile: ptrarg.c added, ...
790
791 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
792
793         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
794         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
795
796 2006-02-11 Borut Razem <borut.razem AT siol.net>
797
798         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
799           print "Processor: xxx" message to stdout only if --verbose
800
801 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
802
803         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
804         * support/regression/tests/bug1426356.c: added
805         * support/regression/tests/bitfields.c: removed 2 tests
806
807 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
808
809         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
810         * device/include/mcs51/c8051f330.h,
811         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
812           PCON_IDLE,PCON_STOP and added sfr16 definitions
813         * device/lib/_divsint.c,
814         * device/lib/_divuint.c,
815         * device/lib/_divulong.c,
816         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
817           register bank bug for small stackauto
818
819 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
820
821         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
822
823 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
824
825         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
826         * all.dsp: corrected several bin paths
827         * device/include/mcs51/c8051f120.h,
828         * device/include/mcs51/c8051f300.h,
829         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
830           to PCON_IDLE,PCON_STOP
831         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
832         * device/lib/printf_large.c (output_float): fixed bug 1388703
833         * support/regression/tests/bug1057979.c: added test for bug 1388703
834
835 2006-02-08 Raphael Neider <rneider AT web.de>
836
837         * src/pic/pcode.c (pciTRIS): fixed typo,
838           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
839           (LinkFlow): fixed handling of flows that end in a call,
840           (ReuseReg): perform safety check earlier
841         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
842             to work with flows at the beginning of a pBlock,
843             fixes #1426557 (Symbol not previously defined),
844           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
845             usage information
846           (RemoveUnusedRegisters): update register usage info
847         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
848             created, reuse existing ones instead
849         * src/pic/gen.c (genPcall): fixed #1424719
850
851 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
852
853         * link/z80/lkmain.c,
854         * link/z80/lklex.c,
855         * link/z80/lkdata.c,
856         * link/z80/aslink.h: fixed build on current cygwin:
857         replaced getline() by lk_getline()
858
859 2006-02-01 Borut Razem <borut.razem AT siol.net>
860
861         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
862           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
863           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
864           src/regression/bool1.c, src/regression/bool2.c,
865           src/regression/bool3.c, src/regression/call1.c,
866           src/regression/compare.c, src/regression/compare10.c,
867           src/regression/compare2.c, src/regression/compare3.c,
868           src/regression/compare4.c, src/regression/compare5.c,
869           src/regression/compare6.c, src/regression/compare7.c,
870           src/regression/compare8.c, src/regression/compare9.c,
871           src/regression/configword.c, src/regression/for.c,
872           src/regression/inline.c, src/regression/mult1.c,
873           src/regression/nestfor.c, src/regression/or1.c,
874           src/regression/pointer1.c, src/regression/ptrfunc.c,
875           src/regression/rotate1.c, src/regression/rotate2.c,
876           src/regression/rotate3.c, src/regression/rotate4.c,
877           src/regression/rotate5.c, src/regression/rotate6.c,
878           src/regression/rotate7.c, src/regression/string1.c,
879           src/regression/struct1.c, src/regression/sub.c,
880           src/regression/sub2.c, src/regression/switch1.c,
881           src/regression/while.c, src/regression/xor.c,
882           src/regression/create_stc, src/regression/simulate,
883           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
884           regression tests
885         * src/regression/gpsim_assert.h: added
886
887 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
888
889         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
890         ((void (code *) (void)) 0) ();
891         * as/hc08/aslex.c,
892         * as/hc08/aslink.h,
893         * as/hc08/asm.h,
894         * as/hc08/asmain.c,
895         * as/hc08/lkdata.c,
896         * as/hc08/lklex.c,
897         * as/hc08/lkmain.c,
898         * as/mcs51/aslex.c,
899         * as/mcs51/aslink.h,
900         * as/mcs51/asm.h,
901         * as/mcs51/asmain.c,
902         * as/mcs51/lkdata.c,
903         * as/mcs51/lklex.c,
904         * as/mcs51/lkmain.c,
905         * as/z80/aslex.c,
906         * as/z80/asm.h,
907         * as/z80/asmain.c: fixed build on current cygwin:
908         replaced getline() by as_getline()
909
910 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
911
912         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
913         declarator in the symbol chain
914         * src/SDCCsymt.h,
915         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
916         parameter list for function pointers
917         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
918         * support/regression/tests/bug-716242.c: added
919
920 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
921
922         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
923         offset if possible
924         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
925
926 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
927
928         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
929         inifinitely recurseable, added static
930         * support/regression/tests/bug-1408066.c: added
931
932 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
933
934         * src/SDCCicode.h,
935         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
936         renamed, added possibility to create "postLoopLbl"-labels
937         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
938         newiTempLoopHeaderLabel
939         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
940         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
941         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
942         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
943         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
944         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
945         (basicInduction): fixed bug #136564, made static,
946         (loopInduction): changed parameter of basicInduction, made static,
947         (addPostLoopBlock): added
948         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
949         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
950         findLoopEndSeq
951         * support/regression/tests/bug-136564.c: added
952         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
953         --std-sdcc99 to LIBSDCCFLAGS
954
955 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
956
957         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
958         while loop
959         * support/regression/tests/bug-1406131.c: added
960
961 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
962
963         * src/SDCCast.c (decorateType): fix promotion of unary minus
964         * src/SDCCsymt.c (computeType): beautified
965         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
966         (valUnaryPM, valComplement): fix sign and promotion,
967         (valNot): ANSI: result type is int (SDCC: unsigned char)
968         * support/regression/tests/uminus.c: speedup by removing superflous
969         test case 'int'
970         * support/regression/tests/onebyte.c: added promotion and signedness
971         tests for unary minus
972         * support/regressions/tests/bug-477927.c: disable warning about
973         uninitialized variables
974         * support/regression/tests/not.c: added
975
976 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
977
978         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
979         * src/mcs51/gen.c (gen51Code): show final register usage after
980         fillGaps in asm with --i-code-in-asm
981         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
982         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
983         incUsed, rliveClear, adjustIChain): made static,
984         (setFromRange): excluded because it's unused,
985         (findPrevUseSym, markWholeLoop): added,
986         (findPrevUse): rewritten; fixes bug 895992; now a complete search
987         through all branches of predecessors enables sdcc to emit the warning
988         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
989         (rlivePoint): made static, added parameter emitWarnings which is only
990         true during the first run out of two,
991         (findRecursiveSucc, findRecursivePred): removed,
992         (computeLiveRanges): made static, added parameter emitWarnings,
993         (dumpIcRlive): added for debugging only
994         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
995         removed prototype of setFromRange()
996         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
997         in call of computeLiveRanges()
998         * support/regression/tests/bug-895992.c: added
999         * support/regression/tests/bug-971834.c: added
1000         * support/valdiag/tests/bug-895992.c: added
1001         * support/valdiag/tests/bug-971834.c: added
1002
1003 2005-12-18 Raphael Neider <rneider AT web.de>
1004
1005         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
1006           (genUnpackBits): improved code for direct operands,
1007           (genPackBits): improved code for literal assignment to bitfields
1008             and for direct destination operands (no FSR indirection),
1009             prevented redundant AND, fixes #1362800,
1010           (AccLsh): added parameter to disable masking of the result
1011         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
1012           skip instructions with side-effects (like incfsz),
1013           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
1014         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
1015         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
1016           fixes #1375263
1017
1018 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
1019
1020         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
1021         volatile variables as spill location
1022
1023 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
1024
1025         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
1026         replacing literals
1027         * support/regression/tests/bug-1376320.c: added
1028
1029 2005-12-08 Raphael Neider <rneider AT web.de>
1030
1031         * src/pic/device.c: renamed is_shared to pic14_is_shared
1032         * src/pic/gen.c (genIfx): re-enabled handling of sbits
1033         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
1034           (is_valid_identifier): added for above workaround
1035
1036 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
1037
1038         * device/lib/Makefile.in: fixed to enable port-specific-objects
1039         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
1040           char, thanks Hubert Sack
1041         * doc/sdccman.lyx: documented --xstack-loc,
1042           elaborated a bit more on interrupts and pitfalls,
1043           removed "setjmp/longjmp unsupported",
1044           documented some unsupported C99 features
1045         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
1046         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
1047           if, thanks Hubert Sack
1048         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
1049         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
1050           make make_library
1051         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
1052           regression tests can report resource usage (rfe 700441)
1053         * support/regression/collate-results.py: report resource usage
1054         * support/regression/ports/ds390/spec.mk,
1055         * support/regression/ports/hc08/spec.mk,
1056         * support/regression/ports/mcs51/spec.mk,
1057         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
1058         * support/regression/ports/ds390/uCsim.cmd,
1059         * support/regression/ports/hc08/uCsim.cmd,
1060         * support/regression/ports/mcs51/uCsim.cmd,
1061         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
1062         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
1063           library, use the default one
1064         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
1065           building the library
1066
1067 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1068
1069         * config.dsp: added dependency on .version and configure_vc.awk
1070         * device/include/setjmp.h: updated for --stack-auto and --xstack
1071         * device/include/mcs51/at89c51snd1c.h: corrected line endings
1072         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
1073         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
1074         * device/lib/libsdcc.lib: added _setjmp
1075         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
1076           (decorateType): fixed bug 1372851,
1077           (optimizeGetHbit): fixed warning
1078         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
1079           array initialisation
1080         * support/regression/tests/bug1057979.c: added test for bug 1358192
1081         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
1082
1083 2005-12-03 Borut Razem <borut.razem AT siol.net>
1084
1085         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
1086           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
1087
1088 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1089
1090         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
1091         createIval): implement symbol independant "flexible array member",
1092         (createIvalCharPtr): implemented flexible array initialisation with a
1093         string
1094         * src/SDCCsymt.c (copyStruct): removed,
1095         (getSize): fixed misleading comment,
1096         (getAllocSize): removed, the additional allocation size is now in
1097         sym->flexArrayLength,
1098         (checkStructFlexArray): new, syntax checks for flexible array members,
1099         (compStructSize): added syntax checks for "flexible array members"
1100         (copyStruct): removed,
1101         (copyLinkChain): removed inefficient fix for bug 770487
1102         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
1103         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
1104         symbol->flexArrayLength
1105         * src/SDCCerr.c,
1106         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
1107         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
1108         * support/regression/tests/structflexarray.c: added
1109         * support/valdiag/tests/structflexiblearray.c: added
1110
1111 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1112
1113         * src/SDCCast.c (decorateType): fixed bug 1368489
1114         * support/Util/SDCCerr.c,
1115         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
1116
1117 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1118
1119         * device/include/mcs51/at89c51snd1c.h: added file submitted by
1120           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
1121
1122 2005-11-27 Borut Razem <borut.razem AT siol.net>
1123
1124         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
1125           support/cpp2/mkdeps.h: added command line option
1126           -obj-ext=<extension> to SDCPP to define object file externion, used
1127           for generation of make dependencies (-M)
1128         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
1129
1130 2005-11-26 Borut Razem <borut.razem AT siol.net>
1131
1132         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
1133           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
1134           added pic and pic16 libraries
1135
1136 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1137
1138         * device/include/float.h: Corrected typo in prototype of __fsgt
1139
1140 2005-11-25 Borut Razem <borut.razem AT siol.net>
1141
1142         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
1143           added creation of model-mcs51-stack-auto libraries
1144
1145 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
1146
1147         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
1148         and fields-list too
1149         * src/SDCCast.c (createIvalArray): removed obsolete comment
1150
1151 2005-11-24 Borut Razem <borut.razem AT siol.net>
1152
1153         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
1154           added missing device/lib/mcs51/crt*.asm sources
1155
1156 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
1157
1158         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
1159
1160 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
1161
1162         * device/lib/_fs2schar.c,
1163         * device/lib/_fs2sint.c,
1164         * device/lib/_fs2slong.c: optimized inline asm
1165
1166 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1167
1168         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1169           Better handling of floats between -1.0 and 0.0.
1170
1171 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1172
1173         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
1174           (the missing "if"s prohibited removal of redundant labels)
1175
1176 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1177
1178         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1179           Properly convert floats between -1.0 and 0.0 to long, int, and char
1180           types (max integer value of negative floats tends to zero).
1181         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1182           Removed changes made so to work properly with floats between
1183           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
1184           and _fs2char.c
1185
1186 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1187
1188         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
1189         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
1190         (genCast) cosmetic change
1191         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
1192         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
1193         from mcs51
1194         * support/regression/tests/bitfields (testSignedBitfields): added
1195
1196 2005-11-18 Borut Razem <borut.razem AT siol.net>
1197
1198         * sdcc/device/lib/Makefile.in: remove all unnecessary files
1199         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
1200           introduced SILENT option to make building of pic16 libraries less
1201
1202 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1203
1204         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1205           Now they work properly with floats between -1.0 and 0.0
1206         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
1207
1208 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1209
1210         * src/SDCCicode.c (printOperand): added missing else
1211
1212 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1213
1214         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
1215         reformatted for better readability
1216         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
1217         signed bitfields
1218
1219 2005-11-17 Borut Razem <borut.razem AT siol.net>
1220
1221         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
1222           introduced SILENT option to make building of pic16 libraries less
1223           verbose - used for nightly snapshot build
1224         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
1225           available on Win32 platforms.
1226         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
1227           medium, large, pic and pic16
1228
1229 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1230
1231         * device/lib/printf_large.c: Temporary patch for bug 1358192:
1232           printf("%f"...) sets fraction to zero.
1233
1234 2005-11-16 Raphael Neider <rneider AT web.de>
1235
1236         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
1237           fixes #1357221
1238         * src/pic/gen.c (genIfx): implemented for CARRY bit
1239         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
1240           to generic pointers, fixes #1357332,
1241           (pic16_movLit2f): NEW,
1242           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
1243
1244 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1245
1246         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
1247
1248 2005-11-11 Raphael Neider <rneider AT web.de>
1249
1250         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
1251         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
1252           compute pointer's type from operand,
1253           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
1254           improved single bit reads, fixes bug #1353379
1255
1256 2005-11-09 Borut Razem <borut.razem AT siol.net>
1257
1258         * support/scripts/sdcc.nsi: added lib/pic to the package
1259
1260 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
1261
1262         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
1263
1264 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1265
1266         * support/regression/tests/bug1348008.c: added
1267         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
1268         * support/regression/tests/bug1337835.c: updated comment
1269
1270 2005-11-06 Borut Razem <borut.razem AT siol.net>
1271
1272         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1273           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1274           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1275           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1276           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
1277           dynamic construction of cl_error_class and derivates - 2.nd try
1278
1279 2005-11-05 Borut Razem <borut.razem AT siol.net>
1280
1281         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
1282           bug, which caused Bus Errors on sparc solaris
1283
1284 2005-11-04 Borut Razem <borut.razem AT siol.net>
1285
1286         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1287           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1288           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1289           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1290           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
1291           and derivates to resolve the initialization problem on OSX
1292
1293 2005-11-02 Borut Razem <borut.razem AT siol.net>
1294
1295         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1296           corrected typo - #include <winsock2.h>
1297
1298 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
1299
1300         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
1301           (_asxxxx_mapping): added org directive for future enhancements
1302
1303 2005-11-01 Borut Razem <borut.razem AT siol.net>
1304
1305         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1306           enabled sockets on WIN32
1307         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
1308
1309 2005-10-31 Borut Razem <borut.razem AT siol.net>
1310
1311         * support/regression/generate-cases.py: escape backslashes in {testcase}:
1312           WIN32 backslash path delimiters should be escaped when used in C strings
1313         * support/regression/tests/bitfields.c: exclude failing assertions for
1314           __CYGWIN32__ and __MINGW32__ hosts
1315
1316 2005-10-30 Borut Razem <borut.razem AT siol.net>
1317
1318         * src/SDCCutil.c: corrected double comparison typo
1319
1320 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
1321
1322         * device/lib/medium/Makefile: added for new memory model medium
1323         * device/include/asm/mcs51/features.h: updated for medium/pdata
1324         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
1325           added Multiply & Accumulate sbit's and MAC0_PAGE define
1326         * device/include/mcs51/c8051f300.h: added sfr16 definitions
1327         * device/include/mcs51/c8051f310.h: added sfr16 definitions
1328         * device/lib/_mullong.c: update for medium model
1329         * device/lib/incl.mk: added medium model
1330         * doc/sdccman.lyx: documented medium model
1331         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
1332         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
1333         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
1334         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
1335           (allocParms): set SCLS and OCLS to pdata for medium model
1336         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
1337           for pdata,
1338           (powof2): return <0 if not power of 2
1339         * src/avr/gen.c (genBitWise): use updated powof2
1340         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
1341           (shiftR2Left2Result): small optimization in setup, save acc when storing,
1342           (shiftLLeftOrResult): use B if necessary
1343         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
1344         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
1345         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
1346         * support/regression/Makefile.in: added test-mcs51-medium
1347         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
1348
1349 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1350
1351         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
1352         specifier unsigned
1353         * device/lib/time.c (mktime): fixed bug 1334315
1354
1355 2005-10-28 Raphael Neider <rneider AT web.de>
1356
1357         * device/include/pic/p16f_common.inc: added common declarations
1358         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
1359
1360 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1361
1362         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
1363           (aopPutUsesAcc): added to predict accumulator use,
1364           (assignResultValue): save acc if necessary,
1365           (genMinusDec): store result if indirectly addressed,
1366           (genDivOneByte):  save acc if necessary,
1367           (movLeft2Result): bugfix if left already in acc,
1368           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
1369             attention to accumulator use (esp. pdata),
1370           (genReceive): receive pdata correctly
1371         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
1372         * src/SDCCicode.h: added isOperandInPagedSpace prototype
1373
1374 2005-10-27 Raphael Neider <rneider AT web.de>
1375
1376         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
1377
1378 2005-10-27 Raphael Neider <rneider AT web.de>
1379
1380         * .version: changed version to 2.5.4
1381         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
1382         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
1383           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
1384             arithmetics support routines
1385         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
1386         * device/lib/Makefile.in: also create installdir for pic
1387
1388         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
1389           pic14 port as well
1390         * src/pic/device.c (dump_sfr): rewritten to delegate register
1391           placement to the linker (use `extern sym' rather than sym EQU addr),
1392           (validAddress): fixed to check last specified address
1393         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
1394           (popGetLit): truncate literal value to 8 bit,
1395           (popGet): moved assert to more appropriate place
1396           (popGetExternal): create pCode operand from and mark the according
1397             symbol as being `extern'
1398           (popGetAddr): added sanity check on immediate's offset, provide
1399             GPOINTER tag on demand
1400           (aopPut): fixed for immediates,
1401           (mov2w_op): move operand's address or contents to WREG (depending on
1402             operand type), safer variant of mov2w,
1403           (movwf,call_libraryfunc): NEW, handy abbreviations,
1404           (get_argument_pcop,get_return_val_pcop,pass_argument,
1405           get_returnvalue): interface for accessing function parameters and
1406             return values,
1407           (assignResultValuei,genRet): use new parameter/return value interface
1408           (pic14_getDataSize): back to old version handling generic pointers,
1409           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
1410             provided implementation and/or fixed old one,
1411           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
1412             calls, removed legacy 8051 reference code
1413           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
1414           (loadSignToC): NEW, move the operands sign bit to CARRY,
1415           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
1416             genRightShiftSigned, accepts negative shift counts,
1417           (setup_fsr): load FSR and adjust IRP (indirect memory access),
1418           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
1419             generic pointers, __data pointers and __code pointers,
1420           (genUnpackBits,genPackBits): rewritten to work with generic pointers
1421             and signed bitfields, limit bitfields to 8 bit,
1422           (genDataPointerGet): fixed number of bytes read,
1423           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
1424           (genPointerGet,genPointerSet): fixed handling of __code pointers,
1425             pointers to constant data are no longer assumed to point to __code
1426             space, removed invalid pointer types,
1427           (bitpatternFromVal): retrieve the PICs representation of an integer
1428             or float literal,
1429           (genDataPointerSet): fixed assigning to po_immediate operands,
1430           (genGenPointerSet): implemented as library call,
1431           (genIfx): fixed incorrect condition,
1432           (genAddrOf): limit generic pointers' addresses to 2 bytes,
1433             provide GPOINTER tag according to destination's storage class,
1434           (genCast): added code to handle casting to generic pointers, added
1435             sign-/zero extension of the result
1436           (aop_isLitLike,op_isLitLike): fixed handling of immediates
1437         * src/pic/gen.h: added macros to access IRP bit in STATUS register
1438         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
1439           extend the result
1440         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
1441           address/register resides in the shared banks
1442           (emitSymbolToFile): improved to handle global and `pinned' symbols,
1443             put all variables into separate sections (have the linker arrange
1444             them)
1445           (picglue): put init code and interrupt handlers in separate sections
1446         * src/pic/main.c: added port specific options table, modified to PORT
1447           structure to make GPOINTERs 3 byte, added pic14_options
1448           (_pic14_do_link): private linking routine (update paths to libraries,
1449             add libsdcc.lib by default)
1450         * src/pic/main.h: declare pic14_options
1451         * src/pic/pcode.c: fixed instructions i/o relations,
1452           (RegCond): reverted to correct version,
1453           (newpCodeOpLit): truncate literals to 8 bit,
1454           (genericPrint): added debug output,
1455           (getRegFromInstruction): fixed for various operand types, simplified
1456           (BuildFlow): fixed broken handling of isntructions with labels
1457           (LinkFlow): start at last instruction in flow (skip trailing comments),
1458             pass the flow on to the next instruction after CALL
1459           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
1460           (insertPCodeInstruction): fixed inserting after a skip instruction,
1461           (DoBankSelect): fixed for labeled instructions
1462           (OptimizepBlock): honor --nopeep switch
1463           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
1464         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
1465         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
1466           (pCodeOptime2pCodes): allow disabling this optimization via
1467             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
1468             but is still buggy), started implementation of a dataflow based
1469             pCode optimization (CSE + dead code elimination)
1470           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
1471         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
1472           names are independant of the stack location and therefore portable across
1473           devices
1474
1475 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1476
1477         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
1478           (selectSpil): fixed bug 1337835 by not spilling bit variables
1479         * support/regression/tests/bug1337835.c: added test for this bug
1480         * src/mcs51/peeph.def: restart after rule 3.c,
1481           addded rules 263.x to optimize loading constants
1482
1483 2005-10-26 Raphael Neider <rneider AT web.de>
1484
1485         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
1486         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
1487           (genAssign): emit warning when casting literals to generic pointer
1488             type, also applies when taking the address of a fixed variable,
1489           (genCast): improved casting to generic pointers
1490         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
1491           extern variables, added verbose error message
1492         * device/include/pic16/{string.h,errno.h}: added #pragma library c
1493
1494 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
1495
1496         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
1497         carry must be complemented too
1498         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
1499         could be emitted by genMinus
1500         * src/SDCCval.c (constVal): fixed bug 1305065
1501
1502 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
1503
1504         * src/SDCCast.c (addCast): added promotion for bit variables
1505         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
1506         promotion casts + optimisation
1507         (optimizeGetWord): fix warning 'i' might be used uninitialized
1508         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
1509         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
1510
1511 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
1512
1513         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
1514         all chars are promoted to int; promotion should be handled in SDCCast.c
1515
1516 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1517
1518         * device/lib/_strcmp.c: Fixed bug 1326457
1519
1520 2005-10-11 Raphael Neider <rneider AT web.de>
1521
1522         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
1523         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
1524
1525 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1526
1527         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
1528         * support/regression/tests/sfr16.c: added test for the sfr32 bug
1529
1530 2005-10-04 Raphael Neider <rneider AT web.de>
1531
1532         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
1533           device/lib/pic16/pics.all: added pic18f1320
1534         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
1535
1536 2005-09-30 Raphael Neider <rneider AT web.de>
1537
1538         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
1539         * src/pic16/devices.inc: NEW, provides device descriptions
1540         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
1541
1542 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1543
1544         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
1545           GETHBIT
1546
1547 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
1548
1549         * doc/sdccman.lyx: updated Highest Order Bit documentation,
1550           documented Any Order Bit, Higher Order Byte and Higher Order Word
1551         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
1552         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
1553           (optimizeGetAbit): new, to get any bit, not only the high bit,
1554           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
1555           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
1556           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
1557           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
1558             RIGHT_OP: also try GETBYTE, GETWORD optimization,
1559             GETABIT, GETBYTE, GETWORD: decorate them,
1560           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
1561           (ast_print): added GETABIT, GETBYTE, GETWORD
1562         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
1563         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
1564           (geniCodeBinary): new generic binary icode,
1565           (ast2iCode): added GETABIT, GETBYTE, GETWORD
1566         * src/port.h: updated comment for PORT.hasExtBitOp
1567         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
1568           (genGetByte): new, to get a single byte,
1569           (genGetWord): new, to get a word from a long,
1570           (gen51Code): added GETABIT, GETBYTE, GETWORD
1571         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
1572
1573 2005-09-23 Raphael Neider <rneider AT web.de>
1574
1575         * configure.in, configure: have device/lib/pic configured
1576         * device/lib/Makefile.in: added model-pic14
1577         * device/lib/clean.mk: added pic/ to clean rule
1578         * device/lib/pic: added rudimentary pic14 library providing support
1579           functions for multiplication/division/generic pointer access
1580         * src/SDCCopt.c (convilong): mark support functions as extern
1581           for pic14 port as well
1582         * src/pic/gen.c (genMult): added assertions,
1583           (genpic14Code): emit warning on unhandled iCodes
1584         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
1585         * src/pic/pcode.c (pCodeOpCopy),
1586         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
1587           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
1588           SFR_REGISTER}), made safe for future extensions
1589         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
1590           instructions even if preceeded by SKIP instructions (also remove
1591           them); removed unused code
1592         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
1593           prevents leaving parts of the structure uninitialized after copying
1594
1595 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
1596
1597         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
1598           ago by me
1599         * support/regression/tests/addsub.c: added test for the bug
1600
1601 2005-09-21 Raphael Neider <rneider AT web.de>
1602
1603         * device/include/pic16/pic18f1220.h,
1604           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
1605         * device/lib/pic16/Makefile.rules: added missing opening paren
1606         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
1607           are provided in genutils.c,
1608           (genUminusFloat,genUminus,genCmpEq): added asserts on different
1609           operand/result sizes,
1610           (genCmp): assert on NULL pointers first, then check deref'ed values
1611         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
1612           result size
1613
1614 2005-09-18 Raphael Neider <rneider AT web.de>
1615
1616         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
1617           as these are now unused,
1618           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
1619         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
1620           local, avoids uninitialized pointer dereference on r->name
1621         * src/pic16/ralloc.c (newReg): fixed indentation
1622
1623 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
1624
1625         * src/SDCCval.c (constVal): fixed bug 730366
1626         * support/Util/SDCCerr.c,
1627         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
1628
1629 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1630
1631         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
1632
1633 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
1634
1635         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
1636
1637 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1638
1639         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
1640           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1641         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
1642           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1643         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
1644         * packihx/packihx.c (hexDigit): made c unsigned char
1645         * as/mcs51/lklibr.c (fndsym),
1646         * link/z80/lkgb.c (gb),
1647         * link/z80/lklibr.c (fndsym),
1648         * link/z80/lkrloc.c (relr),
1649         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
1650         * src/SDCC.lex (checkCurrFile, process_pragma),
1651         * src/SDCCglue.c (spacesToUnderscores),
1652         * src/SDCCmain.c (setParseWithComma, processFile),
1653         * src/asm.c (tvsprintf, printCLine),
1654         * src/avr/gen.c (emitcode, aopPut),
1655         * src/ds390/gen.c (emitcode),
1656         * src/hc08/gen.c (emitcode, emitinline),
1657         * src/mcs51/gen.c (emitcode, genInline),
1658         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1659           tokenizeLineNode),
1660         * src/pic/ralloc.c (debugLog),
1661         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1662           tokenizeLineNode),
1663         * src/pic16/ralloc.c (debugLog),
1664         * src/z80/main.c (_process_pragma):
1665            made all ctype.h function calls safe
1666         * src/SDCCopt.c: include math.h for fabs
1667         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
1668           and used them throughout the code to make ctype.h function calls safe
1669         * src/ds390/main.c (asmLineNodeFromLineNode),
1670         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
1671         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
1672            unsigned char*
1673         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
1674           (newpCodeAsmDir): made ctype.h function calls safe
1675         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
1676           pic16_emitcode):  made lbp unsigned char*
1677         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
1678           (pic16_newpCodeAsmDir): made ctype.h function calls safe
1679         * src/xa51/gen.c (emitcode),
1680         * src/z80/gen.c (_emit2): made lbp unsigned char*
1681         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
1682            char*
1683
1684 2005-09-05 Raphael Neider <rneider AT web.de>
1685
1686         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
1687           access bank splitpoint
1688
1689 2005-09-05 Raphael Neider <rneider AT web.de>
1690
1691         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
1692
1693 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
1694
1695         * .version: changed to version 2.5.3
1696         * doc/sdccman.lyx: changed version to 2.5.3,
1697           documented --codeseg and --constseg and pragma codeseg and constseg,
1698           documented bit parameters (reentrant) and bit returning
1699         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
1700            currFunc->recvSize, but is this ok for all ports?
1701           (ast2iCode): result of ~ on unsigned char must be cast to int for
1702            bool to work
1703         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
1704           function pointers in bit space
1705         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
1706           (processFuncArgs): call port.reg_parm() with reentrancy info
1707         * src/port.h,
1708         * src/avr/main.c,
1709         * src/ds390/main.c,
1710         * src/hc08/main.c,
1711         * src/pic/main.c,
1712         * src/pic16/main.c,
1713         * src/xa51/main.c,
1714         * src/z80/main.c: port.reg_parm prototype extended with
1715           "bool reentrant" parameter
1716         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
1717           options.stackAuto for allocating bit register parameters
1718         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
1719           (genSend): set BitBankUsed if it is,
1720           (selectRegBank): factored out of genCall for use in genPcall,
1721           (genCall): removed redundant dtype assignmen, use selectRegBank,
1722           (genPcall): handle returning in Carry properly, save in F0 if needed,
1723           (genReceive): handle bit register parameters
1724         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
1725           (mcs51_assignRegisters): enable bit registers for all reentrant
1726            functions and don't set BitBankUsed unconditionally
1727         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
1728         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
1729         * support/regression/tests/funptrs.c: added tests for BOOL and for return
1730
1731 2005-08-27 Borut Razem <borut.razem AT siol.net>
1732
1733         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
1734         ppc-osx (Darwin) does not support -u option. It seems that it is
1735         supported only on Linux - GNU cp
1736
1737 2005-08-25 Borut Razem <borut.razem AT siol.net>
1738
1739         * sim/ucsim/gui.src/serio.src/Makefile.in,
1740           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1741           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1742           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
1743           install and strip, since the strip at /usr/ccs/bin should be used
1744           on solaris
1745
1746 2005-08-24 Borut Razem <borut.razem AT siol.net>
1747
1748         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
1749
1750 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
1751
1752         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
1753         ffffffffu
1754
1755 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
1756
1757         * as/mcs51/aslink.h: completed lkrloc.c prototypes
1758         * as/mcs51/lkmain.c (link_main): fixed warning
1759         * device/include/stdbool.h: ds390 has no advanced bit support yet
1760         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
1761         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
1762         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
1763           and updated their macros
1764         * src/SDCCval.c (constVal): updated comment for renamed b_long
1765
1766 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
1767
1768         * as/mcs51/asdata.c: changed ctype['['] to BINOP
1769         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
1770           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
1771           (oprio): set priority for '['
1772         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
1773            and adb_24_bit
1774         * as/mcs51/asm.h: added defines R_BIT and S_BIT
1775         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
1776         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
1777         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
1778           added overlayable BIT_BANK area
1779         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
1780           (summary2): explain 'T' in legenda
1781         * as/mcs51/lkrloc.c: replaced old K&R style,
1782           (relr): added R_BIT processing,
1783           (errmsg): added "Bit-addressable relocation error",
1784           (adb_bit): added for converting from byte- to bit-addressable space,
1785           (adb_24_bit): added for converting from byte- to bit-addressable space
1786         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
1787            used in reentrant functions now even as return value
1788         * device/lib/_gptrput.c (_gptrput): removed obsolete code
1789         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
1790           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
1791         * src/SDCCglobl.h: added indicator BitBankUsed
1792         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
1793            the bit registers b0-b7
1794         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
1795           (geniCodeCast): fixed bug 1263853,
1796           (geniCodeLogicAndOr): put result in bool or char,
1797           (geniCodeReceive): added parameter func for accessing the return type,
1798           (geniCodeFunctionBody): pass func to geniCodeReceive
1799         * src/SDCCmain.c: added indicator BitBankUsed
1800         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
1801         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
1802           (checkSClass): don't put automatic bool/bit on stack,
1803           (checkFunction): removed check on function cannot return bit
1804         * src/SDCCsymt.h: added newBoolLink prototype
1805         * src/mcs51/gen.c (rb1regs): added bit registers,
1806           (movc): created for assigning to carry,
1807           (pushReg, popReg): created for pushing registers,
1808           (sameRegs): check both AOP_REG and AOP_CRY types,
1809           (aopOp): handle bit registers,
1810           (aopPut): optimization no self-assign,
1811           (saveRegisters): push reg->base (bits) only once for bit registers,
1812            and use pushReg,
1813           (unsaveRegisters): pop reg->base only once and use popReg,
1814           (assignResultValue): added parameter func and return in carry for bits,
1815           (genIpush): optimization no reload in A if not changed,
1816           (genSend): bit parameters in reentrant functions are passed in bit
1817            registers by first assigning to bits in B, then save registers and
1818            copy B to bits,
1819           (genCall): handle returning in Carry properly, save it in F0 if needed,
1820           (genPcall): updated assignResultValue call, this is not safe yet for bit
1821            returning function !!!
1822           (genFunction): don't generate equ's for bit registers and use pushReg,
1823           (genEndFunction): take care of bit returning functions and use popReg,
1824           (genRet): return bit in Carry,
1825           (genIfx): optimize bit registers and other directly addressable bits,
1826           (genReceive): updated assignResultValue call
1827         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
1828           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
1829            registers when using stack-auto
1830         * src/mcs51/ralloc.c (_G): added allBitregs,
1831           (regs8051): added the bit registers,
1832           (createStackSpil): use macro IS_BIT,
1833           (getRegBit): added to allocate a bit register, else spill,
1834           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
1835           (updateRegUsage): factored out to ease stepping while debugging,
1836           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
1837            also allocate bit registers,
1838           (fillGaps): handle bit registers,
1839           (findAllBitregs): added to create bit vector with all bit registers,
1840           (mcs51_allBitregs): returns this bit vector,
1841           (mcs51_assignRegisters): when using stack-auto use bit registers for
1842            passing parameters and creating local variables
1843         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
1844
1845 2005-08-22 Borut Razem <borut.razem AT siol.net>
1846
1847         * device/lib/Makefile.in: replaced find option -or with -o
1848           to make it run on solaris
1849
1850 2005-08-22 Raphael Neider <rneider AT web.de>
1851
1852         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
1853           fixes #1265442 (crash on Solaris)
1854
1855 2005-08-20 Borut Razem <borut.razem AT siol.net>
1856
1857         * configure, configure.in: added tests for libsocket and libnsl libraries,
1858           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
1859           from support/regression/Makefile.in
1860         * support/regression/Makefile.in: added
1861         * device/lib/pic16/Makefile.common.in: force make to use bash shell
1862         * sim/ucsim/libtool: regenerated on sparc-solaris
1863         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1864           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
1865           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
1866           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
1867           sparc-solaris, which doesn't use GNU ld linker
1868         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
1869         * as/Makefile: find on sparc-solaris does not support -maxdepth option
1870
1871 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
1872
1873         * src/mcs51/peeph.def: updated comments
1874
1875 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1876
1877         * device/lib/_gptrget.c,
1878         * device/lib/_gptrput.c: slightly shorter
1879         * doc/sdccman.lyx: incremented version
1880         * src/mcs51/peeph.def: moved peephole comments to the line of first
1881           change to better keep line correlation, reanimated 186.e
1882         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
1883
1884 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
1885
1886         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
1887           David Saxton with quotes around file name.
1888
1889 2005-08-15 Borut Razem <borut.razem AT siol.net>
1890
1891         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
1892           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
1893           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
1894           make tests run on x86_64 platform
1895
1896 2005-08-13 Raphael Neider <rneider AT web.de>
1897
1898         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
1899           as it might be executed DURING a build (parallel make is wonderful)
1900
1901 2005-08-13 Raphael Neider <rneider AT web.de>
1902
1903         * device/lib/Makefile.in (port-specific-objects-pic16):
1904           revert to cp $(PORT)/bin/*.* $(PORTDIR)
1905         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
1906           dependency
1907         * device/lib/pic16/Makefile.rules: build subdirs before creating
1908           the library, removed builddir rule, create $(builddir) early in
1909           recurse rule, use empty recurse rule for leaf directories
1910         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
1911           mkdir errors (race condition), removed duplicate suffix "hex"
1912           from clean rules
1913         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
1914         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
1915           prevents mkdir -p from aborting on Alpha
1916
1917 2005-08-12 Raphael Neider <rneider AT web.de>
1918
1919         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
1920           db-statements in order to allow for arrays of pointers in code
1921           sections to be placed without interspersed 0-padding, fixes
1922           bug #1256215
1923         * (emitStatistics): fixed division by zero for pic18f1220
1924         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
1925           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
1926         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
1927         * (pic16_pCodeConstString): keep track of already emitted string
1928           literals to prevent "duplicate definitions of symbol _str_NR"
1929         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
1930           debug message
1931         * device/lib/Makefile.in: ignore failing PIC16 library builds
1932         * device/lib/pic16/Makefile: do not build if gputils are missing
1933         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
1934
1935 2005-08-10 Raphael Neider <rneider AT web.de>
1936
1937         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
1938           my last commit)
1939
1940 2005-08-10 Raphael Neider <rneider AT web.de>
1941
1942         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
1943           Rokas' patch to add the new fixed point type "__fixed16x16"
1944         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
1945           functions for __fixed16x16 arithmetics
1946         * device/lib/pic16: reimplemented the build system to support
1947           a separate build directory, better handling of libio (create
1948           the library in a separate subdir for each architecture) and
1949           easier configuration (centralized in Makefile.common)
1950
1951 2005-08-07 Raphael Neider <rneider AT web.de>
1952
1953         * src/pic16/gen.c (genrshTwo): fixed sign extension
1954         * src/pic16/device.c: added pic18f2320, 4220 and 4320
1955         * device/include/pic16/pic18f2220.h: changed some bit definitions,
1956           added T0CONbits
1957         * device/include/pic16/pic18f4220.h: NEW, header for
1958           pic18f4220 and pic18f4320
1959         * device/include/pic16/pic18fregs.h: added new devices,
1960           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
1961         * device/include/pic16/signal.h: resolved name clashes
1962           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
1963           to also allow testing for interrupt enable bits, added
1964           comments on how to use the macros
1965         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
1966         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
1967           register definitions for the devices
1968         * device/lib/pic16/pics.all: added new devices
1969         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
1970           allocated memory
1971         * device/lib/pic16/libc/stdlib/memfree: do not count
1972           the block header as free memory
1973         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
1974           simplified and added missing end-of-blocklist-marker
1975           (reported by Peter Onion, fixes #1252814)
1976         * (_mergeHeapBlock): fixed loop condition
1977         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
1978           len==0, restructured code
1979         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
1980           up a bit, reduced bitfield accesses, prevent endless loops
1981           in case of heap corruption
1982         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
1983           "unreferenced arguments/must return a value" warnings
1984         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
1985           replaced BAUDREG with SPBRG
1986         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
1987           device/lib/pic16/debug/gstack/gstack.c: replaced
1988           _naked, _asm, _endasm with __naked, __asm, __endasm
1989
1990 2005-08-05 Raphael Neider <rneider AT web.de>
1991
1992         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
1993           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
1994
1995 2005-08-05 Borut Razem <borut.razem AT siol.net>
1996
1997         * device/lib/Makefile.in: added missing ';'
1998         * configure: removed ^M characters
1999
2000 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2001
2002         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
2003           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
2004           License
2005
2006 2005-08-04 Borut Razem <borut.razem AT siol.net>
2007
2008         * configure.in: pic16 libraries build 2nd try - enable running
2009           configure in device/lib/pic16
2010         * configure: regenerated from configure.in
2011         * device/lib/Makefile.in: create $(PORT)/bin directory
2012
2013 2005-08-03 Raphael Neider <rneider AT web.de>
2014
2015         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
2016           to get/set values via pointers
2017         * (genUnpackBits,genPackBits): changed detection of
2018           ptr->bitfield vs. sym.bitfield, fixed access via generic
2019           pointers, removed dead (wrong) code for multibyte bitfields
2020         * (genNearPointerGet, genGenPointerGet): removed useless code,
2021           fixed bitfield detection, fixes #1250594
2022         * (genNearPointerSet): removed useless code
2023         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
2024           and introduced macro pic16_emitpcode that conditionally emits
2025           the origin of the following pCode (useful for debugging SDCC)
2026         * src/pic16/pcode.c: changed (and disabled) some debug outputs
2027         * (createDefmap): fixed handling of LFSR for --optimize-df
2028
2029 2005-08-02 Borut Razem <borut.razem AT siol.net>
2030
2031         * device/lib/Makefile.in: pic16 libraries build enabled since
2032           gputils-0.13.2 are now localy installed at sourceforge's compile farm
2033
2034 2005-08-02 Raphael Neider <rneider AT web.de>
2035
2036         * src/pic16/gen.c (genPackBits): removed deprecated warning
2037         * (genGenPointerSet): fixed bitfield detection
2038
2039 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2040
2041         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
2042
2043 2005-07-31 Raphael Neider <rneider AT web.de>
2044
2045         * device/lib/pic16/libdev/pic18f458.c,
2046           device/include/pic16/pic18f458.h: added missing T0CONbits
2047
2048 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
2049
2050         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
2051
2052 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
2053
2054         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
2055
2056 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2057
2058         * device/include/mcs51/at89c51ed2.h: added.
2059
2060 2005-07-23 Raphael Neider <rneider AT web.de>
2061
2062         * src/pic/gen.h: added emitpcode macro for debugging
2063         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
2064           and replace by macro adding debug information on demand
2065         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
2066         * (gencjne): tried to fix; replaced with correct (slower) code
2067         * (gen{Unp,P}ackBits): fixed single bit access
2068         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
2069         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
2070           previous instruction
2071         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
2072           register has to be handled with care (forbidding movement
2073           of assignments/uses, removing assignments completely, ...)
2074         * (pCodeOptime2pCodes): make use of regIsSpecial
2075         * added lots of debugging output (commented out)
2076         * src/pic/rallloc.c (deassignLRs): prevent operand registers
2077           from being reused as result UNLESS it is known to work
2078
2079 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2080
2081         * support/Util/dbuf.h: include <stddef.h> for size_t
2082         * .version: changed to version 2.5.2
2083
2084 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2085
2086         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
2087
2088 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2089
2090         * src/hc08/gen.c (genMinus): fixed bug #1241835,
2091           (genModOneByte): removed needless psha/pula
2092
2093 2005-07-22 Raphael Neider <rneider AT web.de>
2094
2095         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
2096           have PIC14 handled like PIC16, fixes broken pic14 linker calls
2097         * src/pic/gen.c (resolveIfx): do not "invent" labels
2098         * (genSkipc): changed to positive logic
2099         * (genSkipCond): removed as no longer needed
2100         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
2101           backport from PIC16
2102         * (genLeftShift): check operands are in different registers
2103         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
2104           INCF does not update CARRY...
2105         * src/pic/main.c: fixed _linkCmd
2106         * src/pic/pcode.c (unlinkpCode): added inactive code
2107         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
2108           alive (do not assign result and operand overlapping registers)
2109
2110 2005-07-22 Raphael Neider <rneider AT web.de>
2111
2112         * src/pic/device.c (dump_sfr): replaced register declaration with
2113           call to emitSymbolToFile() to avoid duplicate symbols
2114         * (assignRelocatableRegisters): do not declare external symbols
2115         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
2116           right (take size of type, not etype)
2117         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
2118         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
2119         * (packRegsForAccUse): disabled assignment of WREG as
2120           the result reg to prevent occurence of just fixed #1235003,
2121           fixes #1242954
2122         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
2123           symbols (avoids duplicate symbols in .asm file)
2124         * (pic14emitRegularMap): use emitSymbolToFile()
2125         * src/pic/gen.c (aopOp): fixed spillLocation handling
2126         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
2127         * (genDataPointerSet): removed unneccessary variables/output
2128
2129 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
2130
2131         * as/mcs51/lkarea.c: enlarged codemap for banked memory
2132         * device/lib/mcs51/crtbank.asm: added # to 0x0F
2133
2134 2005-07-21 Raphael Neider <rneider AT web.de>
2135
2136         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
2137           architecture cannot handle them efficiently, fixes bug #1235003
2138         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
2139           check for empty sets before using them (fixes bug #1232190)
2140
2141 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
2142
2143         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
2144           (lnksect2): generate warnings for memory overlap
2145         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
2146           constseg to set the name of these segments so you can instruct the linker
2147           to place them in banks
2148         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
2149         * src/SDCCglobl.h: added MODEL_HUGE to enum,
2150           added code_seg and const_seg to options
2151         * src/SDCCglue.c (emitMaps): use options.const_seg,
2152           (createInterruptVect): put interrupt vectors in segment HOME,
2153           (glue): put HOME before static segment and put the main glue in HOME,
2154           (glue): use options.code_seg
2155         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
2156         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
2157           these segments so you can instruct the linker to place them in banks
2158           (linkEdit): use code_loc for HOME segment which should be the first
2159           segment in code memory now
2160         * src/SDCCmem.c: fixed more stuff like bug 1238386
2161         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
2162           (changePointer): don't change function pointers to code pointers for
2163           banked functions,
2164           (compareType): added exceptional check for banked function pointers
2165         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
2166         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
2167           after static in code memory
2168         * src/mcs51/gen.c: added aopLiteralLong prototype,
2169           (aopForSym): use getSize for functions,
2170           (genCall): generate banked calls over one trampoline __sdcc_banked_call
2171           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
2172           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
2173           the segment,
2174           (genPcall): use call for literal function pointers and generate banked
2175           calls over the one trampoline so there's only one place for the user to
2176           modify according to his/hers hardware,
2177           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
2178           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
2179         * src/mcs51/main.c: added keyword banked,
2180           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
2181         * support/Util/SDCCerr.c,
2182         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
2183           needed for passing the bank and address to the trampoline
2184         * device/lib/mcs51/crtbank.asm: added for bankswitching
2185         * device/lib/mcs51/Makefile: added crtbank
2186
2187 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2188
2189         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
2190           for fields at offset 0 of a struct or union as reported
2191           on 2005-07-07 in the developer mailing list.
2192
2193 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2194
2195         * src/SDCCmem.c: fixed bug 1238386
2196
2197 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2198
2199         * src/mcs51/peeph.def: added labelrefcounting for peepholes
2200           (patch #1144962), added peephole 300, enabled 259.x
2201         * doc/sdccman.lyx: removed screenshot and provided link instead
2202
2203 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2204
2205         * doc/sdccman.lyx: added section about debugging with ddd
2206         * doc/figures/ddd_example.eps: screenshot of debugging session
2207
2208 2005-07-04 Raphael Neider <rneider AT web.de>
2209
2210         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
2211           like CODE pointers, fixes #1115683
2212         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
2213           call, fixes bugs #1232211, #1228110,
2214           fixed wrong casts to pCodeFlow from pCodeInstructions
2215
2216 2005-07-04 Raphael Neider <rneider AT web.de>
2217
2218         * src/pic/gen.c (popGet): changed assert to allow for
2219           bit operands
2220         * (popGetAddr): changed signature to provide
2221           an additional index, patched all call sites
2222         * (genCmpEq): handle literal-like operands correctly
2223         * (genAddrOf): added sanity checks on __code/__data pointers
2224         * (genAssign): added handling of symbols from __code section
2225         * (gencjne): do not generate code for comparisons whose result
2226           is neither stored nor used, fixes bug #1171114
2227         * (AccLsh, AccRsh): operate on operand instead of WREG
2228         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
2229           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
2230           by known count
2231         * rewrote complete shift-by-literal logic, commented unused
2232           functions out
2233         * (genConstPointerGet): get multiple bytes (if result size > 1),
2234           fixed handling of non-immediate addresses
2235         * (genPointerGet): handle CODE pointers like CONST pointers
2236         * (genpic14Code): insert C-SRC lines as Cource-pCodes
2237         * ({aop,op}_isLitLike): NEW, single place to decide whether an
2238           operand is to be treated as a literal or not
2239         * (mov2w,genPcall,genCmpEq),
2240           src/pic/genarith.c: use aop_isLitLike() to decide between
2241           literal/register contents
2242         * (addSign): added missing offset
2243         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
2244           only emit comment in debug-mode,
2245           use {aop,op}_isLitLike throughout the file
2246         * src/pic/glue.c: fix initializers for pointers (work in progress)
2247         * src/pic/pcode.c (get_op): honor index on _const symbols
2248         * ({reset,dump}pCodeStatistics): NEW, estimate code size
2249         * (dumppBlock): added pCode size estimation
2250         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
2251           check for IS_SYMOP before OP_SYMBOL'ing
2252         * fixed indentation, compacted switch-statements
2253         * (allocReg): find free register and allocate it instead of
2254           allocating new registers all the time
2255         * (deassignLRs): prevent POINTER_GET's from being assigned the same
2256           registers as its operands (necessary only for multibyte GETs)
2257
2258 2005-07-01 Raphael Neider <rneider AT web.de>
2259
2260         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
2261           debugging .asm-output macros FENTRY + FEXIT
2262         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
2263           way... I wonder...
2264         * (emitpComment): NEW, printf to pCode
2265         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
2266           offset handling
2267         * (popGetAddr): NEW, variant of popGet to access an immediates
2268           high(er) bytes instead of the n'th byte of memory they reference,
2269           replaced popGet with popGetAddr where neccessary
2270         * (genDataPointerGet): reactivated and fixed implementation
2271         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
2272           accesses
2273         * (genDataPointerSet): fixed multibyte assignments
2274         * (genpic14Code): fixed --i-code-in-asm handling
2275         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
2276         * (genPlus): fixed index-out-of-bounds error
2277         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
2278         * src/pic/ralloc.c: added debugging output macro FENTRY2
2279         * (spillThis): fixed indentation, enbraced for-body for clarity
2280         * (rematStr): commented out as now unused
2281         * (regTypeNum): commented out special spill case (overwrites
2282           arbitrary values)
2283         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
2284
2285 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
2286
2287         * doc/sdccman.lyx: documented sfr16/sfr32,
2288           added example for using storage class with function pointers
2289         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
2290
2291 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
2292
2293         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
2294         * device/lib/_itoa.c,
2295         * device/lib/_ltoa.c: optimized codesize
2296         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
2297           but don't know how to suppress the double warning.
2298         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
2299         * support/Util/SDCCerr.c,
2300         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
2301
2302 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
2303
2304         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
2305           fixed old K&R prototypes
2306         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
2307         * device/lib/_gptrget.c,
2308         * device/lib/_gptrgetc.c,
2309         * device/lib/_gptrput.c: changed versions for new memory indicator values,
2310           also new versions for small generic pointers and banked generic pointers
2311         * src/port.h: added const_name
2312         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
2313         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
2314         * src/SDCCcse.c (findPrevIc): check all associative operators
2315         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
2316         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
2317         * src/SDCCmem.c: updated comments,
2318           set far-space to 0 for pdata, results in optimized code
2319         * src/SDCCmem.h: added macro CONST_NAME
2320         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
2321           moving the info into the highest bits, see also gptrget/gptrput
2322         * src/src.dsp: added sdcc.ico to project files
2323         * src/avr/gen.c (genCast): fixed bug 0x%d
2324         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
2325         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
2326           relation between ptr_type and DCL_TYPE,
2327           (genCast): fixed bug 0x%d
2328         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
2329           (CODE)" for const_name
2330         * src/hc08/gen.c (genCast): fixed bug 0x%d
2331         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
2332           (hc08_port): added "CONST (CODE)" for const_name
2333         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
2334           (aopForRemat, adjustArithmeticResult): disconnected direct relation
2335           between ptr_type and DCL_TYPE,
2336           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
2337           operand* and took AOP() inside function so sfr-ness can be checked,
2338           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
2339           new prototype,
2340           (genFunction, genEndFunction): optimized stack setup,
2341           (genMinus): optimized for literals with ending zeroes (in bytes),
2342           (genCast): fixed bug 0x%d
2343         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
2344           (mcs51_port): added "CONST (CODE)" for const_name
2345         * src/mcs51/peeph.def: made rule 226 more generic
2346         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
2347         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
2348         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
2349         * src/z80/main.c (z80_port): added NULL for const_name,
2350           (gbz80_port): added NULL for const_name
2351         * support/regression/tests/bug663539.c,
2352         * support/regression/tests/sfr16.c: new tests
2353
2354 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2355
2356         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
2357
2358 2005-06-24 Raphael Neider <rneider AT web.de>
2359
2360         * device/lib/pic16/libdev/pic18f[68][567]20.c:
2361           corrected typos...
2362         * device/include/pic16/signal.h: added USBIF
2363           and SIG_USB
2364
2365 2005-06-24 Raphael Neider <rneider AT web.de>
2366
2367         * device/lib/pic16/libdev/pic18f2455.c,
2368           device/include/pic16/pic18f2455.h: NEW
2369         * device/include/pic16/pic18fregs.h,
2370           device/lib/pic16/pics.all,
2371           src/pic16/device.c: added 18f2455
2372         * device/lib/pic16/libdev/pic18f[68][567]20.c,
2373           device/include/pic16/{pic18f[68][567].h,usart.h}:
2374           replaced MULTIPLE_USARTS define with more relaible
2375           compatibility sfrs (for USART access)
2376
2377 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
2378
2379         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
2380           and the output asm file line is printed on two lines.
2381
2382 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2383
2384         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
2385           BGT, BLE, BHI, and BLS instructions
2386         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
2387           genCmpEq): removed
2388         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
2389           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
2390           fixes bug #1216342
2391         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
2392
2393 2005-06-15 Raphael Neider <rneider AT web.de>
2394
2395         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
2396         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
2397         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
2398           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
2399           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
2400
2401 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2402
2403         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
2404           Marcel Telka in bug #1215704
2405
2406 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
2407
2408         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
2409           located in shared memory bank.
2410
2411 2005-05-31 Raphael Neider <rneider AT web.de>
2412
2413         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
2414           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
2415           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
2416
2417 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
2418
2419         * device/lib/_strncpy.c: fixed the fix
2420
2421 2005-05-26 Raphael Neider <rneider AT web.de>
2422
2423         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
2424           initializers with \0, bug #1208187
2425         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
2426           intializers with \0, bug #1208187
2427
2428 2005-05-26 Raphael Neider <rneider AT web.de>
2429
2430         * src/pic16/glue.c (pic16_printIvalChar): fixed string
2431           initializers with \0, bug #1208187
2432         * src/pic16/main.c (_process_pragma): added sanity checks
2433           for stack position and size, emit warnings when appropriate
2434
2435 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2436
2437         * device/lib/_strncpy.c: fixed not filling with \0
2438
2439 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2440
2441         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
2442           createFunction),
2443         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
2444           compound_statement),
2445         * src/SDCCsymt.h,
2446         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
2447
2448 2005-05-24 Raphael Neider <rneider AT web.de>
2449
2450         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
2451
2452 2005-05-24 Raphael Neider <rneider AT web.de>
2453
2454         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
2455           TRISE definitions, closes bug #1162453
2456
2457 2005-05-22 Raphael Neider <rneider AT web.de>
2458
2459         * src/pic16/main.c (_process_pragma): check for missing
2460           arguments to pragmas code and udata
2461         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
2462           consistency fixes to match other headers (thanks to Jim Paris)
2463         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
2464
2465 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2466
2467         * src/SDCCicode.c (isOperandEqual): fixed missing ;
2468
2469 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
2470
2471         * support/regression/tests/bug1198642.c: new test
2472         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
2473         * src/SDCCcse.c (findPrevIc): added comment, please have a look
2474         * support/scripts/resource.h,
2475         * support/scripts/resource.rc,
2476         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
2477         * support/scripts/sdcc.ico: added 32x32 icon
2478
2479 2005-05-18 Raphael Neider <rneider AT web.de>
2480
2481         * device/lib/pic16/libdev/pic18f*.c,
2482         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
2483           keywords to "__sfr" and "__at (X)"
2484         * device/include/pic16/pic18fregs.h: added pic18f4520
2485         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
2486           #1203088 (MPLAB compatibility)
2487
2488 2005-05-17 Raphael Neider <rneider AT web.de>
2489
2490         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
2491         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
2492         * device/lib/pic16/pics.all: added new devices
2493         * src/pic16/device.c: added support for pic18f4520
2494
2495 2005-05-16 Raphael Neider <rneider AT web.de>
2496         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
2497         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
2498         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
2499           convenience function for bit access
2500
2501 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2502
2503         * device/lib/printf_large.c: fixed bug 1193299
2504         * support/regression/tests/bug1057979.c: added test %3.3s
2505
2506 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2507
2508         * device/include/mcs51/8051.h,
2509         * device/include/mcs51/8052.h: made parseable with lint
2510         * device/include/mcs51/lint.h: added include file for (sp)lint
2511         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
2512         * doc/cdbfileformat.lyx,
2513         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
2514
2515 2005-05-14 Raphael Neider <rneider AT web.de>
2516
2517         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
2518         * device/lib/pic16/libc/stdlib/itoa.c (new)
2519         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
2520         * device/lib/pic16/libio/Makefile: exclude subdir according to
2521           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
2522         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
2523         * src/pic16/gen.c (genFunction): prevent annoying warning
2524         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
2525           nameclashes on BeOS
2526         * support/cpp2/cppmain.c (cpp_output_string): new
2527         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
2528           fixes bug 1116802
2529
2530 2005-05-13 Borut Razem <borut.razem AT siol.net>
2531
2532         * src/SDCCmain.c (linkEdit): fixed bug 1195202
2533
2534 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2535
2536         * .version: changed to version 2.5.1; back to bleeding edge development
2537
2538 2005-05-11 Borut Razem <borut.razem AT siol.net>
2539
2540         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
2541           generate PDF version 1.3 documents
2542
2543 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2544
2545         * .version: changed to version 2.5.0
2546
2547 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2548
2549         * doc/sdccman.lyx: updated weblinks, index and smaller updates
2550
2551 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2552
2553         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
2554         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
2555         well as many smaller updates.
2556         * .version: changed to version 2.5.0-pre1
2557
2558 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2559
2560         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
2561
2562 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2563
2564         * support/regression/tests/bug1185672.c: added
2565         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
2566           bug 1185672
2567         * src/mcs51/gen.c (genCall): added comments, made it look safer
2568         * src/mcs51/gen.c (genEndFunction): simplified
2569
2570 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2571
2572         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
2573
2574 2005-04-14 Borut Razem <borut.razem AT siol.net>
2575
2576         * fixed bug 1045046 - SIGSEGV with really simple code?:
2577           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
2578           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
2579
2580 2005-04-14 Borut Razem <borut.razem AT siol.net>
2581
2582         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
2583           src/pic16/device.h: temporarily disabled experimental #inline pragma
2584           for 2.5.0 release
2585
2586 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
2587
2588         * device/include/z80/stdio.h,
2589         * device/include/z80/string.h: removed these highly incomplete files so
2590           SDCC can use the default ones in device/include/
2591
2592 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2593
2594         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
2595         gcc warning.
2596         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
2597         fix sdcpp warnings.
2598
2599 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2600
2601         * device/include/malloc.h: removed redundant __reentrant prototypes
2602         * device/lib/_mullong.c: added working xstack variant in asm (C version
2603           doesn't pass regression tests)
2604         * device/lib/bpx.c: used __data and made bpx char for mcs51
2605         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
2606           (createFunction): fixed bug with xstackPtr
2607         * src/SDCCcse.c: corrected comments
2608         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
2609           (killDeadCode, eBBlockFromiCode): removed unused code
2610         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
2611           corrected comments
2612         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
2613           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
2614           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
2615           (genModOneByte): fixed warning in MSVC
2616         * src/mcs51/main.c (): added comments
2617         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
2618
2619 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2620
2621         * src/SDCCmain.c (linkEdit): oops, changed one line too many
2622
2623 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
2624
2625         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
2626
2627 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
2628
2629         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
2630         characters arrays of larger size than the declared one.
2631
2632 2005-04-10 Borut Razem <borut.razem AT siol.net>
2633
2634         * src/pic/gen.c (genInline),
2635           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
2636           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
2637           (findNextInstruction), (findPrevInstruction),
2638           (findInstructionUsingLabel),
2639           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
2640         * src/pic/pcode.c (findLabel): added missing '\n'
2641         * src/src.dsp: added SDCCdwarf2.c to the project
2642
2643 2005-04-09 Borut Razem <borut.razem AT siol.net>
2644
2645         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
2646
2647 2005-04-08 Raphael Neider <rneider AT web.de>
2648
2649         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
2650           into the chain after a given one) and mergeDefmapSymbols (combine
2651           defmap entries for each symbol per pcode)
2652         * (createDefmap): have defmap entries merged in the end
2653         * (defmapReplaceSymRef): split defmap entries covering two accesses to
2654           a symbol before replacing one access type's symbol, merge symbols in
2655           the end (replacement symbol might already have an entry)
2656         * (assignValnums): keep reference to written WREG intact
2657
2658 2005-04-08 Raphael Neider <rneider AT web.de>
2659
2660         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
2661           Alpha)
2662
2663 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
2664
2665         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
2666         bytes
2667
2668 2005-04-07 Raphael Neider <rneider AT web.de>
2669
2670         * device/include/pic16/usart.h: added compatibility defines for
2671           devices with more than one USART
2672         * device/include/pic16/pic18f[68][567]20.h: activated above defines
2673
2674 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2675
2676         * device/lib/Makefile.in: updated for port specific include
2677
2678 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2679
2680         * support/regression/ports/mcs51/spec.mk: added mcs51 include
2681
2682 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2683
2684         * device/include/8051.h,
2685         * device/include/8052.h,
2686         * device/include/at89S8252.h,
2687         * device/include/at89c55.h,
2688         * device/include/at89x051.h,
2689         * device/include/at89x51.h,
2690         * device/include/at89x52.h,
2691         * device/include/mcs51reg.h,
2692         * device/include/reg51.h,
2693         * device/include/reg764.h,
2694         * device/include/regc515c.h,
2695         * device/include/sab80515.h: (re)moved these 12 files
2696         * device/include/mcs51/8051.h,
2697         * device/include/mcs51/8052.h,
2698         * device/include/mcs51/at89S8252.h,
2699         * device/include/mcs51/at89c55.h,
2700         * device/include/mcs51/at89x051.h,
2701         * device/include/mcs51/at89x51.h,
2702         * device/include/mcs51/at89x52.h,
2703         * device/include/mcs51/mcs51reg.h,
2704         * device/include/mcs51/reg51.h,
2705         * device/include/mcs51/reg764.h,
2706         * device/include/mcs51/regc515c.h,
2707         * device/include/mcs51/sab80515.h: and added them here
2708
2709 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2710
2711         * device/include/stdarg.h: changed SDCC specific keywords to double
2712           underlined form.
2713         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
2714           mcs51 and ds390.
2715         * device/include/hc08/mc68hc908gp32.h,
2716         * device/include/hc08/mc68hc908jb8.h,
2717         * device/include/hc08/mc68hc908jkjl.h,
2718         * device/include/hc08/mc68hc908qy.h: fixed comments
2719         * device/include/mcs51/README: updated
2720         * device/include/mcs51/c8051f120.h: added PINRSF
2721         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
2722         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
2723           amidst code. Also inline is not supported.
2724
2725 2005-04-06 Raphael Neider <rneider AT web.de>
2726
2727         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
2728         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
2729           callers stack/frame pointers
2730
2731 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2732
2733         * device/include/pic16/usart.h: added, missing in previous commit,
2734         * device/include/pic16/adc.h: fixed typo,
2735         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
2736         commit,
2737         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
2738         <p18fxxx.inc>
2739         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
2740         uninitialized because a bug appears with gplink
2741         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
2742         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
2743         complains for unrecognised option
2744
2745 2005-04-05 Raphael Neider <rneider AT web.de>
2746
2747         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
2748           structs as well (using memcpy)
2749         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
2750           on ISRs (GOTO has no label)
2751         * src/pic16/device.h: added OF_OPTIMIZE_DF
2752         * src/pic16/main.c: added compiler switch --optimize-df to enable the
2753           new data flow analysis/optimization
2754         * src/pic16/pcode.c: added (prototypes for and implementation of)
2755           dataflow analysis functions, fixed pCodeInstructions' inCond and
2756           outCond values, made RCALL a branch instruction
2757         * (pic16_unlinkpCode): keep C line if possible
2758         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
2759           C line moved if possible
2760         * (pic16_getRegFrompCodeOp): NEW, improved version of...
2761         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
2762           to use new pic16_getRegFrompCodeOp (works for more SFRs)
2763         * (pic16_BuildFlow): fixed skip instructions with label (did not start
2764           new flow)
2765         * (pic16_getJumptabpCode): NEW, needed in...
2766         * (LinkFlow): fixed handling of jumptables, calls and conditional
2767           branches
2768         * (pic16_InsertCommentAfter): NEW
2769         * (pic16_pCodeReplace): made verbose and flow preserving
2770         * (AnalyzeFlow): added call to data flow analysis
2771         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
2772         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
2773         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
2774
2775 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2776
2777         * src/SDCCast.c (decorateType): fixed bug #1105626
2778
2779 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
2780
2781         * device/include/asm/pic16/features.h,
2782         * pic18f*.h headers,
2783         * device/include/pic16/adc.h,
2784         * device/include/pic16/delay.h,
2785         * device/include/pic16/i2c.h,
2786         * device/include/pic16/malloc.h,
2787         * device/include/pic16/stdio.h,
2788         * device/include/pic16/stdlib.h,
2789         * device/include/pic16/string.h,
2790         * device/lib/pic16/libc/stdio/printf_tiny.c,
2791         * device/lib/pic16/libc/stdio/printf_small.c,
2792         * device/lib/pic16/libc/stdio/strmgpsim.c,
2793         * device/lib/pic16/libc/stdio/strmmssp.c,
2794         * device/lib/pic16/libc/stdio/strmusart.c,
2795         * device/lib/pic16/libc/stdio/vfprintf.c,
2796         * device/lib/pic16/libc/stdlib/ltoa.c,
2797         * device/lib/pic16/libc/stdlib/putchar.c,
2798         * device/lib/pic16/libc/stdlib/x_ftoa.c,
2799         * device/lib/pic16/libc/stdlib/memchrpgm.c,
2800         * device/lib/pic16/libc/stdlib/memchrram.c,
2801         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
2802         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
2803         * device/lib/pic16/libio/adc/adcbusy.c,
2804         * device/lib/pic16/libio/adc/adcread.c,
2805         * device/lib/pic16/libio/adc/adcsetch.c,
2806         * device/lib/pic16/libio/usart/ubaud.c,
2807         * device/lib/pic16/libio/usart/ubusy.c,
2808         * device/lib/pic16/libio/usart/udrdy.c,
2809         * device/lib/pic16/libio/usart/uopen.c,
2810         * device/lib/pic16/libio/usart/uputc.c,
2811         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
2812         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
2813         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
2814         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
2815         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
2816         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
2817         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
2818         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
2819         specific keywords to double underlined form,
2820         * device/lib/pic16/libc/Makefile.rules,
2821         * device/lib/pic16/libsdcc/Makefile.rules,
2822         * device/lib/pic16/libm/Makefile,
2823         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
2824         to compile with C standard set in Makefile.common
2825         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
2826         rand.c and crc.c in compilation process,
2827         * device/lib/pic16/libsdcc/int/divuint.c,
2828         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
2829         `c' from signed to unsigned,
2830         * device/lib/pic16/startup/crt0.c,
2831         * device/lib/pic16/startup/crt0i.c,
2832         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
2833         keywords to double underlined form, bug fixes in _do_cinit function
2834         which prevented the correct initialization of the .idata segment,
2835         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
2836         core to enter a infinite loop
2837         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
2838
2839 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2840
2841         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
2842
2843 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2844
2845         * device/include/Makefile.in: add support for hc08 subdirectory
2846         * device/include/hc08/: new subdirectory
2847         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
2848         Lucas Loizaga, thanks!
2849         * device/include/hc08/mc68hc908qy.h,
2850         * device/include/hc08/mc68hc908gp32.h,
2851         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
2852         their own directory. Changed internal macro names to use the compiler
2853         reserved namespace. Changed SDCC specific keywords to double
2854         underlined form.
2855         * device/include/math.h,
2856         * device/include/malloc.h,
2857         * device/include/stdarg.h,
2858         * device/include/stdbool.h
2859         * device/include/string.h,
2860         * device/include/tinibios.h,
2861         * device/include/ds400rom.h,
2862         * device/include/8051.h,
2863         * device/include/8052.h,
2864         * device/include/80c51xa.h,
2865         * device/include/at89c55.h,
2866         * device/include/at89S8252.h,
2867         * device/include/at89x51.h,
2868         * device/include/at89x52.h,
2869         * device/include/ds80c390.h,
2870         * device/include/reg764.h,
2871         * device/include/regc515c.h,
2872         * device/include/sab80515.h,
2873         * device/include/mcs51/c8051f000.h,
2874         * device/include/mcs51/c8051f018.h,
2875         * device/include/mcs51/c8051f020.h,
2876         * device/include/mcs51/c8051f040.h,
2877         * device/include/mcs51/c8051f060.h,
2878         * device/include/mcs51/c8051f120.h,
2879         * device/include/mcs51/c8051f300.h,
2880         * device/include/mcs51/c8051f310.h,
2881         * device/include/mcs51/c8051f320.h,
2882         * device/include/mcs51/c8051f330.h,
2883         * device/include/mcs51/c8051f350.h,
2884         * device/include/z180.h: Changed SDCC specific keywords to double
2885         underlined form.
2886
2887 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
2888
2889         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
2890         18F4455,
2891         * (pic16_assignConfigWordValue): disable testing of configuration
2892         register value with config mask,
2893         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
2894         function with port->fun_prefix,
2895         * (genFunction): when generating a naked interrupt function never
2896         create an absolute segment placed in interrupt vector address, place
2897         the actual interrupt function at IVA instead, when an interrupt
2898         function is generated with unspecified interrupt then do not create
2899         the absolute section,
2900         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
2901         code for generating a call to generic pointer get/put function with
2902         a call to function pic16_callGenericPointer(),
2903         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
2904         the call to the generic pointer get/put functions with prefixing the
2905         function name with port->fun_prefix,
2906         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
2907         * src/pic16/main.c (_process_pragma): prefix function with
2908         port->fun_prefix,
2909         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
2910         calling assembler, old 18Fxxxx macro is deprecated,
2911         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
2912         PC_ASMDIR in while condition,
2913         * (findInstruction): add PC_ASMDIR in while condition,
2914         * (buildCallTree): prefix main with port->fun_prefix,
2915         * (pic16_pCode2str): fixed bug that didn't emit the memory access
2916         identifier for variable with banked access in instructions BTFSS,
2917         BTFSC, BCF, BSF, BTG
2918         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
2919         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
2920         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
2921         perform optimization when enviroment variable NO_REG_OPT is set,
2922         * (insideLRBlock): NEW, return 1 if register is inside an
2923         INF_LOCALREGS block,
2924         * (RemoveRegFromLRBlock): remove a register that is completely
2925         eliminated by register optimization, but it is still left in local
2926         register store/restore in/from stack block,
2927         * (Remove2pcodes): after removing register, check to see if it
2928         should be removed from local register store/restore in/from stack
2929         block,
2930         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
2931         DUMMY_READ_VOLATILE,
2932
2933         * device/include/pic16/adc.h: minor prototype modifications and
2934         update,
2935         * device/include/pic16/malloc.h: added GPL notice various
2936         modifications,
2937         * device/include/pic16/stdint.h: NEW, standard header for ints
2938         * device/include/pic16/delay.h: NEW, header for delay functions,
2939         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
2940         delay1mtcy,
2941         * device/include/pic16/signal.h: NEW, header providing helper macros
2942         for implementing signal handlers,
2943         * device/include/pic16/stdio.h: added prototypes for functions,
2944         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
2945         prototypes for stdin and stdout, added macro PUTCHAR to
2946         automatically implement putchar function prototype,
2947         * device/include/pic16/usart.h: modified and updated USART library,
2948         * device/lib/pic16/libio/adc/,
2949         * device/lib/pic16/libio/i2c: some modifications to improve library
2950         performance,
2951         * device/lib/pic16/libc/stdio/: modifications for the new printf*
2952         family of functions,
2953         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
2954         family of functions and other sources,
2955         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
2956         of the PIC18Fxx[28] devices,
2957         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
2958         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
2959         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
2960         _do_cinit function, because the previous failed when local variables
2961         where not placed in the same memory bank,
2962         * device/lib/pic16/libsdcc/char/: various modifications to improve
2963         library performance,
2964         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
2965         information on the new functions of the c library and more...
2966
2967 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2968
2969         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
2970
2971 2005-03-26 Raphael Neider <rneider AT web.de>
2972
2973         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
2974           if condition == CARRY)
2975         * (genCmp): adapted to new genSkipc semantics
2976         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
2977           on rIfx (genCmp was broken)
2978
2979 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2980
2981         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
2982         * src/z80/main.c (_keywords[]),
2983         * src/SDCCglobal.h (struct options),
2984         * src/SDCC.y,
2985         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
2986         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
2987         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
2988         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
2989         always available in leading double underscore form. The C99 support is
2990         mostly missing, but it's a start.
2991         * support/regression/tests/bug-227710.c: fixed nonconforming use of
2992         reserved identifier "__data".
2993
2994 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2995
2996         * src/mcs51/peeph.def: fixed bug 1170013
2997
2998 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
2999
3000         * device/include/mcs51reg.h: fixed bug 842007
3001
3002 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3003
3004         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
3005         last time.
3006
3007 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3008
3009         * src/port.h (struct PORT),
3010         * src/avr/ralloc.c (avr_assignRegisters),
3011         * src/avr/main.c,
3012         * src/ds390/ralloc.c (ds390_assignRegisters),
3013         * src/ds390/main.c,
3014         * src/hc08/ralloc.c (hc08_assignRegisters),
3015         * src/hc08/main.c,
3016         * src/mcs51/ralloc.c (mcs51_assignRegisters),
3017         * src/mcs51/main.c,
3018         * src/pic/ralloc.c (pic14_assignRegisters),
3019         * src/pic/main.c,
3020         * src/pic16/ralloc.c (pic16_assignRegisters),
3021         * src/pic16/main.c,
3022         * src/xa51/ralloc.c (xa51_assignRegisters),
3023         * src/xa51/main.c,
3024         * src/z80/ralloc.c (z80_assignRegisters),
3025         * src/z80/ralloc.h,
3026         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
3027         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
3028         * src/SDCCcse.h,
3029         * src/SDCCdflow.c (computeDataFlow),
3030         * src/SDCCdflow.h,
3031         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
3032         * src/SDCCloop.h,
3033         * src/SDCCcflow.c (*),
3034         * src/SDCCcflow.h,
3035         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
3036         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
3037         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
3038         immedDom() returning wrong block; probably fixes bug #1160833)
3039
3040 2005-03-20 Borut Razem <borut.razem AT siol.net>
3041
3042         * support/scripts/inc2h.pl: WIN32 port
3043
3044 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
3045
3046         * device/lib/makefile.in: added abs.c and labs.c
3047
3048 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3049
3050         * device/include/stdint.h: added
3051         * device/lib/abs.c: added
3052         * device/lib/labs.c: added
3053         * device/include/stdlib.h: added abs() and labs() prototypes
3054         * device/lib/libsdcc.lib: added abs and labs
3055         * device/include/float.h,
3056         * device/lib/_fsmul.c,
3057         * device/lib/printf_fast.c,
3058         * device/lib/printf_tiny.c: updated comments
3059
3060 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3061
3062         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
3063         bug #1164313
3064
3065 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3066
3067         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
3068         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
3069
3070 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
3071
3072         * device/lib/printf_large.c: removed inline assembly for portability and
3073           readability. Use printf_fast if speed or size are more important.
3074         * src/pic16/gen.c: removed conditions around use of DEBUGpc
3075         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
3076
3077 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
3078
3079         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
3080         prevent compiler warning
3081
3082 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3083
3084         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
3085         moved to level 0 and declared as static. Also they are explicit
3086         placed in access bank. This was necessery because some times they
3087         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
3088         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
3089         optimizations. Currently only compare to unsigned char is implemented,
3090         * src/pic16/gen.c: added fReturnIdx array,
3091         * (struct resolvedIfx) is moved to gen.h and made public,
3092         * (struct _G): added sregsAlloc and sregsAllocSet fields,
3093         * (aopForSym): added an optimization to directly store in stack of
3094         the operand of a SEND iCode,
3095         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
3096         but as registers instead (AOP_REG) using the fReturnIdx array,
3097         * (pic16_freeAsmop): remove the freed register from the
3098         _G.sregsAlloc field,
3099         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
3100         a compare of 'WREG',
3101         * (pic16_popGetTempRegCond): changed function prototype, now
3102         function takes also a bitVector argument v which holds the current
3103         set of registers that are allocated for stack access by aopForSym,
3104         registers allocated in aopForSym for accessing stack symbols are not
3105         any more part of the functions usedRegs field,
3106         * (genCall): some times aopOp is called for a stack variable to be
3107         send, aopForSym might perform the push, if this is true make sure
3108         that genCall doesn't push the variable twice by testing _G.resDirect,
3109         * (genFunction): changed testing for unspecified interrupt number
3110         from 256 to INTNO_UNSPEC,
3111         * modified selection scheme of frame pointer generation. Previously
3112         if function did use local registers a frame pointer was generated,
3113         now a frame pointer is generated only if function has arguments
3114         (that need PLUSW2 register access), or has stack arguments, or the
3115         compiler is not instructed to omit the frame pointer,
3116         * (genEndFunction): before restoring local registers that were saved
3117         in the function preamble, also restore the registers that *might*
3118         have been allocated for stack access,
3119         * (genRet): removed some old comments,
3120         * (genCmp, the active (RN's) version): added a call to the
3121         pic16_genCmp_special function to perform the compare with a more
3122         robust and optimized way,
3123         * (genInline): a feature has been added in inline code generation,
3124         which allows a wildcard variable substitution when writing inline
3125         assembly. Code is incomplete and experimental therefore undocumented,
3126         * (genCast): changed order of aopOp for result and right to allow
3127         aopForSym to directly load the result if possible,
3128         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
3129         perform an optimized compare on some selected special occasions,
3130         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
3131         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
3132         generate an IVT any more,
3133         * src/pic16/main.c (pic16_optionsTable): added command line option
3134         --optimize-cmp,
3135         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
3136         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
3137         macros,
3138         * src/pic16/NOTES: Raphael Neider added in list of active developers
3139         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
3140         jumptable_end to prevent bug #,
3141         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
3142         inCond and outCond fields,
3143         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
3144         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
3145         turn off register spilling,
3146         * (packRegsForOneUse): synced with other ports' versions although it
3147         is not used currently,
3148         * (pic16_packRegisters): added an optimization while reading
3149         structure bitfields, some registers may be saved (malloc code is
3150         decreased by 80 bytes)
3151
3152 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
3153
3154         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
3155         left is a bitfield, if yes, then don't optimize assignment. Perhaps
3156         this can be optimized more?
3157
3158 2005-03-10 Raphael Neider <rneider AT web.de>
3159
3160         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
3161           genNearPointerGet): (hopefully) fixed access to bitfields via
3162           pointers (p->bitN = x; and x = p->bitN; failed)
3163
3164 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
3165
3166         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
3167
3168 2005-03-09 Raphael Neider <rneider AT web.de>
3169
3170         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
3171
3172 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
3173
3174         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
3175         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
3176           (regTypeNum): set REG_BIT type if necessary
3177         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
3178         * support/regression/tests/critical.c: check bug 1144613
3179
3180 2005-03-02 Raphael Neider <rneider AT web.de>
3181
3182         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
3183
3184 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3185
3186         * src/avr/ralloc.c (serialRegAssign),
3187         * src/ds390/ralloc.c (serialRegAssign),
3188         * src/hc08/ralloc.c (serialRegAssign),
3189         * src/mcs51/ralloc.c (serialRegAssign),
3190         * src/pic/ralloc.c (serialRegAssign),
3191         * src/pic16/ralloc.c (serialRegAssign),
3192         * src/xa51/ralloc.c (serialRegAssign),
3193         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
3194
3195 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
3196
3197         * src/SDCCast.c (decorateType): fixed bug 1124787
3198
3199 2005-02-20 Hubert Sack <sack AT digiplan.de>
3200         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3201
3202         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
3203         patch #1121755
3204
3205 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3206
3207         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
3208         to keep the correct label reference count when adding/removing references
3209         to labels. A peephole file using this is appended to patch #1144962.
3210
3211 2005-02-14 Raphael Neider <rneider AT web.de>
3212
3213         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
3214         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
3215         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
3216           retrievals of result operand's value on assignment
3217
3218 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
3219
3220         * device/include/pic16/string.h: modified prototype for memccpy()
3221         to memccpy(void *, void *, char, size_t)
3222         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
3223         check whether to omit frame pointer or not,
3224         * (genInline): convert all occurences of "\n" to LF in inline
3225         assembler blocks, this helps formatting the inline text,
3226         * (pic16_loadFSR0): modified prototype,
3227         * (genNearPointerGet, genNearPointerSet): reorganization of code,
3228         removed some 8051 legacy code,
3229         * (genPackBits): enabled handling bitfields exceeding one byte in size,
3230         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
3231         before allocating temporary registers in functions,
3232
3233 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3234
3235         * support/regression/tests/bitvars.c: corrected the "fix"
3236
3237 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3238
3239         * support/regression/tests/bitvars.c,
3240         * support/regression/tests/bitwise.c,
3241         * support/regression/tests/rotate.c: "fixed" problems on Alpha
3242
3243 2005-02-10 Raphael Neider <rneider AT web.de>
3244
3245         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
3246           different size for Alpha
3247         * src/pic16/gen.c (genCmpEq) : improved compare with 0
3248
3249 2005-02-09 Raphael Neider <rneider AT web.de>
3250
3251         * src/SDCC.lex(doPragma) : save and restore warning options as well
3252           (also added new stack plus clone- and copyAndFreeSDCCERRG())
3253         * have #pragma less_pedantic set the errorlevel to WARNING
3254           (fixes #1117001)
3255         * (cloneOptimize) : fixed wrong malloc's size
3256         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
3257           facilitate correct handling of #pragma (save|restore)
3258
3259 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3260
3261         * src/mcs51/gen.c: removed non-standard C nameless struct/union
3262
3263 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
3264
3265         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
3266
3267 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
3268
3269         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
3270
3271 2005-02-02 Raphael Neider <rneider AT web.de>
3272
3273         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
3274         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
3275         * (pic16_storeForReturn): fixed to allow returning function pointers
3276         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
3277         * device/include/pic16/{stddef.h,stdbool.h}: added
3278
3279 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
3280
3281         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
3282
3283 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
3284
3285         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
3286         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
3287          appeared to be required
3288
3289 2005-01-31 Borut Razem <borut.razem AT siol.net>
3290
3291         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
3292           include/mcs51 and include/z80 directories to the package
3293
3294 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3295
3296         * src/hc08/gen.c (genFunction): fixed bug #1112752
3297
3298 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3299
3300         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
3301
3302 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3303
3304         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
3305
3306 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
3307
3308         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
3309
3310 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
3311
3312         * device/include/c8051fxxx.h: removed these 6 files
3313         * device/include/mcs51/c8051fxxx.h: added these 11 new files
3314
3315 2005-01-26 Raphael Neider <rneider AT web.de>
3316
3317         * src/pic16/gen.c (genAssign): fixed assignment from longs
3318           in codespace (were cut to three bytes)
3319         * (genDummyRead): implemented (except for CODESPACE...),
3320           fixed bug #1108575
3321         * src/pic16/glue.c (emitStatistics): beautified
3322         * device/lib/pic16/libm/Makefile: added include path
3323
3324 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3325
3326         * src/z80/gen.c (aopPut): fixed bug #1103902
3327
3328 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3329
3330         * device/lib/expf.c: fixed bug #1095792
3331
3332 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
3333
3334         * device/lib/pic16/libm: added Math library sources
3335
3336 2005-01-24 Raphael Neider <rneider AT web.de>
3337
3338         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
3339           to enable upcast to pCodeOpReg2 (there is no type tag to
3340           differenciate the two and pic16_popGet2p cast into PCOR2)
3341         * src/pic16/main.c (_process_pragma): fixed another malloc bug
3342           (sizeof(sectNames) changed to sizeof(sectName))
3343           Both patches fix segfaults under MinGW.
3344
3345 2005-01-23 Raphael Neider <rneider AT web.de>
3346
3347         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
3348           Safe_[mc]?alloc()'ed variables
3349         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
3350           of (byte sized) temporaries (assign them to WREG for now)
3351         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
3352           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
3353           this might fix SIGSEGVs on MinGW...
3354         * src/SDCCopt.c (killDeadCode): restored original behaviour
3355           (volatile operands might get thrown away though)
3356
3357 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
3358
3359         * src/pic16/gen.c: fixed bug #1106975,
3360         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
3361         pointer update, INTCON is saved, global interrupts are disabled and
3362         restored after updateing TOS.
3363         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
3364         * added function attribute 'shadowregs' to take advantage of shadow
3365         registers,
3366         * added function attribute 'wparam' as an alternative to the wparam
3367         pragma,
3368         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
3369         user declares a non-ISR function as 'shadowregs',
3370         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
3371
3372 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
3373
3374         * .version: bumped version number to 2.4.8
3375         * device/lib/pic16/pics.all: list of PIC18F devices supported by
3376         pic16 port,
3377         * device/lib/pic16/libio/i2c/: I2C module support library,
3378         * device/include/pic16/i2c.h: I2C support library header,
3379         * device/lib/pic16/libc/stdio/: standard IO support sources,
3380         * (printf_small.c): printf_small() source, supports float print,
3381         * (printf_tiny.c): printf_tiny() source, does not support floats,
3382         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
3383         enable global optimizations for entire library source, other
3384         Makefiles in the source tree are also modified to reflect this,
3385         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
3386         function,
3387         * doc/sdccman.lyx: updated to reflect new changes,
3388         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
3389         sym->onStack if-case,
3390         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
3391         sbit, idata, _idata, xdata, _xdata,
3392         * added pragma library, to link an external library, (see doc),
3393         * removed command line options, --pomit-config-words, --pomit-ivt,
3394         --pleave-reset-vector,
3395         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
3396         when calling assembler to reflect memory model used, also define
3397         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
3398         reflect stack model used,
3399         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
3400         on stack return NULL,
3401
3402 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3403
3404         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
3405           of the operands is volatile. Fixes #1020220
3406
3407 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3408
3409         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
3410         * (OptimizeRegUsage): make sure that there is really no other flow where
3411           the first pCode is used
3412
3413 2005-01-22 Raphael Neider <rneider AT web.de>
3414
3415         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
3416           to fix #1106967 (pCode->seq are not set up correctly)
3417
3418 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3419
3420         * src/SDCCglue.c (glue): make sure code area is declared before the
3421         static initialization area.
3422
3423 2005-01-21 Raphael Neider <rneider AT web.de>
3424
3425         * device/lib/Makefile.in: fixed test for pic16 install dir
3426         * device/lib/pic16/*/Makefile*: modified compile flags to enable
3427           optimizations
3428         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
3429           added --optimize-goto compiler switch and pragma wparam documentation
3430         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
3431         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
3432           and PRODH closing bug #1071770 (peephole optimizer)
3433
3434 2005-01-19 Raphael Neider <rneider AT web.de>
3435
3436         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
3437           cmdLine buffers (used when calling sdcpp...) are large enough
3438           (MAX_PATH=256 truncates arguments leading to system halts when
3439           used in MinGW...)
3440         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
3441         * (genUminus): rewritten to for efficiency
3442         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
3443           used uninitialized in some cases)
3444         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
3445           copy the third byte from the int -- now assumes 0x80 (data memory)
3446         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
3447           operands (genAddLit expects the iCode's operands to swapped as
3448           well), fixed leftover bytes (crashed for short left operands)
3449         * (pic16_genMinusDec): performance improvements, removed false
3450           PIC14 emitSKPNCs
3451         * (pic16_genMinus): fixed to cope with differently sized operands
3452         * src/pic16/glue.c (pic16_glue): added new banksel optimization
3453           for --obanksel > 1
3454         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
3455         * src/pic16/graph.[ch]: implementation of directed graphs, used by
3456           new banksel optimization
3457         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
3458           analysis for temporary registers (segfaults...)
3459         * src/pic16/peeph.def: added rule
3460
3461 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
3462
3463         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
3464         which converts a float number to its ASCII representation
3465         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
3466         functions to convert the fractional and integer part of a float to ASCII,
3467         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
3468         realloc.c): added _MALLOC_SPEC to explicit place variables in data
3469         ram
3470         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
3471         _STATMEM macros,
3472         * device/include/pic16/adc.h: added GPL info,
3473         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
3474         a pCodeOp as tested operand,
3475         * (genNearPointerGet): optimized bit testing, does not use
3476         intermediate register for bit value, test directly instead with
3477         BTFSS, BTFSC, works only for single bits,
3478         * (genpic16Code): dump the name of the iCode in the asm,
3479         * src/pic16/ralloc.c (decodeOp): removed static declaration and
3480         renamed to pic16_decodeOp,
3481         * (serialRegAssign): do not allocate a temporary register for iCode
3482         sequences that test a single bit for 1/0
3483
3484 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
3485
3486         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
3487         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
3488         access stack and frame pointers. They are initially assigned to
3489         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
3490         accessing SFRs. Updated all occurences of modification of stack or
3491         frame pointer in gen.c and pcode.c,
3492         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
3493         assigning of a literal value to pointers,
3494         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
3495         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
3496         selected
3497
3498 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3499
3500         * doc/sdccman.lyx: update documentation about stack pragma, added
3501         some info for stack memory models
3502
3503 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3504
3505         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
3506
3507 2005-01-08 Raphael Neider <rneider AT web.de>
3508
3509         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
3510           udata sections to fix bug #1097823
3511
3512 2005-01-05 Raphael Neider <rneider AT web.de>
3513
3514         * src/pic16/gen.c (genGenericShift): added handling of differently
3515           sized left operand and result
3516
3517 2005-01-04 Raphael Neider <rneider AT web.de>
3518
3519         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
3520         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
3521           to hold the condition bit)
3522         * added new version of genCmp (old code available via #define)
3523         * added new version of genShiftLeft/genShiftRight in a generic
3524           way, now supports shifting by negative values
3525         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
3526           shiftCount (expected by genGenericShift)
3527         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
3528         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
3529           dump
3530         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
3531           is an invalid literal too...)
3532
3533 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
3534
3535         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
3536         from Raphael Neider,
3537         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
3538         for 8-bit literals. This fixes some literal operands which are sign
3539         extended to 16-bits ints when instruction needs only 8-bits.
3540
3541 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
3542
3543         * device/lib/logf.c: added mcs51 assembly version
3544         * device/lib/expf.c: added mcs51 assembly version
3545         * device/lib/_logexpf.c: new shared asm code for expf and logf
3546         * device/include/math.h: add defines for assembly math library
3547         * device/lib/Makefile.in: build new _logexpf.c
3548         * device/lib/libfloat.lib: use new _logexpf.c
3549
3550 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3551
3552         * src/pic/device.c
3553         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
3554           device types which have less than 0x7f registers.
3555
3556 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3557
3558         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
3559
3560 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3561
3562         * device/lib/printf_fast.c: only build on supported arch.
3563         * device/lib/printf_tiny.c: only build on supported arch.
3564         * device/lib/printf_fast_f.c: only build if asm float lib
3565         * device/lib/_fsget1arg.c: only build if asm float lib
3566         * device/lib/_fsget2args.c: only build if asm float lib
3567         * device/lib/_fsnormalize.c: only build if asm float lib
3568         * device/lib/_fsreturnval.c: only build if asm float lib
3569         * device/lib/_fsrshift.c: only build if asm float lib
3570         * device/lib/_fsswapargs.c: only build if asm float lib
3571         * device/include/stdio.h: don't provide print_fast,
3572           print_fast_f, print_tiny prototypes if --xstack used
3573
3574 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
3575
3576         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
3577         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
3578           to the SOURCES
3579
3580 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3581
3582         * device/lib/printf_fast_f.c: same as printf_fast, but
3583           with floating point enabled
3584         * device/lib/printf_fast.c: minor tweaks
3585         * device/include/stdio.h: add printf_fast_f
3586
3587 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3588
3589         * src/SDCCmain.c: make --float-reent default for mcs51
3590         * device/lib/_fsadd.c: added mcs51 assembly version
3591         * device/lib/_fssub.c: added mcs51 assembly version
3592         * device/lib/_fsmul.c: added mcs51 assembly version
3593         * device/lib/_fsdiv.c: added mcs51 assembly version
3594         * device/lib/_fseq.c: added mcs51 assembly version
3595         * device/lib/_fsneq.c: added mcs51 assembly version
3596         * device/lib/_fsgt.c: added mcs51 assembly version
3597         * device/lib/_fslt.c: added mcs51 assembly version
3598         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
3599         * device/lib/Makefile.in: add _fscmp to build
3600         * device/lib/libfloat.lib: add _fscmp to build
3601
3602 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3603
3604         * device/lib/_fs2slong.c: added mcs51 assembly version
3605         * device/lib/_fs2sint.c: added mcs51 assembly version
3606         * device/lib/_fs2schar.c: added mcs51 assembly version
3607         * device/lib/_fs2ulong.c: added mcs51 assembly version
3608         * device/lib/_fs2uint.c: added mcs51 assembly version
3609         * device/lib/_fs2uchar.c: added mcs51 assembly version
3610         * device/lib/_slong2fs.c: added mcs51 assembly version
3611         * device/lib/_sint2fs.c: added mcs51 assembly version
3612         * device/lib/_schar2fs.c: added mcs51 assembly version
3613         * device/lib/_ulong2fs.c: added mcs51 assembly version
3614         * device/lib/_uint2fs.c: added mcs51 assembly version
3615         * device/lib/_uchar2fs.c: added mcs51 assembly version
3616         * device/include/float.h: added #define to select asm vs c
3617
3618 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
3619
3620         * device/lib/printf_fast.c: improvements to float output
3621         * device/include/float.h: add defines for assembly float library
3622         * device/lib/_fsget1arg.c: receive 1 float arg
3623         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
3624         * device/lib/_fsnormalize.c: normalize a float
3625         * device/lib/_fsreturnval.c: return float, various helper routines
3626         * device/lib/_fsrshift.c: right shift a float's mantissa
3627         * device/lib/_fsswapargs.c: swap 2 floats
3628         * device/lib/Makefile.in: build these 6 new files for mcs51
3629         * device/lib/libfloat.lib: add these 6 files to the library
3630
3631 2004-12-26 Borut Razem <borut.razem AT siol.net>
3632
3633         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
3634           built by gcc 3.4.2
3635
3636 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
3637
3638         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
3639           and fully reentrant and register bank neutral.
3640         * device/lib/printf_fast.c: added float (not enabled by default),
3641           added compact/slower integer (also not enabled by default),
3642           improved size/speed of fast integer code, other minor changes
3643         * device/include/stdio.h, device/lib/Makefile.in,
3644           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
3645
3646 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
3647
3648         * src/pic16/pcode.c: declaring variables other than at the start of a
3649           block is not supported in C by VC6.
3650
3651 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
3652
3653         * applied a previous patch from Raphael Neider that wasn't included
3654         in the previous commits, which fixes infinite loops within jumptable
3655         improvements,
3656         * made some fixes that previous patches introduced
3657
3658 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
3659
3660         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
3661         that fixes an issue with AOP_PCODE asmop's offset,
3662         * (pic16_popCopyReg): update instance field too,
3663         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
3664         function of pic port,
3665         * (genCmp, genAnd, genAssign),
3666         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
3667
3668 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
3669
3670         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
3671         variables initial values to idata section,
3672         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
3673         variables in some functions. This utilizes parmBytes field of iCode
3674         structure to hold the offset of the variable in stack. (might be
3675         able to use the stack field too?)
3676         * applied patch from Raphael Neider # ### , # ###
3677         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
3678         variable initial values in idata section,
3679         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
3680         for static variables with initial value
3681         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
3682         applied fix in while loop from Raphael Neider.
3683
3684 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
3685
3686         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
3687         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
3688         * src/ds390/ralloc.c (serialRegAssign): spill bits
3689         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
3690         * support/Util/SDCCerr.c,
3691         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
3692         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
3693         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
3694
3695 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
3696
3697         * device/include/sdcc-lib.h: inserted LGPL, added includes
3698           asm/ds390/features.h and asm/mcs51/features.h
3699         * device/include/asm/default/features.h,
3700         * device/include/asm/gbz80/features.h,
3701         * device/include/asm/z80/features.h: added empty _AUTOMEM
3702           and _STATMEM
3703         * device/include/asm/ds390/features.h,
3704         * device/include/asm/mcs51/features.h: added files with defines for
3705           _AUTOMEM and _STATMEM indicating automatic and static storage class
3706         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
3707         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
3708         * src/SDCCicode.c (geniCodeCast),
3709         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
3710         * src/SDCCloop.c (loopInduction): removed unused variable lr
3711         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
3712           to convertToFcall to include char modulo (RFE 1065037), added check
3713           if left operand is unsigned and use abs of literal value
3714         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
3715           as it doesn't work after conversion from peephole.def to peephole.rul
3716         * src/mcs51/gen.c (toBoolean): added check for size,
3717           (genModOneByte): optimized code for signed char modulo a literal
3718           power of 2 (thanks to Hubert Sack),
3719           (genRRC): removed unnecessary "clr c",
3720           (genRLC): replaced "add a,acc" with cheaper "rlc a"
3721         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
3722           jump optimization,
3723           swapped rules 256.c and 256.d,
3724           extended 256.d by using new multiple checks (thanks Erik),
3725           added rules 256.e and 256.f,
3726           updated rule 261.a and 261.b to new generated code
3727         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
3728
3729 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3730
3731         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
3732           induction related bugs, including first part of bug #1074377
3733
3734 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
3735
3736         * applied patch from bug-report #1076292,
3737         * applied patches for genAnd and Goto-optimizations for Raphael
3738         Neider,
3739         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
3740         dump a less iCode information,
3741         * src/pic16/device.h (pic16_options_t): added field debgen,
3742         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
3743         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
3744         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
3745         puclic,
3746         * (various functions): added macros FENTRY and FENTRY2 to functions,
3747         to emit function prologue,
3748         * (various functions): fixed indentation,
3749         * (genNearPointerGet): fixed loading of FSR0,
3750         * (genPackBits): applied patch from Raphael Neider to fix updating
3751         of FSR0 and touching only the modified bits,
3752         * src/pic16/genarith.c (various functions): added macros FENTRY to
3753         emit function prologue in comments,
3754         * src/pic16/pcode.h: added functions debugf2, debugf3,
3755         * src/pic16/ralloc.c: partial fix for packForPush caused
3756         segmentation fault,
3757
3758 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3759
3760         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
3761           <stsp AT users.sourceforge.net> with reversed byte order
3762         * support/regression/tests/rotate.c: added (ds390 skips some tests)
3763
3764 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3765
3766         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
3767           bug #1074377
3768         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
3769         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
3770
3771 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3772
3773         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
3774
3775 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3776
3777         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
3778           conditions,
3779           (setFromConditionArgs): friendly operand parser for peephole rules,
3780           (operandBaseName, operandsNotRelated): new peephole condition
3781           "operandsNotRelated" -- similar to "operandsNotSame", but takes
3782           architecture specific register naming into account, handles n-way
3783           comparisons, and supports quoted literals
3784         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
3785
3786 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3787
3788         * src/mcs51/peeph.def: fixed bug #1076940
3789
3790 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3791
3792         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
3793
3794 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3795
3796         Adding support for replacing ljmps with sjmps in jumptables
3797         generated for switch statements. For now you need to set the
3798         environment variable SDCC_SJMP_JUMPTABLE to enable this.
3799         Now 4 algorithms for mcs51 jumptable generation are used:
3800         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
3801         addresses loaded pc-relative for up to 112 cases and stack-pushing
3802         target addresses loaded with offset from dptr for up to 256 cases.
3803
3804         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
3805         * src/mcs51/main.c: adapted constants for switch table generation
3806         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
3807
3808 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
3809
3810         * device/lib/printf_large.c (_print_format): fixed bug 1073386
3811         * support/regression/tests/bug1057979.c: added test for bug 1073386
3812
3813 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3814
3815         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
3816         compilers
3817
3818 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3819
3820         * src/pic16/device.h,
3821         * src/pic16/genarith.c,
3822         * src/pic16/glue.c,
3823         * src/pic16/main.c,
3824         * src/pic16/pcode.c: applied patches #1068154 and #1070213
3825
3826 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
3827
3828         Large cummulative patch for pic16 port.
3829         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
3830         to call when a stack overflow occurs,
3831         * (malloc.h): added CVS Id tag,
3832         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
3833         variable,
3834         * added libc directory. The current version of LibC contains string
3835         functions, ctype functions and macros and some functions of the
3836         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
3837         be extensively tested in the future. Standard disclaimer here.
3838         Library is not automatically build yet. But one can build it by
3839         invoking 'make' inside the libc directory.
3840         * added ADC library under libio. Preliminary version yet.
3841
3842         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
3843         * src/pic16/gen.c (aopForRemat): asmop size is filled by
3844         aopForRemat() now and not by pic16_aopOp(),
3845         * (pic16_popGetTempReg): removed warning messgae when allocating
3846         temporary registers, its a buggy feature and will be removed,
3847         * (pic16_popGet): set register instance field in AOP_CRY,
3848         * (pic16_outBitC): fixed for results in size greater than 1,
3849         * (genUminusFloat): fixed for pic16, ported code from mcs51,
3850         * (pic16_storeForReturn): optimized return of 0,
3851         * (genCmp): experimental code for new genCmp which uses PIC18's
3852         special compare&skip instructions. Initial tests fail some times
3853         with variables grater than 1 byte in size, so new code is disabled,
3854         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
3855         a single bit,
3856         * (genCast): began a fix to optimize the casting of a bit to another
3857         bit, now assigning a bitfield to another bitfield will fail, sorry,
3858         * src/pic16/main.c: disabled the use of lr-support feature,
3859         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
3860         * added some function prototypes, added function _debugf prototype,
3861         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
3862         bits with offset (case PO_GPR_BIT),
3863         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
3864         command line,
3865         * (isBankInstruction): modified to return 0 for no banking instruction,
3866         and 1 for banking instruction,
3867         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
3868         caused stop processing pCodes after a inline assembly block,
3869         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
3870         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
3871         registers when it shouldn't,
3872         * src/pic16/ralloc.c (allocReg): add preliminary support for
3873         supporting a limited set of temporary registers,
3874
3875 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3876
3877         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
3878           genDataPointerSet): ensure assignments always copy in MSB to LSB
3879           order,
3880           (loadRegFromAop): recognize CLRH optimization,
3881           (genFunction): optimize RECEIVE iCodes in reentrant functions
3882
3883 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3884
3885         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
3886           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
3887           selected.
3888         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
3889         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
3890           contiguous with data
3891
3892 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3893
3894         * device/lib/_gptrget.c (_gptrget),
3895         * device/lib/_gptrgetc.c (_gptrgetc),
3896         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
3897           instead of sjmp to ret
3898         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
3899           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
3900
3901 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3902
3903         * .version: bumped version to 2.4.7
3904         * device/lib/_gptrget.c (_gptrget): is now _naked
3905         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
3906         * device/lib/_gptrput.c (_gptrput): is now _naked
3907         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
3908           (createFunction): fixed xstack
3909         * src/SDCCglue.c (emitMaps): set allocation required for bit area
3910         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
3911           or bit either,
3912           (geniCodeCritical): store original interrupt state in an iTemp bit
3913           var unless stack-auto
3914         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
3915         * src/SDCCmain.c (setIncludePath): added include/target to search path
3916         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
3917         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
3918           prototype,
3919           (processFuncArgs): put bit vars in bit area
3920         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
3921           unsaveRBank): fixed xstack,
3922           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
3923           (genFunction, genEndFunction): fixed xstack,
3924           (genAssign): optimization don't walk backwards through mem
3925         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
3926         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
3927         * support/regression/Makefile: also make library (for stack-auto) when
3928           making "all" and added "test-mcs51-xstack-auto"
3929         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
3930         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
3931         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
3932         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
3933         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
3934           make-library by MAKE_LIBRARY
3935         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
3936           regression tests for xstack
3937         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
3938         * support/regression/tests/critical.c: test for critical on mcs51
3939
3940 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3941
3942         * support/regression/ports/ucz80/spec.mk: use include and lib files from
3943           built version of sdcc instead of installed version
3944
3945 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3946
3947         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
3948         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
3949           vprintf.c now
3950         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
3951         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
3952           WARNING: remove device/lib/build/z80/printf.o by hand when
3953           updating from previous build!
3954         * device/lib/z80/printf.c: updated comment
3955         * support/regression/tests/bug1057979.c: test all ports now
3956         * support/regression/tests/bug1065458.c: file added
3957
3958 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3959
3960         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
3961           *_start and *_end symbols for static functions
3962
3963 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
3964
3965         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
3966           and search crt0.o in all library paths,
3967           (setIncludePath): proper handling of --nostdinc,
3968           (setLibPath): proper handling of --nostdlib
3969         * support/regression/Makefile,
3970         * support/regression/ports/ds390/spec.mk,
3971         * support/regression/ports/gbz80/spec.mk,
3972         * support/regression/ports/hc08/spec.mk,
3973         * support/regression/ports/mcs51/spec.mk,
3974         * support/regression/ports/mcs51-large/spec.mk,
3975         * support/regression/ports/mcs51-stack-auto/spec.mk,
3976         * support/regression/ports/z80/spec.mk: use include and lib files from
3977           built version of sdcc instead of installed version
3978         * doc/sdccman.lyx: fixed typo in --nostdinc
3979
3980 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
3981
3982         * src/pic/pcode.c,
3983         * src/pic/device.c,
3984         * src/pic/ralloc.c,
3985         * src/pic/gen.c : added support to generate code for struct bit fields.
3986
3987 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
3988
3989         * as/xa51/xa_version.h,
3990         * device/include/errno.h,
3991         * device/include/regc515c.h,
3992         * device/lib/_itoa.c,
3993         * device/lib/_ltoa.c,
3994         * device/lib/ser_ir_cts_rts.c,
3995         * sim/ucsim/xa.src/glob.cc,
3996         * sim/ucsim/xa.src/inst_gen.cc,
3997         * sim/ucsim/xa.src/xa_bit.cc,
3998         * sim/ucsim/xa.src/xa_sfr.cc,
3999         * sim/ucsim/z80.src/inst_dd.cc,
4000         * sim/ucsim/z80.src/inst_fdcb.cc,
4001         * support/scripts/keil2sdcc.pl,
4002         * src/pic16/pic16.dsp,
4003         * src/pic16/pic16a.dsp: corrected cvs line endings
4004         * device/lib/printf_large.c: fixed bug 1057979
4005         * src/pic16/gen.c: fixed non-C standard code
4006         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
4007         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
4008         * support/regression/ports/mcs51/support.c: reload T1 asap
4009         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
4010           pdata use and clear idata startup behaviour
4011         * support/regression/tests/bug1057979.c: added
4012
4013 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
4014
4015         * device/examples/ds390/ow390/ad26.h,
4016         * device/examples/ds390/ow390/cnt1d.h,
4017         * device/examples/ds390/ow390/crcutil.c,
4018         * device/examples/ds390/ow390/ownet.h,
4019         * device/examples/ds390/ow390/owsesu.c,
4020         * device/examples/ds390/ow390/swt12.h,
4021         * device/examples/ds390/ow390/swtoper.c,
4022         * device/examples/ds390/ow390/temp10.h,
4023         * device/examples/ds390/ow390/thermodl.c,
4024         * device/examples/ds390/tinitalk/tinitalk.dsp,
4025         * device/examples/ds390/tinitalk/tinitalk.dsw,
4026         * device/examples/mcs51/clock/hw.h,
4027         * device/examples/mcs51/simple2/go.bat,
4028         * device/examples/serialcomm/windows/serial.h,
4029         * device/examples/xa51/dummy.c,
4030         * device/examples/xa51/hello.c,
4031         * device/include/80c51xa.h,
4032         * device/include/at89x051.h: corrected cvs line endings
4033
4034 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
4035
4036         * src/pic16/main.c (options): added command line --gstack, to trace
4037         stack over/under flows,
4038         * added pragma 'wparam' to allow passing first byte of function
4039         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
4040         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
4041         call to __gstack_test function and sets up the symbol as extern,
4042         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
4043         * popaop): added call to pic16_testStackOverflow,
4044         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
4045         wparamList list,
4046         * (genCall, genPcall): now all parameters are passed via stack
4047         except in functions that are pass to wparam pragma in which WREG is
4048         used too,
4049         * (genPcall): REENTRANT flag is checked to see if variable prototype
4050         contains reentrant keyword, don't call a non-reentrant function, via
4051         a reentrant function pointer or vice versa, functions are never
4052         passed via WREG,
4053         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
4054         D.Winkler,
4055         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
4056         SIGSEGV when accessing a NULL register stucture,
4057         * (pic16_printGPointerType): modified to handle UPPER modifier for
4058         function initializers, changed prototype of function to simpler one,
4059         * (pic16_printIvalFuncPtr): check to see if function is already
4060         added in externs list,
4061         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
4062         optimized a move from W to SFR with a move to the same register
4063         later after a CALL,
4064         * device/lib/pic16/debug: NEW directory, contains debug features
4065         which are enabled when linking with libdebug.lib, currently command
4066         line option --gstack enables stack pointer tracing for over/under
4067         flow, corresponding sources are in debug/gstack
4068
4069 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
4070
4071         * doc/sdccman.lyx: updated SDCC version,
4072         * (PIC16 port): update list of command line options,
4073         * src/pic16/device.h (structure pic16_options_t): added field gstack
4074         to enable stack overflow tracing on push/pops,
4075         * src/pic16/device.c (statistics structure): added statistics
4076         structure,
4077         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
4078         pic16_dump_int_registers): increase statistics counters for each
4079         * variable which is encountered
4080         * (pic16_dump_usection): emit each .udata variable to its own udata
4081         section,
4082         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
4083         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
4084         parameters via stack, otherwise use old scheme,
4085         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
4086         assembler output file,
4087         * src/pic16/main.c: added command line options --gstack to enable
4088         push/pop tracing for stack overflow,
4089         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
4090         instructions): added size of each instruction,
4091         * (pic16_countInstruction): estimate size of instructions in
4092         the_pFile list, inline assembly blocks are not counted,
4093         * (pic16_FixRegisterBanking): trace previous register usage, when
4094         banksel optimizations is greater than 0, don't emit a redudant
4095         banksel directive,
4096
4097 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
4098
4099         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
4100         * src/pic16/ralloc.c : applied same fix for pic16.
4101         * src/pic/gen.c : tidied it up a little.
4102
4103 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4104
4105         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
4106         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
4107
4108 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4109
4110         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
4111
4112 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4113
4114         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
4115         non-reentrant function __modsint in the interrupt function (thus
4116         corrupting math operations during serial I/O)
4117         * device/lib/ser_ir.c: as above, changed buffersize
4118         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
4119         256.c,d for zeroing
4120         * doc/Makefile: added option -t for rsync
4121
4122 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4123
4124         * src/SDCCast.h (struct ast),
4125         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
4126
4127 2004-10-20 Borut Razem <borut.razem AT siol.net>
4128
4129         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
4130         package
4131
4132 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
4133
4134         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
4135         makefile targets,
4136         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
4137         support functions to replace long sequences of MOVFF's from access
4138         bank registers to stack and vice versa,
4139         * src/pic16/device.h: added new field opt_flags, where optimization
4140         flags can be set to enable certain features,
4141         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
4142         * pBlock, (genFunction, genEndFunction): surroung loop for
4143         saving/loading used registers in stack with PC_INFO pCodes,
4144         INF_LREGS. Code in between can then be optimized by pCode optimizer
4145         to support function calls,
4146         * (genDataPointerSet): fixed bug which loaded float fields in
4147         structures with corrupt data,
4148         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
4149         in a standard way debug info on stderr. Feature used for developing
4150         and debugging only,
4151         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
4152         obsolete chunks of code,
4153         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
4154         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
4155         * pic16/src/pcode.c (pic16_newpCodeInfo,
4156         * (pic16_newpCodeOpLocalRegs),
4157         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
4158         feature,
4159         * (pic16_pCodeConstString): printing of the initial value of a
4160         symbol as a comment is inhibited since parsing was already done by
4161         copyStr and output is corrupt,
4162         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
4163
4164 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4165
4166         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
4167
4168 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4169
4170         * as/mcs51/lkarea.c: removed old K&R style,
4171           (lnksect): changed check on boundary error,
4172           (lnksect2): changed check on boundary error,
4173           (lnksect2): extend XSTK to end of page if size = 1
4174         * as/mcs51/lkmain.c: removed old K&R style,
4175           (Areas51): create l_IRAM symbol
4176         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
4177         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
4178           model-mcs51-stack-auto, added model-mcs51-xstack-auto
4179         * device/lib/_mullong.c: added version to be compiled with xstack
4180         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
4181         * device/lib/mcs51/crtxclear.asm: clear pdata as well
4182         * device/lib/mcs51/crtxstack.asm: fixed comment
4183         * src/SDCCglue.c: maxInterrupts defaults to 0,
4184           (emitMaps): added pdata,
4185           (createInterruptVect): (re)moved default,
4186           (glue): added pdata,
4187           (glue): moved __start__xstack to XSTK with default size 1
4188         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
4189           and options.float_rent when options.stackAuto is set,
4190           (linkEdit): only write XDATA_NAME if provided on command line
4191         * src/SDCCmem.h,
4192         * src/SDCCmem.c: added pdata
4193         * src/port.h: added pdata_name to PORT
4194         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
4195           (saveRegisters, unsaveRegisters): removed usage of B,
4196           (genMinus): fixed accumulator clash,
4197           (genJumpTab): added comment, this needs another look
4198         * src/mcs51/gen.c: added check for "B in use" paranoia,
4199           added pushB() and popB()
4200         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
4201           chance
4202         * src/avr/main.c,
4203         * src/ds390/main.c,
4204         * src/hc08/main.c,
4205         * src/mcs51/main.c,
4206         * src/pic/main.c,
4207         * src/pic16/main.c,
4208         * src/xa51/main.c,
4209         * src/z80/main.c: (reset_regparms) made void parameter explicit and
4210           added PSEG (PAG,XDATA) or NULL to port specifier
4211         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
4212         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
4213           (_mcs51_genInitStartup): removed __start__xstack equ,
4214           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
4215         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
4216         * src/z80/gen.c (_rleAppend): fixed warnings
4217         * support/regression/tests/zeropad.c: added pdata test
4218         * .version: bumped to 2.4.6
4219
4220 2004-10-17 Borut Razem <borut.razem AT siol.net>
4221
4222         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
4223         as a part of nightly build
4224
4225 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
4226
4227         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
4228         WREG holds the first byte function parameters,
4229         * (aopForSym): take special case for symbols which are in FARSPACE
4230         but in CODESPACE too,
4231         * (assignResultValue): modified to take into account _G.useWreg,
4232         * (genCall): don't use wreg for parameter passing when function is
4233         declared as reentrant, too, added optimization INCF to stack
4234         pointer when stack parameter count is 1,
4235         * (genFunction, genEndFunction): refurnished and fixed to not using
4236         wreg for passing parameters when function has varargs or is
4237         reentrant, fixed bug with symbol name compare for generating
4238         functions in absolute address,
4239         * (pic16_storeForReturn): refurnished,
4240         * (genCmp): began writing a new version of the function, not ready
4241         yet, therefore it is disabled,
4242         * (genAssign): do not read code memory when assigning a function to
4243         a pointer function,
4244         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
4245         array of characters, not pointer,
4246         * (pic16initialComments): in debug mode emit an .ident directive for
4247         the assembler,
4248         * (_process_pragma): emit a new warning type (internal to pic16)
4249         when setting stack to default length, emit a similar warning when
4250         placing a function at absolute address and address is not word aligned
4251         * (_pic16_parseOptions): added 'return TRUE' statement,
4252         * (_pic16_linkEdit): if compiling a source, then add the source's
4253         file object, first in the list of objects to link,
4254
4255 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
4256
4257         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
4258         * src/pic/main.c : removed VC warning.
4259         * src/pic/gen.c : changed comment.
4260
4261 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
4262
4263         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
4264         reference to a deprecated symbol _GPTRREG was causing failure to
4265         link. Thanks G. M. Gallant for the info.
4266
4267 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
4268
4269         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
4270         comments for Bugs item #954788.
4271
4272 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
4273
4274         * src/pic16/device.c (pic16_dump_gsection,
4275         * pic16_groupRegistersInSection): handle symbols declared to be in
4276         access bank differently,
4277         * src/pic16/gen.c (struct _G): added field resDirect,
4278         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
4279         send values read from stack directly to result and don't allocate
4280         temporary values,
4281         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
4282         same registers,
4283         * (pic16_sameRegsOfs): NEW,
4284         * (freeAsmop): if _G.resDirect is set then do not mark registers as
4285         free because they were not allocated from temporary pool,
4286         * pic16_popRegFromString): workaround to fix a problem with
4287         allocating variables twice or never,
4288         * (genGenPointerGet): using PRODL instead of FSR0H,
4289         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
4290         instead of FSR0H,
4291         * (genAssign): take advantage of the _G.resDirect flag,
4292         * (genCast): around line 11844, use mov2f instead of directly
4293         MOVFF'ing between operands to account for literal values,
4294         * src/pic16/genutils.c: some new debug functions for gpsim have been
4295         added,
4296         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
4297         float with integer part only,
4298         * src/pic16/main.c (_process_pragma): handle pragma udata access to
4299         place variables in access bank
4300         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
4301         updated sources to reflect recent changes in gen.c
4302
4303 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
4304
4305         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
4306         sources that searched for headers in installation path, now the
4307         device/include/pic16 is used,
4308         * src/pic16/glue.c (pic16glue),
4309         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
4310         .line directives if not in debug mode, this suppresses assembler's
4311         warnings for ignored directives
4312
4313 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4314
4315         * src/port.h: made reset_regparms prototype void parameter explicit.
4316         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
4317         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
4318         * doc/sdccman.lyx: documented warning disabling and how to use
4319           printf_large to make it print floats.
4320         * device/include/stdbool.h: NEW
4321         * device/lib/_atof.c,
4322         * device/lib/_divuint.c,
4323         * device/lib/_divulong.c,
4324         * device/lib/expf.c,
4325         * device/lib/printf_large.c,
4326         * device/lib/sincosf.c,
4327         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
4328         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
4329           a completely reentrant lib.
4330
4331 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
4332
4333         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
4334         * device/include/pic16/stdio.h: fixed bug with colon
4335
4336 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
4337
4338         * device/include/pic16/stdio.h,
4339         * device/include/pic16/stdlib.h,
4340         * device/include/pic16/math.h: NEW
4341         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
4342         declared as _naked to reduce overhead
4343         * device/lib/Makefile.in (target port-specific-objects-pic16):
4344         changed * to *.* so to ignore the CVS directory,
4345         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
4346         stacked variables back in stack,
4347         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
4348         corruption
4349
4350 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
4351
4352         * .version: bumped version number to 2.4.5
4353         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
4354         * support/Util/SDCCerr.c (messages structure): added entry for
4355         W_POSSBUG2
4356
4357         Large cumulative patch for pic16 port and libraries.
4358         * device/include/pic16/sdcc-lib.h,
4359         * device/include/pic16/stdarg.h,
4360         * device/include/asm/pic16/features.h,
4361         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
4362         * device/include/pic16/float.h: changes reentrant keyword with
4363         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
4364         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
4365         updated target build-libraries to include objects from gptr,
4366         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
4367         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
4368         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
4369         all function headings,
4370         * src/SDCCmain.c: added global parameter userIncDirsSet,
4371         * (parseCmdLine): when option -I is encountered add directory to
4372         userIncDirsSet too,
4373         * src/version.awk: added space between control and long,
4374         * src/pic16/NOTES: added some notes for the port,
4375         * src/pic16/gen.c: added prototype for mov2fp function,
4376         * (fReturnpic16[]): properly named return value registers,
4377         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
4378         * (aopForSym): added code to handle symbols with onStack flag set,
4379         symbols onStack are allocated PTRSIZE bytes,
4380         * (aopFreeAsmop): handles special case where asmops are stack objects,
4381         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
4382         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
4383         added argument lock to trace flaws in allocating temporary registers
4384         when developing port,
4385         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
4386         * (pic16_popRegFromString): reenabled allocating a direct register
4387         from string,
4388         * (assignResultValue): various beautifications,
4389         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
4390         referenced function argument,
4391         * (genIpush): reenabled to allow stacked arguments, handles only
4392         ic->parmPush iCodes,
4393         * (genCall, genPcall): major changes to allow for variable argument
4394         functions, fixed a bug with falsely restoring stack pointer after
4395         returning from call,
4396         * (genFunction): pending code for critical function,
4397         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
4398         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
4399         * (genNearPointerGet): fixed bug with indirect reading, was always
4400         reading from INDF0
4401         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
4402         pointers,
4403         * (genAddrOf): rewrote code to take address of a stacked function parameter
4404         * (genCast): fixed casting to generic pointer type,
4405         * src/pic16/gen.h: added AOP_STA,
4406         * (struct asmop): added field stk,
4407         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
4408         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
4409         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
4410         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
4411         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
4412         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
4413         generic pointers,
4414         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
4415         and library paths,
4416         * (pic16_port structure): generic pointer size is set to 3,
4417         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
4418         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
4419         compiler warning,
4420         * src/pic16/ralloc.c (allocReg): prevent allocating register when
4421         operand is an iTemp,
4422
4423 2004-09-24 Martin Helmling <mh AT octo-soft.de>
4424
4425         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
4426         * debugger/mcs51/simi.c: addapt new syntax of s51
4427
4428 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
4429
4430         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
4431         * src/pic16/pcode.c: commented out some calls to free() in order to
4432         fix bug #989576,
4433
4434 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4435
4436         * src/SDCCicode.h,
4437         * src/SDCCicode.c (isiCodeInFunctionCall),
4438         * src/avr/ralloc.c (selectSpil),
4439         * src/pic/ralloc.c (selectSpil),
4440         * src/pic16/ralloc.c (selectSpil),
4441         * src/ds390/ralloc.c (selectSpil),
4442         * src/hc08/ralloc.c (selectSpil),
4443         * src/xa51/ralloc.c (selectSpil),
4444         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
4445         stack in the middle of a function call sequence (fixes bug #1020268)
4446         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
4447         costs associated with the minimum switch case.
4448
4449 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4450
4451         * src/SDCC.lex: fixed bug #1030549
4452
4453 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4454
4455         * src/SDCCcse.h (struct cseDef),
4456         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
4457         over a function call if the CSE is derived from a symbol whose
4458         address has been taken (fixes bug #1029883)
4459         * support/regression/tests/bug-1029883: a new regression test for
4460         this bug
4461
4462 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4463
4464         * src/hc08/gen.c (emitinline): fixed bug #1029778
4465         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
4466         to a cast object is no longer a syntax error ("fixes" bug #1030006,
4467         and starts toward RFE #905167)
4468
4469 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
4470
4471         * src/pic16/gen.c (mov2f): New function to move an operand to
4472         another without considering if it is a literal or a register,
4473         * (pic16_sameRegs): don't check if they are both AOP_REG,
4474         * (AccRsh): removed andmask=0 lines,
4475         * (genLeftShift): duplicated to be improved in future versions,
4476         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
4477         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
4478         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
4479         * (pic16initMnemonics): added initialization for POC_INFSNZW,
4480         * (insertBankSwitch): fixed inserting banksel directives algorithm
4481         for instructions that follow a skip instruction, this fixes a report
4482         for broken subtraction code generation,
4483         * src/pic16/ralloc.c (deassignLRs): do not free register if current
4484         iCode is a left op, just in case result and right share the same
4485         registers
4486
4487 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4488
4489         * src/hc08/main.c,
4490         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
4491         preservation of HX
4492         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
4493         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
4494         on 2004-09-12; it was buggy
4495
4496 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4497
4498         * src/SDCCsymt.h: removed RESULT_CHECK
4499         * src/SDCCast.c,
4500         * src/SDCCglue.c,
4501         * src/SDCCval.c,
4502         * src/pic/glue.c,
4503         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
4504
4505 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
4506
4507         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
4508         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
4509         configuration values no more rejected by compiler, they are assigned
4510         to configuration registers with a warning message instead,
4511         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
4512         the for-loop so last conf register is emitted too,
4513         * (_pic16_initPaths): link library libsdcc.lib by default,
4514         * (_hasNativeMulFor): modified test for multiplication according to
4515         Raphael Neider's remarks. Integer multiplication is also done with
4516         support functions,
4517         * device/include/pic16/pic18fregs.h: corrected type error in while
4518         testing and including 18f6720 header file
4519
4520 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
4521
4522         * src/pic16/device.h (pic16_options): removed field use_crt,
4523         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
4524         until an optimization to handle single bits is added,
4525         * (pic16_loadFSR0): moved before genUnpackBits,
4526         * (genAnd): some white lines removed,
4527         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
4528         leave_reset flags in pic16_options when using crt modules,
4529
4530 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
4531
4532         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
4533           for bugs 898889 & 979599. Also used some safer print instructions.
4534
4535 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
4536
4537         * src/pic16/device.h (pic16_options_t): added field use_crt,
4538         crt_name, no_crt,
4539         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
4540         catch a probable future bug,
4541         * src/pic16/gen.c: aopIdx function commented out,
4542         * (genAssign): commented out old code which used aopIdx,
4543         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
4544         code, added if conditionals to take into account the --use-crt
4545         command line options,
4546         * src/pic16/main.c (pic16_optionsTable): added new command line
4547         options, --use-crt= and --no-crt,
4548         * (_pic16_linkEdit): now the proper crt object is added in the
4549         linker command line except than when --no-crt is specified,
4550         * src/pic16/pcode.c,
4551         * src/pic16/pcode.h: added some structures and functions for a new
4552         optimization scheme to compansate for instruction overhead between
4553         same iCodes, this scheme is currently under development and is not
4554         working in any way,
4555         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
4556         to && operator,
4557         * device/lib/pic16/startup/crt0i.c,
4558         * device/lib/pic16/startup/crt0iz.c: added global char variable
4559         __uflags to force the generation of an idata section
4560
4561 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
4562
4563         * doc/Makefile,
4564         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
4565         * doc/sdccman.lyx: updated sdcc version to 2.4.4
4566
4567 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4568
4569         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
4570         Frieder) and clarified the default code optimization mode
4571
4572 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4573
4574         * src/SDCC.lex (doPragma, process_pragma),
4575         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
4576         "opt_code_size", and "opt_code_balanced"
4577         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
4578         regrouped options by category, added support for category headers
4579         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
4580         and "--opt-code-size"
4581         * doc/sdccman.lyx: documented these new options and pragmas
4582         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
4583         preference into account
4584
4585 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4586
4587         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
4588           geniCodePreDec): Fixed bug 904237 by generating a warning
4589         * src/SDCCerr.h,
4590         * src/SDCCerr.c: added warning W_SIZEOF_VOID
4591
4592 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
4593
4594         * src/pic/device.c : When no max ram set validate full memory range.
4595         * src/pic/pcode.c,
4596         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
4597
4598 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4599
4600         * device/lib/_gptrget.c,
4601         * device/lib/_gptrput.c: updated comment
4602         * device/lib/calloc.c,
4603         * device/lib/free.c,
4604         * device/lib/malloc.c,
4605         * device/lib/realloc.c: added LGPL, made them reentrant-safe
4606         * src/SDCCcse.c (cseBBlock),
4607         * src/SDCCicode.c (printOperand, geniCodeArray),
4608         * src/SDCCicode.h (struct operand): fixed bug 868103
4609         * support/regression/tests/bug-868103.c: added
4610         * src/SDCCast.c (searchLitOp),
4611         * src/SDCCcse.h (struct cseDef),
4612         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
4613         * src/SDCCicode.h (struct operand),
4614         * src/SDCCsymt.h (struct sym_link),
4615         * src/avr/gen.c (hasInc),
4616         * src/ds390/gen.c (hasInc),
4617         * src/hc08/gen.c (genPlusIncr, hasInc),
4618         * src/mcs51/gen.c (hasInc),
4619         * src/pic16/glue.c (pic16_printIvalChar),
4620         * src/pic16/ralloc.c (regWithIdx),
4621         * src/xa51/gen.c (hasInc) : removed warnings
4622         * src/SDCCast.c (createBlock): added comment ???
4623         * src/hc08/ralloc.c: updated comments
4624
4625 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4626
4627         * doc/sdccman.lyx: updated section on switch statements, added
4628         section about semaphore locking
4629         * doc/Makefile: added option -info for latex2html
4630         * device/lib/_gptrget.c,
4631         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
4632
4633 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4634
4635         * src/pic/device.h,
4636         * src/pic/device.c,
4637         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
4638          maxram is less than 0x100.
4639
4640 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4641
4642         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
4643
4644 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4645
4646         * src/port.h,
4647         * src/mcs51/main.c,
4648         * src/ds390/main.c,
4649         * src/z80/main.c,
4650         * src/hc08/main.c,
4651         * src/pic/main.c,
4652         * src/pic16/main.c,
4653         * src/avr/main.c,
4654         * src/xa51/main.c
4655         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
4656         a jump table is the best form for a switch statement, including
4657         automatic insertion of missing cases to make the case range
4658         continuous. Developed in collaboration with Frieder Ferlemann.
4659
4660 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4661
4662         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
4663         accumulator result if it needs sign extension
4664
4665 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4666
4667         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
4668
4669 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4670
4671         * device/lib/gbz80/printf.c,
4672         * device/lib/z80/printf.c: removed define for NULL
4673
4674 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4675
4676         * as/xa51/xa_link.c,
4677         * device/examples/ds390/ow390/ad26.c,
4678         * device/examples/ds390/ow390/cnt1d.c,
4679         * device/examples/ds390/ow390/counter.c,
4680         * device/examples/ds390/ow390/ds2480.h,
4681         * device/examples/ds390/ow390/ds2480ut.c,
4682         * device/examples/ds390/ow390/findtype.c,
4683         * device/examples/ds390/ow390/gethumd.c,
4684         * device/examples/ds390/ow390/owllu.c,
4685         * device/examples/ds390/ow390/ownetu.c,
4686         * device/examples/ds390/ow390/swt12.c,
4687         * device/examples/ds390/ow390/swtloop.c,
4688         * device/examples/ds390/ow390/temp.c,
4689         * device/examples/ds390/ow390/temp10.c,
4690         * device/examples/ds390/ow390/thermo21.c,
4691         * device/examples/ds390/ow390/tinilnk.c,
4692         * device/examples/ds390/ow390/tstfind.c,
4693         * device/examples/serialcomm/windows/serial.cpp,
4694         * device/examples/serialcomm/windows/test_serialcomm.cpp,
4695         * device/include/reg51.h: fixed line endings for cvs
4696
4697 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4698
4699         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
4700         packRegsForAccUse, packRegisters): new accumulator register
4701         packing algorithm
4702         * support/regression/ports/hc08/support.c (_putchar): suppress
4703         warning of unused variable
4704         * src/SDCCicode.c: added SWAP entry to codeTable
4705
4706 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
4707
4708         * device/lib/sprintf.c: forgot to add this file before previous commit
4709
4710 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
4711
4712         * src/pic16/gen.c (genPackBits): added operand right in function
4713         parameters, load result directly if p_type is POINTER (that is
4714         called by genNearPointerSet)
4715         * (genUnPackBits): added operand left in function parameters,
4716         * (genNearPointerGet, genNearPointerSet): prevent the loading of
4717         FSR0 if accessing bitfields,
4718
4719 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
4720
4721         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
4722           _print_format; updated printf, sprintf, vsprintf
4723         * device/include/asm/default/features.h: corrected comment/define
4724         * device/lib/Makefile.in: added sprintf.c
4725         * device/lib/libsdcc.lib: added sprintf module
4726         * device/lib/printf_large.c,
4727         * device/lib/vprintf.c,
4728         * device/lib/sprintf.c: totally refactored printf_large and vprintf
4729           into these 3 files
4730         * support/regression/Makefile: changed ALL_PORTS into a usefull default
4731         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
4732         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
4733           hc08 test
4734         * support/regression/tests/zeropad.c: define idata as data for hc08
4735
4736 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4737
4738         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
4739         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
4740         labels are referenced at least once (even if a reference is not found)
4741         * src/hc08/gen.c (emitcode): set isComment flag for comments
4742         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
4743         loads), rules 6a..6b (optimize jumps to return)
4744
4745 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4746
4747         * device/lib/acosf.c (acosf),
4748         * device/lib/asinf.c (asinf),
4749         * device/lib/atanf.c (atanf),
4750         * device/lib/ceilf.c (ceilf),
4751         * device/lib/cosf.c (cosf),
4752         * device/lib/coshf.c (coshf),
4753         * device/lib/cotf.c (cotf),
4754         * device/lib/fabsf.c (fabsf),
4755         * device/lib/floorf.c (floorf),
4756         * device/lib/log10f.c (log10f),
4757         * device/lib/logf.c (logf),
4758         * device/lib/sinf.c (sinf),
4759         * device/lib/sinhf.c (sinhf),
4760         * device/lib/sqrtf.c (sqrtf),
4761         * device/lib/tanf.c (tanf),
4762         * device/lib/tanhf.c (tanhf),
4763         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
4764         replaced all instances of "reentrant" in the library functions
4765         defined in math.h with this macro.
4766         * support/regression/tests/float_trans.c: reenabled test for hc08
4767
4768 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4769
4770         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
4771         erroneously deleted
4772
4773 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4774
4775         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
4776         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
4777         multi-byte volatile operands are used
4778         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
4779         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
4780         initialization to area GSINIT0 so that it would always precede
4781         any static initializers in GSINIT
4782         * support/regression/tests/zeropad.c: fixed idata define for hc08
4783         * support/regression/tests/bug-927659.c,
4784         * support/regression/tests/float_trans.c: disabled tests for hc08
4785         pending missing library routines
4786         * .version: increased version number to 2.4.4 - hc08 port now passes
4787         regression tests
4788
4789
4790 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
4791
4792         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
4793         * Makefile.common.in,
4794         * as/Makefile,
4795         * as/hc08/Makefile.in,
4796         * as/mcs51/Makefile.in,
4797         * as/z80/Makefile.in,
4798         * debugger/mcs51/Makefile.in,
4799         * device/include/Makefile.in,
4800         * device/lib/Makefile.in,
4801         * doc/Makefile,
4802         * link/Makefile,
4803         * link/z80/Makefile.in,
4804         * packihx/Makefile.in,
4805         * sim/ucsim/main_in.mk,
4806         * sim/ucsim/avr.src/Makefile.in,
4807         * sim/ucsim/doc/Makefile.in,
4808         * sim/ucsim/gui.src/serio.src/Makefile.in,
4809         * sim/ucsim/hc08.src/Makefile.in,
4810         * sim/ucsim/s51.src/Makefile.in,
4811         * sim/ucsim/xa.src/Makefile.in,
4812         * sim/ucsim/z80.src/Makefile.in,
4813         * src/Makefile.in,
4814         * support/cpp2/Makefile.in,
4815         * support/librarian/Makefile,
4816         * support/makebin/Makefile: added DESTDIR to the install path proposed
4817         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
4818         * doc/sdccman.lyx: added DESTDIR documentation
4819
4820 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
4821
4822         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
4823         instruction for interrupt handlers, use fast returns when returning
4824         from high priority interrupts
4825
4826 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4827
4828         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
4829         code generation
4830         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
4831         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
4832         bugs, ported much of Bernhard's code from mcs51
4833         * src/mcs51/gen.c (genSend),
4834         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
4835         than one when calling a reentrant function
4836         * device/lib/_mullong.c: defined an alternate struct layout for big
4837         endian ports (hc08)
4838
4839 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4840
4841         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
4842         test
4843
4844 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4845
4846         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
4847         are sane and complete before asking the port its prefered parameter
4848         passing method (fixes bug #1017633)
4849         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
4850         and _ret3
4851
4852 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4853
4854         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
4855         problem in bitfields >= 8 bits.
4856
4857 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4858
4859         * src/SDCCsymt.c: undid changes that were not meant to be committed
4860
4861 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4862
4863         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
4864
4865 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4866
4867         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
4868           copied and wrong bit got inverted
4869
4870 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4871
4872         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
4873         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
4874         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
4875         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
4876         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
4877         assignments to bitfields at known addresses
4878         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
4879         reads from bitfields at known addresses
4880         * src/hc08/ralloc.c (packRegisters),
4881         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
4882         genhc08Code): optimize pointer get values used as conditionals
4883         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
4884         and branch
4885
4886 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4887
4888         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
4889         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
4890         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
4891         as conditionals
4892
4893 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4894
4895         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
4896
4897 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4898
4899         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
4900         related problems
4901
4902 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
4903
4904         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
4905
4906 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4907
4908         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
4909         mcs51 port
4910
4911 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
4912
4913         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
4914
4915 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4916
4917         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
4918         cases use more compact code.
4919
4920 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
4921
4922         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
4923
4924 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4925
4926         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
4927
4928 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4929
4930         * src/SDCCsymt.h,
4931         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
4932         parameter of changePointer() from symbol* to sym_link*
4933         * src/SDCCast.c (decorateType): call changePointer() for CAST op
4934         * src/SDCCsymt.c (compareType): void* type is castable to other
4935         pointers, but not necesarily an exact match.
4936         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
4937         is no longer blindly treated as an exact match.
4938         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
4939
4940 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
4941
4942         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
4943
4944 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
4945
4946         * src/pic/gen.c,
4947         * src/pic/pcode.c,
4948         * src/pic/ralloc.h,
4949         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
4950
4951 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
4952
4953         * src/pic/device.c,
4954         * src/pic/device.h,
4955         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
4956
4957 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4958
4959         * src/mcs51/gen.c (emitcode): fixed bug #992819
4960
4961 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
4962
4963         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
4964           there's no need to make it worse
4965
4966 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4967
4968         * src/mcs51/ralloc.c (deassignLR),
4969         * src/ds390/ralloc.c (deassignLR),
4970         * src/hc08/ralloc.c (deassignLR),
4971         * src/z80/ralloc.c (deassignLR),
4972         * src/pic/ralloc.c (deassignLR),
4973         * src/pic16/ralloc.c (deassignLR),
4974         * src/avr/ralloc.c (deassignLR),
4975         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
4976         rlivePoint): fixed another part of bug #971834
4977
4978 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4979
4980         * src/z80/main.c: enabled "critical" keyword
4981         * src/z80/mappings.i,
4982         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
4983         functions (fixes bug #979646)
4984         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
4985
4986 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4987
4988         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
4989           such as c:\mydir.
4990
4991 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
4992
4993         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
4994           doesn't disable too much optimizations
4995
4996 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4997
4998         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
4999
5000 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
5001
5002         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
5003
5004 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5005
5006         * src/pic/gen.c tidied up tabs
5007         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
5008         * src/pic/main.c tidied up tabs
5009         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
5010         * src/pic/pcoderegs.c tidied up tabs
5011         * src/pic/ralloc.c tidied up tabs
5012
5013 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
5014
5015         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
5016         to S_FIXED for pic16 port and when symbol is not in level 0,
5017         allocate for S_REGISTER storage class and pic16 port, too,
5018         * src/pic16/device.h: prototype for checkSym,
5019         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
5020         * (pic16_assignConfigWordValue): test the value and the mask to
5021         validate that the value is suitable for the configuration word,
5022         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
5023         collect extern declared symbols, don't emit symbol twice, check
5024         first if symbol is in publics set first,
5025         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
5026         * added command line '--fstack' which enables an experimental
5027         feature for stack access, too buggy to be used yet...
5028         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
5029         * (pic16_allocDirReg): when register has storage class S_REGISTER
5030         allocate in pic16_dynAccessRegs,
5031         * device/include/pic16/pic18f????.h: modified configuration word
5032         naming convention, words started as CONFIG0H but should be CONFIG1H
5033
5034 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5035
5036         * device/include/mcs51reg.h: fixed bug 970993
5037
5038 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
5039
5040         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
5041         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
5042         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
5043         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
5044         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
5045         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
5046           error/warning numbers,
5047           added function setWarningDisabled()
5048         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
5049         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
5050           _memcmp.c _memmove.c calloc.c realloc.c free.c
5051         * support/regression/tests/malloc.c: added tests for new functionality
5052         * support/regression/tests/zeropad.c: added tests for truncated initializers
5053           and initialized char arrays starting with '\x0'
5054         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
5055
5056 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
5057
5058         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
5059
5060 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5061
5062         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
5063         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
5064         peephole 177.e. Thanks to anonymous
5065
5066 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
5067
5068         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
5069         function isn't used in the source but referenced as a
5070         variable initializer then declare it as extern in .asm file
5071
5072 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
5073
5074         * .version: increased version number to 2.4.3
5075
5076         Adding version extension according to ChangeLog CVS revision
5077         * src/Makefile.in (target all): added dependency 'version.h'
5078         * (rule version.h): added rule to create version.h from ChangeLog,
5079         * (rule dep): added dependency version.h,
5080         * src/version.awk: AWK script to create version.h
5081         * src/SDCCdwarf2.c (dwWriteModule),
5082         * src/SDCCglue.c (initialComments),
5083         * src/SDCCmain.c (printVersionInfo): modified to write after
5084         version string the version extension number,
5085         * src/SDCCutil.c: included "version.h"
5086         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
5087         number,
5088         * src/SDCCutil.h: added prototype for getBuildNumber
5089
5090         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
5091         includeDirsSet, too,
5092         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
5093         const char [] is found in function prototype...
5094
5095         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
5096         moving to WREG with source is already in WREG,
5097         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
5098         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
5099         * (aopForSym): stack'ed symbols are partially supported, added
5100         if-clause to support symbols in FARSPACE,
5101         * (sameRegs): added test for AOP_ACC to see if registers are same,
5102         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
5103         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
5104         * (pic16_popRegFromString): will not allocate a new register if it
5105         doesn't find one by name, bug may have introduced...
5106         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
5107         * (genIpush): revived to use pic16 port's stack,
5108         * (genAddrOf): added incomplete case for stack'ed operand,
5109         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
5110         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
5111         can handle multibyte operands,
5112         * src/pic16/glue.c (pic16_printIval*): some debug info added,
5113         * (pic16initialComments): added message for MPLAB compatibility
5114         mode enabled,
5115         * src/pic16/main.h: prototype for pic16_mplab_comp,
5116         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
5117         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
5118         * (_pic16_linkEdit): NEW, handles link stage, transferred here
5119         because of increased complexity of procedure,
5120         * (_process_pragma): stack pragma changed to format 'stack pos len',
5121         emit symbol '_stack_end' to conform with gplink,
5122         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
5123         to search for register,
5124         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
5125         PO_GPR_REGISTER,
5126         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
5127         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
5128         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5129         case for PO_GPR_REGISTER,
5130         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
5131         dies, the new era is ahead !...
5132         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
5133         pic16_dynInternalRegs,
5134         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
5135         * (pic16_allocDirReg): minor optimizations and bug fixes,
5136         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
5137
5138         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
5139         load stack and frame pointer with address of 'stack_end' symbol
5140
5141 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
5142
5143         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
5144         without source code but only variable initializers
5145
5146 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
5147
5148         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
5149         external are not declared as extern to reduce overhead while linking
5150
5151 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
5152
5153         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
5154
5155 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
5156
5157         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
5158           Yee Keat for the patch
5159         * src/SDCCast.c (decorateType): fixed bug #979599
5160         * src/ds390/gen.h: removed local fReturnSizeDS390
5161         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
5162         * src/ds390/gen.c (genAnd, genOr, genXor),
5163         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
5164
5165 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
5166
5167         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
5168         add relFilesSet to $3, manipulate $2 to handle linking of object
5169         files without source files in command line,
5170         * device/include/pic16 (all headers): added ID location macros,
5171         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
5172         entries for ID location bytes,
5173         * (pic16_assignIdByteValue): NEW,
5174         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
5175         added field dumpcalltree to pic16_options_t,
5176         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
5177         is used instead of pic16_Gstack_base_addr, check if (ifx) before
5178         emitting rFalseIfx label after check_carry label,
5179         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
5180         pic16_emitDIRegs), NEW
5181         * (pic16glue): dump .calltree file when option --calltree found,
5182         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
5183         * (_pic16_genAssemblerPreamble): emit ID locations after
5184         configuration registers,
5185         * (pic16_linkCmd): modifications of the link command,
5186         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
5187         * (pic16_pCodeInitRegisters): don't init stack registers,
5188         * (pic16_findPrevInstruction): fixed bug,
5189         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
5190         bug with immediate registers,
5191         * (buildCallTree): traces stack push and pop,
5192         * (pct2): dump also stack usage for each function,
5193         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
5194         * (pic16_allocDirReg): various modifications,
5195         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
5196         fixed to 1,
5197
5198 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
5199
5200         * src/pic16/pcode.c: removed buggy double colon
5201
5202 2004-07-01 Borut Razem <borut.razem AT siol.net>
5203
5204         * support/scripts/sdcc.nsi: added include/pic16 to setup
5205
5206 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
5207
5208         * device/lib/Makefile.in: fixed bug in target objects-pic16,
5209         * device/lib/pic16/Makefile: prefixed with dash (-) command under
5210         target 'clean',
5211         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
5212         specific command line arguments. Also added sample lkr script
5213         for placing a variable at a specific memory bank.
5214         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
5215         at a specific memory bank,
5216         * (pic16_dump_isection): fixed bug which caused string literals to
5217         be omitted when dumping idata section,
5218         * (pic16_groupRegistersInSection): added code to handle registers
5219         in specific memory banks,
5220         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
5221         public, all references are renamed too,
5222         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
5223         AOP_DPTR2,
5224         * (pic16_storeForReturn): added case to handle when dest is WREG,
5225         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
5226         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
5227         pic16_rel_udata, check to see if that register is marked as being
5228         a member of a specific memory bank,
5229         * (pic16_printIvalCharPtr): added code to add string literals either
5230         to code or the idata sections,
5231         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
5232         also accept the 'udata' pragma,
5233         * src/pic16/main.h: new structure types sectName and sectSym
5234         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
5235         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
5236         * (pic16_findPrevInstruction): fixed, it returned nothing,
5237         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
5238         instruction combinations,
5239         * (pic16_FixRegisterBanking): heavily reorganised,
5240         * (pic16_AnalyzeBanking): if generating banksel directives is
5241         disabled, then don't call FixRegisterBanking at all,
5242         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
5243         completely removed,
5244         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
5245
5246 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5247
5248         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
5249         Phuah Yee Keat <yk.phuah AT nestac.com>
5250
5251 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5252
5253         * src/pic16/glue.c (pic16createInterruptVect): function now emits
5254         correctly the IVT even if it is relocated to some other location
5255
5256 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5257
5258         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
5259         * device/include/pic16/pic18f2220.h: NEW,
5260         * device/lib/pic16/libdev/pic18f2220.c: NEW,
5261         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
5262         * src/pic16/device.c (struct Pics16): added info for 18f2220,
5263         * src/pic16/device.h (struct pic16_options): added ivt_loc and
5264         nodefaultlibs, ivt_loc is the location of the interrupt vector
5265         table, and nodefaultlibs signs that default libraries should not be
5266         linked in link stage,
5267         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
5268         according to --ivt-loc argument,
5269         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
5270         when pragma stack is found,
5271
5272 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5273
5274         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
5275         256 (range check), 257 (do while), 258.a-f (bit banging
5276         f.e. on 3-wire SPI bus)
5277
5278 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5279
5280         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
5281         variables used exclusively within a loop
5282
5283 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
5284
5285         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
5286
5287 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5288
5289         * src/SDCClrange.c (computeClash): fixed bug #971834
5290
5291 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5292
5293         * src/mcs51/gen.c (genCmp): fixed bug #975903
5294         * src/hc08/gen.c (operandsEqu),
5295         * src/ds390/gen.c (operandsEqu),
5296         * src/z80/gen.c (operandsEqu),
5297         * src/pic/gen.c (operandsEqu),
5298         * src/pic16/gen.c (operandsEqu),
5299         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
5300         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
5301
5302 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5303
5304         * src/SDCCcse.c (cseBBlock): fixed bug #966963
5305
5306 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
5307
5308         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
5309         default case in switch statement,
5310         * glue.c (pic16_initPointer): expr is initialised via decoarteType
5311         to eliminate problem with initialisation of pointers, but problem
5312         still exists,
5313         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
5314         * (emitStaticSegment): removed various lines emitting debug info,
5315         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
5316         added processor registers for utilizing EEPROM,
5317         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
5318         configurable and set 8
5319
5320 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
5321
5322         * .version: increased version number to 2.4.2,
5323
5324         Cumulative patch for pic16 port
5325         * src/pic16/device.c: changed scheme to dump initial values for
5326         variables in idata segment, all print_idata* functions were removed,
5327         now the pic16_printIval* will be called,
5328         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
5329         * _pic16_printPointerType, pic16_printPointerType,
5330         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
5331         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
5332         NEW, similar to the respective functions in SDCCglue.c,
5333         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
5334         way, emitting hex bytes,
5335         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
5336
5337 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5338
5339         * src/avr/ralloc.c (serialRegAssign),
5340         * src/xa51/ralloc.c (serialRegAssign),
5341         * src/pic/ralloc.c (serialRegAssign),
5342         * src/pic16/ralloc.c (serialRegAssign),
5343         * src/hc08/ralloc.c (serialRegAssign),
5344         * src/z80/ralloc.c (serialRegAssign),
5345         * src/ds390/ralloc.c (serialRegAssign),
5346         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
5347
5348 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5349
5350         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
5351         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
5352
5353 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
5354
5355         Cumulative patch for pic16 port:
5356         * src/pic16/device.h (typedef PIC16_device) modified fields for
5357         defining microcontrollers,
5358         * src/pic16/device.c: added new info for all devices in Pics16 array,
5359         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
5360         to be optimised out by the pCode optimiser,
5361         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
5362         specially, bug reported by G.M. Gallant,
5363         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
5364         as force'd so that cannot be optimised out by pCode optimiser,
5365         * src/pic16/pcode.c,
5366         * src/pic16/pcodepeeph.c,
5367         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
5368         they are disabled by default, but can be enabled explicit with
5369         command argument --denable-peeps, for testing,
5370         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
5371         --pomit-ivt in COMPILE_FLAGS
5372
5373 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5374
5375         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
5376           compilation on MSVC
5377
5378 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5379
5380         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
5381
5382 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5383
5384         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
5385         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
5386
5387 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
5388
5389         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
5390         would only assign 0x300001 register.
5391
5392 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
5393
5394         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
5395         in COMPILE_FLAGS. Thanks to G. Gallant for report.
5396
5397 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5398
5399         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
5400         for ds80c400
5401         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
5402         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
5403         added peephole 254 (left shift), 255 (jump table)
5404
5405 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
5406
5407         * device/lib/Makefile.in: removed comment line with model-pic16,
5408         * (target port-specific-objects-pic16): the libraries and objects
5409         are copied to the build directory form the device/lib/pic16/bin
5410         directory
5411
5412         Cumulative patch concerning pic16 port:
5413         * library directory has been re-organized,
5414         * added support for PIC18F1220,
5415         * added headers and library sources for chips 18f1220,18f6520,
5416         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
5417
5418         * configuration registers setting has changed, now each supported
5419         device has a complete description of the registers it uses,
5420         * all initialisations are moved to idata sections, these section
5421         can be absolute or relocatable,
5422         * fixed initialisation of codespace variables,
5423         * fixed warning about PCLATU and gpsim,
5424         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
5425         * (genAssign): use table reads when assigning from variables in codespace,
5426         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
5427         char/int variables placed in codespace,
5428         * (pic16_emitConfigRegs): NEW, emits a list with configuration
5429         registers set in .asm file, no need for --pomit-config-words anymore,
5430         * (pic16glue): some 8051 legacy segments are commented out
5431         (to be removed completely),
5432         * added support for alternative assembler and linker with --asm=
5433         and --link= command line arguments,
5434         * peepholes are disabled automatically in the port, no need to
5435         specify on command line,
5436         * port supports natively char/int/long multiplication, but converts
5437         all divisions to support functions,
5438         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
5439         to the file set in variable $2,
5440         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
5441         strings in ASCII format and not in hex,
5442         * ralloc.c (serialRegAssign): added a triplet of conditional calls
5443         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
5444         allocate proper register if iCodes aren't temporary,
5445
5446 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5447
5448         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
5449
5450 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
5451
5452         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
5453         is commented out
5454
5455 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5456
5457         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
5458         computed address is reused
5459         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
5460         multi-byte bitfields
5461
5462 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5463
5464         * src/z80/gen.c: (genArrayInit): must check for pointers too
5465
5466 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5467
5468         * support/regression/tests/zeropad.c: never meant to commit the
5469           nestedstruct test: removed, added check for GCC version
5470
5471 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
5472
5473         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
5474         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
5475         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
5476           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
5477           bugs 928906 and 954082 half-empty initializers
5478         * src/SDCCsymt.h,
5479         * src/SDCCsymt.c (getAllocSize): added for above fix
5480         * src/z80/gen.c (genArrayInit): fixed bug 741044
5481         * support/regression/tests/zeropad.c: added tests
5482
5483 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
5484
5485         * src/pic16/device.c (pic16_dump_section): corrected bug which
5486         caused some symbols of the libraries to be misplaced
5487
5488 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5489
5490         * src/pic16/glue.c,
5491         * src/pic16/ralloc.h,
5492         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
5493         to fix conflict with pic port
5494
5495 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5496
5497         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
5498         externs configuration variables,
5499         * src/pic16/ralloc.h,
5500         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
5501         prototype in header, commented out some debug messages
5502
5503 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
5504
5505         * src/pic16/glue.c,
5506         * src/pic16/main.c,
5507         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
5508         for gpasm COFF object generation. Thanks to D. Hawkins for
5509         his patch info
5510
5511 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5512
5513         * src/ds390/main.c,
5514         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
5515         Brock for spotting this)
5516         * src/ds390/gen.c (genEndFunction),
5517         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
5518         interrupt handler and critical. Disable push/pop optimizations when
5519         peephole optimizations disabled.
5520
5521 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5522
5523         Updated pic16 library sources and headers.
5524         * device/lib/pic16/pic18f*/ ,
5525         * device/include/pic16/*.h: modified to handle structured SFR
5526         definitions
5527
5528 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5529
5530         * src/port.h (PORT structure): added hook initPaths, now each
5531         port can declare its own default search paths,
5532         which can been seen with the --print-search-dirs option,
5533         see pic16 port for example,
5534         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
5535         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
5536         * (doPrintSearchDirs): NEW, replaces in a central manner the
5537         printing of search dirs which was split in set*Paths functions,
5538         * (main): added call to port->initPaths and doPrintSearchDirs,
5539         * src/avr/main.c,
5540         * src/ds390/main.c,
5541         * src/hc08/main.c,
5542         * src/izt/i186.c,
5543         * src/izt/tlcs900h.c,
5544         * src/mcs51/main.c,
5545         * src/pic/main.c,
5546         * src/pic16/main.c: modified port structures to reflect addition of
5547         initPaths hook,
5548
5549         * src/pic16/device.c (regCompare): registers are finally sorted by name,
5550         * (pic16_dump_section): for registers in same address reserve memory once,
5551         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
5552         to no_banksel,
5553         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
5554         result is greater in size than right or left,
5555         * (pic16_genUMult8X8_8): there are some cases where the result can
5556         be 16 bits size, so handle these,
5557         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
5558         * (pic16_outBitC): modified to emit pcodes,
5559         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
5560         or not,
5561         * (genDivOneByte): implemented algorithm to divide 8-bits,
5562         * (genCmp): uncommented goto, but issues still exist,
5563         * (genAnd): fixed a bug with variables >8bits,
5564         * (genPackBits): optimization added that uses BCF/BSF to change a
5565         single bit,
5566         * (genAssign): fixed bug when assigning floating point literals,
5567         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
5568         __sdcc_gsinit_startup label,
5569         * src/pic16/main.c (_pic16_init): removed search directory
5570         initialisations,
5571         * (_pic16_initPaths): NEW, used to initialise search directories,
5572         * (_hasNativeMulFor): support functions for all except char/int
5573         multiplication, and char division,
5574         * (PIC16_port struct): modified entry for native mul support,
5575         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
5576         no_banksel option,
5577         * (buildCallTree): call to register_usage is ifdef'ed out,
5578
5579 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5580
5581         * device/include/string.h: applied Stas Sergeev's patch to make this
5582         header file compatible with the preprocessor -Wundef option
5583         * src/SDCCmain.c (main): abort compilation if preprocessor reports
5584         failure (fixes bug #941458)
5585
5586 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5587
5588         * src/SDCCopt.c (killDeadCode): fixed bug #907733
5589         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
5590         that the variable, not the function, should be static
5591         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
5592         to be consistent with non-literal case
5593
5594 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5595
5596         * src/SDCCast.c (isConformingBody): fixed bug #949967
5597         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
5598         convilong): fixed bug #952086
5599
5600 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5601
5602         * src/SDCCmem.c (allocVariables): fixed bug #955321
5603
5604 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5605
5606         * src/hc08/main.c (_hc08_genAssemblerEnd),
5607         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
5608         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
5609         completely eliminated the use of a temporary file
5610         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
5611         when more than one file linked
5612         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
5613
5614 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5615
5616         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
5617         which fixes bug #543481
5618         * support/regression/tests/bug-751703.c: fixed comments left from a
5619         cut and paste error
5620         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
5621         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
5622         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
5623         scopes
5624         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
5625         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
5626         are now changed to underscores in moduleName
5627
5628 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5629
5630         * as/mcs51/lkmem.c: better fix for bug #954173
5631
5632 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5633         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5634
5635         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
5636         * device/include/c8051f000.h,
5637         * device/include/c8051f120.h,
5638         * device/include/c8051f300.h,
5639         * device/include/c8051f310.h,
5640         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
5641         PWM16) and detab'ed
5642
5643 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5644
5645         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
5646         and mailing lists, doc'ed --no-peep-comments, removed reference
5647         to knoppix (newest version has no LyX/LaTeX), other minor changes
5648         * src/SDCCglue.c (glue): save 2 bytes stack space with
5649         option --main-return. The ljmp could probably be avoided too
5650
5651 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5652
5653         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
5654
5655 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5656
5657         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
5658         * src/SDCCopt.c (isLocalWithoutDef),
5659         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
5660         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
5661         (credit to Maarten Brock for patch #949363, on which this is based)
5662         * support/regression/tests/bug-751703.c: some test cases of extern used
5663         within inner scopes.
5664
5665 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5666
5667         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
5668         SPEC_STRUCT
5669         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
5670         struct definitions
5671         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
5672         dwWriteLabel): fix to create valid debugger symbols even when
5673         the module name has non-alphanumeric symbols in it
5674         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
5675         when a variable's allocation has been optimized away
5676
5677
5678 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5679
5680         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
5681         * src/hc08/main.c,
5682         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
5683         * src/mcs51/main.c,
5684         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
5685         * src/ds390/main.c,
5686         * src/z80/gen.c (z80_emitDebuggerSymbol),
5687         * src/z80/main.c,
5688         * src/pic/gen.c (pic14_emitDebuggerSymbol),
5689         * src/pic/main.c,
5690         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
5691         * src/pic16/main.c,
5692         * src/avr/gen.c (avr_emitDebuggerSymbol),
5693         * src/avr/main.c,
5694         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
5695         * src/xa51/main.c,
5696         * src/SDCCdebug.c (emitDebuggerSymbol),
5697         * src/SDCCdebug.h,
5698         * src/port.h: added a debugger struct to the port struct. Added a
5699         callback for defining debugger symbols
5700
5701         * src/SDCCast.c (createLabel),
5702         * src/SDCC.y (labeled_statement): mark all compiler generated labels
5703         with isitmp = 1
5704         * src/SDCCicode.h,
5705         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
5706         iCode back to the ast for the function
5707
5708         * src/hc08/ralloc.c (hc08_assignRegisters),
5709         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
5710         unneeded fields from the regs struct.
5711         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
5712         pushReg() & pullReg() functions instead of emitcode()
5713
5714         * src/hc08/gen.c (genLabel, genhc08Code),
5715         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
5716
5717         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
5718         debugger hooks
5719
5720         * src/hc08/gen.c (genEndFunction, genhc08Code),
5721         * src/hc08/gen.h,
5722         * src/mcs51/gen.c (genEndFunction, gen51Code),
5723         * src/mcs51/gen.h,
5724         * src/ds390/gen.c (genEndFunction, gen390Code),
5725         * src/ds390/gen.h,
5726         * src/z80/gen.c (genEndFunction, genZ80Code),
5727         * src/z80/gen.h,
5728         * src/z80/z80.h,
5729         * src/pic/gen.c (genEndFunction, genpic14Code),
5730         * src/pic/gen.h,
5731         * src/pic16/gen.c (genEndFunction, genpic16Code),
5732         * src/pic16/gen.h,
5733         * src/avr/gen.c (genEndFunction, genAVRCode),
5734         * src/avr/gen.h,
5735         * src/xa51/gen.c (genEndFunction, genXA51Code),
5736         * src/xa51/gen.h,
5737         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
5738         specific code to cdbFile.c and out of the backend code generators
5739
5740         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
5741         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
5742         starting address is now 0
5743
5744         * as/hc08/asm.h,
5745         * as/hc08/m08pst.c,
5746         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
5747         assembler directive for DWARF support
5748         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
5749
5750         * src/src.dsp,
5751         * src/Makefile.in,
5752         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
5753
5754 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5755
5756         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
5757         and inappropriate peephole optimization in jump tables
5758
5759 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5760
5761         * as/hc08/m08pst.c,
5762         * src/SDCCglue.c: sdccopt works for the hc08 port now
5763
5764 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
5765
5766         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
5767
5768 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5769
5770         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
5771
5772 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5773
5774         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
5775         rules
5776         * src/SDCCmain.c,
5777         * src/SDCCglobl.h,
5778         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
5779         comments from the peephole optimizer replacement rules
5780         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
5781         symbols
5782         * src/SDCCcse.c (updateSpillLocation),
5783         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
5784         equivalents
5785         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
5786         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
5787         objects far pointers
5788
5789 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5790
5791         * src/SDCCsymt.h: a missing part of my last change
5792         * src/pic/ralloc.c (regTypeNum),
5793         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
5794
5795 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5796
5797         * src/SDCCicode.h,
5798         * src/SDCCicode.c (aggrToPtrDclType),
5799         * src/SDCCptropt.h,
5800         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
5801         ptrPseudoSymConvert),
5802         * src/pic/ralloc.c (regTypeNum),
5803         * src/pic16/ralloc.c (regTypeNum),
5804         * src/hc08/ralloc.c (regTypeNum),
5805         * src/ds390/ralloc.c (regTypeNum),
5806         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
5807         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
5808
5809 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5810
5811         * link/z80/lkmain.c (afile),
5812         * as/hc08/lkmain.c (afile),
5813         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
5814         prevent a pointer problem when a filename has no directory and
5815         no extension specified.
5816
5817 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5818
5819         * link/z80/lkmain.c (afile): allow periods in directory names
5820         * link/z80/lkmain.c (afile),
5821         * as/mcs51/lkmain.c (afile),
5822         * as/hc08/lkmain.c (afile): allow linker script file to have an
5823         extension other than ".lnk"
5824         * link/z80/lklex.c (getfid),
5825         * link/z80/lkmain.c (parse),
5826         * as/mcs51/lklex.c (getfid),
5827         * as/mcs51/lkmain.c (parse),
5828         * as/hc08/lklex.c (getfid),
5829         * as/hc08/lkmain.c (parse): Support comments in the linker script
5830         file on lines by themselves and after filenames
5831
5832 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5833
5834         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
5835
5836 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5837
5838         * src/z80/peeph-z80.def: removed some peephole rules that don't
5839         work with multibyte arithmetic (fixed bug #937126)
5840         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
5841         to registers and not global variables
5842         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
5843         geniCodePreInc, geniCodePostDec, geniCodePreDec,
5844         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
5845         checking for assignments not internally generated (fixed bug #931895)
5846         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
5847         structure member (fixed bug #930072)
5848
5849 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5850
5851         * src/SDCCmain.c (linkEdit),
5852         * src/hc08/main.c (_hc08_parseOptions),
5853         * as/hc08/Makefile.in,
5854         * as/hc08/aslink.h,
5855         * as/hc08/asm.h,
5856         * as/hc08/m08pst.c,
5857         * as/hc08/lkrloc.c (relr, rele),
5858         * as/hc08/lkarea.c (lnkarea)
5859         * as/hc08/lkmain.c (afile, parse),
5860         * as/hc08/lkelf.c: support for ELF output
5861         * as/hc08/lks19.c (s19),
5862         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
5863
5864 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5865
5866         * as/mcs51/lkihx.c: Fixed bug #899105.
5867
5868 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5869
5870         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
5871         .dsp files from Unix to DOS.
5872
5873 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5874
5875         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
5876         function pointers; we have been compliant for several months now.
5877         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
5878         change that was accidently commented out
5879         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
5880         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
5881         bug #922319
5882
5883 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5884
5885         * src/hc08/gen.c: output of all of the internal debugging information
5886         is now controlled by the D() macro; it is disabled by default
5887
5888 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5889
5890         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
5891         harder to keep the same registers during a CAST iCode
5892         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
5893         long via int can be done in a single cast, if the signedness is
5894         correct.
5895         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
5896         putchar() in tinibios.c in ds390's library
5897
5898 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
5899
5900         * src/SDCCast.c (decorateType): fixed bug #898889,
5901         cast result of a literal complement too
5902         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
5903         fixed check for bitfields
5904
5905 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
5906
5907         * src/SDCCicode.c (geniCodeLogic): made it static,
5908         (geniCodeLogicAndOr): added in order to fix bug #905492,
5909         (ast2iCode): fixed bug #905492
5910         * support/regression/tests/bug-905492.c: added
5911         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
5912         (processParms): fixed bug #927659: don't copy parms, this will clear
5913         decorated flag
5914         * support/regression/tests/bug-927659.c: added
5915
5916 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
5917
5918         * src/SDCCast.c (addCast): don't cast float to char
5919         * device/lib/libsdcc.lib: added _memmove
5920
5921 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
5922
5923         * device/lib/large/Makefile: fixed parallel execution by
5924         replacing `make` by `$(MAKE)`
5925
5926 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5927
5928         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
5929         offsets (fixes bug #923936)
5930
5931 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
5932
5933         * device/lib/small/Makefile: fixed parallel execution by
5934         replacing `make` by `$(MAKE)`
5935
5936 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5937
5938         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
5939
5940 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
5941
5942         * src/pic/gen.c (genCpl): multi-byte complements were not working.
5943         * src/regression/Makefile: Regression test was not running.
5944
5945 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5946
5947         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
5948         complement if possible
5949         * src/SDCCval.c (valComplement),
5950         * src/SDCCicode.c (operandOperation): fixed complement of literal
5951         * support/regression/tests/onebyte.c (testComplement): added
5952
5953 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
5954
5955         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
5956         return an optimized tree; actually replace actParm with the new tree
5957         * src/SDCCast.h: added some parantheses to remove side effects
5958         * support/regression/tests/bug-920866.c
5959
5960 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
5961         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
5962         Bit operands were not being handled properly in the pic14 port.
5963         (now src/regression/add.c passes again).
5964
5965 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5966
5967         * src/SDCC.y (labeled_statement): case and default no longer require
5968         a following statement (RFE #893037)
5969
5970 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5971
5972         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
5973         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
5974         disabled (fixes bug #916294)
5975         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
5976         "mov a,acc"; patch provided by Lenny Story
5977         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
5978
5979 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5980
5981         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
5982         functions
5983         * src/ds390/gen.c (genFunction, genEndFunction),
5984         * src/ds390/ralloc.c (ds390_assignRegisters),
5985         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
5986         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
5987         pushed if there are parameters passed on the stack. Also, a cleaner
5988         way to decide if r0/r1 should be pushed/popped. (Together they fix
5989         bug #918693)
5990
5991 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5992
5993         * doc/sdccman.lyx,
5994         * device/lib/mcs51/crtpagesfr.asm,
5995         * device/lib/mcs51/crtxinit.asm,
5996         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
5997         to avoid confusion with Si Lab's SFRPAGE register.
5998
5999 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6000
6001         * src/SDCCglue.c (emitMaps): allow public sfr variables
6002         * src/SDCCglue.c (initialComments): include compiler build date
6003         with compiler version and put the timestamp of the generated
6004         assembly file on a serperate line to be less confusing.
6005         * src/port.h: added genInitStartup hook
6006         * src/avr/main.c,
6007         * src/ds390/main.c,
6008         * src/hc08/main.c,
6009         * src/pic/main.c,
6010         * src/pic16/main.c,
6011         * src/xa51/main.c,
6012         * src/z80/main.c: genInitStartup initialize as NULL (default to
6013         historical behaviour)
6014         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
6015         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
6016         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
6017         library instead of hard coding it into the compiler.
6018         * support/regression/ports/mcs51-stack-auto/spec.mk,
6019         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
6020         * device/lib/mcs51/Makefile,
6021         * device/lib/small/Makefile,
6022         * device/lib/large/Makefile,
6023         * device/lib/mcs51/crtpagesfr.asm,
6024         * device/lib/mcs51/crtstart.asm,
6025         * device/lib/mcs51/crtxclear.asm,
6026         * device/lib/mcs51/crtxinit.asm,
6027         * device/lib/mcs51/crtclear.asm,
6028         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
6029         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
6030         and into user configurable files.
6031         * device/lib/clean.mk: clean mcs51 directory too
6032         * support/regression/tests/longlit.c: added static to T1 declaration
6033         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
6034         accesses in the initialization code
6035
6036 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6037
6038         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
6039         OSCTRIMVAL as noted in bug #916008
6040
6041 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6042
6043         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
6044         in loops with multiple exits (reported as incorrect registers
6045         used by Martin Helmling in Sdcc-user list)
6046
6047 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6048
6049         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
6050         made ds390 register extensions look less like error messages
6051
6052 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6053
6054         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
6055         reported by Adam Wozniak in Sdcc-user list
6056
6057 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
6058
6059         * src/SDCCast.c (decorateType): fixed with bug and promotion in
6060         arithmetic optimizations, added debug output
6061
6062 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
6063
6064         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
6065         * sdcc.spec: updated and split sdcc into 3 rpms
6066         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
6067         needed for literals of LEFT_OP and '+'
6068         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
6069         introduced RESULT_TYPE_NOPROM
6070         (geniCodeMultiply): fixed logic for decision if mul is optimized to
6071         left shift
6072         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
6073         limited promotion to int only for '*'
6074         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
6075
6076 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
6077
6078         * src/pic16/gen.c (genSkip),
6079         (genc16bit2lit), (gencjneshort): commented out
6080         (is_LitOp): new helper function, checks operand type
6081         (genCmpEq): rewritten
6082
6083 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
6084
6085         * support/regression/tests/bug-908454.c: added
6086
6087 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
6088
6089         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
6090         * src/SDCCicode.c (usualBinaryConversions): op needs int type
6091         (geniCodeCast): cosmetic, don't preserve bit storage class
6092         (geniCodeLeftShift): added promotion
6093         (geniCodeLogic): fixed regression
6094         * src/SDCCsymt.c (computeTypeOr): accept bits too
6095         (compareType): 2nd part of fix for bug #908454, needed for bitfields
6096
6097 2004-03-07  Borut Razem <borut.razem AT siol.net>
6098
6099         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
6100
6101 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
6102
6103         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
6104         version of pic16_genPackRegisters which does not check if ic is a
6105         CAST operator,
6106         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
6107         function cause string1.c regression test fails
6108
6109 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
6110
6111         * sim/ucsim/configure.in,
6112         * sim/ucsim/configure,
6113         * sim/ucsim/doc/Makefile.in: use docdir
6114         * src/SDCC.y: fixed sbit atrributes
6115         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
6116         * src/SDCCast.c (decorateType): |^& need special promotion handling
6117         * src/SDCCast.h,
6118         * src/SDCCsymt.h: moved definition of RESULT_TYPE
6119         * src/SDCCsymt.h (computeType),
6120         * src/SDCCicode.c: computeType() needs op
6121         * src/SDCCsymt.c (checkTypeSanity),
6122         * doc/sddman.lyx: "plain" bitfields are unsigned
6123         * src/SDCCsymt.c (computeTypeOr): added
6124         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
6125         |^& ops
6126         * src/SDCCval.c (val*): computeType() needs op
6127         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
6128         * support/regression/tests/onebyte.c: added tests for |^&
6129
6130 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
6131
6132         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
6133         for writing icode into asm output.
6134
6135 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
6136
6137         * src/pic16/device.c: added some debug lines enabled
6138         with macro DEBUG_CHECK,
6139         * src/pic16/genarith.c: more debug in genPlus,
6140         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
6141         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
6142         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
6143         * (aopForSym): onStack symbols are re-placed in data memspace,
6144         and onStack flag is cleared,
6145         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
6146         copy temporary pcodeop,
6147         * (genPcall): added warning for not updating PCLATU,
6148         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
6149         always true for pic16 port,
6150         * (genMultOneWord): NEW, supports integer multiplication,
6151         * (genMult): modified to call genMultOneWord,
6152         * (ifxForOp): added warning when return NULL,
6153         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
6154         flag is set before call to operandFromSymbol for implicit
6155         added structures,
6156         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
6157         options.intlong_rent are set by default,
6158         * (_hasNativeMulFor): modified to allow port generation of integer
6159         multiplication,
6160         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
6161         set regtype to REG_SFR for all registers, restricting seting the
6162         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
6163
6164 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6165
6166         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
6167         more than 500 times in the regression tests
6168
6169 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6170
6171         * support/Util/SDCCerr.h,
6172         * support/Util/SDCCerr.c,
6173         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6174         enumerator_list),
6175         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
6176         for symbol conflicts.
6177         * support/valdiags/tests/enum.c,
6178         * support/valdiags/tests/tentdecl.c,
6179         * support/valdiags/tests/struct.c: expect possible error messages
6180         referring to original symbol definitions.
6181         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
6182         * src/SDCCsymt.h,
6183         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
6184
6185 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
6186
6187         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
6188
6189 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
6190
6191         * src/pic16/ralloc.c (newReg): fixed bug #908929
6192
6193 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6194
6195         * src/ds390/gen.c: added missing #include "main.h"
6196
6197 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
6198
6199         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
6200         checking if symbol is already in set,
6201         * src/pic16/device.h: prototype for checkAddSym,
6202         * src/pic16/gen.c: (_G): added entry interruptvector,
6203         * (assignResultValue): removed some commented out lines,
6204         * (genFunction): check for ISR via sym->type, absolute section for
6205         interrupt code is created via a new pBlock, the goto instruction is
6206         placed now correctly at the interrupt vector position, changed all
6207         references from ivec to _G.interruptvector,
6208         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
6209         is the interrupt is a high priority one, same for return from ISR,
6210         * src/pic16/glue.c: changed all calls of addSetHead for publics and
6211         externs to calls of checkAddSym,
6212         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
6213         pic16_pcode_verbose flag is set,
6214         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
6215         * src/pic16/pcoderegs.c: message about how many registers are saved
6216         will only be emitted if pic16_pcode_verbose flag is set,
6217
6218 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6219
6220         * src/ds390/ralloc.h,
6221         * src/ds390/ralloc.c (ds390_regWithIdx),
6222         * src/ds390/gen.c (emitcode),
6223         * src/ds390/main.h,
6224         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
6225         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6226         ds390operandCompare, getRegsRead, getRegsWritten,
6227         initializeAsmLineNode): customized instruction size calculation for
6228         ds390, started basis for some register optimizations
6229         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
6230         corresponding assembly output
6231         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
6232         missing push/pop of r0/r1. Optimized push/pops
6233
6234 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6235
6236         * src/mcs51/main.c (instructionSize): fixed ACALL size
6237         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
6238
6239 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
6240
6241         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
6242         the sorting of rlist with NULL elements
6243         * (print_idataType, print_idata): NEW to create idata sections
6244         * src/pic16/device.h: idataSymSet new variable
6245         * src/pic16/gen.c (genFunction): fixed some bugs in string
6246         comparing, improved the absolute section creation for ISRs,
6247         added FSR0L/FSR0H in registers that are saved in an ISR,
6248         * (genInline): fixed the processing of inline snippets,
6249         now they undergo no process by the peephole optimizer
6250         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
6251         are placed in idataSymSet,
6252         * (pic16emitStaticSeg): extern symbols are added in externs,
6253         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
6254         switching when aboslute variables are placed in access bank memory
6255         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
6256         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
6257         commented out with #if,
6258         * (pic16_packRegisters): reintroduce the check for CAST because some
6259         symbols are not correctly handled,
6260         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
6261         pCodeInstruction instead of pCode,
6262         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
6263         pCodeAsmDir definition,
6264         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
6265         directive, then the argument directive is emitted without the leading
6266         tab, hack for inline labels which must be in the first column,
6267         * (compareLabel,pic16_findNextInstruction),
6268         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
6269         * (insertBankSwitch): modified for the new pCodeAsmDir,
6270
6271 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6272         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
6273
6274         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
6275         instance,
6276         * (pushSide): commented out with #if,
6277         * (assignResultValue): fixed some typos in saving
6278         registers,
6279         * (genPcall): FIXED and sync'ed with genCall,
6280         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
6281         * (genNearPointerGet): fixed to handle some more cases,
6282         implementation scheme via table reads,
6283         * (genConstPointerGet): modified to access code memory correct,
6284         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
6285         and improved to handle some cases
6286         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
6287         instead of "RETLW" for init data
6288         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
6289         not IN_DIRSPACE, work around to reduce bank switching when aboslute
6290         variables are placed in access bank memory (<0x80 and >=0xf80),
6291         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
6292         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
6293         TBLWT_POSTDEC,TBLWT_PREINC
6294         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
6295         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
6296         directives
6297         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
6298         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
6299         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
6300         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
6301
6302 2004-02-29  Borut Razem <borut.razem AT siol.net>
6303
6304         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
6305         support/Util/findme.h, support/Util/system.h: enhance binary relative
6306         search for lib and include by using findProgramPath()
6307
6308 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6309
6310         * src/SDCCpeeph.h,
6311         * src/SDCCpeeph.c (pcDistance),
6312         * src/port.h,
6313         * src/mcs51/ralloc.h,
6314         * src/mcs51/ralloc.c (mcs51_regWithIdx),
6315         * src/mcs51/main.h,
6316         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
6317         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6318         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
6319         size calculation port specific, started basis for some register
6320         optimizations
6321         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
6322         missing push/pop of r0/r1. Optimized push/pops
6323         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
6324         * device/lib/_modsint.c (_modsint),
6325         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
6326         and stack version so regression tests pass
6327
6328 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
6329
6330         * src/Makefile.in (dep): include SLIBOBJS in dependency check
6331         * src/SDCCast.c (decorateType): catch another small optimization
6332         with '?' operator
6333         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
6334         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
6335         modified to finally use computeType() all over SDCC,
6336         see Feature Request #877103
6337         * src/SDCCval.h: cosmetic
6338         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
6339         valCompare(); regression tested in muldiv.c
6340         * support/regression/tests/muldiv.c (testMod): mod sign follows
6341         dividend only
6342
6343 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
6344
6345         * src/SDCCast.c (decorateType): fixed bug #902362
6346         * doc/INSTALL.txt: fixed install instructions for win32
6347
6348 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
6349
6350         * device/include/Makefile.in (install): fixed by replacing spaces
6351         by tabs
6352         * doc/README.txt,
6353         * doc/INSTALL.txt: updated for release
6354         * doc/sdccman.lyx: added warning for --xstack being buggy
6355
6356 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
6357
6358         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
6359         to eliminate build warnings.
6360         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
6361
6362 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
6363            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6364
6365         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
6366         removed -penable-stack, added comment for stack pragma, added
6367         warning for not initializing the stack/frame registers, removed
6368         comment at interrupts section
6369
6370         Stack is made permanent, there is no ability to disable stack usage.
6371         * src/pic16/device.h,
6372         * src/pic16/device.c: removed all references to USE_STACK macro,
6373         * src/pic16/device.c (pic16_dump_section): when no elements in
6374         rlist, free rlist before return,
6375         * (pic16_dump_int_registers): NEW, internal registers are a new set
6376         of general purpose registers reused by each function,
6377         * (checkAddReg): returns 1 if registers is added to set,
6378         * (pic16_groupRegistersInSection): when a registers is of type
6379         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
6380         * src/pic16/device.h: memRange and Assigned Memory are deleted,
6381         SRCASECMP macro is moved here from device.c
6382         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
6383         PO_PCLATU, PO_PRODL, PO_PRODH,
6384         * (pic16_pCodeOpType, genMinus,
6385         changed compares to "a" register, with AOP_ACC,
6386         * (pic16_genPlus): fixed some bugs and indented properly,
6387         * (pic16_addSign): changed size to size+offset in the MOVWF
6388         instruction,
6389         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
6390         multiply 8-bit operand by literal, result is 8-bit,
6391         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
6392         multiply 2 8-bit operand, result is 8-bit,
6393         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
6394         genUMult8X*_16,
6395         * src/pic16/gen.c: changed accUse to contain WREG only,
6396         * (pic16_emitcomment): renamed to pic16_emitpcomment,
6397         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
6398         true, do not use immediate addressing any more unless sym is a
6399         pointer in codespace,
6400         * (aopForRemat): do not use immediate addressing when symbol not in
6401         codespace and when symbol's address is requested,
6402         * (aopOp): for-loop in if(sym->accUse) is modified for the new
6403         accUse size (= 1),
6404         * (aopGet): added case for AOP_ACC and don't return "accumulator
6405         bug" but WREG instead,
6406         * (popGetTempReg): pushes contents of temporary register in stack,
6407         * (popReleaseTempReg): pops contents of temporary register from
6408         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
6409         * (pic16_popGet): separated case AOP_ACC to return register WREG
6410         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
6411         or PO_IMMEDIATE and initializes their instance/offset appropriately,
6412         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
6413         the use of immediate pointers to certain cases only.
6414
6415         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
6416         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
6417         * (assignResultValue, genCall, genRet): modified to use the new
6418         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
6419         genPcall is still broken,
6420         * (genFunction): added code to create 'A' type pBlocks when
6421         interrupt functions are generated, code not extensively tested yet,
6422         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
6423         * (genEndFunction): modified so ISRs pop stored registers from stack,
6424         * (genMultOneByte): cleanup,
6425         * (AccRsh): added flag andmask, to and result with appropriate mask,
6426         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
6427         * (genDataPointerGet): fixed and reenabled its use,
6428         * (genNearDataPointerGet): bugs fixed,
6429         * (genDataPointerSet): bugs fixed,
6430         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
6431         pic16_DumpSymbol, pic16_DumpOp,
6432         * src/pic16/genutils.h: function prototypes for the above functions,
6433         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
6434         pointers,
6435         * (pic16emitRegularMap): many many many improvements, but needs a
6436         major cleanup,
6437         * src/pic16/main.c: enable_stack in pic16_options is removed,
6438         * (_pic16_parseOptions): removed command line options -penable-stack,
6439         * (_process_pragma): emit stack symbol only when stack pragma is
6440         processed,
6441         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
6442         redirected to FSR0L/FSR0H pair,
6443         * (pic16_get_op, pic16_get_op2): modifications and improvements,
6444         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6445         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
6446         for immediates,
6447         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
6448         * (dumpPicOptype): NEW,
6449         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
6450         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
6451         with movff instruction,
6452         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
6453         added pic16_int_regs, some packRegsFor* functions are commented out,
6454         because produce errors,
6455         * src/pic16/NOTES: minor modifications
6456
6457 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6458
6459         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
6460         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
6461         --pack-iram.
6462         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
6463         * as/mcs51/lkaomf51.c: fixed bug #895763
6464
6465 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
6466
6467         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
6468
6469 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6470
6471         * doc/sdccman.lyx: added details about the HC08 storage classes and
6472         interrupts, fixed the register usage info for z80 & gbz80
6473
6474 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
6475
6476         * doc/sdccman.lyx: added more pic16 port documentation
6477         * device/include/pic16/: added header pic18fregs.h
6478
6479 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
6480
6481         * doc/sdccman.lyx: added Vangelis' contribution
6482
6483 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6484
6485         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
6486         extend to the next CALL or PCALL, not just to the next CALL.
6487
6488 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
6489
6490         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
6491
6492 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6493
6494         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
6495         bug #895752 and a better fix for bug #716790
6496
6497 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6498
6499         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
6500
6501 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6502
6503         * doc/sdccman.lyx: minor changes, minor changed
6504
6505 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
6506
6507         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
6508         which can't handle SDCC_NEWONEBYTEOPS,
6509         (geniCodeMultiply): removed conversion from mult to shift for pic14
6510         and pic16
6511
6512 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6513
6514         * src/hc08/gen.h,
6515         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
6516         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
6517         thus fixing bug #895406
6518
6519 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
6520
6521         * device/lib/_modsint.c,
6522         * device/lib/_modslong.c: sign follows divisor only
6523         * src/hc08/gen.c (genMultOneByte): if result size is 1,
6524         signs or signedness can be ignored
6525         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
6526         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
6527         added optimization for IFX,
6528         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
6529         arguments;
6530         reenabled optimization for IFX, which was removed on 2004-01-11
6531         * src/SDCCast.h: added return type IFX
6532         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
6533         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
6534         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
6535         SDCC_OLDONEBYTEOPS selects the old behaviour
6536         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
6537         changed again and commented promotion rule
6538         * src/SDCCval.c (valDiv): promotion no longer necessary
6539         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
6540         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
6541         rewritten
6542         * support/regression/tests/onebyte.c: added
6543
6544 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
6545
6546         * gen.c (genInline): reverted to old code for assemnling inline
6547         code because of bug reported James Chadd
6548
6549 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
6550
6551         * ralloc.h: missing declarations from previous patch,
6552         seems that patch for ralloc.h was never applied, fixed
6553
6554 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6555            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6556
6557         * pcode.c,
6558         * pcode.h,
6559         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
6560         indirect addressing. Marked FSR0 as deprecated
6561         * gen.c (pointerCode): commented out, not needed now
6562         (pic16_popGet2p): new MOVFF helper function
6563         (genGenPointerGet),
6564         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
6565         (shiftRLong): removed duplicate debugging info
6566
6567 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6568
6569         * src/ds390/gen.c (genNearPointerGet),
6570         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
6571         optimization with bits, but not bitfields.
6572         * src/ds390/ralloc.c (packRegisters),
6573         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
6574
6575 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
6576
6577         * src/SDCCcse.c (algebraicOpts): copy operands before modification
6578
6579 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6580
6581         * src/SDCCsymt.h,
6582         * src/SDCCicode.c (operandFromSymbol),
6583         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
6584         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
6585         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
6586         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
6587         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
6588         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
6589         bug #892038
6590         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
6591         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
6592         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
6593         * src/SDCCsymt.c (newSymbol),
6594         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6595         enumerator_list),
6596         * src/SDCCval.h,
6597         * src/SDCCval.c (newiList): fixed bug #885705
6598
6599 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6600
6601         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
6602         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
6603
6604 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6605
6606         * device/include/c8051f120.h,
6607         * device/include/c8051f300.h,
6608         * device/include/c8051f310.h: added/updated header files for Silicon
6609         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6610         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
6611         in new section Submitting patches
6612
6613 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6614
6615         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
6616         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6617         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6618         genGenPointerSet),
6619         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
6620         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6621         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6622         genGenPointerSet),
6623         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
6624         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6625         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6626         genGenPointerSet),
6627         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
6628         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6629         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6630         genGenPointerSet): fixed bug #892400
6631         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
6632         to eliminate build warnings.
6633         * src/SDCCast.c (processParms),
6634         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
6635         fixed bug 751859
6636         * support/valdiag/valdiag.py: added GCC to the list of defines active
6637         when compiling with gcc
6638
6639 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6640
6641         * support/Util/SDCCerr.h,
6642         * support/Util/SDCCerr.c,
6643         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
6644         with an incomplete type (fixed bug #883734)
6645         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
6646
6647 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6648
6649         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
6650
6651 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6652
6653         * src/SDCCast.c (decorateType),
6654         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
6655         function pointer implementation
6656         * support/regression/tests/funptrs.c: added tests to verify both forms
6657         of function pointers work correctly. Added tests to verify parameters
6658         are passed in the correct order.
6659
6660 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
6661
6662         * device.c (regCompare): registers are sorted by ascending
6663         address and increasing size,
6664         * main.c (_pic16_finaliseOptions): removed the declaration
6665         of compiler macro MCU. Now a macro of the format pic18fxxxx
6666         will be defined from the command line
6667
6668 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6669             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6670
6671         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
6672         PCOP_RLCF was overwritten!
6673         * gen.c (genSkip): commented out calls to pic16_emitcode,
6674         * (genCmpEQ): fixed "long" compares, only high word did get compared,
6675         * (genlshTwo),
6676         * (genRRC): added debugging info,
6677         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
6678         overwritten while shifting,
6679         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
6680         overwritten while shifting,
6681         * (AccLsh),
6682         * (AccRsh),
6683         * (shiftLLeftOrResult),
6684         * (shiftRLeftOrResult),
6685         * (shiftRLong),
6686         * (shiftLLong): Implemented with pic16_emitpcode
6687         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
6688         * (genLeftShift): Fixed bug, operand for shift by variable always
6689         was "and"ed with 0x0f,
6690         * (genLeftShiftLiteral),
6691         * (genrshTwo),
6692         * (genRightShiftLiteral): added debugging info,
6693         * (genrshFour): added comment,
6694         * (genRightShift): determined signedness from operand "left"
6695         instead of "result"
6696
6697 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6698
6699         * src/SDCCicode.c (geniCodeParms),
6700         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
6701         function pointers, fixed function pointer bugs #861242 and #861896
6702
6703 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6704
6705         * device/include/c8051f000.h,
6706         * device/include/c8051f120.h,
6707         * device/include/c8051f300.h: added header files for Silicon
6708         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6709
6710 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
6711
6712         * src/SDCCast.c (processParams): added new type flow and restructured
6713         (gatherAutoInit): added new type flow
6714         (addCast): cosmetic changes
6715         (getLeftResultType): added new type flow for array indices, patch
6716         provided by Stas, see FR #877103
6717         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
6718         array index patch by Stas
6719         * src/SDCCast.h: added prototype getResultTypeFromType()
6720         * src/SDCCval.h,
6721         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
6722         * src/pic/glue.c (pic14emitStaticSeg),
6723         * src/pic16/glue.c (pic16emitStaticSeg),
6724         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
6725         for initialization of symbols
6726         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
6727         * support/Util/SDCCerr.h:
6728         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
6729         * .version: bumped version number to 2.3.8
6730         * device/include/Makefile.in (install),
6731         * doc/Makefile (install): changed to 'rm `find ...`' construct to
6732         avoid warnings
6733
6734 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
6735
6736         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
6737         Slade Rich fixed an optimization bug
6738         * src/pic/pcodepeep.c,
6739         * src/pic/pcoderegs.c
6740         * doc/Makefile (install): added test for directory
6741
6742 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6743
6744         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
6745         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
6746         * src/pic/ralloc.c (getRegPtr, getRegGpr),
6747         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
6748         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
6749         * as/mcs51/asexpr.c (term),
6750         * as/hc08/asexpr.c (term): fixed bug #887146
6751
6752 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6753
6754         * src/z80/gen.c (genMult): handle single byte result product
6755         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
6756         DUMMY_READ_VOLATILE (fixed bug #886367)
6757
6758 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6759
6760         * support/regression/tests/libmullong.c: fixed logic, on little endian
6761         hosts we ended without a mullong_wrapper()
6762
6763 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6764
6765         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
6766         virus/worm forged address usage.
6767
6768 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6769
6770         Fixed promotion, it should be done on AST level:
6771         * src/SDCCast.c (addCast): added promotion to int
6772         (decorateType): updated call to upCast()
6773         * src/SDCCicode.c (geniCodeLeftShift): removed call to
6774         usualUnaryConversions()
6775
6776 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
6777
6778         * support/regression/tests/literalop.c (mulWrapper): Added a
6779         wrapper to remove integer overflow warnings.
6780
6781         * support/regression/tests/float_trans.c: Made work on host.
6782
6783         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
6784         location of sz80.
6785
6786         * support/regression/generate-cases.py (main): Changed from inline
6787         to a main method.
6788
6789         * doc/Makefile (install): Changed to depth first to get rid of
6790         missing directory install warning.
6791
6792         * as/Makefile (install-doc): Made work on Mac.
6793
6794 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
6795
6796         * src/SDCCast.c: added an additional type flow in decorateType() of
6797         opposite direction, see feature request #860006; it's enabled at runtime
6798         by setting the environment variable SDCC_NEWTYPEFLOW
6799         * src/SDCCast.h: changed prototype of decorateType()
6800         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
6801         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
6802         'char' to 'int' can be omitted, if both operands are 'unsigned char';
6803         see feature request #877103
6804         * src/SDCCval.c: updated call of decorateType()
6805         (valBitwise): fixed bug #882876
6806         (valMinus): added promotion
6807         (valLogicAndOr): result is unsigned
6808         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
6809         * src/SDCCsymt.c (computeType),
6810         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
6811         must not cause an unsigned operation
6812         * src/pic/glue (pic14emitRegularMap),
6813         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
6814
6815 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
6816
6817         * src/pic/pcode.c (PCodeID): commented out left over debug code
6818
6819 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6820
6821         * support/valdiag/tests/overflow.c: added shift tests
6822         * src/pic/device.c,
6823         * src/pic/gen.c,
6824         * src/pic/gen.h,
6825         * src/pic/glue.c,
6826         * src/pic/main.c,
6827         * src/pic/pcode.c,
6828         * src/pic/pcode.h,
6829         * src/pic/pcodepeep.c,
6830         * src/pic/pcoderegs.c,
6831         * src/pic/ralloc.c,
6832         * src/pic/ralloc.h: applied patch from Slade Rich;
6833         added support for multiple code pages and multiple RAM banks on the
6834         PIC 14 port. The ASM files now no longer simply assume all the
6835         code / RAM are in the same page / bank. This means the linker can
6836         safely allocate code/RAM of separate ASM files to different pages/banks.
6837         * doc/sdccman.lyx: added Slade's tips
6838         * src/mcs51/peeph.def: fixed bug #880768
6839
6840 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6841
6842         * src/hc08/ralloc.c (rematStr): fixed bug #879282
6843         * src/SDCCast.c (decorateType): fixed bug #880197
6844
6845 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
6846
6847         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
6848         getopt.h.
6849
6850         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
6851         strtof is not part of C89 and isn't included with Mac OS X.
6852
6853 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6854
6855         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
6856         shiftL2Left2Result): fixed bug #879326
6857         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
6858         (genMultOneByte): fixed bug in signed vs unsigned multiplication
6859         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
6860         address fetch for clr instruction
6861         * device/lib/hc08/_mulint.c: created optimized assembly version
6862         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
6863
6864 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
6865
6866         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
6867         proposed in FR #877103
6868
6869 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6870
6871         * src/SDCCval.c (cheapestVal): added missing checks
6872         * src/SDCCicode.c (usualBinaryConversions): fixed condition
6873         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
6874
6875 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
6876
6877         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
6878         equal operands
6879
6880 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
6881
6882         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
6883         loaded with the linker search paths (-L arguments) and the libraries
6884         to be linked with the current source (-l arguments). Changes
6885         currently will affect only the pic16 port.
6886         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
6887         include path the port specific paths and port specific libraries,
6888         * gplink command now contains the $3 argument,
6889         * src/pic16/device.h,
6890         * src/pic16/device.c,: structure PIC_device is made public and
6891         renamed to PIC16_device, the same for variable Pics which is renamed
6892         to Pics16. Updated all references to them.
6893         * src/pic16/glue.c (pic16glue): corrected bug with code
6894         initialization which bypassed the variable initializations block.
6895
6896         * device/lib/pic16/Makefile.rules: removed --penable-stack from
6897         COMPILE_FLAGS and added the --nostdinc option
6898
6899 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6900
6901         * device/include/mc68hc908jb8.h: Register defs for another member
6902         of the hc08 family. Contributed by Bjorn Bringert - thanks!
6903
6904 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
6905
6906         Documenting changes from previous commits.
6907         * configure.in (version 1.56),
6908         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
6909         when generating output files to configure the pic16 library,
6910         but now I've commented it out, since gputils aren't installed in the
6911         SF compile farm, so library won't compile
6912
6913         * device/lib/Makefile.in (version 1.56): initially I've added in
6914         target 'all' the prerequestive 'model-pic16' so it compiled the
6915         pic16 library, but now I've commented it out for the same reasons
6916         above,
6917         * added targets 'model-pic16' and 'objects-pic16' to compile the
6918         library
6919         * added target 'port-specific-objects-pic16' to handle the
6920         generated libraries and copy them into the build/ directory
6921         * added target 'clean-intermediate-pic16' to clean intermediate
6922         files into pic16 directory
6923         * in target 'installdirs' added line to create directory pic16 in
6924         the installation path
6925
6926         * device/include/Makefile.in (version 1.11): in target 'install'
6927         added lines to copy all header files to installation path,
6928         * in target 'installdirs' added line create directory for pic16
6929         headers in the installation path
6930
6931 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
6932
6933         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
6934          a function call
6935
6936 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
6937
6938         * configure,
6939         * device/lib/configure.in,
6940         * device/lib/configure: fixed for autoconf 2.57
6941
6942 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6943
6944         * src/z80/main.c (_parseOptions): fixed the portmode= command line
6945         option so that it actually works. Made it specific to the z80, since
6946         the gbz80 doesn't have these kinds of I/O ports.
6947
6948 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6949
6950         * device/include/z180.h,
6951         * device/lib/_memcpy.c,
6952         * device/lib/_memmove.c,
6953         * device/lib/_mulint.c,
6954         * device/lib/ser_ir.c,
6955         * device/lib/ser_ir_cts_rts.c,
6956         * device/lib/_strcmp.c,
6957         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
6958         * src/z80/main.c (_process_pragma): add support for pragmas bank and
6959         portmode; added deprecation warning for bank= and protmode= forms.
6960         Also, guard against buffer overflow.
6961         * src/z80/gen.c (aopGet): generate better code for sfr banked read
6962
6963 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6964
6965         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
6966         changed interrupt vector table generation to only emit declared vectors.
6967         * device/include/Makefile.in: added missing backslash
6968         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
6969
6970 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6971
6972         Mainly changes to support compilation of the device libraries
6973         * src/pic16/device.c: stack is allocated via symbol and not
6974         via literal number. The symbol is placed in the corresponding
6975         position of the data ram
6976         * (pic16_dump_section): relocatable and absolute uninitialized
6977         data are now emitted in sorted order to reduce section naming,
6978         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
6979         weren't marked as being in the access bank,
6980
6981 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6982
6983         Added portion of GNU PIC Library under the directory
6984         device/include/pic16 and device/lib/pic16. These files
6985         contain the declarations of SFRs for the PIC18Fxx2 devices.
6986         The directory is initialized via configure from toplevel.
6987
6988 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
6989
6990         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
6991         the spilllocations to be compared correctly
6992
6993 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6994
6995         * src/SDCCast.c (decorateType): fixed bug introduced today
6996
6997 2004-01-12  Borut Razem <borut.razem AT siol.net>
6998
6999         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
7000         doc/sdccman.lyx: upper case pragmas are deprecated
7001
7002 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7003
7004         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
7005         in simpler and even better code
7006
7007 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
7008
7009         * src/SDCCicode.c (operandOperation): fixed bug #874819
7010         * src/SDCCast.c (decorateType): fixed
7011         char foo (unsigned long ul) { return ul > 0; }
7012
7013 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7014
7015         * doc/sdccman.lyx: Moved and added some sections, small changes
7016         all over. Telling LaTeX to be less strict with word spacing
7017         to better keep the right margin. Changed some notes about
7018         maintainance of the ports in section 3.2.1 - is it OK like this?
7019
7020 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7021
7022         SDCC source changes:
7023         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
7024         convilong): modified to inform the pic16 port that builtin functions
7025         are external
7026
7027         PIC16 PORT specific changes:
7028         * src/pic16/device.c pic16_dump_equates() added,
7029         processor registers declared internally by the port are emitted in
7030         the translation as equates,
7031         * src/pic16/gen.c: inline code is passed unprocessed to the
7032         translation,
7033         * (pic16_popGetLit2): fnuction modified to take second operand as
7034         pCodeOp pointer and not as literal,
7035         * (popRegFromIdx): prefixed with pic16_,
7036         * (pic16_popCombine2): modified to receive already allocated pCode
7037         operands,
7038         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
7039         * (genFunction): initializes local stack frame and pushes on stack
7040         all the registers used by this function,
7041         * (genEndFunction): restores all registers from stack and restores
7042         stack frame,
7043         * src/pic16/glue.c (pic16emitRegularMap): various changes and
7044         improvements,
7045         * (pic16glue): changed the program startup sequence,
7046         * added new dbName code 'A' for functions placed in absolute section
7047         * src/pic16/main.c: added function attribute _naked,
7048         * added pragma 'code' to place a fnuction at an absolute address,
7049         * added command line arguments --debug-ralloc and --pcode-verbose,
7050         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
7051         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
7052         * (pic16_newpCodeOpLit2): modified to take the second operand as
7053         pCodeOp pointer,
7054         * (pic16_printpBlock): modified to emit each function in a separate
7055         section,
7056         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
7057         UPPER for immediate operands,
7058         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
7059         instruction,
7060         * src/pic16/peeph.def: all peepholes with movff are commented out,
7061         because there is a problem in the pcode peep optimizer,
7062         * src/pic16/ralloc.c: the register allocator can now reuse local
7063         function symbols for another function. This saves register usage.
7064         * src/pic16/ralloc.h: added flag isLocal in structure regs,
7065
7066         Added file src/pic16/NOTES with information about program writing on
7067         the current port version.
7068
7069 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7070
7071         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
7072         and peephole 252 (array access)
7073
7074 2004-01-09  Borut Razem <borut.razem AT siol.net>
7075
7076         * src/SDCCmain.c : fixed #872250: -l command line defined library
7077           files are scanned before standard library files
7078
7079 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7080
7081         * src/SDCCast.c (decorateType): fixed bug #874046
7082
7083 2004-01-09  Borut Razem <borut.razem AT siol.net>
7084
7085         * support/scripts/sdcc.nsi: remove previous installation
7086
7087 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7088
7089         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
7090         bytes for last interrupt vector (mcs51)
7091         * sdcc.spec: fixed typo
7092
7093 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7094
7095         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
7096         gen51Code): more efficient parameter receive for --model-large
7097         ("bug" #845294)
7098
7099 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7100
7101         * src/ds390/main.c,
7102         * src/z80/main.c: added missed needLinkerScript flags (more than
7103         one port structure defined in these file)
7104         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
7105         bug #795325
7106
7107 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
7108
7109         * src/SDCCmain.c: removed various references to DEFAULT_PORT
7110         * src/port.h: added flag needLinkerScript in port->linker
7111         structure to inform whether to create a .lnk file or not,
7112         * src/avr/main.c,
7113         * src/ds390/main.c,
7114         * src/hc08/main.c,
7115         * src/mcs51/main.c,
7116         * src/pic/main.c,
7117         * src/pic16/main.c,
7118         * src/xa51/main.c,
7119         * src/z80/main.c: changed appropriately to configure
7120         needLinkerScript flag
7121         * src/pic/gen.c,
7122         * src/pic16/gen.c (genAddrOf): fixed bug #863624
7123         * src/pic/glue.c: added variable udata_section_name to
7124         override default uninitialized data segment definition for
7125         devices only with SHAREBANK memory (reported from Erik Epetrich)
7126         * (pic14emitOverlay): modified to emit a commented overlay segment
7127         directive when no overlay data exist
7128         * (picglue): modified to emit uninitialized data segment
7129         according to udata_section_name
7130         * src/pic/main.c (_pic14_parseOptions): added command line
7131         options --udata-section-name=[name] to override default
7132         udata definition name
7133         * modified _linkCmd and _asmCmd to include compiler passed
7134         arguments via -W option
7135         * src/pic16/main.c: added $l in _asmCmd, changed extension for
7136         object file from '.rel' to '.o' in port->linker structure,
7137         changed size of fptr from 2 to 3 in port structure
7138
7139 2004-01-07  Borut Razem <borut.razem AT siol.net>
7140
7141         * support/scripts/sdcc.nsi: update PATH
7142         * support/scripts/sdcc.ico: craeted
7143
7144 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
7145
7146         * device/include/Makefile.in: fix install
7147         * doc/Makefile: fix install
7148
7149 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7150
7151         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
7152         in bug #860505
7153         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
7154         how the function variable allocation summary is displayed; also
7155         include information about variables allocated to the overlay
7156         segment
7157
7158 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7159
7160         * as/mcs51/lkmain.c: Help about -Y option
7161         * as/mcs51/lkarea.c: Fixed gcc warnings
7162
7163 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7164
7165         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
7166         fixed warning
7167         * support/valdiag/tests/overflow.c: added
7168         * src/SDCCast.c (decorateType),
7169         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
7170         LEFT_OP (left shift)
7171
7172 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7173
7174         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
7175         (default behaviour).
7176
7177 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7178
7179         A python script to validate compiler diagnostic messages. It can be
7180         used to verify that sdcc complains about bad c source code and
7181         gives a good location of the error.
7182         * support/valdiag/Makefile,
7183         * support/valdiag/valdiag.py,
7184         * support/valdiag/tests/*
7185
7186 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7187
7188         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
7189         * src/SDCCsymt.c (newEnumType),
7190         * src/SDCCsymt.h
7191         * support/Util/SDCCerr.c,
7192         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
7193         enum related bugs.
7194         * support/regression/tests/enum.c: added test for enum values that
7195         require at least 2 bytes of storage.
7196
7197 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7198
7199         * src/common.h: added ifndef/define/endif macros
7200         around the header file.
7201         Bug reported from Jesus Calvino-Fraga
7202
7203 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7204
7205         * sdcc.spec: updated
7206         * device/include/Makefile.in: don't install CVS directories
7207         * device/lib/Makefile.in: added removal of CVS directories after install
7208         * doc/Makefile: fixed install, added local_icons
7209         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
7210         * src/mcs51/gen.c (genRightShift): fixed bug #870788
7211         * src/ds390/gen.c (genRightShift): fixed bug #870788
7212         * src/SDCCast.c (decorateType): fixed bug #870781
7213
7214 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7215
7216         PIC16 port related changes:
7217         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
7218         added variable stackPos,
7219
7220         * gen.c: genCall, assignResultValue: added support for
7221         pushing/retrieving function parameters to/from stack,
7222         genFunction,genEndFunction: setup stack frame for the
7223         generated function,
7224         genAddrOf: will be changed according to bug 863624
7225
7226         * added files genutils.c and genutils.h which contain gen*
7227         debugged and optimised functions extracted from gen.c
7228
7229         * glue.c: added variable 'externs' which holds extern symbols,
7230         pic16emitRegularMap: is modified to properly handle relocatable
7231          symbols under the new scheme,
7232         pic16createInterruptVect: is modified
7233         pic16printPublics: is modified to emit 'global' assembler directives,
7234         added pic16_printExterns to print extern symbols,
7235         pic16glue: initializes stack/frame pointer in the beginning of
7236         the assembly output. Temporary hack, will be corrected later,
7237         because gplink yet does not support stack and SDCC does not
7238         yet support a type of crt0.o object to create the final binary.
7239
7240         * Removed many lines that contain 8051 legacy code.
7241         * The code is finally placed under a 'code' directive.
7242         * Added port specific options.
7243
7244         * _process_pragma: simplified since now we do not need *special*
7245         include file to define SFR registers. But a separate header
7246         will be needed. This will be developed later.
7247         * _pic16_parseOptions: added, parses port specific options:
7248         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
7249         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
7250         --preplace-udata-with=
7251
7252         * _pic16_setDefaultOptions: modified to initialize section names,
7253         but hack is temporarly out of order since it needs improvement.
7254         * _pic16_genAssemblerPreamble: configuration words are emitted by
7255         their address instead of their name. This part is incomplete and
7256         supports only the 18Fxx2 devices. Other devices will emit an error
7257         during assembly since they do not contain the same set of config
7258         registers
7259         * _pic16_genIVT: is modified,
7260
7261         * pcode.c: added definitions for some hardware registers that are needed
7262         for stack support
7263         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
7264         All PCI entries are updated. Now LFSR is supported.
7265         * Removed pic16_pciTRIS is mentioned by mdubuc in source
7266         * added pic16_newpCodeOpLit2 to support instructions with
7267         two literal arguments
7268         * pic16_pCode2str: corrected code that emits assembler instructions
7269         with two literal operands and those that have an access bit modifier
7270         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
7271         this fixes a bug which caused some labels to be lost, when an
7272         assembler directive was added, i.e. banksel,
7273         * pic16_FixRegisterBanking: improved logic that causes the insertion
7274         of bank switching,
7275         * InlineFunction: functions that are called once, are not any more
7276         inlined. This can be a port option in the future,
7277
7278         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
7279
7280         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
7281         hold the corresponding uninitialized symbols,
7282         * pic16_allocProcessorRegister: registers have explicit marked the
7283         accessBank field,
7284         * pic16_allocInternalRegister: registers are explicit marked as
7285         not used,
7286         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
7287         processing list, so bit registers were lost,
7288         *
7289
7290         * ralloc.h: added field 'accessBank' and original symbol operand
7291         in register definition,
7292         * removed the field isMapped from register definition,
7293
7294         ** Several functions have been removed from various sources:
7295         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
7296         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
7297         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
7298         pic16_assignRelocatableRegisters
7299
7300         ** others have been introduced:
7301         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
7302         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
7303
7304 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
7305
7306         * support/scripts/inc2h.pl: changed definition of BIT_AT
7307         to emit 'sbit at' instead of 'bit at'. This was a request.
7308
7309         PIC16 port related preliminary changes:
7310         * gen.c: prefixed function popRegFromString with
7311         pic16_ and all references to it corrected
7312         * pcode.c: all pic16_pc_* hardware registers prefixed
7313         with underscore (_),
7314         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
7315         * ralloc.c: newReg(): when register is REG_SFR then
7316         set address to rIdx,
7317         pic16_allocProcessorRegister(): marks register wasUsed=0
7318         pic16_writeUsedRegs(): added a call to assign processor
7319         registers via pic16_assignFixedRegisters
7320
7321 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7322
7323         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
7324         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
7325         variables in unused register banks.  Also the SSEG is placed
7326         wherever there is enough space for it, and IDATA can be anywhere
7327         in internal RAM.  For now compile using -Wl-Y[stack_size].
7328         The mem file is different for this option as well, since it
7329         makes no sense of talking about DSEG lenght.
7330
7331 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
7332
7333         * src/SDCClrange.c: fixed bug 869095 that caused segfault
7334         in certain cases, e.g. when ROM assignment, patch provided
7335         from Albert den Haan.
7336
7337 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
7338
7339         Many signedness and type propagation fixes:
7340         * src/SDCCicode.c: made geniCodeCast() static
7341         replaced SPEC_ by IS_ (cosmetic)
7342         (operandOperation): fixed div and mod operation
7343         (usualBinaryConversions): added support for promotion of char
7344         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
7345         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
7346         (geniCodeAdd): an array index will stay unsigned, even if promoted
7347         from char to int
7348         (geniCodeArray): ditto
7349         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
7350         * src/SDCCsymt.c (computeType): added more support for char;
7351         promotion of char is selectable by promoteCharToInt, fixed signedness
7352         for all cases
7353         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7354         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7355         * src/SDCCval (val*): replaced signedness calculation by
7356         computeType()
7357         rearranged if-branches (cosmetic)
7358         (valShift): added warning W_SHIFT_CHANGED
7359         (valCompare): fixed problem with different types
7360         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
7361         * support/regression/tests/literalop.c: added many cases
7362         * support/regression/tests/ast_constant_folding.c: changed finally to
7363         'unsigned int'
7364         * .version: new year, new version: 2.3.7
7365         * src/SDCCmain.c (main): applied patch #866468
7366         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
7367         provided by Scott Bronson
7368         * doc/sdccman.lyx: updated documentation for sdcdb
7369         updated and added chapter tips
7370
7371 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7372
7373         * src/SDCCsymt.h: missing from yesterday's commits
7374
7375 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7376
7377         * src/SDCC.y (struct_or_union_specifier),
7378         * support/Util/SDCCerr.c,
7379         * support/Util/SDCCerr.h: verify that struct & union tags are used
7380         as declared.
7381
7382 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7383
7384         * src/SDCCglobl.h: missing from yesterday's commits
7385
7386 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7387
7388         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
7389         sft_attributes, struct_declaration, parameter_declaration,
7390         type_name, start_block, declaration_list),
7391         * src/SDCC.lex (check_type): support redefinition of typedef names
7392
7393 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7394
7395         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
7396         aligned xdata arrays. Erik helped me with the if clause.
7397
7398 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7399
7400         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
7401         warning
7402
7403 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7404
7405         * src/SDCCast.h,
7406         * src/SDCCast.c (newAst_),
7407         * src/SDCCicode.h,
7408         * src/SDCCicode.c (ast2iCode, newiCode),
7409         * src/SDCCglobl.h,
7410         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
7411         expr, statement, expression_statement, selection_statement,
7412         iteration_statement, expr_opt, jump_statement): foundation for tracking
7413         sequence points
7414         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
7415         point code too)
7416
7417 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7418
7419         * support/Util/SDCCerr.c,
7420         * src/SDCCast.h,
7421         * src/SDCCast.c (createCase, createDefault, decorateType),
7422         * src/SDCClabel.c (labelUnreach),
7423         * src/SDCC.y (labeled_statement, jump_statement): More improvements
7424         to error messages.
7425         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
7426         (with thanks to Stas Sergeev)
7427         * device/include/time.h,
7428         * device/lib/time.c (CheckTime): suppress unreachable code warning
7429
7430 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7431
7432         * src/SDCCast.c (createIvalCharPtr),
7433         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
7434         bug #753752)
7435         * support/regression/tests/nullstring.c: tests for these two bugs
7436
7437 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7438
7439         * support/Util/SDCCerr.h,
7440         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
7441         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
7442         about storage class and 'at' used inside struct or union
7443         * src/SDCCBBlock.c (iCodeFromeBBlock),
7444         * src/SDCCcse.c (ifxOptimize),
7445         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
7446         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
7447         printIval, emitStaticSeg, emitOverlay),
7448         * src/SDCClabel.c (deleteIfx),
7449         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
7450         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
7451         gatherAutoInit, processParms),
7452         * support/Util/SDCCerr.h,
7453         * support/Util/SDCCerr.c (werrorfl): Support for better error location
7454         reporting for post-parse errors.
7455
7456 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7457
7458         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
7459         implicit casts via union; they don't work on big endian systems
7460         (possible fix for bug #861138)
7461
7462 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7463
7464         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
7465         * src/mcs51/main.c: fixed the fix for bug #737001
7466
7467 2003-12-15  Borut Razem <borut.razem AT siol.net>
7468
7469         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
7470
7471 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7472
7473         * support/makebin/makebin.c: put output in binary mode
7474
7475 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7476
7477         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
7478         xdata and data memory on startup. Set the environment variable
7479         SDCC_NOGENRAMCLEAR to disable this.
7480         * src/mcs51/peephole.def,
7481         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
7482         (allows non-interrupt and interrupt code to safely compete for a resource
7483         without the non-interrupt code having to disable interrupts)
7484
7485 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7486
7487         * src/SDCCicode.c (geniCodeAdd),
7488         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
7489         with valFromType if type might be a pointer and host is big endian).
7490         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
7491         types, not just integer types.
7492         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
7493         multiply defined with mismatching "at" address.
7494
7495 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7496
7497         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
7498         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
7499         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
7500         with embedded nulls (fixed bug #753752)
7501
7502 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7503
7504         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
7505         Apparently this did not see much testing (endless loop)
7506
7507 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7508
7509         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
7510
7511 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7512
7513         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
7514         gracefully handle NULL memmap pointers
7515
7516 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7517
7518         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
7519         instead of deleting the iCode when an operand is volatile
7520         * src/z80/gen.c (genDummyRead),
7521         * src/mcs51/gen.c (genDummyRead),
7522         * src/ds390/gen.c (genDummyRead),
7523         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
7524         not just IC_RIGHT
7525         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
7526         * src/SDCC.y: fixed bug #850420
7527
7528 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7529
7530         Applied z80 i/o port patch from Peter Townson and fixed some operators
7531         to better handle operands in A register.
7532         * device/include/z180.h
7533         * src/SDCC.y
7534         * src/SDCCglue.c
7535         * src/z80/gen.c
7536         * src/z80/gen.h
7537         * src/z80/main.c
7538         * src/z80/peeph-z80.def
7539         * src/z80/peeph.def
7540         * src/z80/z80.h
7541
7542 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7543
7544         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
7545
7546 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7547
7548         * device/lib/hc08/_mullong.c: Removed extra #endif
7549
7550 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7551
7552         * sim/ucsim/hc08.src/inst.cc,
7553         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
7554         carries from x to h
7555         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
7556         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
7557         * device/include/stdarg.h: fixed varargs for hc08
7558         * device/lib/Makefile.in,
7559         * device/lib/hc08/Makefile,
7560         * device/lib/hc08/_mulint.c,
7561         * device/lib/hc08/_mullong.c: fixed some endian problems
7562
7563 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7564
7565         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
7566         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
7567         * device/lib/_gptrget.c,
7568         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
7569
7570 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7571
7572         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
7573         * src/SDCCast.c (astErrors): fixed bug #846007
7574         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
7575
7576 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7577
7578         * src/SDCCast.c (decorateType): disabled a transformation I added in
7579         revision 1.188 (access to fields of a structure at an absolute address);
7580         it breaks with bitfields, extern declarations, and gcse analysis.
7581         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
7582         could be assigned through a pointer, so don't complain.
7583         * src/SDCCast.c (astErrors),
7584         * src/SDCCast.h,
7585         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
7586
7587 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
7588
7589         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
7590         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
7591         output of __config directives, since gpasm now supports them
7592         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
7593         pre-processor macro, i.e. -DMCU=p18f452
7594         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
7595         and modified to handle 'cast' icode similarly to '=' icode
7596         * src/pic16/device.h (typedef struct PIC_device): added field
7597         'extMIface' to indicate that chip has external memory interface
7598         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
7599         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
7600         18F8720
7601
7602 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7603
7604         * src/SDCC.y (pointer): fixed bug #846006
7605         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
7606         * src/SDCCast.c (decorateType): fixed bug #846009
7607         * src/ds390/peeph.def,
7608         * src/ds390/gen.c (genAnd, genOr),
7609         * src/mcs51/peeph.def,
7610         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
7611
7612 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7613
7614         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
7615         * src/SDCCdflow.c
7616         * src/SDCCcse.c
7617         * src/SDCCcse.h
7618         * src/SDCCBBlock.h
7619         * src/SDCCBBlock.c
7620
7621 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
7622
7623         fixed bug #845089
7624         * src/SDCCbitv.h,
7625         * src/SDCCbitv.c: added function to free a bitvector
7626         * src/SDCClrange.h,
7627         * src/SDCClrange.c: added function to recompute the liveranges
7628         * src/avr/ralloc.c,
7629         * src/ds390/ralloc.c,
7630         * src/hc08/ralloc.c,
7631         * src/mcs51/ralloc.c,
7632         * src/pic/ralloc.c,
7633         * src/pic16/ralloc.c,
7634         * src/xa51/ralloc.c,
7635         * src/z80/ralloc.c: recompute the liveranges after register packing
7636
7637 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
7638
7639         * src/SDCCloop.c (newInduction): fixed bug #845630
7640
7641 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7642
7643         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
7644         inadvertantly left behind from my 2003-11-12 change
7645
7646 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7647
7648         Updated headers I neglected to commit yesterday.
7649         * src/SDCClrange.h,
7650         * src/SDCCicode.h
7651
7652 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7653
7654         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
7655         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
7656         * src/SDCCopt.c (eBBlockFromiCode),
7657         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
7658         the creation of the key hash table from the sequencing so it can be used
7659         earlier (for some GCSE bug fixes still pending)
7660
7661 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7662
7663         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
7664         * support/regression/tests/addsub.c: testing genPlus shortcut
7665
7666 2003-11-15  Borut Razem <borut.razem AT siol.net>
7667
7668         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
7669
7670 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7671
7672         * src/SDCCcse.c (cseBBlock): fixed bug #527779
7673         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
7674         ordering is immaterial.
7675         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
7676
7677 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7678
7679         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
7680         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
7681         (SIGSEV) of bug #840381
7682         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
7683         unlink new file before rename if new and old filenames are the same)
7684
7685 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7686
7687         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
7688         uninitialized variables) for the mcs51. Set environment variable
7689         SDCC_GENRAMCLEAR to test.
7690         xdata initialization slightly shorter
7691
7692 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7693
7694         * src/SDCCsymt.h,
7695         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
7696         #838241 & 780691 (basicly the same bug)
7697         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
7698         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
7699
7700 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
7701
7702         * src/SDCCmain.c (linkEdit): "fix" #834252
7703
7704 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7705
7706         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
7707         * src/SDCCast.h,
7708         * src/SDCC.y: fixed bug #819403
7709
7710 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7711
7712         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
7713         the reentrant attribute.
7714         * src/hc08/gen.c (genPackBits): added missing stack readjustment
7715         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
7716         simulation
7717         * src/SDCCast.c (decorateType): fixed bug with storage class not being
7718         updated during pointer dereference; f.e. ~(((char *)1)*) was being
7719         erroneously reduced to a literal.
7720         * src/hc08/ralloc.c (packRegisters, rematStr),
7721         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
7722         some cases
7723
7724 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7725
7726         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
7727         * doc/sdccman.lyx: changed from 'article' to 'book'
7728         * doc/Makefile: readded test_suite_spec and cdbfileformat
7729
7730 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
7731
7732         * device/include/stdlib.h: include malloc.h to comply with ANSI
7733         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
7734
7735 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7736
7737         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
7738         * doc/clean.mk: also remove *.out files
7739         * doc/sdccman.lyx: some additions, larger top/bottom margins
7740
7741 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7742
7743         * src/SDCC.y: fixed bug #837365
7744         * support/regression/tests/bitopcse.c
7745         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
7746         a symbol (might be valop instead)
7747         * device/lib/Makefile.in: added errno.c to HC08SOURCES
7748         * device/lib/clean.mk: added hc08 to the cleaning list
7749
7750 2003-11-04  Borut Razem <borut.razem AT siol.net>
7751
7752         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
7753           made 2003-11-04
7754         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7755           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
7756           malloc is declared in standard stdlib.h
7757
7758 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7759
7760         * device/lib/hc08/Makefile: need to clean .rel not .o files
7761         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
7762
7763 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7764
7765         * src/port.h,
7766         * src/hc08/main.c,
7767         * src/mcs51/main.c,
7768         * src/ds390/main.c,
7769         * src/z80/main.c,
7770         * src/avr/main.c,
7771         * src/pic/main.c,
7772         * src/pic16/main.c,
7773         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
7774         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
7775         tests (which uses the port's oclsExpense function)
7776         * src/SDCC.y,
7777         * src/SDCCast.c,
7778         * src/SDCCicode.c,
7779         * src/hc08/gen.c,
7780         * src/ds390/gen.c,
7781         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
7782
7783 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7784
7785         * src/SDCCcse.c (ifxOptimize),
7786         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
7787         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
7788         deleting the IFX iCode.
7789         * src/hc08/ralloc.c: reduced unneeded slocs
7790         * src/hc08/gen.c: fixed bug in asmopToBoolean
7791
7792 2003-11-04  Borut Razem <borut.razem AT siol.net>
7793
7794         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
7795           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7796           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
7797           transferred to configure
7798
7799 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
7800
7801         Use headers defined in the C[++] standards:
7802         * sim/ucsim/gui.src/serio.src/fileio.cc
7803         * sim/ucsim/gui.src/serio.src/frontend.cc
7804         * sim/ucsim/gui.src/serio.src/main.cc
7805         * sim/ucsim/gui.src/serio.src/posix_signal.cc
7806         * support/Util/NewAlloc.c
7807         * as/hc08/lklibr.c
7808         * as/mcs51/lklibr.c
7809         * as/z80/aslist.c
7810         * as/z80/assym.c
7811
7812 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7813
7814         * Added MSVC projects for hc08 assembler and linker:
7815         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
7816         /as/hc08/link_hc08.dsp
7817
7818 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
7819
7820         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
7821
7822 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
7823
7824         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
7825
7826 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7827
7828         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
7829
7830 2003-10-31  Borut Razem <borut.razem AT siol.net>
7831
7832         * support/cpp2/cpplib.h,
7833           support/cpp2/cpplib.c,
7834           support/cpp2/cpplex.c,
7835           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
7836           to switch _asm block preprocessing on / off. Default is
7837           #pragma preproc_asm +
7838
7839 2003-10-31  Borut Razem <borut.razem AT siol.net>
7840
7841         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
7842           when outputting comment blocks (when executed with -C option) and
7843           _asm (SDCPP specific) blocks
7844
7845 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7846
7847         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
7848
7849 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
7850
7851         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
7852
7853 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
7854
7855         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
7856         * src/SDCCast.c (decorateType): fixed bug #832664
7857
7858 2003-10-31  Borut Razem <borut.razem AT siol.net>
7859
7860         * support\cpp2\cpplex.c: fixed for SDCPP:
7861           comments(when executed with -C option) and _asm blocks
7862           were included even if they where in skipped #if block.
7863           Applied solution from GCC cpp 3.3.2
7864
7865 2003-10-31  Borut Razem <borut.razem AT siol.net>
7866
7867         * src/SDCC.lex: sdcc now understands both formats:
7868           '# <line_number> <file_name>' and
7869           '#line <line_number> <file_name>'
7870         * support/cpp2/cppmain.c: sdcpp now generates the standard
7871           '# <line_number> <file_name>' instead of former
7872           '#line <line_number> <file_name>'
7873
7874 2003-10-30  Borut Razem <borut.razem AT siol.net>
7875
7876         * support/cpp2/cpphash.h,
7877         * support/cpp2/cpplib.h
7878         * support/cpp2/cpplex.c,
7879         * support/cpp2/cppmain.c,
7880         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
7881
7882 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7883
7884         Fixed a number of problems revealed by bug #827883.
7885         * src/SDCCloop.c (loopInvariants): Spill location of the
7886         result operand should be recomputed if extracted from
7887         a loop. Also, don't extract assignments of an iTemp
7888         from a literal.
7889         * src/SDCCast.c (isConformingBody): loop reversal should
7890         not occur if the control variable is involved with a
7891         relational operator.
7892
7893 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7894
7895         * .version: bumped to 2.3.6 to reflect the big improvements
7896         made by Erik and Klaus. Thanks!
7897
7898 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
7899
7900         Replaced the livrange code.
7901         * src/SDCClrange.c: added new LR code
7902         * src/SDCCloop.c,
7903         * src/SDCCBBlock.h: removed remainig parts from old LR code
7904         * src/ds390/ralloc.c,
7905         * src/ds390/gen.c: minor fixes to make it work with new code
7906
7907 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7908
7909         * as/hc08/asm.h,
7910         * as/hc08/lkrloc.c,
7911         * src/hc08/gen.c,
7912         * src/hc08/ralloc.c: Fix various warnings related to the hc08
7913         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
7914         (tweaked fix for bug #818696)
7915
7916 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7917
7918         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
7919
7920 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7921
7922         * src/SDCCmain.c,
7923         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
7924         * src/mcs51/gen.c (gencjneshort),
7925         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
7926         more efficient (per Scott Bronson's suggestion)
7927
7928 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7929
7930         Extended the semantics of the critical keyword to include
7931         individual statements. See RFE #827755 and #799831
7932         * src/SDCC.y
7933         * src/SDCCicode.c
7934         * src/SDCCopt.c
7935         * src/SDCCast.c
7936         * support/Util/SDCCerr.c
7937         * support/Util/SDCCerr.h
7938         * src/mcs51/gen.c
7939         * src/ds390/gen.c
7940         * src/hc08/gen.c
7941
7942 2003-10-19  Borut Razem <borut.razem AT siol.net>
7943
7944         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
7945
7946 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7947
7948         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
7949         Fixed bug #818696
7950         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
7951         and predecrement operand is displayed
7952
7953 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7954
7955         * src/SDCCval.c (valMinus): fixed bug #826041
7956
7957 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7958
7959         Some hc08 related updates that I missed earlier
7960         * sim/ucsim/stypes.h
7961         * support/regression/ports/hc08/spec.mk
7962
7963 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7964
7965         New target "hc08" for the Motorola 68hc08 family of micros
7966
7967         * configure
7968         * configure.in
7969         * Makefile
7970         * src/hc08/*
7971         * src/SDCCmain.c
7972         * src/port.h
7973         * sim/ucsim/hc08.src/*
7974         * sim/ucsim/configure.in
7975         * src/ucsim/configure
7976         * sim/ucsim/packages_in.mk
7977         * as/hc08/*
7978         * as/Makefile
7979         * device/include/mc68hc908qy.h
7980         * device/lib/hc08/*
7981         * device/lib/Makefile.in
7982         * support/regression/ports/hc08/*
7983         * support/regression/Makefile
7984
7985 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7986
7987         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
7988         regression test
7989         * src/ds390/gen.c (genCast): fixed bug #821957
7990
7991 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7992
7993         * device/lib/logf.c: "fixed" overlay bug
7994         * support/regression/ports/host/spec.mk: added m library
7995         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
7996         * support/regression/tests/float_trans: added (for Eric)
7997
7998 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
7999
8000         * src/mcs51/gen.c (genCpl): fixed bug
8001         http://sf.net/mailarchive/message.php?msg_id=6263915
8002
8003 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
8004
8005         * src/SDCCast.c (decorateType): added extended constant folding
8006         * src/SDCCsymt.c (computeType): cleanup
8007         * src/SDCCval.c (valShift): minor optimization
8008         * support/regression/tests/ast_constant_folding.c: added
8009
8010 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8011
8012         * src/SDCCmain.c: removed some unintended changes
8013
8014 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8015
8016         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
8017         * src/z80/gen.c: fixed part of bug #817589
8018         * src/SDCCsymt.c (checkFunction): fixed bug #817895
8019
8020 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
8021
8022         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
8023         * src/SDCCcflow.c
8024         * src/SDCCcse.c
8025         * src/SDCCdflow.c
8026         * src/SDCClabel.c
8027         * src/SDCClrange.c
8028         * src/SDCCmem.c
8029         * src/SDCCopt.c
8030         * src/SDCCpeeph.c
8031         * src/SDCCset.c
8032         * src/avr/ralloc.c
8033         * src/ds390/ralloc.c
8034         * src/izt/ralloc.c
8035         * src/mcs51/ralloc.c
8036         * src/pic/ralloc.c
8037         * src/pic16/ralloc.c
8038         * src/xa51/ralloc.c
8039         * src/z80/ralloc.c
8040         * src/z80/gen.c: removed unused label "release:"
8041
8042 2003-10-06  Borut Razem <borut.razem AT siol.net>
8043
8044         * src/SDCC.lex: removed definition of unused variables
8045           save_optimize and save_options
8046
8047 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
8048
8049         * clean.mk: removed '=' in "-maxdepth=1"
8050         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
8051         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
8052
8053 2003-10-06  Borut Razem <borut.razem AT siol.net>
8054
8055         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
8056           my_unput() replaced by unput()
8057
8058 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
8059
8060         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
8061         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
8062         type-punned pointer will break strict-aliasing rules"
8063         Old LR behaviour is again default; Klaus' LR can be choosen by
8064         defining the environment variable LRKLAUS
8065         * src/SDCCBBlock.h
8066         * src/SDCCloop.c
8067         * src/SDCClrange.c
8068         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
8069         * clean.mk: fixed removal of files in bin/CVS/
8070         * device/lib/clean.mk: fixed removal of directories small and large
8071         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
8072         * src/SDCCicode.c,
8073         * src/SDCCval.c: removed superflous test for pedantic
8074
8075 2003-10-05  Borut Razem <borut.razem AT siol.net>
8076
8077         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
8078           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
8079           message "unmatched #pragma SAVE and #pragma RESTORE"
8080
8081 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8082
8083         * doc/sdccman.lyx: various additions and updates (interrupts, inline
8084           assembly, critical functions, atomic, nojtbound)
8085
8086 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
8087
8088         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
8089         * src/SDCCBBlock.h
8090         * src/SDCCloop.c
8091         * src/SDCCloop.h
8092         * src/SDCClrange.c
8093
8094 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8095
8096         * src/z80/gen.h,
8097         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8098         * src/mcs51/gen.h
8099         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8100         * src/ds390/gen.h
8101         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8102         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
8103         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
8104
8105 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8106
8107         * src/z80/gen.c (genRet): fixed bug #524753
8108         * src/z80/gen.c (genCast): fixed internal error on cast from
8109         pointer to long
8110         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
8111         fix for bug #477835 to the z80
8112         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
8113         for tracking iCodes in the peephole optimizer for z80
8114
8115 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8116
8117         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
8118         the other part of bug #814548
8119         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
8120
8121 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
8122
8123         * src/SDCCcse.c: fixed part of bug #814548
8124
8125 2003-09-28  Borut Razem <borut.razem AT siol.net>
8126
8127         * src/asm.c: rewrite of printILine() to use temporary file instead
8128           a pipe
8129         * src/xa51/main.c: commented out declaration of int rewinds
8130
8131 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8132
8133         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
8134
8135 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8136
8137         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
8138         * src/asm.c (printILine): Fixed bug #811015
8139
8140 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8141
8142         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
8143         freeing.
8144
8145 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8146
8147         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
8148         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
8149         to correctly handle general case of AOP_PAIRPTR
8150         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
8151
8152 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8153
8154         * src/mcs51/ralloc.c (fillGaps),
8155         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
8156         register positioning bug)
8157
8158 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
8159
8160         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
8161
8162 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8163
8164         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
8165         genCodePointerGet, genGenPointerGet, genFarPointerSet,
8166         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
8167         (ralloc doesn't intentionally do this now, but perhaps later)
8168         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
8169         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
8170         register positioning bugs (Fixed bug #762602 and #795325)
8171         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
8172         (Fixed bug #808779)
8173         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
8174         lines that --i-code-in-asm generates
8175
8176 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8177
8178         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
8179         trying to fclose a FILE* that was already closed.
8180
8181 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8182
8183         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
8184         of const struct should be treated as if const themselves)
8185
8186 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
8187
8188         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
8189
8190 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8191
8192         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
8193         Unix (/n) and DOS (/r/n) line terminations.
8194
8195 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8196
8197         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
8198         bug #613775
8199
8200 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8201
8202         * src/mcs51/gen.c (genFunction, genEndFunction),
8203         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
8204         and restore of EA so that stack offsets to parameters are
8205         correct when using both critical and reentrant/stack-auto.
8206         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
8207         size (can be triggered in error if sloc is shared between
8208         different sized objects)
8209         * device/include/float.h: fixed macros to explicitly use
8210         unsigned long where needed
8211
8212 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
8213
8214         Feature req. 799831: added code to allow nesting of critical functions
8215         * src/mcs51/gen.c (genFunction, genEndFunction)
8216         * src/ds390/gen.c (genFunction, genEndFunction)
8217
8218 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8219
8220         * src/SDCCsymt.c (sclsFromPtr),
8221         * src/SDCCsymt.h,
8222         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
8223         support for standard C idiom of memory mapped variables; for
8224         example, *((xdata int*)0x1234) = 1 is now internally equivalent
8225         to xdata int at 0x1234 tempvar = 1.
8226         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
8227         provided by Akiya ISHIDA
8228
8229 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
8230
8231         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
8232         * src/SDCCval.c (constVal): added reduction from int to char
8233         * src/SDCCval.c (valMult, valDiv): fixed sign handling
8234         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
8235         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
8236         to ignore the sign
8237         * support/regression/tests/shifts.c: fixed
8238
8239 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8240
8241         * src/z80/gen.c (genXor): Fixed bug #805445
8242
8243 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8244
8245         Fixed bug #621531 (const & volatile confusion in the type chain).
8246         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
8247         refer to the const or volatile state of the pointer itself.
8248
8249         * src/SDCCast.c
8250         * src/SDCCglue.c
8251         * src/SDCCicode.c
8252         * src/SDCCsymt.c
8253         * src/SDCCval.c
8254         * src/SDCC.y
8255         * src/SDCCsymt.h
8256         * src/pic/gen.c
8257         * src/pic/ralloc.c
8258         * src/pic16/gen.c
8259         * src/pic16/ralloc.c
8260         * support/regression/tests/const.c
8261
8262 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8263
8264         When checking for duplicated modules, use absolute paths
8265         instead of relative paths.  Files changed:
8266
8267         * as/mcs51/lklib.c
8268         * link/z80/lklib.c
8269
8270 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8271
8272         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
8273
8274 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8275
8276         * device/include/string.h: added size_t typedef, changed
8277         prototypes to use size_t, eliminated separate reentrant and
8278         non-reentrant declarations, added _memmove declaration
8279         * device/lib/_memcpy.c: changed to use size_t instead of int,
8280         changed /4 to >>2 to avoid division library call
8281         * device/lib/_memcmp.c,
8282         * device/lib/_memset.c,
8283         * device/lib/_strncat.c,
8284         * device/lib/_strncpy.c,
8285         * device/lib/_strncmp.c: changed to use size_t instead of int
8286         * device/lib/_memmove.c: new file (fixed bug #772294)
8287         * device/lib/Makefile.in: added _memmove.c
8288         * device/lib/z80/asm_strings.s: fixed bug #772290
8289         * support/regression/tests/bitfields.c: attempt to fix host assertion
8290         failure on amd64-unknown-linux2.2
8291
8292 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8293
8294         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
8295         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
8296         * as/z80/asmain.c (main): fixed bug #801766
8297
8298 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
8299
8300         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
8301         compilers
8302
8303 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8304
8305         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
8306         reported in bug #800609
8307
8308 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
8309
8310         * Top header beautifications in src/pic16 directory:
8311           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
8312           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
8313           pcoderegs.h, ralloc.c, ralloc.h
8314         * main.c: added top header and GPL license notice
8315         * pcode.c: fixed the if-conditional warning
8316
8317 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
8318
8319         * device/lib/_mullong.c: replaced int by short for gcc
8320
8321 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8322
8323         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
8324         and JUMPTABLE iCodes properly now (worked by accident before)
8325         * src/mcs51/gen.c (leftRightUseAcc),
8326         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
8327         iCode properly now. Use getSize instead of nRegs since a & b
8328         aren't part of the nRegs tally.
8329
8330 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
8331
8332         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
8333         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
8334           before instructions that use the _STATUS register
8335
8336 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
8337
8338         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
8339         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
8340         fetching of the pointer
8341         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
8342         copied from genNearPointerSet()
8343         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
8344         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
8345         If they pop r0/r1 they must be called in the opposite order than aopOp().
8346         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
8347         (resp. --stack-auto), prepared for --xstack
8348
8349 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8350
8351         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
8352
8353 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8354
8355         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
8356         these ports have their own __sdcc_external_start()
8357
8358 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
8359
8360         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8361         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
8362         type for bits was changed. It resulted in bit variables becoming
8363         global, which is not permitted in PIC 14 assembly output.
8364
8365 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8366
8367         * doc/sdccman.lyx: various additions and updates. Rearranged sections
8368
8369 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8370
8371         Z80 and MCS51 linkers complaint if a public symbol is defined
8372         in more than one library module:
8373
8374         * as/mcs51/lklib.c
8375         * link/z80/lklib.c
8376         * as/mcs51/Makefile.in
8377
8378 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8379
8380         A few small changes that speed up the peephole optimizer.
8381
8382         * src/SDCCpeeph.c
8383
8384 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8385
8386         Try to make the peephole optimizer smarter by maintaining
8387         an association between the assembly source code and the
8388         iCodes that originated them. Put this information to use
8389         with a new peephole rule condition "notVolatile" so that
8390         the rules can be aggressive yet still safe.
8391
8392         * src/SDCCpeeph.c
8393         * src/SDCCpeeph.h
8394         * src/mcs51/gen.c
8395         * src/mcs51/peeph.def
8396
8397 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8398
8399         Fixed bug #741761
8400
8401         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
8402         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
8403         if the left or right operand symbols have the accuse flag set.
8404
8405 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8406
8407         Changed the type of the result of the ! (NOT) operator to char;
8408         previously it returned the same type as the source. This allows
8409         us to eliminate all the genFloatNot functions (all of its target
8410         implementations were very buggy) since !float can use the same
8411         code as !long now.
8412
8413         * src/SDCCicode.c (ast2iCode): ! returns char
8414         * src/mcs51/gen.c (genNot, genNotFloat),
8415         * src/ds390/gen.c (genNot, genNotFloat),
8416         * src/z80/gen.c (genNot, genNotFloat),
8417         * src/pic/gen.c (genNot, genNotFloat),
8418         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
8419
8420 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
8421
8422         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8423         1. Interrupt would not compile properly. Ensure PCLATH register is saved
8424            during interrupts. Ensure WSAVE is located at a shared bank address.
8425         2. Fixed page selection in some places
8426         3. Fixed BTFSS/C to where necessary use registers directly and not simply
8427            the registers name strings.
8428         4. Fixed "signed / unsigned compare" compiler warnings.
8429         5. The PIC port manages its own allocation of the general purpose
8430            registers, but makes no attempt to reuse them. As a result when
8431            compiling it soon runs out of general purpose registers. Some
8432            additional code was added to the files pcode.c and device.c to walk
8433            through the function call tree and rename the registers so that they
8434            get reused.
8435
8436         * src/pic/device.c
8437         * src/pic/gen.c
8438         * src/pic/glue.c
8439         * src/pic/pcode.c
8440         * src/pic/pcode.h
8441         * src/pic/ralloc.c
8442         * src/pic/ralloc.h
8443         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
8444         genPlus() & genMinus() when the result is the same as left or right
8445
8446 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8447
8448         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
8449
8450 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8451
8452         Made bitfield a distinct type from bit so that bitfields
8453         convert as per ANSI C and bits retain their traditional
8454         boolean style behaviour. Implemented bitfield support in
8455         the z80 port.
8456
8457         * src/SDCCsymt.h,
8458         * src/SDCCsymt.c,
8459         * src/SDCCast.c,
8460         * src/cdbFile.c,
8461         * src/mcs51/gen.c,
8462         * src/ds390/gen.c: bit v bitfield split
8463         * src/z80/gen.c: New support for bitfields
8464         * support/regression/tests/bitfields.c: reenabled z80,
8465         added more tests
8466
8467 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8468
8469         Rules 246.x, 247.x relate to bitfields, the others speed up
8470         access to xdata mapped I/O devices.
8471
8472         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
8473
8474 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8475
8476         Cleaned up genPackBits and genUnpackBits and added two helper
8477         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
8478         for literal assignments in genPackBits (thanks to Frieder for
8479         reminding me).
8480
8481         * src/mcs51/gen.c
8482         * src/ds390/gen.c
8483
8484 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8485
8486         Fixed bug #748310 (pointer to function type mishandled when the
8487         function name is omitted). Also fixed a SIGSEGV when a function
8488         attribute (reentrant, etc) is used on a non-function or on a
8489         function but misplaced before the parameter list.
8490
8491         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
8492         bug #748310
8493         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
8494         * support/Util/SDCCerr.h,
8495         * support/Util/SDCCerr.c: Added func attr misuse error msg
8496
8497 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8498
8499         Fixed bug #787649 by anonymous
8500         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
8501         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
8502
8503 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8504
8505         Fixed numerous bitfield problems.
8506
8507         * src/SDCC.y: More bitfield related error checking
8508         * src/SDCCsymt.h,
8509         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
8510         * support/Util/SDCCerr.h,
8511         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
8512         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8513         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8514         * support/regression/tests/bitfields.c: tests added
8515
8516 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8517
8518         Made the constant following the "interrupt" keyword optional. If
8519         omitted, the function will not automatically be given an entry
8520         in the interrupt vector table (similar to #pragma NOIV, but
8521         less syntacticly kludgy). The interrupt number is also now
8522         range checked. Also fixed a bug in the high order bit example
8523         in the manual.
8524
8525         * src/SDCC.y
8526         * src/SDCCmem.c
8527         * src/SDCCglue.c
8528         * src/SDCCsymt.h
8529         * support/Util/SDCCerr.c
8530         * support/Util/SDCCerr.h
8531         * doc/sdccman.lyx
8532
8533 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8534
8535         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
8536         * src/SDCCicode.c (operandOperation): rewritten some ops
8537         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
8538         * src/SDCCsymt.c (computeType): literals are handled the same way as any
8539         other type
8540         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
8541         be re-activated by defining REDUCE_LITERALS)
8542         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
8543         unsigned, but are signed by default
8544         * src/SDCCval.c (constVal): rearranged
8545         * src/SDCCval.c (valMod): preliminary fix
8546         * src/SDCCval.c (valCastLiteral): use TYPE_* types
8547         * support/regression/literalop.c: added, work in progress
8548
8549 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8550
8551         Generate warnings for useless declarations like "char data;"
8552         that don't do what new users expect.
8553
8554         * src/SDCC.y
8555         * support/Util/SDCCerr.h
8556         * support/Util/SDCCerr.c
8557
8558 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
8559
8560         * src/SDCCval.c (valMult): fix overflow detection of negative int
8561
8562 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8563
8564         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
8565
8566         Changes to support big endian targets:
8567
8568         * src/ports.h
8569         * src/SDCCglue.c
8570         * src/avr/main.c
8571         * src/ds390/main.c
8572         * src/izt/i186.c
8573         * src/mcs51/main.c
8574         * src/pic/main.c
8575         * src/pic16/main.c
8576         * src/xa51/main.c
8577         * src/z80/main.c
8578
8579 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
8580
8581         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
8582         * device/lib/time.c: fixed warning "integer overflow in expression"
8583
8584 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
8585
8586         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
8587         * src/SDCCval.c (constVal): changed default to signed; hex and octal
8588         constants are unsigned; added recognition of "u" flag for unsigned
8589         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
8590         * src/SDCCval.c (valDiv, valMod): fixed signdness
8591         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
8592         signedness of modulo, left and right shift
8593         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
8594         * support/Util/SDCCerr.h: added warning W_INT_OVL
8595         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
8596         * src/SDCCast.c (ast_print): improved output of constants
8597
8598 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8599
8600         Fixed some warnings when building with MSVC:
8601
8602         * as\mcs51\asdata.c
8603         * as\z80\asdata.c
8604         * as\mcs51\asm.h
8605         * as\z80\asm.h
8606         * link\z80\aslink.h
8607         * link\z80\lkdata.c
8608         * link\z80\lkeval.c
8609         * link\z80\lkgb.c
8610         * link\z80\lkihx.c
8611         * link\z80\lks19.c
8612         * link\z80\lksym.c
8613         * support\cpp2\cpplib.c
8614         * src\ds390\gen.c
8615         * src\mcs51\gen.c
8616
8617 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
8618
8619         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
8620
8621 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8622
8623         * support\librarian\clean.mk: Do not remove Makefile.
8624         * support\librarian\Makefile: added.
8625
8626 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8627
8628         Added librarian to MSVC build:
8629         * all.dsp
8630         * sdcc.dsw
8631         * support\librarian\librarian.dsp
8632
8633         'configure' not needed for librarian, removed:
8634         * support\librarian\configure
8635         * support\librarian\configure.in
8636         * support\librarian\config_in.h
8637         * support\librarian\Makefile.in
8638
8639         Hopefully these ones built the librarian and the rest of sdcc properly:
8640         * Makefile
8641         * Makefile.common.in
8642
8643         Messed up 'configure', so revert to previous version:
8644         * configure
8645         * configure.in
8646
8647 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
8648
8649         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
8650         there, while the mantissa of a double is "only" 53 bits wide.
8651
8652 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8653
8654         Adding sdcclib to the build.  MSVC project coming soon.
8655         Files added/changed:
8656
8657         * support\librarian\clean.mk
8658         * support\librarian\configure
8659         * support\librarian\configure.in
8660         * support\librarian\config_in.h
8661         * support\librarian\Makefile.bcc
8662         * support\librarian\Makefile.in
8663         * support\librarian\sdcclib.c
8664         * Makefile.bcc
8665         * Makefile
8666         * Makefile.common.in
8667         * configure
8668         * configure.in
8669
8670 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8671
8672         Linker now complaints if linked modules have conflicting options, for
8673         example, one compiled using --model-large and another one compiled with
8674         --model-small.  The following files were modified:
8675
8676         * as\mcs51\asdata.c
8677         * as\mcs51\aslink.h
8678         * as\mcs51\asm.h
8679         * as\mcs51\asmain.c
8680         * as\mcs51\asout.c
8681         * as\mcs51\i51pst.c
8682         * as\mcs51\lkdata.c
8683         * as\mcs51\lklibr.c
8684         * as\mcs51\lkmain.c
8685         * as\z80\asdata.c
8686         * as\z80\asm.h
8687         * as\z80\asmain.c
8688         * as\z80\asout.c
8689         * as\z80\z80pst.c
8690         * link\z80\aslink.h
8691         * link\z80\lkdata.c
8692         * link\z80\lklibr.c
8693         * link\z80\lkmain.c
8694         * src\SDCCglue.c
8695
8696 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8697
8698         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
8699         as/mcs51/lklibr.c: Generate a warning when a library is not found.
8700
8701 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
8702
8703         * src/z80/mappings.i: fix _mul[us][int,long] entries
8704
8705 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8706
8707         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
8708
8709 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8710
8711         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
8712         * support/regression/tests/bitopcse.c: added
8713         fixed warning:
8714         * src/avr/gen.c:
8715         * src/pic/gen.c:
8716         * src/pic16/gen.c:
8717         * src/z80/gen.c:
8718         * src/xa51/gen.c:
8719
8720 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8721
8722         added support for new library format to z80, gbz80 linkers:
8723         *link/z80/aslink.h
8724         *link/z80/lklex.c
8725         *link/z80/lklib.c
8726         *link/z80/lklist.c
8727
8728 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8729
8730         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
8731         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
8732
8733 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
8734
8735         added DUMMY_READ_VOLATILE:
8736         * src/SDCC.y:
8737         * src/avr/gen.c:
8738         * src/xa51/gen.c:
8739         * src/z80/gen.c:
8740         * src/pic/gen.c:
8741         * src/pic16/gen.c:
8742         * src/mcs51/gen.c:
8743         * src/ds390/gen.c:
8744         * src/SDCCcse.c (algebraicOpts): many improvements
8745         * src/SDCCcse.h: removed algebraicOpts()
8746         * src/SDCCicode.c (picDummyRead): added
8747
8748 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8749
8750         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
8751         "Insufficient space in data memory".
8752
8753 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8754
8755         * src/mcs51/gen.c: fixed bug #771358
8756         * src/z80/gen.c: fixed bug #759087
8757
8758 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
8759
8760         * src/pic16/glue.c: minor cleanup by Vangelis
8761
8762 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8763
8764         * device/include/regc515c.h: fixed #758477
8765         * device/lib/_gptrget.c: saving some cycles in generic pointer get
8766         * device/lib/_gptrput.c: saved a few bytes
8767         * my tab spacing is 8, yours too?)
8768         * device/lib/_ser.c: process RX bytes earlier than TX bytes
8769         * device/lib/serial.c: process RX bytes earlier than TX bytes
8770         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
8771
8772 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8773
8774         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
8775
8776 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8777
8778     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
8779
8780 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
8781
8782         * device/lib/Makefile.in: bad fix, reverted to 1.43
8783
8784 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
8785
8786         * device/lib/Makefile.in: added missing z80 object files
8787
8788 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
8789
8790         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
8791         pic16 progress by Vangelis:
8792         * src/SDCCglobl.h:
8793         * src/SDCCmain.c:
8794         * src/pic/Makefile:
8795         * src/pic:
8796         * pic/Makefile:
8797         * pic16/device.c:
8798         * pic16/device.h:
8799         * pic16/gen.c:
8800         * pic16/gen.h:
8801         * pic16/genarith.c:
8802         * pic16/glue.c:
8803         * pic16/main.c:
8804         * pic16/pcode.c:
8805         * pic16/pcode.h:
8806         * pic16/pcodepeep.c:
8807         * pic16/peeph.def:
8808
8809 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8810
8811     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
8812
8813 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8814
8815     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
8816     added gbz80 build to MSVC project.
8817     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
8818     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
8819     from 8051 stuff and setup so it links using a .lnk file.
8820
8821 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8822
8823     * support/librarian/sdcclib.c: sdcc librarian.
8824     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
8825     with sdcclib.
8826
8827 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8828
8829     * as/mcs51/lkmain.c: properly handle extensions in function afile.
8830
8831 2003-07-02  Borut Razem <borut.razem AT siol.net>
8832
8833         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
8834         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
8835         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
8836         src/xa51/main.c, src/z80/main.c:
8837         virtualization of glue() function: each port has it's own glue function,
8838         which is accessed by do_glue function pointer in PORT.general structure
8839
8840 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
8841
8842         * DS800C400 fun, improved ROM interface and tinibios.
8843
8844 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
8845
8846         * More support for DS80C400. Now includes beginning of interface to ROM.
8847
8848 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
8849
8850         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
8851
8852 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8853
8854         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
8855
8856 2003-06-19  Borut Razem <borut.razem AT siol.net>
8857
8858         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
8859
8860 2003-06-19  Borut Razem <borut.razem AT siol.net>
8861
8862         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
8863         fixed Z80 port - crt0.o: cannot open.
8864
8865 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
8866
8867         * support/Util/MySystem.c (merge_command): revert bad fix
8868
8869 2003-06-18  Borut Razem <borut.razem AT siol.net>
8870
8871         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
8872
8873 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8874
8875         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8876         option --use-stdout sends errors to stdout instead of stderr.
8877
8878 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
8879
8880         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
8881
8882 2003-06-15  Borut Razem <borut.razem AT siol.net>
8883
8884         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
8885         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
8886         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
8887         fixed width array of pointers replaced with sets;
8888         multiple include and lib paths ared transferred to preprocessor and linker
8889         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
8890         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
8891         fixed width array of pointers
8892         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
8893         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
8894         fixupPath(), getPathDifference()
8895         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
8896         fixed width array of pointers
8897
8898 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
8899
8900         * src/pic16/ralloc.c: fix warnings
8901         * src/pic16/pcode.c: fix warning
8902
8903 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
8904
8905          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
8906         know all the details, but essentially this set of changes enable
8907         the pic16 port to generate movff instructions and generate assembler
8908         directives,
8909         * src/SDCCmain.c:
8910         * src/pic16/gen.c:
8911         * src/pic16/glue.c:
8912         * src/pic16/pcode.c:
8913         * src/pic16/device.c:
8914         * src/pic16/main.c:
8915         * src/pic16/pcode.h:
8916         * src/pic16/pcoderegs.c:
8917         * src/pic16/ralloc.c:
8918         * src/pic16/ralloc.h:
8919
8920 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8921
8922         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8923         added option --vc, so sdcc errors and warnings are compatible with
8924         Microsoft Visual Studio.
8925
8926 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8927
8928         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
8929           device/lib/libfloat.lib: added atof function.
8930
8931 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
8932
8933         * doc/sdccman.lyx: updated to Lyx 1.3
8934         * doc/cdbfileformat.lyx: updated to Lyx 1.3
8935         * doc/test_suite_spec.lyx: updated to Lyx 1.3
8936         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
8937
8938 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
8939
8940         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
8941
8942 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8943
8944         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
8945           additions to the "related tools/documentation" section
8946
8947 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
8948
8949         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
8950
8951 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
8952
8953         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
8954         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
8955
8956 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
8957
8958         * doc/sdccman.lyx: fix double dash and other minor things
8959         * doc/Makefile: fix double dash
8960
8961 2003-05-28  Karl Bongers(patches from Martin Helmling)
8962         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
8963           condition and ignore commands.
8964
8965 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8966
8967         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
8968           is in parts still quite out of date, I did changes as far as I felt makes sense
8969           for a non-native english speaker.
8970           Please feel free to add to the manual or to correct my changes.
8971         * doc/Makefile: undid touching the date of intermediate tex files.
8972
8973 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8974
8975         * doc/sdccman.lyx: Manual has an index now
8976
8977 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
8978
8979         Finalize muluint/mulsint and mululong/mulslong merging:
8980         * device/lib/_mulint.c
8981         * device/lib/_mullong.c
8982         * device/lib/gbz80/mul.s
8983         * device/lib/gbz80/stubs.s
8984         * device/lib/z80/mul.s
8985         * device/lib/z80/stubs.s
8986         * src/SDCCsymt.c (initCSupport)
8987
8988 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8989
8990         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
8991         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
8992           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
8993           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
8994           instead of /Zm500.
8995
8996 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8997
8998         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
8999           the regression tests I'm not brave enough to enable 245.b, 245.c
9000         * doc/sdccman.lyx: added latex preamble for hyperref package.
9001           Using pdflatex this will give you a hyperlinked pdf file with
9002           bookmarks. (prepend '%' before /usepackage if this breaks something)
9003
9004 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9005
9006          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
9007
9008 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
9009
9010         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
9011
9012 2003-05-21    <johan AT balder>
9013
9014         * src/SDCCglue.c (printIval): fixed bug #739934
9015
9016 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9017
9018         Applied patch from bug 737905 (renamed yylineo to mylineno):
9019         * src/altlex.c
9020         * src/SDCCast.c
9021         * src/SDCglobl.h
9022         * src/SDCC.lex
9023         * src/SDCCsymt.c
9024         * src/SDCCval.c
9025         * src/pic16/pcode.c: Cleaned warnings
9026         * src/pic16/pcodeflow.c: Cleaned warnings
9027         * src/pic16/pcoderegs.c: Cleaned warnings
9028
9029 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
9030
9031         * src/pic16/pcode.c: Cleaned warnings
9032         * src/pic16/pcodepeep.c: Cleaned warnings
9033         * src/pic16/ralloc.c: Cleaned warnings
9034
9035 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9036
9037         * doc/sdccman.lyx: fixed bug 739745
9038         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
9039
9040 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
9041
9042         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
9043         it can be defined with CFLAGS when running configure
9044         * src/SDCCmain.c: fixed compiling + linking with object files
9045
9046 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
9047
9048         * configure.in: configure for pic16 port,
9049             added --disable-pic16-port
9050         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
9051         * src/SDCCmain.c: linkOptions is changed to set *,
9052             added if/endif conditional macros to remove options help
9053             messages from optionsTable when a port is not configured, added
9054             support for the PIc16 port in the ports table, when executing
9055             the compiler with no port specified on command line, a default
9056             port is selected with the new macro DEFAULT_PORT which is
9057             defined in port.h, in setDefaultOptions() linkOptions is removed
9058             from initialization assignment, since now it is a set,
9059             parseCmdLine uses setParseWithComma for linkOptions, in
9060             linkEdit() linkOptions are accessed with new function indexSet()
9061             which returns the i'th item of a set variable. See SDCCset.c, in
9062             linkEdit() when calling buildCmdLine(), added linkOptions as
9063             last argument. Now users can pass arguments to gplink via the
9064             -Wl option, main() uses pic16glue() to glue up pic16 programs
9065         * src/SDCCpeeph.c: various changes to support pic16
9066         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
9067             return the i'th item of the set
9068         * src/SDCCset.h: added function prototype for indexSet()
9069         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
9070         * src/clean.mk: added pic16 in CLEANALLPORTS variable
9071         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
9072             added macro DEFAULT_PORT
9073         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
9074         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
9075             generated
9076         * src/pic16/glue.c: commented out some error producing lines
9077         * src/pic16/main.c: __config directives are commented out to stop
9078             gpasm complaining and test the linkage with gplink, _linkCmd and
9079             _asmCmd changed to be more gplink and gpasm friendly
9080         * src/pic16/peeph.def: peep rule 3 is commented out, since it
9081             produced an error when parsed, peep rule 12 is added to utilize
9082             movff, but it is commented out since the pCode does not support
9083             yet a command with 2 address arguments
9084
9085 2003-05-18    <johan AT balder>
9086
9087         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9088         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9089 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
9090
9091         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
9092   Added feature to script commands from file.
9093
9094 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
9095
9096         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
9097         * src/SDCCutil.c: include ctype.h for win32
9098
9099 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
9100
9101         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
9102
9103 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
9104
9105         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
9106   Fixed so you can set breakpoints prior to run, run does not stop
9107   on entry now.  Add tbreak.  Other enhancements and fixes for use
9108   with ddd.
9109
9110 2003-05-12  Borut Razem <borut.razem AT siol.net>
9111
9112         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
9113
9114 2003-05-11  Borut Razem <borut.razem AT siol.net>
9115
9116         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
9117         the path of bin directory, so that PATH is the only env. variable, which has to be set
9118         in case of standard installation.
9119         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
9120         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
9121         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
9122
9123 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9124
9125         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
9126         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
9127         temp files are in the port dir; clean the gen/test directory when
9128         generating new test.c
9129         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
9130         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
9131         * support/regression/tests/zeropad.c: added
9132
9133 2003-05-09    <johan AT balder>
9134
9135         * src/SDCCglue.c: fixed bug #597940
9136
9137 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
9138
9139         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9140   cache sfr, optimize next,step, fix off by one sourceline,
9141   support ddd list function.
9142         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
9143
9144 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9145
9146         * support/regression/HTMLgen.py: added compare_s2f()
9147         * support/regression/Makefile: redo 1.27
9148         * support/regression/generate-cases.py: redo 1.5
9149
9150 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
9151
9152         * support/regression/tests/float.c: workaround 33 bit hex constant
9153         * support/regression/tests/simplefloat.c: fix division for host
9154
9155 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
9156
9157         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
9158         that tame's the PIC's over-aggressive optimizer.
9159
9160 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9161
9162          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
9163          support for MSVC.
9164
9165 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
9166
9167         Initial support for DS80C400. "Hello world" runs on TINIm400
9168         (with polled I/O).
9169
9170 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
9171
9172          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9173          * Some notes on ddd usage added in debugger/README
9174          Martin Helmling adding more features and fixes for ddd GUI debugger.
9175          Code added for nexti, stepi, up, down, and other adjustments.
9176
9177 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
9178
9179         * src/pic/pCodepeep.c non-wildcard asmops are now handled
9180         * src/pic/peeph.def Added two rules to optimize carry manipulation
9181         * src/pic/* removed debug printfs
9182
9183 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
9184
9185         * debugger/mcs51/cmd.c: added header newalloc.h
9186
9187 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
9188
9189         * as/Makefile: new EXEEXT
9190         * as/z80/Makefile: remove trailing slash of BUILDIR
9191         * as/z80/clean.mk: new EXEEXT
9192         * Makefile.common.in: add to CFLAGS (and others), don't replace it
9193         * support/cpp2/Makefile.in: new EXEEXT
9194         * src/pic/glue.c (pic14emitRegularMap): fixed warning
9195
9196 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
9197
9198         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
9199         EXEEXT was introduced to fix all related problems with targets
9200         "clean", "install" and "uninstall"; a couple of further flaws
9201         especially with "clean" have been fixed too
9202         * as/mcs51/Makefile.in
9203         * as/mcs51/clean.mk
9204         * as/z80/Makefile
9205         * Makefile
9206         * clean.mk
9207         * debugger/mcs51/Makefile.in
9208         * debugger/mcs51/clean.mk
9209         * link/z80/Makefile
9210         * link/z80/Makefile.in
9211         * link/z80/clean.mk
9212         * link/Makefile
9213         * packihx/Makefile.in
9214         * packihx/clean.mk
9215         * sim/ucsim/Makefile
9216         * sim/ucsim/clean.mk
9217         * sim/ucsim/avr.src/Makefile.in
9218         * sim/ucsim/avr.src/clean.mk
9219         * sim/ucsim/s51.src/Makefile.in
9220         * sim/ucsim/s51.src/clean.mk
9221         * sim/ucsim/xa.src/Makefile.in
9222         * sim/ucsim/xa.src/clean.mk
9223         * sim/ucsim/z80.src/Makefile.in
9224         * sim/ucsim/z80.src/clean.mk
9225         * sim/ucsim/main_in.mk
9226         * sim/ucsim/packages_in.mk
9227         * sim/ucsim/gui.src/Makefile.in
9228         * sim/ucsim/gui.src/serio.src/Makefile.in
9229         * sim/ucsim/gui.src/serio.src/clean.mk
9230         * src/Makefile.in
9231         * src/clean.mk
9232         * support/cpp2/Makefile.in
9233         * support/cpp2/clean.mk
9234         * support/makebin/Makefile
9235         * support/makebin/clean.mk
9236         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
9237         * doc/sdccman.lyx: --program-suffix no longer needed
9238
9239 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
9240
9241          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
9242          Martin Helmling added support for ddd GUI debugger.
9243          Code added to display assembly, set variables, and other commands
9244          to interface to ddd.
9245
9246 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
9247
9248         * as/Makefile: fix target clean
9249         * as/clean.mk: fix target clean
9250         * as/z80/clean.mk: fix target clean
9251
9252 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
9253
9254         * Makefile.common.in: added  AT EXEEXT AT
9255         * configure.in: removed all mingw32 stuff
9256         * configure: rebuilt from configure.in
9257         * doc/sdccman.lyx: updated section "installation"
9258         * support/scripts/sdcc_mingw32: adapted to configure
9259         * support/scripts/sdcc_cygwin_mingw32: added
9260
9261 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
9262
9263         * src/pic Added object file support for the PIC port
9264         * src/pic Applied patch from Craig Franklin (this started the object file support)
9265         * src/regression Updated the PIC regression tests for object files
9266
9267 2003-04-20  Borut Razem <borut.razem AT siol.net>
9268
9269         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
9270           lklex.c: In function `getfid':
9271           lklex.c:203: warning: array subscript has type `char'
9272         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
9273           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
9274         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
9275           stack handling macros
9276
9277 2003-04-19  Borut Razem <borut.razem AT siol.net>
9278
9279         * "handling space characters in file path" task:
9280         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
9281         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
9282         * support/Util/MySystem.h: make it self-sufficient
9283         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
9284           src/z80/main.c, sdcc/as/mcs51/lklex.c:
9285           handling space characters in file path
9286         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
9287           (it will be used by assemblers, which have their own includes, e.g. gpasm)
9288         * support/Util/MySystem.c: handling space characters in executable's path
9289
9290 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
9291
9292         * as/z80/Makefile: fix permanent rebuild of z80
9293         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
9294         * support/regression/tests/bitfields.c: added Johan's bitfields.c
9295
9296 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
9297
9298         * src/SDCCopt.c: add special case optimization to replace modulo by
9299           a power of two with a bitwise AND.
9300
9301 2003-04-18    <johan AT balder>
9302
9303         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
9304
9305 2003-04-17    <johan AT balder>
9306
9307         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
9308         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
9309
9310 2003-04-13  Borut Razem <borut.razem AT siol.net>
9311
9312         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
9313         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
9314           fixed mingw problem in adl_NORMALIZE_PATH
9315
9316 2003-04-12  Borut Razem <borut.razem AT siol.net>
9317
9318         * fixed "#pragma SAVE/RESTORE can not be nested":
9319         * src/SDCC.lex: reworked pragma handling functions
9320         * sdcc/src/SDCCglobl.h: reworked stack handling macros
9321         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
9322
9323 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9324
9325         * src/SDCCutil.c (pathEquivalent): defined but not used
9326         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
9327         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
9328         * configure: rebuilt from configure.in
9329         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9330         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9331         * device/include/Makefile.in: replace sdcc_datadir
9332         * device/lib/Makefile.in: replace sdcc_datadir
9333         * Makefile.common.in: add LDFLAGS from configure
9334         * packihx/Makefile.in: use LDFLAGS
9335         * src/Makefile.in: use LDFLAGS
9336         * support/cpp2/Makefile.in: add LDFLAGS from configure
9337         * support/makebin/Makefile: use LDFLAGS
9338         * .version: bumped version number to 2.3.5
9339
9340 2003-04-12  Borut Razem <borut.razem AT siol.net>
9341
9342         * completed "different paths" task:
9343         * src/SDCCmacro.c: fixed bug in handling quotes
9344         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
9345         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
9346
9347 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9348
9349         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
9350
9351 2003-04-11 kevin Vigor <kevin AT vigor.nu>
9352
9353         * ds390/gen.c ds390/peeph.def: fix bug 706781
9354
9355 2003-04-11  Borut Razem <borut.razem AT siol.net>
9356
9357         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
9358
9359 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
9360
9361         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
9362         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
9363          set - this bit used to not be set...).
9364         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
9365           bad code in PIC Port
9366         * src/regression/and2.c added to test bug 609268
9367         * src/regression/Makefile added and2.c to regression test
9368
9369
9370 2003-04-08    <johan AT CP255758-A>
9371
9372         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
9373         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
9374         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
9375
9376 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
9377
9378         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
9379         fix bug #487815
9380         * support/cpp2/Makefile.in: fix bug #487815
9381         * configure: rebuilt from configure.in
9382         * Makefile.common.in: docdir changed, new path suffixes
9383         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9384         * sdcc_vc_in.h: reflect changes from sdccconf.h
9385         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
9386         * src/SDCCutil.h: remove BINDIR hack
9387         * doc/sdccman.lyx: update new path hierarchy
9388
9389 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9390
9391         * src/SDCCpeeph.c: added okToRemoveSLOC test
9392
9393 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9394
9395         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
9396
9397 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9398
9399         * src/SDCCpeeph.c: added labelIsReturnOnly test
9400         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
9401
9402 2003-04-05    <johan AT balder>
9403
9404         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
9405         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
9406         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
9407         * src/SDCCast.c: fixed a warning
9408         * src/SDCCast.h: fixed a warning
9409         * src/SDCCicode.c (operandFromAst): fixed a warning
9410
9411 2003-04-04    <johan AT balder>
9412
9413         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
9414         * src/SDCCast.c (decorateType): fixed bug #715076
9415         * src/SDCC.y: fixed bug #702907
9416
9417 2003-04-03    <johan AT balder>
9418
9419         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
9420         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
9421         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
9422         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
9423         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
9424
9425 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
9426
9427         * _decdptr.c: fix return values
9428         * _gptrget.c: fix return values
9429         * _gptrgetc.c: fix return values
9430         * _gptrput.c: fix return values
9431         * _mulint.c: fix return values
9432         * as/z80/Makefile: fix 'make -j' problem
9433
9434 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
9435
9436         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
9437         * configure.in: big cleanup, updated to autoconf 2.5x
9438         * configure: rebuilt from configure.in
9439         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9440         * sdcc_vc_in.h: reflect changes from sdccconf.h
9441         * doc/Makefile: fixed a flaw in "make install"
9442
9443 2003-04-02    <johan AT balder>
9444
9445         * src/ds390/gen.c (genCmp): no comments
9446         * src/mcs51/gen.c (genCmp): no comments
9447         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
9448         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
9449
9450 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
9451
9452         * support/regression/generate-cases.py: place generated file in given sub directory
9453         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
9454         * support/regression/Makefile: improvements for 'make -j';
9455         side effect: it's simpler and faster now
9456
9457 2003-03-31  Borut Razem <borut.razem AT siol.net>
9458
9459         * src/z80/main.c: link-{port} and as-{port} defined without path
9460         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
9461
9462 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
9463
9464         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
9465
9466 2003-03-30  Borut Razem <borut.razem AT siol.net>
9467
9468         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
9469           changed type of list parameter to set
9470         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
9471         * src/port.h: changed type of do_assemble() parameter to set
9472         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
9473           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
9474           definition of "cppoutfilename" macro with NULL value in preProcess()
9475         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
9476         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
9477         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
9478           replaced with set *binPathSet
9479         * shash_add() deallocates the item, if allready exsists, before adding the new one
9480         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
9481
9482 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
9483
9484         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
9485           a nested for loop bug in the PIC port
9486         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
9487           for loops
9488
9489 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
9490
9491         * support/Util/dbuf.h: remove C++ stuff to make it portable
9492
9493 2003-03-28  Borut Razem <borut.razem AT siol.net>
9494
9495         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
9496           literal strings in stringLiteral()
9497         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
9498         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
9499           to the project
9500
9501 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
9502
9503         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
9504
9505 2003-03-26    <johan AT balder>
9506
9507         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
9508         * src/ds390/gen.c (saveRegisters): catched symbol abuse
9509         * src/SDCCast.c (decorateType): fixed " -v < 3"
9510
9511 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
9512
9513         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
9514         Added Lenny Story's debug infrastructure changes:
9515         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
9516         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
9517         * src/cdbFile.c: added
9518         * src/SDCCdebug.c: added
9519         * src/SDCCdebug.h: added
9520         * src/SDCCast.c (createFunction)
9521         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
9522         * src/SDCCmain.c (parseCmdLine, main)
9523         * src/SDCCmem.c (redoStackOffsets)
9524         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
9525         * src/SDCCsymt.h
9526         * src/common.h
9527         * src/avr/gen.c (genAVRCode)
9528         * src/ds390/gen.c (gen390Code)
9529         * src/mcs51/gen.c (gen51Code)
9530         * src/pic/gen.c (genpic14Code)
9531         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
9532         * src/xa51/gen.c (genXA51Code)
9533         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
9534
9535 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9536
9537         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
9538         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
9539
9540 2003-03-22    <johan AT balder>
9541
9542         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
9543
9544 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
9545
9546         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
9547         * doc/cdbfileformat.lyx: added, written by Lenny Story
9548         * doc/Makefile: added cdbfileformat.lyx
9549         * doc/clean.mk: added cdbfileformat.lyx
9550
9551 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
9552
9553         * src/mcs51/peeph.def: fix bug #705773
9554
9555 2003-03-20    <johan AT balder>
9556
9557         An sfr/sbit can have an "at #" AND an initializer
9558         * src/SDCCsymt.c (checkSClass):
9559         * src/SDCCmem.c (allocGlobal):
9560         * src/SDCCmem.c (allocLocal):
9561         * src/SDCCast.c (createBlock):
9562
9563 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
9564
9565         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
9566
9567 2003-03-16    <johan AT balder>
9568
9569         Undid the hackup of const and volatile, the problem is much bigger
9570         * src/SDCC.y:1.65
9571         * src/SDCCast.c:1.171
9572         * src/SDCCglue.c:1.138
9573         * src/SDCCicode.c:1.146
9574         * src/SDCCsymt.c:1.150
9575         * src/SDCCval.c:1.65
9576
9577 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
9578
9579         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
9580         * src/ds390/gen.c (genAddrOf): fixed bug #704087
9581
9582 2003-03-13    <johan AT balder>
9583
9584         Hackup const and volatile modifiers in type chains a bit:
9585         * src/SDCC.y:1.63
9586         * src/SDCCast.c:1.169
9587         * src/SDCCglue.c:1.136
9588         * src/SDCCicode.c:1.143
9589         * src/SDCCsymt.c1.146
9590         * src/SDCCsymt.h1.59
9591         * src/SDCCval.c:1.63
9592
9593 2003-03-12    <johan AT balder>
9594
9595         * src/SDCCBBlock.h: more LRH debugging junk
9596         * src/SDCCcflow.h: more LRH debugging junk
9597         * src/SDCCloop.c: more LRH debugging junk
9598         * src/SDCC.y (struct_declaration): fixed bug #697590
9599         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
9600         * src/ds390/gen.c (aopForRemat): fixed bug #700031
9601         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
9602
9603 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9604         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
9605         test function names must now match exactly).
9606         * src/SDCCcse.c: added special case in findCheaperOp to allow
9607         extending a short integer. Makes less awful code for bug 700121 test case.
9608
9609 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9610
9611         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
9612         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
9613
9614 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9615
9616         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
9617         actually called (operandsNotEqual() was called for all
9618         operandsNotEqualX tests).
9619
9620 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9621
9622         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
9623         with shorter literals. Fixes bug 700121.
9624
9625 2003-03-11    <johan AT balder>
9626
9627         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
9628
9629 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
9630
9631         * src/SDCCloop.c (mergeRegions): an evil beast is dead
9632         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
9633
9634 2003-03-10  Borut Razem <borut.razem AT siol.net>
9635
9636         * src/SDCCmain.c: pipe preprocessor's output
9637         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9638         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9639         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9640         which closes all pipes in pipeSet set
9641         * src/SDCCset.c: free deleted item in function deleteSetItem()
9642         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9643         moved from z80 to src subproject
9644         * .version: increased version number to 2.3.4
9645
9646 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
9647
9648         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
9649         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
9650         * support/regression/ports/xa51/spec.mk: fix typo
9651
9652 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
9653
9654         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
9655
9656 2003-03-09  Borut Razem <borut.razem AT siol.net>
9657
9658         * src/SDCCmain.c: pipe preprocessor's output
9659         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9660         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9661         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9662         which closes all pipes in pipeSet set
9663         * src/SDCCset.c: free deleted item in function deleteSetItem()
9664         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9665         moved from z80 to src subproject
9666
9667 2003-03-09  Borut Razem <borut.razem AT siol.net>
9668
9669         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
9670         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
9671         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
9672         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
9673         * src/SDCCglobl.h: unification of WIN32 native definitions
9674
9675 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9676
9677         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
9678
9679 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9680
9681         * src/configure.in:   check for endianess (even while cross-compiling)
9682         * src/configure:      check for endianess (even while cross-compiling)
9683         * src/configure_in.h: check for endianess (even while cross-compiling)
9684         * src/avr/gen.c:        remove old endianess stuff
9685         * src/mcs51/gen.c:      remove old endianess stuff
9686         * src/ds390/gen.c:      remove old endianess stuff
9687         * src/pic/gen.c:        remove old endianess stuff
9688         * src/pic/genarith.c:   remove old endianess stuff
9689         * src/pic/glue.c:       fix endianess check
9690         * src/pic16/gen.c:      remove old endianess stuff
9691         * src/pic16/genarith.c: remove old endianess stuff
9692         * src/pic16/glue.c:     fix endianess check
9693         * src/xa51/gen.c:       remove old endianess stuff
9694         * src/z80/gen.c:        fix endianess check
9695         * src/SDCCglue.c:       fix endianess check
9696         * src/ds390/peeph.def: fix bug 700036
9697
9698 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9699
9700         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
9701         * src/configure: find appropriate data-types on host for SDCC's int and long
9702         * src/configure.in: find appropriate data-types on host for SDCC's int and long
9703         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
9704         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
9705
9706 2003-03-07    <johan AT balder>
9707
9708         Just a big NOOP:
9709                 some minor cleanups before the big shot
9710                 OP_DEFS and OP_USES now use Kevin's protection
9711                 new option --nolabelopt
9712
9713         * src/SDCCBBlock.c:
9714         * src/SDCCast.c,:
9715         * src/SDCCcflow.c:
9716         * src/SDCCcse.c:
9717         * src/SDCCicode.c:
9718         * src/SDCCicode.h:
9719         * src/SDCClabel.c:
9720         * src/SDCCloop.c:
9721         * src/SDCCmain.c:
9722         * src/ds390/ralloc.c:
9723         * src/mcs51/ralloc.c:
9724         * src/pic/ralloc.c:
9725         * src/xa51/ralloc.c:
9726         * src/z80/ralloc.c:
9727
9728 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
9729
9730         * src/pic/pcode.c (get_op): fix 64 bit warnings
9731         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
9732         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
9733         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
9734         * support/regression/tests/malloc.c: fix 64 bit warnings
9735
9736 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
9737
9738         * src/mcs51/gen.c (genMinus): fixed bug 696436
9739
9740 2003-03-02  Borut Razem <borut.razem AT siol.net>
9741
9742         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
9743
9744 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
9745
9746         * configure.in: test for mkstemp
9747         * sdccconf_in.h: add HAVE_MKSTEMP
9748
9749 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
9750
9751         * device/include/ctype.h: removed warning while using --stack-auto
9752         * device/include/malloc.h: removed warning while using --stack-auto
9753         * device/include/string.h: removed warning while using --stack-auto
9754
9755 2003-02-23  Borut Razem <borut.razem AT siol.net>
9756
9757         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
9758         because NDEBUG is defined (see man assert)
9759         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
9760
9761 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9762
9763         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
9764         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
9765
9766 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9767
9768         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
9769         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
9770
9771 2003-02-18    <johan AT balder>
9772
9773         * as/mcs51/asmain.c (asmbl): module can start with a digit
9774         * as/z80/asmain.c (asmbl): module can start with a digit
9775
9776 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
9777
9778         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
9779         * src/asm.c: fix pipe() for Mingw32
9780
9781 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
9782
9783         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
9784         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
9785         make -V work again; --c1mode reads now from stdin
9786         * doc/sdccman.lyx: added --c1mode
9787         * support/Util/SDCCerr.c: new messages for c1 mode
9788         * support/Util/SDCCerr.h: new messages for c1 mode
9789         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
9790
9791 2003-02-15    <johan AT balder>
9792
9793         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
9794
9795 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
9796
9797         * doc/sdccman.lyx: Environment variables, -o and other minor things
9798
9799 2003-02-14    <johan AT balder>
9800
9801         * src/xa51/main.c: before anyone really tries to use it :)
9802
9803         * Install doc's in share/sdcc/doc
9804         * removed some obsolete files
9805         * Do a proper make distclean and uninstall
9806         M Makefile.common.in
9807         R sdccbuild.sh
9808         M as/Makefile
9809         M device/include/Makefile.in
9810         M device/lib/Makefile.in
9811         M doc/sdccman.lyx
9812         M link/Makefile
9813         M sim/ucsim/doc/Makefile.in
9814         M src/clean.mk
9815         R src/avr/peeph.rul
9816         R src/xa51/peeph.rul
9817         M support/cpp2/Makefile.in
9818         M support/makebin/Makefile
9819
9820
9821 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
9822
9823         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
9824
9825 2003-02-10  Borut Razem <borut.razem AT siol.net>
9826
9827         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
9828         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
9829         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
9830         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
9831         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
9832         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
9833         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
9834         src/z80/Makefile.bcc: Borland Makefile cleanup
9835         * as/z80/Makefile.bcc: Added Borland Makefile
9836         * support/cpp2/borland.h: Removed
9837
9838 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
9839
9840         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
9841         * src/SDCC.lex: new pragma NOIV
9842         * src/SDCCglobl.h: new pragma NOIV
9843         * src/SDCCmem.c: new pragma NOIV
9844
9845 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9846
9847         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
9848
9849 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9850
9851         * src/SDCCmain.c: signal handling is switched off by --debug
9852         * doc/Makefile: small fix for install; use clean.mk again
9853         * doc/clean.mk: clean *.pdf and *.html too
9854
9855 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
9856
9857         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
9858         * device/lib/printfl.c: fix a ds390 bug by making it portable
9859         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
9860         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
9861         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
9862         * debugger/mcs51/cmd.c: converted multi-line string literals
9863         * sim/ucsim/globals.cc: converted multi-line string literals
9864         * src/SDCCmain.c: introduced signal handler to remove temp files
9865         * doc/Makefile: small tweaks, implement clean
9866         * doc: removed generated files
9867
9868 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9869
9870         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
9871         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
9872         Address Record is not correctly generated for DS390."
9873
9874 2003-02-02  Borut Razem <borut.razem AT siol.net>
9875
9876         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
9877         * as/mcs51/asm.h: fixed compilation with Borland C
9878         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
9879         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
9880         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
9881         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
9882         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
9883         src/z80/Makefile.bcc: delete $(LIB) only if exist
9884         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
9885
9886 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
9887
9888         * device/include/malloc.h: introduced NULL
9889         * device/include/string.h: introduced NULL
9890         * device/include/stdlib.h: introduced NULL
9891         * device/lib/_memcpy.c: removed NULL
9892         * device/lib/_strcat.c: removed NULL
9893         * device/lib/_strchr.c: removed NULL
9894         * device/lib/_strcmp.c: removed NULL
9895         * device/lib/_strcpy.c: removed NULL
9896         * device/lib/_strcspn.c: removed NULL
9897         * device/lib/_strlen.c: removed NULL
9898         * device/lib/_strncat.c: removed NULL
9899         * device/lib/_strncmp.c: removed NULL
9900         * device/lib/_strncpy.c: removed NULL
9901         * device/lib/_strpbrk.c: removed NULL
9902         * device/lib/_strrchr.c: removed NULL
9903         * device/lib/_strspn.c: removed NULL
9904         * device/lib/_strstr.c: removed NULL
9905         * device/lib/_strtok.c: removed NULL
9906         * device/lib/malloc.c: removed NULL, include own header
9907
9908 2003-02-02    <johan AT balder>
9909
9910         * 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
9911         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
9912         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
9913         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
9914         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
9915         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
9916
9917 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9918
9919         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
9920         area 'DATA'"
9921
9922 2003-02-01    <johan AT balder>
9923
9924         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
9925
9926 2003-01-31    <johan AT CP255758-A>
9927
9928         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
9929
9930 2003-01-30    <johan AT balder>
9931
9932         * src/SDCCBBlock.c: automatic bug detection
9933         * src/SDCCicode.c: automatic bug detection
9934
9935 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9936
9937         * src/SDCCglobl.h:   now --xram-size 0 works
9938         * src/SDCCmain.c:    now --xram-size 0 works
9939
9940 2003-01-29    <johan AT balder>
9941
9942         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
9943
9944 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9945
9946         * as/mcs51/aslink.h: Added options --xram-size and --code-size
9947         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
9948         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
9949         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
9950         * src/SDCCglobl.h:   Added options --xram-size and --code-size
9951         * src/SDCCmain.c:    Added options --xram-size and --code-size
9952
9953 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
9954
9955         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
9956         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
9957
9958 2003-01-27    <johan AT balder>
9959
9960         * src/SDCC.y: fixed bug #613764
9961
9962 2003-01-26    <johan AT balder>
9963
9964         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
9965         * src/SDCCsymt.h: fixed bug #673374
9966         * src/SDCCglue.c: fixed bug #661910
9967         * src/SDCCast.c: fixed bug #458099 and 673374
9968
9969 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
9970
9971         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
9972         * as/mcs51/strcmpi.h: added
9973         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
9974         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
9975         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
9976         * as/mcs51/assym.c: strcmpi -> as_strcmpi
9977         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
9978         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
9979         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
9980         * as/mcs51/Makefile.aslink: new module strcmpi
9981         * as/mcs51/Makefile.asx8051: new module strcmpi
9982         * as/mcs51/Makefil.bcc: new module strcmpi
9983         * as/mcs51/Makefile.in: new module strcmpi
9984         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
9985
9986 2003-01-26    <johan AT balder>
9987
9988         * src/SDCCglue.c: reverted back to 1.124
9989         * src/SDCCast.c: reverted back to 1.156
9990         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
9991
9992 2003-01-25    <johan AT balder>
9993
9994         * src/SDCCglue.c: A better fix for bug #661910
9995         * src/SDCCast.c: A better fix for bug #661910
9996         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
9997
9998 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
9999
10000         * src/Makefile.in: remove spawn.o
10001         * src/SDCCmain.c: remove spawn.h
10002         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
10003         * src/spawn.c: removed
10004         * src/spawn.h: removed
10005         * support/regression/ports/ds390/spec.mk: link with -r
10006
10007 2003-01-24    <johan AT CP255758-A>
10008
10009         * src/ds390/gen.c (aopOp): fixed bug #667458
10010         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
10011         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
10012         (createIvalCharPtr): an ival doesn't always have a storage class anymore
10013
10014 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10015
10016         * src/mcs51/peeph.def: better assembler identation by Frieder
10017         * src/mcs51/gen.c: better assembler identation by Frieder
10018
10019 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
10020
10021         * as/z80/string.h: removed for gcc 3.2
10022         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
10023         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
10024
10025 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10026
10027         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
10028         * src/SDCCpeeph.c (replaceRule): fix bug #663503
10029         * support/regression/Makefile: separate temp files for ports
10030         * support/regression/generate-cases.py: separate temp files for ports
10031         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10032         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10033
10034 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10035
10036         * moved tinitalk to device/examples/ds390
10037
10038 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
10039
10040         * as/mcs51/lkmem.c: rflag is for DS390
10041         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
10042         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
10043                          (linkEdit): move mem- and map-files the same way as ihx-files
10044         * src/z80/main.c (_setDefaultOptions): removed --generic
10045         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
10046         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
10047         * src/pic/glue.c (picglue): --c1mode works again
10048         * src/pic16/glue.c (pic16glue): --c1mode works again
10049         * src/asm.c (printCLine): fix #660034
10050
10051 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
10052
10053         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
10054         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
10055         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
10056         * as/mcs51/lkmem (summary): better fix for sp problem
10057         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
10058         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
10059         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
10060                                               remove --stack-after-data
10061
10062 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
10063
10064         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
10065         * src/SDCCutil.c (join): ugly bug: missing '\0'
10066         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
10067
10068 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10069
10070         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
10071         * src/port.h: typo
10072         * src/pic/main.c (_asmCmd): gpasm supports -o
10073         * src/z80/main.c: more general macros
10074         * device/lib/Makefile.in: remove intermediate files
10075
10076 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10077
10078         * .version: Bumped version number to 2.3.3
10079         * src/SDCCBBlock.c: new option -o
10080         * src/SDCCglobl.h: new option -o
10081         * src/SDCCglue.c: new option -o
10082         * src/SDCCmain.c: new option -o
10083         * src/asm.c: new option -o
10084         * src/ds390/main.c: new option -o
10085         * src/pic/glue.c: new option -o
10086         * src/pic/pcode.c: new option -o
10087         * src/pic/ralloc.c: new option -o
10088         * src/pic16/glue.c: new option -o
10089         * src/pic16/pcode.c: new option -o
10090         * src/pic16/ralloc.c: new option -o
10091         * src/z80/main.c: new option -o
10092         * device/lib/Makefile.in: use -o
10093         * support/regression/ports/ds390/spec.mk: use -o
10094         * support/regression/ports/gbz80/spec.mk: use -o
10095         * support/regression/ports/mcs51/spec.mk: use -o
10096         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
10097         * support/regression/ports/z80/spec.mk: use -o
10098         * support/regression/ports/ucz80/spec.mk: use -o
10099         * support/regression/ports/xa51/spec.mk: use -o
10100         * support/regression/fwk/lib/timeout.c: fix usage string
10101
10102 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
10103         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
10104
10105 2003-01-07    <johan AT balder>
10106
10107         * src/SDCCast.c (decorateType): fixed bug #600035
10108
10109 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
10110         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
10111         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
10112         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
10113         * src/pic/pcode.c: outcommented unused variable to remove warnings
10114         * src/pic/ralloc.c: outcommented unused variable to remove warnings
10115
10116 2003-01-06    <karl AT turbobit.com>
10117         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
10118    regression tests.
10119
10120 2003-01-06    <johan AT balder>
10121
10122         * src/SDCCicode.c: fixed array add
10123
10124 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
10125         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
10126         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
10127
10128 2003-01-04    <johan AT balder>
10129
10130         * src/SDCCval.c (getNelements): fixed the initialized array of structures
10131
10132 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10133         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
10134
10135 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10136         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
10137         * support/regression/tests/bug-524697.c: fit mem usage into 8032
10138
10139 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10140         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
10141
10142 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
10143         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
10144
10145 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
10146         * src/mcs51/main.c: removed {bindir}{sep} from aslink
10147
10148 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10149
10150     * in \sdcc\as\mcs51\ changed these files in order to create an
10151     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
10152     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
10153     following files to include the previous two files: aslink.dsp,
10154     Makefile.aslink, Makefile.bcc, and Makefile.in.
10155
10156     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
10157     .adb instead of .cdb
10158
10159 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10160
10161         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
10162         value from option --iram-size.
10163
10164 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10165
10166         * \sdcc\as\mcs51\lklist.c: added boundary check before using
10167         dram[] array.
10168
10169 2002-09-18    <wiml AT hhhh.org>
10170
10171         * SDCClrange.h: exposed setFromRange() and setToRange()
10172         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
10173           packRegsForAccUse() (bug 542397)
10174         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
10175           multiple times and emitting the fetch operations more than once
10176           added aopGetUsesAcc() function to allow binary operators to
10177           fetch their operands in the correct order; made genMinus() emit
10178           compact code for X = LITERAL - Y
10179
10180 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10181         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
10182         sprintf() in line 1267.
10183
10184 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10185         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
10186         like ports.
10187
10188 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10189         Changes to aslink (All the changes are marked with 'JCF'):
10190
10191         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
10192         summary().
10193
10194         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
10195         area BSEG.  Also moves, if possible, the DATA area down into the internal
10196         ram so more space is available.
10197
10198         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
10199         sflag.
10200
10201         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
10202         not bytes.  Function summary() which creates a memory usage summary
10203         file with extension .mem.  Reports of overlaping stack and small stack
10204         size.  If the space for the stack is less than 16 bytes aslink trows a
10205         warning.
10206
10207         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
10208         the 8051.  Option 'y' for memory summary output file.
10209
10210         Changes to sdcc (All the changes are marked with 'JCF'):
10211
10212         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
10213
10214         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
10215         overlaying area for it (uses RegBankUsed[4]).
10216
10217         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
10218         bank zero as used by default.  By default aslink locates the stack
10219         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
10220         the creation of the .mem file.  Delegates the allocation of data area
10221         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
10222         the begining of the stack area to aslink.
10223
10224         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
10225         glue() in SDCCglue.c creates an area for it.
10226
10227 2002-09-03  Borut Razem <borut.razem AT siol.net>
10228         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
10229         sdcc/src/pic/glue.c:
10230         introduced atexit() handler for teporay files removal in case of
10231         errors, assertions, ...
10232
10233 2002-08-29  Borut Razem <borut.razem AT siol.net>
10234         * sdcc/support/cpp2/auto-host_vc_in.h:
10235         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
10236         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
10237         Maybe there is a similar problem with BORLANDC? It should be checked!
10238
10239         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
10240         corrected improper use of assert: the assignment to clr variable was done inside the assert.
10241         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
10242         was not executed, and the compiler (cl) launched a warning:
10243         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
10244
10245 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
10246         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
10247
10248 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
10249         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
10250
10251         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10252           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
10253           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
10254           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10255           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
10256           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
10257           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
10258         - added Release configuration in VS projects
10259         - review of compiler an linker options
10260         - VC .exe files are generated in bin_vc directory, not to interfere
10261           with binaries generated from other projects (cygwin, mingw, bcc ...)
10262
10263         * sdcc/src/yacc.dsp: added
10264
10265         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
10266         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
10267         and insert the version number definitions from .version
10268
10269         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
10270
10271         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
10272         added - genarate auto-host.h using auto-host_vc_in.h as template
10273
10274         * sdcc/sdcc_vc.h,
10275         removed from CVS, generated automatically
10276
10277 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
10278         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
10279
10280 2002-08-11  Borut Razem <borut.razem AT siol.net>
10281         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
10282
10283 2002-08-10  Borut Razem <borut.razem AT siol.net>
10284         * src/SDCCmain.c (main):
10285         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
10286         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
10287         The consequence was that some temporary files were not removed.
10288
10289         * src/SDCCglue.c:
10290         unification of code in functions tempfilename() and tempfile():
10291         function tempnam() is defined in Visual Studio 6.0 and .NET
10292
10293         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
10294
10295         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10296           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
10297         - removed compiler command line option /WX: Treats all warnings as errors
10298         - update a list of source files, included into the project
10299
10300         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10301           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
10302         changed project type to Generic Project so that can be correcly converted to VS.NET project
10303
10304         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
10305
10306         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
10307
10308         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
10309
10310         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
10311         added return 0 statements after assert() to make compiler happy
10312
10313         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
10314         added newline in the def file to keep MSC compiler satisfied
10315
10316         * sdcc/src/z80/gen.c:
10317         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
10318           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
10319         - solved MSC error in function aopDump()
10320
10321         * sdcc_vc.h: define PREFIX as "\\sdcc"
10322
10323 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
10324         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
10325
10326 2002-06-22  Scott Dattalo <scott AT dattalo.com>
10327         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
10328         - Rewrote the register banking algorithm.
10329         - Added pCode live-range analysis to registers (for now, only non-used and
10330         singly-used registers optimized away)
10331
10332         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
10333
10334         * 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.
10335
10336 2002-05-10  Scott Dattalo <scott AT dattalo.com>
10337         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
10338
10339 2002-04-22  Michael Hope  <michaelh AT vroom>
10340
10341         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
10342
10343         * configure.in (DD_COPT): Added include support required for gbdk.
10344
10345         * .version: Bumped version number just to increase it.
10346
10347         * src/SDCCmain.c: Added -nostdinc to the default options.
10348
10349 2002-04-15  Michael Hope  <michaelh AT vroom>
10350
10351         * device/lib/z80/printf.c (sprintf): Added.
10352
10353         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
10354
10355         * src/z80/peeph.def: Added transpose redundent load rule.
10356
10357         * src/z80/main.c: Added force callee saves for jaune.
10358
10359         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
10360
10361         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
10362
10363 2002-03-28  Johan Knol  <johan AT balder>
10364
10365         * src/SDCCval.c: fixed bug #532436
10366
10367 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10368         * /src/port.h:
10369         Added "char *Processor" field to the port structure.
10370
10371         * /src/SDCCmain.c:
10372         Added -p option. Allows port dependent processor to be specified.
10373
10374         * all ports:
10375         Initialized the new field char *Processor field to NULL in all ports
10376
10377         * /src/pic/*:
10378         Compiler generated registers for interrupt context saving
10379         were not getting allocated.
10380
10381 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
10382
10383         * /src/SDCCast.c:
10384         Fixed left shift. Will promote the left side of a left shift
10385         if a) left shifting more than size of operand or b) when assigned
10386         to something size > size of left side
10387
10388 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10389         * src/pic/*
10390         tons of changes. Register allocation has been
10391         rewritten. Added customization for the various PICs. Flow
10392         analysis is restructured. ...
10393
10394         * src/pic/device.h:
10395         Added
10396
10397         * src/pic/device.c:
10398         Added. device.c is a PIC port hack to accomodate variations
10399         in PIC devices.
10400
10401 2002-03-13  Michael Hope  <michaelh AT vroom>
10402
10403         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
10404
10405 2002-03-04  johanknol  <johanknol AT manik>
10406
10407         * /src/SDCCval.c: fixed
10408
10409         const unsigned char arr[][2] = { { 0, 1 } };
10410         t18.c:1: error: Initializer element is not constant
10411
10412 2002-03-04  bela  <bela AT manik>
10413
10414         * /device/include/mcs51reg.h:
10415         ds89c420 register definition update
10416
10417 2002-03-03    <johan AT FRIJA>
10418
10419         * support/Util/SDCCerr.c: did something, but don't no why anymore
10420
10421         * support/regression/tests/bug-524691.c: made it a little less shy
10422
10423         * src/SDCCast.c (decorateType): fixed bug #524697
10424
10425         * src/SDCCast.c: made some lineno improvements
10426
10427         * src/SDCCval.c (getNelements): changed warning to error
10428
10429         * src/SDCCglue.c (printIvalArray): changed warning to error
10430
10431         * src/SDCCicode.c: fixed a warning for mingw
10432
10433         * src/SDCCast.c (decorateType): fixed the << promotion for ops
10434
10435         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
10436
10437 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
10438
10439         * src/ds390/peeph.def:
10440         Added some more peephole rules
10441
10442         * src/ds390/gen.c: Various fixes & enhancements
10443
10444         * src/SDCClrange.c, src/SDCClrange.h:
10445         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
10446
10447         * src/ds390/ralloc.c:
10448         various fixes & enhancements (ds390) specific
10449
10450         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
10451         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
10452         from rallocs.
10453
10454         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
10455
10456 2002-03-02    <johan AT FRIJA>
10457
10458         * src/SDCCast.c (decorateType): fixed bug #524708
10459
10460         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
10461
10462         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
10463
10464 2002-03-01  Michael Hope  <michaelh AT vroom>
10465
10466         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
10467
10468         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
10469
10470 2002-03-01    <johan AT FRIJA>
10471
10472         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
10473
10474         * src/SDCCast.c (decorateType): fixed bug #524209
10475
10476         * src/SDCCval.c (valNot): fixed bug #524195
10477
10478 2002-02-26    <johan AT balder>
10479
10480         * src/xa51/gen.c: fixed a warning
10481
10482         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
10483
10484         * src/SDCCast.c (decorateType): fixed bug #522534
10485
10486 2002-02-23    <johan AT balder>
10487
10488         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
10489
10490 2002-02-22    <johan AT balder>
10491
10492         * src/SDCCast.c: fixed bug #514865
10493
10494         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
10495
10496 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
10497
10498         * sdcc/src/SDCCloop.c:
10499         Previous fix was not good. basic blocks that have "break" or "return" are
10500         not really partof a loop , but live ranges used in these blocks should
10501         be live thru the entire loop, so set partOfLoop but don't add them to
10502         loop region
10503
10504 2002-02-21    <johan AT FRIJA>
10505
10506         * src/SDCCcse.c: fixed bug #514308
10507
10508 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
10509
10510         * src/SDCCloop.c:
10511         Fixed BUG #519583. If a conditional block ended in a return/break
10512         statement inside a loop, it was not being considered part of the loop.
10513
10514         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
10515
10516 2002-02-10  Karl Bongers <karl AT turbobit.com>
10517
10518         * debugger/*:
10519         Fixed up SDCDB debugger somewhat.  Updated debugger/README
10520         with lots of comments and notes.
10521
10522         * device/examples/test2.c:
10523         Fix bug, "red" variable not being initialized(compiler complained).
10524
10525         * device/examples/Makefile, examples/test3.c:
10526         Add Makefile in device/examples folder, compiles test3.c
10527         for use as a multiple module SDCDB test case.
10528
10529         * sim/ucsim/cmd.src/cmdset.cc:
10530         Took out debug printfs in ucsim "next" command.
10531
10532         * sim/ucsim/xa.src:
10533         Karl and Johan start ucsim XA support.  Most dissassembly working,
10534         about 75% emulation done(plenty of work remaining).
10535
10536         * sim/ucsim/z80.src:
10537         Add Z80 support to ucsim, add test-ucz80 regression test,
10538         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
10539         Notice z80 compiler fails on examples/test3.c/crc code.
10540
10541 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
10542
10543         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
10544         Added support for --parms-in-bank1
10545
10546         * src/ds390/peeph.def:
10547         added a few more peephole optimzations
10548
10549         * src/ds390/main.c:
10550         1) added __builtin_inp & __builtin_outp used to read in data of given length
10551            from a memory mapped port
10552         2) added __builtin_memcmp
10553         3) added __builtin_swapw swap bytes of a short
10554
10555         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
10556         1) handle multiple send & receives from register bank1
10557         2) ralloc can now allocate DPTR1 to some liveRanges
10558
10559         * src/SDCCsymt.c, src/SDCCsymt.h:
10560         changes to handle multiple sends & receives
10561
10562         * src/SDCCptropt.h:
10563         added some pointer arithmetic optimization
10564
10565         * src/SDCCptropt.c:
10566         added some pointer arithmetic optimizations but not stable yet so not
10567         called from anywhere (will get this working shortly)
10568
10569         * src/SDCCopt.c: fixed for multiple sends & receives
10570
10571         * src/SDCCmain.c:
10572         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
10573         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
10574            set preprocessor defines (depending on options)
10575
10576         * src/SDCCicode.c, src/SDCCicode.h:
10577         changes made to handle multiple sends & receives
10578
10579         * src/SDCCglobl.h:
10580         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
10581
10582         * src/SDCCcse.c, src/SDCCcse.h:
10583         added function findbackward def (to be used in upcoming optimization)
10584
10585         * src/SDCCcflow.c, src/SDCCcflow.h:
10586         added function returnAtEnd - to determine if a basic block terminates with
10587         a RETURN iCode
10588
10589         * src/SDCCast.c, src/SDCCast.h:
10590         added option parms-in-bank1
10591
10592         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
10593         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
10594         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
10595         adjusted for --parms-in-bank1 option
10596
10597         * device/include/string.h:
10598         donot redefine "reentrant" keyword
10599
10600         * device/include/ds80c390.h: Added some more SFRs
10601
10602 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
10603
10604         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
10605
10606 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
10607
10608         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
10609
10610 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
10611
10612         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
10613
10614 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
10615
10616         * Added --xram-movc option
10617
10618 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
10619
10620         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
10621
10622 2002-01-11  Johan Knol
10623
10624         * Added math lib of Jesus Calvino-Fraga
10625
10626 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
10627
10628         * src/SDCCmain.c (processFile): fix processing of ../../src.c
10629         * support/regression/Makefile: new target test-mcs51-stack-auto
10630         * support/regression/ports/mcs51-stack-auto/spec.mk: added
10631
10632 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10633
10634         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
10635
10636 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10637
10638         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
10639
10640 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
10641
10642         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
10643
10644         * src/SDCCglue.h: add definition for printIvalChar()
10645
10646 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10647
10648         * src/SDCCast.c: fix #498138 by Johan
10649
10650         * src/SDCCglue.c: fix #498138 by Johan
10651
10652 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10653
10654         * support/regression/Makefile: fix clean
10655
10656         * support/regression/ports/ds390/support.c: fix transmission of last character
10657
10658 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
10659
10660         * /sdcc/src/ds390/gen.c:
10661         a) improved computing address of stack variable
10662         b) took out some #if 0 code
10663         c) improved parmBytes adjustment
10664         d) improved genPlusIncr & genMinusIncr
10665         e) genCmp could generate bad code (when left assigned to DPTR)
10666         f) Fixed bug in hasInc
10667
10668         * /sdcc/src/ds390/ralloc.c:
10669         a) packRegsForSupport could mess up live information (Fixed)
10670         b) packRegsDPTRuse could be incorrect for left & right shift
10671
10672         * /sdcc/src/mcs51/ralloc.c:
10673         packRegsForSupport could mess up the live information (Fixed)
10674
10675         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
10676
10677         * /sdcc/src/SDCCast.c:
10678         can reverse a loop even if function call is present as long
10679         as the loop control variable is local & is not passed as parameter
10680
10681 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10682
10683         * /sdcc/ChangeLog: *** empty log message ***
10684
10685         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
10686         More builtin function additions for TININative
10687
10688         * /sdcc/src/ds390/ralloc.c:
10689         Had broken the regression testsuite
10690
10691         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
10692
10693         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
10694         Added funcattr hasStackParms will be set for reentrant functions when there
10695         are paramteres on the stack, this helps in minimizing frame pointer generation
10696         typeFromStr can handle function pointers now
10697
10698         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
10699         *** empty log message ***
10700
10701 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10702
10703         * /src/ds390/gen.c, /src/ds390/main.c:
10704         More builtin function additions for TININative
10705
10706         * /src/ds390/ralloc.c:
10707         Had broken the regression testsuite
10708
10709         * /src/SDCCast.c: Fixed a bug in dumptree
10710
10711         * /src/SDCCsymt.c, /src/SDCCsymt.h:
10712         Added funcattr hasStackParms will be set for reentrant functions when there
10713         are paramteres on the stack, this helps in minimizing frame pointer generation
10714         typeFromStr can handle function pointers now
10715
10716         * /doc/builtins.txt, /doc/TININative.txt:
10717         *** empty log message ***
10718
10719
10720 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10721
10722         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
10723         ALPHA version for -mTININative
10724
10725         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
10726         updated to reflect changes in the port structure
10727
10728         * /src/port.h:
10729         added function do_assemble (similar to do_link) if non-null this function
10730         will be called to do assembly (-mTININative) requires a multi command
10731         assembly
10732         added function genAssemblerEnd will be called to generate assembler Epilogue
10733
10734         * /src/SDCCsymt.c:
10735         added _JavaNative to debug info printing
10736
10737         * /src/SDCCmain.c: added option --tini-libid
10738         added port->do_assemble function (-mTININative) has a multi command assemble
10739
10740         * /src/SDCCglue.c: Disabled "constExpr" check
10741         added port->genAssemblerEnd function
10742
10743         * /src/SDCCglobl.h: Added option --tini-libid value
10744
10745         * /src/SDCCast.h:
10746         tookout optimizeCompare from the header (has no external references)
10747
10748         * /src/SDCCast.c: made one more function "static"
10749
10750 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
10751
10752         * src/z80/mappings.i: Added z80asm support.
10753
10754         * src/z80/main.c: Added z80asm support on --asm=z80asm
10755
10756         * src/z80/gen.c: Fixed asm portability issues.
10757
10758         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
10759
10760         * src/SDCCglue.c (printExterns): Added global/extern split.
10761
10762 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
10763
10764         * support/regression/Makefile: added test for mcs51 model large
10765
10766         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
10767
10768         * support/regression/ports/gbz80/spec.mk: added -mgbz80
10769
10770 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
10771
10772         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
10773
10774 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
10775
10776         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
10777
10778         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
10779
10780 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
10781
10782         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
10783
10784         * support/regression/tests/simplefloat.c: Port to mcs51.
10785
10786 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
10787         * support/regression/tests/bug-485362.c: Added.
10788
10789         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
10790
10791         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
10792
10793         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
10794
10795         * src/z80/gen.c (aopDump): Added a dump function.
10796
10797 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
10798         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
10799
10800         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
10801
10802         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
10803
10804         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
10805
10806         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
10807
10808         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
10809
10810         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
10811
10812         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
10813
10814         * support/regression/ports/ds390/support.c: Use tinibios.
10815
10816         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
10817
10818 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
10819
10820         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
10821         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
10822
10823         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
10824
10825         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
10826
10827 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
10828
10829         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
10830
10831         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
10832         (packRegsForIYUse): Created and optimised.
10833
10834 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10835
10836         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
10837 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
10838
10839         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
10840
10841         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
10842
10843         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
10844
10845 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10846
10847         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
10848
10849         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
10850
10851 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10852
10853         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
10854
10855         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
10856
10857         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
10858
10859 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10860
10861         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
10862         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
10863         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
10864
10865         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
10866
10867         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
10868         (genNotFloat): Added.
10869         (genUminusFloat): Added.
10870
10871         * device/lib/z80/Makefile: Added floating pt stubs.
10872
10873         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
10874
10875         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
10876
10877         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
10878
10879 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10880
10881         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
10882
10883         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
10884
10885         * sdcc/support/regression/Makefile: Add port ds390.
10886
10887         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
10888
10889         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
10890
10891         * sdcc/support/regression/ports/ds390/spec.mk: Added.
10892
10893         * sdcc/support/regression/ports/ds390/support.c: Added.
10894
10895         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
10896
10897         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
10898
10899         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
10900
10901 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
10902
10903         * device/include/malloc.h: Added z80 and gbz80 support.
10904
10905         * device/lib/gbz80/heap.s: Added.
10906
10907         * device/lib/z80/heap.s: Added.
10908
10909         * device/lib/malloc.c: Added z80 and gbz80 support.
10910
10911         * support/regression/tests/malloc.c (testMalloc): Added.
10912
10913         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
10914
10915         * support/regression/tests/bug-478094.c: Added.
10916
10917         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
10918
10919 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
10920
10921         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
10922
10923         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
10924
10925         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
10926
10927         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
10928
10929         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
10930
10931 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
10932
10933         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
10934
10935 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
10936
10937         * support/regression/tests/bug-477927.c: Added.
10938
10939         * src/z80/peeph.def: Added minor rules.
10940
10941         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
10942
10943         * src/z80/peeph.def: Added jump optimisation modification.
10944
10945 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
10946
10947         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
10948
10949 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
10950
10951         * support/regression/tests/funptrs.c: Added.
10952
10953 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
10954
10955         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
10956
10957 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
10958
10959         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
10960
10961         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
10962
10963         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
10964         (movLeft2ResultLong): Created.
10965
10966         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
10967         (joinPushes): Added.  Joins two char pushes into a word push.
10968
10969 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
10970
10971         * support/cpp2/Makefile.in (install): Added creation of dest dir.
10972
10973         * support/makebin/Makefile (install): Added creation of dest dir.
10974
10975 2001-10-24 Karl Bongers <karl AT turbobit.com>
10976
10977         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
10978
10979 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
10980
10981         * src/z80/ralloc.c: Turned off faulty pack for one use.
10982
10983         * src/z80/peeph-gbz80.def: Removed redundent restart options.
10984
10985         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
10986
10987 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
10988
10989         * support/regression/Makefile: Improved clean
10990
10991         * support/regression/ports/gbz80/spec.mk: Added clean
10992
10993         * support/regression/ports/host/spec.mk: Added clean
10994
10995         * support/regression/ports/z80/spec.mk: Added clean
10996
10997         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
10998
10999         * support/regression/ports/mcs51/timeout.c: little improvements
11000
11001 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
11002
11003         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
11004
11005         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
11006
11007         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
11008
11009 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
11010
11011         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
11012
11013         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
11014
11015 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
11016         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
11017
11018         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
11019
11020         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
11021
11022         * src/mcs51/main.c (_linkCmd): Added bin path to command.
11023
11024         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
11025
11026         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
11027
11028         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
11029
11030         * support/regression/tests/longor.c: Added.
11031
11032 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
11033
11034         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
11035
11036         * as/mcs51/aslink.h: define PATH_MAX
11037
11038         * as/mcs51/asm.h: define PATH_MAX
11039
11040         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
11041
11042         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
11043
11044         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
11045
11046         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
11047
11048         * src/SDCCglobl.h: define PATH_MAX
11049
11050         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
11051
11052         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
11053
11054 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
11055
11056         * src/z80/gen.c (gencjneshort): Fixed
11057
11058         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
11059
11060 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
11061
11062         * support/regression/tests/bug-469671.c: Added.
11063
11064         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
11065
11066 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
11067
11068         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
11069
11070         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
11071
11072 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
11073
11074         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
11075
11076         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
11077
11078         * src/device/lib/_mullong.c : removed hint: nooverlay bug
11079
11080         * src/device/lib/_divuint.c : removed hint: nooverlay bug
11081
11082         * src/device/lib/_divulong.c: removed hint: nooverlay bug
11083
11084         * src/device/lib/_moduint.c : removed hint: nooverlay bug
11085
11086         * src/device/lib/_modulong.c: removed hint: nooverlay bug
11087
11088 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
11089
11090         * 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.
11091
11092         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
11093
11094         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
11095
11096 2001-10-07    <johan AT FRIJA>
11097
11098         * device/lib/gets.c (gets): fixed the return value.
11099
11100 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
11101         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
11102
11103         * 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.
11104
11105         * 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.
11106
11107         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
11108
11109         * src/pic/gen.c: Removed Safe_strdup.
11110
11111         * configure.in: Added option to enable libgc support.
11112
11113         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
11114         (bitVectUnion): Optimised.
11115         (bitVectIntersect): Optimised.
11116         (bitVectBitsInCommon): Optimised.
11117         (bitVectCplAnd): Optimised.
11118
11119         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
11120
11121 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11122
11123         * src/SDCCmain.c: distinguish between assembler debug and plain options
11124
11125         * src/avr/main.c:   remove standard assembler options
11126
11127         * src/ds390/main.c: remove standard assembler options
11128
11129         * src/mcs51/main.c: remove standard assembler options
11130
11131         * src/port.h: removed "PENDING" comment
11132
11133 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11134
11135         * src/device/lib/_mulint.c  : new, with assember functions
11136
11137         * src/device/lib/_mullong.c : new, with assember functions
11138
11139         * src/device/lib/_divuint.c : with assember functions
11140
11141         * src/device/lib/_divsint.c : with assember functions
11142
11143         * src/device/lib/_divulong.c: with assember functions
11144
11145         * src/device/lib/_divslong.c: with assember functions
11146
11147         * src/device/lib/_moduint.c : with assember functions
11148
11149         * src/device/lib/_modsint.c : with assember functions
11150
11151         * src/device/lib/_modulong.c: with assember functions
11152
11153         * src/device/lib/_modslong.c: with assember functions
11154
11155         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
11156
11157         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
11158
11159         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
11160                                       replaced _mululong.c and _mulslong.c by _mullong.c
11161
11162 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11163
11164         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
11165
11166 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11167
11168         * src/SDCCglue.c: test, if win32api is available for MINGW
11169
11170 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11171
11172         * src/SDCCsymt.c: no more _modifier in printTypeChain()
11173         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
11174         * support/regression/ports/gbz80/spec.mk: removed GENERIC
11175         * support/regression/ports/host/spec.mk: removed GENERIC
11176         * support/regression/ports/mcs51/spec.mk: removed GENERIC
11177         * support/regression/ports/z80/spec.mk: removed GENERIC
11178
11179 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
11180
11181         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
11182
11183         * support/regression/tests/bug-467035.c: Created.
11184
11185 2001-10-01    <johan AT FRIJA>
11186
11187         * src/SDCC.y: fixed bug #466586 part 1
11188
11189 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
11190
11191         * SDCCicode.c: z80 has no generic pointers
11192         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
11193
11194 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
11195
11196         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
11197
11198 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
11199
11200         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
11201
11202         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
11203
11204 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
11205
11206         * configure.in: Fixed up so that ucsim is only configured once.
11207
11208         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
11209
11210         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
11211         (getPathDifference): As above.
11212
11213         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
11214
11215         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
11216
11217 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
11218         * .version: Updated to 2.3.1
11219
11220         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
11221         Added copyright header.
11222
11223         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
11224         (assemble): Added support for macro based assembler commands.
11225         (linkEdit): Added support for macro based linker commands.
11226         (preProcess): Changed the pre-processor to use macros.
11227         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
11228         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
11229
11230         * device/lib/z80/crt0.s: Added module name for debugging.
11231
11232 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
11233
11234         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11235
11236         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
11237
11238         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
11239
11240         * src/Makefile.in: Added SDCCmacro and SDCCutil
11241
11242 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
11243
11244         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11245
11246 2001-09-16    <johan AT FRIJA>
11247
11248         * 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.
11249
11250 2001-09-15    <johan AT FRIJA>
11251
11252         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
11253         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
11254
11255 2001-09-11    <johan AT FRIJA>
11256
11257         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
11258
11259 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
11260
11261         * support/regression/tests/bug-460444.c: Added test case.
11262
11263         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
11264         (genCast): Added justification for all of the asserts.
11265
11266 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
11267
11268         * support/regression/support.c: _xdata replaced by xdata
11269
11270         * support/regression/spec.mk: removed _generic
11271
11272 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
11273
11274         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
11275
11276         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
11277         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
11278
11279         * src/z80/peeph.def: Added a rule to optimise shift then compare.
11280
11281         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
11282
11283         * support/regression/tests/bug-460010.c: Added test case.
11284
11285         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
11286
11287 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
11288
11289         * support/regression/Makefile: inter-port-clean adjusted for mcs51
11290
11291         * support/regression/testfwk.c: removed workaround for bug #436344
11292
11293         * support/regression/tests/bp.c: use less memory with mcs51
11294
11295         * support/regression/tests/bug-441448.c: use less memory
11296
11297         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
11298
11299         * support/regression/collate-results.py: typo
11300
11301 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
11302
11303         * support/regression/tests/fetchoverlap.c: Added new test case.
11304
11305         * support/regression/tests/bp.c: Added new test case.
11306
11307         * support/regression/tests/bug-448984.c: Added new test case.
11308
11309         * support/regression/tests/pow2shifts.c: Added new test case.
11310
11311         * src/z80/gen.c: Turned off the noise it normally generates for the release.
11312         (genlshTwo): Fixed right shift for count > 8.
11313
11314         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
11315
11316 2001-09-08    <johan AT FRIJA>
11317
11318         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
11319
11320 2001-09-07    <johan AT FRIJA>
11321
11322         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
11323
11324         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
11325
11326 2001-09-06    <johan AT FRIJA>
11327
11328         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
11329         * bernhard noted me at this: "() equals to (void)" (1.38)
11330
11331 2001-09-05    <johan AT FRIJA>
11332
11333         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
11334
11335 2001-09-04    <johan AT FRIJA>
11336
11337         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
11338
11339
11340 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
11341
11342         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
11343
11344 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
11345
11346         * link/z80/aslink.h: Fixed path for PATH_MAX
11347
11348 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
11349
11350         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
11351
11352         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
11353
11354         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
11355
11356         * 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.
11357
11358 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
11359
11360         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
11361         (genCmp): Fixed up genCmp for the GB with longs.
11362
11363         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
11364
11365         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
11366
11367         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
11368
11369         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
11370
11371 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
11372
11373         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
11374
11375 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
11376
11377         * 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.
11378
11379         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
11380
11381 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
11382
11383         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
11384
11385         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
11386
11387 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
11388
11389   * sim/ucsim/configure:    little improvement of Cygwin-detection
11390   * sim/ucsim/configure.in: little improvement of Cygwin-detection
11391   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
11392   * support/regression/tests/bug-221100.c: small changes for mcs51
11393   * support/regression/tests/bug-221168.c: small changes for mcs51
11394   * support/regression/tests/bug-227710.c: small changes for mcs51
11395   * support/regression/tests/staticinit.c: small changes for mcs51
11396   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
11397   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11398   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11399
11400 $Revision$