8770133e3e61a14f00064255f7705b954e60ec3e
[fw/sdcc] / ChangeLog
1 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
2
3         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
4         (processParms): fixed bug #1247551
5         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
6         parseCmdLine, main): print version to stdout, help to stdout on
7         windows and to stderr on all the rest; exit with EXIT_FAILURE if
8         no arguments given      
9
10 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
11
12         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
13         * support/regression/tests/bug-1493710.c: added
14
15 2006-05-27 Borut Razem <borut.razem AT siol.net>
16
17         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
18           static instead auto
19         * support/regression/ports/pic16/support.c: increase stack size
20           from default 64 bytes to 128 bytes
21         * support/regression/tests/staticinit.c,
22           support/regression/tests/float.c: regression tests fully enabled
23           for pic16 port by putting the initialized data arrays into the code
24           section
25         * support/regression/ports/pic16/spec.mk: don't link default libraries.
26           This was changed by mistake in the previous version.
27
28 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
29
30         * src/pic16/gen.c (genFunction, genEndFunction): some
31         beautifications, fixed bug with falsely restoring FSR2 in large
32         stack model, thanks to Beau E. Cox for reporting the bug
33
34 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
35
36         * debugger/mcs51/break.c,
37         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
38           use %p to print pointers, made address variables unsigned
39         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
40         * debugger/mcs51/symtab.c (parseSymbol): must return something
41         * src/mcs51/gen.c (aopForSym): small optimization,
42            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
43           (freeAsmop): added missing break,
44           (aopPut): removed parameter bvolatile, determine it inside the function,
45           (saveRegisters, unsaveRegisters): small optimization,
46           (genIpush): removed pointless check,
47           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
48           replaced sprintf with SNPRINTF,
49           replaced strcpy with strncpyz,
50           updated aopPut calls,
51           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
52         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
53
54 2006-05-24 Borut Razem <borut.razem AT siol.net>
55
56         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
57           modification of test for the pic16 port, put the array to the code
58           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
59
60 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
61
62         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
63         * support/Util/pstdint.h: added
64
65 2006-05-22 Borut Razem <borut.razem AT siol.net>
66
67         * src/regression/Makefile: removed bool2.c test, added -q linker option
68         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
69           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
70           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
71           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
72           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
73           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
74           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
75           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
76           define SUPPORT_BIT_TYPES 0, removed unused bit variables
77
78 2006-05-22 Raphael Neider <rneider AT web.de>
79
80         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
81           bug #1492360 (problematic due to generic pointers, see code)
82
83 2006-05-22 Borut Razem <borut.razem AT siol.net>
84
85         * support/regression/ports/pic16/specs.mk: removed stack size linker
86           directive
87         * support/regression/tests/array.c,
88           support/regression/tests/bitopcse.c,
89           support/regression/tests/bug-908454.c,
90           support/regression/tests/malloc.c: modified for pic16 regression test
91         * support/regression/tests/bitfields.c:
92           pic16 - excluded bitfileds of size > 8
93         * support/regression/tests/bp.c: pic16 - reduced data size
94         * support/regression/tests/bug-221100.c: pic16 - reduced data size
95         * support/regression/tests/bug-460010.c:
96           pic16 - used the absolute address the fits in memory
97         * support/regression/tests/bug-716242.c:
98           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
99         * support/regression/tests/float.c:
100           pic16 - excluded - data size too big
101         * support/regression/tests/onebyte.c:
102           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
103         * support/regression/tests/shifts.c:
104           pic16 - function names probably have to differ in first X characters
105           (gpasm limitation?)
106         * support/regression/tests/staticinit.c:
107           pic16 - excluded some tests due error: no target memory available for
108           section ".idata"
109
110 2006-05-22 Borut Razem <borut.razem AT siol.net>
111
112         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
113           second try. Thanks Stas Sergeev once more.
114
115 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
116
117         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
118           (genLeftShift, genRightShift): fixed bug 1491627
119         * src/hc08/peeph.def (rules 7, 8.x): added
120         * support/regression/tests/shifts.c (ShiftLeftByParam,
121           ShiftRightByParam, testShiftByParam): added to test variable shifting
122
123 2006-05-20 Raphael Neider <rneider AT web.de>
124
125         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
126         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
127           (allocReg): add only new registers to dynAllocRegs,
128           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
129             #1489055, #1445850, and probably #1483693
130
131 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
132
133         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
134         bug in for-loop that didn't emit the last of CONFIG and ID registers
135
136 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
137
138         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
139           with offset
140         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
141           1489016, 1434401 and 1490124
142         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
143           1489016, 1434401 and 1490124
144
145 2006-05-17 Borut Razem <borut.razem AT siol.net>
146
147         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
148           thanks Stas Sergeev
149
150 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
151
152         * device/include/mcs51/P89c51RD2.h,
153         * device/include/mcs51/P89LPC901.h,
154         * device/include/mcs51/P89LPC922.h,
155         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
156
157 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
158
159         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
160         to fix missing stack pragma in compiled binary object file,
161
162 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
163
164         * support/packihx/configure.in,
165         * support/packihx/configure: removed warning, autoconf >= 2.5x can
166         determine sizeof basic types even while cross compiling
167
168 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
169
170         * src/avr/gen.c (aopop),
171         * src/ds390/gen.c (aopOp),
172         * src/hc08/gen.c (aopOp),
173         * src/mcs51/gen.c (aopop),
174         * src/pic16/gen.c (pic16_aopOp),
175         * src/pic/gen.c (aopOp),
176         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
177         if size of operand is smaller than spill location
178
179 2006-05-12 Borut Razem <borut.razem AT siol.net>
180
181         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
182           have to have CR/LF line endings even if they are checked out on *nix
183           or on WIN32 in cygwin binmode
184
185 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
186
187         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
188         * device/include/ds80c390.h: added sfr16 definitions
189         * src/ds390/gen.c,
190         * src/ds390/gen.h,
191         * src/ds390/main.c,
192         * src/ds390/ralloc.c,
193         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
194           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
195           bit returning functions
196         * support/regression/tests/sfr16.c: enabled test on ds390
197
198 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
199
200         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
201         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
202
203 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
204
205         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
206         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
207           (cl_address_space constructor): removed expensive initialization,
208           (cl_address_space::get_cell): extended for late initialization,
209           (cl_address_space::*): use late initialization,
210           (cl_address_decoder::activate): removed expensive initialization,
211           This reduced regression test running time by 25%
212
213 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
214
215         * packihx/,
216         * configure.in,
217         * configure,
218         * sdcc.dsw,
219         * Makefile.bcc,
220         * Makefile.in,
221         * support/packihx/Makefile.in,
222         * support/packihx/clean.mk,
223         * support/packihx/Makefile.bcc,
224         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
225
226 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
227
228         * src/SDCCval.c (valNot): fix for regression test failure
229           of not.c on big endian hosts
230
231 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
232
233         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
234
235 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
236
237         * device/lib/mcs51/Makefile.in: changed string comparison operator
238           to = for POSIX compliance; == is bash extension
239
240 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
241
242         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
243           kosmonaut_pirx
244
245 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
246
247         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
248         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
249         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
250         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
251         bug report #1478657,
252
253 2006-05-05 Borut Razem <borut.razem AT siol.net>
254
255         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
256           making the html
257
258 2006-05-02 Borut Razem <borut.razem AT siol.net>
259
260         * doc/Makefile.in: removed *.ind dependency since there is no rule to
261           create *.ind, which made make to fail if invoked with -j 2
262
263 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
264
265         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
266           Hubert Sack for patch 1479782
267
268 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
269
270         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
271
272 2006-05-01 Raphael Neider <rneider AT web.de>
273
274         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
275           (create_pic): store only prefix-free device name,
276           (init_pic): check for device names with "16" prefix,
277           (list_valid_pics),
278         * src/pic/device.h (struct PIC_device),
279         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
280             stored device name,
281         * device/include/pic/pic12f{635,675,629,683}.h,
282         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
283         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
284         * device/include/pic/pic16f505.h,
285         * device/lib/pic/libdev/pic16f505.c: removed
286         * device/include/pic/pic14devices.txt: added support for pic12f
287             devices, removed unsupported non 16-bit devices
288             [above changes provided by patch from Zik Saleeba]
289         * src/pic/*, src/pic16/*, device/include/pic16/*,
290           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
291
292 2006-05-01 Borut Razem <borut.razem AT siol.net>
293
294         * configure.in, configure, doc/Makefile.in:
295           sync with nightly build makefile - latex, dvipdf and dvips
296           not needed any more
297
298 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
299
300         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
301         in the library source
302
303 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
304
305         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
306
307 2006-04-28 Raphael Neider <rneider AT web.de>
308
309         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
310         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
311           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
312         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
313
314 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
315
316         * device/lib/pic/libdev/Makefile.in,
317         * device/lib/hc08/Makefile.in,
318         * device/lib/gbz80/Makefile.in,
319         * device/lib/z80/Makefile.in,
320         * device/lib/ds390/Makefile.in,
321         * device/lib/ds400/Makefile.in: added srcdir to include search path,
322         thanks to Borut for the bug report
323         * configure.in,
324         * configure: always create doc/Makefile independent from --enable-doc
325         * Makefile.in: always install from directory doc independent from
326         --enable-doc
327         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
328         removed
329         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
330         * doc/Makefile.in: install *.txt if present
331         * device/include/Makefile.in (install): added installation of pic/*.inc
332         and pic/*.txt files again, they were erroneously removed
333
334 2006-04-28 Raphael Neider <rneider AT web.de>
335
336         * src/pic/{gen.c,main.h,pcode.c},
337         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
338             concerning signedness with casts
339
340 2006-04-28 Raphael Neider <rneider AT web.de>
341
342         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
343             definition of an interrupt handler,
344         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
345             interrupt handler stuff from picglue() to separate routine,
346           (picglue): enabled definition of intr handlers in files w/o main()
347
348 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
349
350         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
351           compilation with MSVC 2005 Express Edition (VC8)
352
353 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
354
355         * device/lib/Makefile: fixed build of gbz80 lib
356
357 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
358
359         * support/regression/tests/bug-460010.c,
360         * support/regression/tests/bug-524691.c,
361         * support/regression/tests/bug-716242.c: removed conditional defines
362           that are already in testfwk.h
363
364 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
365
366         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
367           (AccAXRsh1): added, shift right by 1,
368           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
369            AccAXLrl1
370         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
371
372 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
373
374         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
375         remove cast to same type
376         * src/SDCCast.c (decorateType): fix for RFE 1475742,
377         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
378         * as/z80/Makefile,
379         * link/z80/Makefile: removed, they have moved to
380         Makefile.in files
381         * configure,
382         * configure.in: replaced duplicate message about ucsim by missing sdcpp
383         * install-sh: fix bug #1204398 by setting umask 0022
384         * device/lib/Makefile: separate build of z80 and gbz80 lib
385
386 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
387
388         Enabled VPATH feature: changed nearly all Makefiles (149 files).
389         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
390
391         One basic decision: e.g. src/clean.mk includes further files. In order
392         to make this work there are two solutions:
393         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
394           run configure on them. This way they can use
395           'include $(srcdir)/port-clean.mk'
396         - always include clean.mk by the Makefile at the same level. To avoid
397           that `make clean` tries to include and build Makefile.dep the
398           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
399           implemented, because now even `make uninstall` doesn't create
400           Makefile.in. clean.mk could be eliminated by pasting it in
401           Makefile.in.
402
403         * debugger/mcs51/Makefile.in: build own objects from library sources
404         (SLIB, SDCC) in current directory
405
406         * configure, configure.in: renamed --disable-device-lib-build in
407         --disable-device-lib; added --enable-doc, the required tools are
408         searched by configure; added result message; the toolchain for the
409         belonging ports are now only built, if the port is enabled.
410
411         * support/regression/*: all output is written in directory gen, because
412         the fwk and ports directories don't livet in the build tree using vpath
413
414         * doc/sdccman.lyx: renamed --disable-device-lib-build to
415         --disable-device-lib, added --enable-doc, added section VPATH
416
417         * sim/ucsim/configure.in,
418         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
419         z80 are enabled by default
420
421 2006-04-24 Raphael Neider <rneider AT web.de>
422
423         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
424             to config word, "pic14_"-prefixed some extern functions
425           (pic14_emitConfigWord): emit __config directive(s) if assignment to
426             config word has been found
427         * src/pic/device.h: added prototypes
428         * src/pic/pcode.c: added "pic14_"-prefix where needed
429         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
430             fixup
431         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
432             words,
433           (pic14emitRegularMap): ignore config words,
434           (pic14createInterruptVect): moved generating __config directives away
435           (picglue): have __config directives emitted
436
437 2006-04-24 Borut Razem <borut.razem AT siol.net>
438
439         * doc/Makefile: sync with nightly build makefile
440
441 2006-04-24 Raphael Neider <rneider AT web.de>
442
443         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
444             registers that have not been assigned proper liveranges,
445             fixes #1469504 and #1474602,
446           (pCodeRegOptimizeRegUsage): fixed typo in comment
447
448 2006-04-24 Borut Razem <borut.razem AT siol.net>
449
450         * device/examples/main8051.c: deleted - it was removed from CVS
451           24.mar.2000 and after that modified 18.feb.2001, so it reappered
452           after the transition to Subversion
453         * src/SDCCalloc.h: deleted - it was removed  from CVS
454           3.feb.2001 and after that modified 18.feb.2001, so it reappered
455           after the transition to Subversion
456         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
457           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
458           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
459           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
460
461 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
462
463         * as/asx8051.dsp: added mcs51/strcmpi.h
464         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
465         * as/hc08/aslink.h: updated lnksect prototype
466         * as/hc08/asm.h,
467         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
468         * as/hc08/asmain.c,
469         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
470           (newdot): handle A_ABS
471         * as/hc08/asout.c,
472         * as/mcs51/asout.c (outarea): output address
473         * as/hc08/lkaomf51.c,
474         * as/mcs51/lkaomf51.c: disabled unused array UsageType
475         * as/hc08/m08pst.c,
476         * as/mcs51/i51pst.c,
477         * as/z80/z80pst.c: "ABS" is not A_OVR
478         * as/hc08/lkarea.c (newarea): read a_addr,
479           (lnkarea): added codemap array, sort absolute areas to the front,
480            combine all GSINITx/GSFINAL,
481           (find_empty_space, allocate_space): new functions,
482           (lnksect): return next address, handle absolute sections
483         * as/mcs51/lkarea.c (newarea): read a_addr,
484           lnksect2 prototype changed,
485           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
486           (find_empty_space, allocate_space): new, factored out of lnksect2,
487           (lnksect2): return next address, handle absolute sections
488         * as/hc08/lkhead.c,
489         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
490         * as/hc08/lklibr.c (addfile, fndsym),
491         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
492           index out of range and detect both '\' and '/'
493         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
494         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
495           regression tests (ds390 cannot return bool yet)
496         * doc/sdccman.lyx: changed version number, document changed --no-peep,
497           document critical interrupts on z80, document changed SDCC define
498         * src/asm.c (_asxxxx_mapping): fixed .org directive,
499           (_a390_mapping): added .org directive
500         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
501           (genMultOneByte): fixed warnings
502         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
503           ones
504         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
505         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
506           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
507         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
508         * src/pic16/main.c: removed newReg prototype
509         * src/pic16/pcode.c,
510         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
511           warnings
512         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
513           ones
514         * src/pic16/ralloc.c
515         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
516           to fix warnings
517         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
518           from short to PIC_OPTYPE
519         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
520         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
521           optype from short to PIC_OPTYPE
522         * src/port.h: made int_size unsigned to fix warnings
523         * src/SDCC.y: fixed warning on MSVC
524         * src/SDCCicode.c (getArraySizePtr): return unsigned int
525         * src/SDCCopt.c (convertToFcall): fixed warnings
526         * src/SDCCsymt.h: removed double prototype for genSymName
527         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
528           offset int to fix warnings
529
530 2006-04-22 Borut Razem <borut.razem AT siol.net>
531
532         * doc/sdccman.lyx, */Makefile, */Makefile.in:
533           references to CVS replaced with Subversion
534
535 2006-04-21 Borut Razem <borut.razem AT siol.net>
536
537         * doc/sdccman.lyx, */Makefile, */Makefile.in:
538           references to CVS replaced with Subversion
539
540 2006-04-19 Borut Razem <borut.razem AT siol.net>
541
542         * src/version.awk: adapted for svn
543         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
544           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
545           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
546           /binutils-avr/etc/*.vi, *.jin: removed all properties
547           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
548
549 2006-04-19 Borut Razem <borut.razem AT siol.net>
550
551         * CVS to Subversion migration completed
552
553 2006-04-18 Borut Razem <borut.razem AT siol.net>
554
555         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
556           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
557
558 2006-04-17 Borut Razem <borut.razem AT siol.net>
559
560         * device/include/Makefile.in: added pic/*.inc to the installation
561
562 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
563
564         * support/regression/collate-results.py: fixed output in case of
565         a valdiag error
566         * support/regression/generate-cases.py: fixed splitting of pathnames
567         with dots
568         * as/hc08/lklibr.c (addfile),
569         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
570
571 2006-04-11 Raphael Neider <rneider AT web.de>
572
573         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
574         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
575         * src/pic16/pcode.c (assignValnums): fixed #1460578
576
577 2006-04-11 Raphael Neider <rneider AT web.de>
578
579         * device/lib/pic/libdev/*.c,
580         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
581           fixes #1468739, enables compilation in --std-c99 mode
582         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
583
584 2006-04-11 Raphael Neider <rneider AT web.de>
585
586         * src/pic/device.c (find_device): removed debug output
587           (list_valid_pics): enabled verbose listing of supported devices
588         * device/include/stdbool.h: define bool as char for pic14/16 as well
589
590 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
591
592         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
593
594 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
595
596         * .version: bumped version to 2.5.6
597         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
598
599 2006-04-06 Raphael Neider <rneider AT web.de>
600
601         * .version: bumped version to 2.5.6 (pic14 ABI changed)
602         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
603         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
604           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
605             pic14_constructAbsMap
606           (pic14printPublics): declare absolute global symbols as global
607           (pic14createInterruptVect),
608         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
609           (newReg): assume new registers unused, use correct name in
610             hashtable (reg->name instead of name), more debugLog output
611         * src/pic/device.h (PIC_device): added fields for verbose output
612         * src/pic/device.c: moved device definition to pic14devices.txt,
613             added routines for runtime parsing of pic14devices.txt,
614             added support for second config word
615         * src/pic/main.c (_process_pragma): removed #pragma maxram,
616           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
617           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
618           (_pic14_parseOptions): moved pCodeInitRegisters here
619           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
620         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
621           (pCodeInitRegisters): rewrapped comments, perpared new approach to
622             handling the pseudo stack
623         * device/lib/Makefile.in: ignore failures in objects-pic16,
624         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
625         * device/lib/pic/NEWS: document new dependency on picXXX.lib
626         * device/lib/pic/Makefile.subdir,
627         * device/lib/pic16/Makefile.subdir: improved clean rules
628         * device/lib/pic/libdev/: NEW, pic14 device libraries
629         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
630         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
631         * device/include/Makefile.in: create subdir and install pic14 headers
632         * device/include/pic/p16f_common.inc: removed unused declarations
633         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
634             PICs from inc2h.pl v1.6,
635             replaced BIT_AT macros with struct declarations
636         * device/include/pic/pic14devices.txt: definition of supported devices,
637             all above improvements contributed by Zik Saleeba, thanks
638         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
639         * support/scripts/sdcc.nsi: also install pic14 device libraries and
640             headers
641
642 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
643
644         * device/include/mcs51/c8051f410.h: added interrupt numbers,
645         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
646           thanks to Charles Olds
647
648 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
649
650         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
651
652 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
653
654         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
655         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
656         * support/regression/bug1464657.c: added, new test
657
658 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
659
660         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
661           version number
662
663 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
664
665         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
666           --no-peep and --peep-file <file> are used don't use default rules but
667           do use the <file>
668
669 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
670
671         * src/mcs51/gen.c (genCall): fixed bug 1457608
672
673 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
674
675         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
676         changes seem to cause (trigger?) problems with the build system.
677
678 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
679
680         * src/SDCCpeeph.c (operandsLiteral): new, added,
681           (callFuncByName): inserted operandsLiteral
682         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
683
684 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
685
686         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
687         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
688
689 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
690
691         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
692           implemented patch 1120823 Thanks to Willy De la Court (normal
693           interrupts need an interrupt number now if they are made critical),
694           and enabled nesting of critical functions though not for gbz80
695           (genCritical, genEndCritical): added functions
696           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
697         * src/z80/mappings.i: added "ei" to all mappings
698
699 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
700
701         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
702         submitted by the Debian SDCC maintainer Aurelien Jarno:
703         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
704         archive with gcc 4.1 on mips and wrote the patch"
705
706 2006-03-16 Raphael Neider <rneider AT web.de>
707
708         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
709           the left operand is shorter than the result (c* = lit-c* + int),
710           fixes bug #1450796
711         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
712           OP_SYMBOL
713
714 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
715
716         * src/.version: increased version number to 2.5.5
717         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
718         linking is done manually in pic16 port's _linkEdit,
719         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
720         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
721         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
722         allocate asmop as AOP_ACC,
723         (aopForRemat): added parameter 'bool result' in function declaration,
724         (pic16_aopGet): return AOP_ACC when accessing WREG,
725         (pic16_popGetTempReg): minor modification,
726         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
727         'pic16_allocWithIdx',
728         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
729         calling function in absolute addresses,
730         (genAssign): take into account AOP_ACC asmop,
731         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
732         * src/pic16/pcoderegs.c: some debug functions and lines added,
733         * src/pic16/ralloc.c (decodeRegType): added but commented out,
734         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
735         register too,
736         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
737         call to allocReg, not by manually allocating a new one,
738         (pic16_assignRegisters): now before going through the register
739         allocating functions mark all registers as free. This eliminates some
740         side effects resulting from peephole parser done earlier in the backbone
741
742 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
743
744         * src/SDCCicode.c (geniCodeLogic),
745         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
746
747 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
748
749         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
750           (genSend): bugfix, do not allocate and free twice,
751           (shiftRLong): handle partially overlapping aops
752         * support/regression/tests/bitopcse.c: fixed warning redefined idata
753
754 2006-03-08 Borut Razem <borut.razem AT siol.net>
755
756         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
757           for pic16
758
759 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
760
761         * support/regression/tests/bug1409955.c: new, added
762         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
763         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
764           (aopForSym, aopOp): increment asmop.allocated if reused,
765           (freeAsmop): decrement asmop.allocated and check for zero instead of
766           using asmop.freed,
767           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
768           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
769            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
770            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
771            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
772            genSignedRightShift, genRightShift, genDataPointerGet,
773            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
774            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
775             in reverse order from allocation,
776           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
777             added swappedLR to keep track
778         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
779           pdata & code for GCC, z80, gbz80 & hc08
780         * support/regression/tests/zeropad.c: moved defines to testfwk.h
781
782 2006-03-08 Raphael Neider <rneider AT web.de>
783
784         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
785
786 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
787
788         * device/include/mcs51/c8051f410.h: new SiLabs mcu
789         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
790         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
791
792 2006-03-06 Borut Razem <borut.razem AT siol.net>
793
794         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
795           made the linker quiet
796
797 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
798
799         * src/pic16/gen.c (genPcall): fixed bug #1443644
800         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
801         which dumps before the function entry point a data byte which represents
802         the number of the local variables used by the specified function, added
803         'xinst' for initial support for Extended Instruction Support,
804         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
805         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
806         port->fun_prefix anymore (may change later),
807         (genFunction, genEndFunction): do not store/restore local registers for
808         _main (this should take care the --main-return command line option in
809         the future),
810         (genOr): removed some legacy pic-port instructions,
811         * src/pic16/genarith.c (genAddLit): re-enabled old code because
812         performing operations with SFR's causes data to be written more than
813         once to each SFR. Perhaps SFRs should be handled in special cases...
814         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
815         pcode.h
816         * src/pic16/main.c (_process_pragma): stack bound checking did not take
817         into account for stack starting position,
818         (struct OPTIONS pic16_optionsTable): added command line argument
819         --extended or -y for Extended Instruction Support,
820         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
821         (deassignLRs): *** perhaps the most important change, old 'for' code
822         (commented out for reference), didn't account for some registers which
823         were left marked 'not free' after a pointer operation. The change
824         reduces register usage a lot in some cases
825
826 2006-03-04 Borut Razem <borut.razem AT siol.net>
827
828         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
829           _clean
830         * support/regression/tests/bug-524697.c: decreased array size for
831           mcs51 to fit into the internal RAM
832         * support/regression/Makefile.in: a little bit more verbose
833
834 2006-03-03 Borut Razem <borut.razem AT siol.net>
835
836         * support/regression/fwk/lib/testfwk.c,
837           support/regression/fwk/include/testfwk.h: introduced function
838           _prints(), nonrecursive _printn(), call _initEmu() from main()
839         * support/regression/ports/gbz80/support.asm,
840           support/regression/ports/ucz80/support.asm,
841           support/regression/ports/z80/support.asm,
842           support/regression/ports/ds390/support.c,
843           support/regression/ports/hc08/support.c,
844           support/regression/ports/host/support.c,
845           support/regression/ports/mcs51/support.c,
846           support/regression/ports/xa51/support.c: added empty _initEmu()
847           function
848         * support/regression/ports/pic16/gpsim.cmd,
849           support/regression/ports/pic16/spec.mk,
850           support/regression/ports/pic16/support.c,
851           support/regression/Makefile.in: added pic16 regression test
852
853 2006-03-01 Raphael Neider <rneider AT web.de>
854
855         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
856           genConstPointerGet): use safe way of generating MOVFF to cover
857             literals as well as registers, fixes bug #1440527
858         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
859             dereference
860           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
861             more correctly, fixes bug #1232186
862           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
863         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
864             gplink guess the correct processor in more cases, applied patch
865             from Till Riedel attached to and fixing bug #1436552
866
867 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
868
869         * support/regression/tests/array.c: added, contains check for #1434401
870         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
871
872 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
873
874         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
875         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
876         * device/include/mcs51/c8051f326.h,
877         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
878         * device/include/mcs51/c8051f000.h,
879         * device/include/mcs51/c8051f018.h,
880         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
881           PCON_IDLE,PCON_STOP and added sfr16 definitions
882
883 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
884
885         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
886           genGetWord): fixed bug 1409955
887
888 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
889
890         * device/include/hc08/mc68hc908gp32.h,
891         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
892
893 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
894
895         * src/SDCCast.c (constExprValue): return NULL if not a value
896         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
897         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
898         * support/regression/tests/bitfields.c: enabled signed bitfield for all
899
900 2006-02-13 Borut Razem <borut.razem AT siol.net>
901
902         * src/regression/ptrarg.c: added, fails due to bug #1430967
903         * src/regression/Makefile: ptrarg.c added, ...
904
905 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
906
907         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
908         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
909
910 2006-02-11 Borut Razem <borut.razem AT siol.net>
911
912         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
913           print "Processor: xxx" message to stdout only if --verbose
914
915 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
916
917         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
918         * support/regression/tests/bug1426356.c: added
919         * support/regression/tests/bitfields.c: removed 2 tests
920
921 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
922
923         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
924         * device/include/mcs51/c8051f330.h,
925         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
926           PCON_IDLE,PCON_STOP and added sfr16 definitions
927         * device/lib/_divsint.c,
928         * device/lib/_divuint.c,
929         * device/lib/_divulong.c,
930         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
931           register bank bug for small stackauto
932
933 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
934
935         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
936
937 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
938
939         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
940         * all.dsp: corrected several bin paths
941         * device/include/mcs51/c8051f120.h,
942         * device/include/mcs51/c8051f300.h,
943         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
944           to PCON_IDLE,PCON_STOP
945         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
946         * device/lib/printf_large.c (output_float): fixed bug 1388703
947         * support/regression/tests/bug1057979.c: added test for bug 1388703
948
949 2006-02-08 Raphael Neider <rneider AT web.de>
950
951         * src/pic/pcode.c (pciTRIS): fixed typo,
952           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
953           (LinkFlow): fixed handling of flows that end in a call,
954           (ReuseReg): perform safety check earlier
955         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
956             to work with flows at the beginning of a pBlock,
957             fixes #1426557 (Symbol not previously defined),
958           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
959             usage information
960           (RemoveUnusedRegisters): update register usage info
961         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
962             created, reuse existing ones instead
963         * src/pic/gen.c (genPcall): fixed #1424719
964
965 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
966
967         * link/z80/lkmain.c,
968         * link/z80/lklex.c,
969         * link/z80/lkdata.c,
970         * link/z80/aslink.h: fixed build on current cygwin:
971         replaced getline() by lk_getline()
972
973 2006-02-01 Borut Razem <borut.razem AT siol.net>
974
975         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
976           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
977           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
978           src/regression/bool1.c, src/regression/bool2.c,
979           src/regression/bool3.c, src/regression/call1.c,
980           src/regression/compare.c, src/regression/compare10.c,
981           src/regression/compare2.c, src/regression/compare3.c,
982           src/regression/compare4.c, src/regression/compare5.c,
983           src/regression/compare6.c, src/regression/compare7.c,
984           src/regression/compare8.c, src/regression/compare9.c,
985           src/regression/configword.c, src/regression/for.c,
986           src/regression/inline.c, src/regression/mult1.c,
987           src/regression/nestfor.c, src/regression/or1.c,
988           src/regression/pointer1.c, src/regression/ptrfunc.c,
989           src/regression/rotate1.c, src/regression/rotate2.c,
990           src/regression/rotate3.c, src/regression/rotate4.c,
991           src/regression/rotate5.c, src/regression/rotate6.c,
992           src/regression/rotate7.c, src/regression/string1.c,
993           src/regression/struct1.c, src/regression/sub.c,
994           src/regression/sub2.c, src/regression/switch1.c,
995           src/regression/while.c, src/regression/xor.c,
996           src/regression/create_stc, src/regression/simulate,
997           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
998           regression tests
999         * src/regression/gpsim_assert.h: added
1000
1001 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
1002
1003         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
1004         ((void (code *) (void)) 0) ();
1005         * as/hc08/aslex.c,
1006         * as/hc08/aslink.h,
1007         * as/hc08/asm.h,
1008         * as/hc08/asmain.c,
1009         * as/hc08/lkdata.c,
1010         * as/hc08/lklex.c,
1011         * as/hc08/lkmain.c,
1012         * as/mcs51/aslex.c,
1013         * as/mcs51/aslink.h,
1014         * as/mcs51/asm.h,
1015         * as/mcs51/asmain.c,
1016         * as/mcs51/lkdata.c,
1017         * as/mcs51/lklex.c,
1018         * as/mcs51/lkmain.c,
1019         * as/z80/aslex.c,
1020         * as/z80/asm.h,
1021         * as/z80/asmain.c: fixed build on current cygwin:
1022         replaced getline() by as_getline()
1023
1024 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1025
1026         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
1027         declarator in the symbol chain
1028         * src/SDCCsymt.h,
1029         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
1030         parameter list for function pointers
1031         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
1032         * support/regression/tests/bug-716242.c: added
1033
1034 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
1035
1036         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
1037         offset if possible
1038         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
1039
1040 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
1041
1042         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
1043         inifinitely recurseable, added static
1044         * support/regression/tests/bug-1408066.c: added
1045
1046 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
1047
1048         * src/SDCCicode.h,
1049         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
1050         renamed, added possibility to create "postLoopLbl"-labels
1051         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
1052         newiTempLoopHeaderLabel
1053         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
1054         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
1055         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
1056         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
1057         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
1058         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
1059         (basicInduction): fixed bug #136564, made static,
1060         (loopInduction): changed parameter of basicInduction, made static,
1061         (addPostLoopBlock): added
1062         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
1063         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
1064         findLoopEndSeq
1065         * support/regression/tests/bug-136564.c: added
1066         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
1067         --std-sdcc99 to LIBSDCCFLAGS
1068
1069 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
1070
1071         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
1072         while loop
1073         * support/regression/tests/bug-1406131.c: added
1074
1075 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
1076
1077         * src/SDCCast.c (decorateType): fix promotion of unary minus
1078         * src/SDCCsymt.c (computeType): beautified
1079         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
1080         (valUnaryPM, valComplement): fix sign and promotion,
1081         (valNot): ANSI: result type is int (SDCC: unsigned char)
1082         * support/regression/tests/uminus.c: speedup by removing superflous
1083         test case 'int'
1084         * support/regression/tests/onebyte.c: added promotion and signedness
1085         tests for unary minus
1086         * support/regressions/tests/bug-477927.c: disable warning about
1087         uninitialized variables
1088         * support/regression/tests/not.c: added
1089
1090 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
1091
1092         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
1093         * src/mcs51/gen.c (gen51Code): show final register usage after
1094         fillGaps in asm with --i-code-in-asm
1095         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
1096         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
1097         incUsed, rliveClear, adjustIChain): made static,
1098         (setFromRange): excluded because it's unused,
1099         (findPrevUseSym, markWholeLoop): added,
1100         (findPrevUse): rewritten; fixes bug 895992; now a complete search
1101         through all branches of predecessors enables sdcc to emit the warning
1102         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
1103         (rlivePoint): made static, added parameter emitWarnings which is only
1104         true during the first run out of two,
1105         (findRecursiveSucc, findRecursivePred): removed,
1106         (computeLiveRanges): made static, added parameter emitWarnings,
1107         (dumpIcRlive): added for debugging only
1108         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
1109         removed prototype of setFromRange()
1110         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
1111         in call of computeLiveRanges()
1112         * support/regression/tests/bug-895992.c: added
1113         * support/regression/tests/bug-971834.c: added
1114         * support/valdiag/tests/bug-895992.c: added
1115         * support/valdiag/tests/bug-971834.c: added
1116
1117 2005-12-18 Raphael Neider <rneider AT web.de>
1118
1119         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
1120           (genUnpackBits): improved code for direct operands,
1121           (genPackBits): improved code for literal assignment to bitfields
1122             and for direct destination operands (no FSR indirection),
1123             prevented redundant AND, fixes #1362800,
1124           (AccLsh): added parameter to disable masking of the result
1125         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
1126           skip instructions with side-effects (like incfsz),
1127           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
1128         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
1129         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
1130           fixes #1375263
1131
1132 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
1133
1134         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
1135         volatile variables as spill location
1136
1137 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
1138
1139         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
1140         replacing literals
1141         * support/regression/tests/bug-1376320.c: added
1142
1143 2005-12-08 Raphael Neider <rneider AT web.de>
1144
1145         * src/pic/device.c: renamed is_shared to pic14_is_shared
1146         * src/pic/gen.c (genIfx): re-enabled handling of sbits
1147         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
1148           (is_valid_identifier): added for above workaround
1149
1150 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
1151
1152         * device/lib/Makefile.in: fixed to enable port-specific-objects
1153         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
1154           char, thanks Hubert Sack
1155         * doc/sdccman.lyx: documented --xstack-loc,
1156           elaborated a bit more on interrupts and pitfalls,
1157           removed "setjmp/longjmp unsupported",
1158           documented some unsupported C99 features
1159         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
1160         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
1161           if, thanks Hubert Sack
1162         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
1163         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
1164           make make_library
1165         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
1166           regression tests can report resource usage (rfe 700441)
1167         * support/regression/collate-results.py: report resource usage
1168         * support/regression/ports/ds390/spec.mk,
1169         * support/regression/ports/hc08/spec.mk,
1170         * support/regression/ports/mcs51/spec.mk,
1171         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
1172         * support/regression/ports/ds390/uCsim.cmd,
1173         * support/regression/ports/hc08/uCsim.cmd,
1174         * support/regression/ports/mcs51/uCsim.cmd,
1175         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
1176         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
1177           library, use the default one
1178         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
1179           building the library
1180
1181 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1182
1183         * config.dsp: added dependency on .version and configure_vc.awk
1184         * device/include/setjmp.h: updated for --stack-auto and --xstack
1185         * device/include/mcs51/at89c51snd1c.h: corrected line endings
1186         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
1187         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
1188         * device/lib/libsdcc.lib: added _setjmp
1189         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
1190           (decorateType): fixed bug 1372851,
1191           (optimizeGetHbit): fixed warning
1192         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
1193           array initialisation
1194         * support/regression/tests/bug1057979.c: added test for bug 1358192
1195         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
1196
1197 2005-12-03 Borut Razem <borut.razem AT siol.net>
1198
1199         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
1200           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
1201
1202 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1203
1204         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
1205         createIval): implement symbol independant "flexible array member",
1206         (createIvalCharPtr): implemented flexible array initialisation with a
1207         string
1208         * src/SDCCsymt.c (copyStruct): removed,
1209         (getSize): fixed misleading comment,
1210         (getAllocSize): removed, the additional allocation size is now in
1211         sym->flexArrayLength,
1212         (checkStructFlexArray): new, syntax checks for flexible array members,
1213         (compStructSize): added syntax checks for "flexible array members"
1214         (copyStruct): removed,
1215         (copyLinkChain): removed inefficient fix for bug 770487
1216         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
1217         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
1218         symbol->flexArrayLength
1219         * src/SDCCerr.c,
1220         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
1221         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
1222         * support/regression/tests/structflexarray.c: added
1223         * support/valdiag/tests/structflexiblearray.c: added
1224
1225 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1226
1227         * src/SDCCast.c (decorateType): fixed bug 1368489
1228         * support/Util/SDCCerr.c,
1229         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
1230
1231 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1232
1233         * device/include/mcs51/at89c51snd1c.h: added file submitted by
1234           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
1235
1236 2005-11-27 Borut Razem <borut.razem AT siol.net>
1237
1238         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
1239           support/cpp2/mkdeps.h: added command line option
1240           -obj-ext=<extension> to SDCPP to define object file externion, used
1241           for generation of make dependencies (-M)
1242         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
1243
1244 2005-11-26 Borut Razem <borut.razem AT siol.net>
1245
1246         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
1247           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
1248           added pic and pic16 libraries
1249
1250 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1251
1252         * device/include/float.h: Corrected typo in prototype of __fsgt
1253
1254 2005-11-25 Borut Razem <borut.razem AT siol.net>
1255
1256         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
1257           added creation of model-mcs51-stack-auto libraries
1258
1259 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
1260
1261         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
1262         and fields-list too
1263         * src/SDCCast.c (createIvalArray): removed obsolete comment
1264
1265 2005-11-24 Borut Razem <borut.razem AT siol.net>
1266
1267         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
1268           added missing device/lib/mcs51/crt*.asm sources
1269
1270 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
1271
1272         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
1273
1274 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
1275
1276         * device/lib/_fs2schar.c,
1277         * device/lib/_fs2sint.c,
1278         * device/lib/_fs2slong.c: optimized inline asm
1279
1280 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1281
1282         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1283           Better handling of floats between -1.0 and 0.0.
1284
1285 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1286
1287         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
1288           (the missing "if"s prohibited removal of redundant labels)
1289
1290 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1291
1292         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1293           Properly convert floats between -1.0 and 0.0 to long, int, and char
1294           types (max integer value of negative floats tends to zero).
1295         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1296           Removed changes made so to work properly with floats between
1297           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
1298           and _fs2char.c
1299
1300 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1301
1302         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
1303         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
1304         (genCast) cosmetic change
1305         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
1306         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
1307         from mcs51
1308         * support/regression/tests/bitfields (testSignedBitfields): added
1309
1310 2005-11-18 Borut Razem <borut.razem AT siol.net>
1311
1312         * sdcc/device/lib/Makefile.in: remove all unnecessary files
1313         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
1314           introduced SILENT option to make building of pic16 libraries less
1315
1316 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1317
1318         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1319           Now they work properly with floats between -1.0 and 0.0
1320         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
1321
1322 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1323
1324         * src/SDCCicode.c (printOperand): added missing else
1325
1326 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1327
1328         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
1329         reformatted for better readability
1330         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
1331         signed bitfields
1332
1333 2005-11-17 Borut Razem <borut.razem AT siol.net>
1334
1335         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
1336           introduced SILENT option to make building of pic16 libraries less
1337           verbose - used for nightly snapshot build
1338         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
1339           available on Win32 platforms.
1340         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
1341           medium, large, pic and pic16
1342
1343 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1344
1345         * device/lib/printf_large.c: Temporary patch for bug 1358192:
1346           printf("%f"...) sets fraction to zero.
1347
1348 2005-11-16 Raphael Neider <rneider AT web.de>
1349
1350         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
1351           fixes #1357221
1352         * src/pic/gen.c (genIfx): implemented for CARRY bit
1353         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
1354           to generic pointers, fixes #1357332,
1355           (pic16_movLit2f): NEW,
1356           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
1357
1358 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1359
1360         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
1361
1362 2005-11-11 Raphael Neider <rneider AT web.de>
1363
1364         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
1365         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
1366           compute pointer's type from operand,
1367           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
1368           improved single bit reads, fixes bug #1353379
1369
1370 2005-11-09 Borut Razem <borut.razem AT siol.net>
1371
1372         * support/scripts/sdcc.nsi: added lib/pic to the package
1373
1374 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
1375
1376         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
1377
1378 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1379
1380         * support/regression/tests/bug1348008.c: added
1381         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
1382         * support/regression/tests/bug1337835.c: updated comment
1383
1384 2005-11-06 Borut Razem <borut.razem AT siol.net>
1385
1386         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1387           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1388           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1389           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1390           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
1391           dynamic construction of cl_error_class and derivates - 2.nd try
1392
1393 2005-11-05 Borut Razem <borut.razem AT siol.net>
1394
1395         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
1396           bug, which caused Bus Errors on sparc solaris
1397
1398 2005-11-04 Borut Razem <borut.razem AT siol.net>
1399
1400         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1401           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1402           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1403           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1404           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
1405           and derivates to resolve the initialization problem on OSX
1406
1407 2005-11-02 Borut Razem <borut.razem AT siol.net>
1408
1409         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1410           corrected typo - #include <winsock2.h>
1411
1412 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
1413
1414         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
1415           (_asxxxx_mapping): added org directive for future enhancements
1416
1417 2005-11-01 Borut Razem <borut.razem AT siol.net>
1418
1419         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1420           enabled sockets on WIN32
1421         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
1422
1423 2005-10-31 Borut Razem <borut.razem AT siol.net>
1424
1425         * support/regression/generate-cases.py: escape backslashes in {testcase}:
1426           WIN32 backslash path delimiters should be escaped when used in C strings
1427         * support/regression/tests/bitfields.c: exclude failing assertions for
1428           __CYGWIN32__ and __MINGW32__ hosts
1429
1430 2005-10-30 Borut Razem <borut.razem AT siol.net>
1431
1432         * src/SDCCutil.c: corrected double comparison typo
1433
1434 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
1435
1436         * device/lib/medium/Makefile: added for new memory model medium
1437         * device/include/asm/mcs51/features.h: updated for medium/pdata
1438         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
1439           added Multiply & Accumulate sbit's and MAC0_PAGE define
1440         * device/include/mcs51/c8051f300.h: added sfr16 definitions
1441         * device/include/mcs51/c8051f310.h: added sfr16 definitions
1442         * device/lib/_mullong.c: update for medium model
1443         * device/lib/incl.mk: added medium model
1444         * doc/sdccman.lyx: documented medium model
1445         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
1446         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
1447         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
1448         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
1449           (allocParms): set SCLS and OCLS to pdata for medium model
1450         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
1451           for pdata,
1452           (powof2): return <0 if not power of 2
1453         * src/avr/gen.c (genBitWise): use updated powof2
1454         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
1455           (shiftR2Left2Result): small optimization in setup, save acc when storing,
1456           (shiftLLeftOrResult): use B if necessary
1457         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
1458         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
1459         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
1460         * support/regression/Makefile.in: added test-mcs51-medium
1461         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
1462
1463 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1464
1465         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
1466         specifier unsigned
1467         * device/lib/time.c (mktime): fixed bug 1334315
1468
1469 2005-10-28 Raphael Neider <rneider AT web.de>
1470
1471         * device/include/pic/p16f_common.inc: added common declarations
1472         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
1473
1474 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1475
1476         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
1477           (aopPutUsesAcc): added to predict accumulator use,
1478           (assignResultValue): save acc if necessary,
1479           (genMinusDec): store result if indirectly addressed,
1480           (genDivOneByte):  save acc if necessary,
1481           (movLeft2Result): bugfix if left already in acc,
1482           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
1483             attention to accumulator use (esp. pdata),
1484           (genReceive): receive pdata correctly
1485         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
1486         * src/SDCCicode.h: added isOperandInPagedSpace prototype
1487
1488 2005-10-27 Raphael Neider <rneider AT web.de>
1489
1490         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
1491
1492 2005-10-27 Raphael Neider <rneider AT web.de>
1493
1494         * .version: changed version to 2.5.4
1495         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
1496         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
1497           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
1498             arithmetics support routines
1499         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
1500         * device/lib/Makefile.in: also create installdir for pic
1501
1502         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
1503           pic14 port as well
1504         * src/pic/device.c (dump_sfr): rewritten to delegate register
1505           placement to the linker (use `extern sym' rather than sym EQU addr),
1506           (validAddress): fixed to check last specified address
1507         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
1508           (popGetLit): truncate literal value to 8 bit,
1509           (popGet): moved assert to more appropriate place
1510           (popGetExternal): create pCode operand from and mark the according
1511             symbol as being `extern'
1512           (popGetAddr): added sanity check on immediate's offset, provide
1513             GPOINTER tag on demand
1514           (aopPut): fixed for immediates,
1515           (mov2w_op): move operand's address or contents to WREG (depending on
1516             operand type), safer variant of mov2w,
1517           (movwf,call_libraryfunc): NEW, handy abbreviations,
1518           (get_argument_pcop,get_return_val_pcop,pass_argument,
1519           get_returnvalue): interface for accessing function parameters and
1520             return values,
1521           (assignResultValuei,genRet): use new parameter/return value interface
1522           (pic14_getDataSize): back to old version handling generic pointers,
1523           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
1524             provided implementation and/or fixed old one,
1525           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
1526             calls, removed legacy 8051 reference code
1527           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
1528           (loadSignToC): NEW, move the operands sign bit to CARRY,
1529           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
1530             genRightShiftSigned, accepts negative shift counts,
1531           (setup_fsr): load FSR and adjust IRP (indirect memory access),
1532           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
1533             generic pointers, __data pointers and __code pointers,
1534           (genUnpackBits,genPackBits): rewritten to work with generic pointers
1535             and signed bitfields, limit bitfields to 8 bit,
1536           (genDataPointerGet): fixed number of bytes read,
1537           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
1538           (genPointerGet,genPointerSet): fixed handling of __code pointers,
1539             pointers to constant data are no longer assumed to point to __code
1540             space, removed invalid pointer types,
1541           (bitpatternFromVal): retrieve the PICs representation of an integer
1542             or float literal,
1543           (genDataPointerSet): fixed assigning to po_immediate operands,
1544           (genGenPointerSet): implemented as library call,
1545           (genIfx): fixed incorrect condition,
1546           (genAddrOf): limit generic pointers' addresses to 2 bytes,
1547             provide GPOINTER tag according to destination's storage class,
1548           (genCast): added code to handle casting to generic pointers, added
1549             sign-/zero extension of the result
1550           (aop_isLitLike,op_isLitLike): fixed handling of immediates
1551         * src/pic/gen.h: added macros to access IRP bit in STATUS register
1552         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
1553           extend the result
1554         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
1555           address/register resides in the shared banks
1556           (emitSymbolToFile): improved to handle global and `pinned' symbols,
1557             put all variables into separate sections (have the linker arrange
1558             them)
1559           (picglue): put init code and interrupt handlers in separate sections
1560         * src/pic/main.c: added port specific options table, modified to PORT
1561           structure to make GPOINTERs 3 byte, added pic14_options
1562           (_pic14_do_link): private linking routine (update paths to libraries,
1563             add libsdcc.lib by default)
1564         * src/pic/main.h: declare pic14_options
1565         * src/pic/pcode.c: fixed instructions i/o relations,
1566           (RegCond): reverted to correct version,
1567           (newpCodeOpLit): truncate literals to 8 bit,
1568           (genericPrint): added debug output,
1569           (getRegFromInstruction): fixed for various operand types, simplified
1570           (BuildFlow): fixed broken handling of isntructions with labels
1571           (LinkFlow): start at last instruction in flow (skip trailing comments),
1572             pass the flow on to the next instruction after CALL
1573           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
1574           (insertPCodeInstruction): fixed inserting after a skip instruction,
1575           (DoBankSelect): fixed for labeled instructions
1576           (OptimizepBlock): honor --nopeep switch
1577           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
1578         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
1579         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
1580           (pCodeOptime2pCodes): allow disabling this optimization via
1581             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
1582             but is still buggy), started implementation of a dataflow based
1583             pCode optimization (CSE + dead code elimination)
1584           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
1585         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
1586           names are independant of the stack location and therefore portable across
1587           devices
1588
1589 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1590
1591         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
1592           (selectSpil): fixed bug 1337835 by not spilling bit variables
1593         * support/regression/tests/bug1337835.c: added test for this bug
1594         * src/mcs51/peeph.def: restart after rule 3.c,
1595           addded rules 263.x to optimize loading constants
1596
1597 2005-10-26 Raphael Neider <rneider AT web.de>
1598
1599         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
1600         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
1601           (genAssign): emit warning when casting literals to generic pointer
1602             type, also applies when taking the address of a fixed variable,
1603           (genCast): improved casting to generic pointers
1604         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
1605           extern variables, added verbose error message
1606         * device/include/pic16/{string.h,errno.h}: added #pragma library c
1607
1608 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
1609
1610         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
1611         carry must be complemented too
1612         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
1613         could be emitted by genMinus
1614         * src/SDCCval.c (constVal): fixed bug 1305065
1615
1616 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
1617
1618         * src/SDCCast.c (addCast): added promotion for bit variables
1619         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
1620         promotion casts + optimisation
1621         (optimizeGetWord): fix warning 'i' might be used uninitialized
1622         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
1623         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
1624
1625 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
1626
1627         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
1628         all chars are promoted to int; promotion should be handled in SDCCast.c
1629
1630 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1631
1632         * device/lib/_strcmp.c: Fixed bug 1326457
1633
1634 2005-10-11 Raphael Neider <rneider AT web.de>
1635
1636         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
1637         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
1638
1639 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1640
1641         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
1642         * support/regression/tests/sfr16.c: added test for the sfr32 bug
1643
1644 2005-10-04 Raphael Neider <rneider AT web.de>
1645
1646         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
1647           device/lib/pic16/pics.all: added pic18f1320
1648         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
1649
1650 2005-09-30 Raphael Neider <rneider AT web.de>
1651
1652         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
1653         * src/pic16/devices.inc: NEW, provides device descriptions
1654         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
1655
1656 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1657
1658         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
1659           GETHBIT
1660
1661 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
1662
1663         * doc/sdccman.lyx: updated Highest Order Bit documentation,
1664           documented Any Order Bit, Higher Order Byte and Higher Order Word
1665         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
1666         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
1667           (optimizeGetAbit): new, to get any bit, not only the high bit,
1668           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
1669           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
1670           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
1671           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
1672             RIGHT_OP: also try GETBYTE, GETWORD optimization,
1673             GETABIT, GETBYTE, GETWORD: decorate them,
1674           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
1675           (ast_print): added GETABIT, GETBYTE, GETWORD
1676         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
1677         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
1678           (geniCodeBinary): new generic binary icode,
1679           (ast2iCode): added GETABIT, GETBYTE, GETWORD
1680         * src/port.h: updated comment for PORT.hasExtBitOp
1681         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
1682           (genGetByte): new, to get a single byte,
1683           (genGetWord): new, to get a word from a long,
1684           (gen51Code): added GETABIT, GETBYTE, GETWORD
1685         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
1686
1687 2005-09-23 Raphael Neider <rneider AT web.de>
1688
1689         * configure.in, configure: have device/lib/pic configured
1690         * device/lib/Makefile.in: added model-pic14
1691         * device/lib/clean.mk: added pic/ to clean rule
1692         * device/lib/pic: added rudimentary pic14 library providing support
1693           functions for multiplication/division/generic pointer access
1694         * src/SDCCopt.c (convilong): mark support functions as extern
1695           for pic14 port as well
1696         * src/pic/gen.c (genMult): added assertions,
1697           (genpic14Code): emit warning on unhandled iCodes
1698         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
1699         * src/pic/pcode.c (pCodeOpCopy),
1700         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
1701           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
1702           SFR_REGISTER}), made safe for future extensions
1703         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
1704           instructions even if preceeded by SKIP instructions (also remove
1705           them); removed unused code
1706         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
1707           prevents leaving parts of the structure uninitialized after copying
1708
1709 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
1710
1711         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
1712           ago by me
1713         * support/regression/tests/addsub.c: added test for the bug
1714
1715 2005-09-21 Raphael Neider <rneider AT web.de>
1716
1717         * device/include/pic16/pic18f1220.h,
1718           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
1719         * device/lib/pic16/Makefile.rules: added missing opening paren
1720         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
1721           are provided in genutils.c,
1722           (genUminusFloat,genUminus,genCmpEq): added asserts on different
1723           operand/result sizes,
1724           (genCmp): assert on NULL pointers first, then check deref'ed values
1725         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
1726           result size
1727
1728 2005-09-18 Raphael Neider <rneider AT web.de>
1729
1730         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
1731           as these are now unused,
1732           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
1733         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
1734           local, avoids uninitialized pointer dereference on r->name
1735         * src/pic16/ralloc.c (newReg): fixed indentation
1736
1737 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
1738
1739         * src/SDCCval.c (constVal): fixed bug 730366
1740         * support/Util/SDCCerr.c,
1741         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
1742
1743 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1744
1745         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
1746
1747 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
1748
1749         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
1750
1751 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1752
1753         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
1754           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1755         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
1756           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1757         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
1758         * packihx/packihx.c (hexDigit): made c unsigned char
1759         * as/mcs51/lklibr.c (fndsym),
1760         * link/z80/lkgb.c (gb),
1761         * link/z80/lklibr.c (fndsym),
1762         * link/z80/lkrloc.c (relr),
1763         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
1764         * src/SDCC.lex (checkCurrFile, process_pragma),
1765         * src/SDCCglue.c (spacesToUnderscores),
1766         * src/SDCCmain.c (setParseWithComma, processFile),
1767         * src/asm.c (tvsprintf, printCLine),
1768         * src/avr/gen.c (emitcode, aopPut),
1769         * src/ds390/gen.c (emitcode),
1770         * src/hc08/gen.c (emitcode, emitinline),
1771         * src/mcs51/gen.c (emitcode, genInline),
1772         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1773           tokenizeLineNode),
1774         * src/pic/ralloc.c (debugLog),
1775         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1776           tokenizeLineNode),
1777         * src/pic16/ralloc.c (debugLog),
1778         * src/z80/main.c (_process_pragma):
1779            made all ctype.h function calls safe
1780         * src/SDCCopt.c: include math.h for fabs
1781         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
1782           and used them throughout the code to make ctype.h function calls safe
1783         * src/ds390/main.c (asmLineNodeFromLineNode),
1784         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
1785         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
1786            unsigned char*
1787         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
1788           (newpCodeAsmDir): made ctype.h function calls safe
1789         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
1790           pic16_emitcode):  made lbp unsigned char*
1791         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
1792           (pic16_newpCodeAsmDir): made ctype.h function calls safe
1793         * src/xa51/gen.c (emitcode),
1794         * src/z80/gen.c (_emit2): made lbp unsigned char*
1795         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
1796            char*
1797
1798 2005-09-05 Raphael Neider <rneider AT web.de>
1799
1800         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
1801           access bank splitpoint
1802
1803 2005-09-05 Raphael Neider <rneider AT web.de>
1804
1805         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
1806
1807 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
1808
1809         * .version: changed to version 2.5.3
1810         * doc/sdccman.lyx: changed version to 2.5.3,
1811           documented --codeseg and --constseg and pragma codeseg and constseg,
1812           documented bit parameters (reentrant) and bit returning
1813         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
1814            currFunc->recvSize, but is this ok for all ports?
1815           (ast2iCode): result of ~ on unsigned char must be cast to int for
1816            bool to work
1817         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
1818           function pointers in bit space
1819         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
1820           (processFuncArgs): call port.reg_parm() with reentrancy info
1821         * src/port.h,
1822         * src/avr/main.c,
1823         * src/ds390/main.c,
1824         * src/hc08/main.c,
1825         * src/pic/main.c,
1826         * src/pic16/main.c,
1827         * src/xa51/main.c,
1828         * src/z80/main.c: port.reg_parm prototype extended with
1829           "bool reentrant" parameter
1830         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
1831           options.stackAuto for allocating bit register parameters
1832         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
1833           (genSend): set BitBankUsed if it is,
1834           (selectRegBank): factored out of genCall for use in genPcall,
1835           (genCall): removed redundant dtype assignmen, use selectRegBank,
1836           (genPcall): handle returning in Carry properly, save in F0 if needed,
1837           (genReceive): handle bit register parameters
1838         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
1839           (mcs51_assignRegisters): enable bit registers for all reentrant
1840            functions and don't set BitBankUsed unconditionally
1841         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
1842         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
1843         * support/regression/tests/funptrs.c: added tests for BOOL and for return
1844
1845 2005-08-27 Borut Razem <borut.razem AT siol.net>
1846
1847         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
1848         ppc-osx (Darwin) does not support -u option. It seems that it is
1849         supported only on Linux - GNU cp
1850
1851 2005-08-25 Borut Razem <borut.razem AT siol.net>
1852
1853         * sim/ucsim/gui.src/serio.src/Makefile.in,
1854           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1855           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1856           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
1857           install and strip, since the strip at /usr/ccs/bin should be used
1858           on solaris
1859
1860 2005-08-24 Borut Razem <borut.razem AT siol.net>
1861
1862         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
1863
1864 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
1865
1866         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
1867         ffffffffu
1868
1869 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
1870
1871         * as/mcs51/aslink.h: completed lkrloc.c prototypes
1872         * as/mcs51/lkmain.c (link_main): fixed warning
1873         * device/include/stdbool.h: ds390 has no advanced bit support yet
1874         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
1875         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
1876         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
1877           and updated their macros
1878         * src/SDCCval.c (constVal): updated comment for renamed b_long
1879
1880 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
1881
1882         * as/mcs51/asdata.c: changed ctype['['] to BINOP
1883         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
1884           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
1885           (oprio): set priority for '['
1886         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
1887            and adb_24_bit
1888         * as/mcs51/asm.h: added defines R_BIT and S_BIT
1889         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
1890         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
1891         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
1892           added overlayable BIT_BANK area
1893         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
1894           (summary2): explain 'T' in legenda
1895         * as/mcs51/lkrloc.c: replaced old K&R style,
1896           (relr): added R_BIT processing,
1897           (errmsg): added "Bit-addressable relocation error",
1898           (adb_bit): added for converting from byte- to bit-addressable space,
1899           (adb_24_bit): added for converting from byte- to bit-addressable space
1900         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
1901            used in reentrant functions now even as return value
1902         * device/lib/_gptrput.c (_gptrput): removed obsolete code
1903         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
1904           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
1905         * src/SDCCglobl.h: added indicator BitBankUsed
1906         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
1907            the bit registers b0-b7
1908         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
1909           (geniCodeCast): fixed bug 1263853,
1910           (geniCodeLogicAndOr): put result in bool or char,
1911           (geniCodeReceive): added parameter func for accessing the return type,
1912           (geniCodeFunctionBody): pass func to geniCodeReceive
1913         * src/SDCCmain.c: added indicator BitBankUsed
1914         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
1915         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
1916           (checkSClass): don't put automatic bool/bit on stack,
1917           (checkFunction): removed check on function cannot return bit
1918         * src/SDCCsymt.h: added newBoolLink prototype
1919         * src/mcs51/gen.c (rb1regs): added bit registers,
1920           (movc): created for assigning to carry,
1921           (pushReg, popReg): created for pushing registers,
1922           (sameRegs): check both AOP_REG and AOP_CRY types,
1923           (aopOp): handle bit registers,
1924           (aopPut): optimization no self-assign,
1925           (saveRegisters): push reg->base (bits) only once for bit registers,
1926            and use pushReg,
1927           (unsaveRegisters): pop reg->base only once and use popReg,
1928           (assignResultValue): added parameter func and return in carry for bits,
1929           (genIpush): optimization no reload in A if not changed,
1930           (genSend): bit parameters in reentrant functions are passed in bit
1931            registers by first assigning to bits in B, then save registers and
1932            copy B to bits,
1933           (genCall): handle returning in Carry properly, save it in F0 if needed,
1934           (genPcall): updated assignResultValue call, this is not safe yet for bit
1935            returning function !!!
1936           (genFunction): don't generate equ's for bit registers and use pushReg,
1937           (genEndFunction): take care of bit returning functions and use popReg,
1938           (genRet): return bit in Carry,
1939           (genIfx): optimize bit registers and other directly addressable bits,
1940           (genReceive): updated assignResultValue call
1941         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
1942           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
1943            registers when using stack-auto
1944         * src/mcs51/ralloc.c (_G): added allBitregs,
1945           (regs8051): added the bit registers,
1946           (createStackSpil): use macro IS_BIT,
1947           (getRegBit): added to allocate a bit register, else spill,
1948           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
1949           (updateRegUsage): factored out to ease stepping while debugging,
1950           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
1951            also allocate bit registers,
1952           (fillGaps): handle bit registers,
1953           (findAllBitregs): added to create bit vector with all bit registers,
1954           (mcs51_allBitregs): returns this bit vector,
1955           (mcs51_assignRegisters): when using stack-auto use bit registers for
1956            passing parameters and creating local variables
1957         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
1958
1959 2005-08-22 Borut Razem <borut.razem AT siol.net>
1960
1961         * device/lib/Makefile.in: replaced find option -or with -o
1962           to make it run on solaris
1963
1964 2005-08-22 Raphael Neider <rneider AT web.de>
1965
1966         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
1967           fixes #1265442 (crash on Solaris)
1968
1969 2005-08-20 Borut Razem <borut.razem AT siol.net>
1970
1971         * configure, configure.in: added tests for libsocket and libnsl libraries,
1972           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
1973           from support/regression/Makefile.in
1974         * support/regression/Makefile.in: added
1975         * device/lib/pic16/Makefile.common.in: force make to use bash shell
1976         * sim/ucsim/libtool: regenerated on sparc-solaris
1977         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1978           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
1979           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
1980           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
1981           sparc-solaris, which doesn't use GNU ld linker
1982         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
1983         * as/Makefile: find on sparc-solaris does not support -maxdepth option
1984
1985 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
1986
1987         * src/mcs51/peeph.def: updated comments
1988
1989 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1990
1991         * device/lib/_gptrget.c,
1992         * device/lib/_gptrput.c: slightly shorter
1993         * doc/sdccman.lyx: incremented version
1994         * src/mcs51/peeph.def: moved peephole comments to the line of first
1995           change to better keep line correlation, reanimated 186.e
1996         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
1997
1998 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
1999
2000         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
2001           David Saxton with quotes around file name.
2002
2003 2005-08-15 Borut Razem <borut.razem AT siol.net>
2004
2005         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
2006           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
2007           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
2008           make tests run on x86_64 platform
2009
2010 2005-08-13 Raphael Neider <rneider AT web.de>
2011
2012         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
2013           as it might be executed DURING a build (parallel make is wonderful)
2014
2015 2005-08-13 Raphael Neider <rneider AT web.de>
2016
2017         * device/lib/Makefile.in (port-specific-objects-pic16):
2018           revert to cp $(PORT)/bin/*.* $(PORTDIR)
2019         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
2020           dependency
2021         * device/lib/pic16/Makefile.rules: build subdirs before creating
2022           the library, removed builddir rule, create $(builddir) early in
2023           recurse rule, use empty recurse rule for leaf directories
2024         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
2025           mkdir errors (race condition), removed duplicate suffix "hex"
2026           from clean rules
2027         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
2028         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
2029           prevents mkdir -p from aborting on Alpha
2030
2031 2005-08-12 Raphael Neider <rneider AT web.de>
2032
2033         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
2034           db-statements in order to allow for arrays of pointers in code
2035           sections to be placed without interspersed 0-padding, fixes
2036           bug #1256215
2037         * (emitStatistics): fixed division by zero for pic18f1220
2038         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
2039           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
2040         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
2041         * (pic16_pCodeConstString): keep track of already emitted string
2042           literals to prevent "duplicate definitions of symbol _str_NR"
2043         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
2044           debug message
2045         * device/lib/Makefile.in: ignore failing PIC16 library builds
2046         * device/lib/pic16/Makefile: do not build if gputils are missing
2047         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
2048
2049 2005-08-10 Raphael Neider <rneider AT web.de>
2050
2051         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
2052           my last commit)
2053
2054 2005-08-10 Raphael Neider <rneider AT web.de>
2055
2056         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
2057           Rokas' patch to add the new fixed point type "__fixed16x16"
2058         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
2059           functions for __fixed16x16 arithmetics
2060         * device/lib/pic16: reimplemented the build system to support
2061           a separate build directory, better handling of libio (create
2062           the library in a separate subdir for each architecture) and
2063           easier configuration (centralized in Makefile.common)
2064
2065 2005-08-07 Raphael Neider <rneider AT web.de>
2066
2067         * src/pic16/gen.c (genrshTwo): fixed sign extension
2068         * src/pic16/device.c: added pic18f2320, 4220 and 4320
2069         * device/include/pic16/pic18f2220.h: changed some bit definitions,
2070           added T0CONbits
2071         * device/include/pic16/pic18f4220.h: NEW, header for
2072           pic18f4220 and pic18f4320
2073         * device/include/pic16/pic18fregs.h: added new devices,
2074           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
2075         * device/include/pic16/signal.h: resolved name clashes
2076           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
2077           to also allow testing for interrupt enable bits, added
2078           comments on how to use the macros
2079         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
2080         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
2081           register definitions for the devices
2082         * device/lib/pic16/pics.all: added new devices
2083         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
2084           allocated memory
2085         * device/lib/pic16/libc/stdlib/memfree: do not count
2086           the block header as free memory
2087         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
2088           simplified and added missing end-of-blocklist-marker
2089           (reported by Peter Onion, fixes #1252814)
2090         * (_mergeHeapBlock): fixed loop condition
2091         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
2092           len==0, restructured code
2093         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
2094           up a bit, reduced bitfield accesses, prevent endless loops
2095           in case of heap corruption
2096         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
2097           "unreferenced arguments/must return a value" warnings
2098         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
2099           replaced BAUDREG with SPBRG
2100         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
2101           device/lib/pic16/debug/gstack/gstack.c: replaced
2102           _naked, _asm, _endasm with __naked, __asm, __endasm
2103
2104 2005-08-05 Raphael Neider <rneider AT web.de>
2105
2106         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
2107           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
2108
2109 2005-08-05 Borut Razem <borut.razem AT siol.net>
2110
2111         * device/lib/Makefile.in: added missing ';'
2112         * configure: removed ^M characters
2113
2114 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2115
2116         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
2117           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
2118           License
2119
2120 2005-08-04 Borut Razem <borut.razem AT siol.net>
2121
2122         * configure.in: pic16 libraries build 2nd try - enable running
2123           configure in device/lib/pic16
2124         * configure: regenerated from configure.in
2125         * device/lib/Makefile.in: create $(PORT)/bin directory
2126
2127 2005-08-03 Raphael Neider <rneider AT web.de>
2128
2129         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
2130           to get/set values via pointers
2131         * (genUnpackBits,genPackBits): changed detection of
2132           ptr->bitfield vs. sym.bitfield, fixed access via generic
2133           pointers, removed dead (wrong) code for multibyte bitfields
2134         * (genNearPointerGet, genGenPointerGet): removed useless code,
2135           fixed bitfield detection, fixes #1250594
2136         * (genNearPointerSet): removed useless code
2137         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
2138           and introduced macro pic16_emitpcode that conditionally emits
2139           the origin of the following pCode (useful for debugging SDCC)
2140         * src/pic16/pcode.c: changed (and disabled) some debug outputs
2141         * (createDefmap): fixed handling of LFSR for --optimize-df
2142
2143 2005-08-02 Borut Razem <borut.razem AT siol.net>
2144
2145         * device/lib/Makefile.in: pic16 libraries build enabled since
2146           gputils-0.13.2 are now localy installed at sourceforge's compile farm
2147
2148 2005-08-02 Raphael Neider <rneider AT web.de>
2149
2150         * src/pic16/gen.c (genPackBits): removed deprecated warning
2151         * (genGenPointerSet): fixed bitfield detection
2152
2153 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2154
2155         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
2156
2157 2005-07-31 Raphael Neider <rneider AT web.de>
2158
2159         * device/lib/pic16/libdev/pic18f458.c,
2160           device/include/pic16/pic18f458.h: added missing T0CONbits
2161
2162 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
2163
2164         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
2165
2166 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
2167
2168         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
2169
2170 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2171
2172         * device/include/mcs51/at89c51ed2.h: added.
2173
2174 2005-07-23 Raphael Neider <rneider AT web.de>
2175
2176         * src/pic/gen.h: added emitpcode macro for debugging
2177         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
2178           and replace by macro adding debug information on demand
2179         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
2180         * (gencjne): tried to fix; replaced with correct (slower) code
2181         * (gen{Unp,P}ackBits): fixed single bit access
2182         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
2183         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
2184           previous instruction
2185         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
2186           register has to be handled with care (forbidding movement
2187           of assignments/uses, removing assignments completely, ...)
2188         * (pCodeOptime2pCodes): make use of regIsSpecial
2189         * added lots of debugging output (commented out)
2190         * src/pic/rallloc.c (deassignLRs): prevent operand registers
2191           from being reused as result UNLESS it is known to work
2192
2193 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2194
2195         * support/Util/dbuf.h: include <stddef.h> for size_t
2196         * .version: changed to version 2.5.2
2197
2198 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2199
2200         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
2201
2202 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2203
2204         * src/hc08/gen.c (genMinus): fixed bug #1241835,
2205           (genModOneByte): removed needless psha/pula
2206
2207 2005-07-22 Raphael Neider <rneider AT web.de>
2208
2209         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
2210           have PIC14 handled like PIC16, fixes broken pic14 linker calls
2211         * src/pic/gen.c (resolveIfx): do not "invent" labels
2212         * (genSkipc): changed to positive logic
2213         * (genSkipCond): removed as no longer needed
2214         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
2215           backport from PIC16
2216         * (genLeftShift): check operands are in different registers
2217         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
2218           INCF does not update CARRY...
2219         * src/pic/main.c: fixed _linkCmd
2220         * src/pic/pcode.c (unlinkpCode): added inactive code
2221         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
2222           alive (do not assign result and operand overlapping registers)
2223
2224 2005-07-22 Raphael Neider <rneider AT web.de>
2225
2226         * src/pic/device.c (dump_sfr): replaced register declaration with
2227           call to emitSymbolToFile() to avoid duplicate symbols
2228         * (assignRelocatableRegisters): do not declare external symbols
2229         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
2230           right (take size of type, not etype)
2231         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
2232         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
2233         * (packRegsForAccUse): disabled assignment of WREG as
2234           the result reg to prevent occurence of just fixed #1235003,
2235           fixes #1242954
2236         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
2237           symbols (avoids duplicate symbols in .asm file)
2238         * (pic14emitRegularMap): use emitSymbolToFile()
2239         * src/pic/gen.c (aopOp): fixed spillLocation handling
2240         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
2241         * (genDataPointerSet): removed unneccessary variables/output
2242
2243 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
2244
2245         * as/mcs51/lkarea.c: enlarged codemap for banked memory
2246         * device/lib/mcs51/crtbank.asm: added # to 0x0F
2247
2248 2005-07-21 Raphael Neider <rneider AT web.de>
2249
2250         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
2251           architecture cannot handle them efficiently, fixes bug #1235003
2252         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
2253           check for empty sets before using them (fixes bug #1232190)
2254
2255 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
2256
2257         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
2258           (lnksect2): generate warnings for memory overlap
2259         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
2260           constseg to set the name of these segments so you can instruct the linker
2261           to place them in banks
2262         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
2263         * src/SDCCglobl.h: added MODEL_HUGE to enum,
2264           added code_seg and const_seg to options
2265         * src/SDCCglue.c (emitMaps): use options.const_seg,
2266           (createInterruptVect): put interrupt vectors in segment HOME,
2267           (glue): put HOME before static segment and put the main glue in HOME,
2268           (glue): use options.code_seg
2269         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
2270         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
2271           these segments so you can instruct the linker to place them in banks
2272           (linkEdit): use code_loc for HOME segment which should be the first
2273           segment in code memory now
2274         * src/SDCCmem.c: fixed more stuff like bug 1238386
2275         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
2276           (changePointer): don't change function pointers to code pointers for
2277           banked functions,
2278           (compareType): added exceptional check for banked function pointers
2279         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
2280         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
2281           after static in code memory
2282         * src/mcs51/gen.c: added aopLiteralLong prototype,
2283           (aopForSym): use getSize for functions,
2284           (genCall): generate banked calls over one trampoline __sdcc_banked_call
2285           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
2286           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
2287           the segment,
2288           (genPcall): use call for literal function pointers and generate banked
2289           calls over the one trampoline so there's only one place for the user to
2290           modify according to his/hers hardware,
2291           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
2292           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
2293         * src/mcs51/main.c: added keyword banked,
2294           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
2295         * support/Util/SDCCerr.c,
2296         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
2297           needed for passing the bank and address to the trampoline
2298         * device/lib/mcs51/crtbank.asm: added for bankswitching
2299         * device/lib/mcs51/Makefile: added crtbank
2300
2301 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2302
2303         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
2304           for fields at offset 0 of a struct or union as reported
2305           on 2005-07-07 in the developer mailing list.
2306
2307 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2308
2309         * src/SDCCmem.c: fixed bug 1238386
2310
2311 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2312
2313         * src/mcs51/peeph.def: added labelrefcounting for peepholes
2314           (patch #1144962), added peephole 300, enabled 259.x
2315         * doc/sdccman.lyx: removed screenshot and provided link instead
2316
2317 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2318
2319         * doc/sdccman.lyx: added section about debugging with ddd
2320         * doc/figures/ddd_example.eps: screenshot of debugging session
2321
2322 2005-07-04 Raphael Neider <rneider AT web.de>
2323
2324         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
2325           like CODE pointers, fixes #1115683
2326         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
2327           call, fixes bugs #1232211, #1228110,
2328           fixed wrong casts to pCodeFlow from pCodeInstructions
2329
2330 2005-07-04 Raphael Neider <rneider AT web.de>
2331
2332         * src/pic/gen.c (popGet): changed assert to allow for
2333           bit operands
2334         * (popGetAddr): changed signature to provide
2335           an additional index, patched all call sites
2336         * (genCmpEq): handle literal-like operands correctly
2337         * (genAddrOf): added sanity checks on __code/__data pointers
2338         * (genAssign): added handling of symbols from __code section
2339         * (gencjne): do not generate code for comparisons whose result
2340           is neither stored nor used, fixes bug #1171114
2341         * (AccLsh, AccRsh): operate on operand instead of WREG
2342         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
2343           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
2344           by known count
2345         * rewrote complete shift-by-literal logic, commented unused
2346           functions out
2347         * (genConstPointerGet): get multiple bytes (if result size > 1),
2348           fixed handling of non-immediate addresses
2349         * (genPointerGet): handle CODE pointers like CONST pointers
2350         * (genpic14Code): insert C-SRC lines as Cource-pCodes
2351         * ({aop,op}_isLitLike): NEW, single place to decide whether an
2352           operand is to be treated as a literal or not
2353         * (mov2w,genPcall,genCmpEq),
2354           src/pic/genarith.c: use aop_isLitLike() to decide between
2355           literal/register contents
2356         * (addSign): added missing offset
2357         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
2358           only emit comment in debug-mode,
2359           use {aop,op}_isLitLike throughout the file
2360         * src/pic/glue.c: fix initializers for pointers (work in progress)
2361         * src/pic/pcode.c (get_op): honor index on _const symbols
2362         * ({reset,dump}pCodeStatistics): NEW, estimate code size
2363         * (dumppBlock): added pCode size estimation
2364         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
2365           check for IS_SYMOP before OP_SYMBOL'ing
2366         * fixed indentation, compacted switch-statements
2367         * (allocReg): find free register and allocate it instead of
2368           allocating new registers all the time
2369         * (deassignLRs): prevent POINTER_GET's from being assigned the same
2370           registers as its operands (necessary only for multibyte GETs)
2371
2372 2005-07-01 Raphael Neider <rneider AT web.de>
2373
2374         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
2375           debugging .asm-output macros FENTRY + FEXIT
2376         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
2377           way... I wonder...
2378         * (emitpComment): NEW, printf to pCode
2379         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
2380           offset handling
2381         * (popGetAddr): NEW, variant of popGet to access an immediates
2382           high(er) bytes instead of the n'th byte of memory they reference,
2383           replaced popGet with popGetAddr where neccessary
2384         * (genDataPointerGet): reactivated and fixed implementation
2385         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
2386           accesses
2387         * (genDataPointerSet): fixed multibyte assignments
2388         * (genpic14Code): fixed --i-code-in-asm handling
2389         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
2390         * (genPlus): fixed index-out-of-bounds error
2391         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
2392         * src/pic/ralloc.c: added debugging output macro FENTRY2
2393         * (spillThis): fixed indentation, enbraced for-body for clarity
2394         * (rematStr): commented out as now unused
2395         * (regTypeNum): commented out special spill case (overwrites
2396           arbitrary values)
2397         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
2398
2399 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
2400
2401         * doc/sdccman.lyx: documented sfr16/sfr32,
2402           added example for using storage class with function pointers
2403         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
2404
2405 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
2406
2407         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
2408         * device/lib/_itoa.c,
2409         * device/lib/_ltoa.c: optimized codesize
2410         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
2411           but don't know how to suppress the double warning.
2412         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
2413         * support/Util/SDCCerr.c,
2414         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
2415
2416 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
2417
2418         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
2419           fixed old K&R prototypes
2420         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
2421         * device/lib/_gptrget.c,
2422         * device/lib/_gptrgetc.c,
2423         * device/lib/_gptrput.c: changed versions for new memory indicator values,
2424           also new versions for small generic pointers and banked generic pointers
2425         * src/port.h: added const_name
2426         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
2427         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
2428         * src/SDCCcse.c (findPrevIc): check all associative operators
2429         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
2430         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
2431         * src/SDCCmem.c: updated comments,
2432           set far-space to 0 for pdata, results in optimized code
2433         * src/SDCCmem.h: added macro CONST_NAME
2434         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
2435           moving the info into the highest bits, see also gptrget/gptrput
2436         * src/src.dsp: added sdcc.ico to project files
2437         * src/avr/gen.c (genCast): fixed bug 0x%d
2438         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
2439         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
2440           relation between ptr_type and DCL_TYPE,
2441           (genCast): fixed bug 0x%d
2442         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
2443           (CODE)" for const_name
2444         * src/hc08/gen.c (genCast): fixed bug 0x%d
2445         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
2446           (hc08_port): added "CONST (CODE)" for const_name
2447         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
2448           (aopForRemat, adjustArithmeticResult): disconnected direct relation
2449           between ptr_type and DCL_TYPE,
2450           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
2451           operand* and took AOP() inside function so sfr-ness can be checked,
2452           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
2453           new prototype,
2454           (genFunction, genEndFunction): optimized stack setup,
2455           (genMinus): optimized for literals with ending zeroes (in bytes),
2456           (genCast): fixed bug 0x%d
2457         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
2458           (mcs51_port): added "CONST (CODE)" for const_name
2459         * src/mcs51/peeph.def: made rule 226 more generic
2460         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
2461         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
2462         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
2463         * src/z80/main.c (z80_port): added NULL for const_name,
2464           (gbz80_port): added NULL for const_name
2465         * support/regression/tests/bug663539.c,
2466         * support/regression/tests/sfr16.c: new tests
2467
2468 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2469
2470         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
2471
2472 2005-06-24 Raphael Neider <rneider AT web.de>
2473
2474         * device/lib/pic16/libdev/pic18f[68][567]20.c:
2475           corrected typos...
2476         * device/include/pic16/signal.h: added USBIF
2477           and SIG_USB
2478
2479 2005-06-24 Raphael Neider <rneider AT web.de>
2480
2481         * device/lib/pic16/libdev/pic18f2455.c,
2482           device/include/pic16/pic18f2455.h: NEW
2483         * device/include/pic16/pic18fregs.h,
2484           device/lib/pic16/pics.all,
2485           src/pic16/device.c: added 18f2455
2486         * device/lib/pic16/libdev/pic18f[68][567]20.c,
2487           device/include/pic16/{pic18f[68][567].h,usart.h}:
2488           replaced MULTIPLE_USARTS define with more relaible
2489           compatibility sfrs (for USART access)
2490
2491 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
2492
2493         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
2494           and the output asm file line is printed on two lines.
2495
2496 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2497
2498         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
2499           BGT, BLE, BHI, and BLS instructions
2500         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
2501           genCmpEq): removed
2502         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
2503           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
2504           fixes bug #1216342
2505         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
2506
2507 2005-06-15 Raphael Neider <rneider AT web.de>
2508
2509         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
2510         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
2511         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
2512           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
2513           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
2514
2515 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2516
2517         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
2518           Marcel Telka in bug #1215704
2519
2520 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
2521
2522         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
2523           located in shared memory bank.
2524
2525 2005-05-31 Raphael Neider <rneider AT web.de>
2526
2527         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
2528           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
2529           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
2530
2531 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
2532
2533         * device/lib/_strncpy.c: fixed the fix
2534
2535 2005-05-26 Raphael Neider <rneider AT web.de>
2536
2537         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
2538           initializers with \0, bug #1208187
2539         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
2540           intializers with \0, bug #1208187
2541
2542 2005-05-26 Raphael Neider <rneider AT web.de>
2543
2544         * src/pic16/glue.c (pic16_printIvalChar): fixed string
2545           initializers with \0, bug #1208187
2546         * src/pic16/main.c (_process_pragma): added sanity checks
2547           for stack position and size, emit warnings when appropriate
2548
2549 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2550
2551         * device/lib/_strncpy.c: fixed not filling with \0
2552
2553 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2554
2555         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
2556           createFunction),
2557         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
2558           compound_statement),
2559         * src/SDCCsymt.h,
2560         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
2561
2562 2005-05-24 Raphael Neider <rneider AT web.de>
2563
2564         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
2565
2566 2005-05-24 Raphael Neider <rneider AT web.de>
2567
2568         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
2569           TRISE definitions, closes bug #1162453
2570
2571 2005-05-22 Raphael Neider <rneider AT web.de>
2572
2573         * src/pic16/main.c (_process_pragma): check for missing
2574           arguments to pragmas code and udata
2575         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
2576           consistency fixes to match other headers (thanks to Jim Paris)
2577         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
2578
2579 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2580
2581         * src/SDCCicode.c (isOperandEqual): fixed missing ;
2582
2583 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
2584
2585         * support/regression/tests/bug1198642.c: new test
2586         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
2587         * src/SDCCcse.c (findPrevIc): added comment, please have a look
2588         * support/scripts/resource.h,
2589         * support/scripts/resource.rc,
2590         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
2591         * support/scripts/sdcc.ico: added 32x32 icon
2592
2593 2005-05-18 Raphael Neider <rneider AT web.de>
2594
2595         * device/lib/pic16/libdev/pic18f*.c,
2596         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
2597           keywords to "__sfr" and "__at (X)"
2598         * device/include/pic16/pic18fregs.h: added pic18f4520
2599         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
2600           #1203088 (MPLAB compatibility)
2601
2602 2005-05-17 Raphael Neider <rneider AT web.de>
2603
2604         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
2605         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
2606         * device/lib/pic16/pics.all: added new devices
2607         * src/pic16/device.c: added support for pic18f4520
2608
2609 2005-05-16 Raphael Neider <rneider AT web.de>
2610         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
2611         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
2612         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
2613           convenience function for bit access
2614
2615 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2616
2617         * device/lib/printf_large.c: fixed bug 1193299
2618         * support/regression/tests/bug1057979.c: added test %3.3s
2619
2620 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2621
2622         * device/include/mcs51/8051.h,
2623         * device/include/mcs51/8052.h: made parseable with lint
2624         * device/include/mcs51/lint.h: added include file for (sp)lint
2625         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
2626         * doc/cdbfileformat.lyx,
2627         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
2628
2629 2005-05-14 Raphael Neider <rneider AT web.de>
2630
2631         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
2632         * device/lib/pic16/libc/stdlib/itoa.c (new)
2633         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
2634         * device/lib/pic16/libio/Makefile: exclude subdir according to
2635           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
2636         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
2637         * src/pic16/gen.c (genFunction): prevent annoying warning
2638         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
2639           nameclashes on BeOS
2640         * support/cpp2/cppmain.c (cpp_output_string): new
2641         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
2642           fixes bug 1116802
2643
2644 2005-05-13 Borut Razem <borut.razem AT siol.net>
2645
2646         * src/SDCCmain.c (linkEdit): fixed bug 1195202
2647
2648 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2649
2650         * .version: changed to version 2.5.1; back to bleeding edge development
2651
2652 2005-05-11 Borut Razem <borut.razem AT siol.net>
2653
2654         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
2655           generate PDF version 1.3 documents
2656
2657 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2658
2659         * .version: changed to version 2.5.0
2660
2661 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2662
2663         * doc/sdccman.lyx: updated weblinks, index and smaller updates
2664
2665 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2666
2667         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
2668         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
2669         well as many smaller updates.
2670         * .version: changed to version 2.5.0-pre1
2671
2672 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2673
2674         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
2675
2676 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2677
2678         * support/regression/tests/bug1185672.c: added
2679         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
2680           bug 1185672
2681         * src/mcs51/gen.c (genCall): added comments, made it look safer
2682         * src/mcs51/gen.c (genEndFunction): simplified
2683
2684 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2685
2686         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
2687
2688 2005-04-14 Borut Razem <borut.razem AT siol.net>
2689
2690         * fixed bug 1045046 - SIGSEGV with really simple code?:
2691           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
2692           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
2693
2694 2005-04-14 Borut Razem <borut.razem AT siol.net>
2695
2696         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
2697           src/pic16/device.h: temporarily disabled experimental #inline pragma
2698           for 2.5.0 release
2699
2700 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
2701
2702         * device/include/z80/stdio.h,
2703         * device/include/z80/string.h: removed these highly incomplete files so
2704           SDCC can use the default ones in device/include/
2705
2706 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2707
2708         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
2709         gcc warning.
2710         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
2711         fix sdcpp warnings.
2712
2713 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2714
2715         * device/include/malloc.h: removed redundant __reentrant prototypes
2716         * device/lib/_mullong.c: added working xstack variant in asm (C version
2717           doesn't pass regression tests)
2718         * device/lib/bpx.c: used __data and made bpx char for mcs51
2719         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
2720           (createFunction): fixed bug with xstackPtr
2721         * src/SDCCcse.c: corrected comments
2722         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
2723           (killDeadCode, eBBlockFromiCode): removed unused code
2724         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
2725           corrected comments
2726         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
2727           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
2728           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
2729           (genModOneByte): fixed warning in MSVC
2730         * src/mcs51/main.c (): added comments
2731         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
2732
2733 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2734
2735         * src/SDCCmain.c (linkEdit): oops, changed one line too many
2736
2737 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
2738
2739         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
2740
2741 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
2742
2743         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
2744         characters arrays of larger size than the declared one.
2745
2746 2005-04-10 Borut Razem <borut.razem AT siol.net>
2747
2748         * src/pic/gen.c (genInline),
2749           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
2750           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
2751           (findNextInstruction), (findPrevInstruction),
2752           (findInstructionUsingLabel),
2753           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
2754         * src/pic/pcode.c (findLabel): added missing '\n'
2755         * src/src.dsp: added SDCCdwarf2.c to the project
2756
2757 2005-04-09 Borut Razem <borut.razem AT siol.net>
2758
2759         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
2760
2761 2005-04-08 Raphael Neider <rneider AT web.de>
2762
2763         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
2764           into the chain after a given one) and mergeDefmapSymbols (combine
2765           defmap entries for each symbol per pcode)
2766         * (createDefmap): have defmap entries merged in the end
2767         * (defmapReplaceSymRef): split defmap entries covering two accesses to
2768           a symbol before replacing one access type's symbol, merge symbols in
2769           the end (replacement symbol might already have an entry)
2770         * (assignValnums): keep reference to written WREG intact
2771
2772 2005-04-08 Raphael Neider <rneider AT web.de>
2773
2774         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
2775           Alpha)
2776
2777 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
2778
2779         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
2780         bytes
2781
2782 2005-04-07 Raphael Neider <rneider AT web.de>
2783
2784         * device/include/pic16/usart.h: added compatibility defines for
2785           devices with more than one USART
2786         * device/include/pic16/pic18f[68][567]20.h: activated above defines
2787
2788 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2789
2790         * device/lib/Makefile.in: updated for port specific include
2791
2792 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2793
2794         * support/regression/ports/mcs51/spec.mk: added mcs51 include
2795
2796 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2797
2798         * device/include/8051.h,
2799         * device/include/8052.h,
2800         * device/include/at89S8252.h,
2801         * device/include/at89c55.h,
2802         * device/include/at89x051.h,
2803         * device/include/at89x51.h,
2804         * device/include/at89x52.h,
2805         * device/include/mcs51reg.h,
2806         * device/include/reg51.h,
2807         * device/include/reg764.h,
2808         * device/include/regc515c.h,
2809         * device/include/sab80515.h: (re)moved these 12 files
2810         * device/include/mcs51/8051.h,
2811         * device/include/mcs51/8052.h,
2812         * device/include/mcs51/at89S8252.h,
2813         * device/include/mcs51/at89c55.h,
2814         * device/include/mcs51/at89x051.h,
2815         * device/include/mcs51/at89x51.h,
2816         * device/include/mcs51/at89x52.h,
2817         * device/include/mcs51/mcs51reg.h,
2818         * device/include/mcs51/reg51.h,
2819         * device/include/mcs51/reg764.h,
2820         * device/include/mcs51/regc515c.h,
2821         * device/include/mcs51/sab80515.h: and added them here
2822
2823 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2824
2825         * device/include/stdarg.h: changed SDCC specific keywords to double
2826           underlined form.
2827         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
2828           mcs51 and ds390.
2829         * device/include/hc08/mc68hc908gp32.h,
2830         * device/include/hc08/mc68hc908jb8.h,
2831         * device/include/hc08/mc68hc908jkjl.h,
2832         * device/include/hc08/mc68hc908qy.h: fixed comments
2833         * device/include/mcs51/README: updated
2834         * device/include/mcs51/c8051f120.h: added PINRSF
2835         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
2836         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
2837           amidst code. Also inline is not supported.
2838
2839 2005-04-06 Raphael Neider <rneider AT web.de>
2840
2841         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
2842         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
2843           callers stack/frame pointers
2844
2845 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2846
2847         * device/include/pic16/usart.h: added, missing in previous commit,
2848         * device/include/pic16/adc.h: fixed typo,
2849         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
2850         commit,
2851         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
2852         <p18fxxx.inc>
2853         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
2854         uninitialized because a bug appears with gplink
2855         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
2856         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
2857         complains for unrecognised option
2858
2859 2005-04-05 Raphael Neider <rneider AT web.de>
2860
2861         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
2862           structs as well (using memcpy)
2863         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
2864           on ISRs (GOTO has no label)
2865         * src/pic16/device.h: added OF_OPTIMIZE_DF
2866         * src/pic16/main.c: added compiler switch --optimize-df to enable the
2867           new data flow analysis/optimization
2868         * src/pic16/pcode.c: added (prototypes for and implementation of)
2869           dataflow analysis functions, fixed pCodeInstructions' inCond and
2870           outCond values, made RCALL a branch instruction
2871         * (pic16_unlinkpCode): keep C line if possible
2872         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
2873           C line moved if possible
2874         * (pic16_getRegFrompCodeOp): NEW, improved version of...
2875         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
2876           to use new pic16_getRegFrompCodeOp (works for more SFRs)
2877         * (pic16_BuildFlow): fixed skip instructions with label (did not start
2878           new flow)
2879         * (pic16_getJumptabpCode): NEW, needed in...
2880         * (LinkFlow): fixed handling of jumptables, calls and conditional
2881           branches
2882         * (pic16_InsertCommentAfter): NEW
2883         * (pic16_pCodeReplace): made verbose and flow preserving
2884         * (AnalyzeFlow): added call to data flow analysis
2885         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
2886         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
2887         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
2888
2889 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2890
2891         * src/SDCCast.c (decorateType): fixed bug #1105626
2892
2893 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
2894
2895         * device/include/asm/pic16/features.h,
2896         * pic18f*.h headers,
2897         * device/include/pic16/adc.h,
2898         * device/include/pic16/delay.h,
2899         * device/include/pic16/i2c.h,
2900         * device/include/pic16/malloc.h,
2901         * device/include/pic16/stdio.h,
2902         * device/include/pic16/stdlib.h,
2903         * device/include/pic16/string.h,
2904         * device/lib/pic16/libc/stdio/printf_tiny.c,
2905         * device/lib/pic16/libc/stdio/printf_small.c,
2906         * device/lib/pic16/libc/stdio/strmgpsim.c,
2907         * device/lib/pic16/libc/stdio/strmmssp.c,
2908         * device/lib/pic16/libc/stdio/strmusart.c,
2909         * device/lib/pic16/libc/stdio/vfprintf.c,
2910         * device/lib/pic16/libc/stdlib/ltoa.c,
2911         * device/lib/pic16/libc/stdlib/putchar.c,
2912         * device/lib/pic16/libc/stdlib/x_ftoa.c,
2913         * device/lib/pic16/libc/stdlib/memchrpgm.c,
2914         * device/lib/pic16/libc/stdlib/memchrram.c,
2915         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
2916         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
2917         * device/lib/pic16/libio/adc/adcbusy.c,
2918         * device/lib/pic16/libio/adc/adcread.c,
2919         * device/lib/pic16/libio/adc/adcsetch.c,
2920         * device/lib/pic16/libio/usart/ubaud.c,
2921         * device/lib/pic16/libio/usart/ubusy.c,
2922         * device/lib/pic16/libio/usart/udrdy.c,
2923         * device/lib/pic16/libio/usart/uopen.c,
2924         * device/lib/pic16/libio/usart/uputc.c,
2925         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
2926         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
2927         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
2928         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
2929         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
2930         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
2931         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
2932         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
2933         specific keywords to double underlined form,
2934         * device/lib/pic16/libc/Makefile.rules,
2935         * device/lib/pic16/libsdcc/Makefile.rules,
2936         * device/lib/pic16/libm/Makefile,
2937         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
2938         to compile with C standard set in Makefile.common
2939         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
2940         rand.c and crc.c in compilation process,
2941         * device/lib/pic16/libsdcc/int/divuint.c,
2942         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
2943         `c' from signed to unsigned,
2944         * device/lib/pic16/startup/crt0.c,
2945         * device/lib/pic16/startup/crt0i.c,
2946         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
2947         keywords to double underlined form, bug fixes in _do_cinit function
2948         which prevented the correct initialization of the .idata segment,
2949         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
2950         core to enter a infinite loop
2951         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
2952
2953 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2954
2955         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
2956
2957 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2958
2959         * device/include/Makefile.in: add support for hc08 subdirectory
2960         * device/include/hc08/: new subdirectory
2961         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
2962         Lucas Loizaga, thanks!
2963         * device/include/hc08/mc68hc908qy.h,
2964         * device/include/hc08/mc68hc908gp32.h,
2965         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
2966         their own directory. Changed internal macro names to use the compiler
2967         reserved namespace. Changed SDCC specific keywords to double
2968         underlined form.
2969         * device/include/math.h,
2970         * device/include/malloc.h,
2971         * device/include/stdarg.h,
2972         * device/include/stdbool.h
2973         * device/include/string.h,
2974         * device/include/tinibios.h,
2975         * device/include/ds400rom.h,
2976         * device/include/8051.h,
2977         * device/include/8052.h,
2978         * device/include/80c51xa.h,
2979         * device/include/at89c55.h,
2980         * device/include/at89S8252.h,
2981         * device/include/at89x51.h,
2982         * device/include/at89x52.h,
2983         * device/include/ds80c390.h,
2984         * device/include/reg764.h,
2985         * device/include/regc515c.h,
2986         * device/include/sab80515.h,
2987         * device/include/mcs51/c8051f000.h,
2988         * device/include/mcs51/c8051f018.h,
2989         * device/include/mcs51/c8051f020.h,
2990         * device/include/mcs51/c8051f040.h,
2991         * device/include/mcs51/c8051f060.h,
2992         * device/include/mcs51/c8051f120.h,
2993         * device/include/mcs51/c8051f300.h,
2994         * device/include/mcs51/c8051f310.h,
2995         * device/include/mcs51/c8051f320.h,
2996         * device/include/mcs51/c8051f330.h,
2997         * device/include/mcs51/c8051f350.h,
2998         * device/include/z180.h: Changed SDCC specific keywords to double
2999         underlined form.
3000
3001 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
3002
3003         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
3004         18F4455,
3005         * (pic16_assignConfigWordValue): disable testing of configuration
3006         register value with config mask,
3007         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
3008         function with port->fun_prefix,
3009         * (genFunction): when generating a naked interrupt function never
3010         create an absolute segment placed in interrupt vector address, place
3011         the actual interrupt function at IVA instead, when an interrupt
3012         function is generated with unspecified interrupt then do not create
3013         the absolute section,
3014         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
3015         code for generating a call to generic pointer get/put function with
3016         a call to function pic16_callGenericPointer(),
3017         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
3018         the call to the generic pointer get/put functions with prefixing the
3019         function name with port->fun_prefix,
3020         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
3021         * src/pic16/main.c (_process_pragma): prefix function with
3022         port->fun_prefix,
3023         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
3024         calling assembler, old 18Fxxxx macro is deprecated,
3025         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
3026         PC_ASMDIR in while condition,
3027         * (findInstruction): add PC_ASMDIR in while condition,
3028         * (buildCallTree): prefix main with port->fun_prefix,
3029         * (pic16_pCode2str): fixed bug that didn't emit the memory access
3030         identifier for variable with banked access in instructions BTFSS,
3031         BTFSC, BCF, BSF, BTG
3032         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
3033         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
3034         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
3035         perform optimization when enviroment variable NO_REG_OPT is set,
3036         * (insideLRBlock): NEW, return 1 if register is inside an
3037         INF_LOCALREGS block,
3038         * (RemoveRegFromLRBlock): remove a register that is completely
3039         eliminated by register optimization, but it is still left in local
3040         register store/restore in/from stack block,
3041         * (Remove2pcodes): after removing register, check to see if it
3042         should be removed from local register store/restore in/from stack
3043         block,
3044         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
3045         DUMMY_READ_VOLATILE,
3046
3047         * device/include/pic16/adc.h: minor prototype modifications and
3048         update,
3049         * device/include/pic16/malloc.h: added GPL notice various
3050         modifications,
3051         * device/include/pic16/stdint.h: NEW, standard header for ints
3052         * device/include/pic16/delay.h: NEW, header for delay functions,
3053         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
3054         delay1mtcy,
3055         * device/include/pic16/signal.h: NEW, header providing helper macros
3056         for implementing signal handlers,
3057         * device/include/pic16/stdio.h: added prototypes for functions,
3058         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
3059         prototypes for stdin and stdout, added macro PUTCHAR to
3060         automatically implement putchar function prototype,
3061         * device/include/pic16/usart.h: modified and updated USART library,
3062         * device/lib/pic16/libio/adc/,
3063         * device/lib/pic16/libio/i2c: some modifications to improve library
3064         performance,
3065         * device/lib/pic16/libc/stdio/: modifications for the new printf*
3066         family of functions,
3067         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
3068         family of functions and other sources,
3069         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
3070         of the PIC18Fxx[28] devices,
3071         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
3072         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
3073         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
3074         _do_cinit function, because the previous failed when local variables
3075         where not placed in the same memory bank,
3076         * device/lib/pic16/libsdcc/char/: various modifications to improve
3077         library performance,
3078         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
3079         information on the new functions of the c library and more...
3080
3081 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3082
3083         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
3084
3085 2005-03-26 Raphael Neider <rneider AT web.de>
3086
3087         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
3088           if condition == CARRY)
3089         * (genCmp): adapted to new genSkipc semantics
3090         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
3091           on rIfx (genCmp was broken)
3092
3093 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3094
3095         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
3096         * src/z80/main.c (_keywords[]),
3097         * src/SDCCglobal.h (struct options),
3098         * src/SDCC.y,
3099         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
3100         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
3101         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
3102         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
3103         always available in leading double underscore form. The C99 support is
3104         mostly missing, but it's a start.
3105         * support/regression/tests/bug-227710.c: fixed nonconforming use of
3106         reserved identifier "__data".
3107
3108 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3109
3110         * src/mcs51/peeph.def: fixed bug 1170013
3111
3112 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
3113
3114         * device/include/mcs51reg.h: fixed bug 842007
3115
3116 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3117
3118         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
3119         last time.
3120
3121 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3122
3123         * src/port.h (struct PORT),
3124         * src/avr/ralloc.c (avr_assignRegisters),
3125         * src/avr/main.c,
3126         * src/ds390/ralloc.c (ds390_assignRegisters),
3127         * src/ds390/main.c,
3128         * src/hc08/ralloc.c (hc08_assignRegisters),
3129         * src/hc08/main.c,
3130         * src/mcs51/ralloc.c (mcs51_assignRegisters),
3131         * src/mcs51/main.c,
3132         * src/pic/ralloc.c (pic14_assignRegisters),
3133         * src/pic/main.c,
3134         * src/pic16/ralloc.c (pic16_assignRegisters),
3135         * src/pic16/main.c,
3136         * src/xa51/ralloc.c (xa51_assignRegisters),
3137         * src/xa51/main.c,
3138         * src/z80/ralloc.c (z80_assignRegisters),
3139         * src/z80/ralloc.h,
3140         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
3141         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
3142         * src/SDCCcse.h,
3143         * src/SDCCdflow.c (computeDataFlow),
3144         * src/SDCCdflow.h,
3145         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
3146         * src/SDCCloop.h,
3147         * src/SDCCcflow.c (*),
3148         * src/SDCCcflow.h,
3149         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
3150         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
3151         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
3152         immedDom() returning wrong block; probably fixes bug #1160833)
3153
3154 2005-03-20 Borut Razem <borut.razem AT siol.net>
3155
3156         * support/scripts/inc2h.pl: WIN32 port
3157
3158 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
3159
3160         * device/lib/makefile.in: added abs.c and labs.c
3161
3162 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3163
3164         * device/include/stdint.h: added
3165         * device/lib/abs.c: added
3166         * device/lib/labs.c: added
3167         * device/include/stdlib.h: added abs() and labs() prototypes
3168         * device/lib/libsdcc.lib: added abs and labs
3169         * device/include/float.h,
3170         * device/lib/_fsmul.c,
3171         * device/lib/printf_fast.c,
3172         * device/lib/printf_tiny.c: updated comments
3173
3174 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3175
3176         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
3177         bug #1164313
3178
3179 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3180
3181         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
3182         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
3183
3184 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
3185
3186         * device/lib/printf_large.c: removed inline assembly for portability and
3187           readability. Use printf_fast if speed or size are more important.
3188         * src/pic16/gen.c: removed conditions around use of DEBUGpc
3189         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
3190
3191 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
3192
3193         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
3194         prevent compiler warning
3195
3196 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3197
3198         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
3199         moved to level 0 and declared as static. Also they are explicit
3200         placed in access bank. This was necessery because some times they
3201         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
3202         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
3203         optimizations. Currently only compare to unsigned char is implemented,
3204         * src/pic16/gen.c: added fReturnIdx array,
3205         * (struct resolvedIfx) is moved to gen.h and made public,
3206         * (struct _G): added sregsAlloc and sregsAllocSet fields,
3207         * (aopForSym): added an optimization to directly store in stack of
3208         the operand of a SEND iCode,
3209         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
3210         but as registers instead (AOP_REG) using the fReturnIdx array,
3211         * (pic16_freeAsmop): remove the freed register from the
3212         _G.sregsAlloc field,
3213         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
3214         a compare of 'WREG',
3215         * (pic16_popGetTempRegCond): changed function prototype, now
3216         function takes also a bitVector argument v which holds the current
3217         set of registers that are allocated for stack access by aopForSym,
3218         registers allocated in aopForSym for accessing stack symbols are not
3219         any more part of the functions usedRegs field,
3220         * (genCall): some times aopOp is called for a stack variable to be
3221         send, aopForSym might perform the push, if this is true make sure
3222         that genCall doesn't push the variable twice by testing _G.resDirect,
3223         * (genFunction): changed testing for unspecified interrupt number
3224         from 256 to INTNO_UNSPEC,
3225         * modified selection scheme of frame pointer generation. Previously
3226         if function did use local registers a frame pointer was generated,
3227         now a frame pointer is generated only if function has arguments
3228         (that need PLUSW2 register access), or has stack arguments, or the
3229         compiler is not instructed to omit the frame pointer,
3230         * (genEndFunction): before restoring local registers that were saved
3231         in the function preamble, also restore the registers that *might*
3232         have been allocated for stack access,
3233         * (genRet): removed some old comments,
3234         * (genCmp, the active (RN's) version): added a call to the
3235         pic16_genCmp_special function to perform the compare with a more
3236         robust and optimized way,
3237         * (genInline): a feature has been added in inline code generation,
3238         which allows a wildcard variable substitution when writing inline
3239         assembly. Code is incomplete and experimental therefore undocumented,
3240         * (genCast): changed order of aopOp for result and right to allow
3241         aopForSym to directly load the result if possible,
3242         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
3243         perform an optimized compare on some selected special occasions,
3244         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
3245         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
3246         generate an IVT any more,
3247         * src/pic16/main.c (pic16_optionsTable): added command line option
3248         --optimize-cmp,
3249         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
3250         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
3251         macros,
3252         * src/pic16/NOTES: Raphael Neider added in list of active developers
3253         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
3254         jumptable_end to prevent bug #,
3255         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
3256         inCond and outCond fields,
3257         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
3258         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
3259         turn off register spilling,
3260         * (packRegsForOneUse): synced with other ports' versions although it
3261         is not used currently,
3262         * (pic16_packRegisters): added an optimization while reading
3263         structure bitfields, some registers may be saved (malloc code is
3264         decreased by 80 bytes)
3265
3266 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
3267
3268         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
3269         left is a bitfield, if yes, then don't optimize assignment. Perhaps
3270         this can be optimized more?
3271
3272 2005-03-10 Raphael Neider <rneider AT web.de>
3273
3274         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
3275           genNearPointerGet): (hopefully) fixed access to bitfields via
3276           pointers (p->bitN = x; and x = p->bitN; failed)
3277
3278 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
3279
3280         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
3281
3282 2005-03-09 Raphael Neider <rneider AT web.de>
3283
3284         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
3285
3286 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
3287
3288         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
3289         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
3290           (regTypeNum): set REG_BIT type if necessary
3291         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
3292         * support/regression/tests/critical.c: check bug 1144613
3293
3294 2005-03-02 Raphael Neider <rneider AT web.de>
3295
3296         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
3297
3298 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3299
3300         * src/avr/ralloc.c (serialRegAssign),
3301         * src/ds390/ralloc.c (serialRegAssign),
3302         * src/hc08/ralloc.c (serialRegAssign),
3303         * src/mcs51/ralloc.c (serialRegAssign),
3304         * src/pic/ralloc.c (serialRegAssign),
3305         * src/pic16/ralloc.c (serialRegAssign),
3306         * src/xa51/ralloc.c (serialRegAssign),
3307         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
3308
3309 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
3310
3311         * src/SDCCast.c (decorateType): fixed bug 1124787
3312
3313 2005-02-20 Hubert Sack <sack AT digiplan.de>
3314         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3315
3316         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
3317         patch #1121755
3318
3319 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3320
3321         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
3322         to keep the correct label reference count when adding/removing references
3323         to labels. A peephole file using this is appended to patch #1144962.
3324
3325 2005-02-14 Raphael Neider <rneider AT web.de>
3326
3327         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
3328         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
3329         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
3330           retrievals of result operand's value on assignment
3331
3332 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
3333
3334         * device/include/pic16/string.h: modified prototype for memccpy()
3335         to memccpy(void *, void *, char, size_t)
3336         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
3337         check whether to omit frame pointer or not,
3338         * (genInline): convert all occurences of "\n" to LF in inline
3339         assembler blocks, this helps formatting the inline text,
3340         * (pic16_loadFSR0): modified prototype,
3341         * (genNearPointerGet, genNearPointerSet): reorganization of code,
3342         removed some 8051 legacy code,
3343         * (genPackBits): enabled handling bitfields exceeding one byte in size,
3344         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
3345         before allocating temporary registers in functions,
3346
3347 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3348
3349         * support/regression/tests/bitvars.c: corrected the "fix"
3350
3351 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3352
3353         * support/regression/tests/bitvars.c,
3354         * support/regression/tests/bitwise.c,
3355         * support/regression/tests/rotate.c: "fixed" problems on Alpha
3356
3357 2005-02-10 Raphael Neider <rneider AT web.de>
3358
3359         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
3360           different size for Alpha
3361         * src/pic16/gen.c (genCmpEq) : improved compare with 0
3362
3363 2005-02-09 Raphael Neider <rneider AT web.de>
3364
3365         * src/SDCC.lex(doPragma) : save and restore warning options as well
3366           (also added new stack plus clone- and copyAndFreeSDCCERRG())
3367         * have #pragma less_pedantic set the errorlevel to WARNING
3368           (fixes #1117001)
3369         * (cloneOptimize) : fixed wrong malloc's size
3370         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
3371           facilitate correct handling of #pragma (save|restore)
3372
3373 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3374
3375         * src/mcs51/gen.c: removed non-standard C nameless struct/union
3376
3377 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
3378
3379         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
3380
3381 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
3382
3383         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
3384
3385 2005-02-02 Raphael Neider <rneider AT web.de>
3386
3387         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
3388         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
3389         * (pic16_storeForReturn): fixed to allow returning function pointers
3390         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
3391         * device/include/pic16/{stddef.h,stdbool.h}: added
3392
3393 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
3394
3395         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
3396
3397 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
3398
3399         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
3400         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
3401          appeared to be required
3402
3403 2005-01-31 Borut Razem <borut.razem AT siol.net>
3404
3405         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
3406           include/mcs51 and include/z80 directories to the package
3407
3408 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3409
3410         * src/hc08/gen.c (genFunction): fixed bug #1112752
3411
3412 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3413
3414         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
3415
3416 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3417
3418         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
3419
3420 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
3421
3422         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
3423
3424 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
3425
3426         * device/include/c8051fxxx.h: removed these 6 files
3427         * device/include/mcs51/c8051fxxx.h: added these 11 new files
3428
3429 2005-01-26 Raphael Neider <rneider AT web.de>
3430
3431         * src/pic16/gen.c (genAssign): fixed assignment from longs
3432           in codespace (were cut to three bytes)
3433         * (genDummyRead): implemented (except for CODESPACE...),
3434           fixed bug #1108575
3435         * src/pic16/glue.c (emitStatistics): beautified
3436         * device/lib/pic16/libm/Makefile: added include path
3437
3438 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3439
3440         * src/z80/gen.c (aopPut): fixed bug #1103902
3441
3442 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3443
3444         * device/lib/expf.c: fixed bug #1095792
3445
3446 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
3447
3448         * device/lib/pic16/libm: added Math library sources
3449
3450 2005-01-24 Raphael Neider <rneider AT web.de>
3451
3452         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
3453           to enable upcast to pCodeOpReg2 (there is no type tag to
3454           differenciate the two and pic16_popGet2p cast into PCOR2)
3455         * src/pic16/main.c (_process_pragma): fixed another malloc bug
3456           (sizeof(sectNames) changed to sizeof(sectName))
3457           Both patches fix segfaults under MinGW.
3458
3459 2005-01-23 Raphael Neider <rneider AT web.de>
3460
3461         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
3462           Safe_[mc]?alloc()'ed variables
3463         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
3464           of (byte sized) temporaries (assign them to WREG for now)
3465         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
3466           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
3467           this might fix SIGSEGVs on MinGW...
3468         * src/SDCCopt.c (killDeadCode): restored original behaviour
3469           (volatile operands might get thrown away though)
3470
3471 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
3472
3473         * src/pic16/gen.c: fixed bug #1106975,
3474         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
3475         pointer update, INTCON is saved, global interrupts are disabled and
3476         restored after updateing TOS.
3477         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
3478         * added function attribute 'shadowregs' to take advantage of shadow
3479         registers,
3480         * added function attribute 'wparam' as an alternative to the wparam
3481         pragma,
3482         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
3483         user declares a non-ISR function as 'shadowregs',
3484         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
3485
3486 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
3487
3488         * .version: bumped version number to 2.4.8
3489         * device/lib/pic16/pics.all: list of PIC18F devices supported by
3490         pic16 port,
3491         * device/lib/pic16/libio/i2c/: I2C module support library,
3492         * device/include/pic16/i2c.h: I2C support library header,
3493         * device/lib/pic16/libc/stdio/: standard IO support sources,
3494         * (printf_small.c): printf_small() source, supports float print,
3495         * (printf_tiny.c): printf_tiny() source, does not support floats,
3496         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
3497         enable global optimizations for entire library source, other
3498         Makefiles in the source tree are also modified to reflect this,
3499         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
3500         function,
3501         * doc/sdccman.lyx: updated to reflect new changes,
3502         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
3503         sym->onStack if-case,
3504         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
3505         sbit, idata, _idata, xdata, _xdata,
3506         * added pragma library, to link an external library, (see doc),
3507         * removed command line options, --pomit-config-words, --pomit-ivt,
3508         --pleave-reset-vector,
3509         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
3510         when calling assembler to reflect memory model used, also define
3511         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
3512         reflect stack model used,
3513         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
3514         on stack return NULL,
3515
3516 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3517
3518         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
3519           of the operands is volatile. Fixes #1020220
3520
3521 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3522
3523         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
3524         * (OptimizeRegUsage): make sure that there is really no other flow where
3525           the first pCode is used
3526
3527 2005-01-22 Raphael Neider <rneider AT web.de>
3528
3529         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
3530           to fix #1106967 (pCode->seq are not set up correctly)
3531
3532 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3533
3534         * src/SDCCglue.c (glue): make sure code area is declared before the
3535         static initialization area.
3536
3537 2005-01-21 Raphael Neider <rneider AT web.de>
3538
3539         * device/lib/Makefile.in: fixed test for pic16 install dir
3540         * device/lib/pic16/*/Makefile*: modified compile flags to enable
3541           optimizations
3542         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
3543           added --optimize-goto compiler switch and pragma wparam documentation
3544         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
3545         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
3546           and PRODH closing bug #1071770 (peephole optimizer)
3547
3548 2005-01-19 Raphael Neider <rneider AT web.de>
3549
3550         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
3551           cmdLine buffers (used when calling sdcpp...) are large enough
3552           (MAX_PATH=256 truncates arguments leading to system halts when
3553           used in MinGW...)
3554         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
3555         * (genUminus): rewritten to for efficiency
3556         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
3557           used uninitialized in some cases)
3558         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
3559           copy the third byte from the int -- now assumes 0x80 (data memory)
3560         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
3561           operands (genAddLit expects the iCode's operands to swapped as
3562           well), fixed leftover bytes (crashed for short left operands)
3563         * (pic16_genMinusDec): performance improvements, removed false
3564           PIC14 emitSKPNCs
3565         * (pic16_genMinus): fixed to cope with differently sized operands
3566         * src/pic16/glue.c (pic16_glue): added new banksel optimization
3567           for --obanksel > 1
3568         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
3569         * src/pic16/graph.[ch]: implementation of directed graphs, used by
3570           new banksel optimization
3571         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
3572           analysis for temporary registers (segfaults...)
3573         * src/pic16/peeph.def: added rule
3574
3575 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
3576
3577         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
3578         which converts a float number to its ASCII representation
3579         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
3580         functions to convert the fractional and integer part of a float to ASCII,
3581         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
3582         realloc.c): added _MALLOC_SPEC to explicit place variables in data
3583         ram
3584         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
3585         _STATMEM macros,
3586         * device/include/pic16/adc.h: added GPL info,
3587         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
3588         a pCodeOp as tested operand,
3589         * (genNearPointerGet): optimized bit testing, does not use
3590         intermediate register for bit value, test directly instead with
3591         BTFSS, BTFSC, works only for single bits,
3592         * (genpic16Code): dump the name of the iCode in the asm,
3593         * src/pic16/ralloc.c (decodeOp): removed static declaration and
3594         renamed to pic16_decodeOp,
3595         * (serialRegAssign): do not allocate a temporary register for iCode
3596         sequences that test a single bit for 1/0
3597
3598 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
3599
3600         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
3601         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
3602         access stack and frame pointers. They are initially assigned to
3603         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
3604         accessing SFRs. Updated all occurences of modification of stack or
3605         frame pointer in gen.c and pcode.c,
3606         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
3607         assigning of a literal value to pointers,
3608         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
3609         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
3610         selected
3611
3612 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3613
3614         * doc/sdccman.lyx: update documentation about stack pragma, added
3615         some info for stack memory models
3616
3617 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3618
3619         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
3620
3621 2005-01-08 Raphael Neider <rneider AT web.de>
3622
3623         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
3624           udata sections to fix bug #1097823
3625
3626 2005-01-05 Raphael Neider <rneider AT web.de>
3627
3628         * src/pic16/gen.c (genGenericShift): added handling of differently
3629           sized left operand and result
3630
3631 2005-01-04 Raphael Neider <rneider AT web.de>
3632
3633         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
3634         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
3635           to hold the condition bit)
3636         * added new version of genCmp (old code available via #define)
3637         * added new version of genShiftLeft/genShiftRight in a generic
3638           way, now supports shifting by negative values
3639         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
3640           shiftCount (expected by genGenericShift)
3641         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
3642         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
3643           dump
3644         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
3645           is an invalid literal too...)
3646
3647 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
3648
3649         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
3650         from Raphael Neider,
3651         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
3652         for 8-bit literals. This fixes some literal operands which are sign
3653         extended to 16-bits ints when instruction needs only 8-bits.
3654
3655 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
3656
3657         * device/lib/logf.c: added mcs51 assembly version
3658         * device/lib/expf.c: added mcs51 assembly version
3659         * device/lib/_logexpf.c: new shared asm code for expf and logf
3660         * device/include/math.h: add defines for assembly math library
3661         * device/lib/Makefile.in: build new _logexpf.c
3662         * device/lib/libfloat.lib: use new _logexpf.c
3663
3664 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3665
3666         * src/pic/device.c
3667         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
3668           device types which have less than 0x7f registers.
3669
3670 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3671
3672         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
3673
3674 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3675
3676         * device/lib/printf_fast.c: only build on supported arch.
3677         * device/lib/printf_tiny.c: only build on supported arch.
3678         * device/lib/printf_fast_f.c: only build if asm float lib
3679         * device/lib/_fsget1arg.c: only build if asm float lib
3680         * device/lib/_fsget2args.c: only build if asm float lib
3681         * device/lib/_fsnormalize.c: only build if asm float lib
3682         * device/lib/_fsreturnval.c: only build if asm float lib
3683         * device/lib/_fsrshift.c: only build if asm float lib
3684         * device/lib/_fsswapargs.c: only build if asm float lib
3685         * device/include/stdio.h: don't provide print_fast,
3686           print_fast_f, print_tiny prototypes if --xstack used
3687
3688 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
3689
3690         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
3691         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
3692           to the SOURCES
3693
3694 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3695
3696         * device/lib/printf_fast_f.c: same as printf_fast, but
3697           with floating point enabled
3698         * device/lib/printf_fast.c: minor tweaks
3699         * device/include/stdio.h: add printf_fast_f
3700
3701 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3702
3703         * src/SDCCmain.c: make --float-reent default for mcs51
3704         * device/lib/_fsadd.c: added mcs51 assembly version
3705         * device/lib/_fssub.c: added mcs51 assembly version
3706         * device/lib/_fsmul.c: added mcs51 assembly version
3707         * device/lib/_fsdiv.c: added mcs51 assembly version
3708         * device/lib/_fseq.c: added mcs51 assembly version
3709         * device/lib/_fsneq.c: added mcs51 assembly version
3710         * device/lib/_fsgt.c: added mcs51 assembly version
3711         * device/lib/_fslt.c: added mcs51 assembly version
3712         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
3713         * device/lib/Makefile.in: add _fscmp to build
3714         * device/lib/libfloat.lib: add _fscmp to build
3715
3716 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3717
3718         * device/lib/_fs2slong.c: added mcs51 assembly version
3719         * device/lib/_fs2sint.c: added mcs51 assembly version
3720         * device/lib/_fs2schar.c: added mcs51 assembly version
3721         * device/lib/_fs2ulong.c: added mcs51 assembly version
3722         * device/lib/_fs2uint.c: added mcs51 assembly version
3723         * device/lib/_fs2uchar.c: added mcs51 assembly version
3724         * device/lib/_slong2fs.c: added mcs51 assembly version
3725         * device/lib/_sint2fs.c: added mcs51 assembly version
3726         * device/lib/_schar2fs.c: added mcs51 assembly version
3727         * device/lib/_ulong2fs.c: added mcs51 assembly version
3728         * device/lib/_uint2fs.c: added mcs51 assembly version
3729         * device/lib/_uchar2fs.c: added mcs51 assembly version
3730         * device/include/float.h: added #define to select asm vs c
3731
3732 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
3733
3734         * device/lib/printf_fast.c: improvements to float output
3735         * device/include/float.h: add defines for assembly float library
3736         * device/lib/_fsget1arg.c: receive 1 float arg
3737         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
3738         * device/lib/_fsnormalize.c: normalize a float
3739         * device/lib/_fsreturnval.c: return float, various helper routines
3740         * device/lib/_fsrshift.c: right shift a float's mantissa
3741         * device/lib/_fsswapargs.c: swap 2 floats
3742         * device/lib/Makefile.in: build these 6 new files for mcs51
3743         * device/lib/libfloat.lib: add these 6 files to the library
3744
3745 2004-12-26 Borut Razem <borut.razem AT siol.net>
3746
3747         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
3748           built by gcc 3.4.2
3749
3750 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
3751
3752         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
3753           and fully reentrant and register bank neutral.
3754         * device/lib/printf_fast.c: added float (not enabled by default),
3755           added compact/slower integer (also not enabled by default),
3756           improved size/speed of fast integer code, other minor changes
3757         * device/include/stdio.h, device/lib/Makefile.in,
3758           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
3759
3760 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
3761
3762         * src/pic16/pcode.c: declaring variables other than at the start of a
3763           block is not supported in C by VC6.
3764
3765 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
3766
3767         * applied a previous patch from Raphael Neider that wasn't included
3768         in the previous commits, which fixes infinite loops within jumptable
3769         improvements,
3770         * made some fixes that previous patches introduced
3771
3772 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
3773
3774         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
3775         that fixes an issue with AOP_PCODE asmop's offset,
3776         * (pic16_popCopyReg): update instance field too,
3777         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
3778         function of pic port,
3779         * (genCmp, genAnd, genAssign),
3780         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
3781
3782 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
3783
3784         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
3785         variables initial values to idata section,
3786         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
3787         variables in some functions. This utilizes parmBytes field of iCode
3788         structure to hold the offset of the variable in stack. (might be
3789         able to use the stack field too?)
3790         * applied patch from Raphael Neider # ### , # ###
3791         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
3792         variable initial values in idata section,
3793         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
3794         for static variables with initial value
3795         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
3796         applied fix in while loop from Raphael Neider.
3797
3798 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
3799
3800         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
3801         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
3802         * src/ds390/ralloc.c (serialRegAssign): spill bits
3803         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
3804         * support/Util/SDCCerr.c,
3805         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
3806         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
3807         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
3808
3809 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
3810
3811         * device/include/sdcc-lib.h: inserted LGPL, added includes
3812           asm/ds390/features.h and asm/mcs51/features.h
3813         * device/include/asm/default/features.h,
3814         * device/include/asm/gbz80/features.h,
3815         * device/include/asm/z80/features.h: added empty _AUTOMEM
3816           and _STATMEM
3817         * device/include/asm/ds390/features.h,
3818         * device/include/asm/mcs51/features.h: added files with defines for
3819           _AUTOMEM and _STATMEM indicating automatic and static storage class
3820         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
3821         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
3822         * src/SDCCicode.c (geniCodeCast),
3823         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
3824         * src/SDCCloop.c (loopInduction): removed unused variable lr
3825         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
3826           to convertToFcall to include char modulo (RFE 1065037), added check
3827           if left operand is unsigned and use abs of literal value
3828         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
3829           as it doesn't work after conversion from peephole.def to peephole.rul
3830         * src/mcs51/gen.c (toBoolean): added check for size,
3831           (genModOneByte): optimized code for signed char modulo a literal
3832           power of 2 (thanks to Hubert Sack),
3833           (genRRC): removed unnecessary "clr c",
3834           (genRLC): replaced "add a,acc" with cheaper "rlc a"
3835         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
3836           jump optimization,
3837           swapped rules 256.c and 256.d,
3838           extended 256.d by using new multiple checks (thanks Erik),
3839           added rules 256.e and 256.f,
3840           updated rule 261.a and 261.b to new generated code
3841         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
3842
3843 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3844
3845         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
3846           induction related bugs, including first part of bug #1074377
3847
3848 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
3849
3850         * applied patch from bug-report #1076292,
3851         * applied patches for genAnd and Goto-optimizations for Raphael
3852         Neider,
3853         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
3854         dump a less iCode information,
3855         * src/pic16/device.h (pic16_options_t): added field debgen,
3856         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
3857         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
3858         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
3859         puclic,
3860         * (various functions): added macros FENTRY and FENTRY2 to functions,
3861         to emit function prologue,
3862         * (various functions): fixed indentation,
3863         * (genNearPointerGet): fixed loading of FSR0,
3864         * (genPackBits): applied patch from Raphael Neider to fix updating
3865         of FSR0 and touching only the modified bits,
3866         * src/pic16/genarith.c (various functions): added macros FENTRY to
3867         emit function prologue in comments,
3868         * src/pic16/pcode.h: added functions debugf2, debugf3,
3869         * src/pic16/ralloc.c: partial fix for packForPush caused
3870         segmentation fault,
3871
3872 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3873
3874         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
3875           <stsp AT users.sourceforge.net> with reversed byte order
3876         * support/regression/tests/rotate.c: added (ds390 skips some tests)
3877
3878 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3879
3880         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
3881           bug #1074377
3882         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
3883         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
3884
3885 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3886
3887         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
3888
3889 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3890
3891         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
3892           conditions,
3893           (setFromConditionArgs): friendly operand parser for peephole rules,
3894           (operandBaseName, operandsNotRelated): new peephole condition
3895           "operandsNotRelated" -- similar to "operandsNotSame", but takes
3896           architecture specific register naming into account, handles n-way
3897           comparisons, and supports quoted literals
3898         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
3899
3900 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3901
3902         * src/mcs51/peeph.def: fixed bug #1076940
3903
3904 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3905
3906         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
3907
3908 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3909
3910         Adding support for replacing ljmps with sjmps in jumptables
3911         generated for switch statements. For now you need to set the
3912         environment variable SDCC_SJMP_JUMPTABLE to enable this.
3913         Now 4 algorithms for mcs51 jumptable generation are used:
3914         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
3915         addresses loaded pc-relative for up to 112 cases and stack-pushing
3916         target addresses loaded with offset from dptr for up to 256 cases.
3917
3918         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
3919         * src/mcs51/main.c: adapted constants for switch table generation
3920         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
3921
3922 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
3923
3924         * device/lib/printf_large.c (_print_format): fixed bug 1073386
3925         * support/regression/tests/bug1057979.c: added test for bug 1073386
3926
3927 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3928
3929         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
3930         compilers
3931
3932 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3933
3934         * src/pic16/device.h,
3935         * src/pic16/genarith.c,
3936         * src/pic16/glue.c,
3937         * src/pic16/main.c,
3938         * src/pic16/pcode.c: applied patches #1068154 and #1070213
3939
3940 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
3941
3942         Large cummulative patch for pic16 port.
3943         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
3944         to call when a stack overflow occurs,
3945         * (malloc.h): added CVS Id tag,
3946         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
3947         variable,
3948         * added libc directory. The current version of LibC contains string
3949         functions, ctype functions and macros and some functions of the
3950         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
3951         be extensively tested in the future. Standard disclaimer here.
3952         Library is not automatically build yet. But one can build it by
3953         invoking 'make' inside the libc directory.
3954         * added ADC library under libio. Preliminary version yet.
3955
3956         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
3957         * src/pic16/gen.c (aopForRemat): asmop size is filled by
3958         aopForRemat() now and not by pic16_aopOp(),
3959         * (pic16_popGetTempReg): removed warning messgae when allocating
3960         temporary registers, its a buggy feature and will be removed,
3961         * (pic16_popGet): set register instance field in AOP_CRY,
3962         * (pic16_outBitC): fixed for results in size greater than 1,
3963         * (genUminusFloat): fixed for pic16, ported code from mcs51,
3964         * (pic16_storeForReturn): optimized return of 0,
3965         * (genCmp): experimental code for new genCmp which uses PIC18's
3966         special compare&skip instructions. Initial tests fail some times
3967         with variables grater than 1 byte in size, so new code is disabled,
3968         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
3969         a single bit,
3970         * (genCast): began a fix to optimize the casting of a bit to another
3971         bit, now assigning a bitfield to another bitfield will fail, sorry,
3972         * src/pic16/main.c: disabled the use of lr-support feature,
3973         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
3974         * added some function prototypes, added function _debugf prototype,
3975         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
3976         bits with offset (case PO_GPR_BIT),
3977         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
3978         command line,
3979         * (isBankInstruction): modified to return 0 for no banking instruction,
3980         and 1 for banking instruction,
3981         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
3982         caused stop processing pCodes after a inline assembly block,
3983         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
3984         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
3985         registers when it shouldn't,
3986         * src/pic16/ralloc.c (allocReg): add preliminary support for
3987         supporting a limited set of temporary registers,
3988
3989 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3990
3991         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
3992           genDataPointerSet): ensure assignments always copy in MSB to LSB
3993           order,
3994           (loadRegFromAop): recognize CLRH optimization,
3995           (genFunction): optimize RECEIVE iCodes in reentrant functions
3996
3997 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3998
3999         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
4000           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
4001           selected.
4002         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
4003         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
4004           contiguous with data
4005
4006 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4007
4008         * device/lib/_gptrget.c (_gptrget),
4009         * device/lib/_gptrgetc.c (_gptrgetc),
4010         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
4011           instead of sjmp to ret
4012         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
4013           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
4014
4015 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4016
4017         * .version: bumped version to 2.4.7
4018         * device/lib/_gptrget.c (_gptrget): is now _naked
4019         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
4020         * device/lib/_gptrput.c (_gptrput): is now _naked
4021         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
4022           (createFunction): fixed xstack
4023         * src/SDCCglue.c (emitMaps): set allocation required for bit area
4024         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
4025           or bit either,
4026           (geniCodeCritical): store original interrupt state in an iTemp bit
4027           var unless stack-auto
4028         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
4029         * src/SDCCmain.c (setIncludePath): added include/target to search path
4030         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
4031         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
4032           prototype,
4033           (processFuncArgs): put bit vars in bit area
4034         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
4035           unsaveRBank): fixed xstack,
4036           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
4037           (genFunction, genEndFunction): fixed xstack,
4038           (genAssign): optimization don't walk backwards through mem
4039         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
4040         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
4041         * support/regression/Makefile: also make library (for stack-auto) when
4042           making "all" and added "test-mcs51-xstack-auto"
4043         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
4044         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
4045         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
4046         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
4047         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
4048           make-library by MAKE_LIBRARY
4049         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
4050           regression tests for xstack
4051         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
4052         * support/regression/tests/critical.c: test for critical on mcs51
4053
4054 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4055
4056         * support/regression/ports/ucz80/spec.mk: use include and lib files from
4057           built version of sdcc instead of installed version
4058
4059 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4060
4061         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
4062         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
4063           vprintf.c now
4064         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
4065         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
4066           WARNING: remove device/lib/build/z80/printf.o by hand when
4067           updating from previous build!
4068         * device/lib/z80/printf.c: updated comment
4069         * support/regression/tests/bug1057979.c: test all ports now
4070         * support/regression/tests/bug1065458.c: file added
4071
4072 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4073
4074         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
4075           *_start and *_end symbols for static functions
4076
4077 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
4078
4079         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
4080           and search crt0.o in all library paths,
4081           (setIncludePath): proper handling of --nostdinc,
4082           (setLibPath): proper handling of --nostdlib
4083         * support/regression/Makefile,
4084         * support/regression/ports/ds390/spec.mk,
4085         * support/regression/ports/gbz80/spec.mk,
4086         * support/regression/ports/hc08/spec.mk,
4087         * support/regression/ports/mcs51/spec.mk,
4088         * support/regression/ports/mcs51-large/spec.mk,
4089         * support/regression/ports/mcs51-stack-auto/spec.mk,
4090         * support/regression/ports/z80/spec.mk: use include and lib files from
4091           built version of sdcc instead of installed version
4092         * doc/sdccman.lyx: fixed typo in --nostdinc
4093
4094 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
4095
4096         * src/pic/pcode.c,
4097         * src/pic/device.c,
4098         * src/pic/ralloc.c,
4099         * src/pic/gen.c : added support to generate code for struct bit fields.
4100
4101 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4102
4103         * as/xa51/xa_version.h,
4104         * device/include/errno.h,
4105         * device/include/regc515c.h,
4106         * device/lib/_itoa.c,
4107         * device/lib/_ltoa.c,
4108         * device/lib/ser_ir_cts_rts.c,
4109         * sim/ucsim/xa.src/glob.cc,
4110         * sim/ucsim/xa.src/inst_gen.cc,
4111         * sim/ucsim/xa.src/xa_bit.cc,
4112         * sim/ucsim/xa.src/xa_sfr.cc,
4113         * sim/ucsim/z80.src/inst_dd.cc,
4114         * sim/ucsim/z80.src/inst_fdcb.cc,
4115         * support/scripts/keil2sdcc.pl,
4116         * src/pic16/pic16.dsp,
4117         * src/pic16/pic16a.dsp: corrected cvs line endings
4118         * device/lib/printf_large.c: fixed bug 1057979
4119         * src/pic16/gen.c: fixed non-C standard code
4120         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
4121         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
4122         * support/regression/ports/mcs51/support.c: reload T1 asap
4123         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
4124           pdata use and clear idata startup behaviour
4125         * support/regression/tests/bug1057979.c: added
4126
4127 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
4128
4129         * device/examples/ds390/ow390/ad26.h,
4130         * device/examples/ds390/ow390/cnt1d.h,
4131         * device/examples/ds390/ow390/crcutil.c,
4132         * device/examples/ds390/ow390/ownet.h,
4133         * device/examples/ds390/ow390/owsesu.c,
4134         * device/examples/ds390/ow390/swt12.h,
4135         * device/examples/ds390/ow390/swtoper.c,
4136         * device/examples/ds390/ow390/temp10.h,
4137         * device/examples/ds390/ow390/thermodl.c,
4138         * device/examples/ds390/tinitalk/tinitalk.dsp,
4139         * device/examples/ds390/tinitalk/tinitalk.dsw,
4140         * device/examples/mcs51/clock/hw.h,
4141         * device/examples/mcs51/simple2/go.bat,
4142         * device/examples/serialcomm/windows/serial.h,
4143         * device/examples/xa51/dummy.c,
4144         * device/examples/xa51/hello.c,
4145         * device/include/80c51xa.h,
4146         * device/include/at89x051.h: corrected cvs line endings
4147
4148 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
4149
4150         * src/pic16/main.c (options): added command line --gstack, to trace
4151         stack over/under flows,
4152         * added pragma 'wparam' to allow passing first byte of function
4153         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
4154         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
4155         call to __gstack_test function and sets up the symbol as extern,
4156         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
4157         * popaop): added call to pic16_testStackOverflow,
4158         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
4159         wparamList list,
4160         * (genCall, genPcall): now all parameters are passed via stack
4161         except in functions that are pass to wparam pragma in which WREG is
4162         used too,
4163         * (genPcall): REENTRANT flag is checked to see if variable prototype
4164         contains reentrant keyword, don't call a non-reentrant function, via
4165         a reentrant function pointer or vice versa, functions are never
4166         passed via WREG,
4167         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
4168         D.Winkler,
4169         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
4170         SIGSEGV when accessing a NULL register stucture,
4171         * (pic16_printGPointerType): modified to handle UPPER modifier for
4172         function initializers, changed prototype of function to simpler one,
4173         * (pic16_printIvalFuncPtr): check to see if function is already
4174         added in externs list,
4175         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
4176         optimized a move from W to SFR with a move to the same register
4177         later after a CALL,
4178         * device/lib/pic16/debug: NEW directory, contains debug features
4179         which are enabled when linking with libdebug.lib, currently command
4180         line option --gstack enables stack pointer tracing for over/under
4181         flow, corresponding sources are in debug/gstack
4182
4183 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
4184
4185         * doc/sdccman.lyx: updated SDCC version,
4186         * (PIC16 port): update list of command line options,
4187         * src/pic16/device.h (structure pic16_options_t): added field gstack
4188         to enable stack overflow tracing on push/pops,
4189         * src/pic16/device.c (statistics structure): added statistics
4190         structure,
4191         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
4192         pic16_dump_int_registers): increase statistics counters for each
4193         * variable which is encountered
4194         * (pic16_dump_usection): emit each .udata variable to its own udata
4195         section,
4196         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
4197         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
4198         parameters via stack, otherwise use old scheme,
4199         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
4200         assembler output file,
4201         * src/pic16/main.c: added command line options --gstack to enable
4202         push/pop tracing for stack overflow,
4203         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
4204         instructions): added size of each instruction,
4205         * (pic16_countInstruction): estimate size of instructions in
4206         the_pFile list, inline assembly blocks are not counted,
4207         * (pic16_FixRegisterBanking): trace previous register usage, when
4208         banksel optimizations is greater than 0, don't emit a redudant
4209         banksel directive,
4210
4211 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
4212
4213         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
4214         * src/pic16/ralloc.c : applied same fix for pic16.
4215         * src/pic/gen.c : tidied it up a little.
4216
4217 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4218
4219         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
4220         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
4221
4222 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4223
4224         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
4225
4226 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4227
4228         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
4229         non-reentrant function __modsint in the interrupt function (thus
4230         corrupting math operations during serial I/O)
4231         * device/lib/ser_ir.c: as above, changed buffersize
4232         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
4233         256.c,d for zeroing
4234         * doc/Makefile: added option -t for rsync
4235
4236 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4237
4238         * src/SDCCast.h (struct ast),
4239         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
4240
4241 2004-10-20 Borut Razem <borut.razem AT siol.net>
4242
4243         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
4244         package
4245
4246 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
4247
4248         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
4249         makefile targets,
4250         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
4251         support functions to replace long sequences of MOVFF's from access
4252         bank registers to stack and vice versa,
4253         * src/pic16/device.h: added new field opt_flags, where optimization
4254         flags can be set to enable certain features,
4255         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
4256         * pBlock, (genFunction, genEndFunction): surroung loop for
4257         saving/loading used registers in stack with PC_INFO pCodes,
4258         INF_LREGS. Code in between can then be optimized by pCode optimizer
4259         to support function calls,
4260         * (genDataPointerSet): fixed bug which loaded float fields in
4261         structures with corrupt data,
4262         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
4263         in a standard way debug info on stderr. Feature used for developing
4264         and debugging only,
4265         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
4266         obsolete chunks of code,
4267         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
4268         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
4269         * pic16/src/pcode.c (pic16_newpCodeInfo,
4270         * (pic16_newpCodeOpLocalRegs),
4271         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
4272         feature,
4273         * (pic16_pCodeConstString): printing of the initial value of a
4274         symbol as a comment is inhibited since parsing was already done by
4275         copyStr and output is corrupt,
4276         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
4277
4278 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4279
4280         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
4281
4282 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4283
4284         * as/mcs51/lkarea.c: removed old K&R style,
4285           (lnksect): changed check on boundary error,
4286           (lnksect2): changed check on boundary error,
4287           (lnksect2): extend XSTK to end of page if size = 1
4288         * as/mcs51/lkmain.c: removed old K&R style,
4289           (Areas51): create l_IRAM symbol
4290         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
4291         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
4292           model-mcs51-stack-auto, added model-mcs51-xstack-auto
4293         * device/lib/_mullong.c: added version to be compiled with xstack
4294         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
4295         * device/lib/mcs51/crtxclear.asm: clear pdata as well
4296         * device/lib/mcs51/crtxstack.asm: fixed comment
4297         * src/SDCCglue.c: maxInterrupts defaults to 0,
4298           (emitMaps): added pdata,
4299           (createInterruptVect): (re)moved default,
4300           (glue): added pdata,
4301           (glue): moved __start__xstack to XSTK with default size 1
4302         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
4303           and options.float_rent when options.stackAuto is set,
4304           (linkEdit): only write XDATA_NAME if provided on command line
4305         * src/SDCCmem.h,
4306         * src/SDCCmem.c: added pdata
4307         * src/port.h: added pdata_name to PORT
4308         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
4309           (saveRegisters, unsaveRegisters): removed usage of B,
4310           (genMinus): fixed accumulator clash,
4311           (genJumpTab): added comment, this needs another look
4312         * src/mcs51/gen.c: added check for "B in use" paranoia,
4313           added pushB() and popB()
4314         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
4315           chance
4316         * src/avr/main.c,
4317         * src/ds390/main.c,
4318         * src/hc08/main.c,
4319         * src/mcs51/main.c,
4320         * src/pic/main.c,
4321         * src/pic16/main.c,
4322         * src/xa51/main.c,
4323         * src/z80/main.c: (reset_regparms) made void parameter explicit and
4324           added PSEG (PAG,XDATA) or NULL to port specifier
4325         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
4326         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
4327           (_mcs51_genInitStartup): removed __start__xstack equ,
4328           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
4329         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
4330         * src/z80/gen.c (_rleAppend): fixed warnings
4331         * support/regression/tests/zeropad.c: added pdata test
4332         * .version: bumped to 2.4.6
4333
4334 2004-10-17 Borut Razem <borut.razem AT siol.net>
4335
4336         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
4337         as a part of nightly build
4338
4339 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
4340
4341         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
4342         WREG holds the first byte function parameters,
4343         * (aopForSym): take special case for symbols which are in FARSPACE
4344         but in CODESPACE too,
4345         * (assignResultValue): modified to take into account _G.useWreg,
4346         * (genCall): don't use wreg for parameter passing when function is
4347         declared as reentrant, too, added optimization INCF to stack
4348         pointer when stack parameter count is 1,
4349         * (genFunction, genEndFunction): refurnished and fixed to not using
4350         wreg for passing parameters when function has varargs or is
4351         reentrant, fixed bug with symbol name compare for generating
4352         functions in absolute address,
4353         * (pic16_storeForReturn): refurnished,
4354         * (genCmp): began writing a new version of the function, not ready
4355         yet, therefore it is disabled,
4356         * (genAssign): do not read code memory when assigning a function to
4357         a pointer function,
4358         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
4359         array of characters, not pointer,
4360         * (pic16initialComments): in debug mode emit an .ident directive for
4361         the assembler,
4362         * (_process_pragma): emit a new warning type (internal to pic16)
4363         when setting stack to default length, emit a similar warning when
4364         placing a function at absolute address and address is not word aligned
4365         * (_pic16_parseOptions): added 'return TRUE' statement,
4366         * (_pic16_linkEdit): if compiling a source, then add the source's
4367         file object, first in the list of objects to link,
4368
4369 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
4370
4371         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
4372         * src/pic/main.c : removed VC warning.
4373         * src/pic/gen.c : changed comment.
4374
4375 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
4376
4377         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
4378         reference to a deprecated symbol _GPTRREG was causing failure to
4379         link. Thanks G. M. Gallant for the info.
4380
4381 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
4382
4383         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
4384         comments for Bugs item #954788.
4385
4386 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
4387
4388         * src/pic16/device.c (pic16_dump_gsection,
4389         * pic16_groupRegistersInSection): handle symbols declared to be in
4390         access bank differently,
4391         * src/pic16/gen.c (struct _G): added field resDirect,
4392         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
4393         send values read from stack directly to result and don't allocate
4394         temporary values,
4395         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
4396         same registers,
4397         * (pic16_sameRegsOfs): NEW,
4398         * (freeAsmop): if _G.resDirect is set then do not mark registers as
4399         free because they were not allocated from temporary pool,
4400         * pic16_popRegFromString): workaround to fix a problem with
4401         allocating variables twice or never,
4402         * (genGenPointerGet): using PRODL instead of FSR0H,
4403         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
4404         instead of FSR0H,
4405         * (genAssign): take advantage of the _G.resDirect flag,
4406         * (genCast): around line 11844, use mov2f instead of directly
4407         MOVFF'ing between operands to account for literal values,
4408         * src/pic16/genutils.c: some new debug functions for gpsim have been
4409         added,
4410         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
4411         float with integer part only,
4412         * src/pic16/main.c (_process_pragma): handle pragma udata access to
4413         place variables in access bank
4414         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
4415         updated sources to reflect recent changes in gen.c
4416
4417 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
4418
4419         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
4420         sources that searched for headers in installation path, now the
4421         device/include/pic16 is used,
4422         * src/pic16/glue.c (pic16glue),
4423         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
4424         .line directives if not in debug mode, this suppresses assembler's
4425         warnings for ignored directives
4426
4427 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4428
4429         * src/port.h: made reset_regparms prototype void parameter explicit.
4430         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
4431         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
4432         * doc/sdccman.lyx: documented warning disabling and how to use
4433           printf_large to make it print floats.
4434         * device/include/stdbool.h: NEW
4435         * device/lib/_atof.c,
4436         * device/lib/_divuint.c,
4437         * device/lib/_divulong.c,
4438         * device/lib/expf.c,
4439         * device/lib/printf_large.c,
4440         * device/lib/sincosf.c,
4441         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
4442         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
4443           a completely reentrant lib.
4444
4445 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
4446
4447         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
4448         * device/include/pic16/stdio.h: fixed bug with colon
4449
4450 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
4451
4452         * device/include/pic16/stdio.h,
4453         * device/include/pic16/stdlib.h,
4454         * device/include/pic16/math.h: NEW
4455         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
4456         declared as _naked to reduce overhead
4457         * device/lib/Makefile.in (target port-specific-objects-pic16):
4458         changed * to *.* so to ignore the CVS directory,
4459         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
4460         stacked variables back in stack,
4461         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
4462         corruption
4463
4464 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
4465
4466         * .version: bumped version number to 2.4.5
4467         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
4468         * support/Util/SDCCerr.c (messages structure): added entry for
4469         W_POSSBUG2
4470
4471         Large cumulative patch for pic16 port and libraries.
4472         * device/include/pic16/sdcc-lib.h,
4473         * device/include/pic16/stdarg.h,
4474         * device/include/asm/pic16/features.h,
4475         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
4476         * device/include/pic16/float.h: changes reentrant keyword with
4477         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
4478         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
4479         updated target build-libraries to include objects from gptr,
4480         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
4481         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
4482         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
4483         all function headings,
4484         * src/SDCCmain.c: added global parameter userIncDirsSet,
4485         * (parseCmdLine): when option -I is encountered add directory to
4486         userIncDirsSet too,
4487         * src/version.awk: added space between control and long,
4488         * src/pic16/NOTES: added some notes for the port,
4489         * src/pic16/gen.c: added prototype for mov2fp function,
4490         * (fReturnpic16[]): properly named return value registers,
4491         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
4492         * (aopForSym): added code to handle symbols with onStack flag set,
4493         symbols onStack are allocated PTRSIZE bytes,
4494         * (aopFreeAsmop): handles special case where asmops are stack objects,
4495         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
4496         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
4497         added argument lock to trace flaws in allocating temporary registers
4498         when developing port,
4499         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
4500         * (pic16_popRegFromString): reenabled allocating a direct register
4501         from string,
4502         * (assignResultValue): various beautifications,
4503         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
4504         referenced function argument,
4505         * (genIpush): reenabled to allow stacked arguments, handles only
4506         ic->parmPush iCodes,
4507         * (genCall, genPcall): major changes to allow for variable argument
4508         functions, fixed a bug with falsely restoring stack pointer after
4509         returning from call,
4510         * (genFunction): pending code for critical function,
4511         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
4512         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
4513         * (genNearPointerGet): fixed bug with indirect reading, was always
4514         reading from INDF0
4515         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
4516         pointers,
4517         * (genAddrOf): rewrote code to take address of a stacked function parameter
4518         * (genCast): fixed casting to generic pointer type,
4519         * src/pic16/gen.h: added AOP_STA,
4520         * (struct asmop): added field stk,
4521         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
4522         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
4523         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
4524         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
4525         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
4526         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
4527         generic pointers,
4528         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
4529         and library paths,
4530         * (pic16_port structure): generic pointer size is set to 3,
4531         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
4532         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
4533         compiler warning,
4534         * src/pic16/ralloc.c (allocReg): prevent allocating register when
4535         operand is an iTemp,
4536
4537 2004-09-24 Martin Helmling <mh AT octo-soft.de>
4538
4539         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
4540         * debugger/mcs51/simi.c: addapt new syntax of s51
4541
4542 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
4543
4544         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
4545         * src/pic16/pcode.c: commented out some calls to free() in order to
4546         fix bug #989576,
4547
4548 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4549
4550         * src/SDCCicode.h,
4551         * src/SDCCicode.c (isiCodeInFunctionCall),
4552         * src/avr/ralloc.c (selectSpil),
4553         * src/pic/ralloc.c (selectSpil),
4554         * src/pic16/ralloc.c (selectSpil),
4555         * src/ds390/ralloc.c (selectSpil),
4556         * src/hc08/ralloc.c (selectSpil),
4557         * src/xa51/ralloc.c (selectSpil),
4558         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
4559         stack in the middle of a function call sequence (fixes bug #1020268)
4560         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
4561         costs associated with the minimum switch case.
4562
4563 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4564
4565         * src/SDCC.lex: fixed bug #1030549
4566
4567 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4568
4569         * src/SDCCcse.h (struct cseDef),
4570         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
4571         over a function call if the CSE is derived from a symbol whose
4572         address has been taken (fixes bug #1029883)
4573         * support/regression/tests/bug-1029883: a new regression test for
4574         this bug
4575
4576 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4577
4578         * src/hc08/gen.c (emitinline): fixed bug #1029778
4579         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
4580         to a cast object is no longer a syntax error ("fixes" bug #1030006,
4581         and starts toward RFE #905167)
4582
4583 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
4584
4585         * src/pic16/gen.c (mov2f): New function to move an operand to
4586         another without considering if it is a literal or a register,
4587         * (pic16_sameRegs): don't check if they are both AOP_REG,
4588         * (AccRsh): removed andmask=0 lines,
4589         * (genLeftShift): duplicated to be improved in future versions,
4590         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
4591         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
4592         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
4593         * (pic16initMnemonics): added initialization for POC_INFSNZW,
4594         * (insertBankSwitch): fixed inserting banksel directives algorithm
4595         for instructions that follow a skip instruction, this fixes a report
4596         for broken subtraction code generation,
4597         * src/pic16/ralloc.c (deassignLRs): do not free register if current
4598         iCode is a left op, just in case result and right share the same
4599         registers
4600
4601 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4602
4603         * src/hc08/main.c,
4604         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
4605         preservation of HX
4606         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
4607         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
4608         on 2004-09-12; it was buggy
4609
4610 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4611
4612         * src/SDCCsymt.h: removed RESULT_CHECK
4613         * src/SDCCast.c,
4614         * src/SDCCglue.c,
4615         * src/SDCCval.c,
4616         * src/pic/glue.c,
4617         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
4618
4619 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
4620
4621         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
4622         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
4623         configuration values no more rejected by compiler, they are assigned
4624         to configuration registers with a warning message instead,
4625         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
4626         the for-loop so last conf register is emitted too,
4627         * (_pic16_initPaths): link library libsdcc.lib by default,
4628         * (_hasNativeMulFor): modified test for multiplication according to
4629         Raphael Neider's remarks. Integer multiplication is also done with
4630         support functions,
4631         * device/include/pic16/pic18fregs.h: corrected type error in while
4632         testing and including 18f6720 header file
4633
4634 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
4635
4636         * src/pic16/device.h (pic16_options): removed field use_crt,
4637         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
4638         until an optimization to handle single bits is added,
4639         * (pic16_loadFSR0): moved before genUnpackBits,
4640         * (genAnd): some white lines removed,
4641         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
4642         leave_reset flags in pic16_options when using crt modules,
4643
4644 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
4645
4646         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
4647           for bugs 898889 & 979599. Also used some safer print instructions.
4648
4649 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
4650
4651         * src/pic16/device.h (pic16_options_t): added field use_crt,
4652         crt_name, no_crt,
4653         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
4654         catch a probable future bug,
4655         * src/pic16/gen.c: aopIdx function commented out,
4656         * (genAssign): commented out old code which used aopIdx,
4657         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
4658         code, added if conditionals to take into account the --use-crt
4659         command line options,
4660         * src/pic16/main.c (pic16_optionsTable): added new command line
4661         options, --use-crt= and --no-crt,
4662         * (_pic16_linkEdit): now the proper crt object is added in the
4663         linker command line except than when --no-crt is specified,
4664         * src/pic16/pcode.c,
4665         * src/pic16/pcode.h: added some structures and functions for a new
4666         optimization scheme to compansate for instruction overhead between
4667         same iCodes, this scheme is currently under development and is not
4668         working in any way,
4669         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
4670         to && operator,
4671         * device/lib/pic16/startup/crt0i.c,
4672         * device/lib/pic16/startup/crt0iz.c: added global char variable
4673         __uflags to force the generation of an idata section
4674
4675 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
4676
4677         * doc/Makefile,
4678         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
4679         * doc/sdccman.lyx: updated sdcc version to 2.4.4
4680
4681 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4682
4683         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
4684         Frieder) and clarified the default code optimization mode
4685
4686 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4687
4688         * src/SDCC.lex (doPragma, process_pragma),
4689         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
4690         "opt_code_size", and "opt_code_balanced"
4691         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
4692         regrouped options by category, added support for category headers
4693         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
4694         and "--opt-code-size"
4695         * doc/sdccman.lyx: documented these new options and pragmas
4696         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
4697         preference into account
4698
4699 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4700
4701         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
4702           geniCodePreDec): Fixed bug 904237 by generating a warning
4703         * src/SDCCerr.h,
4704         * src/SDCCerr.c: added warning W_SIZEOF_VOID
4705
4706 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
4707
4708         * src/pic/device.c : When no max ram set validate full memory range.
4709         * src/pic/pcode.c,
4710         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
4711
4712 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4713
4714         * device/lib/_gptrget.c,
4715         * device/lib/_gptrput.c: updated comment
4716         * device/lib/calloc.c,
4717         * device/lib/free.c,
4718         * device/lib/malloc.c,
4719         * device/lib/realloc.c: added LGPL, made them reentrant-safe
4720         * src/SDCCcse.c (cseBBlock),
4721         * src/SDCCicode.c (printOperand, geniCodeArray),
4722         * src/SDCCicode.h (struct operand): fixed bug 868103
4723         * support/regression/tests/bug-868103.c: added
4724         * src/SDCCast.c (searchLitOp),
4725         * src/SDCCcse.h (struct cseDef),
4726         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
4727         * src/SDCCicode.h (struct operand),
4728         * src/SDCCsymt.h (struct sym_link),
4729         * src/avr/gen.c (hasInc),
4730         * src/ds390/gen.c (hasInc),
4731         * src/hc08/gen.c (genPlusIncr, hasInc),
4732         * src/mcs51/gen.c (hasInc),
4733         * src/pic16/glue.c (pic16_printIvalChar),
4734         * src/pic16/ralloc.c (regWithIdx),
4735         * src/xa51/gen.c (hasInc) : removed warnings
4736         * src/SDCCast.c (createBlock): added comment ???
4737         * src/hc08/ralloc.c: updated comments
4738
4739 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4740
4741         * doc/sdccman.lyx: updated section on switch statements, added
4742         section about semaphore locking
4743         * doc/Makefile: added option -info for latex2html
4744         * device/lib/_gptrget.c,
4745         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
4746
4747 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4748
4749         * src/pic/device.h,
4750         * src/pic/device.c,
4751         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
4752          maxram is less than 0x100.
4753
4754 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4755
4756         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
4757
4758 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4759
4760         * src/port.h,
4761         * src/mcs51/main.c,
4762         * src/ds390/main.c,
4763         * src/z80/main.c,
4764         * src/hc08/main.c,
4765         * src/pic/main.c,
4766         * src/pic16/main.c,
4767         * src/avr/main.c,
4768         * src/xa51/main.c
4769         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
4770         a jump table is the best form for a switch statement, including
4771         automatic insertion of missing cases to make the case range
4772         continuous. Developed in collaboration with Frieder Ferlemann.
4773
4774 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4775
4776         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
4777         accumulator result if it needs sign extension
4778
4779 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4780
4781         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
4782
4783 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4784
4785         * device/lib/gbz80/printf.c,
4786         * device/lib/z80/printf.c: removed define for NULL
4787
4788 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4789
4790         * as/xa51/xa_link.c,
4791         * device/examples/ds390/ow390/ad26.c,
4792         * device/examples/ds390/ow390/cnt1d.c,
4793         * device/examples/ds390/ow390/counter.c,
4794         * device/examples/ds390/ow390/ds2480.h,
4795         * device/examples/ds390/ow390/ds2480ut.c,
4796         * device/examples/ds390/ow390/findtype.c,
4797         * device/examples/ds390/ow390/gethumd.c,
4798         * device/examples/ds390/ow390/owllu.c,
4799         * device/examples/ds390/ow390/ownetu.c,
4800         * device/examples/ds390/ow390/swt12.c,
4801         * device/examples/ds390/ow390/swtloop.c,
4802         * device/examples/ds390/ow390/temp.c,
4803         * device/examples/ds390/ow390/temp10.c,
4804         * device/examples/ds390/ow390/thermo21.c,
4805         * device/examples/ds390/ow390/tinilnk.c,
4806         * device/examples/ds390/ow390/tstfind.c,
4807         * device/examples/serialcomm/windows/serial.cpp,
4808         * device/examples/serialcomm/windows/test_serialcomm.cpp,
4809         * device/include/reg51.h: fixed line endings for cvs
4810
4811 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4812
4813         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
4814         packRegsForAccUse, packRegisters): new accumulator register
4815         packing algorithm
4816         * support/regression/ports/hc08/support.c (_putchar): suppress
4817         warning of unused variable
4818         * src/SDCCicode.c: added SWAP entry to codeTable
4819
4820 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
4821
4822         * device/lib/sprintf.c: forgot to add this file before previous commit
4823
4824 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
4825
4826         * src/pic16/gen.c (genPackBits): added operand right in function
4827         parameters, load result directly if p_type is POINTER (that is
4828         called by genNearPointerSet)
4829         * (genUnPackBits): added operand left in function parameters,
4830         * (genNearPointerGet, genNearPointerSet): prevent the loading of
4831         FSR0 if accessing bitfields,
4832
4833 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
4834
4835         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
4836           _print_format; updated printf, sprintf, vsprintf
4837         * device/include/asm/default/features.h: corrected comment/define
4838         * device/lib/Makefile.in: added sprintf.c
4839         * device/lib/libsdcc.lib: added sprintf module
4840         * device/lib/printf_large.c,
4841         * device/lib/vprintf.c,
4842         * device/lib/sprintf.c: totally refactored printf_large and vprintf
4843           into these 3 files
4844         * support/regression/Makefile: changed ALL_PORTS into a usefull default
4845         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
4846         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
4847           hc08 test
4848         * support/regression/tests/zeropad.c: define idata as data for hc08
4849
4850 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4851
4852         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
4853         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
4854         labels are referenced at least once (even if a reference is not found)
4855         * src/hc08/gen.c (emitcode): set isComment flag for comments
4856         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
4857         loads), rules 6a..6b (optimize jumps to return)
4858
4859 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4860
4861         * device/lib/acosf.c (acosf),
4862         * device/lib/asinf.c (asinf),
4863         * device/lib/atanf.c (atanf),
4864         * device/lib/ceilf.c (ceilf),
4865         * device/lib/cosf.c (cosf),
4866         * device/lib/coshf.c (coshf),
4867         * device/lib/cotf.c (cotf),
4868         * device/lib/fabsf.c (fabsf),
4869         * device/lib/floorf.c (floorf),
4870         * device/lib/log10f.c (log10f),
4871         * device/lib/logf.c (logf),
4872         * device/lib/sinf.c (sinf),
4873         * device/lib/sinhf.c (sinhf),
4874         * device/lib/sqrtf.c (sqrtf),
4875         * device/lib/tanf.c (tanf),
4876         * device/lib/tanhf.c (tanhf),
4877         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
4878         replaced all instances of "reentrant" in the library functions
4879         defined in math.h with this macro.
4880         * support/regression/tests/float_trans.c: reenabled test for hc08
4881
4882 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4883
4884         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
4885         erroneously deleted
4886
4887 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4888
4889         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
4890         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
4891         multi-byte volatile operands are used
4892         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
4893         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
4894         initialization to area GSINIT0 so that it would always precede
4895         any static initializers in GSINIT
4896         * support/regression/tests/zeropad.c: fixed idata define for hc08
4897         * support/regression/tests/bug-927659.c,
4898         * support/regression/tests/float_trans.c: disabled tests for hc08
4899         pending missing library routines
4900         * .version: increased version number to 2.4.4 - hc08 port now passes
4901         regression tests
4902
4903
4904 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
4905
4906         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
4907         * Makefile.common.in,
4908         * as/Makefile,
4909         * as/hc08/Makefile.in,
4910         * as/mcs51/Makefile.in,
4911         * as/z80/Makefile.in,
4912         * debugger/mcs51/Makefile.in,
4913         * device/include/Makefile.in,
4914         * device/lib/Makefile.in,
4915         * doc/Makefile,
4916         * link/Makefile,
4917         * link/z80/Makefile.in,
4918         * packihx/Makefile.in,
4919         * sim/ucsim/main_in.mk,
4920         * sim/ucsim/avr.src/Makefile.in,
4921         * sim/ucsim/doc/Makefile.in,
4922         * sim/ucsim/gui.src/serio.src/Makefile.in,
4923         * sim/ucsim/hc08.src/Makefile.in,
4924         * sim/ucsim/s51.src/Makefile.in,
4925         * sim/ucsim/xa.src/Makefile.in,
4926         * sim/ucsim/z80.src/Makefile.in,
4927         * src/Makefile.in,
4928         * support/cpp2/Makefile.in,
4929         * support/librarian/Makefile,
4930         * support/makebin/Makefile: added DESTDIR to the install path proposed
4931         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
4932         * doc/sdccman.lyx: added DESTDIR documentation
4933
4934 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
4935
4936         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
4937         instruction for interrupt handlers, use fast returns when returning
4938         from high priority interrupts
4939
4940 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4941
4942         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
4943         code generation
4944         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
4945         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
4946         bugs, ported much of Bernhard's code from mcs51
4947         * src/mcs51/gen.c (genSend),
4948         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
4949         than one when calling a reentrant function
4950         * device/lib/_mullong.c: defined an alternate struct layout for big
4951         endian ports (hc08)
4952
4953 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4954
4955         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
4956         test
4957
4958 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4959
4960         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
4961         are sane and complete before asking the port its prefered parameter
4962         passing method (fixes bug #1017633)
4963         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
4964         and _ret3
4965
4966 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4967
4968         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
4969         problem in bitfields >= 8 bits.
4970
4971 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4972
4973         * src/SDCCsymt.c: undid changes that were not meant to be committed
4974
4975 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4976
4977         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
4978
4979 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4980
4981         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
4982           copied and wrong bit got inverted
4983
4984 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4985
4986         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
4987         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
4988         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
4989         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
4990         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
4991         assignments to bitfields at known addresses
4992         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
4993         reads from bitfields at known addresses
4994         * src/hc08/ralloc.c (packRegisters),
4995         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
4996         genhc08Code): optimize pointer get values used as conditionals
4997         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
4998         and branch
4999
5000 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5001
5002         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
5003         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
5004         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
5005         as conditionals
5006
5007 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5008
5009         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
5010
5011 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5012
5013         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
5014         related problems
5015
5016 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
5017
5018         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
5019
5020 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5021
5022         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
5023         mcs51 port
5024
5025 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5026
5027         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
5028
5029 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5030
5031         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
5032         cases use more compact code.
5033
5034 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
5035
5036         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
5037
5038 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5039
5040         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
5041
5042 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5043
5044         * src/SDCCsymt.h,
5045         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
5046         parameter of changePointer() from symbol* to sym_link*
5047         * src/SDCCast.c (decorateType): call changePointer() for CAST op
5048         * src/SDCCsymt.c (compareType): void* type is castable to other
5049         pointers, but not necesarily an exact match.
5050         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
5051         is no longer blindly treated as an exact match.
5052         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
5053
5054 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
5055
5056         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
5057
5058 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
5059
5060         * src/pic/gen.c,
5061         * src/pic/pcode.c,
5062         * src/pic/ralloc.h,
5063         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
5064
5065 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
5066
5067         * src/pic/device.c,
5068         * src/pic/device.h,
5069         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
5070
5071 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5072
5073         * src/mcs51/gen.c (emitcode): fixed bug #992819
5074
5075 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
5076
5077         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
5078           there's no need to make it worse
5079
5080 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5081
5082         * src/mcs51/ralloc.c (deassignLR),
5083         * src/ds390/ralloc.c (deassignLR),
5084         * src/hc08/ralloc.c (deassignLR),
5085         * src/z80/ralloc.c (deassignLR),
5086         * src/pic/ralloc.c (deassignLR),
5087         * src/pic16/ralloc.c (deassignLR),
5088         * src/avr/ralloc.c (deassignLR),
5089         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
5090         rlivePoint): fixed another part of bug #971834
5091
5092 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5093
5094         * src/z80/main.c: enabled "critical" keyword
5095         * src/z80/mappings.i,
5096         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
5097         functions (fixes bug #979646)
5098         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
5099
5100 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5101
5102         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
5103           such as c:\mydir.
5104
5105 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
5106
5107         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
5108           doesn't disable too much optimizations
5109
5110 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5111
5112         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
5113
5114 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
5115
5116         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
5117
5118 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5119
5120         * src/pic/gen.c tidied up tabs
5121         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
5122         * src/pic/main.c tidied up tabs
5123         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
5124         * src/pic/pcoderegs.c tidied up tabs
5125         * src/pic/ralloc.c tidied up tabs
5126
5127 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
5128
5129         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
5130         to S_FIXED for pic16 port and when symbol is not in level 0,
5131         allocate for S_REGISTER storage class and pic16 port, too,
5132         * src/pic16/device.h: prototype for checkSym,
5133         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
5134         * (pic16_assignConfigWordValue): test the value and the mask to
5135         validate that the value is suitable for the configuration word,
5136         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
5137         collect extern declared symbols, don't emit symbol twice, check
5138         first if symbol is in publics set first,
5139         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
5140         * added command line '--fstack' which enables an experimental
5141         feature for stack access, too buggy to be used yet...
5142         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
5143         * (pic16_allocDirReg): when register has storage class S_REGISTER
5144         allocate in pic16_dynAccessRegs,
5145         * device/include/pic16/pic18f????.h: modified configuration word
5146         naming convention, words started as CONFIG0H but should be CONFIG1H
5147
5148 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5149
5150         * device/include/mcs51reg.h: fixed bug 970993
5151
5152 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
5153
5154         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
5155         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
5156         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
5157         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
5158         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
5159         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
5160           error/warning numbers,
5161           added function setWarningDisabled()
5162         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
5163         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
5164           _memcmp.c _memmove.c calloc.c realloc.c free.c
5165         * support/regression/tests/malloc.c: added tests for new functionality
5166         * support/regression/tests/zeropad.c: added tests for truncated initializers
5167           and initialized char arrays starting with '\x0'
5168         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
5169
5170 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
5171
5172         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
5173
5174 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5175
5176         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
5177         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
5178         peephole 177.e. Thanks to anonymous
5179
5180 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
5181
5182         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
5183         function isn't used in the source but referenced as a
5184         variable initializer then declare it as extern in .asm file
5185
5186 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
5187
5188         * .version: increased version number to 2.4.3
5189
5190         Adding version extension according to ChangeLog CVS revision
5191         * src/Makefile.in (target all): added dependency 'version.h'
5192         * (rule version.h): added rule to create version.h from ChangeLog,
5193         * (rule dep): added dependency version.h,
5194         * src/version.awk: AWK script to create version.h
5195         * src/SDCCdwarf2.c (dwWriteModule),
5196         * src/SDCCglue.c (initialComments),
5197         * src/SDCCmain.c (printVersionInfo): modified to write after
5198         version string the version extension number,
5199         * src/SDCCutil.c: included "version.h"
5200         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
5201         number,
5202         * src/SDCCutil.h: added prototype for getBuildNumber
5203
5204         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
5205         includeDirsSet, too,
5206         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
5207         const char [] is found in function prototype...
5208
5209         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
5210         moving to WREG with source is already in WREG,
5211         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
5212         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
5213         * (aopForSym): stack'ed symbols are partially supported, added
5214         if-clause to support symbols in FARSPACE,
5215         * (sameRegs): added test for AOP_ACC to see if registers are same,
5216         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
5217         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
5218         * (pic16_popRegFromString): will not allocate a new register if it
5219         doesn't find one by name, bug may have introduced...
5220         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
5221         * (genIpush): revived to use pic16 port's stack,
5222         * (genAddrOf): added incomplete case for stack'ed operand,
5223         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
5224         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
5225         can handle multibyte operands,
5226         * src/pic16/glue.c (pic16_printIval*): some debug info added,
5227         * (pic16initialComments): added message for MPLAB compatibility
5228         mode enabled,
5229         * src/pic16/main.h: prototype for pic16_mplab_comp,
5230         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
5231         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
5232         * (_pic16_linkEdit): NEW, handles link stage, transferred here
5233         because of increased complexity of procedure,
5234         * (_process_pragma): stack pragma changed to format 'stack pos len',
5235         emit symbol '_stack_end' to conform with gplink,
5236         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
5237         to search for register,
5238         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
5239         PO_GPR_REGISTER,
5240         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
5241         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
5242         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5243         case for PO_GPR_REGISTER,
5244         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
5245         dies, the new era is ahead !...
5246         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
5247         pic16_dynInternalRegs,
5248         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
5249         * (pic16_allocDirReg): minor optimizations and bug fixes,
5250         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
5251
5252         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
5253         load stack and frame pointer with address of 'stack_end' symbol
5254
5255 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
5256
5257         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
5258         without source code but only variable initializers
5259
5260 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
5261
5262         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
5263         external are not declared as extern to reduce overhead while linking
5264
5265 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
5266
5267         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
5268
5269 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
5270
5271         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
5272           Yee Keat for the patch
5273         * src/SDCCast.c (decorateType): fixed bug #979599
5274         * src/ds390/gen.h: removed local fReturnSizeDS390
5275         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
5276         * src/ds390/gen.c (genAnd, genOr, genXor),
5277         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
5278
5279 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
5280
5281         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
5282         add relFilesSet to $3, manipulate $2 to handle linking of object
5283         files without source files in command line,
5284         * device/include/pic16 (all headers): added ID location macros,
5285         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
5286         entries for ID location bytes,
5287         * (pic16_assignIdByteValue): NEW,
5288         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
5289         added field dumpcalltree to pic16_options_t,
5290         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
5291         is used instead of pic16_Gstack_base_addr, check if (ifx) before
5292         emitting rFalseIfx label after check_carry label,
5293         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
5294         pic16_emitDIRegs), NEW
5295         * (pic16glue): dump .calltree file when option --calltree found,
5296         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
5297         * (_pic16_genAssemblerPreamble): emit ID locations after
5298         configuration registers,
5299         * (pic16_linkCmd): modifications of the link command,
5300         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
5301         * (pic16_pCodeInitRegisters): don't init stack registers,
5302         * (pic16_findPrevInstruction): fixed bug,
5303         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
5304         bug with immediate registers,
5305         * (buildCallTree): traces stack push and pop,
5306         * (pct2): dump also stack usage for each function,
5307         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
5308         * (pic16_allocDirReg): various modifications,
5309         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
5310         fixed to 1,
5311
5312 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
5313
5314         * src/pic16/pcode.c: removed buggy double colon
5315
5316 2004-07-01 Borut Razem <borut.razem AT siol.net>
5317
5318         * support/scripts/sdcc.nsi: added include/pic16 to setup
5319
5320 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
5321
5322         * device/lib/Makefile.in: fixed bug in target objects-pic16,
5323         * device/lib/pic16/Makefile: prefixed with dash (-) command under
5324         target 'clean',
5325         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
5326         specific command line arguments. Also added sample lkr script
5327         for placing a variable at a specific memory bank.
5328         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
5329         at a specific memory bank,
5330         * (pic16_dump_isection): fixed bug which caused string literals to
5331         be omitted when dumping idata section,
5332         * (pic16_groupRegistersInSection): added code to handle registers
5333         in specific memory banks,
5334         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
5335         public, all references are renamed too,
5336         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
5337         AOP_DPTR2,
5338         * (pic16_storeForReturn): added case to handle when dest is WREG,
5339         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
5340         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
5341         pic16_rel_udata, check to see if that register is marked as being
5342         a member of a specific memory bank,
5343         * (pic16_printIvalCharPtr): added code to add string literals either
5344         to code or the idata sections,
5345         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
5346         also accept the 'udata' pragma,
5347         * src/pic16/main.h: new structure types sectName and sectSym
5348         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
5349         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
5350         * (pic16_findPrevInstruction): fixed, it returned nothing,
5351         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
5352         instruction combinations,
5353         * (pic16_FixRegisterBanking): heavily reorganised,
5354         * (pic16_AnalyzeBanking): if generating banksel directives is
5355         disabled, then don't call FixRegisterBanking at all,
5356         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
5357         completely removed,
5358         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
5359
5360 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5361
5362         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
5363         Phuah Yee Keat <yk.phuah AT nestac.com>
5364
5365 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5366
5367         * src/pic16/glue.c (pic16createInterruptVect): function now emits
5368         correctly the IVT even if it is relocated to some other location
5369
5370 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5371
5372         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
5373         * device/include/pic16/pic18f2220.h: NEW,
5374         * device/lib/pic16/libdev/pic18f2220.c: NEW,
5375         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
5376         * src/pic16/device.c (struct Pics16): added info for 18f2220,
5377         * src/pic16/device.h (struct pic16_options): added ivt_loc and
5378         nodefaultlibs, ivt_loc is the location of the interrupt vector
5379         table, and nodefaultlibs signs that default libraries should not be
5380         linked in link stage,
5381         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
5382         according to --ivt-loc argument,
5383         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
5384         when pragma stack is found,
5385
5386 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5387
5388         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
5389         256 (range check), 257 (do while), 258.a-f (bit banging
5390         f.e. on 3-wire SPI bus)
5391
5392 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5393
5394         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
5395         variables used exclusively within a loop
5396
5397 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
5398
5399         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
5400
5401 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5402
5403         * src/SDCClrange.c (computeClash): fixed bug #971834
5404
5405 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5406
5407         * src/mcs51/gen.c (genCmp): fixed bug #975903
5408         * src/hc08/gen.c (operandsEqu),
5409         * src/ds390/gen.c (operandsEqu),
5410         * src/z80/gen.c (operandsEqu),
5411         * src/pic/gen.c (operandsEqu),
5412         * src/pic16/gen.c (operandsEqu),
5413         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
5414         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
5415
5416 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5417
5418         * src/SDCCcse.c (cseBBlock): fixed bug #966963
5419
5420 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
5421
5422         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
5423         default case in switch statement,
5424         * glue.c (pic16_initPointer): expr is initialised via decoarteType
5425         to eliminate problem with initialisation of pointers, but problem
5426         still exists,
5427         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
5428         * (emitStaticSegment): removed various lines emitting debug info,
5429         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
5430         added processor registers for utilizing EEPROM,
5431         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
5432         configurable and set 8
5433
5434 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
5435
5436         * .version: increased version number to 2.4.2,
5437
5438         Cumulative patch for pic16 port
5439         * src/pic16/device.c: changed scheme to dump initial values for
5440         variables in idata segment, all print_idata* functions were removed,
5441         now the pic16_printIval* will be called,
5442         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
5443         * _pic16_printPointerType, pic16_printPointerType,
5444         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
5445         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
5446         NEW, similar to the respective functions in SDCCglue.c,
5447         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
5448         way, emitting hex bytes,
5449         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
5450
5451 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5452
5453         * src/avr/ralloc.c (serialRegAssign),
5454         * src/xa51/ralloc.c (serialRegAssign),
5455         * src/pic/ralloc.c (serialRegAssign),
5456         * src/pic16/ralloc.c (serialRegAssign),
5457         * src/hc08/ralloc.c (serialRegAssign),
5458         * src/z80/ralloc.c (serialRegAssign),
5459         * src/ds390/ralloc.c (serialRegAssign),
5460         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
5461
5462 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5463
5464         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
5465         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
5466
5467 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
5468
5469         Cumulative patch for pic16 port:
5470         * src/pic16/device.h (typedef PIC16_device) modified fields for
5471         defining microcontrollers,
5472         * src/pic16/device.c: added new info for all devices in Pics16 array,
5473         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
5474         to be optimised out by the pCode optimiser,
5475         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
5476         specially, bug reported by G.M. Gallant,
5477         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
5478         as force'd so that cannot be optimised out by pCode optimiser,
5479         * src/pic16/pcode.c,
5480         * src/pic16/pcodepeeph.c,
5481         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
5482         they are disabled by default, but can be enabled explicit with
5483         command argument --denable-peeps, for testing,
5484         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
5485         --pomit-ivt in COMPILE_FLAGS
5486
5487 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5488
5489         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
5490           compilation on MSVC
5491
5492 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5493
5494         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
5495
5496 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5497
5498         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
5499         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
5500
5501 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
5502
5503         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
5504         would only assign 0x300001 register.
5505
5506 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
5507
5508         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
5509         in COMPILE_FLAGS. Thanks to G. Gallant for report.
5510
5511 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5512
5513         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
5514         for ds80c400
5515         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
5516         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
5517         added peephole 254 (left shift), 255 (jump table)
5518
5519 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
5520
5521         * device/lib/Makefile.in: removed comment line with model-pic16,
5522         * (target port-specific-objects-pic16): the libraries and objects
5523         are copied to the build directory form the device/lib/pic16/bin
5524         directory
5525
5526         Cumulative patch concerning pic16 port:
5527         * library directory has been re-organized,
5528         * added support for PIC18F1220,
5529         * added headers and library sources for chips 18f1220,18f6520,
5530         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
5531
5532         * configuration registers setting has changed, now each supported
5533         device has a complete description of the registers it uses,
5534         * all initialisations are moved to idata sections, these section
5535         can be absolute or relocatable,
5536         * fixed initialisation of codespace variables,
5537         * fixed warning about PCLATU and gpsim,
5538         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
5539         * (genAssign): use table reads when assigning from variables in codespace,
5540         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
5541         char/int variables placed in codespace,
5542         * (pic16_emitConfigRegs): NEW, emits a list with configuration
5543         registers set in .asm file, no need for --pomit-config-words anymore,
5544         * (pic16glue): some 8051 legacy segments are commented out
5545         (to be removed completely),
5546         * added support for alternative assembler and linker with --asm=
5547         and --link= command line arguments,
5548         * peepholes are disabled automatically in the port, no need to
5549         specify on command line,
5550         * port supports natively char/int/long multiplication, but converts
5551         all divisions to support functions,
5552         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
5553         to the file set in variable $2,
5554         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
5555         strings in ASCII format and not in hex,
5556         * ralloc.c (serialRegAssign): added a triplet of conditional calls
5557         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
5558         allocate proper register if iCodes aren't temporary,
5559
5560 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5561
5562         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
5563
5564 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
5565
5566         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
5567         is commented out
5568
5569 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5570
5571         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
5572         computed address is reused
5573         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
5574         multi-byte bitfields
5575
5576 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5577
5578         * src/z80/gen.c: (genArrayInit): must check for pointers too
5579
5580 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5581
5582         * support/regression/tests/zeropad.c: never meant to commit the
5583           nestedstruct test: removed, added check for GCC version
5584
5585 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
5586
5587         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
5588         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
5589         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
5590           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
5591           bugs 928906 and 954082 half-empty initializers
5592         * src/SDCCsymt.h,
5593         * src/SDCCsymt.c (getAllocSize): added for above fix
5594         * src/z80/gen.c (genArrayInit): fixed bug 741044
5595         * support/regression/tests/zeropad.c: added tests
5596
5597 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
5598
5599         * src/pic16/device.c (pic16_dump_section): corrected bug which
5600         caused some symbols of the libraries to be misplaced
5601
5602 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5603
5604         * src/pic16/glue.c,
5605         * src/pic16/ralloc.h,
5606         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
5607         to fix conflict with pic port
5608
5609 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5610
5611         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
5612         externs configuration variables,
5613         * src/pic16/ralloc.h,
5614         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
5615         prototype in header, commented out some debug messages
5616
5617 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
5618
5619         * src/pic16/glue.c,
5620         * src/pic16/main.c,
5621         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
5622         for gpasm COFF object generation. Thanks to D. Hawkins for
5623         his patch info
5624
5625 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5626
5627         * src/ds390/main.c,
5628         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
5629         Brock for spotting this)
5630         * src/ds390/gen.c (genEndFunction),
5631         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
5632         interrupt handler and critical. Disable push/pop optimizations when
5633         peephole optimizations disabled.
5634
5635 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5636
5637         Updated pic16 library sources and headers.
5638         * device/lib/pic16/pic18f*/ ,
5639         * device/include/pic16/*.h: modified to handle structured SFR
5640         definitions
5641
5642 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5643
5644         * src/port.h (PORT structure): added hook initPaths, now each
5645         port can declare its own default search paths,
5646         which can been seen with the --print-search-dirs option,
5647         see pic16 port for example,
5648         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
5649         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
5650         * (doPrintSearchDirs): NEW, replaces in a central manner the
5651         printing of search dirs which was split in set*Paths functions,
5652         * (main): added call to port->initPaths and doPrintSearchDirs,
5653         * src/avr/main.c,
5654         * src/ds390/main.c,
5655         * src/hc08/main.c,
5656         * src/izt/i186.c,
5657         * src/izt/tlcs900h.c,
5658         * src/mcs51/main.c,
5659         * src/pic/main.c,
5660         * src/pic16/main.c: modified port structures to reflect addition of
5661         initPaths hook,
5662
5663         * src/pic16/device.c (regCompare): registers are finally sorted by name,
5664         * (pic16_dump_section): for registers in same address reserve memory once,
5665         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
5666         to no_banksel,
5667         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
5668         result is greater in size than right or left,
5669         * (pic16_genUMult8X8_8): there are some cases where the result can
5670         be 16 bits size, so handle these,
5671         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
5672         * (pic16_outBitC): modified to emit pcodes,
5673         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
5674         or not,
5675         * (genDivOneByte): implemented algorithm to divide 8-bits,
5676         * (genCmp): uncommented goto, but issues still exist,
5677         * (genAnd): fixed a bug with variables >8bits,
5678         * (genPackBits): optimization added that uses BCF/BSF to change a
5679         single bit,
5680         * (genAssign): fixed bug when assigning floating point literals,
5681         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
5682         __sdcc_gsinit_startup label,
5683         * src/pic16/main.c (_pic16_init): removed search directory
5684         initialisations,
5685         * (_pic16_initPaths): NEW, used to initialise search directories,
5686         * (_hasNativeMulFor): support functions for all except char/int
5687         multiplication, and char division,
5688         * (PIC16_port struct): modified entry for native mul support,
5689         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
5690         no_banksel option,
5691         * (buildCallTree): call to register_usage is ifdef'ed out,
5692
5693 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5694
5695         * device/include/string.h: applied Stas Sergeev's patch to make this
5696         header file compatible with the preprocessor -Wundef option
5697         * src/SDCCmain.c (main): abort compilation if preprocessor reports
5698         failure (fixes bug #941458)
5699
5700 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5701
5702         * src/SDCCopt.c (killDeadCode): fixed bug #907733
5703         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
5704         that the variable, not the function, should be static
5705         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
5706         to be consistent with non-literal case
5707
5708 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5709
5710         * src/SDCCast.c (isConformingBody): fixed bug #949967
5711         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
5712         convilong): fixed bug #952086
5713
5714 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5715
5716         * src/SDCCmem.c (allocVariables): fixed bug #955321
5717
5718 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5719
5720         * src/hc08/main.c (_hc08_genAssemblerEnd),
5721         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
5722         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
5723         completely eliminated the use of a temporary file
5724         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
5725         when more than one file linked
5726         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
5727
5728 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5729
5730         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
5731         which fixes bug #543481
5732         * support/regression/tests/bug-751703.c: fixed comments left from a
5733         cut and paste error
5734         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
5735         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
5736         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
5737         scopes
5738         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
5739         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
5740         are now changed to underscores in moduleName
5741
5742 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5743
5744         * as/mcs51/lkmem.c: better fix for bug #954173
5745
5746 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5747         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5748
5749         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
5750         * device/include/c8051f000.h,
5751         * device/include/c8051f120.h,
5752         * device/include/c8051f300.h,
5753         * device/include/c8051f310.h,
5754         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
5755         PWM16) and detab'ed
5756
5757 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5758
5759         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
5760         and mailing lists, doc'ed --no-peep-comments, removed reference
5761         to knoppix (newest version has no LyX/LaTeX), other minor changes
5762         * src/SDCCglue.c (glue): save 2 bytes stack space with
5763         option --main-return. The ljmp could probably be avoided too
5764
5765 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5766
5767         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
5768
5769 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5770
5771         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
5772         * src/SDCCopt.c (isLocalWithoutDef),
5773         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
5774         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
5775         (credit to Maarten Brock for patch #949363, on which this is based)
5776         * support/regression/tests/bug-751703.c: some test cases of extern used
5777         within inner scopes.
5778
5779 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5780
5781         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
5782         SPEC_STRUCT
5783         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
5784         struct definitions
5785         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
5786         dwWriteLabel): fix to create valid debugger symbols even when
5787         the module name has non-alphanumeric symbols in it
5788         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
5789         when a variable's allocation has been optimized away
5790
5791
5792 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5793
5794         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
5795         * src/hc08/main.c,
5796         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
5797         * src/mcs51/main.c,
5798         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
5799         * src/ds390/main.c,
5800         * src/z80/gen.c (z80_emitDebuggerSymbol),
5801         * src/z80/main.c,
5802         * src/pic/gen.c (pic14_emitDebuggerSymbol),
5803         * src/pic/main.c,
5804         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
5805         * src/pic16/main.c,
5806         * src/avr/gen.c (avr_emitDebuggerSymbol),
5807         * src/avr/main.c,
5808         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
5809         * src/xa51/main.c,
5810         * src/SDCCdebug.c (emitDebuggerSymbol),
5811         * src/SDCCdebug.h,
5812         * src/port.h: added a debugger struct to the port struct. Added a
5813         callback for defining debugger symbols
5814
5815         * src/SDCCast.c (createLabel),
5816         * src/SDCC.y (labeled_statement): mark all compiler generated labels
5817         with isitmp = 1
5818         * src/SDCCicode.h,
5819         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
5820         iCode back to the ast for the function
5821
5822         * src/hc08/ralloc.c (hc08_assignRegisters),
5823         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
5824         unneeded fields from the regs struct.
5825         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
5826         pushReg() & pullReg() functions instead of emitcode()
5827
5828         * src/hc08/gen.c (genLabel, genhc08Code),
5829         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
5830
5831         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
5832         debugger hooks
5833
5834         * src/hc08/gen.c (genEndFunction, genhc08Code),
5835         * src/hc08/gen.h,
5836         * src/mcs51/gen.c (genEndFunction, gen51Code),
5837         * src/mcs51/gen.h,
5838         * src/ds390/gen.c (genEndFunction, gen390Code),
5839         * src/ds390/gen.h,
5840         * src/z80/gen.c (genEndFunction, genZ80Code),
5841         * src/z80/gen.h,
5842         * src/z80/z80.h,
5843         * src/pic/gen.c (genEndFunction, genpic14Code),
5844         * src/pic/gen.h,
5845         * src/pic16/gen.c (genEndFunction, genpic16Code),
5846         * src/pic16/gen.h,
5847         * src/avr/gen.c (genEndFunction, genAVRCode),
5848         * src/avr/gen.h,
5849         * src/xa51/gen.c (genEndFunction, genXA51Code),
5850         * src/xa51/gen.h,
5851         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
5852         specific code to cdbFile.c and out of the backend code generators
5853
5854         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
5855         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
5856         starting address is now 0
5857
5858         * as/hc08/asm.h,
5859         * as/hc08/m08pst.c,
5860         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
5861         assembler directive for DWARF support
5862         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
5863
5864         * src/src.dsp,
5865         * src/Makefile.in,
5866         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
5867
5868 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5869
5870         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
5871         and inappropriate peephole optimization in jump tables
5872
5873 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5874
5875         * as/hc08/m08pst.c,
5876         * src/SDCCglue.c: sdccopt works for the hc08 port now
5877
5878 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
5879
5880         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
5881
5882 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5883
5884         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
5885
5886 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5887
5888         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
5889         rules
5890         * src/SDCCmain.c,
5891         * src/SDCCglobl.h,
5892         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
5893         comments from the peephole optimizer replacement rules
5894         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
5895         symbols
5896         * src/SDCCcse.c (updateSpillLocation),
5897         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
5898         equivalents
5899         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
5900         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
5901         objects far pointers
5902
5903 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5904
5905         * src/SDCCsymt.h: a missing part of my last change
5906         * src/pic/ralloc.c (regTypeNum),
5907         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
5908
5909 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5910
5911         * src/SDCCicode.h,
5912         * src/SDCCicode.c (aggrToPtrDclType),
5913         * src/SDCCptropt.h,
5914         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
5915         ptrPseudoSymConvert),
5916         * src/pic/ralloc.c (regTypeNum),
5917         * src/pic16/ralloc.c (regTypeNum),
5918         * src/hc08/ralloc.c (regTypeNum),
5919         * src/ds390/ralloc.c (regTypeNum),
5920         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
5921         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
5922
5923 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5924
5925         * link/z80/lkmain.c (afile),
5926         * as/hc08/lkmain.c (afile),
5927         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
5928         prevent a pointer problem when a filename has no directory and
5929         no extension specified.
5930
5931 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5932
5933         * link/z80/lkmain.c (afile): allow periods in directory names
5934         * link/z80/lkmain.c (afile),
5935         * as/mcs51/lkmain.c (afile),
5936         * as/hc08/lkmain.c (afile): allow linker script file to have an
5937         extension other than ".lnk"
5938         * link/z80/lklex.c (getfid),
5939         * link/z80/lkmain.c (parse),
5940         * as/mcs51/lklex.c (getfid),
5941         * as/mcs51/lkmain.c (parse),
5942         * as/hc08/lklex.c (getfid),
5943         * as/hc08/lkmain.c (parse): Support comments in the linker script
5944         file on lines by themselves and after filenames
5945
5946 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5947
5948         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
5949
5950 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5951
5952         * src/z80/peeph-z80.def: removed some peephole rules that don't
5953         work with multibyte arithmetic (fixed bug #937126)
5954         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
5955         to registers and not global variables
5956         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
5957         geniCodePreInc, geniCodePostDec, geniCodePreDec,
5958         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
5959         checking for assignments not internally generated (fixed bug #931895)
5960         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
5961         structure member (fixed bug #930072)
5962
5963 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5964
5965         * src/SDCCmain.c (linkEdit),
5966         * src/hc08/main.c (_hc08_parseOptions),
5967         * as/hc08/Makefile.in,
5968         * as/hc08/aslink.h,
5969         * as/hc08/asm.h,
5970         * as/hc08/m08pst.c,
5971         * as/hc08/lkrloc.c (relr, rele),
5972         * as/hc08/lkarea.c (lnkarea)
5973         * as/hc08/lkmain.c (afile, parse),
5974         * as/hc08/lkelf.c: support for ELF output
5975         * as/hc08/lks19.c (s19),
5976         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
5977
5978 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5979
5980         * as/mcs51/lkihx.c: Fixed bug #899105.
5981
5982 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5983
5984         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
5985         .dsp files from Unix to DOS.
5986
5987 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5988
5989         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
5990         function pointers; we have been compliant for several months now.
5991         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
5992         change that was accidently commented out
5993         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
5994         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
5995         bug #922319
5996
5997 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5998
5999         * src/hc08/gen.c: output of all of the internal debugging information
6000         is now controlled by the D() macro; it is disabled by default
6001
6002 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6003
6004         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
6005         harder to keep the same registers during a CAST iCode
6006         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
6007         long via int can be done in a single cast, if the signedness is
6008         correct.
6009         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
6010         putchar() in tinibios.c in ds390's library
6011
6012 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
6013
6014         * src/SDCCast.c (decorateType): fixed bug #898889,
6015         cast result of a literal complement too
6016         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
6017         fixed check for bitfields
6018
6019 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
6020
6021         * src/SDCCicode.c (geniCodeLogic): made it static,
6022         (geniCodeLogicAndOr): added in order to fix bug #905492,
6023         (ast2iCode): fixed bug #905492
6024         * support/regression/tests/bug-905492.c: added
6025         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
6026         (processParms): fixed bug #927659: don't copy parms, this will clear
6027         decorated flag
6028         * support/regression/tests/bug-927659.c: added
6029
6030 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
6031
6032         * src/SDCCast.c (addCast): don't cast float to char
6033         * device/lib/libsdcc.lib: added _memmove
6034
6035 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
6036
6037         * device/lib/large/Makefile: fixed parallel execution by
6038         replacing `make` by `$(MAKE)`
6039
6040 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6041
6042         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
6043         offsets (fixes bug #923936)
6044
6045 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
6046
6047         * device/lib/small/Makefile: fixed parallel execution by
6048         replacing `make` by `$(MAKE)`
6049
6050 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6051
6052         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
6053
6054 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
6055
6056         * src/pic/gen.c (genCpl): multi-byte complements were not working.
6057         * src/regression/Makefile: Regression test was not running.
6058
6059 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6060
6061         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
6062         complement if possible
6063         * src/SDCCval.c (valComplement),
6064         * src/SDCCicode.c (operandOperation): fixed complement of literal
6065         * support/regression/tests/onebyte.c (testComplement): added
6066
6067 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
6068
6069         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
6070         return an optimized tree; actually replace actParm with the new tree
6071         * src/SDCCast.h: added some parantheses to remove side effects
6072         * support/regression/tests/bug-920866.c
6073
6074 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
6075         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
6076         Bit operands were not being handled properly in the pic14 port.
6077         (now src/regression/add.c passes again).
6078
6079 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6080
6081         * src/SDCC.y (labeled_statement): case and default no longer require
6082         a following statement (RFE #893037)
6083
6084 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6085
6086         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
6087         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
6088         disabled (fixes bug #916294)
6089         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
6090         "mov a,acc"; patch provided by Lenny Story
6091         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
6092
6093 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6094
6095         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
6096         functions
6097         * src/ds390/gen.c (genFunction, genEndFunction),
6098         * src/ds390/ralloc.c (ds390_assignRegisters),
6099         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
6100         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
6101         pushed if there are parameters passed on the stack. Also, a cleaner
6102         way to decide if r0/r1 should be pushed/popped. (Together they fix
6103         bug #918693)
6104
6105 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6106
6107         * doc/sdccman.lyx,
6108         * device/lib/mcs51/crtpagesfr.asm,
6109         * device/lib/mcs51/crtxinit.asm,
6110         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
6111         to avoid confusion with Si Lab's SFRPAGE register.
6112
6113 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6114
6115         * src/SDCCglue.c (emitMaps): allow public sfr variables
6116         * src/SDCCglue.c (initialComments): include compiler build date
6117         with compiler version and put the timestamp of the generated
6118         assembly file on a serperate line to be less confusing.
6119         * src/port.h: added genInitStartup hook
6120         * src/avr/main.c,
6121         * src/ds390/main.c,
6122         * src/hc08/main.c,
6123         * src/pic/main.c,
6124         * src/pic16/main.c,
6125         * src/xa51/main.c,
6126         * src/z80/main.c: genInitStartup initialize as NULL (default to
6127         historical behaviour)
6128         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
6129         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
6130         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
6131         library instead of hard coding it into the compiler.
6132         * support/regression/ports/mcs51-stack-auto/spec.mk,
6133         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
6134         * device/lib/mcs51/Makefile,
6135         * device/lib/small/Makefile,
6136         * device/lib/large/Makefile,
6137         * device/lib/mcs51/crtpagesfr.asm,
6138         * device/lib/mcs51/crtstart.asm,
6139         * device/lib/mcs51/crtxclear.asm,
6140         * device/lib/mcs51/crtxinit.asm,
6141         * device/lib/mcs51/crtclear.asm,
6142         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
6143         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
6144         and into user configurable files.
6145         * device/lib/clean.mk: clean mcs51 directory too
6146         * support/regression/tests/longlit.c: added static to T1 declaration
6147         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
6148         accesses in the initialization code
6149
6150 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6151
6152         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
6153         OSCTRIMVAL as noted in bug #916008
6154
6155 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6156
6157         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
6158         in loops with multiple exits (reported as incorrect registers
6159         used by Martin Helmling in Sdcc-user list)
6160
6161 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6162
6163         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
6164         made ds390 register extensions look less like error messages
6165
6166 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6167
6168         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
6169         reported by Adam Wozniak in Sdcc-user list
6170
6171 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
6172
6173         * src/SDCCast.c (decorateType): fixed with bug and promotion in
6174         arithmetic optimizations, added debug output
6175
6176 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
6177
6178         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
6179         * sdcc.spec: updated and split sdcc into 3 rpms
6180         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
6181         needed for literals of LEFT_OP and '+'
6182         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
6183         introduced RESULT_TYPE_NOPROM
6184         (geniCodeMultiply): fixed logic for decision if mul is optimized to
6185         left shift
6186         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
6187         limited promotion to int only for '*'
6188         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
6189
6190 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
6191
6192         * src/pic16/gen.c (genSkip),
6193         (genc16bit2lit), (gencjneshort): commented out
6194         (is_LitOp): new helper function, checks operand type
6195         (genCmpEq): rewritten
6196
6197 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
6198
6199         * support/regression/tests/bug-908454.c: added
6200
6201 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
6202
6203         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
6204         * src/SDCCicode.c (usualBinaryConversions): op needs int type
6205         (geniCodeCast): cosmetic, don't preserve bit storage class
6206         (geniCodeLeftShift): added promotion
6207         (geniCodeLogic): fixed regression
6208         * src/SDCCsymt.c (computeTypeOr): accept bits too
6209         (compareType): 2nd part of fix for bug #908454, needed for bitfields
6210
6211 2004-03-07  Borut Razem <borut.razem AT siol.net>
6212
6213         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
6214
6215 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
6216
6217         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
6218         version of pic16_genPackRegisters which does not check if ic is a
6219         CAST operator,
6220         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
6221         function cause string1.c regression test fails
6222
6223 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
6224
6225         * sim/ucsim/configure.in,
6226         * sim/ucsim/configure,
6227         * sim/ucsim/doc/Makefile.in: use docdir
6228         * src/SDCC.y: fixed sbit atrributes
6229         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
6230         * src/SDCCast.c (decorateType): |^& need special promotion handling
6231         * src/SDCCast.h,
6232         * src/SDCCsymt.h: moved definition of RESULT_TYPE
6233         * src/SDCCsymt.h (computeType),
6234         * src/SDCCicode.c: computeType() needs op
6235         * src/SDCCsymt.c (checkTypeSanity),
6236         * doc/sddman.lyx: "plain" bitfields are unsigned
6237         * src/SDCCsymt.c (computeTypeOr): added
6238         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
6239         |^& ops
6240         * src/SDCCval.c (val*): computeType() needs op
6241         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
6242         * support/regression/tests/onebyte.c: added tests for |^&
6243
6244 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
6245
6246         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
6247         for writing icode into asm output.
6248
6249 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
6250
6251         * src/pic16/device.c: added some debug lines enabled
6252         with macro DEBUG_CHECK,
6253         * src/pic16/genarith.c: more debug in genPlus,
6254         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
6255         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
6256         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
6257         * (aopForSym): onStack symbols are re-placed in data memspace,
6258         and onStack flag is cleared,
6259         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
6260         copy temporary pcodeop,
6261         * (genPcall): added warning for not updating PCLATU,
6262         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
6263         always true for pic16 port,
6264         * (genMultOneWord): NEW, supports integer multiplication,
6265         * (genMult): modified to call genMultOneWord,
6266         * (ifxForOp): added warning when return NULL,
6267         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
6268         flag is set before call to operandFromSymbol for implicit
6269         added structures,
6270         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
6271         options.intlong_rent are set by default,
6272         * (_hasNativeMulFor): modified to allow port generation of integer
6273         multiplication,
6274         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
6275         set regtype to REG_SFR for all registers, restricting seting the
6276         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
6277
6278 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6279
6280         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
6281         more than 500 times in the regression tests
6282
6283 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6284
6285         * support/Util/SDCCerr.h,
6286         * support/Util/SDCCerr.c,
6287         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6288         enumerator_list),
6289         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
6290         for symbol conflicts.
6291         * support/valdiags/tests/enum.c,
6292         * support/valdiags/tests/tentdecl.c,
6293         * support/valdiags/tests/struct.c: expect possible error messages
6294         referring to original symbol definitions.
6295         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
6296         * src/SDCCsymt.h,
6297         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
6298
6299 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
6300
6301         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
6302
6303 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
6304
6305         * src/pic16/ralloc.c (newReg): fixed bug #908929
6306
6307 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6308
6309         * src/ds390/gen.c: added missing #include "main.h"
6310
6311 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
6312
6313         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
6314         checking if symbol is already in set,
6315         * src/pic16/device.h: prototype for checkAddSym,
6316         * src/pic16/gen.c: (_G): added entry interruptvector,
6317         * (assignResultValue): removed some commented out lines,
6318         * (genFunction): check for ISR via sym->type, absolute section for
6319         interrupt code is created via a new pBlock, the goto instruction is
6320         placed now correctly at the interrupt vector position, changed all
6321         references from ivec to _G.interruptvector,
6322         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
6323         is the interrupt is a high priority one, same for return from ISR,
6324         * src/pic16/glue.c: changed all calls of addSetHead for publics and
6325         externs to calls of checkAddSym,
6326         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
6327         pic16_pcode_verbose flag is set,
6328         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
6329         * src/pic16/pcoderegs.c: message about how many registers are saved
6330         will only be emitted if pic16_pcode_verbose flag is set,
6331
6332 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6333
6334         * src/ds390/ralloc.h,
6335         * src/ds390/ralloc.c (ds390_regWithIdx),
6336         * src/ds390/gen.c (emitcode),
6337         * src/ds390/main.h,
6338         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
6339         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6340         ds390operandCompare, getRegsRead, getRegsWritten,
6341         initializeAsmLineNode): customized instruction size calculation for
6342         ds390, started basis for some register optimizations
6343         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
6344         corresponding assembly output
6345         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
6346         missing push/pop of r0/r1. Optimized push/pops
6347
6348 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6349
6350         * src/mcs51/main.c (instructionSize): fixed ACALL size
6351         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
6352
6353 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
6354
6355         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
6356         the sorting of rlist with NULL elements
6357         * (print_idataType, print_idata): NEW to create idata sections
6358         * src/pic16/device.h: idataSymSet new variable
6359         * src/pic16/gen.c (genFunction): fixed some bugs in string
6360         comparing, improved the absolute section creation for ISRs,
6361         added FSR0L/FSR0H in registers that are saved in an ISR,
6362         * (genInline): fixed the processing of inline snippets,
6363         now they undergo no process by the peephole optimizer
6364         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
6365         are placed in idataSymSet,
6366         * (pic16emitStaticSeg): extern symbols are added in externs,
6367         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
6368         switching when aboslute variables are placed in access bank memory
6369         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
6370         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
6371         commented out with #if,
6372         * (pic16_packRegisters): reintroduce the check for CAST because some
6373         symbols are not correctly handled,
6374         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
6375         pCodeInstruction instead of pCode,
6376         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
6377         pCodeAsmDir definition,
6378         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
6379         directive, then the argument directive is emitted without the leading
6380         tab, hack for inline labels which must be in the first column,
6381         * (compareLabel,pic16_findNextInstruction),
6382         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
6383         * (insertBankSwitch): modified for the new pCodeAsmDir,
6384
6385 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6386         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
6387
6388         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
6389         instance,
6390         * (pushSide): commented out with #if,
6391         * (assignResultValue): fixed some typos in saving
6392         registers,
6393         * (genPcall): FIXED and sync'ed with genCall,
6394         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
6395         * (genNearPointerGet): fixed to handle some more cases,
6396         implementation scheme via table reads,
6397         * (genConstPointerGet): modified to access code memory correct,
6398         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
6399         and improved to handle some cases
6400         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
6401         instead of "RETLW" for init data
6402         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
6403         not IN_DIRSPACE, work around to reduce bank switching when aboslute
6404         variables are placed in access bank memory (<0x80 and >=0xf80),
6405         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
6406         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
6407         TBLWT_POSTDEC,TBLWT_PREINC
6408         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
6409         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
6410         directives
6411         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
6412         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
6413         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
6414         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
6415
6416 2004-02-29  Borut Razem <borut.razem AT siol.net>
6417
6418         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
6419         support/Util/findme.h, support/Util/system.h: enhance binary relative
6420         search for lib and include by using findProgramPath()
6421
6422 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6423
6424         * src/SDCCpeeph.h,
6425         * src/SDCCpeeph.c (pcDistance),
6426         * src/port.h,
6427         * src/mcs51/ralloc.h,
6428         * src/mcs51/ralloc.c (mcs51_regWithIdx),
6429         * src/mcs51/main.h,
6430         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
6431         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6432         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
6433         size calculation port specific, started basis for some register
6434         optimizations
6435         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
6436         missing push/pop of r0/r1. Optimized push/pops
6437         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
6438         * device/lib/_modsint.c (_modsint),
6439         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
6440         and stack version so regression tests pass
6441
6442 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
6443
6444         * src/Makefile.in (dep): include SLIBOBJS in dependency check
6445         * src/SDCCast.c (decorateType): catch another small optimization
6446         with '?' operator
6447         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
6448         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
6449         modified to finally use computeType() all over SDCC,
6450         see Feature Request #877103
6451         * src/SDCCval.h: cosmetic
6452         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
6453         valCompare(); regression tested in muldiv.c
6454         * support/regression/tests/muldiv.c (testMod): mod sign follows
6455         dividend only
6456
6457 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
6458
6459         * src/SDCCast.c (decorateType): fixed bug #902362
6460         * doc/INSTALL.txt: fixed install instructions for win32
6461
6462 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
6463
6464         * device/include/Makefile.in (install): fixed by replacing spaces
6465         by tabs
6466         * doc/README.txt,
6467         * doc/INSTALL.txt: updated for release
6468         * doc/sdccman.lyx: added warning for --xstack being buggy
6469
6470 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
6471
6472         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
6473         to eliminate build warnings.
6474         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
6475
6476 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
6477            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6478
6479         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
6480         removed -penable-stack, added comment for stack pragma, added
6481         warning for not initializing the stack/frame registers, removed
6482         comment at interrupts section
6483
6484         Stack is made permanent, there is no ability to disable stack usage.
6485         * src/pic16/device.h,
6486         * src/pic16/device.c: removed all references to USE_STACK macro,
6487         * src/pic16/device.c (pic16_dump_section): when no elements in
6488         rlist, free rlist before return,
6489         * (pic16_dump_int_registers): NEW, internal registers are a new set
6490         of general purpose registers reused by each function,
6491         * (checkAddReg): returns 1 if registers is added to set,
6492         * (pic16_groupRegistersInSection): when a registers is of type
6493         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
6494         * src/pic16/device.h: memRange and Assigned Memory are deleted,
6495         SRCASECMP macro is moved here from device.c
6496         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
6497         PO_PCLATU, PO_PRODL, PO_PRODH,
6498         * (pic16_pCodeOpType, genMinus,
6499         changed compares to "a" register, with AOP_ACC,
6500         * (pic16_genPlus): fixed some bugs and indented properly,
6501         * (pic16_addSign): changed size to size+offset in the MOVWF
6502         instruction,
6503         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
6504         multiply 8-bit operand by literal, result is 8-bit,
6505         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
6506         multiply 2 8-bit operand, result is 8-bit,
6507         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
6508         genUMult8X*_16,
6509         * src/pic16/gen.c: changed accUse to contain WREG only,
6510         * (pic16_emitcomment): renamed to pic16_emitpcomment,
6511         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
6512         true, do not use immediate addressing any more unless sym is a
6513         pointer in codespace,
6514         * (aopForRemat): do not use immediate addressing when symbol not in
6515         codespace and when symbol's address is requested,
6516         * (aopOp): for-loop in if(sym->accUse) is modified for the new
6517         accUse size (= 1),
6518         * (aopGet): added case for AOP_ACC and don't return "accumulator
6519         bug" but WREG instead,
6520         * (popGetTempReg): pushes contents of temporary register in stack,
6521         * (popReleaseTempReg): pops contents of temporary register from
6522         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
6523         * (pic16_popGet): separated case AOP_ACC to return register WREG
6524         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
6525         or PO_IMMEDIATE and initializes their instance/offset appropriately,
6526         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
6527         the use of immediate pointers to certain cases only.
6528
6529         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
6530         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
6531         * (assignResultValue, genCall, genRet): modified to use the new
6532         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
6533         genPcall is still broken,
6534         * (genFunction): added code to create 'A' type pBlocks when
6535         interrupt functions are generated, code not extensively tested yet,
6536         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
6537         * (genEndFunction): modified so ISRs pop stored registers from stack,
6538         * (genMultOneByte): cleanup,
6539         * (AccRsh): added flag andmask, to and result with appropriate mask,
6540         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
6541         * (genDataPointerGet): fixed and reenabled its use,
6542         * (genNearDataPointerGet): bugs fixed,
6543         * (genDataPointerSet): bugs fixed,
6544         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
6545         pic16_DumpSymbol, pic16_DumpOp,
6546         * src/pic16/genutils.h: function prototypes for the above functions,
6547         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
6548         pointers,
6549         * (pic16emitRegularMap): many many many improvements, but needs a
6550         major cleanup,
6551         * src/pic16/main.c: enable_stack in pic16_options is removed,
6552         * (_pic16_parseOptions): removed command line options -penable-stack,
6553         * (_process_pragma): emit stack symbol only when stack pragma is
6554         processed,
6555         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
6556         redirected to FSR0L/FSR0H pair,
6557         * (pic16_get_op, pic16_get_op2): modifications and improvements,
6558         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6559         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
6560         for immediates,
6561         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
6562         * (dumpPicOptype): NEW,
6563         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
6564         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
6565         with movff instruction,
6566         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
6567         added pic16_int_regs, some packRegsFor* functions are commented out,
6568         because produce errors,
6569         * src/pic16/NOTES: minor modifications
6570
6571 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6572
6573         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
6574         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
6575         --pack-iram.
6576         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
6577         * as/mcs51/lkaomf51.c: fixed bug #895763
6578
6579 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
6580
6581         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
6582
6583 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6584
6585         * doc/sdccman.lyx: added details about the HC08 storage classes and
6586         interrupts, fixed the register usage info for z80 & gbz80
6587
6588 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
6589
6590         * doc/sdccman.lyx: added more pic16 port documentation
6591         * device/include/pic16/: added header pic18fregs.h
6592
6593 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
6594
6595         * doc/sdccman.lyx: added Vangelis' contribution
6596
6597 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6598
6599         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
6600         extend to the next CALL or PCALL, not just to the next CALL.
6601
6602 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
6603
6604         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
6605
6606 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6607
6608         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
6609         bug #895752 and a better fix for bug #716790
6610
6611 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6612
6613         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
6614
6615 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6616
6617         * doc/sdccman.lyx: minor changes, minor changed
6618
6619 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
6620
6621         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
6622         which can't handle SDCC_NEWONEBYTEOPS,
6623         (geniCodeMultiply): removed conversion from mult to shift for pic14
6624         and pic16
6625
6626 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6627
6628         * src/hc08/gen.h,
6629         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
6630         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
6631         thus fixing bug #895406
6632
6633 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
6634
6635         * device/lib/_modsint.c,
6636         * device/lib/_modslong.c: sign follows divisor only
6637         * src/hc08/gen.c (genMultOneByte): if result size is 1,
6638         signs or signedness can be ignored
6639         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
6640         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
6641         added optimization for IFX,
6642         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
6643         arguments;
6644         reenabled optimization for IFX, which was removed on 2004-01-11
6645         * src/SDCCast.h: added return type IFX
6646         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
6647         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
6648         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
6649         SDCC_OLDONEBYTEOPS selects the old behaviour
6650         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
6651         changed again and commented promotion rule
6652         * src/SDCCval.c (valDiv): promotion no longer necessary
6653         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
6654         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
6655         rewritten
6656         * support/regression/tests/onebyte.c: added
6657
6658 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
6659
6660         * gen.c (genInline): reverted to old code for assemnling inline
6661         code because of bug reported James Chadd
6662
6663 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
6664
6665         * ralloc.h: missing declarations from previous patch,
6666         seems that patch for ralloc.h was never applied, fixed
6667
6668 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6669            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6670
6671         * pcode.c,
6672         * pcode.h,
6673         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
6674         indirect addressing. Marked FSR0 as deprecated
6675         * gen.c (pointerCode): commented out, not needed now
6676         (pic16_popGet2p): new MOVFF helper function
6677         (genGenPointerGet),
6678         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
6679         (shiftRLong): removed duplicate debugging info
6680
6681 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6682
6683         * src/ds390/gen.c (genNearPointerGet),
6684         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
6685         optimization with bits, but not bitfields.
6686         * src/ds390/ralloc.c (packRegisters),
6687         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
6688
6689 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
6690
6691         * src/SDCCcse.c (algebraicOpts): copy operands before modification
6692
6693 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6694
6695         * src/SDCCsymt.h,
6696         * src/SDCCicode.c (operandFromSymbol),
6697         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
6698         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
6699         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
6700         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
6701         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
6702         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
6703         bug #892038
6704         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
6705         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
6706         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
6707         * src/SDCCsymt.c (newSymbol),
6708         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6709         enumerator_list),
6710         * src/SDCCval.h,
6711         * src/SDCCval.c (newiList): fixed bug #885705
6712
6713 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6714
6715         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
6716         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
6717
6718 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6719
6720         * device/include/c8051f120.h,
6721         * device/include/c8051f300.h,
6722         * device/include/c8051f310.h: added/updated header files for Silicon
6723         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6724         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
6725         in new section Submitting patches
6726
6727 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6728
6729         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
6730         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6731         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6732         genGenPointerSet),
6733         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
6734         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6735         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6736         genGenPointerSet),
6737         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
6738         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6739         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6740         genGenPointerSet),
6741         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
6742         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6743         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6744         genGenPointerSet): fixed bug #892400
6745         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
6746         to eliminate build warnings.
6747         * src/SDCCast.c (processParms),
6748         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
6749         fixed bug 751859
6750         * support/valdiag/valdiag.py: added GCC to the list of defines active
6751         when compiling with gcc
6752
6753 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6754
6755         * support/Util/SDCCerr.h,
6756         * support/Util/SDCCerr.c,
6757         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
6758         with an incomplete type (fixed bug #883734)
6759         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
6760
6761 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6762
6763         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
6764
6765 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6766
6767         * src/SDCCast.c (decorateType),
6768         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
6769         function pointer implementation
6770         * support/regression/tests/funptrs.c: added tests to verify both forms
6771         of function pointers work correctly. Added tests to verify parameters
6772         are passed in the correct order.
6773
6774 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
6775
6776         * device.c (regCompare): registers are sorted by ascending
6777         address and increasing size,
6778         * main.c (_pic16_finaliseOptions): removed the declaration
6779         of compiler macro MCU. Now a macro of the format pic18fxxxx
6780         will be defined from the command line
6781
6782 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6783             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6784
6785         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
6786         PCOP_RLCF was overwritten!
6787         * gen.c (genSkip): commented out calls to pic16_emitcode,
6788         * (genCmpEQ): fixed "long" compares, only high word did get compared,
6789         * (genlshTwo),
6790         * (genRRC): added debugging info,
6791         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
6792         overwritten while shifting,
6793         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
6794         overwritten while shifting,
6795         * (AccLsh),
6796         * (AccRsh),
6797         * (shiftLLeftOrResult),
6798         * (shiftRLeftOrResult),
6799         * (shiftRLong),
6800         * (shiftLLong): Implemented with pic16_emitpcode
6801         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
6802         * (genLeftShift): Fixed bug, operand for shift by variable always
6803         was "and"ed with 0x0f,
6804         * (genLeftShiftLiteral),
6805         * (genrshTwo),
6806         * (genRightShiftLiteral): added debugging info,
6807         * (genrshFour): added comment,
6808         * (genRightShift): determined signedness from operand "left"
6809         instead of "result"
6810
6811 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6812
6813         * src/SDCCicode.c (geniCodeParms),
6814         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
6815         function pointers, fixed function pointer bugs #861242 and #861896
6816
6817 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6818
6819         * device/include/c8051f000.h,
6820         * device/include/c8051f120.h,
6821         * device/include/c8051f300.h: added header files for Silicon
6822         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6823
6824 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
6825
6826         * src/SDCCast.c (processParams): added new type flow and restructured
6827         (gatherAutoInit): added new type flow
6828         (addCast): cosmetic changes
6829         (getLeftResultType): added new type flow for array indices, patch
6830         provided by Stas, see FR #877103
6831         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
6832         array index patch by Stas
6833         * src/SDCCast.h: added prototype getResultTypeFromType()
6834         * src/SDCCval.h,
6835         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
6836         * src/pic/glue.c (pic14emitStaticSeg),
6837         * src/pic16/glue.c (pic16emitStaticSeg),
6838         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
6839         for initialization of symbols
6840         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
6841         * support/Util/SDCCerr.h:
6842         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
6843         * .version: bumped version number to 2.3.8
6844         * device/include/Makefile.in (install),
6845         * doc/Makefile (install): changed to 'rm `find ...`' construct to
6846         avoid warnings
6847
6848 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
6849
6850         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
6851         Slade Rich fixed an optimization bug
6852         * src/pic/pcodepeep.c,
6853         * src/pic/pcoderegs.c
6854         * doc/Makefile (install): added test for directory
6855
6856 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6857
6858         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
6859         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
6860         * src/pic/ralloc.c (getRegPtr, getRegGpr),
6861         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
6862         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
6863         * as/mcs51/asexpr.c (term),
6864         * as/hc08/asexpr.c (term): fixed bug #887146
6865
6866 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6867
6868         * src/z80/gen.c (genMult): handle single byte result product
6869         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
6870         DUMMY_READ_VOLATILE (fixed bug #886367)
6871
6872 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6873
6874         * support/regression/tests/libmullong.c: fixed logic, on little endian
6875         hosts we ended without a mullong_wrapper()
6876
6877 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6878
6879         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
6880         virus/worm forged address usage.
6881
6882 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6883
6884         Fixed promotion, it should be done on AST level:
6885         * src/SDCCast.c (addCast): added promotion to int
6886         (decorateType): updated call to upCast()
6887         * src/SDCCicode.c (geniCodeLeftShift): removed call to
6888         usualUnaryConversions()
6889
6890 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
6891
6892         * support/regression/tests/literalop.c (mulWrapper): Added a
6893         wrapper to remove integer overflow warnings.
6894
6895         * support/regression/tests/float_trans.c: Made work on host.
6896
6897         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
6898         location of sz80.
6899
6900         * support/regression/generate-cases.py (main): Changed from inline
6901         to a main method.
6902
6903         * doc/Makefile (install): Changed to depth first to get rid of
6904         missing directory install warning.
6905
6906         * as/Makefile (install-doc): Made work on Mac.
6907
6908 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
6909
6910         * src/SDCCast.c: added an additional type flow in decorateType() of
6911         opposite direction, see feature request #860006; it's enabled at runtime
6912         by setting the environment variable SDCC_NEWTYPEFLOW
6913         * src/SDCCast.h: changed prototype of decorateType()
6914         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
6915         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
6916         'char' to 'int' can be omitted, if both operands are 'unsigned char';
6917         see feature request #877103
6918         * src/SDCCval.c: updated call of decorateType()
6919         (valBitwise): fixed bug #882876
6920         (valMinus): added promotion
6921         (valLogicAndOr): result is unsigned
6922         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
6923         * src/SDCCsymt.c (computeType),
6924         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
6925         must not cause an unsigned operation
6926         * src/pic/glue (pic14emitRegularMap),
6927         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
6928
6929 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
6930
6931         * src/pic/pcode.c (PCodeID): commented out left over debug code
6932
6933 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6934
6935         * support/valdiag/tests/overflow.c: added shift tests
6936         * src/pic/device.c,
6937         * src/pic/gen.c,
6938         * src/pic/gen.h,
6939         * src/pic/glue.c,
6940         * src/pic/main.c,
6941         * src/pic/pcode.c,
6942         * src/pic/pcode.h,
6943         * src/pic/pcodepeep.c,
6944         * src/pic/pcoderegs.c,
6945         * src/pic/ralloc.c,
6946         * src/pic/ralloc.h: applied patch from Slade Rich;
6947         added support for multiple code pages and multiple RAM banks on the
6948         PIC 14 port. The ASM files now no longer simply assume all the
6949         code / RAM are in the same page / bank. This means the linker can
6950         safely allocate code/RAM of separate ASM files to different pages/banks.
6951         * doc/sdccman.lyx: added Slade's tips
6952         * src/mcs51/peeph.def: fixed bug #880768
6953
6954 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6955
6956         * src/hc08/ralloc.c (rematStr): fixed bug #879282
6957         * src/SDCCast.c (decorateType): fixed bug #880197
6958
6959 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
6960
6961         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
6962         getopt.h.
6963
6964         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
6965         strtof is not part of C89 and isn't included with Mac OS X.
6966
6967 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6968
6969         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
6970         shiftL2Left2Result): fixed bug #879326
6971         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
6972         (genMultOneByte): fixed bug in signed vs unsigned multiplication
6973         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
6974         address fetch for clr instruction
6975         * device/lib/hc08/_mulint.c: created optimized assembly version
6976         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
6977
6978 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
6979
6980         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
6981         proposed in FR #877103
6982
6983 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6984
6985         * src/SDCCval.c (cheapestVal): added missing checks
6986         * src/SDCCicode.c (usualBinaryConversions): fixed condition
6987         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
6988
6989 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
6990
6991         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
6992         equal operands
6993
6994 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
6995
6996         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
6997         loaded with the linker search paths (-L arguments) and the libraries
6998         to be linked with the current source (-l arguments). Changes
6999         currently will affect only the pic16 port.
7000         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
7001         include path the port specific paths and port specific libraries,
7002         * gplink command now contains the $3 argument,
7003         * src/pic16/device.h,
7004         * src/pic16/device.c,: structure PIC_device is made public and
7005         renamed to PIC16_device, the same for variable Pics which is renamed
7006         to Pics16. Updated all references to them.
7007         * src/pic16/glue.c (pic16glue): corrected bug with code
7008         initialization which bypassed the variable initializations block.
7009
7010         * device/lib/pic16/Makefile.rules: removed --penable-stack from
7011         COMPILE_FLAGS and added the --nostdinc option
7012
7013 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7014
7015         * device/include/mc68hc908jb8.h: Register defs for another member
7016         of the hc08 family. Contributed by Bjorn Bringert - thanks!
7017
7018 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
7019
7020         Documenting changes from previous commits.
7021         * configure.in (version 1.56),
7022         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
7023         when generating output files to configure the pic16 library,
7024         but now I've commented it out, since gputils aren't installed in the
7025         SF compile farm, so library won't compile
7026
7027         * device/lib/Makefile.in (version 1.56): initially I've added in
7028         target 'all' the prerequestive 'model-pic16' so it compiled the
7029         pic16 library, but now I've commented it out for the same reasons
7030         above,
7031         * added targets 'model-pic16' and 'objects-pic16' to compile the
7032         library
7033         * added target 'port-specific-objects-pic16' to handle the
7034         generated libraries and copy them into the build/ directory
7035         * added target 'clean-intermediate-pic16' to clean intermediate
7036         files into pic16 directory
7037         * in target 'installdirs' added line to create directory pic16 in
7038         the installation path
7039
7040         * device/include/Makefile.in (version 1.11): in target 'install'
7041         added lines to copy all header files to installation path,
7042         * in target 'installdirs' added line create directory for pic16
7043         headers in the installation path
7044
7045 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
7046
7047         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
7048          a function call
7049
7050 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
7051
7052         * configure,
7053         * device/lib/configure.in,
7054         * device/lib/configure: fixed for autoconf 2.57
7055
7056 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7057
7058         * src/z80/main.c (_parseOptions): fixed the portmode= command line
7059         option so that it actually works. Made it specific to the z80, since
7060         the gbz80 doesn't have these kinds of I/O ports.
7061
7062 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7063
7064         * device/include/z180.h,
7065         * device/lib/_memcpy.c,
7066         * device/lib/_memmove.c,
7067         * device/lib/_mulint.c,
7068         * device/lib/ser_ir.c,
7069         * device/lib/ser_ir_cts_rts.c,
7070         * device/lib/_strcmp.c,
7071         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
7072         * src/z80/main.c (_process_pragma): add support for pragmas bank and
7073         portmode; added deprecation warning for bank= and protmode= forms.
7074         Also, guard against buffer overflow.
7075         * src/z80/gen.c (aopGet): generate better code for sfr banked read
7076
7077 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7078
7079         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
7080         changed interrupt vector table generation to only emit declared vectors.
7081         * device/include/Makefile.in: added missing backslash
7082         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
7083
7084 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7085
7086         Mainly changes to support compilation of the device libraries
7087         * src/pic16/device.c: stack is allocated via symbol and not
7088         via literal number. The symbol is placed in the corresponding
7089         position of the data ram
7090         * (pic16_dump_section): relocatable and absolute uninitialized
7091         data are now emitted in sorted order to reduce section naming,
7092         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
7093         weren't marked as being in the access bank,
7094
7095 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7096
7097         Added portion of GNU PIC Library under the directory
7098         device/include/pic16 and device/lib/pic16. These files
7099         contain the declarations of SFRs for the PIC18Fxx2 devices.
7100         The directory is initialized via configure from toplevel.
7101
7102 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
7103
7104         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
7105         the spilllocations to be compared correctly
7106
7107 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7108
7109         * src/SDCCast.c (decorateType): fixed bug introduced today
7110
7111 2004-01-12  Borut Razem <borut.razem AT siol.net>
7112
7113         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
7114         doc/sdccman.lyx: upper case pragmas are deprecated
7115
7116 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7117
7118         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
7119         in simpler and even better code
7120
7121 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
7122
7123         * src/SDCCicode.c (operandOperation): fixed bug #874819
7124         * src/SDCCast.c (decorateType): fixed
7125         char foo (unsigned long ul) { return ul > 0; }
7126
7127 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7128
7129         * doc/sdccman.lyx: Moved and added some sections, small changes
7130         all over. Telling LaTeX to be less strict with word spacing
7131         to better keep the right margin. Changed some notes about
7132         maintainance of the ports in section 3.2.1 - is it OK like this?
7133
7134 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7135
7136         SDCC source changes:
7137         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
7138         convilong): modified to inform the pic16 port that builtin functions
7139         are external
7140
7141         PIC16 PORT specific changes:
7142         * src/pic16/device.c pic16_dump_equates() added,
7143         processor registers declared internally by the port are emitted in
7144         the translation as equates,
7145         * src/pic16/gen.c: inline code is passed unprocessed to the
7146         translation,
7147         * (pic16_popGetLit2): fnuction modified to take second operand as
7148         pCodeOp pointer and not as literal,
7149         * (popRegFromIdx): prefixed with pic16_,
7150         * (pic16_popCombine2): modified to receive already allocated pCode
7151         operands,
7152         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
7153         * (genFunction): initializes local stack frame and pushes on stack
7154         all the registers used by this function,
7155         * (genEndFunction): restores all registers from stack and restores
7156         stack frame,
7157         * src/pic16/glue.c (pic16emitRegularMap): various changes and
7158         improvements,
7159         * (pic16glue): changed the program startup sequence,
7160         * added new dbName code 'A' for functions placed in absolute section
7161         * src/pic16/main.c: added function attribute _naked,
7162         * added pragma 'code' to place a fnuction at an absolute address,
7163         * added command line arguments --debug-ralloc and --pcode-verbose,
7164         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
7165         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
7166         * (pic16_newpCodeOpLit2): modified to take the second operand as
7167         pCodeOp pointer,
7168         * (pic16_printpBlock): modified to emit each function in a separate
7169         section,
7170         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
7171         UPPER for immediate operands,
7172         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
7173         instruction,
7174         * src/pic16/peeph.def: all peepholes with movff are commented out,
7175         because there is a problem in the pcode peep optimizer,
7176         * src/pic16/ralloc.c: the register allocator can now reuse local
7177         function symbols for another function. This saves register usage.
7178         * src/pic16/ralloc.h: added flag isLocal in structure regs,
7179
7180         Added file src/pic16/NOTES with information about program writing on
7181         the current port version.
7182
7183 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7184
7185         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
7186         and peephole 252 (array access)
7187
7188 2004-01-09  Borut Razem <borut.razem AT siol.net>
7189
7190         * src/SDCCmain.c : fixed #872250: -l command line defined library
7191           files are scanned before standard library files
7192
7193 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7194
7195         * src/SDCCast.c (decorateType): fixed bug #874046
7196
7197 2004-01-09  Borut Razem <borut.razem AT siol.net>
7198
7199         * support/scripts/sdcc.nsi: remove previous installation
7200
7201 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7202
7203         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
7204         bytes for last interrupt vector (mcs51)
7205         * sdcc.spec: fixed typo
7206
7207 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7208
7209         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
7210         gen51Code): more efficient parameter receive for --model-large
7211         ("bug" #845294)
7212
7213 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7214
7215         * src/ds390/main.c,
7216         * src/z80/main.c: added missed needLinkerScript flags (more than
7217         one port structure defined in these file)
7218         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
7219         bug #795325
7220
7221 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
7222
7223         * src/SDCCmain.c: removed various references to DEFAULT_PORT
7224         * src/port.h: added flag needLinkerScript in port->linker
7225         structure to inform whether to create a .lnk file or not,
7226         * src/avr/main.c,
7227         * src/ds390/main.c,
7228         * src/hc08/main.c,
7229         * src/mcs51/main.c,
7230         * src/pic/main.c,
7231         * src/pic16/main.c,
7232         * src/xa51/main.c,
7233         * src/z80/main.c: changed appropriately to configure
7234         needLinkerScript flag
7235         * src/pic/gen.c,
7236         * src/pic16/gen.c (genAddrOf): fixed bug #863624
7237         * src/pic/glue.c: added variable udata_section_name to
7238         override default uninitialized data segment definition for
7239         devices only with SHAREBANK memory (reported from Erik Epetrich)
7240         * (pic14emitOverlay): modified to emit a commented overlay segment
7241         directive when no overlay data exist
7242         * (picglue): modified to emit uninitialized data segment
7243         according to udata_section_name
7244         * src/pic/main.c (_pic14_parseOptions): added command line
7245         options --udata-section-name=[name] to override default
7246         udata definition name
7247         * modified _linkCmd and _asmCmd to include compiler passed
7248         arguments via -W option
7249         * src/pic16/main.c: added $l in _asmCmd, changed extension for
7250         object file from '.rel' to '.o' in port->linker structure,
7251         changed size of fptr from 2 to 3 in port structure
7252
7253 2004-01-07  Borut Razem <borut.razem AT siol.net>
7254
7255         * support/scripts/sdcc.nsi: update PATH
7256         * support/scripts/sdcc.ico: craeted
7257
7258 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
7259
7260         * device/include/Makefile.in: fix install
7261         * doc/Makefile: fix install
7262
7263 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7264
7265         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
7266         in bug #860505
7267         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
7268         how the function variable allocation summary is displayed; also
7269         include information about variables allocated to the overlay
7270         segment
7271
7272 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7273
7274         * as/mcs51/lkmain.c: Help about -Y option
7275         * as/mcs51/lkarea.c: Fixed gcc warnings
7276
7277 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7278
7279         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
7280         fixed warning
7281         * support/valdiag/tests/overflow.c: added
7282         * src/SDCCast.c (decorateType),
7283         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
7284         LEFT_OP (left shift)
7285
7286 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7287
7288         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
7289         (default behaviour).
7290
7291 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7292
7293         A python script to validate compiler diagnostic messages. It can be
7294         used to verify that sdcc complains about bad c source code and
7295         gives a good location of the error.
7296         * support/valdiag/Makefile,
7297         * support/valdiag/valdiag.py,
7298         * support/valdiag/tests/*
7299
7300 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7301
7302         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
7303         * src/SDCCsymt.c (newEnumType),
7304         * src/SDCCsymt.h
7305         * support/Util/SDCCerr.c,
7306         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
7307         enum related bugs.
7308         * support/regression/tests/enum.c: added test for enum values that
7309         require at least 2 bytes of storage.
7310
7311 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7312
7313         * src/common.h: added ifndef/define/endif macros
7314         around the header file.
7315         Bug reported from Jesus Calvino-Fraga
7316
7317 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7318
7319         * sdcc.spec: updated
7320         * device/include/Makefile.in: don't install CVS directories
7321         * device/lib/Makefile.in: added removal of CVS directories after install
7322         * doc/Makefile: fixed install, added local_icons
7323         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
7324         * src/mcs51/gen.c (genRightShift): fixed bug #870788
7325         * src/ds390/gen.c (genRightShift): fixed bug #870788
7326         * src/SDCCast.c (decorateType): fixed bug #870781
7327
7328 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7329
7330         PIC16 port related changes:
7331         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
7332         added variable stackPos,
7333
7334         * gen.c: genCall, assignResultValue: added support for
7335         pushing/retrieving function parameters to/from stack,
7336         genFunction,genEndFunction: setup stack frame for the
7337         generated function,
7338         genAddrOf: will be changed according to bug 863624
7339
7340         * added files genutils.c and genutils.h which contain gen*
7341         debugged and optimised functions extracted from gen.c
7342
7343         * glue.c: added variable 'externs' which holds extern symbols,
7344         pic16emitRegularMap: is modified to properly handle relocatable
7345          symbols under the new scheme,
7346         pic16createInterruptVect: is modified
7347         pic16printPublics: is modified to emit 'global' assembler directives,
7348         added pic16_printExterns to print extern symbols,
7349         pic16glue: initializes stack/frame pointer in the beginning of
7350         the assembly output. Temporary hack, will be corrected later,
7351         because gplink yet does not support stack and SDCC does not
7352         yet support a type of crt0.o object to create the final binary.
7353
7354         * Removed many lines that contain 8051 legacy code.
7355         * The code is finally placed under a 'code' directive.
7356         * Added port specific options.
7357
7358         * _process_pragma: simplified since now we do not need *special*
7359         include file to define SFR registers. But a separate header
7360         will be needed. This will be developed later.
7361         * _pic16_parseOptions: added, parses port specific options:
7362         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
7363         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
7364         --preplace-udata-with=
7365
7366         * _pic16_setDefaultOptions: modified to initialize section names,
7367         but hack is temporarly out of order since it needs improvement.
7368         * _pic16_genAssemblerPreamble: configuration words are emitted by
7369         their address instead of their name. This part is incomplete and
7370         supports only the 18Fxx2 devices. Other devices will emit an error
7371         during assembly since they do not contain the same set of config
7372         registers
7373         * _pic16_genIVT: is modified,
7374
7375         * pcode.c: added definitions for some hardware registers that are needed
7376         for stack support
7377         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
7378         All PCI entries are updated. Now LFSR is supported.
7379         * Removed pic16_pciTRIS is mentioned by mdubuc in source
7380         * added pic16_newpCodeOpLit2 to support instructions with
7381         two literal arguments
7382         * pic16_pCode2str: corrected code that emits assembler instructions
7383         with two literal operands and those that have an access bit modifier
7384         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
7385         this fixes a bug which caused some labels to be lost, when an
7386         assembler directive was added, i.e. banksel,
7387         * pic16_FixRegisterBanking: improved logic that causes the insertion
7388         of bank switching,
7389         * InlineFunction: functions that are called once, are not any more
7390         inlined. This can be a port option in the future,
7391
7392         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
7393
7394         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
7395         hold the corresponding uninitialized symbols,
7396         * pic16_allocProcessorRegister: registers have explicit marked the
7397         accessBank field,
7398         * pic16_allocInternalRegister: registers are explicit marked as
7399         not used,
7400         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
7401         processing list, so bit registers were lost,
7402         *
7403
7404         * ralloc.h: added field 'accessBank' and original symbol operand
7405         in register definition,
7406         * removed the field isMapped from register definition,
7407
7408         ** Several functions have been removed from various sources:
7409         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
7410         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
7411         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
7412         pic16_assignRelocatableRegisters
7413
7414         ** others have been introduced:
7415         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
7416         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
7417
7418 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
7419
7420         * support/scripts/inc2h.pl: changed definition of BIT_AT
7421         to emit 'sbit at' instead of 'bit at'. This was a request.
7422
7423         PIC16 port related preliminary changes:
7424         * gen.c: prefixed function popRegFromString with
7425         pic16_ and all references to it corrected
7426         * pcode.c: all pic16_pc_* hardware registers prefixed
7427         with underscore (_),
7428         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
7429         * ralloc.c: newReg(): when register is REG_SFR then
7430         set address to rIdx,
7431         pic16_allocProcessorRegister(): marks register wasUsed=0
7432         pic16_writeUsedRegs(): added a call to assign processor
7433         registers via pic16_assignFixedRegisters
7434
7435 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7436
7437         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
7438         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
7439         variables in unused register banks.  Also the SSEG is placed
7440         wherever there is enough space for it, and IDATA can be anywhere
7441         in internal RAM.  For now compile using -Wl-Y[stack_size].
7442         The mem file is different for this option as well, since it
7443         makes no sense of talking about DSEG lenght.
7444
7445 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
7446
7447         * src/SDCClrange.c: fixed bug 869095 that caused segfault
7448         in certain cases, e.g. when ROM assignment, patch provided
7449         from Albert den Haan.
7450
7451 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
7452
7453         Many signedness and type propagation fixes:
7454         * src/SDCCicode.c: made geniCodeCast() static
7455         replaced SPEC_ by IS_ (cosmetic)
7456         (operandOperation): fixed div and mod operation
7457         (usualBinaryConversions): added support for promotion of char
7458         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
7459         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
7460         (geniCodeAdd): an array index will stay unsigned, even if promoted
7461         from char to int
7462         (geniCodeArray): ditto
7463         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
7464         * src/SDCCsymt.c (computeType): added more support for char;
7465         promotion of char is selectable by promoteCharToInt, fixed signedness
7466         for all cases
7467         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7468         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7469         * src/SDCCval (val*): replaced signedness calculation by
7470         computeType()
7471         rearranged if-branches (cosmetic)
7472         (valShift): added warning W_SHIFT_CHANGED
7473         (valCompare): fixed problem with different types
7474         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
7475         * support/regression/tests/literalop.c: added many cases
7476         * support/regression/tests/ast_constant_folding.c: changed finally to
7477         'unsigned int'
7478         * .version: new year, new version: 2.3.7
7479         * src/SDCCmain.c (main): applied patch #866468
7480         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
7481         provided by Scott Bronson
7482         * doc/sdccman.lyx: updated documentation for sdcdb
7483         updated and added chapter tips
7484
7485 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7486
7487         * src/SDCCsymt.h: missing from yesterday's commits
7488
7489 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7490
7491         * src/SDCC.y (struct_or_union_specifier),
7492         * support/Util/SDCCerr.c,
7493         * support/Util/SDCCerr.h: verify that struct & union tags are used
7494         as declared.
7495
7496 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7497
7498         * src/SDCCglobl.h: missing from yesterday's commits
7499
7500 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7501
7502         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
7503         sft_attributes, struct_declaration, parameter_declaration,
7504         type_name, start_block, declaration_list),
7505         * src/SDCC.lex (check_type): support redefinition of typedef names
7506
7507 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7508
7509         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
7510         aligned xdata arrays. Erik helped me with the if clause.
7511
7512 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7513
7514         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
7515         warning
7516
7517 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7518
7519         * src/SDCCast.h,
7520         * src/SDCCast.c (newAst_),
7521         * src/SDCCicode.h,
7522         * src/SDCCicode.c (ast2iCode, newiCode),
7523         * src/SDCCglobl.h,
7524         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
7525         expr, statement, expression_statement, selection_statement,
7526         iteration_statement, expr_opt, jump_statement): foundation for tracking
7527         sequence points
7528         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
7529         point code too)
7530
7531 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7532
7533         * support/Util/SDCCerr.c,
7534         * src/SDCCast.h,
7535         * src/SDCCast.c (createCase, createDefault, decorateType),
7536         * src/SDCClabel.c (labelUnreach),
7537         * src/SDCC.y (labeled_statement, jump_statement): More improvements
7538         to error messages.
7539         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
7540         (with thanks to Stas Sergeev)
7541         * device/include/time.h,
7542         * device/lib/time.c (CheckTime): suppress unreachable code warning
7543
7544 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7545
7546         * src/SDCCast.c (createIvalCharPtr),
7547         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
7548         bug #753752)
7549         * support/regression/tests/nullstring.c: tests for these two bugs
7550
7551 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7552
7553         * support/Util/SDCCerr.h,
7554         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
7555         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
7556         about storage class and 'at' used inside struct or union
7557         * src/SDCCBBlock.c (iCodeFromeBBlock),
7558         * src/SDCCcse.c (ifxOptimize),
7559         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
7560         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
7561         printIval, emitStaticSeg, emitOverlay),
7562         * src/SDCClabel.c (deleteIfx),
7563         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
7564         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
7565         gatherAutoInit, processParms),
7566         * support/Util/SDCCerr.h,
7567         * support/Util/SDCCerr.c (werrorfl): Support for better error location
7568         reporting for post-parse errors.
7569
7570 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7571
7572         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
7573         implicit casts via union; they don't work on big endian systems
7574         (possible fix for bug #861138)
7575
7576 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7577
7578         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
7579         * src/mcs51/main.c: fixed the fix for bug #737001
7580
7581 2003-12-15  Borut Razem <borut.razem AT siol.net>
7582
7583         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
7584
7585 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7586
7587         * support/makebin/makebin.c: put output in binary mode
7588
7589 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7590
7591         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
7592         xdata and data memory on startup. Set the environment variable
7593         SDCC_NOGENRAMCLEAR to disable this.
7594         * src/mcs51/peephole.def,
7595         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
7596         (allows non-interrupt and interrupt code to safely compete for a resource
7597         without the non-interrupt code having to disable interrupts)
7598
7599 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7600
7601         * src/SDCCicode.c (geniCodeAdd),
7602         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
7603         with valFromType if type might be a pointer and host is big endian).
7604         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
7605         types, not just integer types.
7606         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
7607         multiply defined with mismatching "at" address.
7608
7609 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7610
7611         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
7612         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
7613         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
7614         with embedded nulls (fixed bug #753752)
7615
7616 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7617
7618         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
7619         Apparently this did not see much testing (endless loop)
7620
7621 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7622
7623         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
7624
7625 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7626
7627         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
7628         gracefully handle NULL memmap pointers
7629
7630 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7631
7632         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
7633         instead of deleting the iCode when an operand is volatile
7634         * src/z80/gen.c (genDummyRead),
7635         * src/mcs51/gen.c (genDummyRead),
7636         * src/ds390/gen.c (genDummyRead),
7637         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
7638         not just IC_RIGHT
7639         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
7640         * src/SDCC.y: fixed bug #850420
7641
7642 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7643
7644         Applied z80 i/o port patch from Peter Townson and fixed some operators
7645         to better handle operands in A register.
7646         * device/include/z180.h
7647         * src/SDCC.y
7648         * src/SDCCglue.c
7649         * src/z80/gen.c
7650         * src/z80/gen.h
7651         * src/z80/main.c
7652         * src/z80/peeph-z80.def
7653         * src/z80/peeph.def
7654         * src/z80/z80.h
7655
7656 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7657
7658         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
7659
7660 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7661
7662         * device/lib/hc08/_mullong.c: Removed extra #endif
7663
7664 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7665
7666         * sim/ucsim/hc08.src/inst.cc,
7667         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
7668         carries from x to h
7669         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
7670         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
7671         * device/include/stdarg.h: fixed varargs for hc08
7672         * device/lib/Makefile.in,
7673         * device/lib/hc08/Makefile,
7674         * device/lib/hc08/_mulint.c,
7675         * device/lib/hc08/_mullong.c: fixed some endian problems
7676
7677 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7678
7679         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
7680         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
7681         * device/lib/_gptrget.c,
7682         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
7683
7684 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7685
7686         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
7687         * src/SDCCast.c (astErrors): fixed bug #846007
7688         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
7689
7690 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7691
7692         * src/SDCCast.c (decorateType): disabled a transformation I added in
7693         revision 1.188 (access to fields of a structure at an absolute address);
7694         it breaks with bitfields, extern declarations, and gcse analysis.
7695         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
7696         could be assigned through a pointer, so don't complain.
7697         * src/SDCCast.c (astErrors),
7698         * src/SDCCast.h,
7699         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
7700
7701 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
7702
7703         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
7704         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
7705         output of __config directives, since gpasm now supports them
7706         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
7707         pre-processor macro, i.e. -DMCU=p18f452
7708         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
7709         and modified to handle 'cast' icode similarly to '=' icode
7710         * src/pic16/device.h (typedef struct PIC_device): added field
7711         'extMIface' to indicate that chip has external memory interface
7712         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
7713         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
7714         18F8720
7715
7716 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7717
7718         * src/SDCC.y (pointer): fixed bug #846006
7719         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
7720         * src/SDCCast.c (decorateType): fixed bug #846009
7721         * src/ds390/peeph.def,
7722         * src/ds390/gen.c (genAnd, genOr),
7723         * src/mcs51/peeph.def,
7724         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
7725
7726 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7727
7728         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
7729         * src/SDCCdflow.c
7730         * src/SDCCcse.c
7731         * src/SDCCcse.h
7732         * src/SDCCBBlock.h
7733         * src/SDCCBBlock.c
7734
7735 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
7736
7737         fixed bug #845089
7738         * src/SDCCbitv.h,
7739         * src/SDCCbitv.c: added function to free a bitvector
7740         * src/SDCClrange.h,
7741         * src/SDCClrange.c: added function to recompute the liveranges
7742         * src/avr/ralloc.c,
7743         * src/ds390/ralloc.c,
7744         * src/hc08/ralloc.c,
7745         * src/mcs51/ralloc.c,
7746         * src/pic/ralloc.c,
7747         * src/pic16/ralloc.c,
7748         * src/xa51/ralloc.c,
7749         * src/z80/ralloc.c: recompute the liveranges after register packing
7750
7751 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
7752
7753         * src/SDCCloop.c (newInduction): fixed bug #845630
7754
7755 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7756
7757         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
7758         inadvertantly left behind from my 2003-11-12 change
7759
7760 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7761
7762         Updated headers I neglected to commit yesterday.
7763         * src/SDCClrange.h,
7764         * src/SDCCicode.h
7765
7766 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7767
7768         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
7769         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
7770         * src/SDCCopt.c (eBBlockFromiCode),
7771         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
7772         the creation of the key hash table from the sequencing so it can be used
7773         earlier (for some GCSE bug fixes still pending)
7774
7775 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7776
7777         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
7778         * support/regression/tests/addsub.c: testing genPlus shortcut
7779
7780 2003-11-15  Borut Razem <borut.razem AT siol.net>
7781
7782         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
7783
7784 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7785
7786         * src/SDCCcse.c (cseBBlock): fixed bug #527779
7787         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
7788         ordering is immaterial.
7789         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
7790
7791 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7792
7793         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
7794         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
7795         (SIGSEV) of bug #840381
7796         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
7797         unlink new file before rename if new and old filenames are the same)
7798
7799 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7800
7801         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
7802         uninitialized variables) for the mcs51. Set environment variable
7803         SDCC_GENRAMCLEAR to test.
7804         xdata initialization slightly shorter
7805
7806 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7807
7808         * src/SDCCsymt.h,
7809         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
7810         #838241 & 780691 (basicly the same bug)
7811         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
7812         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
7813
7814 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
7815
7816         * src/SDCCmain.c (linkEdit): "fix" #834252
7817
7818 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7819
7820         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
7821         * src/SDCCast.h,
7822         * src/SDCC.y: fixed bug #819403
7823
7824 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7825
7826         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
7827         the reentrant attribute.
7828         * src/hc08/gen.c (genPackBits): added missing stack readjustment
7829         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
7830         simulation
7831         * src/SDCCast.c (decorateType): fixed bug with storage class not being
7832         updated during pointer dereference; f.e. ~(((char *)1)*) was being
7833         erroneously reduced to a literal.
7834         * src/hc08/ralloc.c (packRegisters, rematStr),
7835         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
7836         some cases
7837
7838 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7839
7840         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
7841         * doc/sdccman.lyx: changed from 'article' to 'book'
7842         * doc/Makefile: readded test_suite_spec and cdbfileformat
7843
7844 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
7845
7846         * device/include/stdlib.h: include malloc.h to comply with ANSI
7847         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
7848
7849 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7850
7851         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
7852         * doc/clean.mk: also remove *.out files
7853         * doc/sdccman.lyx: some additions, larger top/bottom margins
7854
7855 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7856
7857         * src/SDCC.y: fixed bug #837365
7858         * support/regression/tests/bitopcse.c
7859         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
7860         a symbol (might be valop instead)
7861         * device/lib/Makefile.in: added errno.c to HC08SOURCES
7862         * device/lib/clean.mk: added hc08 to the cleaning list
7863
7864 2003-11-04  Borut Razem <borut.razem AT siol.net>
7865
7866         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
7867           made 2003-11-04
7868         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7869           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
7870           malloc is declared in standard stdlib.h
7871
7872 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7873
7874         * device/lib/hc08/Makefile: need to clean .rel not .o files
7875         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
7876
7877 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7878
7879         * src/port.h,
7880         * src/hc08/main.c,
7881         * src/mcs51/main.c,
7882         * src/ds390/main.c,
7883         * src/z80/main.c,
7884         * src/avr/main.c,
7885         * src/pic/main.c,
7886         * src/pic16/main.c,
7887         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
7888         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
7889         tests (which uses the port's oclsExpense function)
7890         * src/SDCC.y,
7891         * src/SDCCast.c,
7892         * src/SDCCicode.c,
7893         * src/hc08/gen.c,
7894         * src/ds390/gen.c,
7895         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
7896
7897 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7898
7899         * src/SDCCcse.c (ifxOptimize),
7900         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
7901         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
7902         deleting the IFX iCode.
7903         * src/hc08/ralloc.c: reduced unneeded slocs
7904         * src/hc08/gen.c: fixed bug in asmopToBoolean
7905
7906 2003-11-04  Borut Razem <borut.razem AT siol.net>
7907
7908         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
7909           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7910           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
7911           transferred to configure
7912
7913 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
7914
7915         Use headers defined in the C[++] standards:
7916         * sim/ucsim/gui.src/serio.src/fileio.cc
7917         * sim/ucsim/gui.src/serio.src/frontend.cc
7918         * sim/ucsim/gui.src/serio.src/main.cc
7919         * sim/ucsim/gui.src/serio.src/posix_signal.cc
7920         * support/Util/NewAlloc.c
7921         * as/hc08/lklibr.c
7922         * as/mcs51/lklibr.c
7923         * as/z80/aslist.c
7924         * as/z80/assym.c
7925
7926 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7927
7928         * Added MSVC projects for hc08 assembler and linker:
7929         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
7930         /as/hc08/link_hc08.dsp
7931
7932 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
7933
7934         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
7935
7936 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
7937
7938         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
7939
7940 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7941
7942         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
7943
7944 2003-10-31  Borut Razem <borut.razem AT siol.net>
7945
7946         * support/cpp2/cpplib.h,
7947           support/cpp2/cpplib.c,
7948           support/cpp2/cpplex.c,
7949           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
7950           to switch _asm block preprocessing on / off. Default is
7951           #pragma preproc_asm +
7952
7953 2003-10-31  Borut Razem <borut.razem AT siol.net>
7954
7955         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
7956           when outputting comment blocks (when executed with -C option) and
7957           _asm (SDCPP specific) blocks
7958
7959 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7960
7961         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
7962
7963 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
7964
7965         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
7966
7967 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
7968
7969         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
7970         * src/SDCCast.c (decorateType): fixed bug #832664
7971
7972 2003-10-31  Borut Razem <borut.razem AT siol.net>
7973
7974         * support\cpp2\cpplex.c: fixed for SDCPP:
7975           comments(when executed with -C option) and _asm blocks
7976           were included even if they where in skipped #if block.
7977           Applied solution from GCC cpp 3.3.2
7978
7979 2003-10-31  Borut Razem <borut.razem AT siol.net>
7980
7981         * src/SDCC.lex: sdcc now understands both formats:
7982           '# <line_number> <file_name>' and
7983           '#line <line_number> <file_name>'
7984         * support/cpp2/cppmain.c: sdcpp now generates the standard
7985           '# <line_number> <file_name>' instead of former
7986           '#line <line_number> <file_name>'
7987
7988 2003-10-30  Borut Razem <borut.razem AT siol.net>
7989
7990         * support/cpp2/cpphash.h,
7991         * support/cpp2/cpplib.h
7992         * support/cpp2/cpplex.c,
7993         * support/cpp2/cppmain.c,
7994         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
7995
7996 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7997
7998         Fixed a number of problems revealed by bug #827883.
7999         * src/SDCCloop.c (loopInvariants): Spill location of the
8000         result operand should be recomputed if extracted from
8001         a loop. Also, don't extract assignments of an iTemp
8002         from a literal.
8003         * src/SDCCast.c (isConformingBody): loop reversal should
8004         not occur if the control variable is involved with a
8005         relational operator.
8006
8007 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
8008
8009         * .version: bumped to 2.3.6 to reflect the big improvements
8010         made by Erik and Klaus. Thanks!
8011
8012 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
8013
8014         Replaced the livrange code.
8015         * src/SDCClrange.c: added new LR code
8016         * src/SDCCloop.c,
8017         * src/SDCCBBlock.h: removed remainig parts from old LR code
8018         * src/ds390/ralloc.c,
8019         * src/ds390/gen.c: minor fixes to make it work with new code
8020
8021 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8022
8023         * as/hc08/asm.h,
8024         * as/hc08/lkrloc.c,
8025         * src/hc08/gen.c,
8026         * src/hc08/ralloc.c: Fix various warnings related to the hc08
8027         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
8028         (tweaked fix for bug #818696)
8029
8030 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8031
8032         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
8033
8034 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8035
8036         * src/SDCCmain.c,
8037         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
8038         * src/mcs51/gen.c (gencjneshort),
8039         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
8040         more efficient (per Scott Bronson's suggestion)
8041
8042 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8043
8044         Extended the semantics of the critical keyword to include
8045         individual statements. See RFE #827755 and #799831
8046         * src/SDCC.y
8047         * src/SDCCicode.c
8048         * src/SDCCopt.c
8049         * src/SDCCast.c
8050         * support/Util/SDCCerr.c
8051         * support/Util/SDCCerr.h
8052         * src/mcs51/gen.c
8053         * src/ds390/gen.c
8054         * src/hc08/gen.c
8055
8056 2003-10-19  Borut Razem <borut.razem AT siol.net>
8057
8058         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
8059
8060 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8061
8062         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
8063         Fixed bug #818696
8064         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
8065         and predecrement operand is displayed
8066
8067 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8068
8069         * src/SDCCval.c (valMinus): fixed bug #826041
8070
8071 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8072
8073         Some hc08 related updates that I missed earlier
8074         * sim/ucsim/stypes.h
8075         * support/regression/ports/hc08/spec.mk
8076
8077 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8078
8079         New target "hc08" for the Motorola 68hc08 family of micros
8080
8081         * configure
8082         * configure.in
8083         * Makefile
8084         * src/hc08/*
8085         * src/SDCCmain.c
8086         * src/port.h
8087         * sim/ucsim/hc08.src/*
8088         * sim/ucsim/configure.in
8089         * src/ucsim/configure
8090         * sim/ucsim/packages_in.mk
8091         * as/hc08/*
8092         * as/Makefile
8093         * device/include/mc68hc908qy.h
8094         * device/lib/hc08/*
8095         * device/lib/Makefile.in
8096         * support/regression/ports/hc08/*
8097         * support/regression/Makefile
8098
8099 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8100
8101         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
8102         regression test
8103         * src/ds390/gen.c (genCast): fixed bug #821957
8104
8105 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8106
8107         * device/lib/logf.c: "fixed" overlay bug
8108         * support/regression/ports/host/spec.mk: added m library
8109         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
8110         * support/regression/tests/float_trans: added (for Eric)
8111
8112 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
8113
8114         * src/mcs51/gen.c (genCpl): fixed bug
8115         http://sf.net/mailarchive/message.php?msg_id=6263915
8116
8117 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
8118
8119         * src/SDCCast.c (decorateType): added extended constant folding
8120         * src/SDCCsymt.c (computeType): cleanup
8121         * src/SDCCval.c (valShift): minor optimization
8122         * support/regression/tests/ast_constant_folding.c: added
8123
8124 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8125
8126         * src/SDCCmain.c: removed some unintended changes
8127
8128 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8129
8130         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
8131         * src/z80/gen.c: fixed part of bug #817589
8132         * src/SDCCsymt.c (checkFunction): fixed bug #817895
8133
8134 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
8135
8136         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
8137         * src/SDCCcflow.c
8138         * src/SDCCcse.c
8139         * src/SDCCdflow.c
8140         * src/SDCClabel.c
8141         * src/SDCClrange.c
8142         * src/SDCCmem.c
8143         * src/SDCCopt.c
8144         * src/SDCCpeeph.c
8145         * src/SDCCset.c
8146         * src/avr/ralloc.c
8147         * src/ds390/ralloc.c
8148         * src/izt/ralloc.c
8149         * src/mcs51/ralloc.c
8150         * src/pic/ralloc.c
8151         * src/pic16/ralloc.c
8152         * src/xa51/ralloc.c
8153         * src/z80/ralloc.c
8154         * src/z80/gen.c: removed unused label "release:"
8155
8156 2003-10-06  Borut Razem <borut.razem AT siol.net>
8157
8158         * src/SDCC.lex: removed definition of unused variables
8159           save_optimize and save_options
8160
8161 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
8162
8163         * clean.mk: removed '=' in "-maxdepth=1"
8164         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
8165         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
8166
8167 2003-10-06  Borut Razem <borut.razem AT siol.net>
8168
8169         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
8170           my_unput() replaced by unput()
8171
8172 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
8173
8174         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
8175         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
8176         type-punned pointer will break strict-aliasing rules"
8177         Old LR behaviour is again default; Klaus' LR can be choosen by
8178         defining the environment variable LRKLAUS
8179         * src/SDCCBBlock.h
8180         * src/SDCCloop.c
8181         * src/SDCClrange.c
8182         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
8183         * clean.mk: fixed removal of files in bin/CVS/
8184         * device/lib/clean.mk: fixed removal of directories small and large
8185         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
8186         * src/SDCCicode.c,
8187         * src/SDCCval.c: removed superflous test for pedantic
8188
8189 2003-10-05  Borut Razem <borut.razem AT siol.net>
8190
8191         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
8192           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
8193           message "unmatched #pragma SAVE and #pragma RESTORE"
8194
8195 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8196
8197         * doc/sdccman.lyx: various additions and updates (interrupts, inline
8198           assembly, critical functions, atomic, nojtbound)
8199
8200 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
8201
8202         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
8203         * src/SDCCBBlock.h
8204         * src/SDCCloop.c
8205         * src/SDCCloop.h
8206         * src/SDCClrange.c
8207
8208 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8209
8210         * src/z80/gen.h,
8211         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8212         * src/mcs51/gen.h
8213         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8214         * src/ds390/gen.h
8215         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8216         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
8217         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
8218
8219 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8220
8221         * src/z80/gen.c (genRet): fixed bug #524753
8222         * src/z80/gen.c (genCast): fixed internal error on cast from
8223         pointer to long
8224         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
8225         fix for bug #477835 to the z80
8226         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
8227         for tracking iCodes in the peephole optimizer for z80
8228
8229 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8230
8231         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
8232         the other part of bug #814548
8233         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
8234
8235 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
8236
8237         * src/SDCCcse.c: fixed part of bug #814548
8238
8239 2003-09-28  Borut Razem <borut.razem AT siol.net>
8240
8241         * src/asm.c: rewrite of printILine() to use temporary file instead
8242           a pipe
8243         * src/xa51/main.c: commented out declaration of int rewinds
8244
8245 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8246
8247         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
8248
8249 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8250
8251         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
8252         * src/asm.c (printILine): Fixed bug #811015
8253
8254 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8255
8256         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
8257         freeing.
8258
8259 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8260
8261         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
8262         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
8263         to correctly handle general case of AOP_PAIRPTR
8264         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
8265
8266 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8267
8268         * src/mcs51/ralloc.c (fillGaps),
8269         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
8270         register positioning bug)
8271
8272 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
8273
8274         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
8275
8276 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8277
8278         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
8279         genCodePointerGet, genGenPointerGet, genFarPointerSet,
8280         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
8281         (ralloc doesn't intentionally do this now, but perhaps later)
8282         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
8283         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
8284         register positioning bugs (Fixed bug #762602 and #795325)
8285         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
8286         (Fixed bug #808779)
8287         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
8288         lines that --i-code-in-asm generates
8289
8290 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8291
8292         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
8293         trying to fclose a FILE* that was already closed.
8294
8295 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8296
8297         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
8298         of const struct should be treated as if const themselves)
8299
8300 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
8301
8302         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
8303
8304 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8305
8306         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
8307         Unix (/n) and DOS (/r/n) line terminations.
8308
8309 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8310
8311         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
8312         bug #613775
8313
8314 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8315
8316         * src/mcs51/gen.c (genFunction, genEndFunction),
8317         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
8318         and restore of EA so that stack offsets to parameters are
8319         correct when using both critical and reentrant/stack-auto.
8320         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
8321         size (can be triggered in error if sloc is shared between
8322         different sized objects)
8323         * device/include/float.h: fixed macros to explicitly use
8324         unsigned long where needed
8325
8326 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
8327
8328         Feature req. 799831: added code to allow nesting of critical functions
8329         * src/mcs51/gen.c (genFunction, genEndFunction)
8330         * src/ds390/gen.c (genFunction, genEndFunction)
8331
8332 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8333
8334         * src/SDCCsymt.c (sclsFromPtr),
8335         * src/SDCCsymt.h,
8336         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
8337         support for standard C idiom of memory mapped variables; for
8338         example, *((xdata int*)0x1234) = 1 is now internally equivalent
8339         to xdata int at 0x1234 tempvar = 1.
8340         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
8341         provided by Akiya ISHIDA
8342
8343 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
8344
8345         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
8346         * src/SDCCval.c (constVal): added reduction from int to char
8347         * src/SDCCval.c (valMult, valDiv): fixed sign handling
8348         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
8349         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
8350         to ignore the sign
8351         * support/regression/tests/shifts.c: fixed
8352
8353 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8354
8355         * src/z80/gen.c (genXor): Fixed bug #805445
8356
8357 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8358
8359         Fixed bug #621531 (const & volatile confusion in the type chain).
8360         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
8361         refer to the const or volatile state of the pointer itself.
8362
8363         * src/SDCCast.c
8364         * src/SDCCglue.c
8365         * src/SDCCicode.c
8366         * src/SDCCsymt.c
8367         * src/SDCCval.c
8368         * src/SDCC.y
8369         * src/SDCCsymt.h
8370         * src/pic/gen.c
8371         * src/pic/ralloc.c
8372         * src/pic16/gen.c
8373         * src/pic16/ralloc.c
8374         * support/regression/tests/const.c
8375
8376 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8377
8378         When checking for duplicated modules, use absolute paths
8379         instead of relative paths.  Files changed:
8380
8381         * as/mcs51/lklib.c
8382         * link/z80/lklib.c
8383
8384 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8385
8386         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
8387
8388 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8389
8390         * device/include/string.h: added size_t typedef, changed
8391         prototypes to use size_t, eliminated separate reentrant and
8392         non-reentrant declarations, added _memmove declaration
8393         * device/lib/_memcpy.c: changed to use size_t instead of int,
8394         changed /4 to >>2 to avoid division library call
8395         * device/lib/_memcmp.c,
8396         * device/lib/_memset.c,
8397         * device/lib/_strncat.c,
8398         * device/lib/_strncpy.c,
8399         * device/lib/_strncmp.c: changed to use size_t instead of int
8400         * device/lib/_memmove.c: new file (fixed bug #772294)
8401         * device/lib/Makefile.in: added _memmove.c
8402         * device/lib/z80/asm_strings.s: fixed bug #772290
8403         * support/regression/tests/bitfields.c: attempt to fix host assertion
8404         failure on amd64-unknown-linux2.2
8405
8406 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8407
8408         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
8409         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
8410         * as/z80/asmain.c (main): fixed bug #801766
8411
8412 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
8413
8414         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
8415         compilers
8416
8417 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8418
8419         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
8420         reported in bug #800609
8421
8422 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
8423
8424         * Top header beautifications in src/pic16 directory:
8425           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
8426           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
8427           pcoderegs.h, ralloc.c, ralloc.h
8428         * main.c: added top header and GPL license notice
8429         * pcode.c: fixed the if-conditional warning
8430
8431 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
8432
8433         * device/lib/_mullong.c: replaced int by short for gcc
8434
8435 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8436
8437         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
8438         and JUMPTABLE iCodes properly now (worked by accident before)
8439         * src/mcs51/gen.c (leftRightUseAcc),
8440         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
8441         iCode properly now. Use getSize instead of nRegs since a & b
8442         aren't part of the nRegs tally.
8443
8444 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
8445
8446         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
8447         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
8448           before instructions that use the _STATUS register
8449
8450 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
8451
8452         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
8453         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
8454         fetching of the pointer
8455         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
8456         copied from genNearPointerSet()
8457         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
8458         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
8459         If they pop r0/r1 they must be called in the opposite order than aopOp().
8460         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
8461         (resp. --stack-auto), prepared for --xstack
8462
8463 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8464
8465         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
8466
8467 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8468
8469         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
8470         these ports have their own __sdcc_external_start()
8471
8472 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
8473
8474         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8475         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
8476         type for bits was changed. It resulted in bit variables becoming
8477         global, which is not permitted in PIC 14 assembly output.
8478
8479 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8480
8481         * doc/sdccman.lyx: various additions and updates. Rearranged sections
8482
8483 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8484
8485         Z80 and MCS51 linkers complaint if a public symbol is defined
8486         in more than one library module:
8487
8488         * as/mcs51/lklib.c
8489         * link/z80/lklib.c
8490         * as/mcs51/Makefile.in
8491
8492 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8493
8494         A few small changes that speed up the peephole optimizer.
8495
8496         * src/SDCCpeeph.c
8497
8498 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8499
8500         Try to make the peephole optimizer smarter by maintaining
8501         an association between the assembly source code and the
8502         iCodes that originated them. Put this information to use
8503         with a new peephole rule condition "notVolatile" so that
8504         the rules can be aggressive yet still safe.
8505
8506         * src/SDCCpeeph.c
8507         * src/SDCCpeeph.h
8508         * src/mcs51/gen.c
8509         * src/mcs51/peeph.def
8510
8511 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8512
8513         Fixed bug #741761
8514
8515         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
8516         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
8517         if the left or right operand symbols have the accuse flag set.
8518
8519 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8520
8521         Changed the type of the result of the ! (NOT) operator to char;
8522         previously it returned the same type as the source. This allows
8523         us to eliminate all the genFloatNot functions (all of its target
8524         implementations were very buggy) since !float can use the same
8525         code as !long now.
8526
8527         * src/SDCCicode.c (ast2iCode): ! returns char
8528         * src/mcs51/gen.c (genNot, genNotFloat),
8529         * src/ds390/gen.c (genNot, genNotFloat),
8530         * src/z80/gen.c (genNot, genNotFloat),
8531         * src/pic/gen.c (genNot, genNotFloat),
8532         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
8533
8534 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
8535
8536         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8537         1. Interrupt would not compile properly. Ensure PCLATH register is saved
8538            during interrupts. Ensure WSAVE is located at a shared bank address.
8539         2. Fixed page selection in some places
8540         3. Fixed BTFSS/C to where necessary use registers directly and not simply
8541            the registers name strings.
8542         4. Fixed "signed / unsigned compare" compiler warnings.
8543         5. The PIC port manages its own allocation of the general purpose
8544            registers, but makes no attempt to reuse them. As a result when
8545            compiling it soon runs out of general purpose registers. Some
8546            additional code was added to the files pcode.c and device.c to walk
8547            through the function call tree and rename the registers so that they
8548            get reused.
8549
8550         * src/pic/device.c
8551         * src/pic/gen.c
8552         * src/pic/glue.c
8553         * src/pic/pcode.c
8554         * src/pic/pcode.h
8555         * src/pic/ralloc.c
8556         * src/pic/ralloc.h
8557         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
8558         genPlus() & genMinus() when the result is the same as left or right
8559
8560 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8561
8562         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
8563
8564 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8565
8566         Made bitfield a distinct type from bit so that bitfields
8567         convert as per ANSI C and bits retain their traditional
8568         boolean style behaviour. Implemented bitfield support in
8569         the z80 port.
8570
8571         * src/SDCCsymt.h,
8572         * src/SDCCsymt.c,
8573         * src/SDCCast.c,
8574         * src/cdbFile.c,
8575         * src/mcs51/gen.c,
8576         * src/ds390/gen.c: bit v bitfield split
8577         * src/z80/gen.c: New support for bitfields
8578         * support/regression/tests/bitfields.c: reenabled z80,
8579         added more tests
8580
8581 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8582
8583         Rules 246.x, 247.x relate to bitfields, the others speed up
8584         access to xdata mapped I/O devices.
8585
8586         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
8587
8588 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8589
8590         Cleaned up genPackBits and genUnpackBits and added two helper
8591         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
8592         for literal assignments in genPackBits (thanks to Frieder for
8593         reminding me).
8594
8595         * src/mcs51/gen.c
8596         * src/ds390/gen.c
8597
8598 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8599
8600         Fixed bug #748310 (pointer to function type mishandled when the
8601         function name is omitted). Also fixed a SIGSEGV when a function
8602         attribute (reentrant, etc) is used on a non-function or on a
8603         function but misplaced before the parameter list.
8604
8605         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
8606         bug #748310
8607         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
8608         * support/Util/SDCCerr.h,
8609         * support/Util/SDCCerr.c: Added func attr misuse error msg
8610
8611 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8612
8613         Fixed bug #787649 by anonymous
8614         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
8615         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
8616
8617 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8618
8619         Fixed numerous bitfield problems.
8620
8621         * src/SDCC.y: More bitfield related error checking
8622         * src/SDCCsymt.h,
8623         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
8624         * support/Util/SDCCerr.h,
8625         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
8626         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8627         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8628         * support/regression/tests/bitfields.c: tests added
8629
8630 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8631
8632         Made the constant following the "interrupt" keyword optional. If
8633         omitted, the function will not automatically be given an entry
8634         in the interrupt vector table (similar to #pragma NOIV, but
8635         less syntacticly kludgy). The interrupt number is also now
8636         range checked. Also fixed a bug in the high order bit example
8637         in the manual.
8638
8639         * src/SDCC.y
8640         * src/SDCCmem.c
8641         * src/SDCCglue.c
8642         * src/SDCCsymt.h
8643         * support/Util/SDCCerr.c
8644         * support/Util/SDCCerr.h
8645         * doc/sdccman.lyx
8646
8647 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8648
8649         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
8650         * src/SDCCicode.c (operandOperation): rewritten some ops
8651         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
8652         * src/SDCCsymt.c (computeType): literals are handled the same way as any
8653         other type
8654         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
8655         be re-activated by defining REDUCE_LITERALS)
8656         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
8657         unsigned, but are signed by default
8658         * src/SDCCval.c (constVal): rearranged
8659         * src/SDCCval.c (valMod): preliminary fix
8660         * src/SDCCval.c (valCastLiteral): use TYPE_* types
8661         * support/regression/literalop.c: added, work in progress
8662
8663 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8664
8665         Generate warnings for useless declarations like "char data;"
8666         that don't do what new users expect.
8667
8668         * src/SDCC.y
8669         * support/Util/SDCCerr.h
8670         * support/Util/SDCCerr.c
8671
8672 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
8673
8674         * src/SDCCval.c (valMult): fix overflow detection of negative int
8675
8676 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8677
8678         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
8679
8680         Changes to support big endian targets:
8681
8682         * src/ports.h
8683         * src/SDCCglue.c
8684         * src/avr/main.c
8685         * src/ds390/main.c
8686         * src/izt/i186.c
8687         * src/mcs51/main.c
8688         * src/pic/main.c
8689         * src/pic16/main.c
8690         * src/xa51/main.c
8691         * src/z80/main.c
8692
8693 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
8694
8695         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
8696         * device/lib/time.c: fixed warning "integer overflow in expression"
8697
8698 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
8699
8700         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
8701         * src/SDCCval.c (constVal): changed default to signed; hex and octal
8702         constants are unsigned; added recognition of "u" flag for unsigned
8703         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
8704         * src/SDCCval.c (valDiv, valMod): fixed signdness
8705         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
8706         signedness of modulo, left and right shift
8707         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
8708         * support/Util/SDCCerr.h: added warning W_INT_OVL
8709         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
8710         * src/SDCCast.c (ast_print): improved output of constants
8711
8712 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8713
8714         Fixed some warnings when building with MSVC:
8715
8716         * as\mcs51\asdata.c
8717         * as\z80\asdata.c
8718         * as\mcs51\asm.h
8719         * as\z80\asm.h
8720         * link\z80\aslink.h
8721         * link\z80\lkdata.c
8722         * link\z80\lkeval.c
8723         * link\z80\lkgb.c
8724         * link\z80\lkihx.c
8725         * link\z80\lks19.c
8726         * link\z80\lksym.c
8727         * support\cpp2\cpplib.c
8728         * src\ds390\gen.c
8729         * src\mcs51\gen.c
8730
8731 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
8732
8733         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
8734
8735 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8736
8737         * support\librarian\clean.mk: Do not remove Makefile.
8738         * support\librarian\Makefile: added.
8739
8740 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8741
8742         Added librarian to MSVC build:
8743         * all.dsp
8744         * sdcc.dsw
8745         * support\librarian\librarian.dsp
8746
8747         'configure' not needed for librarian, removed:
8748         * support\librarian\configure
8749         * support\librarian\configure.in
8750         * support\librarian\config_in.h
8751         * support\librarian\Makefile.in
8752
8753         Hopefully these ones built the librarian and the rest of sdcc properly:
8754         * Makefile
8755         * Makefile.common.in
8756
8757         Messed up 'configure', so revert to previous version:
8758         * configure
8759         * configure.in
8760
8761 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
8762
8763         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
8764         there, while the mantissa of a double is "only" 53 bits wide.
8765
8766 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8767
8768         Adding sdcclib to the build.  MSVC project coming soon.
8769         Files added/changed:
8770
8771         * support\librarian\clean.mk
8772         * support\librarian\configure
8773         * support\librarian\configure.in
8774         * support\librarian\config_in.h
8775         * support\librarian\Makefile.bcc
8776         * support\librarian\Makefile.in
8777         * support\librarian\sdcclib.c
8778         * Makefile.bcc
8779         * Makefile
8780         * Makefile.common.in
8781         * configure
8782         * configure.in
8783
8784 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8785
8786         Linker now complaints if linked modules have conflicting options, for
8787         example, one compiled using --model-large and another one compiled with
8788         --model-small.  The following files were modified:
8789
8790         * as\mcs51\asdata.c
8791         * as\mcs51\aslink.h
8792         * as\mcs51\asm.h
8793         * as\mcs51\asmain.c
8794         * as\mcs51\asout.c
8795         * as\mcs51\i51pst.c
8796         * as\mcs51\lkdata.c
8797         * as\mcs51\lklibr.c
8798         * as\mcs51\lkmain.c
8799         * as\z80\asdata.c
8800         * as\z80\asm.h
8801         * as\z80\asmain.c
8802         * as\z80\asout.c
8803         * as\z80\z80pst.c
8804         * link\z80\aslink.h
8805         * link\z80\lkdata.c
8806         * link\z80\lklibr.c
8807         * link\z80\lkmain.c
8808         * src\SDCCglue.c
8809
8810 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8811
8812         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
8813         as/mcs51/lklibr.c: Generate a warning when a library is not found.
8814
8815 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
8816
8817         * src/z80/mappings.i: fix _mul[us][int,long] entries
8818
8819 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8820
8821         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
8822
8823 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8824
8825         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
8826         * support/regression/tests/bitopcse.c: added
8827         fixed warning:
8828         * src/avr/gen.c:
8829         * src/pic/gen.c:
8830         * src/pic16/gen.c:
8831         * src/z80/gen.c:
8832         * src/xa51/gen.c:
8833
8834 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8835
8836         added support for new library format to z80, gbz80 linkers:
8837         *link/z80/aslink.h
8838         *link/z80/lklex.c
8839         *link/z80/lklib.c
8840         *link/z80/lklist.c
8841
8842 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8843
8844         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
8845         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
8846
8847 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
8848
8849         added DUMMY_READ_VOLATILE:
8850         * src/SDCC.y:
8851         * src/avr/gen.c:
8852         * src/xa51/gen.c:
8853         * src/z80/gen.c:
8854         * src/pic/gen.c:
8855         * src/pic16/gen.c:
8856         * src/mcs51/gen.c:
8857         * src/ds390/gen.c:
8858         * src/SDCCcse.c (algebraicOpts): many improvements
8859         * src/SDCCcse.h: removed algebraicOpts()
8860         * src/SDCCicode.c (picDummyRead): added
8861
8862 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8863
8864         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
8865         "Insufficient space in data memory".
8866
8867 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8868
8869         * src/mcs51/gen.c: fixed bug #771358
8870         * src/z80/gen.c: fixed bug #759087
8871
8872 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
8873
8874         * src/pic16/glue.c: minor cleanup by Vangelis
8875
8876 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8877
8878         * device/include/regc515c.h: fixed #758477
8879         * device/lib/_gptrget.c: saving some cycles in generic pointer get
8880         * device/lib/_gptrput.c: saved a few bytes
8881         * my tab spacing is 8, yours too?)
8882         * device/lib/_ser.c: process RX bytes earlier than TX bytes
8883         * device/lib/serial.c: process RX bytes earlier than TX bytes
8884         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
8885
8886 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8887
8888         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
8889
8890 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8891
8892     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
8893
8894 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
8895
8896         * device/lib/Makefile.in: bad fix, reverted to 1.43
8897
8898 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
8899
8900         * device/lib/Makefile.in: added missing z80 object files
8901
8902 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
8903
8904         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
8905         pic16 progress by Vangelis:
8906         * src/SDCCglobl.h:
8907         * src/SDCCmain.c:
8908         * src/pic/Makefile:
8909         * src/pic:
8910         * pic/Makefile:
8911         * pic16/device.c:
8912         * pic16/device.h:
8913         * pic16/gen.c:
8914         * pic16/gen.h:
8915         * pic16/genarith.c:
8916         * pic16/glue.c:
8917         * pic16/main.c:
8918         * pic16/pcode.c:
8919         * pic16/pcode.h:
8920         * pic16/pcodepeep.c:
8921         * pic16/peeph.def:
8922
8923 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8924
8925     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
8926
8927 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8928
8929     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
8930     added gbz80 build to MSVC project.
8931     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
8932     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
8933     from 8051 stuff and setup so it links using a .lnk file.
8934
8935 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8936
8937     * support/librarian/sdcclib.c: sdcc librarian.
8938     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
8939     with sdcclib.
8940
8941 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8942
8943     * as/mcs51/lkmain.c: properly handle extensions in function afile.
8944
8945 2003-07-02  Borut Razem <borut.razem AT siol.net>
8946
8947         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
8948         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
8949         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
8950         src/xa51/main.c, src/z80/main.c:
8951         virtualization of glue() function: each port has it's own glue function,
8952         which is accessed by do_glue function pointer in PORT.general structure
8953
8954 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
8955
8956         * DS800C400 fun, improved ROM interface and tinibios.
8957
8958 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
8959
8960         * More support for DS80C400. Now includes beginning of interface to ROM.
8961
8962 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
8963
8964         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
8965
8966 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8967
8968         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
8969
8970 2003-06-19  Borut Razem <borut.razem AT siol.net>
8971
8972         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
8973
8974 2003-06-19  Borut Razem <borut.razem AT siol.net>
8975
8976         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
8977         fixed Z80 port - crt0.o: cannot open.
8978
8979 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
8980
8981         * support/Util/MySystem.c (merge_command): revert bad fix
8982
8983 2003-06-18  Borut Razem <borut.razem AT siol.net>
8984
8985         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
8986
8987 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8988
8989         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8990         option --use-stdout sends errors to stdout instead of stderr.
8991
8992 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
8993
8994         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
8995
8996 2003-06-15  Borut Razem <borut.razem AT siol.net>
8997
8998         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
8999         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
9000         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
9001         fixed width array of pointers replaced with sets;
9002         multiple include and lib paths ared transferred to preprocessor and linker
9003         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
9004         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
9005         fixed width array of pointers
9006         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
9007         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
9008         fixupPath(), getPathDifference()
9009         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
9010         fixed width array of pointers
9011
9012 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
9013
9014         * src/pic16/ralloc.c: fix warnings
9015         * src/pic16/pcode.c: fix warning
9016
9017 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
9018
9019          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
9020         know all the details, but essentially this set of changes enable
9021         the pic16 port to generate movff instructions and generate assembler
9022         directives,
9023         * src/SDCCmain.c:
9024         * src/pic16/gen.c:
9025         * src/pic16/glue.c:
9026         * src/pic16/pcode.c:
9027         * src/pic16/device.c:
9028         * src/pic16/main.c:
9029         * src/pic16/pcode.h:
9030         * src/pic16/pcoderegs.c:
9031         * src/pic16/ralloc.c:
9032         * src/pic16/ralloc.h:
9033
9034 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9035
9036         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9037         added option --vc, so sdcc errors and warnings are compatible with
9038         Microsoft Visual Studio.
9039
9040 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9041
9042         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
9043           device/lib/libfloat.lib: added atof function.
9044
9045 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
9046
9047         * doc/sdccman.lyx: updated to Lyx 1.3
9048         * doc/cdbfileformat.lyx: updated to Lyx 1.3
9049         * doc/test_suite_spec.lyx: updated to Lyx 1.3
9050         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
9051
9052 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
9053
9054         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
9055
9056 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9057
9058         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
9059           additions to the "related tools/documentation" section
9060
9061 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
9062
9063         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
9064
9065 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
9066
9067         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
9068         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
9069
9070 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
9071
9072         * doc/sdccman.lyx: fix double dash and other minor things
9073         * doc/Makefile: fix double dash
9074
9075 2003-05-28  Karl Bongers(patches from Martin Helmling)
9076         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
9077           condition and ignore commands.
9078
9079 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9080
9081         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
9082           is in parts still quite out of date, I did changes as far as I felt makes sense
9083           for a non-native english speaker.
9084           Please feel free to add to the manual or to correct my changes.
9085         * doc/Makefile: undid touching the date of intermediate tex files.
9086
9087 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9088
9089         * doc/sdccman.lyx: Manual has an index now
9090
9091 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
9092
9093         Finalize muluint/mulsint and mululong/mulslong merging:
9094         * device/lib/_mulint.c
9095         * device/lib/_mullong.c
9096         * device/lib/gbz80/mul.s
9097         * device/lib/gbz80/stubs.s
9098         * device/lib/z80/mul.s
9099         * device/lib/z80/stubs.s
9100         * src/SDCCsymt.c (initCSupport)
9101
9102 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9103
9104         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
9105         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
9106           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
9107           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
9108           instead of /Zm500.
9109
9110 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9111
9112         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
9113           the regression tests I'm not brave enough to enable 245.b, 245.c
9114         * doc/sdccman.lyx: added latex preamble for hyperref package.
9115           Using pdflatex this will give you a hyperlinked pdf file with
9116           bookmarks. (prepend '%' before /usepackage if this breaks something)
9117
9118 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9119
9120          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
9121
9122 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
9123
9124         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
9125
9126 2003-05-21    <johan AT balder>
9127
9128         * src/SDCCglue.c (printIval): fixed bug #739934
9129
9130 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9131
9132         Applied patch from bug 737905 (renamed yylineo to mylineno):
9133         * src/altlex.c
9134         * src/SDCCast.c
9135         * src/SDCglobl.h
9136         * src/SDCC.lex
9137         * src/SDCCsymt.c
9138         * src/SDCCval.c
9139         * src/pic16/pcode.c: Cleaned warnings
9140         * src/pic16/pcodeflow.c: Cleaned warnings
9141         * src/pic16/pcoderegs.c: Cleaned warnings
9142
9143 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
9144
9145         * src/pic16/pcode.c: Cleaned warnings
9146         * src/pic16/pcodepeep.c: Cleaned warnings
9147         * src/pic16/ralloc.c: Cleaned warnings
9148
9149 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9150
9151         * doc/sdccman.lyx: fixed bug 739745
9152         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
9153
9154 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
9155
9156         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
9157         it can be defined with CFLAGS when running configure
9158         * src/SDCCmain.c: fixed compiling + linking with object files
9159
9160 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
9161
9162         * configure.in: configure for pic16 port,
9163             added --disable-pic16-port
9164         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
9165         * src/SDCCmain.c: linkOptions is changed to set *,
9166             added if/endif conditional macros to remove options help
9167             messages from optionsTable when a port is not configured, added
9168             support for the PIc16 port in the ports table, when executing
9169             the compiler with no port specified on command line, a default
9170             port is selected with the new macro DEFAULT_PORT which is
9171             defined in port.h, in setDefaultOptions() linkOptions is removed
9172             from initialization assignment, since now it is a set,
9173             parseCmdLine uses setParseWithComma for linkOptions, in
9174             linkEdit() linkOptions are accessed with new function indexSet()
9175             which returns the i'th item of a set variable. See SDCCset.c, in
9176             linkEdit() when calling buildCmdLine(), added linkOptions as
9177             last argument. Now users can pass arguments to gplink via the
9178             -Wl option, main() uses pic16glue() to glue up pic16 programs
9179         * src/SDCCpeeph.c: various changes to support pic16
9180         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
9181             return the i'th item of the set
9182         * src/SDCCset.h: added function prototype for indexSet()
9183         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
9184         * src/clean.mk: added pic16 in CLEANALLPORTS variable
9185         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
9186             added macro DEFAULT_PORT
9187         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
9188         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
9189             generated
9190         * src/pic16/glue.c: commented out some error producing lines
9191         * src/pic16/main.c: __config directives are commented out to stop
9192             gpasm complaining and test the linkage with gplink, _linkCmd and
9193             _asmCmd changed to be more gplink and gpasm friendly
9194         * src/pic16/peeph.def: peep rule 3 is commented out, since it
9195             produced an error when parsed, peep rule 12 is added to utilize
9196             movff, but it is commented out since the pCode does not support
9197             yet a command with 2 address arguments
9198
9199 2003-05-18    <johan AT balder>
9200
9201         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9202         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9203 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
9204
9205         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
9206   Added feature to script commands from file.
9207
9208 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
9209
9210         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
9211         * src/SDCCutil.c: include ctype.h for win32
9212
9213 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
9214
9215         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
9216
9217 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
9218
9219         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
9220   Fixed so you can set breakpoints prior to run, run does not stop
9221   on entry now.  Add tbreak.  Other enhancements and fixes for use
9222   with ddd.
9223
9224 2003-05-12  Borut Razem <borut.razem AT siol.net>
9225
9226         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
9227
9228 2003-05-11  Borut Razem <borut.razem AT siol.net>
9229
9230         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
9231         the path of bin directory, so that PATH is the only env. variable, which has to be set
9232         in case of standard installation.
9233         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
9234         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
9235         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
9236
9237 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9238
9239         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
9240         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
9241         temp files are in the port dir; clean the gen/test directory when
9242         generating new test.c
9243         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
9244         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
9245         * support/regression/tests/zeropad.c: added
9246
9247 2003-05-09    <johan AT balder>
9248
9249         * src/SDCCglue.c: fixed bug #597940
9250
9251 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
9252
9253         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9254   cache sfr, optimize next,step, fix off by one sourceline,
9255   support ddd list function.
9256         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
9257
9258 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9259
9260         * support/regression/HTMLgen.py: added compare_s2f()
9261         * support/regression/Makefile: redo 1.27
9262         * support/regression/generate-cases.py: redo 1.5
9263
9264 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
9265
9266         * support/regression/tests/float.c: workaround 33 bit hex constant
9267         * support/regression/tests/simplefloat.c: fix division for host
9268
9269 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
9270
9271         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
9272         that tame's the PIC's over-aggressive optimizer.
9273
9274 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9275
9276          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
9277          support for MSVC.
9278
9279 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
9280
9281         Initial support for DS80C400. "Hello world" runs on TINIm400
9282         (with polled I/O).
9283
9284 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
9285
9286          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9287          * Some notes on ddd usage added in debugger/README
9288          Martin Helmling adding more features and fixes for ddd GUI debugger.
9289          Code added for nexti, stepi, up, down, and other adjustments.
9290
9291 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
9292
9293         * src/pic/pCodepeep.c non-wildcard asmops are now handled
9294         * src/pic/peeph.def Added two rules to optimize carry manipulation
9295         * src/pic/* removed debug printfs
9296
9297 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
9298
9299         * debugger/mcs51/cmd.c: added header newalloc.h
9300
9301 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
9302
9303         * as/Makefile: new EXEEXT
9304         * as/z80/Makefile: remove trailing slash of BUILDIR
9305         * as/z80/clean.mk: new EXEEXT
9306         * Makefile.common.in: add to CFLAGS (and others), don't replace it
9307         * support/cpp2/Makefile.in: new EXEEXT
9308         * src/pic/glue.c (pic14emitRegularMap): fixed warning
9309
9310 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
9311
9312         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
9313         EXEEXT was introduced to fix all related problems with targets
9314         "clean", "install" and "uninstall"; a couple of further flaws
9315         especially with "clean" have been fixed too
9316         * as/mcs51/Makefile.in
9317         * as/mcs51/clean.mk
9318         * as/z80/Makefile
9319         * Makefile
9320         * clean.mk
9321         * debugger/mcs51/Makefile.in
9322         * debugger/mcs51/clean.mk
9323         * link/z80/Makefile
9324         * link/z80/Makefile.in
9325         * link/z80/clean.mk
9326         * link/Makefile
9327         * packihx/Makefile.in
9328         * packihx/clean.mk
9329         * sim/ucsim/Makefile
9330         * sim/ucsim/clean.mk
9331         * sim/ucsim/avr.src/Makefile.in
9332         * sim/ucsim/avr.src/clean.mk
9333         * sim/ucsim/s51.src/Makefile.in
9334         * sim/ucsim/s51.src/clean.mk
9335         * sim/ucsim/xa.src/Makefile.in
9336         * sim/ucsim/xa.src/clean.mk
9337         * sim/ucsim/z80.src/Makefile.in
9338         * sim/ucsim/z80.src/clean.mk
9339         * sim/ucsim/main_in.mk
9340         * sim/ucsim/packages_in.mk
9341         * sim/ucsim/gui.src/Makefile.in
9342         * sim/ucsim/gui.src/serio.src/Makefile.in
9343         * sim/ucsim/gui.src/serio.src/clean.mk
9344         * src/Makefile.in
9345         * src/clean.mk
9346         * support/cpp2/Makefile.in
9347         * support/cpp2/clean.mk
9348         * support/makebin/Makefile
9349         * support/makebin/clean.mk
9350         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
9351         * doc/sdccman.lyx: --program-suffix no longer needed
9352
9353 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
9354
9355          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
9356          Martin Helmling added support for ddd GUI debugger.
9357          Code added to display assembly, set variables, and other commands
9358          to interface to ddd.
9359
9360 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
9361
9362         * as/Makefile: fix target clean
9363         * as/clean.mk: fix target clean
9364         * as/z80/clean.mk: fix target clean
9365
9366 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
9367
9368         * Makefile.common.in: added  AT EXEEXT AT
9369         * configure.in: removed all mingw32 stuff
9370         * configure: rebuilt from configure.in
9371         * doc/sdccman.lyx: updated section "installation"
9372         * support/scripts/sdcc_mingw32: adapted to configure
9373         * support/scripts/sdcc_cygwin_mingw32: added
9374
9375 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
9376
9377         * src/pic Added object file support for the PIC port
9378         * src/pic Applied patch from Craig Franklin (this started the object file support)
9379         * src/regression Updated the PIC regression tests for object files
9380
9381 2003-04-20  Borut Razem <borut.razem AT siol.net>
9382
9383         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
9384           lklex.c: In function `getfid':
9385           lklex.c:203: warning: array subscript has type `char'
9386         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
9387           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
9388         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
9389           stack handling macros
9390
9391 2003-04-19  Borut Razem <borut.razem AT siol.net>
9392
9393         * "handling space characters in file path" task:
9394         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
9395         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
9396         * support/Util/MySystem.h: make it self-sufficient
9397         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
9398           src/z80/main.c, sdcc/as/mcs51/lklex.c:
9399           handling space characters in file path
9400         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
9401           (it will be used by assemblers, which have their own includes, e.g. gpasm)
9402         * support/Util/MySystem.c: handling space characters in executable's path
9403
9404 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
9405
9406         * as/z80/Makefile: fix permanent rebuild of z80
9407         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
9408         * support/regression/tests/bitfields.c: added Johan's bitfields.c
9409
9410 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
9411
9412         * src/SDCCopt.c: add special case optimization to replace modulo by
9413           a power of two with a bitwise AND.
9414
9415 2003-04-18    <johan AT balder>
9416
9417         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
9418
9419 2003-04-17    <johan AT balder>
9420
9421         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
9422         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
9423
9424 2003-04-13  Borut Razem <borut.razem AT siol.net>
9425
9426         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
9427         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
9428           fixed mingw problem in adl_NORMALIZE_PATH
9429
9430 2003-04-12  Borut Razem <borut.razem AT siol.net>
9431
9432         * fixed "#pragma SAVE/RESTORE can not be nested":
9433         * src/SDCC.lex: reworked pragma handling functions
9434         * sdcc/src/SDCCglobl.h: reworked stack handling macros
9435         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
9436
9437 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9438
9439         * src/SDCCutil.c (pathEquivalent): defined but not used
9440         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
9441         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
9442         * configure: rebuilt from configure.in
9443         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9444         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9445         * device/include/Makefile.in: replace sdcc_datadir
9446         * device/lib/Makefile.in: replace sdcc_datadir
9447         * Makefile.common.in: add LDFLAGS from configure
9448         * packihx/Makefile.in: use LDFLAGS
9449         * src/Makefile.in: use LDFLAGS
9450         * support/cpp2/Makefile.in: add LDFLAGS from configure
9451         * support/makebin/Makefile: use LDFLAGS
9452         * .version: bumped version number to 2.3.5
9453
9454 2003-04-12  Borut Razem <borut.razem AT siol.net>
9455
9456         * completed "different paths" task:
9457         * src/SDCCmacro.c: fixed bug in handling quotes
9458         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
9459         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
9460
9461 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9462
9463         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
9464
9465 2003-04-11 kevin Vigor <kevin AT vigor.nu>
9466
9467         * ds390/gen.c ds390/peeph.def: fix bug 706781
9468
9469 2003-04-11  Borut Razem <borut.razem AT siol.net>
9470
9471         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
9472
9473 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
9474
9475         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
9476         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
9477          set - this bit used to not be set...).
9478         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
9479           bad code in PIC Port
9480         * src/regression/and2.c added to test bug 609268
9481         * src/regression/Makefile added and2.c to regression test
9482
9483
9484 2003-04-08    <johan AT CP255758-A>
9485
9486         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
9487         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
9488         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
9489
9490 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
9491
9492         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
9493         fix bug #487815
9494         * support/cpp2/Makefile.in: fix bug #487815
9495         * configure: rebuilt from configure.in
9496         * Makefile.common.in: docdir changed, new path suffixes
9497         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9498         * sdcc_vc_in.h: reflect changes from sdccconf.h
9499         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
9500         * src/SDCCutil.h: remove BINDIR hack
9501         * doc/sdccman.lyx: update new path hierarchy
9502
9503 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9504
9505         * src/SDCCpeeph.c: added okToRemoveSLOC test
9506
9507 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9508
9509         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
9510
9511 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9512
9513         * src/SDCCpeeph.c: added labelIsReturnOnly test
9514         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
9515
9516 2003-04-05    <johan AT balder>
9517
9518         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
9519         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
9520         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
9521         * src/SDCCast.c: fixed a warning
9522         * src/SDCCast.h: fixed a warning
9523         * src/SDCCicode.c (operandFromAst): fixed a warning
9524
9525 2003-04-04    <johan AT balder>
9526
9527         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
9528         * src/SDCCast.c (decorateType): fixed bug #715076
9529         * src/SDCC.y: fixed bug #702907
9530
9531 2003-04-03    <johan AT balder>
9532
9533         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
9534         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
9535         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
9536         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
9537         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
9538
9539 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
9540
9541         * _decdptr.c: fix return values
9542         * _gptrget.c: fix return values
9543         * _gptrgetc.c: fix return values
9544         * _gptrput.c: fix return values
9545         * _mulint.c: fix return values
9546         * as/z80/Makefile: fix 'make -j' problem
9547
9548 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
9549
9550         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
9551         * configure.in: big cleanup, updated to autoconf 2.5x
9552         * configure: rebuilt from configure.in
9553         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9554         * sdcc_vc_in.h: reflect changes from sdccconf.h
9555         * doc/Makefile: fixed a flaw in "make install"
9556
9557 2003-04-02    <johan AT balder>
9558
9559         * src/ds390/gen.c (genCmp): no comments
9560         * src/mcs51/gen.c (genCmp): no comments
9561         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
9562         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
9563
9564 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
9565
9566         * support/regression/generate-cases.py: place generated file in given sub directory
9567         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
9568         * support/regression/Makefile: improvements for 'make -j';
9569         side effect: it's simpler and faster now
9570
9571 2003-03-31  Borut Razem <borut.razem AT siol.net>
9572
9573         * src/z80/main.c: link-{port} and as-{port} defined without path
9574         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
9575
9576 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
9577
9578         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
9579
9580 2003-03-30  Borut Razem <borut.razem AT siol.net>
9581
9582         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
9583           changed type of list parameter to set
9584         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
9585         * src/port.h: changed type of do_assemble() parameter to set
9586         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
9587           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
9588           definition of "cppoutfilename" macro with NULL value in preProcess()
9589         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
9590         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
9591         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
9592           replaced with set *binPathSet
9593         * shash_add() deallocates the item, if allready exsists, before adding the new one
9594         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
9595
9596 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
9597
9598         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
9599           a nested for loop bug in the PIC port
9600         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
9601           for loops
9602
9603 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
9604
9605         * support/Util/dbuf.h: remove C++ stuff to make it portable
9606
9607 2003-03-28  Borut Razem <borut.razem AT siol.net>
9608
9609         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
9610           literal strings in stringLiteral()
9611         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
9612         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
9613           to the project
9614
9615 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
9616
9617         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
9618
9619 2003-03-26    <johan AT balder>
9620
9621         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
9622         * src/ds390/gen.c (saveRegisters): catched symbol abuse
9623         * src/SDCCast.c (decorateType): fixed " -v < 3"
9624
9625 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
9626
9627         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
9628         Added Lenny Story's debug infrastructure changes:
9629         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
9630         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
9631         * src/cdbFile.c: added
9632         * src/SDCCdebug.c: added
9633         * src/SDCCdebug.h: added
9634         * src/SDCCast.c (createFunction)
9635         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
9636         * src/SDCCmain.c (parseCmdLine, main)
9637         * src/SDCCmem.c (redoStackOffsets)
9638         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
9639         * src/SDCCsymt.h
9640         * src/common.h
9641         * src/avr/gen.c (genAVRCode)
9642         * src/ds390/gen.c (gen390Code)
9643         * src/mcs51/gen.c (gen51Code)
9644         * src/pic/gen.c (genpic14Code)
9645         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
9646         * src/xa51/gen.c (genXA51Code)
9647         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
9648
9649 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9650
9651         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
9652         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
9653
9654 2003-03-22    <johan AT balder>
9655
9656         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
9657
9658 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
9659
9660         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
9661         * doc/cdbfileformat.lyx: added, written by Lenny Story
9662         * doc/Makefile: added cdbfileformat.lyx
9663         * doc/clean.mk: added cdbfileformat.lyx
9664
9665 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
9666
9667         * src/mcs51/peeph.def: fix bug #705773
9668
9669 2003-03-20    <johan AT balder>
9670
9671         An sfr/sbit can have an "at #" AND an initializer
9672         * src/SDCCsymt.c (checkSClass):
9673         * src/SDCCmem.c (allocGlobal):
9674         * src/SDCCmem.c (allocLocal):
9675         * src/SDCCast.c (createBlock):
9676
9677 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
9678
9679         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
9680
9681 2003-03-16    <johan AT balder>
9682
9683         Undid the hackup of const and volatile, the problem is much bigger
9684         * src/SDCC.y:1.65
9685         * src/SDCCast.c:1.171
9686         * src/SDCCglue.c:1.138
9687         * src/SDCCicode.c:1.146
9688         * src/SDCCsymt.c:1.150
9689         * src/SDCCval.c:1.65
9690
9691 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
9692
9693         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
9694         * src/ds390/gen.c (genAddrOf): fixed bug #704087
9695
9696 2003-03-13    <johan AT balder>
9697
9698         Hackup const and volatile modifiers in type chains a bit:
9699         * src/SDCC.y:1.63
9700         * src/SDCCast.c:1.169
9701         * src/SDCCglue.c:1.136
9702         * src/SDCCicode.c:1.143
9703         * src/SDCCsymt.c1.146
9704         * src/SDCCsymt.h1.59
9705         * src/SDCCval.c:1.63
9706
9707 2003-03-12    <johan AT balder>
9708
9709         * src/SDCCBBlock.h: more LRH debugging junk
9710         * src/SDCCcflow.h: more LRH debugging junk
9711         * src/SDCCloop.c: more LRH debugging junk
9712         * src/SDCC.y (struct_declaration): fixed bug #697590
9713         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
9714         * src/ds390/gen.c (aopForRemat): fixed bug #700031
9715         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
9716
9717 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9718         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
9719         test function names must now match exactly).
9720         * src/SDCCcse.c: added special case in findCheaperOp to allow
9721         extending a short integer. Makes less awful code for bug 700121 test case.
9722
9723 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9724
9725         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
9726         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
9727
9728 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9729
9730         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
9731         actually called (operandsNotEqual() was called for all
9732         operandsNotEqualX tests).
9733
9734 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9735
9736         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
9737         with shorter literals. Fixes bug 700121.
9738
9739 2003-03-11    <johan AT balder>
9740
9741         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
9742
9743 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
9744
9745         * src/SDCCloop.c (mergeRegions): an evil beast is dead
9746         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
9747
9748 2003-03-10  Borut Razem <borut.razem AT siol.net>
9749
9750         * src/SDCCmain.c: pipe preprocessor's output
9751         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9752         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9753         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9754         which closes all pipes in pipeSet set
9755         * src/SDCCset.c: free deleted item in function deleteSetItem()
9756         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9757         moved from z80 to src subproject
9758         * .version: increased version number to 2.3.4
9759
9760 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
9761
9762         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
9763         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
9764         * support/regression/ports/xa51/spec.mk: fix typo
9765
9766 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
9767
9768         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
9769
9770 2003-03-09  Borut Razem <borut.razem AT siol.net>
9771
9772         * src/SDCCmain.c: pipe preprocessor's output
9773         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9774         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9775         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9776         which closes all pipes in pipeSet set
9777         * src/SDCCset.c: free deleted item in function deleteSetItem()
9778         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9779         moved from z80 to src subproject
9780
9781 2003-03-09  Borut Razem <borut.razem AT siol.net>
9782
9783         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
9784         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
9785         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
9786         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
9787         * src/SDCCglobl.h: unification of WIN32 native definitions
9788
9789 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9790
9791         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
9792
9793 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9794
9795         * src/configure.in:   check for endianess (even while cross-compiling)
9796         * src/configure:      check for endianess (even while cross-compiling)
9797         * src/configure_in.h: check for endianess (even while cross-compiling)
9798         * src/avr/gen.c:        remove old endianess stuff
9799         * src/mcs51/gen.c:      remove old endianess stuff
9800         * src/ds390/gen.c:      remove old endianess stuff
9801         * src/pic/gen.c:        remove old endianess stuff
9802         * src/pic/genarith.c:   remove old endianess stuff
9803         * src/pic/glue.c:       fix endianess check
9804         * src/pic16/gen.c:      remove old endianess stuff
9805         * src/pic16/genarith.c: remove old endianess stuff
9806         * src/pic16/glue.c:     fix endianess check
9807         * src/xa51/gen.c:       remove old endianess stuff
9808         * src/z80/gen.c:        fix endianess check
9809         * src/SDCCglue.c:       fix endianess check
9810         * src/ds390/peeph.def: fix bug 700036
9811
9812 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9813
9814         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
9815         * src/configure: find appropriate data-types on host for SDCC's int and long
9816         * src/configure.in: find appropriate data-types on host for SDCC's int and long
9817         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
9818         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
9819
9820 2003-03-07    <johan AT balder>
9821
9822         Just a big NOOP:
9823                 some minor cleanups before the big shot
9824                 OP_DEFS and OP_USES now use Kevin's protection
9825                 new option --nolabelopt
9826
9827         * src/SDCCBBlock.c:
9828         * src/SDCCast.c,:
9829         * src/SDCCcflow.c:
9830         * src/SDCCcse.c:
9831         * src/SDCCicode.c:
9832         * src/SDCCicode.h:
9833         * src/SDCClabel.c:
9834         * src/SDCCloop.c:
9835         * src/SDCCmain.c:
9836         * src/ds390/ralloc.c:
9837         * src/mcs51/ralloc.c:
9838         * src/pic/ralloc.c:
9839         * src/xa51/ralloc.c:
9840         * src/z80/ralloc.c:
9841
9842 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
9843
9844         * src/pic/pcode.c (get_op): fix 64 bit warnings
9845         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
9846         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
9847         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
9848         * support/regression/tests/malloc.c: fix 64 bit warnings
9849
9850 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
9851
9852         * src/mcs51/gen.c (genMinus): fixed bug 696436
9853
9854 2003-03-02  Borut Razem <borut.razem AT siol.net>
9855
9856         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
9857
9858 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
9859
9860         * configure.in: test for mkstemp
9861         * sdccconf_in.h: add HAVE_MKSTEMP
9862
9863 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
9864
9865         * device/include/ctype.h: removed warning while using --stack-auto
9866         * device/include/malloc.h: removed warning while using --stack-auto
9867         * device/include/string.h: removed warning while using --stack-auto
9868
9869 2003-02-23  Borut Razem <borut.razem AT siol.net>
9870
9871         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
9872         because NDEBUG is defined (see man assert)
9873         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
9874
9875 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9876
9877         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
9878         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
9879
9880 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9881
9882         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
9883         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
9884
9885 2003-02-18    <johan AT balder>
9886
9887         * as/mcs51/asmain.c (asmbl): module can start with a digit
9888         * as/z80/asmain.c (asmbl): module can start with a digit
9889
9890 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
9891
9892         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
9893         * src/asm.c: fix pipe() for Mingw32
9894
9895 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
9896
9897         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
9898         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
9899         make -V work again; --c1mode reads now from stdin
9900         * doc/sdccman.lyx: added --c1mode
9901         * support/Util/SDCCerr.c: new messages for c1 mode
9902         * support/Util/SDCCerr.h: new messages for c1 mode
9903         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
9904
9905 2003-02-15    <johan AT balder>
9906
9907         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
9908
9909 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
9910
9911         * doc/sdccman.lyx: Environment variables, -o and other minor things
9912
9913 2003-02-14    <johan AT balder>
9914
9915         * src/xa51/main.c: before anyone really tries to use it :)
9916
9917         * Install doc's in share/sdcc/doc
9918         * removed some obsolete files
9919         * Do a proper make distclean and uninstall
9920         M Makefile.common.in
9921         R sdccbuild.sh
9922         M as/Makefile
9923         M device/include/Makefile.in
9924         M device/lib/Makefile.in
9925         M doc/sdccman.lyx
9926         M link/Makefile
9927         M sim/ucsim/doc/Makefile.in
9928         M src/clean.mk
9929         R src/avr/peeph.rul
9930         R src/xa51/peeph.rul
9931         M support/cpp2/Makefile.in
9932         M support/makebin/Makefile
9933
9934
9935 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
9936
9937         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
9938
9939 2003-02-10  Borut Razem <borut.razem AT siol.net>
9940
9941         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
9942         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
9943         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
9944         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
9945         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
9946         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
9947         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
9948         src/z80/Makefile.bcc: Borland Makefile cleanup
9949         * as/z80/Makefile.bcc: Added Borland Makefile
9950         * support/cpp2/borland.h: Removed
9951
9952 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
9953
9954         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
9955         * src/SDCC.lex: new pragma NOIV
9956         * src/SDCCglobl.h: new pragma NOIV
9957         * src/SDCCmem.c: new pragma NOIV
9958
9959 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9960
9961         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
9962
9963 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9964
9965         * src/SDCCmain.c: signal handling is switched off by --debug
9966         * doc/Makefile: small fix for install; use clean.mk again
9967         * doc/clean.mk: clean *.pdf and *.html too
9968
9969 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
9970
9971         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
9972         * device/lib/printfl.c: fix a ds390 bug by making it portable
9973         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
9974         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
9975         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
9976         * debugger/mcs51/cmd.c: converted multi-line string literals
9977         * sim/ucsim/globals.cc: converted multi-line string literals
9978         * src/SDCCmain.c: introduced signal handler to remove temp files
9979         * doc/Makefile: small tweaks, implement clean
9980         * doc: removed generated files
9981
9982 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9983
9984         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
9985         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
9986         Address Record is not correctly generated for DS390."
9987
9988 2003-02-02  Borut Razem <borut.razem AT siol.net>
9989
9990         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
9991         * as/mcs51/asm.h: fixed compilation with Borland C
9992         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
9993         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
9994         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
9995         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
9996         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
9997         src/z80/Makefile.bcc: delete $(LIB) only if exist
9998         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
9999
10000 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
10001
10002         * device/include/malloc.h: introduced NULL
10003         * device/include/string.h: introduced NULL
10004         * device/include/stdlib.h: introduced NULL
10005         * device/lib/_memcpy.c: removed NULL
10006         * device/lib/_strcat.c: removed NULL
10007         * device/lib/_strchr.c: removed NULL
10008         * device/lib/_strcmp.c: removed NULL
10009         * device/lib/_strcpy.c: removed NULL
10010         * device/lib/_strcspn.c: removed NULL
10011         * device/lib/_strlen.c: removed NULL
10012         * device/lib/_strncat.c: removed NULL
10013         * device/lib/_strncmp.c: removed NULL
10014         * device/lib/_strncpy.c: removed NULL
10015         * device/lib/_strpbrk.c: removed NULL
10016         * device/lib/_strrchr.c: removed NULL
10017         * device/lib/_strspn.c: removed NULL
10018         * device/lib/_strstr.c: removed NULL
10019         * device/lib/_strtok.c: removed NULL
10020         * device/lib/malloc.c: removed NULL, include own header
10021
10022 2003-02-02    <johan AT balder>
10023
10024         * 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
10025         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
10026         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
10027         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
10028         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
10029         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
10030
10031 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10032
10033         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
10034         area 'DATA'"
10035
10036 2003-02-01    <johan AT balder>
10037
10038         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
10039
10040 2003-01-31    <johan AT CP255758-A>
10041
10042         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
10043
10044 2003-01-30    <johan AT balder>
10045
10046         * src/SDCCBBlock.c: automatic bug detection
10047         * src/SDCCicode.c: automatic bug detection
10048
10049 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10050
10051         * src/SDCCglobl.h:   now --xram-size 0 works
10052         * src/SDCCmain.c:    now --xram-size 0 works
10053
10054 2003-01-29    <johan AT balder>
10055
10056         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
10057
10058 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10059
10060         * as/mcs51/aslink.h: Added options --xram-size and --code-size
10061         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
10062         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
10063         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
10064         * src/SDCCglobl.h:   Added options --xram-size and --code-size
10065         * src/SDCCmain.c:    Added options --xram-size and --code-size
10066
10067 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
10068
10069         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
10070         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
10071
10072 2003-01-27    <johan AT balder>
10073
10074         * src/SDCC.y: fixed bug #613764
10075
10076 2003-01-26    <johan AT balder>
10077
10078         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
10079         * src/SDCCsymt.h: fixed bug #673374
10080         * src/SDCCglue.c: fixed bug #661910
10081         * src/SDCCast.c: fixed bug #458099 and 673374
10082
10083 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
10084
10085         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
10086         * as/mcs51/strcmpi.h: added
10087         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
10088         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
10089         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
10090         * as/mcs51/assym.c: strcmpi -> as_strcmpi
10091         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
10092         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
10093         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
10094         * as/mcs51/Makefile.aslink: new module strcmpi
10095         * as/mcs51/Makefile.asx8051: new module strcmpi
10096         * as/mcs51/Makefil.bcc: new module strcmpi
10097         * as/mcs51/Makefile.in: new module strcmpi
10098         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
10099
10100 2003-01-26    <johan AT balder>
10101
10102         * src/SDCCglue.c: reverted back to 1.124
10103         * src/SDCCast.c: reverted back to 1.156
10104         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
10105
10106 2003-01-25    <johan AT balder>
10107
10108         * src/SDCCglue.c: A better fix for bug #661910
10109         * src/SDCCast.c: A better fix for bug #661910
10110         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
10111
10112 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10113
10114         * src/Makefile.in: remove spawn.o
10115         * src/SDCCmain.c: remove spawn.h
10116         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
10117         * src/spawn.c: removed
10118         * src/spawn.h: removed
10119         * support/regression/ports/ds390/spec.mk: link with -r
10120
10121 2003-01-24    <johan AT CP255758-A>
10122
10123         * src/ds390/gen.c (aopOp): fixed bug #667458
10124         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
10125         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
10126         (createIvalCharPtr): an ival doesn't always have a storage class anymore
10127
10128 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10129
10130         * src/mcs51/peeph.def: better assembler identation by Frieder
10131         * src/mcs51/gen.c: better assembler identation by Frieder
10132
10133 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
10134
10135         * as/z80/string.h: removed for gcc 3.2
10136         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
10137         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
10138
10139 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10140
10141         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
10142         * src/SDCCpeeph.c (replaceRule): fix bug #663503
10143         * support/regression/Makefile: separate temp files for ports
10144         * support/regression/generate-cases.py: separate temp files for ports
10145         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10146         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10147
10148 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10149
10150         * moved tinitalk to device/examples/ds390
10151
10152 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
10153
10154         * as/mcs51/lkmem.c: rflag is for DS390
10155         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
10156         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
10157                          (linkEdit): move mem- and map-files the same way as ihx-files
10158         * src/z80/main.c (_setDefaultOptions): removed --generic
10159         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
10160         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
10161         * src/pic/glue.c (picglue): --c1mode works again
10162         * src/pic16/glue.c (pic16glue): --c1mode works again
10163         * src/asm.c (printCLine): fix #660034
10164
10165 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
10166
10167         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
10168         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
10169         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
10170         * as/mcs51/lkmem (summary): better fix for sp problem
10171         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
10172         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
10173         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
10174                                               remove --stack-after-data
10175
10176 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
10177
10178         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
10179         * src/SDCCutil.c (join): ugly bug: missing '\0'
10180         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
10181
10182 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10183
10184         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
10185         * src/port.h: typo
10186         * src/pic/main.c (_asmCmd): gpasm supports -o
10187         * src/z80/main.c: more general macros
10188         * device/lib/Makefile.in: remove intermediate files
10189
10190 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10191
10192         * .version: Bumped version number to 2.3.3
10193         * src/SDCCBBlock.c: new option -o
10194         * src/SDCCglobl.h: new option -o
10195         * src/SDCCglue.c: new option -o
10196         * src/SDCCmain.c: new option -o
10197         * src/asm.c: new option -o
10198         * src/ds390/main.c: new option -o
10199         * src/pic/glue.c: new option -o
10200         * src/pic/pcode.c: new option -o
10201         * src/pic/ralloc.c: new option -o
10202         * src/pic16/glue.c: new option -o
10203         * src/pic16/pcode.c: new option -o
10204         * src/pic16/ralloc.c: new option -o
10205         * src/z80/main.c: new option -o
10206         * device/lib/Makefile.in: use -o
10207         * support/regression/ports/ds390/spec.mk: use -o
10208         * support/regression/ports/gbz80/spec.mk: use -o
10209         * support/regression/ports/mcs51/spec.mk: use -o
10210         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
10211         * support/regression/ports/z80/spec.mk: use -o
10212         * support/regression/ports/ucz80/spec.mk: use -o
10213         * support/regression/ports/xa51/spec.mk: use -o
10214         * support/regression/fwk/lib/timeout.c: fix usage string
10215
10216 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
10217         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
10218
10219 2003-01-07    <johan AT balder>
10220
10221         * src/SDCCast.c (decorateType): fixed bug #600035
10222
10223 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
10224         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
10225         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
10226         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
10227         * src/pic/pcode.c: outcommented unused variable to remove warnings
10228         * src/pic/ralloc.c: outcommented unused variable to remove warnings
10229
10230 2003-01-06    <karl AT turbobit.com>
10231         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
10232    regression tests.
10233
10234 2003-01-06    <johan AT balder>
10235
10236         * src/SDCCicode.c: fixed array add
10237
10238 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
10239         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
10240         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
10241
10242 2003-01-04    <johan AT balder>
10243
10244         * src/SDCCval.c (getNelements): fixed the initialized array of structures
10245
10246 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10247         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
10248
10249 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10250         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
10251         * support/regression/tests/bug-524697.c: fit mem usage into 8032
10252
10253 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10254         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
10255
10256 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
10257         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
10258
10259 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
10260         * src/mcs51/main.c: removed {bindir}{sep} from aslink
10261
10262 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10263
10264     * in \sdcc\as\mcs51\ changed these files in order to create an
10265     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
10266     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
10267     following files to include the previous two files: aslink.dsp,
10268     Makefile.aslink, Makefile.bcc, and Makefile.in.
10269
10270     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
10271     .adb instead of .cdb
10272
10273 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10274
10275         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
10276         value from option --iram-size.
10277
10278 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10279
10280         * \sdcc\as\mcs51\lklist.c: added boundary check before using
10281         dram[] array.
10282
10283 2002-09-18    <wiml AT hhhh.org>
10284
10285         * SDCClrange.h: exposed setFromRange() and setToRange()
10286         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
10287           packRegsForAccUse() (bug 542397)
10288         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
10289           multiple times and emitting the fetch operations more than once
10290           added aopGetUsesAcc() function to allow binary operators to
10291           fetch their operands in the correct order; made genMinus() emit
10292           compact code for X = LITERAL - Y
10293
10294 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10295         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
10296         sprintf() in line 1267.
10297
10298 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10299         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
10300         like ports.
10301
10302 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10303         Changes to aslink (All the changes are marked with 'JCF'):
10304
10305         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
10306         summary().
10307
10308         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
10309         area BSEG.  Also moves, if possible, the DATA area down into the internal
10310         ram so more space is available.
10311
10312         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
10313         sflag.
10314
10315         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
10316         not bytes.  Function summary() which creates a memory usage summary
10317         file with extension .mem.  Reports of overlaping stack and small stack
10318         size.  If the space for the stack is less than 16 bytes aslink trows a
10319         warning.
10320
10321         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
10322         the 8051.  Option 'y' for memory summary output file.
10323
10324         Changes to sdcc (All the changes are marked with 'JCF'):
10325
10326         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
10327
10328         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
10329         overlaying area for it (uses RegBankUsed[4]).
10330
10331         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
10332         bank zero as used by default.  By default aslink locates the stack
10333         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
10334         the creation of the .mem file.  Delegates the allocation of data area
10335         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
10336         the begining of the stack area to aslink.
10337
10338         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
10339         glue() in SDCCglue.c creates an area for it.
10340
10341 2002-09-03  Borut Razem <borut.razem AT siol.net>
10342         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
10343         sdcc/src/pic/glue.c:
10344         introduced atexit() handler for teporay files removal in case of
10345         errors, assertions, ...
10346
10347 2002-08-29  Borut Razem <borut.razem AT siol.net>
10348         * sdcc/support/cpp2/auto-host_vc_in.h:
10349         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
10350         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
10351         Maybe there is a similar problem with BORLANDC? It should be checked!
10352
10353         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
10354         corrected improper use of assert: the assignment to clr variable was done inside the assert.
10355         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
10356         was not executed, and the compiler (cl) launched a warning:
10357         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
10358
10359 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
10360         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
10361
10362 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
10363         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
10364
10365         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10366           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
10367           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
10368           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10369           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
10370           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
10371           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
10372         - added Release configuration in VS projects
10373         - review of compiler an linker options
10374         - VC .exe files are generated in bin_vc directory, not to interfere
10375           with binaries generated from other projects (cygwin, mingw, bcc ...)
10376
10377         * sdcc/src/yacc.dsp: added
10378
10379         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
10380         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
10381         and insert the version number definitions from .version
10382
10383         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
10384
10385         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
10386         added - genarate auto-host.h using auto-host_vc_in.h as template
10387
10388         * sdcc/sdcc_vc.h,
10389         removed from CVS, generated automatically
10390
10391 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
10392         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
10393
10394 2002-08-11  Borut Razem <borut.razem AT siol.net>
10395         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
10396
10397 2002-08-10  Borut Razem <borut.razem AT siol.net>
10398         * src/SDCCmain.c (main):
10399         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
10400         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
10401         The consequence was that some temporary files were not removed.
10402
10403         * src/SDCCglue.c:
10404         unification of code in functions tempfilename() and tempfile():
10405         function tempnam() is defined in Visual Studio 6.0 and .NET
10406
10407         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
10408
10409         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10410           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
10411         - removed compiler command line option /WX: Treats all warnings as errors
10412         - update a list of source files, included into the project
10413
10414         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10415           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
10416         changed project type to Generic Project so that can be correcly converted to VS.NET project
10417
10418         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
10419
10420         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
10421
10422         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
10423
10424         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
10425         added return 0 statements after assert() to make compiler happy
10426
10427         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
10428         added newline in the def file to keep MSC compiler satisfied
10429
10430         * sdcc/src/z80/gen.c:
10431         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
10432           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
10433         - solved MSC error in function aopDump()
10434
10435         * sdcc_vc.h: define PREFIX as "\\sdcc"
10436
10437 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
10438         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
10439
10440 2002-06-22  Scott Dattalo <scott AT dattalo.com>
10441         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
10442         - Rewrote the register banking algorithm.
10443         - Added pCode live-range analysis to registers (for now, only non-used and
10444         singly-used registers optimized away)
10445
10446         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
10447
10448         * 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.
10449
10450 2002-05-10  Scott Dattalo <scott AT dattalo.com>
10451         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
10452
10453 2002-04-22  Michael Hope  <michaelh AT vroom>
10454
10455         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
10456
10457         * configure.in (DD_COPT): Added include support required for gbdk.
10458
10459         * .version: Bumped version number just to increase it.
10460
10461         * src/SDCCmain.c: Added -nostdinc to the default options.
10462
10463 2002-04-15  Michael Hope  <michaelh AT vroom>
10464
10465         * device/lib/z80/printf.c (sprintf): Added.
10466
10467         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
10468
10469         * src/z80/peeph.def: Added transpose redundent load rule.
10470
10471         * src/z80/main.c: Added force callee saves for jaune.
10472
10473         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
10474
10475         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
10476
10477 2002-03-28  Johan Knol  <johan AT balder>
10478
10479         * src/SDCCval.c: fixed bug #532436
10480
10481 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10482         * /src/port.h:
10483         Added "char *Processor" field to the port structure.
10484
10485         * /src/SDCCmain.c:
10486         Added -p option. Allows port dependent processor to be specified.
10487
10488         * all ports:
10489         Initialized the new field char *Processor field to NULL in all ports
10490
10491         * /src/pic/*:
10492         Compiler generated registers for interrupt context saving
10493         were not getting allocated.
10494
10495 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
10496
10497         * /src/SDCCast.c:
10498         Fixed left shift. Will promote the left side of a left shift
10499         if a) left shifting more than size of operand or b) when assigned
10500         to something size > size of left side
10501
10502 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10503         * src/pic/*
10504         tons of changes. Register allocation has been
10505         rewritten. Added customization for the various PICs. Flow
10506         analysis is restructured. ...
10507
10508         * src/pic/device.h:
10509         Added
10510
10511         * src/pic/device.c:
10512         Added. device.c is a PIC port hack to accomodate variations
10513         in PIC devices.
10514
10515 2002-03-13  Michael Hope  <michaelh AT vroom>
10516
10517         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
10518
10519 2002-03-04  johanknol  <johanknol AT manik>
10520
10521         * /src/SDCCval.c: fixed
10522
10523         const unsigned char arr[][2] = { { 0, 1 } };
10524         t18.c:1: error: Initializer element is not constant
10525
10526 2002-03-04  bela  <bela AT manik>
10527
10528         * /device/include/mcs51reg.h:
10529         ds89c420 register definition update
10530
10531 2002-03-03    <johan AT FRIJA>
10532
10533         * support/Util/SDCCerr.c: did something, but don't no why anymore
10534
10535         * support/regression/tests/bug-524691.c: made it a little less shy
10536
10537         * src/SDCCast.c (decorateType): fixed bug #524697
10538
10539         * src/SDCCast.c: made some lineno improvements
10540
10541         * src/SDCCval.c (getNelements): changed warning to error
10542
10543         * src/SDCCglue.c (printIvalArray): changed warning to error
10544
10545         * src/SDCCicode.c: fixed a warning for mingw
10546
10547         * src/SDCCast.c (decorateType): fixed the << promotion for ops
10548
10549         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
10550
10551 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
10552
10553         * src/ds390/peeph.def:
10554         Added some more peephole rules
10555
10556         * src/ds390/gen.c: Various fixes & enhancements
10557
10558         * src/SDCClrange.c, src/SDCClrange.h:
10559         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
10560
10561         * src/ds390/ralloc.c:
10562         various fixes & enhancements (ds390) specific
10563
10564         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
10565         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
10566         from rallocs.
10567
10568         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
10569
10570 2002-03-02    <johan AT FRIJA>
10571
10572         * src/SDCCast.c (decorateType): fixed bug #524708
10573
10574         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
10575
10576         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
10577
10578 2002-03-01  Michael Hope  <michaelh AT vroom>
10579
10580         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
10581
10582         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
10583
10584 2002-03-01    <johan AT FRIJA>
10585
10586         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
10587
10588         * src/SDCCast.c (decorateType): fixed bug #524209
10589
10590         * src/SDCCval.c (valNot): fixed bug #524195
10591
10592 2002-02-26    <johan AT balder>
10593
10594         * src/xa51/gen.c: fixed a warning
10595
10596         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
10597
10598         * src/SDCCast.c (decorateType): fixed bug #522534
10599
10600 2002-02-23    <johan AT balder>
10601
10602         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
10603
10604 2002-02-22    <johan AT balder>
10605
10606         * src/SDCCast.c: fixed bug #514865
10607
10608         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
10609
10610 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
10611
10612         * sdcc/src/SDCCloop.c:
10613         Previous fix was not good. basic blocks that have "break" or "return" are
10614         not really partof a loop , but live ranges used in these blocks should
10615         be live thru the entire loop, so set partOfLoop but don't add them to
10616         loop region
10617
10618 2002-02-21    <johan AT FRIJA>
10619
10620         * src/SDCCcse.c: fixed bug #514308
10621
10622 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
10623
10624         * src/SDCCloop.c:
10625         Fixed BUG #519583. If a conditional block ended in a return/break
10626         statement inside a loop, it was not being considered part of the loop.
10627
10628         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
10629
10630 2002-02-10  Karl Bongers <karl AT turbobit.com>
10631
10632         * debugger/*:
10633         Fixed up SDCDB debugger somewhat.  Updated debugger/README
10634         with lots of comments and notes.
10635
10636         * device/examples/test2.c:
10637         Fix bug, "red" variable not being initialized(compiler complained).
10638
10639         * device/examples/Makefile, examples/test3.c:
10640         Add Makefile in device/examples folder, compiles test3.c
10641         for use as a multiple module SDCDB test case.
10642
10643         * sim/ucsim/cmd.src/cmdset.cc:
10644         Took out debug printfs in ucsim "next" command.
10645
10646         * sim/ucsim/xa.src:
10647         Karl and Johan start ucsim XA support.  Most dissassembly working,
10648         about 75% emulation done(plenty of work remaining).
10649
10650         * sim/ucsim/z80.src:
10651         Add Z80 support to ucsim, add test-ucz80 regression test,
10652         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
10653         Notice z80 compiler fails on examples/test3.c/crc code.
10654
10655 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
10656
10657         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
10658         Added support for --parms-in-bank1
10659
10660         * src/ds390/peeph.def:
10661         added a few more peephole optimzations
10662
10663         * src/ds390/main.c:
10664         1) added __builtin_inp & __builtin_outp used to read in data of given length
10665            from a memory mapped port
10666         2) added __builtin_memcmp
10667         3) added __builtin_swapw swap bytes of a short
10668
10669         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
10670         1) handle multiple send & receives from register bank1
10671         2) ralloc can now allocate DPTR1 to some liveRanges
10672
10673         * src/SDCCsymt.c, src/SDCCsymt.h:
10674         changes to handle multiple sends & receives
10675
10676         * src/SDCCptropt.h:
10677         added some pointer arithmetic optimization
10678
10679         * src/SDCCptropt.c:
10680         added some pointer arithmetic optimizations but not stable yet so not
10681         called from anywhere (will get this working shortly)
10682
10683         * src/SDCCopt.c: fixed for multiple sends & receives
10684
10685         * src/SDCCmain.c:
10686         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
10687         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
10688            set preprocessor defines (depending on options)
10689
10690         * src/SDCCicode.c, src/SDCCicode.h:
10691         changes made to handle multiple sends & receives
10692
10693         * src/SDCCglobl.h:
10694         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
10695
10696         * src/SDCCcse.c, src/SDCCcse.h:
10697         added function findbackward def (to be used in upcoming optimization)
10698
10699         * src/SDCCcflow.c, src/SDCCcflow.h:
10700         added function returnAtEnd - to determine if a basic block terminates with
10701         a RETURN iCode
10702
10703         * src/SDCCast.c, src/SDCCast.h:
10704         added option parms-in-bank1
10705
10706         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
10707         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
10708         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
10709         adjusted for --parms-in-bank1 option
10710
10711         * device/include/string.h:
10712         donot redefine "reentrant" keyword
10713
10714         * device/include/ds80c390.h: Added some more SFRs
10715
10716 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
10717
10718         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
10719
10720 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
10721
10722         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
10723
10724 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
10725
10726         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
10727
10728 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
10729
10730         * Added --xram-movc option
10731
10732 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
10733
10734         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
10735
10736 2002-01-11  Johan Knol
10737
10738         * Added math lib of Jesus Calvino-Fraga
10739
10740 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
10741
10742         * src/SDCCmain.c (processFile): fix processing of ../../src.c
10743         * support/regression/Makefile: new target test-mcs51-stack-auto
10744         * support/regression/ports/mcs51-stack-auto/spec.mk: added
10745
10746 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10747
10748         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
10749
10750 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10751
10752         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
10753
10754 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
10755
10756         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
10757
10758         * src/SDCCglue.h: add definition for printIvalChar()
10759
10760 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10761
10762         * src/SDCCast.c: fix #498138 by Johan
10763
10764         * src/SDCCglue.c: fix #498138 by Johan
10765
10766 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10767
10768         * support/regression/Makefile: fix clean
10769
10770         * support/regression/ports/ds390/support.c: fix transmission of last character
10771
10772 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
10773
10774         * /sdcc/src/ds390/gen.c:
10775         a) improved computing address of stack variable
10776         b) took out some #if 0 code
10777         c) improved parmBytes adjustment
10778         d) improved genPlusIncr & genMinusIncr
10779         e) genCmp could generate bad code (when left assigned to DPTR)
10780         f) Fixed bug in hasInc
10781
10782         * /sdcc/src/ds390/ralloc.c:
10783         a) packRegsForSupport could mess up live information (Fixed)
10784         b) packRegsDPTRuse could be incorrect for left & right shift
10785
10786         * /sdcc/src/mcs51/ralloc.c:
10787         packRegsForSupport could mess up the live information (Fixed)
10788
10789         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
10790
10791         * /sdcc/src/SDCCast.c:
10792         can reverse a loop even if function call is present as long
10793         as the loop control variable is local & is not passed as parameter
10794
10795 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10796
10797         * /sdcc/ChangeLog: *** empty log message ***
10798
10799         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
10800         More builtin function additions for TININative
10801
10802         * /sdcc/src/ds390/ralloc.c:
10803         Had broken the regression testsuite
10804
10805         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
10806
10807         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
10808         Added funcattr hasStackParms will be set for reentrant functions when there
10809         are paramteres on the stack, this helps in minimizing frame pointer generation
10810         typeFromStr can handle function pointers now
10811
10812         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
10813         *** empty log message ***
10814
10815 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10816
10817         * /src/ds390/gen.c, /src/ds390/main.c:
10818         More builtin function additions for TININative
10819
10820         * /src/ds390/ralloc.c:
10821         Had broken the regression testsuite
10822
10823         * /src/SDCCast.c: Fixed a bug in dumptree
10824
10825         * /src/SDCCsymt.c, /src/SDCCsymt.h:
10826         Added funcattr hasStackParms will be set for reentrant functions when there
10827         are paramteres on the stack, this helps in minimizing frame pointer generation
10828         typeFromStr can handle function pointers now
10829
10830         * /doc/builtins.txt, /doc/TININative.txt:
10831         *** empty log message ***
10832
10833
10834 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10835
10836         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
10837         ALPHA version for -mTININative
10838
10839         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
10840         updated to reflect changes in the port structure
10841
10842         * /src/port.h:
10843         added function do_assemble (similar to do_link) if non-null this function
10844         will be called to do assembly (-mTININative) requires a multi command
10845         assembly
10846         added function genAssemblerEnd will be called to generate assembler Epilogue
10847
10848         * /src/SDCCsymt.c:
10849         added _JavaNative to debug info printing
10850
10851         * /src/SDCCmain.c: added option --tini-libid
10852         added port->do_assemble function (-mTININative) has a multi command assemble
10853
10854         * /src/SDCCglue.c: Disabled "constExpr" check
10855         added port->genAssemblerEnd function
10856
10857         * /src/SDCCglobl.h: Added option --tini-libid value
10858
10859         * /src/SDCCast.h:
10860         tookout optimizeCompare from the header (has no external references)
10861
10862         * /src/SDCCast.c: made one more function "static"
10863
10864 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
10865
10866         * src/z80/mappings.i: Added z80asm support.
10867
10868         * src/z80/main.c: Added z80asm support on --asm=z80asm
10869
10870         * src/z80/gen.c: Fixed asm portability issues.
10871
10872         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
10873
10874         * src/SDCCglue.c (printExterns): Added global/extern split.
10875
10876 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
10877
10878         * support/regression/Makefile: added test for mcs51 model large
10879
10880         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
10881
10882         * support/regression/ports/gbz80/spec.mk: added -mgbz80
10883
10884 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
10885
10886         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
10887
10888 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
10889
10890         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
10891
10892         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
10893
10894 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
10895
10896         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
10897
10898         * support/regression/tests/simplefloat.c: Port to mcs51.
10899
10900 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
10901         * support/regression/tests/bug-485362.c: Added.
10902
10903         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
10904
10905         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
10906
10907         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
10908
10909         * src/z80/gen.c (aopDump): Added a dump function.
10910
10911 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
10912         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
10913
10914         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
10915
10916         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
10917
10918         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
10919
10920         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
10921
10922         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
10923
10924         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
10925
10926         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
10927
10928         * support/regression/ports/ds390/support.c: Use tinibios.
10929
10930         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
10931
10932 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
10933
10934         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
10935         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
10936
10937         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
10938
10939         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
10940
10941 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
10942
10943         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
10944
10945         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
10946         (packRegsForIYUse): Created and optimised.
10947
10948 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10949
10950         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
10951 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
10952
10953         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
10954
10955         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
10956
10957         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
10958
10959 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10960
10961         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
10962
10963         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
10964
10965 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10966
10967         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
10968
10969         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
10970
10971         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
10972
10973 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10974
10975         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
10976         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
10977         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
10978
10979         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
10980
10981         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
10982         (genNotFloat): Added.
10983         (genUminusFloat): Added.
10984
10985         * device/lib/z80/Makefile: Added floating pt stubs.
10986
10987         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
10988
10989         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
10990
10991         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
10992
10993 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10994
10995         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
10996
10997         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
10998
10999         * sdcc/support/regression/Makefile: Add port ds390.
11000
11001         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
11002
11003         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
11004
11005         * sdcc/support/regression/ports/ds390/spec.mk: Added.
11006
11007         * sdcc/support/regression/ports/ds390/support.c: Added.
11008
11009         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
11010
11011         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
11012
11013         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
11014
11015 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11016
11017         * device/include/malloc.h: Added z80 and gbz80 support.
11018
11019         * device/lib/gbz80/heap.s: Added.
11020
11021         * device/lib/z80/heap.s: Added.
11022
11023         * device/lib/malloc.c: Added z80 and gbz80 support.
11024
11025         * support/regression/tests/malloc.c (testMalloc): Added.
11026
11027         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
11028
11029         * support/regression/tests/bug-478094.c: Added.
11030
11031         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
11032
11033 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
11034
11035         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
11036
11037         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
11038
11039         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
11040
11041         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
11042
11043         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
11044
11045 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11046
11047         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
11048
11049 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
11050
11051         * support/regression/tests/bug-477927.c: Added.
11052
11053         * src/z80/peeph.def: Added minor rules.
11054
11055         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
11056
11057         * src/z80/peeph.def: Added jump optimisation modification.
11058
11059 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
11060
11061         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
11062
11063 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
11064
11065         * support/regression/tests/funptrs.c: Added.
11066
11067 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
11068
11069         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
11070
11071 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
11072
11073         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
11074
11075         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
11076
11077         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
11078         (movLeft2ResultLong): Created.
11079
11080         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
11081         (joinPushes): Added.  Joins two char pushes into a word push.
11082
11083 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
11084
11085         * support/cpp2/Makefile.in (install): Added creation of dest dir.
11086
11087         * support/makebin/Makefile (install): Added creation of dest dir.
11088
11089 2001-10-24 Karl Bongers <karl AT turbobit.com>
11090
11091         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
11092
11093 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
11094
11095         * src/z80/ralloc.c: Turned off faulty pack for one use.
11096
11097         * src/z80/peeph-gbz80.def: Removed redundent restart options.
11098
11099         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
11100
11101 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
11102
11103         * support/regression/Makefile: Improved clean
11104
11105         * support/regression/ports/gbz80/spec.mk: Added clean
11106
11107         * support/regression/ports/host/spec.mk: Added clean
11108
11109         * support/regression/ports/z80/spec.mk: Added clean
11110
11111         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
11112
11113         * support/regression/ports/mcs51/timeout.c: little improvements
11114
11115 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
11116
11117         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
11118
11119         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
11120
11121         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
11122
11123 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
11124
11125         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
11126
11127         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
11128
11129 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
11130         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
11131
11132         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
11133
11134         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
11135
11136         * src/mcs51/main.c (_linkCmd): Added bin path to command.
11137
11138         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
11139
11140         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
11141
11142         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
11143
11144         * support/regression/tests/longor.c: Added.
11145
11146 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
11147
11148         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
11149
11150         * as/mcs51/aslink.h: define PATH_MAX
11151
11152         * as/mcs51/asm.h: define PATH_MAX
11153
11154         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
11155
11156         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
11157
11158         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
11159
11160         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
11161
11162         * src/SDCCglobl.h: define PATH_MAX
11163
11164         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
11165
11166         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
11167
11168 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
11169
11170         * src/z80/gen.c (gencjneshort): Fixed
11171
11172         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
11173
11174 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
11175
11176         * support/regression/tests/bug-469671.c: Added.
11177
11178         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
11179
11180 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
11181
11182         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
11183
11184         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
11185
11186 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
11187
11188         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
11189
11190         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
11191
11192         * src/device/lib/_mullong.c : removed hint: nooverlay bug
11193
11194         * src/device/lib/_divuint.c : removed hint: nooverlay bug
11195
11196         * src/device/lib/_divulong.c: removed hint: nooverlay bug
11197
11198         * src/device/lib/_moduint.c : removed hint: nooverlay bug
11199
11200         * src/device/lib/_modulong.c: removed hint: nooverlay bug
11201
11202 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
11203
11204         * 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.
11205
11206         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
11207
11208         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
11209
11210 2001-10-07    <johan AT FRIJA>
11211
11212         * device/lib/gets.c (gets): fixed the return value.
11213
11214 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
11215         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
11216
11217         * 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.
11218
11219         * 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.
11220
11221         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
11222
11223         * src/pic/gen.c: Removed Safe_strdup.
11224
11225         * configure.in: Added option to enable libgc support.
11226
11227         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
11228         (bitVectUnion): Optimised.
11229         (bitVectIntersect): Optimised.
11230         (bitVectBitsInCommon): Optimised.
11231         (bitVectCplAnd): Optimised.
11232
11233         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
11234
11235 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11236
11237         * src/SDCCmain.c: distinguish between assembler debug and plain options
11238
11239         * src/avr/main.c:   remove standard assembler options
11240
11241         * src/ds390/main.c: remove standard assembler options
11242
11243         * src/mcs51/main.c: remove standard assembler options
11244
11245         * src/port.h: removed "PENDING" comment
11246
11247 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11248
11249         * src/device/lib/_mulint.c  : new, with assember functions
11250
11251         * src/device/lib/_mullong.c : new, with assember functions
11252
11253         * src/device/lib/_divuint.c : with assember functions
11254
11255         * src/device/lib/_divsint.c : with assember functions
11256
11257         * src/device/lib/_divulong.c: with assember functions
11258
11259         * src/device/lib/_divslong.c: with assember functions
11260
11261         * src/device/lib/_moduint.c : with assember functions
11262
11263         * src/device/lib/_modsint.c : with assember functions
11264
11265         * src/device/lib/_modulong.c: with assember functions
11266
11267         * src/device/lib/_modslong.c: with assember functions
11268
11269         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
11270
11271         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
11272
11273         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
11274                                       replaced _mululong.c and _mulslong.c by _mullong.c
11275
11276 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11277
11278         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
11279
11280 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11281
11282         * src/SDCCglue.c: test, if win32api is available for MINGW
11283
11284 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11285
11286         * src/SDCCsymt.c: no more _modifier in printTypeChain()
11287         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
11288         * support/regression/ports/gbz80/spec.mk: removed GENERIC
11289         * support/regression/ports/host/spec.mk: removed GENERIC
11290         * support/regression/ports/mcs51/spec.mk: removed GENERIC
11291         * support/regression/ports/z80/spec.mk: removed GENERIC
11292
11293 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
11294
11295         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
11296
11297         * support/regression/tests/bug-467035.c: Created.
11298
11299 2001-10-01    <johan AT FRIJA>
11300
11301         * src/SDCC.y: fixed bug #466586 part 1
11302
11303 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
11304
11305         * SDCCicode.c: z80 has no generic pointers
11306         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
11307
11308 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
11309
11310         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
11311
11312 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
11313
11314         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
11315
11316         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
11317
11318 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
11319
11320         * configure.in: Fixed up so that ucsim is only configured once.
11321
11322         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
11323
11324         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
11325         (getPathDifference): As above.
11326
11327         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
11328
11329         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
11330
11331 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
11332         * .version: Updated to 2.3.1
11333
11334         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
11335         Added copyright header.
11336
11337         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
11338         (assemble): Added support for macro based assembler commands.
11339         (linkEdit): Added support for macro based linker commands.
11340         (preProcess): Changed the pre-processor to use macros.
11341         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
11342         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
11343
11344         * device/lib/z80/crt0.s: Added module name for debugging.
11345
11346 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
11347
11348         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11349
11350         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
11351
11352         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
11353
11354         * src/Makefile.in: Added SDCCmacro and SDCCutil
11355
11356 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
11357
11358         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11359
11360 2001-09-16    <johan AT FRIJA>
11361
11362         * 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.
11363
11364 2001-09-15    <johan AT FRIJA>
11365
11366         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
11367         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
11368
11369 2001-09-11    <johan AT FRIJA>
11370
11371         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
11372
11373 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
11374
11375         * support/regression/tests/bug-460444.c: Added test case.
11376
11377         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
11378         (genCast): Added justification for all of the asserts.
11379
11380 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
11381
11382         * support/regression/support.c: _xdata replaced by xdata
11383
11384         * support/regression/spec.mk: removed _generic
11385
11386 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
11387
11388         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
11389
11390         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
11391         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
11392
11393         * src/z80/peeph.def: Added a rule to optimise shift then compare.
11394
11395         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
11396
11397         * support/regression/tests/bug-460010.c: Added test case.
11398
11399         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
11400
11401 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
11402
11403         * support/regression/Makefile: inter-port-clean adjusted for mcs51
11404
11405         * support/regression/testfwk.c: removed workaround for bug #436344
11406
11407         * support/regression/tests/bp.c: use less memory with mcs51
11408
11409         * support/regression/tests/bug-441448.c: use less memory
11410
11411         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
11412
11413         * support/regression/collate-results.py: typo
11414
11415 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
11416
11417         * support/regression/tests/fetchoverlap.c: Added new test case.
11418
11419         * support/regression/tests/bp.c: Added new test case.
11420
11421         * support/regression/tests/bug-448984.c: Added new test case.
11422
11423         * support/regression/tests/pow2shifts.c: Added new test case.
11424
11425         * src/z80/gen.c: Turned off the noise it normally generates for the release.
11426         (genlshTwo): Fixed right shift for count > 8.
11427
11428         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
11429
11430 2001-09-08    <johan AT FRIJA>
11431
11432         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
11433
11434 2001-09-07    <johan AT FRIJA>
11435
11436         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
11437
11438         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
11439
11440 2001-09-06    <johan AT FRIJA>
11441
11442         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
11443         * bernhard noted me at this: "() equals to (void)" (1.38)
11444
11445 2001-09-05    <johan AT FRIJA>
11446
11447         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
11448
11449 2001-09-04    <johan AT FRIJA>
11450
11451         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
11452
11453
11454 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
11455
11456         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
11457
11458 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
11459
11460         * link/z80/aslink.h: Fixed path for PATH_MAX
11461
11462 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
11463
11464         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
11465
11466         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
11467
11468         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
11469
11470         * 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.
11471
11472 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
11473
11474         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
11475         (genCmp): Fixed up genCmp for the GB with longs.
11476
11477         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
11478
11479         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
11480
11481         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
11482
11483         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
11484
11485 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
11486
11487         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
11488
11489 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
11490
11491         * 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.
11492
11493         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
11494
11495 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
11496
11497         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
11498
11499         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
11500
11501 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
11502
11503   * sim/ucsim/configure:    little improvement of Cygwin-detection
11504   * sim/ucsim/configure.in: little improvement of Cygwin-detection
11505   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
11506   * support/regression/tests/bug-221100.c: small changes for mcs51
11507   * support/regression/tests/bug-221168.c: small changes for mcs51
11508   * support/regression/tests/bug-227710.c: small changes for mcs51
11509   * support/regression/tests/staticinit.c: small changes for mcs51
11510   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
11511   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11512   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11513
11514 $Revision$