* debugger/mcs51/break.c,
[fw/sdcc] / ChangeLog
1 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2
3         * debugger/mcs51/break.c,
4         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
5           use %p to print pointers, made address variables unsigned
6         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
7         * debugger/mcs51/symtab.c (parseSymbol): must return something
8         * src/mcs51/gen.c (aopForSym): small optimization,
9            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
10           (freeAsmop): added missing break,
11           (aopPut): removed parameter bvolatile, determine it inside the function,
12           (saveRegisters, unsaveRegisters): small optimization,
13           (genIpush): removed pointless check,
14           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
15           replaced sprintf with SNPRINTF,
16           replaced strcpy with strncpyz,
17           updated aopPut calls,
18           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
19         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
20
21 2006-05-24 Borut Razem <borut.razem AT siol.net>
22
23         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
24           modification of test for the pic16 port, put the array to the code
25           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
26
27 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
28
29         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
30         * support/Util/pstdint.h: added
31
32 2006-05-22 Borut Razem <borut.razem AT siol.net>
33
34         * src/regression/Makefile: removed bool2.c test, added -q linker option
35         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
36           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
37           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
38           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
39           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
40           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
41           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
42           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
43           define SUPPORT_BIT_TYPES 0, removed unused bit variables
44
45 2006-05-22 Raphael Neider <rneider AT web.de>
46
47         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
48           bug #1492360 (problematic due to generic pointers, see code)
49
50 2006-05-22 Borut Razem <borut.razem AT siol.net>
51
52         * support/regression/ports/pic16/specs.mk: removed stack size linker
53           directive
54         * support/regression/tests/array.c,
55           support/regression/tests/bitopcse.c,
56           support/regression/tests/bug-908454.c,
57           support/regression/tests/malloc.c: modified for pic16 regression test
58         * support/regression/tests/bitfields.c:
59           pic16 - excluded bitfileds of size > 8
60         * support/regression/tests/bp.c: pic16 - reduced data size
61         * support/regression/tests/bug-221100.c: pic16 - reduced data size
62         * support/regression/tests/bug-460010.c:
63           pic16 - used the absolute address the fits in memory
64         * support/regression/tests/bug-716242.c:
65           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
66         * support/regression/tests/float.c:
67           pic16 - excluded - data size too big
68         * support/regression/tests/onebyte.c:
69           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
70         * support/regression/tests/shifts.c:
71           pic16 - function names probably have to differ in first X characters
72           (gpasm limitation?)
73         * support/regression/tests/staticinit.c:
74           pic16 - excluded some tests due error: no target memory available for
75           section ".idata"
76
77 2006-05-22 Borut Razem <borut.razem AT siol.net>
78
79         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
80           second try. Thanks Stas Sergeev once more.
81
82 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
83
84         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
85           (genLeftShift, genRightShift): fixed bug 1491627
86         * src/hc08/peeph.def (rules 7, 8.x): added
87         * support/regression/tests/shifts.c (ShiftLeftByParam,
88           ShiftRightByParam, testShiftByParam): added to test variable shifting
89
90 2006-05-20 Raphael Neider <rneider AT web.de>
91
92         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
93         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
94           (allocReg): add only new registers to dynAllocRegs,
95           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
96             #1489055, #1445850, and probably #1483693
97
98 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
99
100         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
101         bug in for-loop that didn't emit the last of CONFIG and ID registers
102
103 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
104
105         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
106           with offset
107         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
108           1489016, 1434401 and 1490124
109         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
110           1489016, 1434401 and 1490124
111
112 2006-05-17 Borut Razem <borut.razem AT siol.net>
113
114         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
115           thanks Stas Sergeev
116
117 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
118
119         * device/include/mcs51/P89c51RD2.h,
120         * device/include/mcs51/P89LPC901.h,
121         * device/include/mcs51/P89LPC922.h,
122         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
123
124 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
125
126         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
127         to fix missing stack pragma in compiled binary object file,
128
129 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
130
131         * support/packihx/configure.in,
132         * support/packihx/configure: removed warning, autoconf >= 2.5x can
133         determine sizeof basic types even while cross compiling
134
135 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
136
137         * src/avr/gen.c (aopop),
138         * src/ds390/gen.c (aopOp),
139         * src/hc08/gen.c (aopOp),
140         * src/mcs51/gen.c (aopop),
141         * src/pic16/gen.c (pic16_aopOp),
142         * src/pic/gen.c (aopOp),
143         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
144         if size of operand is smaller than spill location
145
146 2006-05-12 Borut Razem <borut.razem AT siol.net>
147
148         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
149           have to have CR/LF line endings even if they are checked out on *nix
150           or on WIN32 in cygwin binmode
151
152 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
153
154         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
155         * device/include/ds80c390.h: added sfr16 definitions
156         * src/ds390/gen.c,
157         * src/ds390/gen.h,
158         * src/ds390/main.c,
159         * src/ds390/ralloc.c,
160         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
161           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
162           bit returning functions
163         * support/regression/tests/sfr16.c: enabled test on ds390
164
165 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
166
167         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
168         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
169
170 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
171
172         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
173         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
174           (cl_address_space constructor): removed expensive initialization,
175           (cl_address_space::get_cell): extended for late initialization,
176           (cl_address_space::*): use late initialization,
177           (cl_address_decoder::activate): removed expensive initialization,
178           This reduced regression test running time by 25%
179
180 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
181
182         * packihx/,
183         * configure.in,
184         * configure,
185         * sdcc.dsw,
186         * Makefile.bcc,
187         * Makefile.in,
188         * support/packihx/Makefile.in,
189         * support/packihx/clean.mk,
190         * support/packihx/Makefile.bcc,
191         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
192
193 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
194
195         * src/SDCCval.c (valNot): fix for regression test failure
196           of not.c on big endian hosts
197
198 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
199
200         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
201
202 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
203
204         * device/lib/mcs51/Makefile.in: changed string comparison operator
205           to = for POSIX compliance; == is bash extension
206
207 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
208
209         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
210           kosmonaut_pirx
211
212 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
213
214         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
215         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
216         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
217         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
218         bug report #1478657,
219
220 2006-05-05 Borut Razem <borut.razem AT siol.net>
221
222         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
223           making the html
224
225 2006-05-02 Borut Razem <borut.razem AT siol.net>
226
227         * doc/Makefile.in: removed *.ind dependency since there is no rule to
228           create *.ind, which made make to fail if invoked with -j 2
229
230 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
231
232         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
233           Hubert Sack for patch 1479782
234
235 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
236
237         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
238
239 2006-05-01 Raphael Neider <rneider AT web.de>
240
241         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
242           (create_pic): store only prefix-free device name,
243           (init_pic): check for device names with "16" prefix,
244           (list_valid_pics),
245         * src/pic/device.h (struct PIC_device),
246         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
247             stored device name,
248         * device/include/pic/pic12f{635,675,629,683}.h,
249         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
250         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
251         * device/include/pic/pic16f505.h,
252         * device/lib/pic/libdev/pic16f505.c: removed
253         * device/include/pic/pic14devices.txt: added support for pic12f
254             devices, removed unsupported non 16-bit devices
255             [above changes provided by patch from Zik Saleeba]
256         * src/pic/*, src/pic16/*, device/include/pic16/*,
257           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
258
259 2006-05-01 Borut Razem <borut.razem AT siol.net>
260
261         * configure.in, configure, doc/Makefile.in:
262           sync with nightly build makefile - latex, dvipdf and dvips
263           not needed any more
264
265 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
266
267         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
268         in the library source
269
270 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
271
272         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
273
274 2006-04-28 Raphael Neider <rneider AT web.de>
275
276         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
277         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
278           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
279         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
280
281 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
282
283         * device/lib/pic/libdev/Makefile.in,
284         * device/lib/hc08/Makefile.in,
285         * device/lib/gbz80/Makefile.in,
286         * device/lib/z80/Makefile.in,
287         * device/lib/ds390/Makefile.in,
288         * device/lib/ds400/Makefile.in: added srcdir to include search path,
289         thanks to Borut for the bug report
290         * configure.in,
291         * configure: always create doc/Makefile independent from --enable-doc
292         * Makefile.in: always install from directory doc independent from
293         --enable-doc
294         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
295         removed
296         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
297         * doc/Makefile.in: install *.txt if present
298         * device/include/Makefile.in (install): added installation of pic/*.inc
299         and pic/*.txt files again, they were erroneously removed
300
301 2006-04-28 Raphael Neider <rneider AT web.de>
302
303         * src/pic/{gen.c,main.h,pcode.c},
304         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
305             concerning signedness with casts
306
307 2006-04-28 Raphael Neider <rneider AT web.de>
308
309         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
310             definition of an interrupt handler,
311         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
312             interrupt handler stuff from picglue() to separate routine,
313           (picglue): enabled definition of intr handlers in files w/o main()
314
315 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
316
317         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
318           compilation with MSVC 2005 Express Edition (VC8)
319
320 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
321
322         * device/lib/Makefile: fixed build of gbz80 lib
323
324 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
325
326         * support/regression/tests/bug-460010.c,
327         * support/regression/tests/bug-524691.c,
328         * support/regression/tests/bug-716242.c: removed conditional defines
329           that are already in testfwk.h
330
331 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
332
333         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
334           (AccAXRsh1): added, shift right by 1,
335           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
336            AccAXLrl1
337         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
338
339 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
340
341         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
342         remove cast to same type
343         * src/SDCCast.c (decorateType): fix for RFE 1475742,
344         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
345         * as/z80/Makefile,
346         * link/z80/Makefile: removed, they have moved to
347         Makefile.in files
348         * configure,
349         * configure.in: replaced duplicate message about ucsim by missing sdcpp
350         * install-sh: fix bug #1204398 by setting umask 0022
351         * device/lib/Makefile: separate build of z80 and gbz80 lib
352
353 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
354
355         Enabled VPATH feature: changed nearly all Makefiles (149 files).
356         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
357
358         One basic decision: e.g. src/clean.mk includes further files. In order
359         to make this work there are two solutions:
360         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
361           run configure on them. This way they can use
362           'include $(srcdir)/port-clean.mk'
363         - always include clean.mk by the Makefile at the same level. To avoid
364           that `make clean` tries to include and build Makefile.dep the
365           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
366           implemented, because now even `make uninstall` doesn't create
367           Makefile.in. clean.mk could be eliminated by pasting it in
368           Makefile.in.
369
370         * debugger/mcs51/Makefile.in: build own objects from library sources
371         (SLIB, SDCC) in current directory
372
373         * configure, configure.in: renamed --disable-device-lib-build in
374         --disable-device-lib; added --enable-doc, the required tools are
375         searched by configure; added result message; the toolchain for the
376         belonging ports are now only built, if the port is enabled.
377
378         * support/regression/*: all output is written in directory gen, because
379         the fwk and ports directories don't livet in the build tree using vpath
380
381         * doc/sdccman.lyx: renamed --disable-device-lib-build to
382         --disable-device-lib, added --enable-doc, added section VPATH
383
384         * sim/ucsim/configure.in,
385         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
386         z80 are enabled by default
387
388 2006-04-24 Raphael Neider <rneider AT web.de>
389
390         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
391             to config word, "pic14_"-prefixed some extern functions
392           (pic14_emitConfigWord): emit __config directive(s) if assignment to
393             config word has been found
394         * src/pic/device.h: added prototypes
395         * src/pic/pcode.c: added "pic14_"-prefix where needed
396         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
397             fixup
398         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
399             words,
400           (pic14emitRegularMap): ignore config words,
401           (pic14createInterruptVect): moved generating __config directives away
402           (picglue): have __config directives emitted
403
404 2006-04-24 Borut Razem <borut.razem AT siol.net>
405
406         * doc/Makefile: sync with nightly build makefile
407
408 2006-04-24 Raphael Neider <rneider AT web.de>
409
410         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
411             registers that have not been assigned proper liveranges,
412             fixes #1469504 and #1474602,
413           (pCodeRegOptimizeRegUsage): fixed typo in comment
414
415 2006-04-24 Borut Razem <borut.razem AT siol.net>
416
417         * device/examples/main8051.c: deleted - it was removed from CVS
418           24.mar.2000 and after that modified 18.feb.2001, so it reappered
419           after the transition to Subversion
420         * src/SDCCalloc.h: deleted - it was removed  from CVS
421           3.feb.2001 and after that modified 18.feb.2001, so it reappered
422           after the transition to Subversion
423         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
424           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
425           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
426           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
427
428 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
429
430         * as/asx8051.dsp: added mcs51/strcmpi.h
431         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
432         * as/hc08/aslink.h: updated lnksect prototype
433         * as/hc08/asm.h,
434         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
435         * as/hc08/asmain.c,
436         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
437           (newdot): handle A_ABS
438         * as/hc08/asout.c,
439         * as/mcs51/asout.c (outarea): output address
440         * as/hc08/lkaomf51.c,
441         * as/mcs51/lkaomf51.c: disabled unused array UsageType
442         * as/hc08/m08pst.c,
443         * as/mcs51/i51pst.c,
444         * as/z80/z80pst.c: "ABS" is not A_OVR
445         * as/hc08/lkarea.c (newarea): read a_addr,
446           (lnkarea): added codemap array, sort absolute areas to the front,
447            combine all GSINITx/GSFINAL,
448           (find_empty_space, allocate_space): new functions,
449           (lnksect): return next address, handle absolute sections
450         * as/mcs51/lkarea.c (newarea): read a_addr,
451           lnksect2 prototype changed,
452           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
453           (find_empty_space, allocate_space): new, factored out of lnksect2,
454           (lnksect2): return next address, handle absolute sections
455         * as/hc08/lkhead.c,
456         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
457         * as/hc08/lklibr.c (addfile, fndsym),
458         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
459           index out of range and detect both '\' and '/'
460         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
461         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
462           regression tests (ds390 cannot return bool yet)
463         * doc/sdccman.lyx: changed version number, document changed --no-peep,
464           document critical interrupts on z80, document changed SDCC define
465         * src/asm.c (_asxxxx_mapping): fixed .org directive,
466           (_a390_mapping): added .org directive
467         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
468           (genMultOneByte): fixed warnings
469         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
470           ones
471         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
472         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
473           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
474         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
475         * src/pic16/main.c: removed newReg prototype
476         * src/pic16/pcode.c,
477         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
478           warnings
479         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
480           ones
481         * src/pic16/ralloc.c
482         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
483           to fix warnings
484         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
485           from short to PIC_OPTYPE
486         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
487         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
488           optype from short to PIC_OPTYPE
489         * src/port.h: made int_size unsigned to fix warnings
490         * src/SDCC.y: fixed warning on MSVC
491         * src/SDCCicode.c (getArraySizePtr): return unsigned int
492         * src/SDCCopt.c (convertToFcall): fixed warnings
493         * src/SDCCsymt.h: removed double prototype for genSymName
494         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
495           offset int to fix warnings
496
497 2006-04-22 Borut Razem <borut.razem AT siol.net>
498
499         * doc/sdccman.lyx, */Makefile, */Makefile.in:
500           references to CVS replaced with Subversion
501
502 2006-04-21 Borut Razem <borut.razem AT siol.net>
503
504         * doc/sdccman.lyx, */Makefile, */Makefile.in:
505           references to CVS replaced with Subversion
506
507 2006-04-19 Borut Razem <borut.razem AT siol.net>
508
509         * src/version.awk: adapted for svn
510         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
511           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
512           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
513           /binutils-avr/etc/*.vi, *.jin: removed all properties
514           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
515
516 2006-04-19 Borut Razem <borut.razem AT siol.net>
517
518         * CVS to Subversion migration completed
519
520 2006-04-18 Borut Razem <borut.razem AT siol.net>
521
522         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
523           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
524
525 2006-04-17 Borut Razem <borut.razem AT siol.net>
526
527         * device/include/Makefile.in: added pic/*.inc to the installation
528
529 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
530
531         * support/regression/collate-results.py: fixed output in case of
532         a valdiag error
533         * support/regression/generate-cases.py: fixed splitting of pathnames
534         with dots
535         * as/hc08/lklibr.c (addfile),
536         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
537
538 2006-04-11 Raphael Neider <rneider AT web.de>
539
540         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
541         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
542         * src/pic16/pcode.c (assignValnums): fixed #1460578
543
544 2006-04-11 Raphael Neider <rneider AT web.de>
545
546         * device/lib/pic/libdev/*.c,
547         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
548           fixes #1468739, enables compilation in --std-c99 mode
549         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
550
551 2006-04-11 Raphael Neider <rneider AT web.de>
552
553         * src/pic/device.c (find_device): removed debug output
554           (list_valid_pics): enabled verbose listing of supported devices
555         * device/include/stdbool.h: define bool as char for pic14/16 as well
556
557 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
558
559         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
560
561 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
562
563         * .version: bumped version to 2.5.6
564         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
565
566 2006-04-06 Raphael Neider <rneider AT web.de>
567
568         * .version: bumped version to 2.5.6 (pic14 ABI changed)
569         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
570         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
571           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
572             pic14_constructAbsMap
573           (pic14printPublics): declare absolute global symbols as global
574           (pic14createInterruptVect),
575         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
576           (newReg): assume new registers unused, use correct name in
577             hashtable (reg->name instead of name), more debugLog output
578         * src/pic/device.h (PIC_device): added fields for verbose output
579         * src/pic/device.c: moved device definition to pic14devices.txt,
580             added routines for runtime parsing of pic14devices.txt,
581             added support for second config word
582         * src/pic/main.c (_process_pragma): removed #pragma maxram,
583           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
584           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
585           (_pic14_parseOptions): moved pCodeInitRegisters here
586           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
587         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
588           (pCodeInitRegisters): rewrapped comments, perpared new approach to
589             handling the pseudo stack
590         * device/lib/Makefile.in: ignore failures in objects-pic16,
591         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
592         * device/lib/pic/NEWS: document new dependency on picXXX.lib
593         * device/lib/pic/Makefile.subdir,
594         * device/lib/pic16/Makefile.subdir: improved clean rules
595         * device/lib/pic/libdev/: NEW, pic14 device libraries
596         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
597         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
598         * device/include/Makefile.in: create subdir and install pic14 headers
599         * device/include/pic/p16f_common.inc: removed unused declarations
600         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
601             PICs from inc2h.pl v1.6,
602             replaced BIT_AT macros with struct declarations
603         * device/include/pic/pic14devices.txt: definition of supported devices,
604             all above improvements contributed by Zik Saleeba, thanks
605         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
606         * support/scripts/sdcc.nsi: also install pic14 device libraries and
607             headers
608
609 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
610
611         * device/include/mcs51/c8051f410.h: added interrupt numbers,
612         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
613           thanks to Charles Olds
614
615 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
616
617         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
618
619 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
620
621         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
622         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
623         * support/regression/bug1464657.c: added, new test
624
625 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
626
627         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
628           version number
629
630 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
631
632         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
633           --no-peep and --peep-file <file> are used don't use default rules but
634           do use the <file>
635
636 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
637
638         * src/mcs51/gen.c (genCall): fixed bug 1457608
639
640 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
641
642         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
643         changes seem to cause (trigger?) problems with the build system.
644
645 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
646
647         * src/SDCCpeeph.c (operandsLiteral): new, added,
648           (callFuncByName): inserted operandsLiteral
649         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
650
651 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
652
653         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
654         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
655
656 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
657
658         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
659           implemented patch 1120823 Thanks to Willy De la Court (normal
660           interrupts need an interrupt number now if they are made critical),
661           and enabled nesting of critical functions though not for gbz80
662           (genCritical, genEndCritical): added functions
663           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
664         * src/z80/mappings.i: added "ei" to all mappings
665
666 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
667
668         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
669         submitted by the Debian SDCC maintainer Aurelien Jarno:
670         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
671         archive with gcc 4.1 on mips and wrote the patch"
672
673 2006-03-16 Raphael Neider <rneider AT web.de>
674
675         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
676           the left operand is shorter than the result (c* = lit-c* + int),
677           fixes bug #1450796
678         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
679           OP_SYMBOL
680
681 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
682
683         * src/.version: increased version number to 2.5.5
684         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
685         linking is done manually in pic16 port's _linkEdit,
686         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
687         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
688         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
689         allocate asmop as AOP_ACC,
690         (aopForRemat): added parameter 'bool result' in function declaration,
691         (pic16_aopGet): return AOP_ACC when accessing WREG,
692         (pic16_popGetTempReg): minor modification,
693         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
694         'pic16_allocWithIdx',
695         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
696         calling function in absolute addresses,
697         (genAssign): take into account AOP_ACC asmop,
698         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
699         * src/pic16/pcoderegs.c: some debug functions and lines added,
700         * src/pic16/ralloc.c (decodeRegType): added but commented out,
701         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
702         register too,
703         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
704         call to allocReg, not by manually allocating a new one,
705         (pic16_assignRegisters): now before going through the register
706         allocating functions mark all registers as free. This eliminates some
707         side effects resulting from peephole parser done earlier in the backbone
708
709 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
710
711         * src/SDCCicode.c (geniCodeLogic),
712         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
713
714 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
715
716         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
717           (genSend): bugfix, do not allocate and free twice,
718           (shiftRLong): handle partially overlapping aops
719         * support/regression/tests/bitopcse.c: fixed warning redefined idata
720
721 2006-03-08 Borut Razem <borut.razem AT siol.net>
722
723         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
724           for pic16
725
726 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
727
728         * support/regression/tests/bug1409955.c: new, added
729         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
730         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
731           (aopForSym, aopOp): increment asmop.allocated if reused,
732           (freeAsmop): decrement asmop.allocated and check for zero instead of
733           using asmop.freed,
734           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
735           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
736            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
737            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
738            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
739            genSignedRightShift, genRightShift, genDataPointerGet,
740            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
741            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
742             in reverse order from allocation,
743           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
744             added swappedLR to keep track
745         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
746           pdata & code for GCC, z80, gbz80 & hc08
747         * support/regression/tests/zeropad.c: moved defines to testfwk.h
748
749 2006-03-08 Raphael Neider <rneider AT web.de>
750
751         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
752
753 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
754
755         * device/include/mcs51/c8051f410.h: new SiLabs mcu
756         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
757         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
758
759 2006-03-06 Borut Razem <borut.razem AT siol.net>
760
761         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
762           made the linker quiet
763
764 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
765
766         * src/pic16/gen.c (genPcall): fixed bug #1443644
767         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
768         which dumps before the function entry point a data byte which represents
769         the number of the local variables used by the specified function, added
770         'xinst' for initial support for Extended Instruction Support,
771         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
772         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
773         port->fun_prefix anymore (may change later),
774         (genFunction, genEndFunction): do not store/restore local registers for
775         _main (this should take care the --main-return command line option in
776         the future),
777         (genOr): removed some legacy pic-port instructions,
778         * src/pic16/genarith.c (genAddLit): re-enabled old code because
779         performing operations with SFR's causes data to be written more than
780         once to each SFR. Perhaps SFRs should be handled in special cases...
781         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
782         pcode.h
783         * src/pic16/main.c (_process_pragma): stack bound checking did not take
784         into account for stack starting position,
785         (struct OPTIONS pic16_optionsTable): added command line argument
786         --extended or -y for Extended Instruction Support,
787         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
788         (deassignLRs): *** perhaps the most important change, old 'for' code
789         (commented out for reference), didn't account for some registers which
790         were left marked 'not free' after a pointer operation. The change
791         reduces register usage a lot in some cases
792
793 2006-03-04 Borut Razem <borut.razem AT siol.net>
794
795         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
796           _clean
797         * support/regression/tests/bug-524697.c: decreased array size for
798           mcs51 to fit into the internal RAM
799         * support/regression/Makefile.in: a little bit more verbose
800
801 2006-03-03 Borut Razem <borut.razem AT siol.net>
802
803         * support/regression/fwk/lib/testfwk.c,
804           support/regression/fwk/include/testfwk.h: introduced function
805           _prints(), nonrecursive _printn(), call _initEmu() from main()
806         * support/regression/ports/gbz80/support.asm,
807           support/regression/ports/ucz80/support.asm,
808           support/regression/ports/z80/support.asm,
809           support/regression/ports/ds390/support.c,
810           support/regression/ports/hc08/support.c,
811           support/regression/ports/host/support.c,
812           support/regression/ports/mcs51/support.c,
813           support/regression/ports/xa51/support.c: added empty _initEmu()
814           function
815         * support/regression/ports/pic16/gpsim.cmd,
816           support/regression/ports/pic16/spec.mk,
817           support/regression/ports/pic16/support.c,
818           support/regression/Makefile.in: added pic16 regression test
819
820 2006-03-01 Raphael Neider <rneider AT web.de>
821
822         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
823           genConstPointerGet): use safe way of generating MOVFF to cover
824             literals as well as registers, fixes bug #1440527
825         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
826             dereference
827           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
828             more correctly, fixes bug #1232186
829           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
830         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
831             gplink guess the correct processor in more cases, applied patch
832             from Till Riedel attached to and fixing bug #1436552
833
834 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
835
836         * support/regression/tests/array.c: added, contains check for #1434401
837         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
838
839 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
840
841         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
842         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
843         * device/include/mcs51/c8051f326.h,
844         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
845         * device/include/mcs51/c8051f000.h,
846         * device/include/mcs51/c8051f018.h,
847         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
848           PCON_IDLE,PCON_STOP and added sfr16 definitions
849
850 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
851
852         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
853           genGetWord): fixed bug 1409955
854
855 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
856
857         * device/include/hc08/mc68hc908gp32.h,
858         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
859
860 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
861
862         * src/SDCCast.c (constExprValue): return NULL if not a value
863         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
864         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
865         * support/regression/tests/bitfields.c: enabled signed bitfield for all
866
867 2006-02-13 Borut Razem <borut.razem AT siol.net>
868
869         * src/regression/ptrarg.c: added, fails due to bug #1430967
870         * src/regression/Makefile: ptrarg.c added, ...
871
872 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
873
874         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
875         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
876
877 2006-02-11 Borut Razem <borut.razem AT siol.net>
878
879         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
880           print "Processor: xxx" message to stdout only if --verbose
881
882 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
883
884         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
885         * support/regression/tests/bug1426356.c: added
886         * support/regression/tests/bitfields.c: removed 2 tests
887
888 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
889
890         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
891         * device/include/mcs51/c8051f330.h,
892         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
893           PCON_IDLE,PCON_STOP and added sfr16 definitions
894         * device/lib/_divsint.c,
895         * device/lib/_divuint.c,
896         * device/lib/_divulong.c,
897         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
898           register bank bug for small stackauto
899
900 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
901
902         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
903
904 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
905
906         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
907         * all.dsp: corrected several bin paths
908         * device/include/mcs51/c8051f120.h,
909         * device/include/mcs51/c8051f300.h,
910         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
911           to PCON_IDLE,PCON_STOP
912         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
913         * device/lib/printf_large.c (output_float): fixed bug 1388703
914         * support/regression/tests/bug1057979.c: added test for bug 1388703
915
916 2006-02-08 Raphael Neider <rneider AT web.de>
917
918         * src/pic/pcode.c (pciTRIS): fixed typo,
919           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
920           (LinkFlow): fixed handling of flows that end in a call,
921           (ReuseReg): perform safety check earlier
922         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
923             to work with flows at the beginning of a pBlock,
924             fixes #1426557 (Symbol not previously defined),
925           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
926             usage information
927           (RemoveUnusedRegisters): update register usage info
928         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
929             created, reuse existing ones instead
930         * src/pic/gen.c (genPcall): fixed #1424719
931
932 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
933
934         * link/z80/lkmain.c,
935         * link/z80/lklex.c,
936         * link/z80/lkdata.c,
937         * link/z80/aslink.h: fixed build on current cygwin:
938         replaced getline() by lk_getline()
939
940 2006-02-01 Borut Razem <borut.razem AT siol.net>
941
942         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
943           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
944           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
945           src/regression/bool1.c, src/regression/bool2.c,
946           src/regression/bool3.c, src/regression/call1.c,
947           src/regression/compare.c, src/regression/compare10.c,
948           src/regression/compare2.c, src/regression/compare3.c,
949           src/regression/compare4.c, src/regression/compare5.c,
950           src/regression/compare6.c, src/regression/compare7.c,
951           src/regression/compare8.c, src/regression/compare9.c,
952           src/regression/configword.c, src/regression/for.c,
953           src/regression/inline.c, src/regression/mult1.c,
954           src/regression/nestfor.c, src/regression/or1.c,
955           src/regression/pointer1.c, src/regression/ptrfunc.c,
956           src/regression/rotate1.c, src/regression/rotate2.c,
957           src/regression/rotate3.c, src/regression/rotate4.c,
958           src/regression/rotate5.c, src/regression/rotate6.c,
959           src/regression/rotate7.c, src/regression/string1.c,
960           src/regression/struct1.c, src/regression/sub.c,
961           src/regression/sub2.c, src/regression/switch1.c,
962           src/regression/while.c, src/regression/xor.c,
963           src/regression/create_stc, src/regression/simulate,
964           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
965           regression tests
966         * src/regression/gpsim_assert.h: added
967
968 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
969
970         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
971         ((void (code *) (void)) 0) ();
972         * as/hc08/aslex.c,
973         * as/hc08/aslink.h,
974         * as/hc08/asm.h,
975         * as/hc08/asmain.c,
976         * as/hc08/lkdata.c,
977         * as/hc08/lklex.c,
978         * as/hc08/lkmain.c,
979         * as/mcs51/aslex.c,
980         * as/mcs51/aslink.h,
981         * as/mcs51/asm.h,
982         * as/mcs51/asmain.c,
983         * as/mcs51/lkdata.c,
984         * as/mcs51/lklex.c,
985         * as/mcs51/lkmain.c,
986         * as/z80/aslex.c,
987         * as/z80/asm.h,
988         * as/z80/asmain.c: fixed build on current cygwin:
989         replaced getline() by as_getline()
990
991 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
992
993         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
994         declarator in the symbol chain
995         * src/SDCCsymt.h,
996         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
997         parameter list for function pointers
998         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
999         * support/regression/tests/bug-716242.c: added
1000
1001 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
1002
1003         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
1004         offset if possible
1005         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
1006
1007 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
1008
1009         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
1010         inifinitely recurseable, added static
1011         * support/regression/tests/bug-1408066.c: added
1012
1013 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
1014
1015         * src/SDCCicode.h,
1016         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
1017         renamed, added possibility to create "postLoopLbl"-labels
1018         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
1019         newiTempLoopHeaderLabel
1020         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
1021         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
1022         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
1023         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
1024         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
1025         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
1026         (basicInduction): fixed bug #136564, made static,
1027         (loopInduction): changed parameter of basicInduction, made static,
1028         (addPostLoopBlock): added
1029         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
1030         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
1031         findLoopEndSeq
1032         * support/regression/tests/bug-136564.c: added
1033         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
1034         --std-sdcc99 to LIBSDCCFLAGS
1035
1036 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
1037
1038         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
1039         while loop
1040         * support/regression/tests/bug-1406131.c: added
1041
1042 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
1043
1044         * src/SDCCast.c (decorateType): fix promotion of unary minus
1045         * src/SDCCsymt.c (computeType): beautified
1046         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
1047         (valUnaryPM, valComplement): fix sign and promotion,
1048         (valNot): ANSI: result type is int (SDCC: unsigned char)
1049         * support/regression/tests/uminus.c: speedup by removing superflous
1050         test case 'int'
1051         * support/regression/tests/onebyte.c: added promotion and signedness
1052         tests for unary minus
1053         * support/regressions/tests/bug-477927.c: disable warning about
1054         uninitialized variables
1055         * support/regression/tests/not.c: added
1056
1057 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
1058
1059         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
1060         * src/mcs51/gen.c (gen51Code): show final register usage after
1061         fillGaps in asm with --i-code-in-asm
1062         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
1063         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
1064         incUsed, rliveClear, adjustIChain): made static,
1065         (setFromRange): excluded because it's unused,
1066         (findPrevUseSym, markWholeLoop): added,
1067         (findPrevUse): rewritten; fixes bug 895992; now a complete search
1068         through all branches of predecessors enables sdcc to emit the warning
1069         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
1070         (rlivePoint): made static, added parameter emitWarnings which is only
1071         true during the first run out of two,
1072         (findRecursiveSucc, findRecursivePred): removed,
1073         (computeLiveRanges): made static, added parameter emitWarnings,
1074         (dumpIcRlive): added for debugging only
1075         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
1076         removed prototype of setFromRange()
1077         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
1078         in call of computeLiveRanges()
1079         * support/regression/tests/bug-895992.c: added
1080         * support/regression/tests/bug-971834.c: added
1081         * support/valdiag/tests/bug-895992.c: added
1082         * support/valdiag/tests/bug-971834.c: added
1083
1084 2005-12-18 Raphael Neider <rneider AT web.de>
1085
1086         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
1087           (genUnpackBits): improved code for direct operands,
1088           (genPackBits): improved code for literal assignment to bitfields
1089             and for direct destination operands (no FSR indirection),
1090             prevented redundant AND, fixes #1362800,
1091           (AccLsh): added parameter to disable masking of the result
1092         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
1093           skip instructions with side-effects (like incfsz),
1094           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
1095         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
1096         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
1097           fixes #1375263
1098
1099 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
1100
1101         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
1102         volatile variables as spill location
1103
1104 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
1105
1106         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
1107         replacing literals
1108         * support/regression/tests/bug-1376320.c: added
1109
1110 2005-12-08 Raphael Neider <rneider AT web.de>
1111
1112         * src/pic/device.c: renamed is_shared to pic14_is_shared
1113         * src/pic/gen.c (genIfx): re-enabled handling of sbits
1114         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
1115           (is_valid_identifier): added for above workaround
1116
1117 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
1118
1119         * device/lib/Makefile.in: fixed to enable port-specific-objects
1120         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
1121           char, thanks Hubert Sack
1122         * doc/sdccman.lyx: documented --xstack-loc,
1123           elaborated a bit more on interrupts and pitfalls,
1124           removed "setjmp/longjmp unsupported",
1125           documented some unsupported C99 features
1126         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
1127         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
1128           if, thanks Hubert Sack
1129         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
1130         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
1131           make make_library
1132         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
1133           regression tests can report resource usage (rfe 700441)
1134         * support/regression/collate-results.py: report resource usage
1135         * support/regression/ports/ds390/spec.mk,
1136         * support/regression/ports/hc08/spec.mk,
1137         * support/regression/ports/mcs51/spec.mk,
1138         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
1139         * support/regression/ports/ds390/uCsim.cmd,
1140         * support/regression/ports/hc08/uCsim.cmd,
1141         * support/regression/ports/mcs51/uCsim.cmd,
1142         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
1143         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
1144           library, use the default one
1145         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
1146           building the library
1147
1148 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1149
1150         * config.dsp: added dependency on .version and configure_vc.awk
1151         * device/include/setjmp.h: updated for --stack-auto and --xstack
1152         * device/include/mcs51/at89c51snd1c.h: corrected line endings
1153         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
1154         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
1155         * device/lib/libsdcc.lib: added _setjmp
1156         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
1157           (decorateType): fixed bug 1372851,
1158           (optimizeGetHbit): fixed warning
1159         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
1160           array initialisation
1161         * support/regression/tests/bug1057979.c: added test for bug 1358192
1162         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
1163
1164 2005-12-03 Borut Razem <borut.razem AT siol.net>
1165
1166         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
1167           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
1168
1169 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1170
1171         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
1172         createIval): implement symbol independant "flexible array member",
1173         (createIvalCharPtr): implemented flexible array initialisation with a
1174         string
1175         * src/SDCCsymt.c (copyStruct): removed,
1176         (getSize): fixed misleading comment,
1177         (getAllocSize): removed, the additional allocation size is now in
1178         sym->flexArrayLength,
1179         (checkStructFlexArray): new, syntax checks for flexible array members,
1180         (compStructSize): added syntax checks for "flexible array members"
1181         (copyStruct): removed,
1182         (copyLinkChain): removed inefficient fix for bug 770487
1183         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
1184         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
1185         symbol->flexArrayLength
1186         * src/SDCCerr.c,
1187         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
1188         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
1189         * support/regression/tests/structflexarray.c: added
1190         * support/valdiag/tests/structflexiblearray.c: added
1191
1192 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1193
1194         * src/SDCCast.c (decorateType): fixed bug 1368489
1195         * support/Util/SDCCerr.c,
1196         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
1197
1198 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1199
1200         * device/include/mcs51/at89c51snd1c.h: added file submitted by
1201           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
1202
1203 2005-11-27 Borut Razem <borut.razem AT siol.net>
1204
1205         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
1206           support/cpp2/mkdeps.h: added command line option
1207           -obj-ext=<extension> to SDCPP to define object file externion, used
1208           for generation of make dependencies (-M)
1209         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
1210
1211 2005-11-26 Borut Razem <borut.razem AT siol.net>
1212
1213         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
1214           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
1215           added pic and pic16 libraries
1216
1217 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1218
1219         * device/include/float.h: Corrected typo in prototype of __fsgt
1220
1221 2005-11-25 Borut Razem <borut.razem AT siol.net>
1222
1223         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
1224           added creation of model-mcs51-stack-auto libraries
1225
1226 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
1227
1228         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
1229         and fields-list too
1230         * src/SDCCast.c (createIvalArray): removed obsolete comment
1231
1232 2005-11-24 Borut Razem <borut.razem AT siol.net>
1233
1234         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
1235           added missing device/lib/mcs51/crt*.asm sources
1236
1237 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
1238
1239         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
1240
1241 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
1242
1243         * device/lib/_fs2schar.c,
1244         * device/lib/_fs2sint.c,
1245         * device/lib/_fs2slong.c: optimized inline asm
1246
1247 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1248
1249         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1250           Better handling of floats between -1.0 and 0.0.
1251
1252 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1253
1254         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
1255           (the missing "if"s prohibited removal of redundant labels)
1256
1257 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1258
1259         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1260           Properly convert floats between -1.0 and 0.0 to long, int, and char
1261           types (max integer value of negative floats tends to zero).
1262         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1263           Removed changes made so to work properly with floats between
1264           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
1265           and _fs2char.c
1266
1267 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1268
1269         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
1270         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
1271         (genCast) cosmetic change
1272         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
1273         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
1274         from mcs51
1275         * support/regression/tests/bitfields (testSignedBitfields): added
1276
1277 2005-11-18 Borut Razem <borut.razem AT siol.net>
1278
1279         * sdcc/device/lib/Makefile.in: remove all unnecessary files
1280         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
1281           introduced SILENT option to make building of pic16 libraries less
1282
1283 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1284
1285         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1286           Now they work properly with floats between -1.0 and 0.0
1287         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
1288
1289 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1290
1291         * src/SDCCicode.c (printOperand): added missing else
1292
1293 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1294
1295         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
1296         reformatted for better readability
1297         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
1298         signed bitfields
1299
1300 2005-11-17 Borut Razem <borut.razem AT siol.net>
1301
1302         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
1303           introduced SILENT option to make building of pic16 libraries less
1304           verbose - used for nightly snapshot build
1305         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
1306           available on Win32 platforms.
1307         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
1308           medium, large, pic and pic16
1309
1310 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1311
1312         * device/lib/printf_large.c: Temporary patch for bug 1358192:
1313           printf("%f"...) sets fraction to zero.
1314
1315 2005-11-16 Raphael Neider <rneider AT web.de>
1316
1317         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
1318           fixes #1357221
1319         * src/pic/gen.c (genIfx): implemented for CARRY bit
1320         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
1321           to generic pointers, fixes #1357332,
1322           (pic16_movLit2f): NEW,
1323           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
1324
1325 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1326
1327         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
1328
1329 2005-11-11 Raphael Neider <rneider AT web.de>
1330
1331         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
1332         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
1333           compute pointer's type from operand,
1334           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
1335           improved single bit reads, fixes bug #1353379
1336
1337 2005-11-09 Borut Razem <borut.razem AT siol.net>
1338
1339         * support/scripts/sdcc.nsi: added lib/pic to the package
1340
1341 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
1342
1343         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
1344
1345 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1346
1347         * support/regression/tests/bug1348008.c: added
1348         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
1349         * support/regression/tests/bug1337835.c: updated comment
1350
1351 2005-11-06 Borut Razem <borut.razem AT siol.net>
1352
1353         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1354           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1355           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1356           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1357           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
1358           dynamic construction of cl_error_class and derivates - 2.nd try
1359
1360 2005-11-05 Borut Razem <borut.razem AT siol.net>
1361
1362         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
1363           bug, which caused Bus Errors on sparc solaris
1364
1365 2005-11-04 Borut Razem <borut.razem AT siol.net>
1366
1367         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1368           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1369           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1370           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1371           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
1372           and derivates to resolve the initialization problem on OSX
1373
1374 2005-11-02 Borut Razem <borut.razem AT siol.net>
1375
1376         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1377           corrected typo - #include <winsock2.h>
1378
1379 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
1380
1381         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
1382           (_asxxxx_mapping): added org directive for future enhancements
1383
1384 2005-11-01 Borut Razem <borut.razem AT siol.net>
1385
1386         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1387           enabled sockets on WIN32
1388         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
1389
1390 2005-10-31 Borut Razem <borut.razem AT siol.net>
1391
1392         * support/regression/generate-cases.py: escape backslashes in {testcase}:
1393           WIN32 backslash path delimiters should be escaped when used in C strings
1394         * support/regression/tests/bitfields.c: exclude failing assertions for
1395           __CYGWIN32__ and __MINGW32__ hosts
1396
1397 2005-10-30 Borut Razem <borut.razem AT siol.net>
1398
1399         * src/SDCCutil.c: corrected double comparison typo
1400
1401 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
1402
1403         * device/lib/medium/Makefile: added for new memory model medium
1404         * device/include/asm/mcs51/features.h: updated for medium/pdata
1405         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
1406           added Multiply & Accumulate sbit's and MAC0_PAGE define
1407         * device/include/mcs51/c8051f300.h: added sfr16 definitions
1408         * device/include/mcs51/c8051f310.h: added sfr16 definitions
1409         * device/lib/_mullong.c: update for medium model
1410         * device/lib/incl.mk: added medium model
1411         * doc/sdccman.lyx: documented medium model
1412         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
1413         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
1414         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
1415         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
1416           (allocParms): set SCLS and OCLS to pdata for medium model
1417         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
1418           for pdata,
1419           (powof2): return <0 if not power of 2
1420         * src/avr/gen.c (genBitWise): use updated powof2
1421         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
1422           (shiftR2Left2Result): small optimization in setup, save acc when storing,
1423           (shiftLLeftOrResult): use B if necessary
1424         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
1425         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
1426         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
1427         * support/regression/Makefile.in: added test-mcs51-medium
1428         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
1429
1430 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1431
1432         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
1433         specifier unsigned
1434         * device/lib/time.c (mktime): fixed bug 1334315
1435
1436 2005-10-28 Raphael Neider <rneider AT web.de>
1437
1438         * device/include/pic/p16f_common.inc: added common declarations
1439         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
1440
1441 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1442
1443         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
1444           (aopPutUsesAcc): added to predict accumulator use,
1445           (assignResultValue): save acc if necessary,
1446           (genMinusDec): store result if indirectly addressed,
1447           (genDivOneByte):  save acc if necessary,
1448           (movLeft2Result): bugfix if left already in acc,
1449           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
1450             attention to accumulator use (esp. pdata),
1451           (genReceive): receive pdata correctly
1452         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
1453         * src/SDCCicode.h: added isOperandInPagedSpace prototype
1454
1455 2005-10-27 Raphael Neider <rneider AT web.de>
1456
1457         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
1458
1459 2005-10-27 Raphael Neider <rneider AT web.de>
1460
1461         * .version: changed version to 2.5.4
1462         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
1463         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
1464           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
1465             arithmetics support routines
1466         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
1467         * device/lib/Makefile.in: also create installdir for pic
1468
1469         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
1470           pic14 port as well
1471         * src/pic/device.c (dump_sfr): rewritten to delegate register
1472           placement to the linker (use `extern sym' rather than sym EQU addr),
1473           (validAddress): fixed to check last specified address
1474         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
1475           (popGetLit): truncate literal value to 8 bit,
1476           (popGet): moved assert to more appropriate place
1477           (popGetExternal): create pCode operand from and mark the according
1478             symbol as being `extern'
1479           (popGetAddr): added sanity check on immediate's offset, provide
1480             GPOINTER tag on demand
1481           (aopPut): fixed for immediates,
1482           (mov2w_op): move operand's address or contents to WREG (depending on
1483             operand type), safer variant of mov2w,
1484           (movwf,call_libraryfunc): NEW, handy abbreviations,
1485           (get_argument_pcop,get_return_val_pcop,pass_argument,
1486           get_returnvalue): interface for accessing function parameters and
1487             return values,
1488           (assignResultValuei,genRet): use new parameter/return value interface
1489           (pic14_getDataSize): back to old version handling generic pointers,
1490           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
1491             provided implementation and/or fixed old one,
1492           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
1493             calls, removed legacy 8051 reference code
1494           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
1495           (loadSignToC): NEW, move the operands sign bit to CARRY,
1496           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
1497             genRightShiftSigned, accepts negative shift counts,
1498           (setup_fsr): load FSR and adjust IRP (indirect memory access),
1499           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
1500             generic pointers, __data pointers and __code pointers,
1501           (genUnpackBits,genPackBits): rewritten to work with generic pointers
1502             and signed bitfields, limit bitfields to 8 bit,
1503           (genDataPointerGet): fixed number of bytes read,
1504           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
1505           (genPointerGet,genPointerSet): fixed handling of __code pointers,
1506             pointers to constant data are no longer assumed to point to __code
1507             space, removed invalid pointer types,
1508           (bitpatternFromVal): retrieve the PICs representation of an integer
1509             or float literal,
1510           (genDataPointerSet): fixed assigning to po_immediate operands,
1511           (genGenPointerSet): implemented as library call,
1512           (genIfx): fixed incorrect condition,
1513           (genAddrOf): limit generic pointers' addresses to 2 bytes,
1514             provide GPOINTER tag according to destination's storage class,
1515           (genCast): added code to handle casting to generic pointers, added
1516             sign-/zero extension of the result
1517           (aop_isLitLike,op_isLitLike): fixed handling of immediates
1518         * src/pic/gen.h: added macros to access IRP bit in STATUS register
1519         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
1520           extend the result
1521         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
1522           address/register resides in the shared banks
1523           (emitSymbolToFile): improved to handle global and `pinned' symbols,
1524             put all variables into separate sections (have the linker arrange
1525             them)
1526           (picglue): put init code and interrupt handlers in separate sections
1527         * src/pic/main.c: added port specific options table, modified to PORT
1528           structure to make GPOINTERs 3 byte, added pic14_options
1529           (_pic14_do_link): private linking routine (update paths to libraries,
1530             add libsdcc.lib by default)
1531         * src/pic/main.h: declare pic14_options
1532         * src/pic/pcode.c: fixed instructions i/o relations,
1533           (RegCond): reverted to correct version,
1534           (newpCodeOpLit): truncate literals to 8 bit,
1535           (genericPrint): added debug output,
1536           (getRegFromInstruction): fixed for various operand types, simplified
1537           (BuildFlow): fixed broken handling of isntructions with labels
1538           (LinkFlow): start at last instruction in flow (skip trailing comments),
1539             pass the flow on to the next instruction after CALL
1540           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
1541           (insertPCodeInstruction): fixed inserting after a skip instruction,
1542           (DoBankSelect): fixed for labeled instructions
1543           (OptimizepBlock): honor --nopeep switch
1544           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
1545         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
1546         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
1547           (pCodeOptime2pCodes): allow disabling this optimization via
1548             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
1549             but is still buggy), started implementation of a dataflow based
1550             pCode optimization (CSE + dead code elimination)
1551           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
1552         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
1553           names are independant of the stack location and therefore portable across
1554           devices
1555
1556 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1557
1558         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
1559           (selectSpil): fixed bug 1337835 by not spilling bit variables
1560         * support/regression/tests/bug1337835.c: added test for this bug
1561         * src/mcs51/peeph.def: restart after rule 3.c,
1562           addded rules 263.x to optimize loading constants
1563
1564 2005-10-26 Raphael Neider <rneider AT web.de>
1565
1566         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
1567         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
1568           (genAssign): emit warning when casting literals to generic pointer
1569             type, also applies when taking the address of a fixed variable,
1570           (genCast): improved casting to generic pointers
1571         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
1572           extern variables, added verbose error message
1573         * device/include/pic16/{string.h,errno.h}: added #pragma library c
1574
1575 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
1576
1577         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
1578         carry must be complemented too
1579         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
1580         could be emitted by genMinus
1581         * src/SDCCval.c (constVal): fixed bug 1305065
1582
1583 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
1584
1585         * src/SDCCast.c (addCast): added promotion for bit variables
1586         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
1587         promotion casts + optimisation
1588         (optimizeGetWord): fix warning 'i' might be used uninitialized
1589         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
1590         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
1591
1592 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
1593
1594         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
1595         all chars are promoted to int; promotion should be handled in SDCCast.c
1596
1597 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1598
1599         * device/lib/_strcmp.c: Fixed bug 1326457
1600
1601 2005-10-11 Raphael Neider <rneider AT web.de>
1602
1603         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
1604         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
1605
1606 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1607
1608         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
1609         * support/regression/tests/sfr16.c: added test for the sfr32 bug
1610
1611 2005-10-04 Raphael Neider <rneider AT web.de>
1612
1613         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
1614           device/lib/pic16/pics.all: added pic18f1320
1615         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
1616
1617 2005-09-30 Raphael Neider <rneider AT web.de>
1618
1619         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
1620         * src/pic16/devices.inc: NEW, provides device descriptions
1621         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
1622
1623 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1624
1625         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
1626           GETHBIT
1627
1628 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
1629
1630         * doc/sdccman.lyx: updated Highest Order Bit documentation,
1631           documented Any Order Bit, Higher Order Byte and Higher Order Word
1632         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
1633         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
1634           (optimizeGetAbit): new, to get any bit, not only the high bit,
1635           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
1636           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
1637           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
1638           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
1639             RIGHT_OP: also try GETBYTE, GETWORD optimization,
1640             GETABIT, GETBYTE, GETWORD: decorate them,
1641           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
1642           (ast_print): added GETABIT, GETBYTE, GETWORD
1643         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
1644         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
1645           (geniCodeBinary): new generic binary icode,
1646           (ast2iCode): added GETABIT, GETBYTE, GETWORD
1647         * src/port.h: updated comment for PORT.hasExtBitOp
1648         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
1649           (genGetByte): new, to get a single byte,
1650           (genGetWord): new, to get a word from a long,
1651           (gen51Code): added GETABIT, GETBYTE, GETWORD
1652         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
1653
1654 2005-09-23 Raphael Neider <rneider AT web.de>
1655
1656         * configure.in, configure: have device/lib/pic configured
1657         * device/lib/Makefile.in: added model-pic14
1658         * device/lib/clean.mk: added pic/ to clean rule
1659         * device/lib/pic: added rudimentary pic14 library providing support
1660           functions for multiplication/division/generic pointer access
1661         * src/SDCCopt.c (convilong): mark support functions as extern
1662           for pic14 port as well
1663         * src/pic/gen.c (genMult): added assertions,
1664           (genpic14Code): emit warning on unhandled iCodes
1665         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
1666         * src/pic/pcode.c (pCodeOpCopy),
1667         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
1668           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
1669           SFR_REGISTER}), made safe for future extensions
1670         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
1671           instructions even if preceeded by SKIP instructions (also remove
1672           them); removed unused code
1673         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
1674           prevents leaving parts of the structure uninitialized after copying
1675
1676 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
1677
1678         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
1679           ago by me
1680         * support/regression/tests/addsub.c: added test for the bug
1681
1682 2005-09-21 Raphael Neider <rneider AT web.de>
1683
1684         * device/include/pic16/pic18f1220.h,
1685           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
1686         * device/lib/pic16/Makefile.rules: added missing opening paren
1687         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
1688           are provided in genutils.c,
1689           (genUminusFloat,genUminus,genCmpEq): added asserts on different
1690           operand/result sizes,
1691           (genCmp): assert on NULL pointers first, then check deref'ed values
1692         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
1693           result size
1694
1695 2005-09-18 Raphael Neider <rneider AT web.de>
1696
1697         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
1698           as these are now unused,
1699           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
1700         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
1701           local, avoids uninitialized pointer dereference on r->name
1702         * src/pic16/ralloc.c (newReg): fixed indentation
1703
1704 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
1705
1706         * src/SDCCval.c (constVal): fixed bug 730366
1707         * support/Util/SDCCerr.c,
1708         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
1709
1710 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1711
1712         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
1713
1714 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
1715
1716         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
1717
1718 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1719
1720         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
1721           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1722         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
1723           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1724         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
1725         * packihx/packihx.c (hexDigit): made c unsigned char
1726         * as/mcs51/lklibr.c (fndsym),
1727         * link/z80/lkgb.c (gb),
1728         * link/z80/lklibr.c (fndsym),
1729         * link/z80/lkrloc.c (relr),
1730         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
1731         * src/SDCC.lex (checkCurrFile, process_pragma),
1732         * src/SDCCglue.c (spacesToUnderscores),
1733         * src/SDCCmain.c (setParseWithComma, processFile),
1734         * src/asm.c (tvsprintf, printCLine),
1735         * src/avr/gen.c (emitcode, aopPut),
1736         * src/ds390/gen.c (emitcode),
1737         * src/hc08/gen.c (emitcode, emitinline),
1738         * src/mcs51/gen.c (emitcode, genInline),
1739         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1740           tokenizeLineNode),
1741         * src/pic/ralloc.c (debugLog),
1742         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1743           tokenizeLineNode),
1744         * src/pic16/ralloc.c (debugLog),
1745         * src/z80/main.c (_process_pragma):
1746            made all ctype.h function calls safe
1747         * src/SDCCopt.c: include math.h for fabs
1748         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
1749           and used them throughout the code to make ctype.h function calls safe
1750         * src/ds390/main.c (asmLineNodeFromLineNode),
1751         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
1752         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
1753            unsigned char*
1754         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
1755           (newpCodeAsmDir): made ctype.h function calls safe
1756         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
1757           pic16_emitcode):  made lbp unsigned char*
1758         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
1759           (pic16_newpCodeAsmDir): made ctype.h function calls safe
1760         * src/xa51/gen.c (emitcode),
1761         * src/z80/gen.c (_emit2): made lbp unsigned char*
1762         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
1763            char*
1764
1765 2005-09-05 Raphael Neider <rneider AT web.de>
1766
1767         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
1768           access bank splitpoint
1769
1770 2005-09-05 Raphael Neider <rneider AT web.de>
1771
1772         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
1773
1774 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
1775
1776         * .version: changed to version 2.5.3
1777         * doc/sdccman.lyx: changed version to 2.5.3,
1778           documented --codeseg and --constseg and pragma codeseg and constseg,
1779           documented bit parameters (reentrant) and bit returning
1780         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
1781            currFunc->recvSize, but is this ok for all ports?
1782           (ast2iCode): result of ~ on unsigned char must be cast to int for
1783            bool to work
1784         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
1785           function pointers in bit space
1786         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
1787           (processFuncArgs): call port.reg_parm() with reentrancy info
1788         * src/port.h,
1789         * src/avr/main.c,
1790         * src/ds390/main.c,
1791         * src/hc08/main.c,
1792         * src/pic/main.c,
1793         * src/pic16/main.c,
1794         * src/xa51/main.c,
1795         * src/z80/main.c: port.reg_parm prototype extended with
1796           "bool reentrant" parameter
1797         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
1798           options.stackAuto for allocating bit register parameters
1799         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
1800           (genSend): set BitBankUsed if it is,
1801           (selectRegBank): factored out of genCall for use in genPcall,
1802           (genCall): removed redundant dtype assignmen, use selectRegBank,
1803           (genPcall): handle returning in Carry properly, save in F0 if needed,
1804           (genReceive): handle bit register parameters
1805         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
1806           (mcs51_assignRegisters): enable bit registers for all reentrant
1807            functions and don't set BitBankUsed unconditionally
1808         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
1809         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
1810         * support/regression/tests/funptrs.c: added tests for BOOL and for return
1811
1812 2005-08-27 Borut Razem <borut.razem AT siol.net>
1813
1814         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
1815         ppc-osx (Darwin) does not support -u option. It seems that it is
1816         supported only on Linux - GNU cp
1817
1818 2005-08-25 Borut Razem <borut.razem AT siol.net>
1819
1820         * sim/ucsim/gui.src/serio.src/Makefile.in,
1821           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1822           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1823           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
1824           install and strip, since the strip at /usr/ccs/bin should be used
1825           on solaris
1826
1827 2005-08-24 Borut Razem <borut.razem AT siol.net>
1828
1829         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
1830
1831 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
1832
1833         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
1834         ffffffffu
1835
1836 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
1837
1838         * as/mcs51/aslink.h: completed lkrloc.c prototypes
1839         * as/mcs51/lkmain.c (link_main): fixed warning
1840         * device/include/stdbool.h: ds390 has no advanced bit support yet
1841         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
1842         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
1843         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
1844           and updated their macros
1845         * src/SDCCval.c (constVal): updated comment for renamed b_long
1846
1847 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
1848
1849         * as/mcs51/asdata.c: changed ctype['['] to BINOP
1850         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
1851           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
1852           (oprio): set priority for '['
1853         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
1854            and adb_24_bit
1855         * as/mcs51/asm.h: added defines R_BIT and S_BIT
1856         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
1857         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
1858         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
1859           added overlayable BIT_BANK area
1860         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
1861           (summary2): explain 'T' in legenda
1862         * as/mcs51/lkrloc.c: replaced old K&R style,
1863           (relr): added R_BIT processing,
1864           (errmsg): added "Bit-addressable relocation error",
1865           (adb_bit): added for converting from byte- to bit-addressable space,
1866           (adb_24_bit): added for converting from byte- to bit-addressable space
1867         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
1868            used in reentrant functions now even as return value
1869         * device/lib/_gptrput.c (_gptrput): removed obsolete code
1870         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
1871           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
1872         * src/SDCCglobl.h: added indicator BitBankUsed
1873         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
1874            the bit registers b0-b7
1875         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
1876           (geniCodeCast): fixed bug 1263853,
1877           (geniCodeLogicAndOr): put result in bool or char,
1878           (geniCodeReceive): added parameter func for accessing the return type,
1879           (geniCodeFunctionBody): pass func to geniCodeReceive
1880         * src/SDCCmain.c: added indicator BitBankUsed
1881         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
1882         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
1883           (checkSClass): don't put automatic bool/bit on stack,
1884           (checkFunction): removed check on function cannot return bit
1885         * src/SDCCsymt.h: added newBoolLink prototype
1886         * src/mcs51/gen.c (rb1regs): added bit registers,
1887           (movc): created for assigning to carry,
1888           (pushReg, popReg): created for pushing registers,
1889           (sameRegs): check both AOP_REG and AOP_CRY types,
1890           (aopOp): handle bit registers,
1891           (aopPut): optimization no self-assign,
1892           (saveRegisters): push reg->base (bits) only once for bit registers,
1893            and use pushReg,
1894           (unsaveRegisters): pop reg->base only once and use popReg,
1895           (assignResultValue): added parameter func and return in carry for bits,
1896           (genIpush): optimization no reload in A if not changed,
1897           (genSend): bit parameters in reentrant functions are passed in bit
1898            registers by first assigning to bits in B, then save registers and
1899            copy B to bits,
1900           (genCall): handle returning in Carry properly, save it in F0 if needed,
1901           (genPcall): updated assignResultValue call, this is not safe yet for bit
1902            returning function !!!
1903           (genFunction): don't generate equ's for bit registers and use pushReg,
1904           (genEndFunction): take care of bit returning functions and use popReg,
1905           (genRet): return bit in Carry,
1906           (genIfx): optimize bit registers and other directly addressable bits,
1907           (genReceive): updated assignResultValue call
1908         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
1909           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
1910            registers when using stack-auto
1911         * src/mcs51/ralloc.c (_G): added allBitregs,
1912           (regs8051): added the bit registers,
1913           (createStackSpil): use macro IS_BIT,
1914           (getRegBit): added to allocate a bit register, else spill,
1915           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
1916           (updateRegUsage): factored out to ease stepping while debugging,
1917           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
1918            also allocate bit registers,
1919           (fillGaps): handle bit registers,
1920           (findAllBitregs): added to create bit vector with all bit registers,
1921           (mcs51_allBitregs): returns this bit vector,
1922           (mcs51_assignRegisters): when using stack-auto use bit registers for
1923            passing parameters and creating local variables
1924         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
1925
1926 2005-08-22 Borut Razem <borut.razem AT siol.net>
1927
1928         * device/lib/Makefile.in: replaced find option -or with -o
1929           to make it run on solaris
1930
1931 2005-08-22 Raphael Neider <rneider AT web.de>
1932
1933         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
1934           fixes #1265442 (crash on Solaris)
1935
1936 2005-08-20 Borut Razem <borut.razem AT siol.net>
1937
1938         * configure, configure.in: added tests for libsocket and libnsl libraries,
1939           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
1940           from support/regression/Makefile.in
1941         * support/regression/Makefile.in: added
1942         * device/lib/pic16/Makefile.common.in: force make to use bash shell
1943         * sim/ucsim/libtool: regenerated on sparc-solaris
1944         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1945           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
1946           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
1947           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
1948           sparc-solaris, which doesn't use GNU ld linker
1949         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
1950         * as/Makefile: find on sparc-solaris does not support -maxdepth option
1951
1952 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
1953
1954         * src/mcs51/peeph.def: updated comments
1955
1956 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1957
1958         * device/lib/_gptrget.c,
1959         * device/lib/_gptrput.c: slightly shorter
1960         * doc/sdccman.lyx: incremented version
1961         * src/mcs51/peeph.def: moved peephole comments to the line of first
1962           change to better keep line correlation, reanimated 186.e
1963         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
1964
1965 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
1966
1967         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
1968           David Saxton with quotes around file name.
1969
1970 2005-08-15 Borut Razem <borut.razem AT siol.net>
1971
1972         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
1973           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
1974           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
1975           make tests run on x86_64 platform
1976
1977 2005-08-13 Raphael Neider <rneider AT web.de>
1978
1979         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
1980           as it might be executed DURING a build (parallel make is wonderful)
1981
1982 2005-08-13 Raphael Neider <rneider AT web.de>
1983
1984         * device/lib/Makefile.in (port-specific-objects-pic16):
1985           revert to cp $(PORT)/bin/*.* $(PORTDIR)
1986         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
1987           dependency
1988         * device/lib/pic16/Makefile.rules: build subdirs before creating
1989           the library, removed builddir rule, create $(builddir) early in
1990           recurse rule, use empty recurse rule for leaf directories
1991         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
1992           mkdir errors (race condition), removed duplicate suffix "hex"
1993           from clean rules
1994         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
1995         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
1996           prevents mkdir -p from aborting on Alpha
1997
1998 2005-08-12 Raphael Neider <rneider AT web.de>
1999
2000         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
2001           db-statements in order to allow for arrays of pointers in code
2002           sections to be placed without interspersed 0-padding, fixes
2003           bug #1256215
2004         * (emitStatistics): fixed division by zero for pic18f1220
2005         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
2006           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
2007         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
2008         * (pic16_pCodeConstString): keep track of already emitted string
2009           literals to prevent "duplicate definitions of symbol _str_NR"
2010         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
2011           debug message
2012         * device/lib/Makefile.in: ignore failing PIC16 library builds
2013         * device/lib/pic16/Makefile: do not build if gputils are missing
2014         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
2015
2016 2005-08-10 Raphael Neider <rneider AT web.de>
2017
2018         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
2019           my last commit)
2020
2021 2005-08-10 Raphael Neider <rneider AT web.de>
2022
2023         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
2024           Rokas' patch to add the new fixed point type "__fixed16x16"
2025         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
2026           functions for __fixed16x16 arithmetics
2027         * device/lib/pic16: reimplemented the build system to support
2028           a separate build directory, better handling of libio (create
2029           the library in a separate subdir for each architecture) and
2030           easier configuration (centralized in Makefile.common)
2031
2032 2005-08-07 Raphael Neider <rneider AT web.de>
2033
2034         * src/pic16/gen.c (genrshTwo): fixed sign extension
2035         * src/pic16/device.c: added pic18f2320, 4220 and 4320
2036         * device/include/pic16/pic18f2220.h: changed some bit definitions,
2037           added T0CONbits
2038         * device/include/pic16/pic18f4220.h: NEW, header for
2039           pic18f4220 and pic18f4320
2040         * device/include/pic16/pic18fregs.h: added new devices,
2041           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
2042         * device/include/pic16/signal.h: resolved name clashes
2043           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
2044           to also allow testing for interrupt enable bits, added
2045           comments on how to use the macros
2046         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
2047         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
2048           register definitions for the devices
2049         * device/lib/pic16/pics.all: added new devices
2050         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
2051           allocated memory
2052         * device/lib/pic16/libc/stdlib/memfree: do not count
2053           the block header as free memory
2054         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
2055           simplified and added missing end-of-blocklist-marker
2056           (reported by Peter Onion, fixes #1252814)
2057         * (_mergeHeapBlock): fixed loop condition
2058         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
2059           len==0, restructured code
2060         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
2061           up a bit, reduced bitfield accesses, prevent endless loops
2062           in case of heap corruption
2063         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
2064           "unreferenced arguments/must return a value" warnings
2065         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
2066           replaced BAUDREG with SPBRG
2067         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
2068           device/lib/pic16/debug/gstack/gstack.c: replaced
2069           _naked, _asm, _endasm with __naked, __asm, __endasm
2070
2071 2005-08-05 Raphael Neider <rneider AT web.de>
2072
2073         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
2074           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
2075
2076 2005-08-05 Borut Razem <borut.razem AT siol.net>
2077
2078         * device/lib/Makefile.in: added missing ';'
2079         * configure: removed ^M characters
2080
2081 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2082
2083         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
2084           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
2085           License
2086
2087 2005-08-04 Borut Razem <borut.razem AT siol.net>
2088
2089         * configure.in: pic16 libraries build 2nd try - enable running
2090           configure in device/lib/pic16
2091         * configure: regenerated from configure.in
2092         * device/lib/Makefile.in: create $(PORT)/bin directory
2093
2094 2005-08-03 Raphael Neider <rneider AT web.de>
2095
2096         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
2097           to get/set values via pointers
2098         * (genUnpackBits,genPackBits): changed detection of
2099           ptr->bitfield vs. sym.bitfield, fixed access via generic
2100           pointers, removed dead (wrong) code for multibyte bitfields
2101         * (genNearPointerGet, genGenPointerGet): removed useless code,
2102           fixed bitfield detection, fixes #1250594
2103         * (genNearPointerSet): removed useless code
2104         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
2105           and introduced macro pic16_emitpcode that conditionally emits
2106           the origin of the following pCode (useful for debugging SDCC)
2107         * src/pic16/pcode.c: changed (and disabled) some debug outputs
2108         * (createDefmap): fixed handling of LFSR for --optimize-df
2109
2110 2005-08-02 Borut Razem <borut.razem AT siol.net>
2111
2112         * device/lib/Makefile.in: pic16 libraries build enabled since
2113           gputils-0.13.2 are now localy installed at sourceforge's compile farm
2114
2115 2005-08-02 Raphael Neider <rneider AT web.de>
2116
2117         * src/pic16/gen.c (genPackBits): removed deprecated warning
2118         * (genGenPointerSet): fixed bitfield detection
2119
2120 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2121
2122         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
2123
2124 2005-07-31 Raphael Neider <rneider AT web.de>
2125
2126         * device/lib/pic16/libdev/pic18f458.c,
2127           device/include/pic16/pic18f458.h: added missing T0CONbits
2128
2129 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
2130
2131         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
2132
2133 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
2134
2135         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
2136
2137 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2138
2139         * device/include/mcs51/at89c51ed2.h: added.
2140
2141 2005-07-23 Raphael Neider <rneider AT web.de>
2142
2143         * src/pic/gen.h: added emitpcode macro for debugging
2144         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
2145           and replace by macro adding debug information on demand
2146         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
2147         * (gencjne): tried to fix; replaced with correct (slower) code
2148         * (gen{Unp,P}ackBits): fixed single bit access
2149         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
2150         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
2151           previous instruction
2152         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
2153           register has to be handled with care (forbidding movement
2154           of assignments/uses, removing assignments completely, ...)
2155         * (pCodeOptime2pCodes): make use of regIsSpecial
2156         * added lots of debugging output (commented out)
2157         * src/pic/rallloc.c (deassignLRs): prevent operand registers
2158           from being reused as result UNLESS it is known to work
2159
2160 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2161
2162         * support/Util/dbuf.h: include <stddef.h> for size_t
2163         * .version: changed to version 2.5.2
2164
2165 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2166
2167         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
2168
2169 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2170
2171         * src/hc08/gen.c (genMinus): fixed bug #1241835,
2172           (genModOneByte): removed needless psha/pula
2173
2174 2005-07-22 Raphael Neider <rneider AT web.de>
2175
2176         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
2177           have PIC14 handled like PIC16, fixes broken pic14 linker calls
2178         * src/pic/gen.c (resolveIfx): do not "invent" labels
2179         * (genSkipc): changed to positive logic
2180         * (genSkipCond): removed as no longer needed
2181         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
2182           backport from PIC16
2183         * (genLeftShift): check operands are in different registers
2184         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
2185           INCF does not update CARRY...
2186         * src/pic/main.c: fixed _linkCmd
2187         * src/pic/pcode.c (unlinkpCode): added inactive code
2188         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
2189           alive (do not assign result and operand overlapping registers)
2190
2191 2005-07-22 Raphael Neider <rneider AT web.de>
2192
2193         * src/pic/device.c (dump_sfr): replaced register declaration with
2194           call to emitSymbolToFile() to avoid duplicate symbols
2195         * (assignRelocatableRegisters): do not declare external symbols
2196         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
2197           right (take size of type, not etype)
2198         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
2199         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
2200         * (packRegsForAccUse): disabled assignment of WREG as
2201           the result reg to prevent occurence of just fixed #1235003,
2202           fixes #1242954
2203         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
2204           symbols (avoids duplicate symbols in .asm file)
2205         * (pic14emitRegularMap): use emitSymbolToFile()
2206         * src/pic/gen.c (aopOp): fixed spillLocation handling
2207         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
2208         * (genDataPointerSet): removed unneccessary variables/output
2209
2210 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
2211
2212         * as/mcs51/lkarea.c: enlarged codemap for banked memory
2213         * device/lib/mcs51/crtbank.asm: added # to 0x0F
2214
2215 2005-07-21 Raphael Neider <rneider AT web.de>
2216
2217         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
2218           architecture cannot handle them efficiently, fixes bug #1235003
2219         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
2220           check for empty sets before using them (fixes bug #1232190)
2221
2222 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
2223
2224         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
2225           (lnksect2): generate warnings for memory overlap
2226         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
2227           constseg to set the name of these segments so you can instruct the linker
2228           to place them in banks
2229         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
2230         * src/SDCCglobl.h: added MODEL_HUGE to enum,
2231           added code_seg and const_seg to options
2232         * src/SDCCglue.c (emitMaps): use options.const_seg,
2233           (createInterruptVect): put interrupt vectors in segment HOME,
2234           (glue): put HOME before static segment and put the main glue in HOME,
2235           (glue): use options.code_seg
2236         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
2237         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
2238           these segments so you can instruct the linker to place them in banks
2239           (linkEdit): use code_loc for HOME segment which should be the first
2240           segment in code memory now
2241         * src/SDCCmem.c: fixed more stuff like bug 1238386
2242         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
2243           (changePointer): don't change function pointers to code pointers for
2244           banked functions,
2245           (compareType): added exceptional check for banked function pointers
2246         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
2247         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
2248           after static in code memory
2249         * src/mcs51/gen.c: added aopLiteralLong prototype,
2250           (aopForSym): use getSize for functions,
2251           (genCall): generate banked calls over one trampoline __sdcc_banked_call
2252           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
2253           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
2254           the segment,
2255           (genPcall): use call for literal function pointers and generate banked
2256           calls over the one trampoline so there's only one place for the user to
2257           modify according to his/hers hardware,
2258           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
2259           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
2260         * src/mcs51/main.c: added keyword banked,
2261           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
2262         * support/Util/SDCCerr.c,
2263         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
2264           needed for passing the bank and address to the trampoline
2265         * device/lib/mcs51/crtbank.asm: added for bankswitching
2266         * device/lib/mcs51/Makefile: added crtbank
2267
2268 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2269
2270         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
2271           for fields at offset 0 of a struct or union as reported
2272           on 2005-07-07 in the developer mailing list.
2273
2274 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2275
2276         * src/SDCCmem.c: fixed bug 1238386
2277
2278 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2279
2280         * src/mcs51/peeph.def: added labelrefcounting for peepholes
2281           (patch #1144962), added peephole 300, enabled 259.x
2282         * doc/sdccman.lyx: removed screenshot and provided link instead
2283
2284 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2285
2286         * doc/sdccman.lyx: added section about debugging with ddd
2287         * doc/figures/ddd_example.eps: screenshot of debugging session
2288
2289 2005-07-04 Raphael Neider <rneider AT web.de>
2290
2291         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
2292           like CODE pointers, fixes #1115683
2293         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
2294           call, fixes bugs #1232211, #1228110,
2295           fixed wrong casts to pCodeFlow from pCodeInstructions
2296
2297 2005-07-04 Raphael Neider <rneider AT web.de>
2298
2299         * src/pic/gen.c (popGet): changed assert to allow for
2300           bit operands
2301         * (popGetAddr): changed signature to provide
2302           an additional index, patched all call sites
2303         * (genCmpEq): handle literal-like operands correctly
2304         * (genAddrOf): added sanity checks on __code/__data pointers
2305         * (genAssign): added handling of symbols from __code section
2306         * (gencjne): do not generate code for comparisons whose result
2307           is neither stored nor used, fixes bug #1171114
2308         * (AccLsh, AccRsh): operate on operand instead of WREG
2309         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
2310           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
2311           by known count
2312         * rewrote complete shift-by-literal logic, commented unused
2313           functions out
2314         * (genConstPointerGet): get multiple bytes (if result size > 1),
2315           fixed handling of non-immediate addresses
2316         * (genPointerGet): handle CODE pointers like CONST pointers
2317         * (genpic14Code): insert C-SRC lines as Cource-pCodes
2318         * ({aop,op}_isLitLike): NEW, single place to decide whether an
2319           operand is to be treated as a literal or not
2320         * (mov2w,genPcall,genCmpEq),
2321           src/pic/genarith.c: use aop_isLitLike() to decide between
2322           literal/register contents
2323         * (addSign): added missing offset
2324         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
2325           only emit comment in debug-mode,
2326           use {aop,op}_isLitLike throughout the file
2327         * src/pic/glue.c: fix initializers for pointers (work in progress)
2328         * src/pic/pcode.c (get_op): honor index on _const symbols
2329         * ({reset,dump}pCodeStatistics): NEW, estimate code size
2330         * (dumppBlock): added pCode size estimation
2331         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
2332           check for IS_SYMOP before OP_SYMBOL'ing
2333         * fixed indentation, compacted switch-statements
2334         * (allocReg): find free register and allocate it instead of
2335           allocating new registers all the time
2336         * (deassignLRs): prevent POINTER_GET's from being assigned the same
2337           registers as its operands (necessary only for multibyte GETs)
2338
2339 2005-07-01 Raphael Neider <rneider AT web.de>
2340
2341         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
2342           debugging .asm-output macros FENTRY + FEXIT
2343         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
2344           way... I wonder...
2345         * (emitpComment): NEW, printf to pCode
2346         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
2347           offset handling
2348         * (popGetAddr): NEW, variant of popGet to access an immediates
2349           high(er) bytes instead of the n'th byte of memory they reference,
2350           replaced popGet with popGetAddr where neccessary
2351         * (genDataPointerGet): reactivated and fixed implementation
2352         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
2353           accesses
2354         * (genDataPointerSet): fixed multibyte assignments
2355         * (genpic14Code): fixed --i-code-in-asm handling
2356         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
2357         * (genPlus): fixed index-out-of-bounds error
2358         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
2359         * src/pic/ralloc.c: added debugging output macro FENTRY2
2360         * (spillThis): fixed indentation, enbraced for-body for clarity
2361         * (rematStr): commented out as now unused
2362         * (regTypeNum): commented out special spill case (overwrites
2363           arbitrary values)
2364         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
2365
2366 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
2367
2368         * doc/sdccman.lyx: documented sfr16/sfr32,
2369           added example for using storage class with function pointers
2370         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
2371
2372 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
2373
2374         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
2375         * device/lib/_itoa.c,
2376         * device/lib/_ltoa.c: optimized codesize
2377         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
2378           but don't know how to suppress the double warning.
2379         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
2380         * support/Util/SDCCerr.c,
2381         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
2382
2383 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
2384
2385         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
2386           fixed old K&R prototypes
2387         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
2388         * device/lib/_gptrget.c,
2389         * device/lib/_gptrgetc.c,
2390         * device/lib/_gptrput.c: changed versions for new memory indicator values,
2391           also new versions for small generic pointers and banked generic pointers
2392         * src/port.h: added const_name
2393         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
2394         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
2395         * src/SDCCcse.c (findPrevIc): check all associative operators
2396         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
2397         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
2398         * src/SDCCmem.c: updated comments,
2399           set far-space to 0 for pdata, results in optimized code
2400         * src/SDCCmem.h: added macro CONST_NAME
2401         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
2402           moving the info into the highest bits, see also gptrget/gptrput
2403         * src/src.dsp: added sdcc.ico to project files
2404         * src/avr/gen.c (genCast): fixed bug 0x%d
2405         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
2406         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
2407           relation between ptr_type and DCL_TYPE,
2408           (genCast): fixed bug 0x%d
2409         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
2410           (CODE)" for const_name
2411         * src/hc08/gen.c (genCast): fixed bug 0x%d
2412         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
2413           (hc08_port): added "CONST (CODE)" for const_name
2414         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
2415           (aopForRemat, adjustArithmeticResult): disconnected direct relation
2416           between ptr_type and DCL_TYPE,
2417           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
2418           operand* and took AOP() inside function so sfr-ness can be checked,
2419           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
2420           new prototype,
2421           (genFunction, genEndFunction): optimized stack setup,
2422           (genMinus): optimized for literals with ending zeroes (in bytes),
2423           (genCast): fixed bug 0x%d
2424         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
2425           (mcs51_port): added "CONST (CODE)" for const_name
2426         * src/mcs51/peeph.def: made rule 226 more generic
2427         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
2428         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
2429         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
2430         * src/z80/main.c (z80_port): added NULL for const_name,
2431           (gbz80_port): added NULL for const_name
2432         * support/regression/tests/bug663539.c,
2433         * support/regression/tests/sfr16.c: new tests
2434
2435 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2436
2437         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
2438
2439 2005-06-24 Raphael Neider <rneider AT web.de>
2440
2441         * device/lib/pic16/libdev/pic18f[68][567]20.c:
2442           corrected typos...
2443         * device/include/pic16/signal.h: added USBIF
2444           and SIG_USB
2445
2446 2005-06-24 Raphael Neider <rneider AT web.de>
2447
2448         * device/lib/pic16/libdev/pic18f2455.c,
2449           device/include/pic16/pic18f2455.h: NEW
2450         * device/include/pic16/pic18fregs.h,
2451           device/lib/pic16/pics.all,
2452           src/pic16/device.c: added 18f2455
2453         * device/lib/pic16/libdev/pic18f[68][567]20.c,
2454           device/include/pic16/{pic18f[68][567].h,usart.h}:
2455           replaced MULTIPLE_USARTS define with more relaible
2456           compatibility sfrs (for USART access)
2457
2458 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
2459
2460         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
2461           and the output asm file line is printed on two lines.
2462
2463 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2464
2465         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
2466           BGT, BLE, BHI, and BLS instructions
2467         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
2468           genCmpEq): removed
2469         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
2470           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
2471           fixes bug #1216342
2472         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
2473
2474 2005-06-15 Raphael Neider <rneider AT web.de>
2475
2476         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
2477         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
2478         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
2479           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
2480           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
2481
2482 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2483
2484         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
2485           Marcel Telka in bug #1215704
2486
2487 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
2488
2489         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
2490           located in shared memory bank.
2491
2492 2005-05-31 Raphael Neider <rneider AT web.de>
2493
2494         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
2495           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
2496           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
2497
2498 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
2499
2500         * device/lib/_strncpy.c: fixed the fix
2501
2502 2005-05-26 Raphael Neider <rneider AT web.de>
2503
2504         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
2505           initializers with \0, bug #1208187
2506         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
2507           intializers with \0, bug #1208187
2508
2509 2005-05-26 Raphael Neider <rneider AT web.de>
2510
2511         * src/pic16/glue.c (pic16_printIvalChar): fixed string
2512           initializers with \0, bug #1208187
2513         * src/pic16/main.c (_process_pragma): added sanity checks
2514           for stack position and size, emit warnings when appropriate
2515
2516 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2517
2518         * device/lib/_strncpy.c: fixed not filling with \0
2519
2520 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2521
2522         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
2523           createFunction),
2524         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
2525           compound_statement),
2526         * src/SDCCsymt.h,
2527         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
2528
2529 2005-05-24 Raphael Neider <rneider AT web.de>
2530
2531         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
2532
2533 2005-05-24 Raphael Neider <rneider AT web.de>
2534
2535         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
2536           TRISE definitions, closes bug #1162453
2537
2538 2005-05-22 Raphael Neider <rneider AT web.de>
2539
2540         * src/pic16/main.c (_process_pragma): check for missing
2541           arguments to pragmas code and udata
2542         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
2543           consistency fixes to match other headers (thanks to Jim Paris)
2544         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
2545
2546 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2547
2548         * src/SDCCicode.c (isOperandEqual): fixed missing ;
2549
2550 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
2551
2552         * support/regression/tests/bug1198642.c: new test
2553         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
2554         * src/SDCCcse.c (findPrevIc): added comment, please have a look
2555         * support/scripts/resource.h,
2556         * support/scripts/resource.rc,
2557         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
2558         * support/scripts/sdcc.ico: added 32x32 icon
2559
2560 2005-05-18 Raphael Neider <rneider AT web.de>
2561
2562         * device/lib/pic16/libdev/pic18f*.c,
2563         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
2564           keywords to "__sfr" and "__at (X)"
2565         * device/include/pic16/pic18fregs.h: added pic18f4520
2566         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
2567           #1203088 (MPLAB compatibility)
2568
2569 2005-05-17 Raphael Neider <rneider AT web.de>
2570
2571         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
2572         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
2573         * device/lib/pic16/pics.all: added new devices
2574         * src/pic16/device.c: added support for pic18f4520
2575
2576 2005-05-16 Raphael Neider <rneider AT web.de>
2577         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
2578         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
2579         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
2580           convenience function for bit access
2581
2582 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2583
2584         * device/lib/printf_large.c: fixed bug 1193299
2585         * support/regression/tests/bug1057979.c: added test %3.3s
2586
2587 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2588
2589         * device/include/mcs51/8051.h,
2590         * device/include/mcs51/8052.h: made parseable with lint
2591         * device/include/mcs51/lint.h: added include file for (sp)lint
2592         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
2593         * doc/cdbfileformat.lyx,
2594         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
2595
2596 2005-05-14 Raphael Neider <rneider AT web.de>
2597
2598         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
2599         * device/lib/pic16/libc/stdlib/itoa.c (new)
2600         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
2601         * device/lib/pic16/libio/Makefile: exclude subdir according to
2602           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
2603         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
2604         * src/pic16/gen.c (genFunction): prevent annoying warning
2605         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
2606           nameclashes on BeOS
2607         * support/cpp2/cppmain.c (cpp_output_string): new
2608         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
2609           fixes bug 1116802
2610
2611 2005-05-13 Borut Razem <borut.razem AT siol.net>
2612
2613         * src/SDCCmain.c (linkEdit): fixed bug 1195202
2614
2615 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2616
2617         * .version: changed to version 2.5.1; back to bleeding edge development
2618
2619 2005-05-11 Borut Razem <borut.razem AT siol.net>
2620
2621         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
2622           generate PDF version 1.3 documents
2623
2624 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2625
2626         * .version: changed to version 2.5.0
2627
2628 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2629
2630         * doc/sdccman.lyx: updated weblinks, index and smaller updates
2631
2632 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2633
2634         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
2635         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
2636         well as many smaller updates.
2637         * .version: changed to version 2.5.0-pre1
2638
2639 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2640
2641         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
2642
2643 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2644
2645         * support/regression/tests/bug1185672.c: added
2646         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
2647           bug 1185672
2648         * src/mcs51/gen.c (genCall): added comments, made it look safer
2649         * src/mcs51/gen.c (genEndFunction): simplified
2650
2651 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2652
2653         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
2654
2655 2005-04-14 Borut Razem <borut.razem AT siol.net>
2656
2657         * fixed bug 1045046 - SIGSEGV with really simple code?:
2658           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
2659           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
2660
2661 2005-04-14 Borut Razem <borut.razem AT siol.net>
2662
2663         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
2664           src/pic16/device.h: temporarily disabled experimental #inline pragma
2665           for 2.5.0 release
2666
2667 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
2668
2669         * device/include/z80/stdio.h,
2670         * device/include/z80/string.h: removed these highly incomplete files so
2671           SDCC can use the default ones in device/include/
2672
2673 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2674
2675         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
2676         gcc warning.
2677         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
2678         fix sdcpp warnings.
2679
2680 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2681
2682         * device/include/malloc.h: removed redundant __reentrant prototypes
2683         * device/lib/_mullong.c: added working xstack variant in asm (C version
2684           doesn't pass regression tests)
2685         * device/lib/bpx.c: used __data and made bpx char for mcs51
2686         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
2687           (createFunction): fixed bug with xstackPtr
2688         * src/SDCCcse.c: corrected comments
2689         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
2690           (killDeadCode, eBBlockFromiCode): removed unused code
2691         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
2692           corrected comments
2693         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
2694           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
2695           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
2696           (genModOneByte): fixed warning in MSVC
2697         * src/mcs51/main.c (): added comments
2698         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
2699
2700 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2701
2702         * src/SDCCmain.c (linkEdit): oops, changed one line too many
2703
2704 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
2705
2706         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
2707
2708 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
2709
2710         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
2711         characters arrays of larger size than the declared one.
2712
2713 2005-04-10 Borut Razem <borut.razem AT siol.net>
2714
2715         * src/pic/gen.c (genInline),
2716           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
2717           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
2718           (findNextInstruction), (findPrevInstruction),
2719           (findInstructionUsingLabel),
2720           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
2721         * src/pic/pcode.c (findLabel): added missing '\n'
2722         * src/src.dsp: added SDCCdwarf2.c to the project
2723
2724 2005-04-09 Borut Razem <borut.razem AT siol.net>
2725
2726         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
2727
2728 2005-04-08 Raphael Neider <rneider AT web.de>
2729
2730         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
2731           into the chain after a given one) and mergeDefmapSymbols (combine
2732           defmap entries for each symbol per pcode)
2733         * (createDefmap): have defmap entries merged in the end
2734         * (defmapReplaceSymRef): split defmap entries covering two accesses to
2735           a symbol before replacing one access type's symbol, merge symbols in
2736           the end (replacement symbol might already have an entry)
2737         * (assignValnums): keep reference to written WREG intact
2738
2739 2005-04-08 Raphael Neider <rneider AT web.de>
2740
2741         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
2742           Alpha)
2743
2744 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
2745
2746         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
2747         bytes
2748
2749 2005-04-07 Raphael Neider <rneider AT web.de>
2750
2751         * device/include/pic16/usart.h: added compatibility defines for
2752           devices with more than one USART
2753         * device/include/pic16/pic18f[68][567]20.h: activated above defines
2754
2755 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2756
2757         * device/lib/Makefile.in: updated for port specific include
2758
2759 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2760
2761         * support/regression/ports/mcs51/spec.mk: added mcs51 include
2762
2763 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2764
2765         * device/include/8051.h,
2766         * device/include/8052.h,
2767         * device/include/at89S8252.h,
2768         * device/include/at89c55.h,
2769         * device/include/at89x051.h,
2770         * device/include/at89x51.h,
2771         * device/include/at89x52.h,
2772         * device/include/mcs51reg.h,
2773         * device/include/reg51.h,
2774         * device/include/reg764.h,
2775         * device/include/regc515c.h,
2776         * device/include/sab80515.h: (re)moved these 12 files
2777         * device/include/mcs51/8051.h,
2778         * device/include/mcs51/8052.h,
2779         * device/include/mcs51/at89S8252.h,
2780         * device/include/mcs51/at89c55.h,
2781         * device/include/mcs51/at89x051.h,
2782         * device/include/mcs51/at89x51.h,
2783         * device/include/mcs51/at89x52.h,
2784         * device/include/mcs51/mcs51reg.h,
2785         * device/include/mcs51/reg51.h,
2786         * device/include/mcs51/reg764.h,
2787         * device/include/mcs51/regc515c.h,
2788         * device/include/mcs51/sab80515.h: and added them here
2789
2790 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2791
2792         * device/include/stdarg.h: changed SDCC specific keywords to double
2793           underlined form.
2794         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
2795           mcs51 and ds390.
2796         * device/include/hc08/mc68hc908gp32.h,
2797         * device/include/hc08/mc68hc908jb8.h,
2798         * device/include/hc08/mc68hc908jkjl.h,
2799         * device/include/hc08/mc68hc908qy.h: fixed comments
2800         * device/include/mcs51/README: updated
2801         * device/include/mcs51/c8051f120.h: added PINRSF
2802         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
2803         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
2804           amidst code. Also inline is not supported.
2805
2806 2005-04-06 Raphael Neider <rneider AT web.de>
2807
2808         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
2809         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
2810           callers stack/frame pointers
2811
2812 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2813
2814         * device/include/pic16/usart.h: added, missing in previous commit,
2815         * device/include/pic16/adc.h: fixed typo,
2816         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
2817         commit,
2818         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
2819         <p18fxxx.inc>
2820         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
2821         uninitialized because a bug appears with gplink
2822         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
2823         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
2824         complains for unrecognised option
2825
2826 2005-04-05 Raphael Neider <rneider AT web.de>
2827
2828         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
2829           structs as well (using memcpy)
2830         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
2831           on ISRs (GOTO has no label)
2832         * src/pic16/device.h: added OF_OPTIMIZE_DF
2833         * src/pic16/main.c: added compiler switch --optimize-df to enable the
2834           new data flow analysis/optimization
2835         * src/pic16/pcode.c: added (prototypes for and implementation of)
2836           dataflow analysis functions, fixed pCodeInstructions' inCond and
2837           outCond values, made RCALL a branch instruction
2838         * (pic16_unlinkpCode): keep C line if possible
2839         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
2840           C line moved if possible
2841         * (pic16_getRegFrompCodeOp): NEW, improved version of...
2842         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
2843           to use new pic16_getRegFrompCodeOp (works for more SFRs)
2844         * (pic16_BuildFlow): fixed skip instructions with label (did not start
2845           new flow)
2846         * (pic16_getJumptabpCode): NEW, needed in...
2847         * (LinkFlow): fixed handling of jumptables, calls and conditional
2848           branches
2849         * (pic16_InsertCommentAfter): NEW
2850         * (pic16_pCodeReplace): made verbose and flow preserving
2851         * (AnalyzeFlow): added call to data flow analysis
2852         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
2853         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
2854         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
2855
2856 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2857
2858         * src/SDCCast.c (decorateType): fixed bug #1105626
2859
2860 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
2861
2862         * device/include/asm/pic16/features.h,
2863         * pic18f*.h headers,
2864         * device/include/pic16/adc.h,
2865         * device/include/pic16/delay.h,
2866         * device/include/pic16/i2c.h,
2867         * device/include/pic16/malloc.h,
2868         * device/include/pic16/stdio.h,
2869         * device/include/pic16/stdlib.h,
2870         * device/include/pic16/string.h,
2871         * device/lib/pic16/libc/stdio/printf_tiny.c,
2872         * device/lib/pic16/libc/stdio/printf_small.c,
2873         * device/lib/pic16/libc/stdio/strmgpsim.c,
2874         * device/lib/pic16/libc/stdio/strmmssp.c,
2875         * device/lib/pic16/libc/stdio/strmusart.c,
2876         * device/lib/pic16/libc/stdio/vfprintf.c,
2877         * device/lib/pic16/libc/stdlib/ltoa.c,
2878         * device/lib/pic16/libc/stdlib/putchar.c,
2879         * device/lib/pic16/libc/stdlib/x_ftoa.c,
2880         * device/lib/pic16/libc/stdlib/memchrpgm.c,
2881         * device/lib/pic16/libc/stdlib/memchrram.c,
2882         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
2883         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
2884         * device/lib/pic16/libio/adc/adcbusy.c,
2885         * device/lib/pic16/libio/adc/adcread.c,
2886         * device/lib/pic16/libio/adc/adcsetch.c,
2887         * device/lib/pic16/libio/usart/ubaud.c,
2888         * device/lib/pic16/libio/usart/ubusy.c,
2889         * device/lib/pic16/libio/usart/udrdy.c,
2890         * device/lib/pic16/libio/usart/uopen.c,
2891         * device/lib/pic16/libio/usart/uputc.c,
2892         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
2893         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
2894         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
2895         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
2896         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
2897         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
2898         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
2899         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
2900         specific keywords to double underlined form,
2901         * device/lib/pic16/libc/Makefile.rules,
2902         * device/lib/pic16/libsdcc/Makefile.rules,
2903         * device/lib/pic16/libm/Makefile,
2904         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
2905         to compile with C standard set in Makefile.common
2906         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
2907         rand.c and crc.c in compilation process,
2908         * device/lib/pic16/libsdcc/int/divuint.c,
2909         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
2910         `c' from signed to unsigned,
2911         * device/lib/pic16/startup/crt0.c,
2912         * device/lib/pic16/startup/crt0i.c,
2913         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
2914         keywords to double underlined form, bug fixes in _do_cinit function
2915         which prevented the correct initialization of the .idata segment,
2916         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
2917         core to enter a infinite loop
2918         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
2919
2920 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2921
2922         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
2923
2924 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2925
2926         * device/include/Makefile.in: add support for hc08 subdirectory
2927         * device/include/hc08/: new subdirectory
2928         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
2929         Lucas Loizaga, thanks!
2930         * device/include/hc08/mc68hc908qy.h,
2931         * device/include/hc08/mc68hc908gp32.h,
2932         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
2933         their own directory. Changed internal macro names to use the compiler
2934         reserved namespace. Changed SDCC specific keywords to double
2935         underlined form.
2936         * device/include/math.h,
2937         * device/include/malloc.h,
2938         * device/include/stdarg.h,
2939         * device/include/stdbool.h
2940         * device/include/string.h,
2941         * device/include/tinibios.h,
2942         * device/include/ds400rom.h,
2943         * device/include/8051.h,
2944         * device/include/8052.h,
2945         * device/include/80c51xa.h,
2946         * device/include/at89c55.h,
2947         * device/include/at89S8252.h,
2948         * device/include/at89x51.h,
2949         * device/include/at89x52.h,
2950         * device/include/ds80c390.h,
2951         * device/include/reg764.h,
2952         * device/include/regc515c.h,
2953         * device/include/sab80515.h,
2954         * device/include/mcs51/c8051f000.h,
2955         * device/include/mcs51/c8051f018.h,
2956         * device/include/mcs51/c8051f020.h,
2957         * device/include/mcs51/c8051f040.h,
2958         * device/include/mcs51/c8051f060.h,
2959         * device/include/mcs51/c8051f120.h,
2960         * device/include/mcs51/c8051f300.h,
2961         * device/include/mcs51/c8051f310.h,
2962         * device/include/mcs51/c8051f320.h,
2963         * device/include/mcs51/c8051f330.h,
2964         * device/include/mcs51/c8051f350.h,
2965         * device/include/z180.h: Changed SDCC specific keywords to double
2966         underlined form.
2967
2968 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
2969
2970         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
2971         18F4455,
2972         * (pic16_assignConfigWordValue): disable testing of configuration
2973         register value with config mask,
2974         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
2975         function with port->fun_prefix,
2976         * (genFunction): when generating a naked interrupt function never
2977         create an absolute segment placed in interrupt vector address, place
2978         the actual interrupt function at IVA instead, when an interrupt
2979         function is generated with unspecified interrupt then do not create
2980         the absolute section,
2981         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
2982         code for generating a call to generic pointer get/put function with
2983         a call to function pic16_callGenericPointer(),
2984         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
2985         the call to the generic pointer get/put functions with prefixing the
2986         function name with port->fun_prefix,
2987         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
2988         * src/pic16/main.c (_process_pragma): prefix function with
2989         port->fun_prefix,
2990         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
2991         calling assembler, old 18Fxxxx macro is deprecated,
2992         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
2993         PC_ASMDIR in while condition,
2994         * (findInstruction): add PC_ASMDIR in while condition,
2995         * (buildCallTree): prefix main with port->fun_prefix,
2996         * (pic16_pCode2str): fixed bug that didn't emit the memory access
2997         identifier for variable with banked access in instructions BTFSS,
2998         BTFSC, BCF, BSF, BTG
2999         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
3000         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
3001         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
3002         perform optimization when enviroment variable NO_REG_OPT is set,
3003         * (insideLRBlock): NEW, return 1 if register is inside an
3004         INF_LOCALREGS block,
3005         * (RemoveRegFromLRBlock): remove a register that is completely
3006         eliminated by register optimization, but it is still left in local
3007         register store/restore in/from stack block,
3008         * (Remove2pcodes): after removing register, check to see if it
3009         should be removed from local register store/restore in/from stack
3010         block,
3011         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
3012         DUMMY_READ_VOLATILE,
3013
3014         * device/include/pic16/adc.h: minor prototype modifications and
3015         update,
3016         * device/include/pic16/malloc.h: added GPL notice various
3017         modifications,
3018         * device/include/pic16/stdint.h: NEW, standard header for ints
3019         * device/include/pic16/delay.h: NEW, header for delay functions,
3020         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
3021         delay1mtcy,
3022         * device/include/pic16/signal.h: NEW, header providing helper macros
3023         for implementing signal handlers,
3024         * device/include/pic16/stdio.h: added prototypes for functions,
3025         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
3026         prototypes for stdin and stdout, added macro PUTCHAR to
3027         automatically implement putchar function prototype,
3028         * device/include/pic16/usart.h: modified and updated USART library,
3029         * device/lib/pic16/libio/adc/,
3030         * device/lib/pic16/libio/i2c: some modifications to improve library
3031         performance,
3032         * device/lib/pic16/libc/stdio/: modifications for the new printf*
3033         family of functions,
3034         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
3035         family of functions and other sources,
3036         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
3037         of the PIC18Fxx[28] devices,
3038         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
3039         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
3040         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
3041         _do_cinit function, because the previous failed when local variables
3042         where not placed in the same memory bank,
3043         * device/lib/pic16/libsdcc/char/: various modifications to improve
3044         library performance,
3045         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
3046         information on the new functions of the c library and more...
3047
3048 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3049
3050         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
3051
3052 2005-03-26 Raphael Neider <rneider AT web.de>
3053
3054         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
3055           if condition == CARRY)
3056         * (genCmp): adapted to new genSkipc semantics
3057         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
3058           on rIfx (genCmp was broken)
3059
3060 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3061
3062         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
3063         * src/z80/main.c (_keywords[]),
3064         * src/SDCCglobal.h (struct options),
3065         * src/SDCC.y,
3066         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
3067         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
3068         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
3069         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
3070         always available in leading double underscore form. The C99 support is
3071         mostly missing, but it's a start.
3072         * support/regression/tests/bug-227710.c: fixed nonconforming use of
3073         reserved identifier "__data".
3074
3075 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3076
3077         * src/mcs51/peeph.def: fixed bug 1170013
3078
3079 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
3080
3081         * device/include/mcs51reg.h: fixed bug 842007
3082
3083 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3084
3085         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
3086         last time.
3087
3088 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3089
3090         * src/port.h (struct PORT),
3091         * src/avr/ralloc.c (avr_assignRegisters),
3092         * src/avr/main.c,
3093         * src/ds390/ralloc.c (ds390_assignRegisters),
3094         * src/ds390/main.c,
3095         * src/hc08/ralloc.c (hc08_assignRegisters),
3096         * src/hc08/main.c,
3097         * src/mcs51/ralloc.c (mcs51_assignRegisters),
3098         * src/mcs51/main.c,
3099         * src/pic/ralloc.c (pic14_assignRegisters),
3100         * src/pic/main.c,
3101         * src/pic16/ralloc.c (pic16_assignRegisters),
3102         * src/pic16/main.c,
3103         * src/xa51/ralloc.c (xa51_assignRegisters),
3104         * src/xa51/main.c,
3105         * src/z80/ralloc.c (z80_assignRegisters),
3106         * src/z80/ralloc.h,
3107         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
3108         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
3109         * src/SDCCcse.h,
3110         * src/SDCCdflow.c (computeDataFlow),
3111         * src/SDCCdflow.h,
3112         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
3113         * src/SDCCloop.h,
3114         * src/SDCCcflow.c (*),
3115         * src/SDCCcflow.h,
3116         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
3117         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
3118         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
3119         immedDom() returning wrong block; probably fixes bug #1160833)
3120
3121 2005-03-20 Borut Razem <borut.razem AT siol.net>
3122
3123         * support/scripts/inc2h.pl: WIN32 port
3124
3125 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
3126
3127         * device/lib/makefile.in: added abs.c and labs.c
3128
3129 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3130
3131         * device/include/stdint.h: added
3132         * device/lib/abs.c: added
3133         * device/lib/labs.c: added
3134         * device/include/stdlib.h: added abs() and labs() prototypes
3135         * device/lib/libsdcc.lib: added abs and labs
3136         * device/include/float.h,
3137         * device/lib/_fsmul.c,
3138         * device/lib/printf_fast.c,
3139         * device/lib/printf_tiny.c: updated comments
3140
3141 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3142
3143         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
3144         bug #1164313
3145
3146 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3147
3148         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
3149         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
3150
3151 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
3152
3153         * device/lib/printf_large.c: removed inline assembly for portability and
3154           readability. Use printf_fast if speed or size are more important.
3155         * src/pic16/gen.c: removed conditions around use of DEBUGpc
3156         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
3157
3158 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
3159
3160         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
3161         prevent compiler warning
3162
3163 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3164
3165         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
3166         moved to level 0 and declared as static. Also they are explicit
3167         placed in access bank. This was necessery because some times they
3168         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
3169         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
3170         optimizations. Currently only compare to unsigned char is implemented,
3171         * src/pic16/gen.c: added fReturnIdx array,
3172         * (struct resolvedIfx) is moved to gen.h and made public,
3173         * (struct _G): added sregsAlloc and sregsAllocSet fields,
3174         * (aopForSym): added an optimization to directly store in stack of
3175         the operand of a SEND iCode,
3176         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
3177         but as registers instead (AOP_REG) using the fReturnIdx array,
3178         * (pic16_freeAsmop): remove the freed register from the
3179         _G.sregsAlloc field,
3180         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
3181         a compare of 'WREG',
3182         * (pic16_popGetTempRegCond): changed function prototype, now
3183         function takes also a bitVector argument v which holds the current
3184         set of registers that are allocated for stack access by aopForSym,
3185         registers allocated in aopForSym for accessing stack symbols are not
3186         any more part of the functions usedRegs field,
3187         * (genCall): some times aopOp is called for a stack variable to be
3188         send, aopForSym might perform the push, if this is true make sure
3189         that genCall doesn't push the variable twice by testing _G.resDirect,
3190         * (genFunction): changed testing for unspecified interrupt number
3191         from 256 to INTNO_UNSPEC,
3192         * modified selection scheme of frame pointer generation. Previously
3193         if function did use local registers a frame pointer was generated,
3194         now a frame pointer is generated only if function has arguments
3195         (that need PLUSW2 register access), or has stack arguments, or the
3196         compiler is not instructed to omit the frame pointer,
3197         * (genEndFunction): before restoring local registers that were saved
3198         in the function preamble, also restore the registers that *might*
3199         have been allocated for stack access,
3200         * (genRet): removed some old comments,
3201         * (genCmp, the active (RN's) version): added a call to the
3202         pic16_genCmp_special function to perform the compare with a more
3203         robust and optimized way,
3204         * (genInline): a feature has been added in inline code generation,
3205         which allows a wildcard variable substitution when writing inline
3206         assembly. Code is incomplete and experimental therefore undocumented,
3207         * (genCast): changed order of aopOp for result and right to allow
3208         aopForSym to directly load the result if possible,
3209         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
3210         perform an optimized compare on some selected special occasions,
3211         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
3212         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
3213         generate an IVT any more,
3214         * src/pic16/main.c (pic16_optionsTable): added command line option
3215         --optimize-cmp,
3216         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
3217         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
3218         macros,
3219         * src/pic16/NOTES: Raphael Neider added in list of active developers
3220         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
3221         jumptable_end to prevent bug #,
3222         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
3223         inCond and outCond fields,
3224         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
3225         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
3226         turn off register spilling,
3227         * (packRegsForOneUse): synced with other ports' versions although it
3228         is not used currently,
3229         * (pic16_packRegisters): added an optimization while reading
3230         structure bitfields, some registers may be saved (malloc code is
3231         decreased by 80 bytes)
3232
3233 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
3234
3235         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
3236         left is a bitfield, if yes, then don't optimize assignment. Perhaps
3237         this can be optimized more?
3238
3239 2005-03-10 Raphael Neider <rneider AT web.de>
3240
3241         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
3242           genNearPointerGet): (hopefully) fixed access to bitfields via
3243           pointers (p->bitN = x; and x = p->bitN; failed)
3244
3245 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
3246
3247         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
3248
3249 2005-03-09 Raphael Neider <rneider AT web.de>
3250
3251         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
3252
3253 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
3254
3255         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
3256         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
3257           (regTypeNum): set REG_BIT type if necessary
3258         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
3259         * support/regression/tests/critical.c: check bug 1144613
3260
3261 2005-03-02 Raphael Neider <rneider AT web.de>
3262
3263         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
3264
3265 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3266
3267         * src/avr/ralloc.c (serialRegAssign),
3268         * src/ds390/ralloc.c (serialRegAssign),
3269         * src/hc08/ralloc.c (serialRegAssign),
3270         * src/mcs51/ralloc.c (serialRegAssign),
3271         * src/pic/ralloc.c (serialRegAssign),
3272         * src/pic16/ralloc.c (serialRegAssign),
3273         * src/xa51/ralloc.c (serialRegAssign),
3274         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
3275
3276 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
3277
3278         * src/SDCCast.c (decorateType): fixed bug 1124787
3279
3280 2005-02-20 Hubert Sack <sack AT digiplan.de>
3281         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3282
3283         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
3284         patch #1121755
3285
3286 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3287
3288         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
3289         to keep the correct label reference count when adding/removing references
3290         to labels. A peephole file using this is appended to patch #1144962.
3291
3292 2005-02-14 Raphael Neider <rneider AT web.de>
3293
3294         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
3295         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
3296         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
3297           retrievals of result operand's value on assignment
3298
3299 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
3300
3301         * device/include/pic16/string.h: modified prototype for memccpy()
3302         to memccpy(void *, void *, char, size_t)
3303         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
3304         check whether to omit frame pointer or not,
3305         * (genInline): convert all occurences of "\n" to LF in inline
3306         assembler blocks, this helps formatting the inline text,
3307         * (pic16_loadFSR0): modified prototype,
3308         * (genNearPointerGet, genNearPointerSet): reorganization of code,
3309         removed some 8051 legacy code,
3310         * (genPackBits): enabled handling bitfields exceeding one byte in size,
3311         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
3312         before allocating temporary registers in functions,
3313
3314 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3315
3316         * support/regression/tests/bitvars.c: corrected the "fix"
3317
3318 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3319
3320         * support/regression/tests/bitvars.c,
3321         * support/regression/tests/bitwise.c,
3322         * support/regression/tests/rotate.c: "fixed" problems on Alpha
3323
3324 2005-02-10 Raphael Neider <rneider AT web.de>
3325
3326         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
3327           different size for Alpha
3328         * src/pic16/gen.c (genCmpEq) : improved compare with 0
3329
3330 2005-02-09 Raphael Neider <rneider AT web.de>
3331
3332         * src/SDCC.lex(doPragma) : save and restore warning options as well
3333           (also added new stack plus clone- and copyAndFreeSDCCERRG())
3334         * have #pragma less_pedantic set the errorlevel to WARNING
3335           (fixes #1117001)
3336         * (cloneOptimize) : fixed wrong malloc's size
3337         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
3338           facilitate correct handling of #pragma (save|restore)
3339
3340 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3341
3342         * src/mcs51/gen.c: removed non-standard C nameless struct/union
3343
3344 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
3345
3346         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
3347
3348 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
3349
3350         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
3351
3352 2005-02-02 Raphael Neider <rneider AT web.de>
3353
3354         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
3355         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
3356         * (pic16_storeForReturn): fixed to allow returning function pointers
3357         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
3358         * device/include/pic16/{stddef.h,stdbool.h}: added
3359
3360 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
3361
3362         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
3363
3364 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
3365
3366         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
3367         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
3368          appeared to be required
3369
3370 2005-01-31 Borut Razem <borut.razem AT siol.net>
3371
3372         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
3373           include/mcs51 and include/z80 directories to the package
3374
3375 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3376
3377         * src/hc08/gen.c (genFunction): fixed bug #1112752
3378
3379 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3380
3381         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
3382
3383 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3384
3385         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
3386
3387 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
3388
3389         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
3390
3391 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
3392
3393         * device/include/c8051fxxx.h: removed these 6 files
3394         * device/include/mcs51/c8051fxxx.h: added these 11 new files
3395
3396 2005-01-26 Raphael Neider <rneider AT web.de>
3397
3398         * src/pic16/gen.c (genAssign): fixed assignment from longs
3399           in codespace (were cut to three bytes)
3400         * (genDummyRead): implemented (except for CODESPACE...),
3401           fixed bug #1108575
3402         * src/pic16/glue.c (emitStatistics): beautified
3403         * device/lib/pic16/libm/Makefile: added include path
3404
3405 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3406
3407         * src/z80/gen.c (aopPut): fixed bug #1103902
3408
3409 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3410
3411         * device/lib/expf.c: fixed bug #1095792
3412
3413 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
3414
3415         * device/lib/pic16/libm: added Math library sources
3416
3417 2005-01-24 Raphael Neider <rneider AT web.de>
3418
3419         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
3420           to enable upcast to pCodeOpReg2 (there is no type tag to
3421           differenciate the two and pic16_popGet2p cast into PCOR2)
3422         * src/pic16/main.c (_process_pragma): fixed another malloc bug
3423           (sizeof(sectNames) changed to sizeof(sectName))
3424           Both patches fix segfaults under MinGW.
3425
3426 2005-01-23 Raphael Neider <rneider AT web.de>
3427
3428         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
3429           Safe_[mc]?alloc()'ed variables
3430         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
3431           of (byte sized) temporaries (assign them to WREG for now)
3432         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
3433           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
3434           this might fix SIGSEGVs on MinGW...
3435         * src/SDCCopt.c (killDeadCode): restored original behaviour
3436           (volatile operands might get thrown away though)
3437
3438 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
3439
3440         * src/pic16/gen.c: fixed bug #1106975,
3441         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
3442         pointer update, INTCON is saved, global interrupts are disabled and
3443         restored after updateing TOS.
3444         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
3445         * added function attribute 'shadowregs' to take advantage of shadow
3446         registers,
3447         * added function attribute 'wparam' as an alternative to the wparam
3448         pragma,
3449         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
3450         user declares a non-ISR function as 'shadowregs',
3451         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
3452
3453 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
3454
3455         * .version: bumped version number to 2.4.8
3456         * device/lib/pic16/pics.all: list of PIC18F devices supported by
3457         pic16 port,
3458         * device/lib/pic16/libio/i2c/: I2C module support library,
3459         * device/include/pic16/i2c.h: I2C support library header,
3460         * device/lib/pic16/libc/stdio/: standard IO support sources,
3461         * (printf_small.c): printf_small() source, supports float print,
3462         * (printf_tiny.c): printf_tiny() source, does not support floats,
3463         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
3464         enable global optimizations for entire library source, other
3465         Makefiles in the source tree are also modified to reflect this,
3466         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
3467         function,
3468         * doc/sdccman.lyx: updated to reflect new changes,
3469         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
3470         sym->onStack if-case,
3471         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
3472         sbit, idata, _idata, xdata, _xdata,
3473         * added pragma library, to link an external library, (see doc),
3474         * removed command line options, --pomit-config-words, --pomit-ivt,
3475         --pleave-reset-vector,
3476         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
3477         when calling assembler to reflect memory model used, also define
3478         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
3479         reflect stack model used,
3480         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
3481         on stack return NULL,
3482
3483 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3484
3485         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
3486           of the operands is volatile. Fixes #1020220
3487
3488 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3489
3490         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
3491         * (OptimizeRegUsage): make sure that there is really no other flow where
3492           the first pCode is used
3493
3494 2005-01-22 Raphael Neider <rneider AT web.de>
3495
3496         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
3497           to fix #1106967 (pCode->seq are not set up correctly)
3498
3499 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3500
3501         * src/SDCCglue.c (glue): make sure code area is declared before the
3502         static initialization area.
3503
3504 2005-01-21 Raphael Neider <rneider AT web.de>
3505
3506         * device/lib/Makefile.in: fixed test for pic16 install dir
3507         * device/lib/pic16/*/Makefile*: modified compile flags to enable
3508           optimizations
3509         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
3510           added --optimize-goto compiler switch and pragma wparam documentation
3511         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
3512         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
3513           and PRODH closing bug #1071770 (peephole optimizer)
3514
3515 2005-01-19 Raphael Neider <rneider AT web.de>
3516
3517         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
3518           cmdLine buffers (used when calling sdcpp...) are large enough
3519           (MAX_PATH=256 truncates arguments leading to system halts when
3520           used in MinGW...)
3521         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
3522         * (genUminus): rewritten to for efficiency
3523         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
3524           used uninitialized in some cases)
3525         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
3526           copy the third byte from the int -- now assumes 0x80 (data memory)
3527         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
3528           operands (genAddLit expects the iCode's operands to swapped as
3529           well), fixed leftover bytes (crashed for short left operands)
3530         * (pic16_genMinusDec): performance improvements, removed false
3531           PIC14 emitSKPNCs
3532         * (pic16_genMinus): fixed to cope with differently sized operands
3533         * src/pic16/glue.c (pic16_glue): added new banksel optimization
3534           for --obanksel > 1
3535         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
3536         * src/pic16/graph.[ch]: implementation of directed graphs, used by
3537           new banksel optimization
3538         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
3539           analysis for temporary registers (segfaults...)
3540         * src/pic16/peeph.def: added rule
3541
3542 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
3543
3544         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
3545         which converts a float number to its ASCII representation
3546         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
3547         functions to convert the fractional and integer part of a float to ASCII,
3548         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
3549         realloc.c): added _MALLOC_SPEC to explicit place variables in data
3550         ram
3551         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
3552         _STATMEM macros,
3553         * device/include/pic16/adc.h: added GPL info,
3554         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
3555         a pCodeOp as tested operand,
3556         * (genNearPointerGet): optimized bit testing, does not use
3557         intermediate register for bit value, test directly instead with
3558         BTFSS, BTFSC, works only for single bits,
3559         * (genpic16Code): dump the name of the iCode in the asm,
3560         * src/pic16/ralloc.c (decodeOp): removed static declaration and
3561         renamed to pic16_decodeOp,
3562         * (serialRegAssign): do not allocate a temporary register for iCode
3563         sequences that test a single bit for 1/0
3564
3565 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
3566
3567         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
3568         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
3569         access stack and frame pointers. They are initially assigned to
3570         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
3571         accessing SFRs. Updated all occurences of modification of stack or
3572         frame pointer in gen.c and pcode.c,
3573         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
3574         assigning of a literal value to pointers,
3575         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
3576         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
3577         selected
3578
3579 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3580
3581         * doc/sdccman.lyx: update documentation about stack pragma, added
3582         some info for stack memory models
3583
3584 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3585
3586         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
3587
3588 2005-01-08 Raphael Neider <rneider AT web.de>
3589
3590         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
3591           udata sections to fix bug #1097823
3592
3593 2005-01-05 Raphael Neider <rneider AT web.de>
3594
3595         * src/pic16/gen.c (genGenericShift): added handling of differently
3596           sized left operand and result
3597
3598 2005-01-04 Raphael Neider <rneider AT web.de>
3599
3600         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
3601         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
3602           to hold the condition bit)
3603         * added new version of genCmp (old code available via #define)
3604         * added new version of genShiftLeft/genShiftRight in a generic
3605           way, now supports shifting by negative values
3606         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
3607           shiftCount (expected by genGenericShift)
3608         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
3609         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
3610           dump
3611         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
3612           is an invalid literal too...)
3613
3614 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
3615
3616         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
3617         from Raphael Neider,
3618         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
3619         for 8-bit literals. This fixes some literal operands which are sign
3620         extended to 16-bits ints when instruction needs only 8-bits.
3621
3622 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
3623
3624         * device/lib/logf.c: added mcs51 assembly version
3625         * device/lib/expf.c: added mcs51 assembly version
3626         * device/lib/_logexpf.c: new shared asm code for expf and logf
3627         * device/include/math.h: add defines for assembly math library
3628         * device/lib/Makefile.in: build new _logexpf.c
3629         * device/lib/libfloat.lib: use new _logexpf.c
3630
3631 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3632
3633         * src/pic/device.c
3634         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
3635           device types which have less than 0x7f registers.
3636
3637 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3638
3639         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
3640
3641 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3642
3643         * device/lib/printf_fast.c: only build on supported arch.
3644         * device/lib/printf_tiny.c: only build on supported arch.
3645         * device/lib/printf_fast_f.c: only build if asm float lib
3646         * device/lib/_fsget1arg.c: only build if asm float lib
3647         * device/lib/_fsget2args.c: only build if asm float lib
3648         * device/lib/_fsnormalize.c: only build if asm float lib
3649         * device/lib/_fsreturnval.c: only build if asm float lib
3650         * device/lib/_fsrshift.c: only build if asm float lib
3651         * device/lib/_fsswapargs.c: only build if asm float lib
3652         * device/include/stdio.h: don't provide print_fast,
3653           print_fast_f, print_tiny prototypes if --xstack used
3654
3655 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
3656
3657         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
3658         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
3659           to the SOURCES
3660
3661 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3662
3663         * device/lib/printf_fast_f.c: same as printf_fast, but
3664           with floating point enabled
3665         * device/lib/printf_fast.c: minor tweaks
3666         * device/include/stdio.h: add printf_fast_f
3667
3668 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3669
3670         * src/SDCCmain.c: make --float-reent default for mcs51
3671         * device/lib/_fsadd.c: added mcs51 assembly version
3672         * device/lib/_fssub.c: added mcs51 assembly version
3673         * device/lib/_fsmul.c: added mcs51 assembly version
3674         * device/lib/_fsdiv.c: added mcs51 assembly version
3675         * device/lib/_fseq.c: added mcs51 assembly version
3676         * device/lib/_fsneq.c: added mcs51 assembly version
3677         * device/lib/_fsgt.c: added mcs51 assembly version
3678         * device/lib/_fslt.c: added mcs51 assembly version
3679         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
3680         * device/lib/Makefile.in: add _fscmp to build
3681         * device/lib/libfloat.lib: add _fscmp to build
3682
3683 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3684
3685         * device/lib/_fs2slong.c: added mcs51 assembly version
3686         * device/lib/_fs2sint.c: added mcs51 assembly version
3687         * device/lib/_fs2schar.c: added mcs51 assembly version
3688         * device/lib/_fs2ulong.c: added mcs51 assembly version
3689         * device/lib/_fs2uint.c: added mcs51 assembly version
3690         * device/lib/_fs2uchar.c: added mcs51 assembly version
3691         * device/lib/_slong2fs.c: added mcs51 assembly version
3692         * device/lib/_sint2fs.c: added mcs51 assembly version
3693         * device/lib/_schar2fs.c: added mcs51 assembly version
3694         * device/lib/_ulong2fs.c: added mcs51 assembly version
3695         * device/lib/_uint2fs.c: added mcs51 assembly version
3696         * device/lib/_uchar2fs.c: added mcs51 assembly version
3697         * device/include/float.h: added #define to select asm vs c
3698
3699 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
3700
3701         * device/lib/printf_fast.c: improvements to float output
3702         * device/include/float.h: add defines for assembly float library
3703         * device/lib/_fsget1arg.c: receive 1 float arg
3704         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
3705         * device/lib/_fsnormalize.c: normalize a float
3706         * device/lib/_fsreturnval.c: return float, various helper routines
3707         * device/lib/_fsrshift.c: right shift a float's mantissa
3708         * device/lib/_fsswapargs.c: swap 2 floats
3709         * device/lib/Makefile.in: build these 6 new files for mcs51
3710         * device/lib/libfloat.lib: add these 6 files to the library
3711
3712 2004-12-26 Borut Razem <borut.razem AT siol.net>
3713
3714         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
3715           built by gcc 3.4.2
3716
3717 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
3718
3719         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
3720           and fully reentrant and register bank neutral.
3721         * device/lib/printf_fast.c: added float (not enabled by default),
3722           added compact/slower integer (also not enabled by default),
3723           improved size/speed of fast integer code, other minor changes
3724         * device/include/stdio.h, device/lib/Makefile.in,
3725           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
3726
3727 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
3728
3729         * src/pic16/pcode.c: declaring variables other than at the start of a
3730           block is not supported in C by VC6.
3731
3732 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
3733
3734         * applied a previous patch from Raphael Neider that wasn't included
3735         in the previous commits, which fixes infinite loops within jumptable
3736         improvements,
3737         * made some fixes that previous patches introduced
3738
3739 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
3740
3741         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
3742         that fixes an issue with AOP_PCODE asmop's offset,
3743         * (pic16_popCopyReg): update instance field too,
3744         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
3745         function of pic port,
3746         * (genCmp, genAnd, genAssign),
3747         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
3748
3749 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
3750
3751         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
3752         variables initial values to idata section,
3753         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
3754         variables in some functions. This utilizes parmBytes field of iCode
3755         structure to hold the offset of the variable in stack. (might be
3756         able to use the stack field too?)
3757         * applied patch from Raphael Neider # ### , # ###
3758         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
3759         variable initial values in idata section,
3760         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
3761         for static variables with initial value
3762         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
3763         applied fix in while loop from Raphael Neider.
3764
3765 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
3766
3767         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
3768         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
3769         * src/ds390/ralloc.c (serialRegAssign): spill bits
3770         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
3771         * support/Util/SDCCerr.c,
3772         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
3773         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
3774         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
3775
3776 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
3777
3778         * device/include/sdcc-lib.h: inserted LGPL, added includes
3779           asm/ds390/features.h and asm/mcs51/features.h
3780         * device/include/asm/default/features.h,
3781         * device/include/asm/gbz80/features.h,
3782         * device/include/asm/z80/features.h: added empty _AUTOMEM
3783           and _STATMEM
3784         * device/include/asm/ds390/features.h,
3785         * device/include/asm/mcs51/features.h: added files with defines for
3786           _AUTOMEM and _STATMEM indicating automatic and static storage class
3787         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
3788         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
3789         * src/SDCCicode.c (geniCodeCast),
3790         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
3791         * src/SDCCloop.c (loopInduction): removed unused variable lr
3792         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
3793           to convertToFcall to include char modulo (RFE 1065037), added check
3794           if left operand is unsigned and use abs of literal value
3795         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
3796           as it doesn't work after conversion from peephole.def to peephole.rul
3797         * src/mcs51/gen.c (toBoolean): added check for size,
3798           (genModOneByte): optimized code for signed char modulo a literal
3799           power of 2 (thanks to Hubert Sack),
3800           (genRRC): removed unnecessary "clr c",
3801           (genRLC): replaced "add a,acc" with cheaper "rlc a"
3802         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
3803           jump optimization,
3804           swapped rules 256.c and 256.d,
3805           extended 256.d by using new multiple checks (thanks Erik),
3806           added rules 256.e and 256.f,
3807           updated rule 261.a and 261.b to new generated code
3808         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
3809
3810 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3811
3812         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
3813           induction related bugs, including first part of bug #1074377
3814
3815 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
3816
3817         * applied patch from bug-report #1076292,
3818         * applied patches for genAnd and Goto-optimizations for Raphael
3819         Neider,
3820         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
3821         dump a less iCode information,
3822         * src/pic16/device.h (pic16_options_t): added field debgen,
3823         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
3824         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
3825         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
3826         puclic,
3827         * (various functions): added macros FENTRY and FENTRY2 to functions,
3828         to emit function prologue,
3829         * (various functions): fixed indentation,
3830         * (genNearPointerGet): fixed loading of FSR0,
3831         * (genPackBits): applied patch from Raphael Neider to fix updating
3832         of FSR0 and touching only the modified bits,
3833         * src/pic16/genarith.c (various functions): added macros FENTRY to
3834         emit function prologue in comments,
3835         * src/pic16/pcode.h: added functions debugf2, debugf3,
3836         * src/pic16/ralloc.c: partial fix for packForPush caused
3837         segmentation fault,
3838
3839 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3840
3841         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
3842           <stsp AT users.sourceforge.net> with reversed byte order
3843         * support/regression/tests/rotate.c: added (ds390 skips some tests)
3844
3845 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3846
3847         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
3848           bug #1074377
3849         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
3850         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
3851
3852 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3853
3854         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
3855
3856 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3857
3858         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
3859           conditions,
3860           (setFromConditionArgs): friendly operand parser for peephole rules,
3861           (operandBaseName, operandsNotRelated): new peephole condition
3862           "operandsNotRelated" -- similar to "operandsNotSame", but takes
3863           architecture specific register naming into account, handles n-way
3864           comparisons, and supports quoted literals
3865         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
3866
3867 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3868
3869         * src/mcs51/peeph.def: fixed bug #1076940
3870
3871 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3872
3873         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
3874
3875 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3876
3877         Adding support for replacing ljmps with sjmps in jumptables
3878         generated for switch statements. For now you need to set the
3879         environment variable SDCC_SJMP_JUMPTABLE to enable this.
3880         Now 4 algorithms for mcs51 jumptable generation are used:
3881         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
3882         addresses loaded pc-relative for up to 112 cases and stack-pushing
3883         target addresses loaded with offset from dptr for up to 256 cases.
3884
3885         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
3886         * src/mcs51/main.c: adapted constants for switch table generation
3887         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
3888
3889 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
3890
3891         * device/lib/printf_large.c (_print_format): fixed bug 1073386
3892         * support/regression/tests/bug1057979.c: added test for bug 1073386
3893
3894 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3895
3896         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
3897         compilers
3898
3899 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3900
3901         * src/pic16/device.h,
3902         * src/pic16/genarith.c,
3903         * src/pic16/glue.c,
3904         * src/pic16/main.c,
3905         * src/pic16/pcode.c: applied patches #1068154 and #1070213
3906
3907 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
3908
3909         Large cummulative patch for pic16 port.
3910         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
3911         to call when a stack overflow occurs,
3912         * (malloc.h): added CVS Id tag,
3913         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
3914         variable,
3915         * added libc directory. The current version of LibC contains string
3916         functions, ctype functions and macros and some functions of the
3917         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
3918         be extensively tested in the future. Standard disclaimer here.
3919         Library is not automatically build yet. But one can build it by
3920         invoking 'make' inside the libc directory.
3921         * added ADC library under libio. Preliminary version yet.
3922
3923         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
3924         * src/pic16/gen.c (aopForRemat): asmop size is filled by
3925         aopForRemat() now and not by pic16_aopOp(),
3926         * (pic16_popGetTempReg): removed warning messgae when allocating
3927         temporary registers, its a buggy feature and will be removed,
3928         * (pic16_popGet): set register instance field in AOP_CRY,
3929         * (pic16_outBitC): fixed for results in size greater than 1,
3930         * (genUminusFloat): fixed for pic16, ported code from mcs51,
3931         * (pic16_storeForReturn): optimized return of 0,
3932         * (genCmp): experimental code for new genCmp which uses PIC18's
3933         special compare&skip instructions. Initial tests fail some times
3934         with variables grater than 1 byte in size, so new code is disabled,
3935         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
3936         a single bit,
3937         * (genCast): began a fix to optimize the casting of a bit to another
3938         bit, now assigning a bitfield to another bitfield will fail, sorry,
3939         * src/pic16/main.c: disabled the use of lr-support feature,
3940         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
3941         * added some function prototypes, added function _debugf prototype,
3942         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
3943         bits with offset (case PO_GPR_BIT),
3944         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
3945         command line,
3946         * (isBankInstruction): modified to return 0 for no banking instruction,
3947         and 1 for banking instruction,
3948         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
3949         caused stop processing pCodes after a inline assembly block,
3950         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
3951         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
3952         registers when it shouldn't,
3953         * src/pic16/ralloc.c (allocReg): add preliminary support for
3954         supporting a limited set of temporary registers,
3955
3956 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3957
3958         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
3959           genDataPointerSet): ensure assignments always copy in MSB to LSB
3960           order,
3961           (loadRegFromAop): recognize CLRH optimization,
3962           (genFunction): optimize RECEIVE iCodes in reentrant functions
3963
3964 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3965
3966         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
3967           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
3968           selected.
3969         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
3970         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
3971           contiguous with data
3972
3973 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3974
3975         * device/lib/_gptrget.c (_gptrget),
3976         * device/lib/_gptrgetc.c (_gptrgetc),
3977         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
3978           instead of sjmp to ret
3979         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
3980           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
3981
3982 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3983
3984         * .version: bumped version to 2.4.7
3985         * device/lib/_gptrget.c (_gptrget): is now _naked
3986         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
3987         * device/lib/_gptrput.c (_gptrput): is now _naked
3988         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
3989           (createFunction): fixed xstack
3990         * src/SDCCglue.c (emitMaps): set allocation required for bit area
3991         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
3992           or bit either,
3993           (geniCodeCritical): store original interrupt state in an iTemp bit
3994           var unless stack-auto
3995         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
3996         * src/SDCCmain.c (setIncludePath): added include/target to search path
3997         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
3998         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
3999           prototype,
4000           (processFuncArgs): put bit vars in bit area
4001         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
4002           unsaveRBank): fixed xstack,
4003           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
4004           (genFunction, genEndFunction): fixed xstack,
4005           (genAssign): optimization don't walk backwards through mem
4006         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
4007         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
4008         * support/regression/Makefile: also make library (for stack-auto) when
4009           making "all" and added "test-mcs51-xstack-auto"
4010         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
4011         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
4012         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
4013         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
4014         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
4015           make-library by MAKE_LIBRARY
4016         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
4017           regression tests for xstack
4018         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
4019         * support/regression/tests/critical.c: test for critical on mcs51
4020
4021 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4022
4023         * support/regression/ports/ucz80/spec.mk: use include and lib files from
4024           built version of sdcc instead of installed version
4025
4026 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4027
4028         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
4029         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
4030           vprintf.c now
4031         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
4032         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
4033           WARNING: remove device/lib/build/z80/printf.o by hand when
4034           updating from previous build!
4035         * device/lib/z80/printf.c: updated comment
4036         * support/regression/tests/bug1057979.c: test all ports now
4037         * support/regression/tests/bug1065458.c: file added
4038
4039 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4040
4041         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
4042           *_start and *_end symbols for static functions
4043
4044 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
4045
4046         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
4047           and search crt0.o in all library paths,
4048           (setIncludePath): proper handling of --nostdinc,
4049           (setLibPath): proper handling of --nostdlib
4050         * support/regression/Makefile,
4051         * support/regression/ports/ds390/spec.mk,
4052         * support/regression/ports/gbz80/spec.mk,
4053         * support/regression/ports/hc08/spec.mk,
4054         * support/regression/ports/mcs51/spec.mk,
4055         * support/regression/ports/mcs51-large/spec.mk,
4056         * support/regression/ports/mcs51-stack-auto/spec.mk,
4057         * support/regression/ports/z80/spec.mk: use include and lib files from
4058           built version of sdcc instead of installed version
4059         * doc/sdccman.lyx: fixed typo in --nostdinc
4060
4061 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
4062
4063         * src/pic/pcode.c,
4064         * src/pic/device.c,
4065         * src/pic/ralloc.c,
4066         * src/pic/gen.c : added support to generate code for struct bit fields.
4067
4068 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4069
4070         * as/xa51/xa_version.h,
4071         * device/include/errno.h,
4072         * device/include/regc515c.h,
4073         * device/lib/_itoa.c,
4074         * device/lib/_ltoa.c,
4075         * device/lib/ser_ir_cts_rts.c,
4076         * sim/ucsim/xa.src/glob.cc,
4077         * sim/ucsim/xa.src/inst_gen.cc,
4078         * sim/ucsim/xa.src/xa_bit.cc,
4079         * sim/ucsim/xa.src/xa_sfr.cc,
4080         * sim/ucsim/z80.src/inst_dd.cc,
4081         * sim/ucsim/z80.src/inst_fdcb.cc,
4082         * support/scripts/keil2sdcc.pl,
4083         * src/pic16/pic16.dsp,
4084         * src/pic16/pic16a.dsp: corrected cvs line endings
4085         * device/lib/printf_large.c: fixed bug 1057979
4086         * src/pic16/gen.c: fixed non-C standard code
4087         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
4088         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
4089         * support/regression/ports/mcs51/support.c: reload T1 asap
4090         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
4091           pdata use and clear idata startup behaviour
4092         * support/regression/tests/bug1057979.c: added
4093
4094 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
4095
4096         * device/examples/ds390/ow390/ad26.h,
4097         * device/examples/ds390/ow390/cnt1d.h,
4098         * device/examples/ds390/ow390/crcutil.c,
4099         * device/examples/ds390/ow390/ownet.h,
4100         * device/examples/ds390/ow390/owsesu.c,
4101         * device/examples/ds390/ow390/swt12.h,
4102         * device/examples/ds390/ow390/swtoper.c,
4103         * device/examples/ds390/ow390/temp10.h,
4104         * device/examples/ds390/ow390/thermodl.c,
4105         * device/examples/ds390/tinitalk/tinitalk.dsp,
4106         * device/examples/ds390/tinitalk/tinitalk.dsw,
4107         * device/examples/mcs51/clock/hw.h,
4108         * device/examples/mcs51/simple2/go.bat,
4109         * device/examples/serialcomm/windows/serial.h,
4110         * device/examples/xa51/dummy.c,
4111         * device/examples/xa51/hello.c,
4112         * device/include/80c51xa.h,
4113         * device/include/at89x051.h: corrected cvs line endings
4114
4115 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
4116
4117         * src/pic16/main.c (options): added command line --gstack, to trace
4118         stack over/under flows,
4119         * added pragma 'wparam' to allow passing first byte of function
4120         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
4121         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
4122         call to __gstack_test function and sets up the symbol as extern,
4123         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
4124         * popaop): added call to pic16_testStackOverflow,
4125         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
4126         wparamList list,
4127         * (genCall, genPcall): now all parameters are passed via stack
4128         except in functions that are pass to wparam pragma in which WREG is
4129         used too,
4130         * (genPcall): REENTRANT flag is checked to see if variable prototype
4131         contains reentrant keyword, don't call a non-reentrant function, via
4132         a reentrant function pointer or vice versa, functions are never
4133         passed via WREG,
4134         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
4135         D.Winkler,
4136         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
4137         SIGSEGV when accessing a NULL register stucture,
4138         * (pic16_printGPointerType): modified to handle UPPER modifier for
4139         function initializers, changed prototype of function to simpler one,
4140         * (pic16_printIvalFuncPtr): check to see if function is already
4141         added in externs list,
4142         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
4143         optimized a move from W to SFR with a move to the same register
4144         later after a CALL,
4145         * device/lib/pic16/debug: NEW directory, contains debug features
4146         which are enabled when linking with libdebug.lib, currently command
4147         line option --gstack enables stack pointer tracing for over/under
4148         flow, corresponding sources are in debug/gstack
4149
4150 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
4151
4152         * doc/sdccman.lyx: updated SDCC version,
4153         * (PIC16 port): update list of command line options,
4154         * src/pic16/device.h (structure pic16_options_t): added field gstack
4155         to enable stack overflow tracing on push/pops,
4156         * src/pic16/device.c (statistics structure): added statistics
4157         structure,
4158         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
4159         pic16_dump_int_registers): increase statistics counters for each
4160         * variable which is encountered
4161         * (pic16_dump_usection): emit each .udata variable to its own udata
4162         section,
4163         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
4164         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
4165         parameters via stack, otherwise use old scheme,
4166         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
4167         assembler output file,
4168         * src/pic16/main.c: added command line options --gstack to enable
4169         push/pop tracing for stack overflow,
4170         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
4171         instructions): added size of each instruction,
4172         * (pic16_countInstruction): estimate size of instructions in
4173         the_pFile list, inline assembly blocks are not counted,
4174         * (pic16_FixRegisterBanking): trace previous register usage, when
4175         banksel optimizations is greater than 0, don't emit a redudant
4176         banksel directive,
4177
4178 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
4179
4180         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
4181         * src/pic16/ralloc.c : applied same fix for pic16.
4182         * src/pic/gen.c : tidied it up a little.
4183
4184 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4185
4186         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
4187         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
4188
4189 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4190
4191         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
4192
4193 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4194
4195         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
4196         non-reentrant function __modsint in the interrupt function (thus
4197         corrupting math operations during serial I/O)
4198         * device/lib/ser_ir.c: as above, changed buffersize
4199         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
4200         256.c,d for zeroing
4201         * doc/Makefile: added option -t for rsync
4202
4203 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4204
4205         * src/SDCCast.h (struct ast),
4206         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
4207
4208 2004-10-20 Borut Razem <borut.razem AT siol.net>
4209
4210         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
4211         package
4212
4213 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
4214
4215         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
4216         makefile targets,
4217         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
4218         support functions to replace long sequences of MOVFF's from access
4219         bank registers to stack and vice versa,
4220         * src/pic16/device.h: added new field opt_flags, where optimization
4221         flags can be set to enable certain features,
4222         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
4223         * pBlock, (genFunction, genEndFunction): surroung loop for
4224         saving/loading used registers in stack with PC_INFO pCodes,
4225         INF_LREGS. Code in between can then be optimized by pCode optimizer
4226         to support function calls,
4227         * (genDataPointerSet): fixed bug which loaded float fields in
4228         structures with corrupt data,
4229         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
4230         in a standard way debug info on stderr. Feature used for developing
4231         and debugging only,
4232         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
4233         obsolete chunks of code,
4234         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
4235         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
4236         * pic16/src/pcode.c (pic16_newpCodeInfo,
4237         * (pic16_newpCodeOpLocalRegs),
4238         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
4239         feature,
4240         * (pic16_pCodeConstString): printing of the initial value of a
4241         symbol as a comment is inhibited since parsing was already done by
4242         copyStr and output is corrupt,
4243         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
4244
4245 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4246
4247         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
4248
4249 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4250
4251         * as/mcs51/lkarea.c: removed old K&R style,
4252           (lnksect): changed check on boundary error,
4253           (lnksect2): changed check on boundary error,
4254           (lnksect2): extend XSTK to end of page if size = 1
4255         * as/mcs51/lkmain.c: removed old K&R style,
4256           (Areas51): create l_IRAM symbol
4257         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
4258         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
4259           model-mcs51-stack-auto, added model-mcs51-xstack-auto
4260         * device/lib/_mullong.c: added version to be compiled with xstack
4261         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
4262         * device/lib/mcs51/crtxclear.asm: clear pdata as well
4263         * device/lib/mcs51/crtxstack.asm: fixed comment
4264         * src/SDCCglue.c: maxInterrupts defaults to 0,
4265           (emitMaps): added pdata,
4266           (createInterruptVect): (re)moved default,
4267           (glue): added pdata,
4268           (glue): moved __start__xstack to XSTK with default size 1
4269         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
4270           and options.float_rent when options.stackAuto is set,
4271           (linkEdit): only write XDATA_NAME if provided on command line
4272         * src/SDCCmem.h,
4273         * src/SDCCmem.c: added pdata
4274         * src/port.h: added pdata_name to PORT
4275         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
4276           (saveRegisters, unsaveRegisters): removed usage of B,
4277           (genMinus): fixed accumulator clash,
4278           (genJumpTab): added comment, this needs another look
4279         * src/mcs51/gen.c: added check for "B in use" paranoia,
4280           added pushB() and popB()
4281         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
4282           chance
4283         * src/avr/main.c,
4284         * src/ds390/main.c,
4285         * src/hc08/main.c,
4286         * src/mcs51/main.c,
4287         * src/pic/main.c,
4288         * src/pic16/main.c,
4289         * src/xa51/main.c,
4290         * src/z80/main.c: (reset_regparms) made void parameter explicit and
4291           added PSEG (PAG,XDATA) or NULL to port specifier
4292         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
4293         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
4294           (_mcs51_genInitStartup): removed __start__xstack equ,
4295           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
4296         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
4297         * src/z80/gen.c (_rleAppend): fixed warnings
4298         * support/regression/tests/zeropad.c: added pdata test
4299         * .version: bumped to 2.4.6
4300
4301 2004-10-17 Borut Razem <borut.razem AT siol.net>
4302
4303         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
4304         as a part of nightly build
4305
4306 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
4307
4308         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
4309         WREG holds the first byte function parameters,
4310         * (aopForSym): take special case for symbols which are in FARSPACE
4311         but in CODESPACE too,
4312         * (assignResultValue): modified to take into account _G.useWreg,
4313         * (genCall): don't use wreg for parameter passing when function is
4314         declared as reentrant, too, added optimization INCF to stack
4315         pointer when stack parameter count is 1,
4316         * (genFunction, genEndFunction): refurnished and fixed to not using
4317         wreg for passing parameters when function has varargs or is
4318         reentrant, fixed bug with symbol name compare for generating
4319         functions in absolute address,
4320         * (pic16_storeForReturn): refurnished,
4321         * (genCmp): began writing a new version of the function, not ready
4322         yet, therefore it is disabled,
4323         * (genAssign): do not read code memory when assigning a function to
4324         a pointer function,
4325         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
4326         array of characters, not pointer,
4327         * (pic16initialComments): in debug mode emit an .ident directive for
4328         the assembler,
4329         * (_process_pragma): emit a new warning type (internal to pic16)
4330         when setting stack to default length, emit a similar warning when
4331         placing a function at absolute address and address is not word aligned
4332         * (_pic16_parseOptions): added 'return TRUE' statement,
4333         * (_pic16_linkEdit): if compiling a source, then add the source's
4334         file object, first in the list of objects to link,
4335
4336 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
4337
4338         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
4339         * src/pic/main.c : removed VC warning.
4340         * src/pic/gen.c : changed comment.
4341
4342 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
4343
4344         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
4345         reference to a deprecated symbol _GPTRREG was causing failure to
4346         link. Thanks G. M. Gallant for the info.
4347
4348 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
4349
4350         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
4351         comments for Bugs item #954788.
4352
4353 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
4354
4355         * src/pic16/device.c (pic16_dump_gsection,
4356         * pic16_groupRegistersInSection): handle symbols declared to be in
4357         access bank differently,
4358         * src/pic16/gen.c (struct _G): added field resDirect,
4359         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
4360         send values read from stack directly to result and don't allocate
4361         temporary values,
4362         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
4363         same registers,
4364         * (pic16_sameRegsOfs): NEW,
4365         * (freeAsmop): if _G.resDirect is set then do not mark registers as
4366         free because they were not allocated from temporary pool,
4367         * pic16_popRegFromString): workaround to fix a problem with
4368         allocating variables twice or never,
4369         * (genGenPointerGet): using PRODL instead of FSR0H,
4370         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
4371         instead of FSR0H,
4372         * (genAssign): take advantage of the _G.resDirect flag,
4373         * (genCast): around line 11844, use mov2f instead of directly
4374         MOVFF'ing between operands to account for literal values,
4375         * src/pic16/genutils.c: some new debug functions for gpsim have been
4376         added,
4377         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
4378         float with integer part only,
4379         * src/pic16/main.c (_process_pragma): handle pragma udata access to
4380         place variables in access bank
4381         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
4382         updated sources to reflect recent changes in gen.c
4383
4384 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
4385
4386         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
4387         sources that searched for headers in installation path, now the
4388         device/include/pic16 is used,
4389         * src/pic16/glue.c (pic16glue),
4390         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
4391         .line directives if not in debug mode, this suppresses assembler's
4392         warnings for ignored directives
4393
4394 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4395
4396         * src/port.h: made reset_regparms prototype void parameter explicit.
4397         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
4398         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
4399         * doc/sdccman.lyx: documented warning disabling and how to use
4400           printf_large to make it print floats.
4401         * device/include/stdbool.h: NEW
4402         * device/lib/_atof.c,
4403         * device/lib/_divuint.c,
4404         * device/lib/_divulong.c,
4405         * device/lib/expf.c,
4406         * device/lib/printf_large.c,
4407         * device/lib/sincosf.c,
4408         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
4409         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
4410           a completely reentrant lib.
4411
4412 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
4413
4414         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
4415         * device/include/pic16/stdio.h: fixed bug with colon
4416
4417 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
4418
4419         * device/include/pic16/stdio.h,
4420         * device/include/pic16/stdlib.h,
4421         * device/include/pic16/math.h: NEW
4422         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
4423         declared as _naked to reduce overhead
4424         * device/lib/Makefile.in (target port-specific-objects-pic16):
4425         changed * to *.* so to ignore the CVS directory,
4426         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
4427         stacked variables back in stack,
4428         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
4429         corruption
4430
4431 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
4432
4433         * .version: bumped version number to 2.4.5
4434         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
4435         * support/Util/SDCCerr.c (messages structure): added entry for
4436         W_POSSBUG2
4437
4438         Large cumulative patch for pic16 port and libraries.
4439         * device/include/pic16/sdcc-lib.h,
4440         * device/include/pic16/stdarg.h,
4441         * device/include/asm/pic16/features.h,
4442         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
4443         * device/include/pic16/float.h: changes reentrant keyword with
4444         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
4445         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
4446         updated target build-libraries to include objects from gptr,
4447         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
4448         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
4449         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
4450         all function headings,
4451         * src/SDCCmain.c: added global parameter userIncDirsSet,
4452         * (parseCmdLine): when option -I is encountered add directory to
4453         userIncDirsSet too,
4454         * src/version.awk: added space between control and long,
4455         * src/pic16/NOTES: added some notes for the port,
4456         * src/pic16/gen.c: added prototype for mov2fp function,
4457         * (fReturnpic16[]): properly named return value registers,
4458         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
4459         * (aopForSym): added code to handle symbols with onStack flag set,
4460         symbols onStack are allocated PTRSIZE bytes,
4461         * (aopFreeAsmop): handles special case where asmops are stack objects,
4462         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
4463         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
4464         added argument lock to trace flaws in allocating temporary registers
4465         when developing port,
4466         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
4467         * (pic16_popRegFromString): reenabled allocating a direct register
4468         from string,
4469         * (assignResultValue): various beautifications,
4470         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
4471         referenced function argument,
4472         * (genIpush): reenabled to allow stacked arguments, handles only
4473         ic->parmPush iCodes,
4474         * (genCall, genPcall): major changes to allow for variable argument
4475         functions, fixed a bug with falsely restoring stack pointer after
4476         returning from call,
4477         * (genFunction): pending code for critical function,
4478         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
4479         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
4480         * (genNearPointerGet): fixed bug with indirect reading, was always
4481         reading from INDF0
4482         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
4483         pointers,
4484         * (genAddrOf): rewrote code to take address of a stacked function parameter
4485         * (genCast): fixed casting to generic pointer type,
4486         * src/pic16/gen.h: added AOP_STA,
4487         * (struct asmop): added field stk,
4488         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
4489         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
4490         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
4491         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
4492         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
4493         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
4494         generic pointers,
4495         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
4496         and library paths,
4497         * (pic16_port structure): generic pointer size is set to 3,
4498         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
4499         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
4500         compiler warning,
4501         * src/pic16/ralloc.c (allocReg): prevent allocating register when
4502         operand is an iTemp,
4503
4504 2004-09-24 Martin Helmling <mh AT octo-soft.de>
4505
4506         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
4507         * debugger/mcs51/simi.c: addapt new syntax of s51
4508
4509 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
4510
4511         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
4512         * src/pic16/pcode.c: commented out some calls to free() in order to
4513         fix bug #989576,
4514
4515 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4516
4517         * src/SDCCicode.h,
4518         * src/SDCCicode.c (isiCodeInFunctionCall),
4519         * src/avr/ralloc.c (selectSpil),
4520         * src/pic/ralloc.c (selectSpil),
4521         * src/pic16/ralloc.c (selectSpil),
4522         * src/ds390/ralloc.c (selectSpil),
4523         * src/hc08/ralloc.c (selectSpil),
4524         * src/xa51/ralloc.c (selectSpil),
4525         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
4526         stack in the middle of a function call sequence (fixes bug #1020268)
4527         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
4528         costs associated with the minimum switch case.
4529
4530 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4531
4532         * src/SDCC.lex: fixed bug #1030549
4533
4534 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4535
4536         * src/SDCCcse.h (struct cseDef),
4537         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
4538         over a function call if the CSE is derived from a symbol whose
4539         address has been taken (fixes bug #1029883)
4540         * support/regression/tests/bug-1029883: a new regression test for
4541         this bug
4542
4543 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4544
4545         * src/hc08/gen.c (emitinline): fixed bug #1029778
4546         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
4547         to a cast object is no longer a syntax error ("fixes" bug #1030006,
4548         and starts toward RFE #905167)
4549
4550 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
4551
4552         * src/pic16/gen.c (mov2f): New function to move an operand to
4553         another without considering if it is a literal or a register,
4554         * (pic16_sameRegs): don't check if they are both AOP_REG,
4555         * (AccRsh): removed andmask=0 lines,
4556         * (genLeftShift): duplicated to be improved in future versions,
4557         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
4558         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
4559         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
4560         * (pic16initMnemonics): added initialization for POC_INFSNZW,
4561         * (insertBankSwitch): fixed inserting banksel directives algorithm
4562         for instructions that follow a skip instruction, this fixes a report
4563         for broken subtraction code generation,
4564         * src/pic16/ralloc.c (deassignLRs): do not free register if current
4565         iCode is a left op, just in case result and right share the same
4566         registers
4567
4568 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4569
4570         * src/hc08/main.c,
4571         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
4572         preservation of HX
4573         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
4574         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
4575         on 2004-09-12; it was buggy
4576
4577 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4578
4579         * src/SDCCsymt.h: removed RESULT_CHECK
4580         * src/SDCCast.c,
4581         * src/SDCCglue.c,
4582         * src/SDCCval.c,
4583         * src/pic/glue.c,
4584         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
4585
4586 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
4587
4588         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
4589         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
4590         configuration values no more rejected by compiler, they are assigned
4591         to configuration registers with a warning message instead,
4592         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
4593         the for-loop so last conf register is emitted too,
4594         * (_pic16_initPaths): link library libsdcc.lib by default,
4595         * (_hasNativeMulFor): modified test for multiplication according to
4596         Raphael Neider's remarks. Integer multiplication is also done with
4597         support functions,
4598         * device/include/pic16/pic18fregs.h: corrected type error in while
4599         testing and including 18f6720 header file
4600
4601 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
4602
4603         * src/pic16/device.h (pic16_options): removed field use_crt,
4604         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
4605         until an optimization to handle single bits is added,
4606         * (pic16_loadFSR0): moved before genUnpackBits,
4607         * (genAnd): some white lines removed,
4608         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
4609         leave_reset flags in pic16_options when using crt modules,
4610
4611 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
4612
4613         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
4614           for bugs 898889 & 979599. Also used some safer print instructions.
4615
4616 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
4617
4618         * src/pic16/device.h (pic16_options_t): added field use_crt,
4619         crt_name, no_crt,
4620         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
4621         catch a probable future bug,
4622         * src/pic16/gen.c: aopIdx function commented out,
4623         * (genAssign): commented out old code which used aopIdx,
4624         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
4625         code, added if conditionals to take into account the --use-crt
4626         command line options,
4627         * src/pic16/main.c (pic16_optionsTable): added new command line
4628         options, --use-crt= and --no-crt,
4629         * (_pic16_linkEdit): now the proper crt object is added in the
4630         linker command line except than when --no-crt is specified,
4631         * src/pic16/pcode.c,
4632         * src/pic16/pcode.h: added some structures and functions for a new
4633         optimization scheme to compansate for instruction overhead between
4634         same iCodes, this scheme is currently under development and is not
4635         working in any way,
4636         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
4637         to && operator,
4638         * device/lib/pic16/startup/crt0i.c,
4639         * device/lib/pic16/startup/crt0iz.c: added global char variable
4640         __uflags to force the generation of an idata section
4641
4642 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
4643
4644         * doc/Makefile,
4645         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
4646         * doc/sdccman.lyx: updated sdcc version to 2.4.4
4647
4648 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4649
4650         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
4651         Frieder) and clarified the default code optimization mode
4652
4653 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4654
4655         * src/SDCC.lex (doPragma, process_pragma),
4656         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
4657         "opt_code_size", and "opt_code_balanced"
4658         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
4659         regrouped options by category, added support for category headers
4660         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
4661         and "--opt-code-size"
4662         * doc/sdccman.lyx: documented these new options and pragmas
4663         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
4664         preference into account
4665
4666 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4667
4668         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
4669           geniCodePreDec): Fixed bug 904237 by generating a warning
4670         * src/SDCCerr.h,
4671         * src/SDCCerr.c: added warning W_SIZEOF_VOID
4672
4673 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
4674
4675         * src/pic/device.c : When no max ram set validate full memory range.
4676         * src/pic/pcode.c,
4677         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
4678
4679 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4680
4681         * device/lib/_gptrget.c,
4682         * device/lib/_gptrput.c: updated comment
4683         * device/lib/calloc.c,
4684         * device/lib/free.c,
4685         * device/lib/malloc.c,
4686         * device/lib/realloc.c: added LGPL, made them reentrant-safe
4687         * src/SDCCcse.c (cseBBlock),
4688         * src/SDCCicode.c (printOperand, geniCodeArray),
4689         * src/SDCCicode.h (struct operand): fixed bug 868103
4690         * support/regression/tests/bug-868103.c: added
4691         * src/SDCCast.c (searchLitOp),
4692         * src/SDCCcse.h (struct cseDef),
4693         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
4694         * src/SDCCicode.h (struct operand),
4695         * src/SDCCsymt.h (struct sym_link),
4696         * src/avr/gen.c (hasInc),
4697         * src/ds390/gen.c (hasInc),
4698         * src/hc08/gen.c (genPlusIncr, hasInc),
4699         * src/mcs51/gen.c (hasInc),
4700         * src/pic16/glue.c (pic16_printIvalChar),
4701         * src/pic16/ralloc.c (regWithIdx),
4702         * src/xa51/gen.c (hasInc) : removed warnings
4703         * src/SDCCast.c (createBlock): added comment ???
4704         * src/hc08/ralloc.c: updated comments
4705
4706 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4707
4708         * doc/sdccman.lyx: updated section on switch statements, added
4709         section about semaphore locking
4710         * doc/Makefile: added option -info for latex2html
4711         * device/lib/_gptrget.c,
4712         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
4713
4714 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4715
4716         * src/pic/device.h,
4717         * src/pic/device.c,
4718         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
4719          maxram is less than 0x100.
4720
4721 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4722
4723         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
4724
4725 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4726
4727         * src/port.h,
4728         * src/mcs51/main.c,
4729         * src/ds390/main.c,
4730         * src/z80/main.c,
4731         * src/hc08/main.c,
4732         * src/pic/main.c,
4733         * src/pic16/main.c,
4734         * src/avr/main.c,
4735         * src/xa51/main.c
4736         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
4737         a jump table is the best form for a switch statement, including
4738         automatic insertion of missing cases to make the case range
4739         continuous. Developed in collaboration with Frieder Ferlemann.
4740
4741 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4742
4743         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
4744         accumulator result if it needs sign extension
4745
4746 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4747
4748         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
4749
4750 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4751
4752         * device/lib/gbz80/printf.c,
4753         * device/lib/z80/printf.c: removed define for NULL
4754
4755 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4756
4757         * as/xa51/xa_link.c,
4758         * device/examples/ds390/ow390/ad26.c,
4759         * device/examples/ds390/ow390/cnt1d.c,
4760         * device/examples/ds390/ow390/counter.c,
4761         * device/examples/ds390/ow390/ds2480.h,
4762         * device/examples/ds390/ow390/ds2480ut.c,
4763         * device/examples/ds390/ow390/findtype.c,
4764         * device/examples/ds390/ow390/gethumd.c,
4765         * device/examples/ds390/ow390/owllu.c,
4766         * device/examples/ds390/ow390/ownetu.c,
4767         * device/examples/ds390/ow390/swt12.c,
4768         * device/examples/ds390/ow390/swtloop.c,
4769         * device/examples/ds390/ow390/temp.c,
4770         * device/examples/ds390/ow390/temp10.c,
4771         * device/examples/ds390/ow390/thermo21.c,
4772         * device/examples/ds390/ow390/tinilnk.c,
4773         * device/examples/ds390/ow390/tstfind.c,
4774         * device/examples/serialcomm/windows/serial.cpp,
4775         * device/examples/serialcomm/windows/test_serialcomm.cpp,
4776         * device/include/reg51.h: fixed line endings for cvs
4777
4778 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4779
4780         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
4781         packRegsForAccUse, packRegisters): new accumulator register
4782         packing algorithm
4783         * support/regression/ports/hc08/support.c (_putchar): suppress
4784         warning of unused variable
4785         * src/SDCCicode.c: added SWAP entry to codeTable
4786
4787 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
4788
4789         * device/lib/sprintf.c: forgot to add this file before previous commit
4790
4791 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
4792
4793         * src/pic16/gen.c (genPackBits): added operand right in function
4794         parameters, load result directly if p_type is POINTER (that is
4795         called by genNearPointerSet)
4796         * (genUnPackBits): added operand left in function parameters,
4797         * (genNearPointerGet, genNearPointerSet): prevent the loading of
4798         FSR0 if accessing bitfields,
4799
4800 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
4801
4802         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
4803           _print_format; updated printf, sprintf, vsprintf
4804         * device/include/asm/default/features.h: corrected comment/define
4805         * device/lib/Makefile.in: added sprintf.c
4806         * device/lib/libsdcc.lib: added sprintf module
4807         * device/lib/printf_large.c,
4808         * device/lib/vprintf.c,
4809         * device/lib/sprintf.c: totally refactored printf_large and vprintf
4810           into these 3 files
4811         * support/regression/Makefile: changed ALL_PORTS into a usefull default
4812         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
4813         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
4814           hc08 test
4815         * support/regression/tests/zeropad.c: define idata as data for hc08
4816
4817 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4818
4819         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
4820         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
4821         labels are referenced at least once (even if a reference is not found)
4822         * src/hc08/gen.c (emitcode): set isComment flag for comments
4823         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
4824         loads), rules 6a..6b (optimize jumps to return)
4825
4826 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4827
4828         * device/lib/acosf.c (acosf),
4829         * device/lib/asinf.c (asinf),
4830         * device/lib/atanf.c (atanf),
4831         * device/lib/ceilf.c (ceilf),
4832         * device/lib/cosf.c (cosf),
4833         * device/lib/coshf.c (coshf),
4834         * device/lib/cotf.c (cotf),
4835         * device/lib/fabsf.c (fabsf),
4836         * device/lib/floorf.c (floorf),
4837         * device/lib/log10f.c (log10f),
4838         * device/lib/logf.c (logf),
4839         * device/lib/sinf.c (sinf),
4840         * device/lib/sinhf.c (sinhf),
4841         * device/lib/sqrtf.c (sqrtf),
4842         * device/lib/tanf.c (tanf),
4843         * device/lib/tanhf.c (tanhf),
4844         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
4845         replaced all instances of "reentrant" in the library functions
4846         defined in math.h with this macro.
4847         * support/regression/tests/float_trans.c: reenabled test for hc08
4848
4849 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4850
4851         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
4852         erroneously deleted
4853
4854 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4855
4856         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
4857         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
4858         multi-byte volatile operands are used
4859         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
4860         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
4861         initialization to area GSINIT0 so that it would always precede
4862         any static initializers in GSINIT
4863         * support/regression/tests/zeropad.c: fixed idata define for hc08
4864         * support/regression/tests/bug-927659.c,
4865         * support/regression/tests/float_trans.c: disabled tests for hc08
4866         pending missing library routines
4867         * .version: increased version number to 2.4.4 - hc08 port now passes
4868         regression tests
4869
4870
4871 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
4872
4873         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
4874         * Makefile.common.in,
4875         * as/Makefile,
4876         * as/hc08/Makefile.in,
4877         * as/mcs51/Makefile.in,
4878         * as/z80/Makefile.in,
4879         * debugger/mcs51/Makefile.in,
4880         * device/include/Makefile.in,
4881         * device/lib/Makefile.in,
4882         * doc/Makefile,
4883         * link/Makefile,
4884         * link/z80/Makefile.in,
4885         * packihx/Makefile.in,
4886         * sim/ucsim/main_in.mk,
4887         * sim/ucsim/avr.src/Makefile.in,
4888         * sim/ucsim/doc/Makefile.in,
4889         * sim/ucsim/gui.src/serio.src/Makefile.in,
4890         * sim/ucsim/hc08.src/Makefile.in,
4891         * sim/ucsim/s51.src/Makefile.in,
4892         * sim/ucsim/xa.src/Makefile.in,
4893         * sim/ucsim/z80.src/Makefile.in,
4894         * src/Makefile.in,
4895         * support/cpp2/Makefile.in,
4896         * support/librarian/Makefile,
4897         * support/makebin/Makefile: added DESTDIR to the install path proposed
4898         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
4899         * doc/sdccman.lyx: added DESTDIR documentation
4900
4901 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
4902
4903         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
4904         instruction for interrupt handlers, use fast returns when returning
4905         from high priority interrupts
4906
4907 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4908
4909         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
4910         code generation
4911         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
4912         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
4913         bugs, ported much of Bernhard's code from mcs51
4914         * src/mcs51/gen.c (genSend),
4915         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
4916         than one when calling a reentrant function
4917         * device/lib/_mullong.c: defined an alternate struct layout for big
4918         endian ports (hc08)
4919
4920 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4921
4922         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
4923         test
4924
4925 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4926
4927         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
4928         are sane and complete before asking the port its prefered parameter
4929         passing method (fixes bug #1017633)
4930         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
4931         and _ret3
4932
4933 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4934
4935         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
4936         problem in bitfields >= 8 bits.
4937
4938 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4939
4940         * src/SDCCsymt.c: undid changes that were not meant to be committed
4941
4942 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4943
4944         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
4945
4946 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4947
4948         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
4949           copied and wrong bit got inverted
4950
4951 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4952
4953         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
4954         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
4955         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
4956         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
4957         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
4958         assignments to bitfields at known addresses
4959         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
4960         reads from bitfields at known addresses
4961         * src/hc08/ralloc.c (packRegisters),
4962         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
4963         genhc08Code): optimize pointer get values used as conditionals
4964         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
4965         and branch
4966
4967 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4968
4969         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
4970         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
4971         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
4972         as conditionals
4973
4974 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4975
4976         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
4977
4978 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4979
4980         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
4981         related problems
4982
4983 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
4984
4985         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
4986
4987 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4988
4989         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
4990         mcs51 port
4991
4992 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
4993
4994         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
4995
4996 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4997
4998         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
4999         cases use more compact code.
5000
5001 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
5002
5003         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
5004
5005 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5006
5007         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
5008
5009 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5010
5011         * src/SDCCsymt.h,
5012         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
5013         parameter of changePointer() from symbol* to sym_link*
5014         * src/SDCCast.c (decorateType): call changePointer() for CAST op
5015         * src/SDCCsymt.c (compareType): void* type is castable to other
5016         pointers, but not necesarily an exact match.
5017         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
5018         is no longer blindly treated as an exact match.
5019         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
5020
5021 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
5022
5023         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
5024
5025 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
5026
5027         * src/pic/gen.c,
5028         * src/pic/pcode.c,
5029         * src/pic/ralloc.h,
5030         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
5031
5032 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
5033
5034         * src/pic/device.c,
5035         * src/pic/device.h,
5036         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
5037
5038 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5039
5040         * src/mcs51/gen.c (emitcode): fixed bug #992819
5041
5042 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
5043
5044         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
5045           there's no need to make it worse
5046
5047 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5048
5049         * src/mcs51/ralloc.c (deassignLR),
5050         * src/ds390/ralloc.c (deassignLR),
5051         * src/hc08/ralloc.c (deassignLR),
5052         * src/z80/ralloc.c (deassignLR),
5053         * src/pic/ralloc.c (deassignLR),
5054         * src/pic16/ralloc.c (deassignLR),
5055         * src/avr/ralloc.c (deassignLR),
5056         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
5057         rlivePoint): fixed another part of bug #971834
5058
5059 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5060
5061         * src/z80/main.c: enabled "critical" keyword
5062         * src/z80/mappings.i,
5063         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
5064         functions (fixes bug #979646)
5065         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
5066
5067 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5068
5069         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
5070           such as c:\mydir.
5071
5072 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
5073
5074         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
5075           doesn't disable too much optimizations
5076
5077 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5078
5079         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
5080
5081 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
5082
5083         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
5084
5085 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5086
5087         * src/pic/gen.c tidied up tabs
5088         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
5089         * src/pic/main.c tidied up tabs
5090         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
5091         * src/pic/pcoderegs.c tidied up tabs
5092         * src/pic/ralloc.c tidied up tabs
5093
5094 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
5095
5096         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
5097         to S_FIXED for pic16 port and when symbol is not in level 0,
5098         allocate for S_REGISTER storage class and pic16 port, too,
5099         * src/pic16/device.h: prototype for checkSym,
5100         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
5101         * (pic16_assignConfigWordValue): test the value and the mask to
5102         validate that the value is suitable for the configuration word,
5103         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
5104         collect extern declared symbols, don't emit symbol twice, check
5105         first if symbol is in publics set first,
5106         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
5107         * added command line '--fstack' which enables an experimental
5108         feature for stack access, too buggy to be used yet...
5109         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
5110         * (pic16_allocDirReg): when register has storage class S_REGISTER
5111         allocate in pic16_dynAccessRegs,
5112         * device/include/pic16/pic18f????.h: modified configuration word
5113         naming convention, words started as CONFIG0H but should be CONFIG1H
5114
5115 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5116
5117         * device/include/mcs51reg.h: fixed bug 970993
5118
5119 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
5120
5121         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
5122         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
5123         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
5124         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
5125         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
5126         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
5127           error/warning numbers,
5128           added function setWarningDisabled()
5129         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
5130         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
5131           _memcmp.c _memmove.c calloc.c realloc.c free.c
5132         * support/regression/tests/malloc.c: added tests for new functionality
5133         * support/regression/tests/zeropad.c: added tests for truncated initializers
5134           and initialized char arrays starting with '\x0'
5135         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
5136
5137 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
5138
5139         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
5140
5141 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5142
5143         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
5144         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
5145         peephole 177.e. Thanks to anonymous
5146
5147 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
5148
5149         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
5150         function isn't used in the source but referenced as a
5151         variable initializer then declare it as extern in .asm file
5152
5153 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
5154
5155         * .version: increased version number to 2.4.3
5156
5157         Adding version extension according to ChangeLog CVS revision
5158         * src/Makefile.in (target all): added dependency 'version.h'
5159         * (rule version.h): added rule to create version.h from ChangeLog,
5160         * (rule dep): added dependency version.h,
5161         * src/version.awk: AWK script to create version.h
5162         * src/SDCCdwarf2.c (dwWriteModule),
5163         * src/SDCCglue.c (initialComments),
5164         * src/SDCCmain.c (printVersionInfo): modified to write after
5165         version string the version extension number,
5166         * src/SDCCutil.c: included "version.h"
5167         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
5168         number,
5169         * src/SDCCutil.h: added prototype for getBuildNumber
5170
5171         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
5172         includeDirsSet, too,
5173         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
5174         const char [] is found in function prototype...
5175
5176         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
5177         moving to WREG with source is already in WREG,
5178         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
5179         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
5180         * (aopForSym): stack'ed symbols are partially supported, added
5181         if-clause to support symbols in FARSPACE,
5182         * (sameRegs): added test for AOP_ACC to see if registers are same,
5183         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
5184         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
5185         * (pic16_popRegFromString): will not allocate a new register if it
5186         doesn't find one by name, bug may have introduced...
5187         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
5188         * (genIpush): revived to use pic16 port's stack,
5189         * (genAddrOf): added incomplete case for stack'ed operand,
5190         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
5191         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
5192         can handle multibyte operands,
5193         * src/pic16/glue.c (pic16_printIval*): some debug info added,
5194         * (pic16initialComments): added message for MPLAB compatibility
5195         mode enabled,
5196         * src/pic16/main.h: prototype for pic16_mplab_comp,
5197         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
5198         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
5199         * (_pic16_linkEdit): NEW, handles link stage, transferred here
5200         because of increased complexity of procedure,
5201         * (_process_pragma): stack pragma changed to format 'stack pos len',
5202         emit symbol '_stack_end' to conform with gplink,
5203         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
5204         to search for register,
5205         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
5206         PO_GPR_REGISTER,
5207         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
5208         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
5209         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5210         case for PO_GPR_REGISTER,
5211         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
5212         dies, the new era is ahead !...
5213         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
5214         pic16_dynInternalRegs,
5215         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
5216         * (pic16_allocDirReg): minor optimizations and bug fixes,
5217         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
5218
5219         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
5220         load stack and frame pointer with address of 'stack_end' symbol
5221
5222 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
5223
5224         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
5225         without source code but only variable initializers
5226
5227 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
5228
5229         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
5230         external are not declared as extern to reduce overhead while linking
5231
5232 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
5233
5234         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
5235
5236 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
5237
5238         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
5239           Yee Keat for the patch
5240         * src/SDCCast.c (decorateType): fixed bug #979599
5241         * src/ds390/gen.h: removed local fReturnSizeDS390
5242         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
5243         * src/ds390/gen.c (genAnd, genOr, genXor),
5244         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
5245
5246 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
5247
5248         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
5249         add relFilesSet to $3, manipulate $2 to handle linking of object
5250         files without source files in command line,
5251         * device/include/pic16 (all headers): added ID location macros,
5252         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
5253         entries for ID location bytes,
5254         * (pic16_assignIdByteValue): NEW,
5255         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
5256         added field dumpcalltree to pic16_options_t,
5257         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
5258         is used instead of pic16_Gstack_base_addr, check if (ifx) before
5259         emitting rFalseIfx label after check_carry label,
5260         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
5261         pic16_emitDIRegs), NEW
5262         * (pic16glue): dump .calltree file when option --calltree found,
5263         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
5264         * (_pic16_genAssemblerPreamble): emit ID locations after
5265         configuration registers,
5266         * (pic16_linkCmd): modifications of the link command,
5267         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
5268         * (pic16_pCodeInitRegisters): don't init stack registers,
5269         * (pic16_findPrevInstruction): fixed bug,
5270         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
5271         bug with immediate registers,
5272         * (buildCallTree): traces stack push and pop,
5273         * (pct2): dump also stack usage for each function,
5274         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
5275         * (pic16_allocDirReg): various modifications,
5276         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
5277         fixed to 1,
5278
5279 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
5280
5281         * src/pic16/pcode.c: removed buggy double colon
5282
5283 2004-07-01 Borut Razem <borut.razem AT siol.net>
5284
5285         * support/scripts/sdcc.nsi: added include/pic16 to setup
5286
5287 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
5288
5289         * device/lib/Makefile.in: fixed bug in target objects-pic16,
5290         * device/lib/pic16/Makefile: prefixed with dash (-) command under
5291         target 'clean',
5292         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
5293         specific command line arguments. Also added sample lkr script
5294         for placing a variable at a specific memory bank.
5295         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
5296         at a specific memory bank,
5297         * (pic16_dump_isection): fixed bug which caused string literals to
5298         be omitted when dumping idata section,
5299         * (pic16_groupRegistersInSection): added code to handle registers
5300         in specific memory banks,
5301         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
5302         public, all references are renamed too,
5303         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
5304         AOP_DPTR2,
5305         * (pic16_storeForReturn): added case to handle when dest is WREG,
5306         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
5307         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
5308         pic16_rel_udata, check to see if that register is marked as being
5309         a member of a specific memory bank,
5310         * (pic16_printIvalCharPtr): added code to add string literals either
5311         to code or the idata sections,
5312         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
5313         also accept the 'udata' pragma,
5314         * src/pic16/main.h: new structure types sectName and sectSym
5315         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
5316         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
5317         * (pic16_findPrevInstruction): fixed, it returned nothing,
5318         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
5319         instruction combinations,
5320         * (pic16_FixRegisterBanking): heavily reorganised,
5321         * (pic16_AnalyzeBanking): if generating banksel directives is
5322         disabled, then don't call FixRegisterBanking at all,
5323         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
5324         completely removed,
5325         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
5326
5327 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5328
5329         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
5330         Phuah Yee Keat <yk.phuah AT nestac.com>
5331
5332 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5333
5334         * src/pic16/glue.c (pic16createInterruptVect): function now emits
5335         correctly the IVT even if it is relocated to some other location
5336
5337 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5338
5339         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
5340         * device/include/pic16/pic18f2220.h: NEW,
5341         * device/lib/pic16/libdev/pic18f2220.c: NEW,
5342         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
5343         * src/pic16/device.c (struct Pics16): added info for 18f2220,
5344         * src/pic16/device.h (struct pic16_options): added ivt_loc and
5345         nodefaultlibs, ivt_loc is the location of the interrupt vector
5346         table, and nodefaultlibs signs that default libraries should not be
5347         linked in link stage,
5348         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
5349         according to --ivt-loc argument,
5350         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
5351         when pragma stack is found,
5352
5353 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5354
5355         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
5356         256 (range check), 257 (do while), 258.a-f (bit banging
5357         f.e. on 3-wire SPI bus)
5358
5359 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5360
5361         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
5362         variables used exclusively within a loop
5363
5364 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
5365
5366         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
5367
5368 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5369
5370         * src/SDCClrange.c (computeClash): fixed bug #971834
5371
5372 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5373
5374         * src/mcs51/gen.c (genCmp): fixed bug #975903
5375         * src/hc08/gen.c (operandsEqu),
5376         * src/ds390/gen.c (operandsEqu),
5377         * src/z80/gen.c (operandsEqu),
5378         * src/pic/gen.c (operandsEqu),
5379         * src/pic16/gen.c (operandsEqu),
5380         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
5381         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
5382
5383 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5384
5385         * src/SDCCcse.c (cseBBlock): fixed bug #966963
5386
5387 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
5388
5389         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
5390         default case in switch statement,
5391         * glue.c (pic16_initPointer): expr is initialised via decoarteType
5392         to eliminate problem with initialisation of pointers, but problem
5393         still exists,
5394         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
5395         * (emitStaticSegment): removed various lines emitting debug info,
5396         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
5397         added processor registers for utilizing EEPROM,
5398         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
5399         configurable and set 8
5400
5401 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
5402
5403         * .version: increased version number to 2.4.2,
5404
5405         Cumulative patch for pic16 port
5406         * src/pic16/device.c: changed scheme to dump initial values for
5407         variables in idata segment, all print_idata* functions were removed,
5408         now the pic16_printIval* will be called,
5409         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
5410         * _pic16_printPointerType, pic16_printPointerType,
5411         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
5412         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
5413         NEW, similar to the respective functions in SDCCglue.c,
5414         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
5415         way, emitting hex bytes,
5416         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
5417
5418 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5419
5420         * src/avr/ralloc.c (serialRegAssign),
5421         * src/xa51/ralloc.c (serialRegAssign),
5422         * src/pic/ralloc.c (serialRegAssign),
5423         * src/pic16/ralloc.c (serialRegAssign),
5424         * src/hc08/ralloc.c (serialRegAssign),
5425         * src/z80/ralloc.c (serialRegAssign),
5426         * src/ds390/ralloc.c (serialRegAssign),
5427         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
5428
5429 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5430
5431         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
5432         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
5433
5434 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
5435
5436         Cumulative patch for pic16 port:
5437         * src/pic16/device.h (typedef PIC16_device) modified fields for
5438         defining microcontrollers,
5439         * src/pic16/device.c: added new info for all devices in Pics16 array,
5440         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
5441         to be optimised out by the pCode optimiser,
5442         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
5443         specially, bug reported by G.M. Gallant,
5444         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
5445         as force'd so that cannot be optimised out by pCode optimiser,
5446         * src/pic16/pcode.c,
5447         * src/pic16/pcodepeeph.c,
5448         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
5449         they are disabled by default, but can be enabled explicit with
5450         command argument --denable-peeps, for testing,
5451         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
5452         --pomit-ivt in COMPILE_FLAGS
5453
5454 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5455
5456         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
5457           compilation on MSVC
5458
5459 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5460
5461         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
5462
5463 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5464
5465         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
5466         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
5467
5468 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
5469
5470         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
5471         would only assign 0x300001 register.
5472
5473 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
5474
5475         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
5476         in COMPILE_FLAGS. Thanks to G. Gallant for report.
5477
5478 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5479
5480         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
5481         for ds80c400
5482         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
5483         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
5484         added peephole 254 (left shift), 255 (jump table)
5485
5486 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
5487
5488         * device/lib/Makefile.in: removed comment line with model-pic16,
5489         * (target port-specific-objects-pic16): the libraries and objects
5490         are copied to the build directory form the device/lib/pic16/bin
5491         directory
5492
5493         Cumulative patch concerning pic16 port:
5494         * library directory has been re-organized,
5495         * added support for PIC18F1220,
5496         * added headers and library sources for chips 18f1220,18f6520,
5497         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
5498
5499         * configuration registers setting has changed, now each supported
5500         device has a complete description of the registers it uses,
5501         * all initialisations are moved to idata sections, these section
5502         can be absolute or relocatable,
5503         * fixed initialisation of codespace variables,
5504         * fixed warning about PCLATU and gpsim,
5505         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
5506         * (genAssign): use table reads when assigning from variables in codespace,
5507         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
5508         char/int variables placed in codespace,
5509         * (pic16_emitConfigRegs): NEW, emits a list with configuration
5510         registers set in .asm file, no need for --pomit-config-words anymore,
5511         * (pic16glue): some 8051 legacy segments are commented out
5512         (to be removed completely),
5513         * added support for alternative assembler and linker with --asm=
5514         and --link= command line arguments,
5515         * peepholes are disabled automatically in the port, no need to
5516         specify on command line,
5517         * port supports natively char/int/long multiplication, but converts
5518         all divisions to support functions,
5519         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
5520         to the file set in variable $2,
5521         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
5522         strings in ASCII format and not in hex,
5523         * ralloc.c (serialRegAssign): added a triplet of conditional calls
5524         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
5525         allocate proper register if iCodes aren't temporary,
5526
5527 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5528
5529         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
5530
5531 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
5532
5533         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
5534         is commented out
5535
5536 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5537
5538         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
5539         computed address is reused
5540         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
5541         multi-byte bitfields
5542
5543 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5544
5545         * src/z80/gen.c: (genArrayInit): must check for pointers too
5546
5547 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5548
5549         * support/regression/tests/zeropad.c: never meant to commit the
5550           nestedstruct test: removed, added check for GCC version
5551
5552 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
5553
5554         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
5555         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
5556         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
5557           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
5558           bugs 928906 and 954082 half-empty initializers
5559         * src/SDCCsymt.h,
5560         * src/SDCCsymt.c (getAllocSize): added for above fix
5561         * src/z80/gen.c (genArrayInit): fixed bug 741044
5562         * support/regression/tests/zeropad.c: added tests
5563
5564 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
5565
5566         * src/pic16/device.c (pic16_dump_section): corrected bug which
5567         caused some symbols of the libraries to be misplaced
5568
5569 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5570
5571         * src/pic16/glue.c,
5572         * src/pic16/ralloc.h,
5573         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
5574         to fix conflict with pic port
5575
5576 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5577
5578         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
5579         externs configuration variables,
5580         * src/pic16/ralloc.h,
5581         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
5582         prototype in header, commented out some debug messages
5583
5584 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
5585
5586         * src/pic16/glue.c,
5587         * src/pic16/main.c,
5588         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
5589         for gpasm COFF object generation. Thanks to D. Hawkins for
5590         his patch info
5591
5592 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5593
5594         * src/ds390/main.c,
5595         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
5596         Brock for spotting this)
5597         * src/ds390/gen.c (genEndFunction),
5598         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
5599         interrupt handler and critical. Disable push/pop optimizations when
5600         peephole optimizations disabled.
5601
5602 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5603
5604         Updated pic16 library sources and headers.
5605         * device/lib/pic16/pic18f*/ ,
5606         * device/include/pic16/*.h: modified to handle structured SFR
5607         definitions
5608
5609 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5610
5611         * src/port.h (PORT structure): added hook initPaths, now each
5612         port can declare its own default search paths,
5613         which can been seen with the --print-search-dirs option,
5614         see pic16 port for example,
5615         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
5616         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
5617         * (doPrintSearchDirs): NEW, replaces in a central manner the
5618         printing of search dirs which was split in set*Paths functions,
5619         * (main): added call to port->initPaths and doPrintSearchDirs,
5620         * src/avr/main.c,
5621         * src/ds390/main.c,
5622         * src/hc08/main.c,
5623         * src/izt/i186.c,
5624         * src/izt/tlcs900h.c,
5625         * src/mcs51/main.c,
5626         * src/pic/main.c,
5627         * src/pic16/main.c: modified port structures to reflect addition of
5628         initPaths hook,
5629
5630         * src/pic16/device.c (regCompare): registers are finally sorted by name,
5631         * (pic16_dump_section): for registers in same address reserve memory once,
5632         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
5633         to no_banksel,
5634         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
5635         result is greater in size than right or left,
5636         * (pic16_genUMult8X8_8): there are some cases where the result can
5637         be 16 bits size, so handle these,
5638         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
5639         * (pic16_outBitC): modified to emit pcodes,
5640         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
5641         or not,
5642         * (genDivOneByte): implemented algorithm to divide 8-bits,
5643         * (genCmp): uncommented goto, but issues still exist,
5644         * (genAnd): fixed a bug with variables >8bits,
5645         * (genPackBits): optimization added that uses BCF/BSF to change a
5646         single bit,
5647         * (genAssign): fixed bug when assigning floating point literals,
5648         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
5649         __sdcc_gsinit_startup label,
5650         * src/pic16/main.c (_pic16_init): removed search directory
5651         initialisations,
5652         * (_pic16_initPaths): NEW, used to initialise search directories,
5653         * (_hasNativeMulFor): support functions for all except char/int
5654         multiplication, and char division,
5655         * (PIC16_port struct): modified entry for native mul support,
5656         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
5657         no_banksel option,
5658         * (buildCallTree): call to register_usage is ifdef'ed out,
5659
5660 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5661
5662         * device/include/string.h: applied Stas Sergeev's patch to make this
5663         header file compatible with the preprocessor -Wundef option
5664         * src/SDCCmain.c (main): abort compilation if preprocessor reports
5665         failure (fixes bug #941458)
5666
5667 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5668
5669         * src/SDCCopt.c (killDeadCode): fixed bug #907733
5670         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
5671         that the variable, not the function, should be static
5672         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
5673         to be consistent with non-literal case
5674
5675 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5676
5677         * src/SDCCast.c (isConformingBody): fixed bug #949967
5678         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
5679         convilong): fixed bug #952086
5680
5681 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5682
5683         * src/SDCCmem.c (allocVariables): fixed bug #955321
5684
5685 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5686
5687         * src/hc08/main.c (_hc08_genAssemblerEnd),
5688         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
5689         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
5690         completely eliminated the use of a temporary file
5691         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
5692         when more than one file linked
5693         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
5694
5695 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5696
5697         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
5698         which fixes bug #543481
5699         * support/regression/tests/bug-751703.c: fixed comments left from a
5700         cut and paste error
5701         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
5702         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
5703         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
5704         scopes
5705         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
5706         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
5707         are now changed to underscores in moduleName
5708
5709 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5710
5711         * as/mcs51/lkmem.c: better fix for bug #954173
5712
5713 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5714         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5715
5716         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
5717         * device/include/c8051f000.h,
5718         * device/include/c8051f120.h,
5719         * device/include/c8051f300.h,
5720         * device/include/c8051f310.h,
5721         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
5722         PWM16) and detab'ed
5723
5724 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5725
5726         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
5727         and mailing lists, doc'ed --no-peep-comments, removed reference
5728         to knoppix (newest version has no LyX/LaTeX), other minor changes
5729         * src/SDCCglue.c (glue): save 2 bytes stack space with
5730         option --main-return. The ljmp could probably be avoided too
5731
5732 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5733
5734         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
5735
5736 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5737
5738         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
5739         * src/SDCCopt.c (isLocalWithoutDef),
5740         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
5741         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
5742         (credit to Maarten Brock for patch #949363, on which this is based)
5743         * support/regression/tests/bug-751703.c: some test cases of extern used
5744         within inner scopes.
5745
5746 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5747
5748         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
5749         SPEC_STRUCT
5750         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
5751         struct definitions
5752         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
5753         dwWriteLabel): fix to create valid debugger symbols even when
5754         the module name has non-alphanumeric symbols in it
5755         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
5756         when a variable's allocation has been optimized away
5757
5758
5759 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5760
5761         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
5762         * src/hc08/main.c,
5763         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
5764         * src/mcs51/main.c,
5765         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
5766         * src/ds390/main.c,
5767         * src/z80/gen.c (z80_emitDebuggerSymbol),
5768         * src/z80/main.c,
5769         * src/pic/gen.c (pic14_emitDebuggerSymbol),
5770         * src/pic/main.c,
5771         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
5772         * src/pic16/main.c,
5773         * src/avr/gen.c (avr_emitDebuggerSymbol),
5774         * src/avr/main.c,
5775         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
5776         * src/xa51/main.c,
5777         * src/SDCCdebug.c (emitDebuggerSymbol),
5778         * src/SDCCdebug.h,
5779         * src/port.h: added a debugger struct to the port struct. Added a
5780         callback for defining debugger symbols
5781
5782         * src/SDCCast.c (createLabel),
5783         * src/SDCC.y (labeled_statement): mark all compiler generated labels
5784         with isitmp = 1
5785         * src/SDCCicode.h,
5786         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
5787         iCode back to the ast for the function
5788
5789         * src/hc08/ralloc.c (hc08_assignRegisters),
5790         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
5791         unneeded fields from the regs struct.
5792         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
5793         pushReg() & pullReg() functions instead of emitcode()
5794
5795         * src/hc08/gen.c (genLabel, genhc08Code),
5796         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
5797
5798         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
5799         debugger hooks
5800
5801         * src/hc08/gen.c (genEndFunction, genhc08Code),
5802         * src/hc08/gen.h,
5803         * src/mcs51/gen.c (genEndFunction, gen51Code),
5804         * src/mcs51/gen.h,
5805         * src/ds390/gen.c (genEndFunction, gen390Code),
5806         * src/ds390/gen.h,
5807         * src/z80/gen.c (genEndFunction, genZ80Code),
5808         * src/z80/gen.h,
5809         * src/z80/z80.h,
5810         * src/pic/gen.c (genEndFunction, genpic14Code),
5811         * src/pic/gen.h,
5812         * src/pic16/gen.c (genEndFunction, genpic16Code),
5813         * src/pic16/gen.h,
5814         * src/avr/gen.c (genEndFunction, genAVRCode),
5815         * src/avr/gen.h,
5816         * src/xa51/gen.c (genEndFunction, genXA51Code),
5817         * src/xa51/gen.h,
5818         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
5819         specific code to cdbFile.c and out of the backend code generators
5820
5821         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
5822         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
5823         starting address is now 0
5824
5825         * as/hc08/asm.h,
5826         * as/hc08/m08pst.c,
5827         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
5828         assembler directive for DWARF support
5829         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
5830
5831         * src/src.dsp,
5832         * src/Makefile.in,
5833         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
5834
5835 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5836
5837         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
5838         and inappropriate peephole optimization in jump tables
5839
5840 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5841
5842         * as/hc08/m08pst.c,
5843         * src/SDCCglue.c: sdccopt works for the hc08 port now
5844
5845 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
5846
5847         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
5848
5849 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5850
5851         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
5852
5853 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5854
5855         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
5856         rules
5857         * src/SDCCmain.c,
5858         * src/SDCCglobl.h,
5859         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
5860         comments from the peephole optimizer replacement rules
5861         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
5862         symbols
5863         * src/SDCCcse.c (updateSpillLocation),
5864         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
5865         equivalents
5866         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
5867         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
5868         objects far pointers
5869
5870 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5871
5872         * src/SDCCsymt.h: a missing part of my last change
5873         * src/pic/ralloc.c (regTypeNum),
5874         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
5875
5876 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5877
5878         * src/SDCCicode.h,
5879         * src/SDCCicode.c (aggrToPtrDclType),
5880         * src/SDCCptropt.h,
5881         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
5882         ptrPseudoSymConvert),
5883         * src/pic/ralloc.c (regTypeNum),
5884         * src/pic16/ralloc.c (regTypeNum),
5885         * src/hc08/ralloc.c (regTypeNum),
5886         * src/ds390/ralloc.c (regTypeNum),
5887         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
5888         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
5889
5890 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5891
5892         * link/z80/lkmain.c (afile),
5893         * as/hc08/lkmain.c (afile),
5894         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
5895         prevent a pointer problem when a filename has no directory and
5896         no extension specified.
5897
5898 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5899
5900         * link/z80/lkmain.c (afile): allow periods in directory names
5901         * link/z80/lkmain.c (afile),
5902         * as/mcs51/lkmain.c (afile),
5903         * as/hc08/lkmain.c (afile): allow linker script file to have an
5904         extension other than ".lnk"
5905         * link/z80/lklex.c (getfid),
5906         * link/z80/lkmain.c (parse),
5907         * as/mcs51/lklex.c (getfid),
5908         * as/mcs51/lkmain.c (parse),
5909         * as/hc08/lklex.c (getfid),
5910         * as/hc08/lkmain.c (parse): Support comments in the linker script
5911         file on lines by themselves and after filenames
5912
5913 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5914
5915         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
5916
5917 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5918
5919         * src/z80/peeph-z80.def: removed some peephole rules that don't
5920         work with multibyte arithmetic (fixed bug #937126)
5921         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
5922         to registers and not global variables
5923         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
5924         geniCodePreInc, geniCodePostDec, geniCodePreDec,
5925         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
5926         checking for assignments not internally generated (fixed bug #931895)
5927         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
5928         structure member (fixed bug #930072)
5929
5930 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5931
5932         * src/SDCCmain.c (linkEdit),
5933         * src/hc08/main.c (_hc08_parseOptions),
5934         * as/hc08/Makefile.in,
5935         * as/hc08/aslink.h,
5936         * as/hc08/asm.h,
5937         * as/hc08/m08pst.c,
5938         * as/hc08/lkrloc.c (relr, rele),
5939         * as/hc08/lkarea.c (lnkarea)
5940         * as/hc08/lkmain.c (afile, parse),
5941         * as/hc08/lkelf.c: support for ELF output
5942         * as/hc08/lks19.c (s19),
5943         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
5944
5945 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5946
5947         * as/mcs51/lkihx.c: Fixed bug #899105.
5948
5949 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5950
5951         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
5952         .dsp files from Unix to DOS.
5953
5954 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5955
5956         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
5957         function pointers; we have been compliant for several months now.
5958         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
5959         change that was accidently commented out
5960         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
5961         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
5962         bug #922319
5963
5964 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5965
5966         * src/hc08/gen.c: output of all of the internal debugging information
5967         is now controlled by the D() macro; it is disabled by default
5968
5969 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5970
5971         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
5972         harder to keep the same registers during a CAST iCode
5973         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
5974         long via int can be done in a single cast, if the signedness is
5975         correct.
5976         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
5977         putchar() in tinibios.c in ds390's library
5978
5979 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
5980
5981         * src/SDCCast.c (decorateType): fixed bug #898889,
5982         cast result of a literal complement too
5983         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
5984         fixed check for bitfields
5985
5986 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
5987
5988         * src/SDCCicode.c (geniCodeLogic): made it static,
5989         (geniCodeLogicAndOr): added in order to fix bug #905492,
5990         (ast2iCode): fixed bug #905492
5991         * support/regression/tests/bug-905492.c: added
5992         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
5993         (processParms): fixed bug #927659: don't copy parms, this will clear
5994         decorated flag
5995         * support/regression/tests/bug-927659.c: added
5996
5997 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
5998
5999         * src/SDCCast.c (addCast): don't cast float to char
6000         * device/lib/libsdcc.lib: added _memmove
6001
6002 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
6003
6004         * device/lib/large/Makefile: fixed parallel execution by
6005         replacing `make` by `$(MAKE)`
6006
6007 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6008
6009         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
6010         offsets (fixes bug #923936)
6011
6012 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
6013
6014         * device/lib/small/Makefile: fixed parallel execution by
6015         replacing `make` by `$(MAKE)`
6016
6017 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6018
6019         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
6020
6021 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
6022
6023         * src/pic/gen.c (genCpl): multi-byte complements were not working.
6024         * src/regression/Makefile: Regression test was not running.
6025
6026 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6027
6028         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
6029         complement if possible
6030         * src/SDCCval.c (valComplement),
6031         * src/SDCCicode.c (operandOperation): fixed complement of literal
6032         * support/regression/tests/onebyte.c (testComplement): added
6033
6034 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
6035
6036         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
6037         return an optimized tree; actually replace actParm with the new tree
6038         * src/SDCCast.h: added some parantheses to remove side effects
6039         * support/regression/tests/bug-920866.c
6040
6041 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
6042         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
6043         Bit operands were not being handled properly in the pic14 port.
6044         (now src/regression/add.c passes again).
6045
6046 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6047
6048         * src/SDCC.y (labeled_statement): case and default no longer require
6049         a following statement (RFE #893037)
6050
6051 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6052
6053         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
6054         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
6055         disabled (fixes bug #916294)
6056         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
6057         "mov a,acc"; patch provided by Lenny Story
6058         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
6059
6060 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6061
6062         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
6063         functions
6064         * src/ds390/gen.c (genFunction, genEndFunction),
6065         * src/ds390/ralloc.c (ds390_assignRegisters),
6066         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
6067         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
6068         pushed if there are parameters passed on the stack. Also, a cleaner
6069         way to decide if r0/r1 should be pushed/popped. (Together they fix
6070         bug #918693)
6071
6072 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6073
6074         * doc/sdccman.lyx,
6075         * device/lib/mcs51/crtpagesfr.asm,
6076         * device/lib/mcs51/crtxinit.asm,
6077         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
6078         to avoid confusion with Si Lab's SFRPAGE register.
6079
6080 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6081
6082         * src/SDCCglue.c (emitMaps): allow public sfr variables
6083         * src/SDCCglue.c (initialComments): include compiler build date
6084         with compiler version and put the timestamp of the generated
6085         assembly file on a serperate line to be less confusing.
6086         * src/port.h: added genInitStartup hook
6087         * src/avr/main.c,
6088         * src/ds390/main.c,
6089         * src/hc08/main.c,
6090         * src/pic/main.c,
6091         * src/pic16/main.c,
6092         * src/xa51/main.c,
6093         * src/z80/main.c: genInitStartup initialize as NULL (default to
6094         historical behaviour)
6095         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
6096         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
6097         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
6098         library instead of hard coding it into the compiler.
6099         * support/regression/ports/mcs51-stack-auto/spec.mk,
6100         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
6101         * device/lib/mcs51/Makefile,
6102         * device/lib/small/Makefile,
6103         * device/lib/large/Makefile,
6104         * device/lib/mcs51/crtpagesfr.asm,
6105         * device/lib/mcs51/crtstart.asm,
6106         * device/lib/mcs51/crtxclear.asm,
6107         * device/lib/mcs51/crtxinit.asm,
6108         * device/lib/mcs51/crtclear.asm,
6109         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
6110         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
6111         and into user configurable files.
6112         * device/lib/clean.mk: clean mcs51 directory too
6113         * support/regression/tests/longlit.c: added static to T1 declaration
6114         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
6115         accesses in the initialization code
6116
6117 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6118
6119         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
6120         OSCTRIMVAL as noted in bug #916008
6121
6122 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6123
6124         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
6125         in loops with multiple exits (reported as incorrect registers
6126         used by Martin Helmling in Sdcc-user list)
6127
6128 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6129
6130         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
6131         made ds390 register extensions look less like error messages
6132
6133 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6134
6135         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
6136         reported by Adam Wozniak in Sdcc-user list
6137
6138 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
6139
6140         * src/SDCCast.c (decorateType): fixed with bug and promotion in
6141         arithmetic optimizations, added debug output
6142
6143 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
6144
6145         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
6146         * sdcc.spec: updated and split sdcc into 3 rpms
6147         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
6148         needed for literals of LEFT_OP and '+'
6149         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
6150         introduced RESULT_TYPE_NOPROM
6151         (geniCodeMultiply): fixed logic for decision if mul is optimized to
6152         left shift
6153         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
6154         limited promotion to int only for '*'
6155         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
6156
6157 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
6158
6159         * src/pic16/gen.c (genSkip),
6160         (genc16bit2lit), (gencjneshort): commented out
6161         (is_LitOp): new helper function, checks operand type
6162         (genCmpEq): rewritten
6163
6164 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
6165
6166         * support/regression/tests/bug-908454.c: added
6167
6168 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
6169
6170         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
6171         * src/SDCCicode.c (usualBinaryConversions): op needs int type
6172         (geniCodeCast): cosmetic, don't preserve bit storage class
6173         (geniCodeLeftShift): added promotion
6174         (geniCodeLogic): fixed regression
6175         * src/SDCCsymt.c (computeTypeOr): accept bits too
6176         (compareType): 2nd part of fix for bug #908454, needed for bitfields
6177
6178 2004-03-07  Borut Razem <borut.razem AT siol.net>
6179
6180         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
6181
6182 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
6183
6184         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
6185         version of pic16_genPackRegisters which does not check if ic is a
6186         CAST operator,
6187         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
6188         function cause string1.c regression test fails
6189
6190 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
6191
6192         * sim/ucsim/configure.in,
6193         * sim/ucsim/configure,
6194         * sim/ucsim/doc/Makefile.in: use docdir
6195         * src/SDCC.y: fixed sbit atrributes
6196         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
6197         * src/SDCCast.c (decorateType): |^& need special promotion handling
6198         * src/SDCCast.h,
6199         * src/SDCCsymt.h: moved definition of RESULT_TYPE
6200         * src/SDCCsymt.h (computeType),
6201         * src/SDCCicode.c: computeType() needs op
6202         * src/SDCCsymt.c (checkTypeSanity),
6203         * doc/sddman.lyx: "plain" bitfields are unsigned
6204         * src/SDCCsymt.c (computeTypeOr): added
6205         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
6206         |^& ops
6207         * src/SDCCval.c (val*): computeType() needs op
6208         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
6209         * support/regression/tests/onebyte.c: added tests for |^&
6210
6211 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
6212
6213         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
6214         for writing icode into asm output.
6215
6216 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
6217
6218         * src/pic16/device.c: added some debug lines enabled
6219         with macro DEBUG_CHECK,
6220         * src/pic16/genarith.c: more debug in genPlus,
6221         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
6222         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
6223         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
6224         * (aopForSym): onStack symbols are re-placed in data memspace,
6225         and onStack flag is cleared,
6226         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
6227         copy temporary pcodeop,
6228         * (genPcall): added warning for not updating PCLATU,
6229         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
6230         always true for pic16 port,
6231         * (genMultOneWord): NEW, supports integer multiplication,
6232         * (genMult): modified to call genMultOneWord,
6233         * (ifxForOp): added warning when return NULL,
6234         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
6235         flag is set before call to operandFromSymbol for implicit
6236         added structures,
6237         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
6238         options.intlong_rent are set by default,
6239         * (_hasNativeMulFor): modified to allow port generation of integer
6240         multiplication,
6241         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
6242         set regtype to REG_SFR for all registers, restricting seting the
6243         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
6244
6245 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6246
6247         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
6248         more than 500 times in the regression tests
6249
6250 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6251
6252         * support/Util/SDCCerr.h,
6253         * support/Util/SDCCerr.c,
6254         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6255         enumerator_list),
6256         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
6257         for symbol conflicts.
6258         * support/valdiags/tests/enum.c,
6259         * support/valdiags/tests/tentdecl.c,
6260         * support/valdiags/tests/struct.c: expect possible error messages
6261         referring to original symbol definitions.
6262         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
6263         * src/SDCCsymt.h,
6264         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
6265
6266 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
6267
6268         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
6269
6270 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
6271
6272         * src/pic16/ralloc.c (newReg): fixed bug #908929
6273
6274 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6275
6276         * src/ds390/gen.c: added missing #include "main.h"
6277
6278 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
6279
6280         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
6281         checking if symbol is already in set,
6282         * src/pic16/device.h: prototype for checkAddSym,
6283         * src/pic16/gen.c: (_G): added entry interruptvector,
6284         * (assignResultValue): removed some commented out lines,
6285         * (genFunction): check for ISR via sym->type, absolute section for
6286         interrupt code is created via a new pBlock, the goto instruction is
6287         placed now correctly at the interrupt vector position, changed all
6288         references from ivec to _G.interruptvector,
6289         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
6290         is the interrupt is a high priority one, same for return from ISR,
6291         * src/pic16/glue.c: changed all calls of addSetHead for publics and
6292         externs to calls of checkAddSym,
6293         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
6294         pic16_pcode_verbose flag is set,
6295         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
6296         * src/pic16/pcoderegs.c: message about how many registers are saved
6297         will only be emitted if pic16_pcode_verbose flag is set,
6298
6299 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6300
6301         * src/ds390/ralloc.h,
6302         * src/ds390/ralloc.c (ds390_regWithIdx),
6303         * src/ds390/gen.c (emitcode),
6304         * src/ds390/main.h,
6305         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
6306         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6307         ds390operandCompare, getRegsRead, getRegsWritten,
6308         initializeAsmLineNode): customized instruction size calculation for
6309         ds390, started basis for some register optimizations
6310         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
6311         corresponding assembly output
6312         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
6313         missing push/pop of r0/r1. Optimized push/pops
6314
6315 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6316
6317         * src/mcs51/main.c (instructionSize): fixed ACALL size
6318         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
6319
6320 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
6321
6322         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
6323         the sorting of rlist with NULL elements
6324         * (print_idataType, print_idata): NEW to create idata sections
6325         * src/pic16/device.h: idataSymSet new variable
6326         * src/pic16/gen.c (genFunction): fixed some bugs in string
6327         comparing, improved the absolute section creation for ISRs,
6328         added FSR0L/FSR0H in registers that are saved in an ISR,
6329         * (genInline): fixed the processing of inline snippets,
6330         now they undergo no process by the peephole optimizer
6331         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
6332         are placed in idataSymSet,
6333         * (pic16emitStaticSeg): extern symbols are added in externs,
6334         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
6335         switching when aboslute variables are placed in access bank memory
6336         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
6337         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
6338         commented out with #if,
6339         * (pic16_packRegisters): reintroduce the check for CAST because some
6340         symbols are not correctly handled,
6341         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
6342         pCodeInstruction instead of pCode,
6343         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
6344         pCodeAsmDir definition,
6345         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
6346         directive, then the argument directive is emitted without the leading
6347         tab, hack for inline labels which must be in the first column,
6348         * (compareLabel,pic16_findNextInstruction),
6349         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
6350         * (insertBankSwitch): modified for the new pCodeAsmDir,
6351
6352 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6353         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
6354
6355         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
6356         instance,
6357         * (pushSide): commented out with #if,
6358         * (assignResultValue): fixed some typos in saving
6359         registers,
6360         * (genPcall): FIXED and sync'ed with genCall,
6361         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
6362         * (genNearPointerGet): fixed to handle some more cases,
6363         implementation scheme via table reads,
6364         * (genConstPointerGet): modified to access code memory correct,
6365         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
6366         and improved to handle some cases
6367         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
6368         instead of "RETLW" for init data
6369         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
6370         not IN_DIRSPACE, work around to reduce bank switching when aboslute
6371         variables are placed in access bank memory (<0x80 and >=0xf80),
6372         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
6373         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
6374         TBLWT_POSTDEC,TBLWT_PREINC
6375         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
6376         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
6377         directives
6378         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
6379         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
6380         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
6381         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
6382
6383 2004-02-29  Borut Razem <borut.razem AT siol.net>
6384
6385         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
6386         support/Util/findme.h, support/Util/system.h: enhance binary relative
6387         search for lib and include by using findProgramPath()
6388
6389 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6390
6391         * src/SDCCpeeph.h,
6392         * src/SDCCpeeph.c (pcDistance),
6393         * src/port.h,
6394         * src/mcs51/ralloc.h,
6395         * src/mcs51/ralloc.c (mcs51_regWithIdx),
6396         * src/mcs51/main.h,
6397         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
6398         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6399         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
6400         size calculation port specific, started basis for some register
6401         optimizations
6402         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
6403         missing push/pop of r0/r1. Optimized push/pops
6404         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
6405         * device/lib/_modsint.c (_modsint),
6406         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
6407         and stack version so regression tests pass
6408
6409 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
6410
6411         * src/Makefile.in (dep): include SLIBOBJS in dependency check
6412         * src/SDCCast.c (decorateType): catch another small optimization
6413         with '?' operator
6414         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
6415         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
6416         modified to finally use computeType() all over SDCC,
6417         see Feature Request #877103
6418         * src/SDCCval.h: cosmetic
6419         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
6420         valCompare(); regression tested in muldiv.c
6421         * support/regression/tests/muldiv.c (testMod): mod sign follows
6422         dividend only
6423
6424 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
6425
6426         * src/SDCCast.c (decorateType): fixed bug #902362
6427         * doc/INSTALL.txt: fixed install instructions for win32
6428
6429 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
6430
6431         * device/include/Makefile.in (install): fixed by replacing spaces
6432         by tabs
6433         * doc/README.txt,
6434         * doc/INSTALL.txt: updated for release
6435         * doc/sdccman.lyx: added warning for --xstack being buggy
6436
6437 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
6438
6439         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
6440         to eliminate build warnings.
6441         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
6442
6443 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
6444            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6445
6446         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
6447         removed -penable-stack, added comment for stack pragma, added
6448         warning for not initializing the stack/frame registers, removed
6449         comment at interrupts section
6450
6451         Stack is made permanent, there is no ability to disable stack usage.
6452         * src/pic16/device.h,
6453         * src/pic16/device.c: removed all references to USE_STACK macro,
6454         * src/pic16/device.c (pic16_dump_section): when no elements in
6455         rlist, free rlist before return,
6456         * (pic16_dump_int_registers): NEW, internal registers are a new set
6457         of general purpose registers reused by each function,
6458         * (checkAddReg): returns 1 if registers is added to set,
6459         * (pic16_groupRegistersInSection): when a registers is of type
6460         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
6461         * src/pic16/device.h: memRange and Assigned Memory are deleted,
6462         SRCASECMP macro is moved here from device.c
6463         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
6464         PO_PCLATU, PO_PRODL, PO_PRODH,
6465         * (pic16_pCodeOpType, genMinus,
6466         changed compares to "a" register, with AOP_ACC,
6467         * (pic16_genPlus): fixed some bugs and indented properly,
6468         * (pic16_addSign): changed size to size+offset in the MOVWF
6469         instruction,
6470         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
6471         multiply 8-bit operand by literal, result is 8-bit,
6472         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
6473         multiply 2 8-bit operand, result is 8-bit,
6474         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
6475         genUMult8X*_16,
6476         * src/pic16/gen.c: changed accUse to contain WREG only,
6477         * (pic16_emitcomment): renamed to pic16_emitpcomment,
6478         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
6479         true, do not use immediate addressing any more unless sym is a
6480         pointer in codespace,
6481         * (aopForRemat): do not use immediate addressing when symbol not in
6482         codespace and when symbol's address is requested,
6483         * (aopOp): for-loop in if(sym->accUse) is modified for the new
6484         accUse size (= 1),
6485         * (aopGet): added case for AOP_ACC and don't return "accumulator
6486         bug" but WREG instead,
6487         * (popGetTempReg): pushes contents of temporary register in stack,
6488         * (popReleaseTempReg): pops contents of temporary register from
6489         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
6490         * (pic16_popGet): separated case AOP_ACC to return register WREG
6491         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
6492         or PO_IMMEDIATE and initializes their instance/offset appropriately,
6493         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
6494         the use of immediate pointers to certain cases only.
6495
6496         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
6497         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
6498         * (assignResultValue, genCall, genRet): modified to use the new
6499         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
6500         genPcall is still broken,
6501         * (genFunction): added code to create 'A' type pBlocks when
6502         interrupt functions are generated, code not extensively tested yet,
6503         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
6504         * (genEndFunction): modified so ISRs pop stored registers from stack,
6505         * (genMultOneByte): cleanup,
6506         * (AccRsh): added flag andmask, to and result with appropriate mask,
6507         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
6508         * (genDataPointerGet): fixed and reenabled its use,
6509         * (genNearDataPointerGet): bugs fixed,
6510         * (genDataPointerSet): bugs fixed,
6511         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
6512         pic16_DumpSymbol, pic16_DumpOp,
6513         * src/pic16/genutils.h: function prototypes for the above functions,
6514         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
6515         pointers,
6516         * (pic16emitRegularMap): many many many improvements, but needs a
6517         major cleanup,
6518         * src/pic16/main.c: enable_stack in pic16_options is removed,
6519         * (_pic16_parseOptions): removed command line options -penable-stack,
6520         * (_process_pragma): emit stack symbol only when stack pragma is
6521         processed,
6522         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
6523         redirected to FSR0L/FSR0H pair,
6524         * (pic16_get_op, pic16_get_op2): modifications and improvements,
6525         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6526         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
6527         for immediates,
6528         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
6529         * (dumpPicOptype): NEW,
6530         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
6531         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
6532         with movff instruction,
6533         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
6534         added pic16_int_regs, some packRegsFor* functions are commented out,
6535         because produce errors,
6536         * src/pic16/NOTES: minor modifications
6537
6538 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6539
6540         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
6541         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
6542         --pack-iram.
6543         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
6544         * as/mcs51/lkaomf51.c: fixed bug #895763
6545
6546 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
6547
6548         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
6549
6550 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6551
6552         * doc/sdccman.lyx: added details about the HC08 storage classes and
6553         interrupts, fixed the register usage info for z80 & gbz80
6554
6555 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
6556
6557         * doc/sdccman.lyx: added more pic16 port documentation
6558         * device/include/pic16/: added header pic18fregs.h
6559
6560 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
6561
6562         * doc/sdccman.lyx: added Vangelis' contribution
6563
6564 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6565
6566         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
6567         extend to the next CALL or PCALL, not just to the next CALL.
6568
6569 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
6570
6571         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
6572
6573 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6574
6575         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
6576         bug #895752 and a better fix for bug #716790
6577
6578 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6579
6580         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
6581
6582 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6583
6584         * doc/sdccman.lyx: minor changes, minor changed
6585
6586 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
6587
6588         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
6589         which can't handle SDCC_NEWONEBYTEOPS,
6590         (geniCodeMultiply): removed conversion from mult to shift for pic14
6591         and pic16
6592
6593 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6594
6595         * src/hc08/gen.h,
6596         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
6597         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
6598         thus fixing bug #895406
6599
6600 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
6601
6602         * device/lib/_modsint.c,
6603         * device/lib/_modslong.c: sign follows divisor only
6604         * src/hc08/gen.c (genMultOneByte): if result size is 1,
6605         signs or signedness can be ignored
6606         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
6607         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
6608         added optimization for IFX,
6609         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
6610         arguments;
6611         reenabled optimization for IFX, which was removed on 2004-01-11
6612         * src/SDCCast.h: added return type IFX
6613         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
6614         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
6615         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
6616         SDCC_OLDONEBYTEOPS selects the old behaviour
6617         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
6618         changed again and commented promotion rule
6619         * src/SDCCval.c (valDiv): promotion no longer necessary
6620         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
6621         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
6622         rewritten
6623         * support/regression/tests/onebyte.c: added
6624
6625 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
6626
6627         * gen.c (genInline): reverted to old code for assemnling inline
6628         code because of bug reported James Chadd
6629
6630 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
6631
6632         * ralloc.h: missing declarations from previous patch,
6633         seems that patch for ralloc.h was never applied, fixed
6634
6635 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6636            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6637
6638         * pcode.c,
6639         * pcode.h,
6640         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
6641         indirect addressing. Marked FSR0 as deprecated
6642         * gen.c (pointerCode): commented out, not needed now
6643         (pic16_popGet2p): new MOVFF helper function
6644         (genGenPointerGet),
6645         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
6646         (shiftRLong): removed duplicate debugging info
6647
6648 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6649
6650         * src/ds390/gen.c (genNearPointerGet),
6651         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
6652         optimization with bits, but not bitfields.
6653         * src/ds390/ralloc.c (packRegisters),
6654         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
6655
6656 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
6657
6658         * src/SDCCcse.c (algebraicOpts): copy operands before modification
6659
6660 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6661
6662         * src/SDCCsymt.h,
6663         * src/SDCCicode.c (operandFromSymbol),
6664         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
6665         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
6666         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
6667         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
6668         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
6669         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
6670         bug #892038
6671         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
6672         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
6673         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
6674         * src/SDCCsymt.c (newSymbol),
6675         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6676         enumerator_list),
6677         * src/SDCCval.h,
6678         * src/SDCCval.c (newiList): fixed bug #885705
6679
6680 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6681
6682         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
6683         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
6684
6685 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6686
6687         * device/include/c8051f120.h,
6688         * device/include/c8051f300.h,
6689         * device/include/c8051f310.h: added/updated header files for Silicon
6690         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6691         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
6692         in new section Submitting patches
6693
6694 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6695
6696         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
6697         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6698         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6699         genGenPointerSet),
6700         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
6701         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6702         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6703         genGenPointerSet),
6704         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
6705         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6706         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6707         genGenPointerSet),
6708         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
6709         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6710         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6711         genGenPointerSet): fixed bug #892400
6712         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
6713         to eliminate build warnings.
6714         * src/SDCCast.c (processParms),
6715         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
6716         fixed bug 751859
6717         * support/valdiag/valdiag.py: added GCC to the list of defines active
6718         when compiling with gcc
6719
6720 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6721
6722         * support/Util/SDCCerr.h,
6723         * support/Util/SDCCerr.c,
6724         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
6725         with an incomplete type (fixed bug #883734)
6726         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
6727
6728 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6729
6730         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
6731
6732 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6733
6734         * src/SDCCast.c (decorateType),
6735         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
6736         function pointer implementation
6737         * support/regression/tests/funptrs.c: added tests to verify both forms
6738         of function pointers work correctly. Added tests to verify parameters
6739         are passed in the correct order.
6740
6741 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
6742
6743         * device.c (regCompare): registers are sorted by ascending
6744         address and increasing size,
6745         * main.c (_pic16_finaliseOptions): removed the declaration
6746         of compiler macro MCU. Now a macro of the format pic18fxxxx
6747         will be defined from the command line
6748
6749 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6750             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6751
6752         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
6753         PCOP_RLCF was overwritten!
6754         * gen.c (genSkip): commented out calls to pic16_emitcode,
6755         * (genCmpEQ): fixed "long" compares, only high word did get compared,
6756         * (genlshTwo),
6757         * (genRRC): added debugging info,
6758         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
6759         overwritten while shifting,
6760         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
6761         overwritten while shifting,
6762         * (AccLsh),
6763         * (AccRsh),
6764         * (shiftLLeftOrResult),
6765         * (shiftRLeftOrResult),
6766         * (shiftRLong),
6767         * (shiftLLong): Implemented with pic16_emitpcode
6768         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
6769         * (genLeftShift): Fixed bug, operand for shift by variable always
6770         was "and"ed with 0x0f,
6771         * (genLeftShiftLiteral),
6772         * (genrshTwo),
6773         * (genRightShiftLiteral): added debugging info,
6774         * (genrshFour): added comment,
6775         * (genRightShift): determined signedness from operand "left"
6776         instead of "result"
6777
6778 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6779
6780         * src/SDCCicode.c (geniCodeParms),
6781         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
6782         function pointers, fixed function pointer bugs #861242 and #861896
6783
6784 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6785
6786         * device/include/c8051f000.h,
6787         * device/include/c8051f120.h,
6788         * device/include/c8051f300.h: added header files for Silicon
6789         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6790
6791 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
6792
6793         * src/SDCCast.c (processParams): added new type flow and restructured
6794         (gatherAutoInit): added new type flow
6795         (addCast): cosmetic changes
6796         (getLeftResultType): added new type flow for array indices, patch
6797         provided by Stas, see FR #877103
6798         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
6799         array index patch by Stas
6800         * src/SDCCast.h: added prototype getResultTypeFromType()
6801         * src/SDCCval.h,
6802         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
6803         * src/pic/glue.c (pic14emitStaticSeg),
6804         * src/pic16/glue.c (pic16emitStaticSeg),
6805         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
6806         for initialization of symbols
6807         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
6808         * support/Util/SDCCerr.h:
6809         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
6810         * .version: bumped version number to 2.3.8
6811         * device/include/Makefile.in (install),
6812         * doc/Makefile (install): changed to 'rm `find ...`' construct to
6813         avoid warnings
6814
6815 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
6816
6817         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
6818         Slade Rich fixed an optimization bug
6819         * src/pic/pcodepeep.c,
6820         * src/pic/pcoderegs.c
6821         * doc/Makefile (install): added test for directory
6822
6823 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6824
6825         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
6826         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
6827         * src/pic/ralloc.c (getRegPtr, getRegGpr),
6828         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
6829         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
6830         * as/mcs51/asexpr.c (term),
6831         * as/hc08/asexpr.c (term): fixed bug #887146
6832
6833 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6834
6835         * src/z80/gen.c (genMult): handle single byte result product
6836         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
6837         DUMMY_READ_VOLATILE (fixed bug #886367)
6838
6839 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6840
6841         * support/regression/tests/libmullong.c: fixed logic, on little endian
6842         hosts we ended without a mullong_wrapper()
6843
6844 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6845
6846         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
6847         virus/worm forged address usage.
6848
6849 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6850
6851         Fixed promotion, it should be done on AST level:
6852         * src/SDCCast.c (addCast): added promotion to int
6853         (decorateType): updated call to upCast()
6854         * src/SDCCicode.c (geniCodeLeftShift): removed call to
6855         usualUnaryConversions()
6856
6857 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
6858
6859         * support/regression/tests/literalop.c (mulWrapper): Added a
6860         wrapper to remove integer overflow warnings.
6861
6862         * support/regression/tests/float_trans.c: Made work on host.
6863
6864         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
6865         location of sz80.
6866
6867         * support/regression/generate-cases.py (main): Changed from inline
6868         to a main method.
6869
6870         * doc/Makefile (install): Changed to depth first to get rid of
6871         missing directory install warning.
6872
6873         * as/Makefile (install-doc): Made work on Mac.
6874
6875 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
6876
6877         * src/SDCCast.c: added an additional type flow in decorateType() of
6878         opposite direction, see feature request #860006; it's enabled at runtime
6879         by setting the environment variable SDCC_NEWTYPEFLOW
6880         * src/SDCCast.h: changed prototype of decorateType()
6881         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
6882         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
6883         'char' to 'int' can be omitted, if both operands are 'unsigned char';
6884         see feature request #877103
6885         * src/SDCCval.c: updated call of decorateType()
6886         (valBitwise): fixed bug #882876
6887         (valMinus): added promotion
6888         (valLogicAndOr): result is unsigned
6889         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
6890         * src/SDCCsymt.c (computeType),
6891         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
6892         must not cause an unsigned operation
6893         * src/pic/glue (pic14emitRegularMap),
6894         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
6895
6896 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
6897
6898         * src/pic/pcode.c (PCodeID): commented out left over debug code
6899
6900 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6901
6902         * support/valdiag/tests/overflow.c: added shift tests
6903         * src/pic/device.c,
6904         * src/pic/gen.c,
6905         * src/pic/gen.h,
6906         * src/pic/glue.c,
6907         * src/pic/main.c,
6908         * src/pic/pcode.c,
6909         * src/pic/pcode.h,
6910         * src/pic/pcodepeep.c,
6911         * src/pic/pcoderegs.c,
6912         * src/pic/ralloc.c,
6913         * src/pic/ralloc.h: applied patch from Slade Rich;
6914         added support for multiple code pages and multiple RAM banks on the
6915         PIC 14 port. The ASM files now no longer simply assume all the
6916         code / RAM are in the same page / bank. This means the linker can
6917         safely allocate code/RAM of separate ASM files to different pages/banks.
6918         * doc/sdccman.lyx: added Slade's tips
6919         * src/mcs51/peeph.def: fixed bug #880768
6920
6921 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6922
6923         * src/hc08/ralloc.c (rematStr): fixed bug #879282
6924         * src/SDCCast.c (decorateType): fixed bug #880197
6925
6926 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
6927
6928         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
6929         getopt.h.
6930
6931         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
6932         strtof is not part of C89 and isn't included with Mac OS X.
6933
6934 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6935
6936         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
6937         shiftL2Left2Result): fixed bug #879326
6938         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
6939         (genMultOneByte): fixed bug in signed vs unsigned multiplication
6940         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
6941         address fetch for clr instruction
6942         * device/lib/hc08/_mulint.c: created optimized assembly version
6943         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
6944
6945 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
6946
6947         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
6948         proposed in FR #877103
6949
6950 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6951
6952         * src/SDCCval.c (cheapestVal): added missing checks
6953         * src/SDCCicode.c (usualBinaryConversions): fixed condition
6954         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
6955
6956 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
6957
6958         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
6959         equal operands
6960
6961 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
6962
6963         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
6964         loaded with the linker search paths (-L arguments) and the libraries
6965         to be linked with the current source (-l arguments). Changes
6966         currently will affect only the pic16 port.
6967         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
6968         include path the port specific paths and port specific libraries,
6969         * gplink command now contains the $3 argument,
6970         * src/pic16/device.h,
6971         * src/pic16/device.c,: structure PIC_device is made public and
6972         renamed to PIC16_device, the same for variable Pics which is renamed
6973         to Pics16. Updated all references to them.
6974         * src/pic16/glue.c (pic16glue): corrected bug with code
6975         initialization which bypassed the variable initializations block.
6976
6977         * device/lib/pic16/Makefile.rules: removed --penable-stack from
6978         COMPILE_FLAGS and added the --nostdinc option
6979
6980 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6981
6982         * device/include/mc68hc908jb8.h: Register defs for another member
6983         of the hc08 family. Contributed by Bjorn Bringert - thanks!
6984
6985 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
6986
6987         Documenting changes from previous commits.
6988         * configure.in (version 1.56),
6989         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
6990         when generating output files to configure the pic16 library,
6991         but now I've commented it out, since gputils aren't installed in the
6992         SF compile farm, so library won't compile
6993
6994         * device/lib/Makefile.in (version 1.56): initially I've added in
6995         target 'all' the prerequestive 'model-pic16' so it compiled the
6996         pic16 library, but now I've commented it out for the same reasons
6997         above,
6998         * added targets 'model-pic16' and 'objects-pic16' to compile the
6999         library
7000         * added target 'port-specific-objects-pic16' to handle the
7001         generated libraries and copy them into the build/ directory
7002         * added target 'clean-intermediate-pic16' to clean intermediate
7003         files into pic16 directory
7004         * in target 'installdirs' added line to create directory pic16 in
7005         the installation path
7006
7007         * device/include/Makefile.in (version 1.11): in target 'install'
7008         added lines to copy all header files to installation path,
7009         * in target 'installdirs' added line create directory for pic16
7010         headers in the installation path
7011
7012 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
7013
7014         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
7015          a function call
7016
7017 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
7018
7019         * configure,
7020         * device/lib/configure.in,
7021         * device/lib/configure: fixed for autoconf 2.57
7022
7023 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7024
7025         * src/z80/main.c (_parseOptions): fixed the portmode= command line
7026         option so that it actually works. Made it specific to the z80, since
7027         the gbz80 doesn't have these kinds of I/O ports.
7028
7029 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7030
7031         * device/include/z180.h,
7032         * device/lib/_memcpy.c,
7033         * device/lib/_memmove.c,
7034         * device/lib/_mulint.c,
7035         * device/lib/ser_ir.c,
7036         * device/lib/ser_ir_cts_rts.c,
7037         * device/lib/_strcmp.c,
7038         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
7039         * src/z80/main.c (_process_pragma): add support for pragmas bank and
7040         portmode; added deprecation warning for bank= and protmode= forms.
7041         Also, guard against buffer overflow.
7042         * src/z80/gen.c (aopGet): generate better code for sfr banked read
7043
7044 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7045
7046         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
7047         changed interrupt vector table generation to only emit declared vectors.
7048         * device/include/Makefile.in: added missing backslash
7049         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
7050
7051 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7052
7053         Mainly changes to support compilation of the device libraries
7054         * src/pic16/device.c: stack is allocated via symbol and not
7055         via literal number. The symbol is placed in the corresponding
7056         position of the data ram
7057         * (pic16_dump_section): relocatable and absolute uninitialized
7058         data are now emitted in sorted order to reduce section naming,
7059         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
7060         weren't marked as being in the access bank,
7061
7062 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7063
7064         Added portion of GNU PIC Library under the directory
7065         device/include/pic16 and device/lib/pic16. These files
7066         contain the declarations of SFRs for the PIC18Fxx2 devices.
7067         The directory is initialized via configure from toplevel.
7068
7069 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
7070
7071         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
7072         the spilllocations to be compared correctly
7073
7074 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7075
7076         * src/SDCCast.c (decorateType): fixed bug introduced today
7077
7078 2004-01-12  Borut Razem <borut.razem AT siol.net>
7079
7080         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
7081         doc/sdccman.lyx: upper case pragmas are deprecated
7082
7083 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7084
7085         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
7086         in simpler and even better code
7087
7088 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
7089
7090         * src/SDCCicode.c (operandOperation): fixed bug #874819
7091         * src/SDCCast.c (decorateType): fixed
7092         char foo (unsigned long ul) { return ul > 0; }
7093
7094 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7095
7096         * doc/sdccman.lyx: Moved and added some sections, small changes
7097         all over. Telling LaTeX to be less strict with word spacing
7098         to better keep the right margin. Changed some notes about
7099         maintainance of the ports in section 3.2.1 - is it OK like this?
7100
7101 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7102
7103         SDCC source changes:
7104         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
7105         convilong): modified to inform the pic16 port that builtin functions
7106         are external
7107
7108         PIC16 PORT specific changes:
7109         * src/pic16/device.c pic16_dump_equates() added,
7110         processor registers declared internally by the port are emitted in
7111         the translation as equates,
7112         * src/pic16/gen.c: inline code is passed unprocessed to the
7113         translation,
7114         * (pic16_popGetLit2): fnuction modified to take second operand as
7115         pCodeOp pointer and not as literal,
7116         * (popRegFromIdx): prefixed with pic16_,
7117         * (pic16_popCombine2): modified to receive already allocated pCode
7118         operands,
7119         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
7120         * (genFunction): initializes local stack frame and pushes on stack
7121         all the registers used by this function,
7122         * (genEndFunction): restores all registers from stack and restores
7123         stack frame,
7124         * src/pic16/glue.c (pic16emitRegularMap): various changes and
7125         improvements,
7126         * (pic16glue): changed the program startup sequence,
7127         * added new dbName code 'A' for functions placed in absolute section
7128         * src/pic16/main.c: added function attribute _naked,
7129         * added pragma 'code' to place a fnuction at an absolute address,
7130         * added command line arguments --debug-ralloc and --pcode-verbose,
7131         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
7132         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
7133         * (pic16_newpCodeOpLit2): modified to take the second operand as
7134         pCodeOp pointer,
7135         * (pic16_printpBlock): modified to emit each function in a separate
7136         section,
7137         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
7138         UPPER for immediate operands,
7139         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
7140         instruction,
7141         * src/pic16/peeph.def: all peepholes with movff are commented out,
7142         because there is a problem in the pcode peep optimizer,
7143         * src/pic16/ralloc.c: the register allocator can now reuse local
7144         function symbols for another function. This saves register usage.
7145         * src/pic16/ralloc.h: added flag isLocal in structure regs,
7146
7147         Added file src/pic16/NOTES with information about program writing on
7148         the current port version.
7149
7150 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7151
7152         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
7153         and peephole 252 (array access)
7154
7155 2004-01-09  Borut Razem <borut.razem AT siol.net>
7156
7157         * src/SDCCmain.c : fixed #872250: -l command line defined library
7158           files are scanned before standard library files
7159
7160 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7161
7162         * src/SDCCast.c (decorateType): fixed bug #874046
7163
7164 2004-01-09  Borut Razem <borut.razem AT siol.net>
7165
7166         * support/scripts/sdcc.nsi: remove previous installation
7167
7168 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7169
7170         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
7171         bytes for last interrupt vector (mcs51)
7172         * sdcc.spec: fixed typo
7173
7174 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7175
7176         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
7177         gen51Code): more efficient parameter receive for --model-large
7178         ("bug" #845294)
7179
7180 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7181
7182         * src/ds390/main.c,
7183         * src/z80/main.c: added missed needLinkerScript flags (more than
7184         one port structure defined in these file)
7185         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
7186         bug #795325
7187
7188 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
7189
7190         * src/SDCCmain.c: removed various references to DEFAULT_PORT
7191         * src/port.h: added flag needLinkerScript in port->linker
7192         structure to inform whether to create a .lnk file or not,
7193         * src/avr/main.c,
7194         * src/ds390/main.c,
7195         * src/hc08/main.c,
7196         * src/mcs51/main.c,
7197         * src/pic/main.c,
7198         * src/pic16/main.c,
7199         * src/xa51/main.c,
7200         * src/z80/main.c: changed appropriately to configure
7201         needLinkerScript flag
7202         * src/pic/gen.c,
7203         * src/pic16/gen.c (genAddrOf): fixed bug #863624
7204         * src/pic/glue.c: added variable udata_section_name to
7205         override default uninitialized data segment definition for
7206         devices only with SHAREBANK memory (reported from Erik Epetrich)
7207         * (pic14emitOverlay): modified to emit a commented overlay segment
7208         directive when no overlay data exist
7209         * (picglue): modified to emit uninitialized data segment
7210         according to udata_section_name
7211         * src/pic/main.c (_pic14_parseOptions): added command line
7212         options --udata-section-name=[name] to override default
7213         udata definition name
7214         * modified _linkCmd and _asmCmd to include compiler passed
7215         arguments via -W option
7216         * src/pic16/main.c: added $l in _asmCmd, changed extension for
7217         object file from '.rel' to '.o' in port->linker structure,
7218         changed size of fptr from 2 to 3 in port structure
7219
7220 2004-01-07  Borut Razem <borut.razem AT siol.net>
7221
7222         * support/scripts/sdcc.nsi: update PATH
7223         * support/scripts/sdcc.ico: craeted
7224
7225 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
7226
7227         * device/include/Makefile.in: fix install
7228         * doc/Makefile: fix install
7229
7230 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7231
7232         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
7233         in bug #860505
7234         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
7235         how the function variable allocation summary is displayed; also
7236         include information about variables allocated to the overlay
7237         segment
7238
7239 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7240
7241         * as/mcs51/lkmain.c: Help about -Y option
7242         * as/mcs51/lkarea.c: Fixed gcc warnings
7243
7244 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7245
7246         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
7247         fixed warning
7248         * support/valdiag/tests/overflow.c: added
7249         * src/SDCCast.c (decorateType),
7250         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
7251         LEFT_OP (left shift)
7252
7253 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7254
7255         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
7256         (default behaviour).
7257
7258 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7259
7260         A python script to validate compiler diagnostic messages. It can be
7261         used to verify that sdcc complains about bad c source code and
7262         gives a good location of the error.
7263         * support/valdiag/Makefile,
7264         * support/valdiag/valdiag.py,
7265         * support/valdiag/tests/*
7266
7267 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7268
7269         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
7270         * src/SDCCsymt.c (newEnumType),
7271         * src/SDCCsymt.h
7272         * support/Util/SDCCerr.c,
7273         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
7274         enum related bugs.
7275         * support/regression/tests/enum.c: added test for enum values that
7276         require at least 2 bytes of storage.
7277
7278 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7279
7280         * src/common.h: added ifndef/define/endif macros
7281         around the header file.
7282         Bug reported from Jesus Calvino-Fraga
7283
7284 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7285
7286         * sdcc.spec: updated
7287         * device/include/Makefile.in: don't install CVS directories
7288         * device/lib/Makefile.in: added removal of CVS directories after install
7289         * doc/Makefile: fixed install, added local_icons
7290         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
7291         * src/mcs51/gen.c (genRightShift): fixed bug #870788
7292         * src/ds390/gen.c (genRightShift): fixed bug #870788
7293         * src/SDCCast.c (decorateType): fixed bug #870781
7294
7295 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7296
7297         PIC16 port related changes:
7298         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
7299         added variable stackPos,
7300
7301         * gen.c: genCall, assignResultValue: added support for
7302         pushing/retrieving function parameters to/from stack,
7303         genFunction,genEndFunction: setup stack frame for the
7304         generated function,
7305         genAddrOf: will be changed according to bug 863624
7306
7307         * added files genutils.c and genutils.h which contain gen*
7308         debugged and optimised functions extracted from gen.c
7309
7310         * glue.c: added variable 'externs' which holds extern symbols,
7311         pic16emitRegularMap: is modified to properly handle relocatable
7312          symbols under the new scheme,
7313         pic16createInterruptVect: is modified
7314         pic16printPublics: is modified to emit 'global' assembler directives,
7315         added pic16_printExterns to print extern symbols,
7316         pic16glue: initializes stack/frame pointer in the beginning of
7317         the assembly output. Temporary hack, will be corrected later,
7318         because gplink yet does not support stack and SDCC does not
7319         yet support a type of crt0.o object to create the final binary.
7320
7321         * Removed many lines that contain 8051 legacy code.
7322         * The code is finally placed under a 'code' directive.
7323         * Added port specific options.
7324
7325         * _process_pragma: simplified since now we do not need *special*
7326         include file to define SFR registers. But a separate header
7327         will be needed. This will be developed later.
7328         * _pic16_parseOptions: added, parses port specific options:
7329         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
7330         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
7331         --preplace-udata-with=
7332
7333         * _pic16_setDefaultOptions: modified to initialize section names,
7334         but hack is temporarly out of order since it needs improvement.
7335         * _pic16_genAssemblerPreamble: configuration words are emitted by
7336         their address instead of their name. This part is incomplete and
7337         supports only the 18Fxx2 devices. Other devices will emit an error
7338         during assembly since they do not contain the same set of config
7339         registers
7340         * _pic16_genIVT: is modified,
7341
7342         * pcode.c: added definitions for some hardware registers that are needed
7343         for stack support
7344         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
7345         All PCI entries are updated. Now LFSR is supported.
7346         * Removed pic16_pciTRIS is mentioned by mdubuc in source
7347         * added pic16_newpCodeOpLit2 to support instructions with
7348         two literal arguments
7349         * pic16_pCode2str: corrected code that emits assembler instructions
7350         with two literal operands and those that have an access bit modifier
7351         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
7352         this fixes a bug which caused some labels to be lost, when an
7353         assembler directive was added, i.e. banksel,
7354         * pic16_FixRegisterBanking: improved logic that causes the insertion
7355         of bank switching,
7356         * InlineFunction: functions that are called once, are not any more
7357         inlined. This can be a port option in the future,
7358
7359         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
7360
7361         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
7362         hold the corresponding uninitialized symbols,
7363         * pic16_allocProcessorRegister: registers have explicit marked the
7364         accessBank field,
7365         * pic16_allocInternalRegister: registers are explicit marked as
7366         not used,
7367         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
7368         processing list, so bit registers were lost,
7369         *
7370
7371         * ralloc.h: added field 'accessBank' and original symbol operand
7372         in register definition,
7373         * removed the field isMapped from register definition,
7374
7375         ** Several functions have been removed from various sources:
7376         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
7377         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
7378         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
7379         pic16_assignRelocatableRegisters
7380
7381         ** others have been introduced:
7382         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
7383         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
7384
7385 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
7386
7387         * support/scripts/inc2h.pl: changed definition of BIT_AT
7388         to emit 'sbit at' instead of 'bit at'. This was a request.
7389
7390         PIC16 port related preliminary changes:
7391         * gen.c: prefixed function popRegFromString with
7392         pic16_ and all references to it corrected
7393         * pcode.c: all pic16_pc_* hardware registers prefixed
7394         with underscore (_),
7395         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
7396         * ralloc.c: newReg(): when register is REG_SFR then
7397         set address to rIdx,
7398         pic16_allocProcessorRegister(): marks register wasUsed=0
7399         pic16_writeUsedRegs(): added a call to assign processor
7400         registers via pic16_assignFixedRegisters
7401
7402 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7403
7404         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
7405         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
7406         variables in unused register banks.  Also the SSEG is placed
7407         wherever there is enough space for it, and IDATA can be anywhere
7408         in internal RAM.  For now compile using -Wl-Y[stack_size].
7409         The mem file is different for this option as well, since it
7410         makes no sense of talking about DSEG lenght.
7411
7412 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
7413
7414         * src/SDCClrange.c: fixed bug 869095 that caused segfault
7415         in certain cases, e.g. when ROM assignment, patch provided
7416         from Albert den Haan.
7417
7418 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
7419
7420         Many signedness and type propagation fixes:
7421         * src/SDCCicode.c: made geniCodeCast() static
7422         replaced SPEC_ by IS_ (cosmetic)
7423         (operandOperation): fixed div and mod operation
7424         (usualBinaryConversions): added support for promotion of char
7425         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
7426         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
7427         (geniCodeAdd): an array index will stay unsigned, even if promoted
7428         from char to int
7429         (geniCodeArray): ditto
7430         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
7431         * src/SDCCsymt.c (computeType): added more support for char;
7432         promotion of char is selectable by promoteCharToInt, fixed signedness
7433         for all cases
7434         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7435         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7436         * src/SDCCval (val*): replaced signedness calculation by
7437         computeType()
7438         rearranged if-branches (cosmetic)
7439         (valShift): added warning W_SHIFT_CHANGED
7440         (valCompare): fixed problem with different types
7441         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
7442         * support/regression/tests/literalop.c: added many cases
7443         * support/regression/tests/ast_constant_folding.c: changed finally to
7444         'unsigned int'
7445         * .version: new year, new version: 2.3.7
7446         * src/SDCCmain.c (main): applied patch #866468
7447         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
7448         provided by Scott Bronson
7449         * doc/sdccman.lyx: updated documentation for sdcdb
7450         updated and added chapter tips
7451
7452 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7453
7454         * src/SDCCsymt.h: missing from yesterday's commits
7455
7456 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7457
7458         * src/SDCC.y (struct_or_union_specifier),
7459         * support/Util/SDCCerr.c,
7460         * support/Util/SDCCerr.h: verify that struct & union tags are used
7461         as declared.
7462
7463 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7464
7465         * src/SDCCglobl.h: missing from yesterday's commits
7466
7467 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7468
7469         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
7470         sft_attributes, struct_declaration, parameter_declaration,
7471         type_name, start_block, declaration_list),
7472         * src/SDCC.lex (check_type): support redefinition of typedef names
7473
7474 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7475
7476         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
7477         aligned xdata arrays. Erik helped me with the if clause.
7478
7479 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7480
7481         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
7482         warning
7483
7484 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7485
7486         * src/SDCCast.h,
7487         * src/SDCCast.c (newAst_),
7488         * src/SDCCicode.h,
7489         * src/SDCCicode.c (ast2iCode, newiCode),
7490         * src/SDCCglobl.h,
7491         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
7492         expr, statement, expression_statement, selection_statement,
7493         iteration_statement, expr_opt, jump_statement): foundation for tracking
7494         sequence points
7495         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
7496         point code too)
7497
7498 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7499
7500         * support/Util/SDCCerr.c,
7501         * src/SDCCast.h,
7502         * src/SDCCast.c (createCase, createDefault, decorateType),
7503         * src/SDCClabel.c (labelUnreach),
7504         * src/SDCC.y (labeled_statement, jump_statement): More improvements
7505         to error messages.
7506         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
7507         (with thanks to Stas Sergeev)
7508         * device/include/time.h,
7509         * device/lib/time.c (CheckTime): suppress unreachable code warning
7510
7511 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7512
7513         * src/SDCCast.c (createIvalCharPtr),
7514         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
7515         bug #753752)
7516         * support/regression/tests/nullstring.c: tests for these two bugs
7517
7518 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7519
7520         * support/Util/SDCCerr.h,
7521         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
7522         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
7523         about storage class and 'at' used inside struct or union
7524         * src/SDCCBBlock.c (iCodeFromeBBlock),
7525         * src/SDCCcse.c (ifxOptimize),
7526         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
7527         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
7528         printIval, emitStaticSeg, emitOverlay),
7529         * src/SDCClabel.c (deleteIfx),
7530         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
7531         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
7532         gatherAutoInit, processParms),
7533         * support/Util/SDCCerr.h,
7534         * support/Util/SDCCerr.c (werrorfl): Support for better error location
7535         reporting for post-parse errors.
7536
7537 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7538
7539         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
7540         implicit casts via union; they don't work on big endian systems
7541         (possible fix for bug #861138)
7542
7543 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7544
7545         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
7546         * src/mcs51/main.c: fixed the fix for bug #737001
7547
7548 2003-12-15  Borut Razem <borut.razem AT siol.net>
7549
7550         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
7551
7552 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7553
7554         * support/makebin/makebin.c: put output in binary mode
7555
7556 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7557
7558         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
7559         xdata and data memory on startup. Set the environment variable
7560         SDCC_NOGENRAMCLEAR to disable this.
7561         * src/mcs51/peephole.def,
7562         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
7563         (allows non-interrupt and interrupt code to safely compete for a resource
7564         without the non-interrupt code having to disable interrupts)
7565
7566 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7567
7568         * src/SDCCicode.c (geniCodeAdd),
7569         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
7570         with valFromType if type might be a pointer and host is big endian).
7571         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
7572         types, not just integer types.
7573         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
7574         multiply defined with mismatching "at" address.
7575
7576 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7577
7578         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
7579         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
7580         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
7581         with embedded nulls (fixed bug #753752)
7582
7583 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7584
7585         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
7586         Apparently this did not see much testing (endless loop)
7587
7588 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7589
7590         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
7591
7592 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7593
7594         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
7595         gracefully handle NULL memmap pointers
7596
7597 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7598
7599         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
7600         instead of deleting the iCode when an operand is volatile
7601         * src/z80/gen.c (genDummyRead),
7602         * src/mcs51/gen.c (genDummyRead),
7603         * src/ds390/gen.c (genDummyRead),
7604         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
7605         not just IC_RIGHT
7606         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
7607         * src/SDCC.y: fixed bug #850420
7608
7609 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7610
7611         Applied z80 i/o port patch from Peter Townson and fixed some operators
7612         to better handle operands in A register.
7613         * device/include/z180.h
7614         * src/SDCC.y
7615         * src/SDCCglue.c
7616         * src/z80/gen.c
7617         * src/z80/gen.h
7618         * src/z80/main.c
7619         * src/z80/peeph-z80.def
7620         * src/z80/peeph.def
7621         * src/z80/z80.h
7622
7623 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7624
7625         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
7626
7627 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7628
7629         * device/lib/hc08/_mullong.c: Removed extra #endif
7630
7631 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7632
7633         * sim/ucsim/hc08.src/inst.cc,
7634         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
7635         carries from x to h
7636         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
7637         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
7638         * device/include/stdarg.h: fixed varargs for hc08
7639         * device/lib/Makefile.in,
7640         * device/lib/hc08/Makefile,
7641         * device/lib/hc08/_mulint.c,
7642         * device/lib/hc08/_mullong.c: fixed some endian problems
7643
7644 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7645
7646         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
7647         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
7648         * device/lib/_gptrget.c,
7649         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
7650
7651 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7652
7653         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
7654         * src/SDCCast.c (astErrors): fixed bug #846007
7655         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
7656
7657 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7658
7659         * src/SDCCast.c (decorateType): disabled a transformation I added in
7660         revision 1.188 (access to fields of a structure at an absolute address);
7661         it breaks with bitfields, extern declarations, and gcse analysis.
7662         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
7663         could be assigned through a pointer, so don't complain.
7664         * src/SDCCast.c (astErrors),
7665         * src/SDCCast.h,
7666         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
7667
7668 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
7669
7670         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
7671         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
7672         output of __config directives, since gpasm now supports them
7673         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
7674         pre-processor macro, i.e. -DMCU=p18f452
7675         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
7676         and modified to handle 'cast' icode similarly to '=' icode
7677         * src/pic16/device.h (typedef struct PIC_device): added field
7678         'extMIface' to indicate that chip has external memory interface
7679         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
7680         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
7681         18F8720
7682
7683 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7684
7685         * src/SDCC.y (pointer): fixed bug #846006
7686         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
7687         * src/SDCCast.c (decorateType): fixed bug #846009
7688         * src/ds390/peeph.def,
7689         * src/ds390/gen.c (genAnd, genOr),
7690         * src/mcs51/peeph.def,
7691         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
7692
7693 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7694
7695         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
7696         * src/SDCCdflow.c
7697         * src/SDCCcse.c
7698         * src/SDCCcse.h
7699         * src/SDCCBBlock.h
7700         * src/SDCCBBlock.c
7701
7702 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
7703
7704         fixed bug #845089
7705         * src/SDCCbitv.h,
7706         * src/SDCCbitv.c: added function to free a bitvector
7707         * src/SDCClrange.h,
7708         * src/SDCClrange.c: added function to recompute the liveranges
7709         * src/avr/ralloc.c,
7710         * src/ds390/ralloc.c,
7711         * src/hc08/ralloc.c,
7712         * src/mcs51/ralloc.c,
7713         * src/pic/ralloc.c,
7714         * src/pic16/ralloc.c,
7715         * src/xa51/ralloc.c,
7716         * src/z80/ralloc.c: recompute the liveranges after register packing
7717
7718 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
7719
7720         * src/SDCCloop.c (newInduction): fixed bug #845630
7721
7722 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7723
7724         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
7725         inadvertantly left behind from my 2003-11-12 change
7726
7727 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7728
7729         Updated headers I neglected to commit yesterday.
7730         * src/SDCClrange.h,
7731         * src/SDCCicode.h
7732
7733 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7734
7735         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
7736         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
7737         * src/SDCCopt.c (eBBlockFromiCode),
7738         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
7739         the creation of the key hash table from the sequencing so it can be used
7740         earlier (for some GCSE bug fixes still pending)
7741
7742 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7743
7744         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
7745         * support/regression/tests/addsub.c: testing genPlus shortcut
7746
7747 2003-11-15  Borut Razem <borut.razem AT siol.net>
7748
7749         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
7750
7751 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7752
7753         * src/SDCCcse.c (cseBBlock): fixed bug #527779
7754         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
7755         ordering is immaterial.
7756         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
7757
7758 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7759
7760         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
7761         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
7762         (SIGSEV) of bug #840381
7763         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
7764         unlink new file before rename if new and old filenames are the same)
7765
7766 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7767
7768         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
7769         uninitialized variables) for the mcs51. Set environment variable
7770         SDCC_GENRAMCLEAR to test.
7771         xdata initialization slightly shorter
7772
7773 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7774
7775         * src/SDCCsymt.h,
7776         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
7777         #838241 & 780691 (basicly the same bug)
7778         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
7779         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
7780
7781 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
7782
7783         * src/SDCCmain.c (linkEdit): "fix" #834252
7784
7785 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7786
7787         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
7788         * src/SDCCast.h,
7789         * src/SDCC.y: fixed bug #819403
7790
7791 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7792
7793         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
7794         the reentrant attribute.
7795         * src/hc08/gen.c (genPackBits): added missing stack readjustment
7796         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
7797         simulation
7798         * src/SDCCast.c (decorateType): fixed bug with storage class not being
7799         updated during pointer dereference; f.e. ~(((char *)1)*) was being
7800         erroneously reduced to a literal.
7801         * src/hc08/ralloc.c (packRegisters, rematStr),
7802         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
7803         some cases
7804
7805 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7806
7807         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
7808         * doc/sdccman.lyx: changed from 'article' to 'book'
7809         * doc/Makefile: readded test_suite_spec and cdbfileformat
7810
7811 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
7812
7813         * device/include/stdlib.h: include malloc.h to comply with ANSI
7814         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
7815
7816 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7817
7818         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
7819         * doc/clean.mk: also remove *.out files
7820         * doc/sdccman.lyx: some additions, larger top/bottom margins
7821
7822 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7823
7824         * src/SDCC.y: fixed bug #837365
7825         * support/regression/tests/bitopcse.c
7826         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
7827         a symbol (might be valop instead)
7828         * device/lib/Makefile.in: added errno.c to HC08SOURCES
7829         * device/lib/clean.mk: added hc08 to the cleaning list
7830
7831 2003-11-04  Borut Razem <borut.razem AT siol.net>
7832
7833         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
7834           made 2003-11-04
7835         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7836           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
7837           malloc is declared in standard stdlib.h
7838
7839 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7840
7841         * device/lib/hc08/Makefile: need to clean .rel not .o files
7842         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
7843
7844 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7845
7846         * src/port.h,
7847         * src/hc08/main.c,
7848         * src/mcs51/main.c,
7849         * src/ds390/main.c,
7850         * src/z80/main.c,
7851         * src/avr/main.c,
7852         * src/pic/main.c,
7853         * src/pic16/main.c,
7854         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
7855         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
7856         tests (which uses the port's oclsExpense function)
7857         * src/SDCC.y,
7858         * src/SDCCast.c,
7859         * src/SDCCicode.c,
7860         * src/hc08/gen.c,
7861         * src/ds390/gen.c,
7862         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
7863
7864 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7865
7866         * src/SDCCcse.c (ifxOptimize),
7867         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
7868         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
7869         deleting the IFX iCode.
7870         * src/hc08/ralloc.c: reduced unneeded slocs
7871         * src/hc08/gen.c: fixed bug in asmopToBoolean
7872
7873 2003-11-04  Borut Razem <borut.razem AT siol.net>
7874
7875         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
7876           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7877           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
7878           transferred to configure
7879
7880 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
7881
7882         Use headers defined in the C[++] standards:
7883         * sim/ucsim/gui.src/serio.src/fileio.cc
7884         * sim/ucsim/gui.src/serio.src/frontend.cc
7885         * sim/ucsim/gui.src/serio.src/main.cc
7886         * sim/ucsim/gui.src/serio.src/posix_signal.cc
7887         * support/Util/NewAlloc.c
7888         * as/hc08/lklibr.c
7889         * as/mcs51/lklibr.c
7890         * as/z80/aslist.c
7891         * as/z80/assym.c
7892
7893 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7894
7895         * Added MSVC projects for hc08 assembler and linker:
7896         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
7897         /as/hc08/link_hc08.dsp
7898
7899 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
7900
7901         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
7902
7903 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
7904
7905         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
7906
7907 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7908
7909         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
7910
7911 2003-10-31  Borut Razem <borut.razem AT siol.net>
7912
7913         * support/cpp2/cpplib.h,
7914           support/cpp2/cpplib.c,
7915           support/cpp2/cpplex.c,
7916           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
7917           to switch _asm block preprocessing on / off. Default is
7918           #pragma preproc_asm +
7919
7920 2003-10-31  Borut Razem <borut.razem AT siol.net>
7921
7922         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
7923           when outputting comment blocks (when executed with -C option) and
7924           _asm (SDCPP specific) blocks
7925
7926 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7927
7928         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
7929
7930 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
7931
7932         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
7933
7934 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
7935
7936         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
7937         * src/SDCCast.c (decorateType): fixed bug #832664
7938
7939 2003-10-31  Borut Razem <borut.razem AT siol.net>
7940
7941         * support\cpp2\cpplex.c: fixed for SDCPP:
7942           comments(when executed with -C option) and _asm blocks
7943           were included even if they where in skipped #if block.
7944           Applied solution from GCC cpp 3.3.2
7945
7946 2003-10-31  Borut Razem <borut.razem AT siol.net>
7947
7948         * src/SDCC.lex: sdcc now understands both formats:
7949           '# <line_number> <file_name>' and
7950           '#line <line_number> <file_name>'
7951         * support/cpp2/cppmain.c: sdcpp now generates the standard
7952           '# <line_number> <file_name>' instead of former
7953           '#line <line_number> <file_name>'
7954
7955 2003-10-30  Borut Razem <borut.razem AT siol.net>
7956
7957         * support/cpp2/cpphash.h,
7958         * support/cpp2/cpplib.h
7959         * support/cpp2/cpplex.c,
7960         * support/cpp2/cppmain.c,
7961         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
7962
7963 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7964
7965         Fixed a number of problems revealed by bug #827883.
7966         * src/SDCCloop.c (loopInvariants): Spill location of the
7967         result operand should be recomputed if extracted from
7968         a loop. Also, don't extract assignments of an iTemp
7969         from a literal.
7970         * src/SDCCast.c (isConformingBody): loop reversal should
7971         not occur if the control variable is involved with a
7972         relational operator.
7973
7974 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7975
7976         * .version: bumped to 2.3.6 to reflect the big improvements
7977         made by Erik and Klaus. Thanks!
7978
7979 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
7980
7981         Replaced the livrange code.
7982         * src/SDCClrange.c: added new LR code
7983         * src/SDCCloop.c,
7984         * src/SDCCBBlock.h: removed remainig parts from old LR code
7985         * src/ds390/ralloc.c,
7986         * src/ds390/gen.c: minor fixes to make it work with new code
7987
7988 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7989
7990         * as/hc08/asm.h,
7991         * as/hc08/lkrloc.c,
7992         * src/hc08/gen.c,
7993         * src/hc08/ralloc.c: Fix various warnings related to the hc08
7994         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
7995         (tweaked fix for bug #818696)
7996
7997 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7998
7999         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
8000
8001 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8002
8003         * src/SDCCmain.c,
8004         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
8005         * src/mcs51/gen.c (gencjneshort),
8006         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
8007         more efficient (per Scott Bronson's suggestion)
8008
8009 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8010
8011         Extended the semantics of the critical keyword to include
8012         individual statements. See RFE #827755 and #799831
8013         * src/SDCC.y
8014         * src/SDCCicode.c
8015         * src/SDCCopt.c
8016         * src/SDCCast.c
8017         * support/Util/SDCCerr.c
8018         * support/Util/SDCCerr.h
8019         * src/mcs51/gen.c
8020         * src/ds390/gen.c
8021         * src/hc08/gen.c
8022
8023 2003-10-19  Borut Razem <borut.razem AT siol.net>
8024
8025         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
8026
8027 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8028
8029         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
8030         Fixed bug #818696
8031         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
8032         and predecrement operand is displayed
8033
8034 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8035
8036         * src/SDCCval.c (valMinus): fixed bug #826041
8037
8038 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8039
8040         Some hc08 related updates that I missed earlier
8041         * sim/ucsim/stypes.h
8042         * support/regression/ports/hc08/spec.mk
8043
8044 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8045
8046         New target "hc08" for the Motorola 68hc08 family of micros
8047
8048         * configure
8049         * configure.in
8050         * Makefile
8051         * src/hc08/*
8052         * src/SDCCmain.c
8053         * src/port.h
8054         * sim/ucsim/hc08.src/*
8055         * sim/ucsim/configure.in
8056         * src/ucsim/configure
8057         * sim/ucsim/packages_in.mk
8058         * as/hc08/*
8059         * as/Makefile
8060         * device/include/mc68hc908qy.h
8061         * device/lib/hc08/*
8062         * device/lib/Makefile.in
8063         * support/regression/ports/hc08/*
8064         * support/regression/Makefile
8065
8066 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8067
8068         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
8069         regression test
8070         * src/ds390/gen.c (genCast): fixed bug #821957
8071
8072 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8073
8074         * device/lib/logf.c: "fixed" overlay bug
8075         * support/regression/ports/host/spec.mk: added m library
8076         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
8077         * support/regression/tests/float_trans: added (for Eric)
8078
8079 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
8080
8081         * src/mcs51/gen.c (genCpl): fixed bug
8082         http://sf.net/mailarchive/message.php?msg_id=6263915
8083
8084 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
8085
8086         * src/SDCCast.c (decorateType): added extended constant folding
8087         * src/SDCCsymt.c (computeType): cleanup
8088         * src/SDCCval.c (valShift): minor optimization
8089         * support/regression/tests/ast_constant_folding.c: added
8090
8091 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8092
8093         * src/SDCCmain.c: removed some unintended changes
8094
8095 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8096
8097         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
8098         * src/z80/gen.c: fixed part of bug #817589
8099         * src/SDCCsymt.c (checkFunction): fixed bug #817895
8100
8101 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
8102
8103         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
8104         * src/SDCCcflow.c
8105         * src/SDCCcse.c
8106         * src/SDCCdflow.c
8107         * src/SDCClabel.c
8108         * src/SDCClrange.c
8109         * src/SDCCmem.c
8110         * src/SDCCopt.c
8111         * src/SDCCpeeph.c
8112         * src/SDCCset.c
8113         * src/avr/ralloc.c
8114         * src/ds390/ralloc.c
8115         * src/izt/ralloc.c
8116         * src/mcs51/ralloc.c
8117         * src/pic/ralloc.c
8118         * src/pic16/ralloc.c
8119         * src/xa51/ralloc.c
8120         * src/z80/ralloc.c
8121         * src/z80/gen.c: removed unused label "release:"
8122
8123 2003-10-06  Borut Razem <borut.razem AT siol.net>
8124
8125         * src/SDCC.lex: removed definition of unused variables
8126           save_optimize and save_options
8127
8128 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
8129
8130         * clean.mk: removed '=' in "-maxdepth=1"
8131         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
8132         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
8133
8134 2003-10-06  Borut Razem <borut.razem AT siol.net>
8135
8136         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
8137           my_unput() replaced by unput()
8138
8139 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
8140
8141         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
8142         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
8143         type-punned pointer will break strict-aliasing rules"
8144         Old LR behaviour is again default; Klaus' LR can be choosen by
8145         defining the environment variable LRKLAUS
8146         * src/SDCCBBlock.h
8147         * src/SDCCloop.c
8148         * src/SDCClrange.c
8149         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
8150         * clean.mk: fixed removal of files in bin/CVS/
8151         * device/lib/clean.mk: fixed removal of directories small and large
8152         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
8153         * src/SDCCicode.c,
8154         * src/SDCCval.c: removed superflous test for pedantic
8155
8156 2003-10-05  Borut Razem <borut.razem AT siol.net>
8157
8158         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
8159           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
8160           message "unmatched #pragma SAVE and #pragma RESTORE"
8161
8162 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8163
8164         * doc/sdccman.lyx: various additions and updates (interrupts, inline
8165           assembly, critical functions, atomic, nojtbound)
8166
8167 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
8168
8169         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
8170         * src/SDCCBBlock.h
8171         * src/SDCCloop.c
8172         * src/SDCCloop.h
8173         * src/SDCClrange.c
8174
8175 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8176
8177         * src/z80/gen.h,
8178         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8179         * src/mcs51/gen.h
8180         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8181         * src/ds390/gen.h
8182         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8183         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
8184         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
8185
8186 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8187
8188         * src/z80/gen.c (genRet): fixed bug #524753
8189         * src/z80/gen.c (genCast): fixed internal error on cast from
8190         pointer to long
8191         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
8192         fix for bug #477835 to the z80
8193         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
8194         for tracking iCodes in the peephole optimizer for z80
8195
8196 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8197
8198         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
8199         the other part of bug #814548
8200         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
8201
8202 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
8203
8204         * src/SDCCcse.c: fixed part of bug #814548
8205
8206 2003-09-28  Borut Razem <borut.razem AT siol.net>
8207
8208         * src/asm.c: rewrite of printILine() to use temporary file instead
8209           a pipe
8210         * src/xa51/main.c: commented out declaration of int rewinds
8211
8212 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8213
8214         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
8215
8216 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8217
8218         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
8219         * src/asm.c (printILine): Fixed bug #811015
8220
8221 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8222
8223         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
8224         freeing.
8225
8226 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8227
8228         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
8229         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
8230         to correctly handle general case of AOP_PAIRPTR
8231         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
8232
8233 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8234
8235         * src/mcs51/ralloc.c (fillGaps),
8236         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
8237         register positioning bug)
8238
8239 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
8240
8241         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
8242
8243 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8244
8245         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
8246         genCodePointerGet, genGenPointerGet, genFarPointerSet,
8247         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
8248         (ralloc doesn't intentionally do this now, but perhaps later)
8249         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
8250         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
8251         register positioning bugs (Fixed bug #762602 and #795325)
8252         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
8253         (Fixed bug #808779)
8254         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
8255         lines that --i-code-in-asm generates
8256
8257 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8258
8259         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
8260         trying to fclose a FILE* that was already closed.
8261
8262 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8263
8264         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
8265         of const struct should be treated as if const themselves)
8266
8267 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
8268
8269         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
8270
8271 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8272
8273         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
8274         Unix (/n) and DOS (/r/n) line terminations.
8275
8276 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8277
8278         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
8279         bug #613775
8280
8281 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8282
8283         * src/mcs51/gen.c (genFunction, genEndFunction),
8284         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
8285         and restore of EA so that stack offsets to parameters are
8286         correct when using both critical and reentrant/stack-auto.
8287         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
8288         size (can be triggered in error if sloc is shared between
8289         different sized objects)
8290         * device/include/float.h: fixed macros to explicitly use
8291         unsigned long where needed
8292
8293 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
8294
8295         Feature req. 799831: added code to allow nesting of critical functions
8296         * src/mcs51/gen.c (genFunction, genEndFunction)
8297         * src/ds390/gen.c (genFunction, genEndFunction)
8298
8299 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8300
8301         * src/SDCCsymt.c (sclsFromPtr),
8302         * src/SDCCsymt.h,
8303         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
8304         support for standard C idiom of memory mapped variables; for
8305         example, *((xdata int*)0x1234) = 1 is now internally equivalent
8306         to xdata int at 0x1234 tempvar = 1.
8307         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
8308         provided by Akiya ISHIDA
8309
8310 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
8311
8312         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
8313         * src/SDCCval.c (constVal): added reduction from int to char
8314         * src/SDCCval.c (valMult, valDiv): fixed sign handling
8315         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
8316         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
8317         to ignore the sign
8318         * support/regression/tests/shifts.c: fixed
8319
8320 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8321
8322         * src/z80/gen.c (genXor): Fixed bug #805445
8323
8324 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8325
8326         Fixed bug #621531 (const & volatile confusion in the type chain).
8327         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
8328         refer to the const or volatile state of the pointer itself.
8329
8330         * src/SDCCast.c
8331         * src/SDCCglue.c
8332         * src/SDCCicode.c
8333         * src/SDCCsymt.c
8334         * src/SDCCval.c
8335         * src/SDCC.y
8336         * src/SDCCsymt.h
8337         * src/pic/gen.c
8338         * src/pic/ralloc.c
8339         * src/pic16/gen.c
8340         * src/pic16/ralloc.c
8341         * support/regression/tests/const.c
8342
8343 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8344
8345         When checking for duplicated modules, use absolute paths
8346         instead of relative paths.  Files changed:
8347
8348         * as/mcs51/lklib.c
8349         * link/z80/lklib.c
8350
8351 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8352
8353         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
8354
8355 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8356
8357         * device/include/string.h: added size_t typedef, changed
8358         prototypes to use size_t, eliminated separate reentrant and
8359         non-reentrant declarations, added _memmove declaration
8360         * device/lib/_memcpy.c: changed to use size_t instead of int,
8361         changed /4 to >>2 to avoid division library call
8362         * device/lib/_memcmp.c,
8363         * device/lib/_memset.c,
8364         * device/lib/_strncat.c,
8365         * device/lib/_strncpy.c,
8366         * device/lib/_strncmp.c: changed to use size_t instead of int
8367         * device/lib/_memmove.c: new file (fixed bug #772294)
8368         * device/lib/Makefile.in: added _memmove.c
8369         * device/lib/z80/asm_strings.s: fixed bug #772290
8370         * support/regression/tests/bitfields.c: attempt to fix host assertion
8371         failure on amd64-unknown-linux2.2
8372
8373 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8374
8375         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
8376         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
8377         * as/z80/asmain.c (main): fixed bug #801766
8378
8379 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
8380
8381         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
8382         compilers
8383
8384 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8385
8386         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
8387         reported in bug #800609
8388
8389 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
8390
8391         * Top header beautifications in src/pic16 directory:
8392           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
8393           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
8394           pcoderegs.h, ralloc.c, ralloc.h
8395         * main.c: added top header and GPL license notice
8396         * pcode.c: fixed the if-conditional warning
8397
8398 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
8399
8400         * device/lib/_mullong.c: replaced int by short for gcc
8401
8402 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8403
8404         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
8405         and JUMPTABLE iCodes properly now (worked by accident before)
8406         * src/mcs51/gen.c (leftRightUseAcc),
8407         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
8408         iCode properly now. Use getSize instead of nRegs since a & b
8409         aren't part of the nRegs tally.
8410
8411 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
8412
8413         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
8414         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
8415           before instructions that use the _STATUS register
8416
8417 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
8418
8419         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
8420         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
8421         fetching of the pointer
8422         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
8423         copied from genNearPointerSet()
8424         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
8425         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
8426         If they pop r0/r1 they must be called in the opposite order than aopOp().
8427         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
8428         (resp. --stack-auto), prepared for --xstack
8429
8430 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8431
8432         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
8433
8434 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8435
8436         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
8437         these ports have their own __sdcc_external_start()
8438
8439 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
8440
8441         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8442         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
8443         type for bits was changed. It resulted in bit variables becoming
8444         global, which is not permitted in PIC 14 assembly output.
8445
8446 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8447
8448         * doc/sdccman.lyx: various additions and updates. Rearranged sections
8449
8450 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8451
8452         Z80 and MCS51 linkers complaint if a public symbol is defined
8453         in more than one library module:
8454
8455         * as/mcs51/lklib.c
8456         * link/z80/lklib.c
8457         * as/mcs51/Makefile.in
8458
8459 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8460
8461         A few small changes that speed up the peephole optimizer.
8462
8463         * src/SDCCpeeph.c
8464
8465 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8466
8467         Try to make the peephole optimizer smarter by maintaining
8468         an association between the assembly source code and the
8469         iCodes that originated them. Put this information to use
8470         with a new peephole rule condition "notVolatile" so that
8471         the rules can be aggressive yet still safe.
8472
8473         * src/SDCCpeeph.c
8474         * src/SDCCpeeph.h
8475         * src/mcs51/gen.c
8476         * src/mcs51/peeph.def
8477
8478 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8479
8480         Fixed bug #741761
8481
8482         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
8483         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
8484         if the left or right operand symbols have the accuse flag set.
8485
8486 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8487
8488         Changed the type of the result of the ! (NOT) operator to char;
8489         previously it returned the same type as the source. This allows
8490         us to eliminate all the genFloatNot functions (all of its target
8491         implementations were very buggy) since !float can use the same
8492         code as !long now.
8493
8494         * src/SDCCicode.c (ast2iCode): ! returns char
8495         * src/mcs51/gen.c (genNot, genNotFloat),
8496         * src/ds390/gen.c (genNot, genNotFloat),
8497         * src/z80/gen.c (genNot, genNotFloat),
8498         * src/pic/gen.c (genNot, genNotFloat),
8499         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
8500
8501 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
8502
8503         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8504         1. Interrupt would not compile properly. Ensure PCLATH register is saved
8505            during interrupts. Ensure WSAVE is located at a shared bank address.
8506         2. Fixed page selection in some places
8507         3. Fixed BTFSS/C to where necessary use registers directly and not simply
8508            the registers name strings.
8509         4. Fixed "signed / unsigned compare" compiler warnings.
8510         5. The PIC port manages its own allocation of the general purpose
8511            registers, but makes no attempt to reuse them. As a result when
8512            compiling it soon runs out of general purpose registers. Some
8513            additional code was added to the files pcode.c and device.c to walk
8514            through the function call tree and rename the registers so that they
8515            get reused.
8516
8517         * src/pic/device.c
8518         * src/pic/gen.c
8519         * src/pic/glue.c
8520         * src/pic/pcode.c
8521         * src/pic/pcode.h
8522         * src/pic/ralloc.c
8523         * src/pic/ralloc.h
8524         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
8525         genPlus() & genMinus() when the result is the same as left or right
8526
8527 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8528
8529         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
8530
8531 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8532
8533         Made bitfield a distinct type from bit so that bitfields
8534         convert as per ANSI C and bits retain their traditional
8535         boolean style behaviour. Implemented bitfield support in
8536         the z80 port.
8537
8538         * src/SDCCsymt.h,
8539         * src/SDCCsymt.c,
8540         * src/SDCCast.c,
8541         * src/cdbFile.c,
8542         * src/mcs51/gen.c,
8543         * src/ds390/gen.c: bit v bitfield split
8544         * src/z80/gen.c: New support for bitfields
8545         * support/regression/tests/bitfields.c: reenabled z80,
8546         added more tests
8547
8548 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8549
8550         Rules 246.x, 247.x relate to bitfields, the others speed up
8551         access to xdata mapped I/O devices.
8552
8553         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
8554
8555 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8556
8557         Cleaned up genPackBits and genUnpackBits and added two helper
8558         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
8559         for literal assignments in genPackBits (thanks to Frieder for
8560         reminding me).
8561
8562         * src/mcs51/gen.c
8563         * src/ds390/gen.c
8564
8565 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8566
8567         Fixed bug #748310 (pointer to function type mishandled when the
8568         function name is omitted). Also fixed a SIGSEGV when a function
8569         attribute (reentrant, etc) is used on a non-function or on a
8570         function but misplaced before the parameter list.
8571
8572         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
8573         bug #748310
8574         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
8575         * support/Util/SDCCerr.h,
8576         * support/Util/SDCCerr.c: Added func attr misuse error msg
8577
8578 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8579
8580         Fixed bug #787649 by anonymous
8581         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
8582         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
8583
8584 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8585
8586         Fixed numerous bitfield problems.
8587
8588         * src/SDCC.y: More bitfield related error checking
8589         * src/SDCCsymt.h,
8590         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
8591         * support/Util/SDCCerr.h,
8592         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
8593         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8594         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8595         * support/regression/tests/bitfields.c: tests added
8596
8597 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8598
8599         Made the constant following the "interrupt" keyword optional. If
8600         omitted, the function will not automatically be given an entry
8601         in the interrupt vector table (similar to #pragma NOIV, but
8602         less syntacticly kludgy). The interrupt number is also now
8603         range checked. Also fixed a bug in the high order bit example
8604         in the manual.
8605
8606         * src/SDCC.y
8607         * src/SDCCmem.c
8608         * src/SDCCglue.c
8609         * src/SDCCsymt.h
8610         * support/Util/SDCCerr.c
8611         * support/Util/SDCCerr.h
8612         * doc/sdccman.lyx
8613
8614 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8615
8616         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
8617         * src/SDCCicode.c (operandOperation): rewritten some ops
8618         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
8619         * src/SDCCsymt.c (computeType): literals are handled the same way as any
8620         other type
8621         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
8622         be re-activated by defining REDUCE_LITERALS)
8623         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
8624         unsigned, but are signed by default
8625         * src/SDCCval.c (constVal): rearranged
8626         * src/SDCCval.c (valMod): preliminary fix
8627         * src/SDCCval.c (valCastLiteral): use TYPE_* types
8628         * support/regression/literalop.c: added, work in progress
8629
8630 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8631
8632         Generate warnings for useless declarations like "char data;"
8633         that don't do what new users expect.
8634
8635         * src/SDCC.y
8636         * support/Util/SDCCerr.h
8637         * support/Util/SDCCerr.c
8638
8639 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
8640
8641         * src/SDCCval.c (valMult): fix overflow detection of negative int
8642
8643 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8644
8645         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
8646
8647         Changes to support big endian targets:
8648
8649         * src/ports.h
8650         * src/SDCCglue.c
8651         * src/avr/main.c
8652         * src/ds390/main.c
8653         * src/izt/i186.c
8654         * src/mcs51/main.c
8655         * src/pic/main.c
8656         * src/pic16/main.c
8657         * src/xa51/main.c
8658         * src/z80/main.c
8659
8660 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
8661
8662         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
8663         * device/lib/time.c: fixed warning "integer overflow in expression"
8664
8665 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
8666
8667         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
8668         * src/SDCCval.c (constVal): changed default to signed; hex and octal
8669         constants are unsigned; added recognition of "u" flag for unsigned
8670         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
8671         * src/SDCCval.c (valDiv, valMod): fixed signdness
8672         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
8673         signedness of modulo, left and right shift
8674         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
8675         * support/Util/SDCCerr.h: added warning W_INT_OVL
8676         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
8677         * src/SDCCast.c (ast_print): improved output of constants
8678
8679 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8680
8681         Fixed some warnings when building with MSVC:
8682
8683         * as\mcs51\asdata.c
8684         * as\z80\asdata.c
8685         * as\mcs51\asm.h
8686         * as\z80\asm.h
8687         * link\z80\aslink.h
8688         * link\z80\lkdata.c
8689         * link\z80\lkeval.c
8690         * link\z80\lkgb.c
8691         * link\z80\lkihx.c
8692         * link\z80\lks19.c
8693         * link\z80\lksym.c
8694         * support\cpp2\cpplib.c
8695         * src\ds390\gen.c
8696         * src\mcs51\gen.c
8697
8698 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
8699
8700         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
8701
8702 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8703
8704         * support\librarian\clean.mk: Do not remove Makefile.
8705         * support\librarian\Makefile: added.
8706
8707 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8708
8709         Added librarian to MSVC build:
8710         * all.dsp
8711         * sdcc.dsw
8712         * support\librarian\librarian.dsp
8713
8714         'configure' not needed for librarian, removed:
8715         * support\librarian\configure
8716         * support\librarian\configure.in
8717         * support\librarian\config_in.h
8718         * support\librarian\Makefile.in
8719
8720         Hopefully these ones built the librarian and the rest of sdcc properly:
8721         * Makefile
8722         * Makefile.common.in
8723
8724         Messed up 'configure', so revert to previous version:
8725         * configure
8726         * configure.in
8727
8728 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
8729
8730         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
8731         there, while the mantissa of a double is "only" 53 bits wide.
8732
8733 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8734
8735         Adding sdcclib to the build.  MSVC project coming soon.
8736         Files added/changed:
8737
8738         * support\librarian\clean.mk
8739         * support\librarian\configure
8740         * support\librarian\configure.in
8741         * support\librarian\config_in.h
8742         * support\librarian\Makefile.bcc
8743         * support\librarian\Makefile.in
8744         * support\librarian\sdcclib.c
8745         * Makefile.bcc
8746         * Makefile
8747         * Makefile.common.in
8748         * configure
8749         * configure.in
8750
8751 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8752
8753         Linker now complaints if linked modules have conflicting options, for
8754         example, one compiled using --model-large and another one compiled with
8755         --model-small.  The following files were modified:
8756
8757         * as\mcs51\asdata.c
8758         * as\mcs51\aslink.h
8759         * as\mcs51\asm.h
8760         * as\mcs51\asmain.c
8761         * as\mcs51\asout.c
8762         * as\mcs51\i51pst.c
8763         * as\mcs51\lkdata.c
8764         * as\mcs51\lklibr.c
8765         * as\mcs51\lkmain.c
8766         * as\z80\asdata.c
8767         * as\z80\asm.h
8768         * as\z80\asmain.c
8769         * as\z80\asout.c
8770         * as\z80\z80pst.c
8771         * link\z80\aslink.h
8772         * link\z80\lkdata.c
8773         * link\z80\lklibr.c
8774         * link\z80\lkmain.c
8775         * src\SDCCglue.c
8776
8777 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8778
8779         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
8780         as/mcs51/lklibr.c: Generate a warning when a library is not found.
8781
8782 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
8783
8784         * src/z80/mappings.i: fix _mul[us][int,long] entries
8785
8786 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8787
8788         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
8789
8790 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8791
8792         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
8793         * support/regression/tests/bitopcse.c: added
8794         fixed warning:
8795         * src/avr/gen.c:
8796         * src/pic/gen.c:
8797         * src/pic16/gen.c:
8798         * src/z80/gen.c:
8799         * src/xa51/gen.c:
8800
8801 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8802
8803         added support for new library format to z80, gbz80 linkers:
8804         *link/z80/aslink.h
8805         *link/z80/lklex.c
8806         *link/z80/lklib.c
8807         *link/z80/lklist.c
8808
8809 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8810
8811         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
8812         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
8813
8814 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
8815
8816         added DUMMY_READ_VOLATILE:
8817         * src/SDCC.y:
8818         * src/avr/gen.c:
8819         * src/xa51/gen.c:
8820         * src/z80/gen.c:
8821         * src/pic/gen.c:
8822         * src/pic16/gen.c:
8823         * src/mcs51/gen.c:
8824         * src/ds390/gen.c:
8825         * src/SDCCcse.c (algebraicOpts): many improvements
8826         * src/SDCCcse.h: removed algebraicOpts()
8827         * src/SDCCicode.c (picDummyRead): added
8828
8829 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8830
8831         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
8832         "Insufficient space in data memory".
8833
8834 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8835
8836         * src/mcs51/gen.c: fixed bug #771358
8837         * src/z80/gen.c: fixed bug #759087
8838
8839 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
8840
8841         * src/pic16/glue.c: minor cleanup by Vangelis
8842
8843 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8844
8845         * device/include/regc515c.h: fixed #758477
8846         * device/lib/_gptrget.c: saving some cycles in generic pointer get
8847         * device/lib/_gptrput.c: saved a few bytes
8848         * my tab spacing is 8, yours too?)
8849         * device/lib/_ser.c: process RX bytes earlier than TX bytes
8850         * device/lib/serial.c: process RX bytes earlier than TX bytes
8851         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
8852
8853 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8854
8855         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
8856
8857 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8858
8859     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
8860
8861 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
8862
8863         * device/lib/Makefile.in: bad fix, reverted to 1.43
8864
8865 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
8866
8867         * device/lib/Makefile.in: added missing z80 object files
8868
8869 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
8870
8871         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
8872         pic16 progress by Vangelis:
8873         * src/SDCCglobl.h:
8874         * src/SDCCmain.c:
8875         * src/pic/Makefile:
8876         * src/pic:
8877         * pic/Makefile:
8878         * pic16/device.c:
8879         * pic16/device.h:
8880         * pic16/gen.c:
8881         * pic16/gen.h:
8882         * pic16/genarith.c:
8883         * pic16/glue.c:
8884         * pic16/main.c:
8885         * pic16/pcode.c:
8886         * pic16/pcode.h:
8887         * pic16/pcodepeep.c:
8888         * pic16/peeph.def:
8889
8890 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8891
8892     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
8893
8894 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8895
8896     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
8897     added gbz80 build to MSVC project.
8898     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
8899     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
8900     from 8051 stuff and setup so it links using a .lnk file.
8901
8902 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8903
8904     * support/librarian/sdcclib.c: sdcc librarian.
8905     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
8906     with sdcclib.
8907
8908 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8909
8910     * as/mcs51/lkmain.c: properly handle extensions in function afile.
8911
8912 2003-07-02  Borut Razem <borut.razem AT siol.net>
8913
8914         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
8915         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
8916         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
8917         src/xa51/main.c, src/z80/main.c:
8918         virtualization of glue() function: each port has it's own glue function,
8919         which is accessed by do_glue function pointer in PORT.general structure
8920
8921 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
8922
8923         * DS800C400 fun, improved ROM interface and tinibios.
8924
8925 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
8926
8927         * More support for DS80C400. Now includes beginning of interface to ROM.
8928
8929 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
8930
8931         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
8932
8933 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8934
8935         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
8936
8937 2003-06-19  Borut Razem <borut.razem AT siol.net>
8938
8939         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
8940
8941 2003-06-19  Borut Razem <borut.razem AT siol.net>
8942
8943         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
8944         fixed Z80 port - crt0.o: cannot open.
8945
8946 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
8947
8948         * support/Util/MySystem.c (merge_command): revert bad fix
8949
8950 2003-06-18  Borut Razem <borut.razem AT siol.net>
8951
8952         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
8953
8954 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8955
8956         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8957         option --use-stdout sends errors to stdout instead of stderr.
8958
8959 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
8960
8961         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
8962
8963 2003-06-15  Borut Razem <borut.razem AT siol.net>
8964
8965         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
8966         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
8967         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
8968         fixed width array of pointers replaced with sets;
8969         multiple include and lib paths ared transferred to preprocessor and linker
8970         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
8971         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
8972         fixed width array of pointers
8973         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
8974         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
8975         fixupPath(), getPathDifference()
8976         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
8977         fixed width array of pointers
8978
8979 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
8980
8981         * src/pic16/ralloc.c: fix warnings
8982         * src/pic16/pcode.c: fix warning
8983
8984 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
8985
8986          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
8987         know all the details, but essentially this set of changes enable
8988         the pic16 port to generate movff instructions and generate assembler
8989         directives,
8990         * src/SDCCmain.c:
8991         * src/pic16/gen.c:
8992         * src/pic16/glue.c:
8993         * src/pic16/pcode.c:
8994         * src/pic16/device.c:
8995         * src/pic16/main.c:
8996         * src/pic16/pcode.h:
8997         * src/pic16/pcoderegs.c:
8998         * src/pic16/ralloc.c:
8999         * src/pic16/ralloc.h:
9000
9001 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9002
9003         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9004         added option --vc, so sdcc errors and warnings are compatible with
9005         Microsoft Visual Studio.
9006
9007 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9008
9009         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
9010           device/lib/libfloat.lib: added atof function.
9011
9012 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
9013
9014         * doc/sdccman.lyx: updated to Lyx 1.3
9015         * doc/cdbfileformat.lyx: updated to Lyx 1.3
9016         * doc/test_suite_spec.lyx: updated to Lyx 1.3
9017         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
9018
9019 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
9020
9021         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
9022
9023 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9024
9025         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
9026           additions to the "related tools/documentation" section
9027
9028 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
9029
9030         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
9031
9032 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
9033
9034         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
9035         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
9036
9037 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
9038
9039         * doc/sdccman.lyx: fix double dash and other minor things
9040         * doc/Makefile: fix double dash
9041
9042 2003-05-28  Karl Bongers(patches from Martin Helmling)
9043         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
9044           condition and ignore commands.
9045
9046 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9047
9048         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
9049           is in parts still quite out of date, I did changes as far as I felt makes sense
9050           for a non-native english speaker.
9051           Please feel free to add to the manual or to correct my changes.
9052         * doc/Makefile: undid touching the date of intermediate tex files.
9053
9054 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9055
9056         * doc/sdccman.lyx: Manual has an index now
9057
9058 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
9059
9060         Finalize muluint/mulsint and mululong/mulslong merging:
9061         * device/lib/_mulint.c
9062         * device/lib/_mullong.c
9063         * device/lib/gbz80/mul.s
9064         * device/lib/gbz80/stubs.s
9065         * device/lib/z80/mul.s
9066         * device/lib/z80/stubs.s
9067         * src/SDCCsymt.c (initCSupport)
9068
9069 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9070
9071         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
9072         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
9073           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
9074           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
9075           instead of /Zm500.
9076
9077 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9078
9079         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
9080           the regression tests I'm not brave enough to enable 245.b, 245.c
9081         * doc/sdccman.lyx: added latex preamble for hyperref package.
9082           Using pdflatex this will give you a hyperlinked pdf file with
9083           bookmarks. (prepend '%' before /usepackage if this breaks something)
9084
9085 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9086
9087          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
9088
9089 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
9090
9091         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
9092
9093 2003-05-21    <johan AT balder>
9094
9095         * src/SDCCglue.c (printIval): fixed bug #739934
9096
9097 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9098
9099         Applied patch from bug 737905 (renamed yylineo to mylineno):
9100         * src/altlex.c
9101         * src/SDCCast.c
9102         * src/SDCglobl.h
9103         * src/SDCC.lex
9104         * src/SDCCsymt.c
9105         * src/SDCCval.c
9106         * src/pic16/pcode.c: Cleaned warnings
9107         * src/pic16/pcodeflow.c: Cleaned warnings
9108         * src/pic16/pcoderegs.c: Cleaned warnings
9109
9110 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
9111
9112         * src/pic16/pcode.c: Cleaned warnings
9113         * src/pic16/pcodepeep.c: Cleaned warnings
9114         * src/pic16/ralloc.c: Cleaned warnings
9115
9116 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9117
9118         * doc/sdccman.lyx: fixed bug 739745
9119         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
9120
9121 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
9122
9123         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
9124         it can be defined with CFLAGS when running configure
9125         * src/SDCCmain.c: fixed compiling + linking with object files
9126
9127 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
9128
9129         * configure.in: configure for pic16 port,
9130             added --disable-pic16-port
9131         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
9132         * src/SDCCmain.c: linkOptions is changed to set *,
9133             added if/endif conditional macros to remove options help
9134             messages from optionsTable when a port is not configured, added
9135             support for the PIc16 port in the ports table, when executing
9136             the compiler with no port specified on command line, a default
9137             port is selected with the new macro DEFAULT_PORT which is
9138             defined in port.h, in setDefaultOptions() linkOptions is removed
9139             from initialization assignment, since now it is a set,
9140             parseCmdLine uses setParseWithComma for linkOptions, in
9141             linkEdit() linkOptions are accessed with new function indexSet()
9142             which returns the i'th item of a set variable. See SDCCset.c, in
9143             linkEdit() when calling buildCmdLine(), added linkOptions as
9144             last argument. Now users can pass arguments to gplink via the
9145             -Wl option, main() uses pic16glue() to glue up pic16 programs
9146         * src/SDCCpeeph.c: various changes to support pic16
9147         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
9148             return the i'th item of the set
9149         * src/SDCCset.h: added function prototype for indexSet()
9150         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
9151         * src/clean.mk: added pic16 in CLEANALLPORTS variable
9152         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
9153             added macro DEFAULT_PORT
9154         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
9155         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
9156             generated
9157         * src/pic16/glue.c: commented out some error producing lines
9158         * src/pic16/main.c: __config directives are commented out to stop
9159             gpasm complaining and test the linkage with gplink, _linkCmd and
9160             _asmCmd changed to be more gplink and gpasm friendly
9161         * src/pic16/peeph.def: peep rule 3 is commented out, since it
9162             produced an error when parsed, peep rule 12 is added to utilize
9163             movff, but it is commented out since the pCode does not support
9164             yet a command with 2 address arguments
9165
9166 2003-05-18    <johan AT balder>
9167
9168         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9169         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9170 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
9171
9172         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
9173   Added feature to script commands from file.
9174
9175 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
9176
9177         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
9178         * src/SDCCutil.c: include ctype.h for win32
9179
9180 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
9181
9182         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
9183
9184 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
9185
9186         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
9187   Fixed so you can set breakpoints prior to run, run does not stop
9188   on entry now.  Add tbreak.  Other enhancements and fixes for use
9189   with ddd.
9190
9191 2003-05-12  Borut Razem <borut.razem AT siol.net>
9192
9193         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
9194
9195 2003-05-11  Borut Razem <borut.razem AT siol.net>
9196
9197         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
9198         the path of bin directory, so that PATH is the only env. variable, which has to be set
9199         in case of standard installation.
9200         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
9201         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
9202         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
9203
9204 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9205
9206         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
9207         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
9208         temp files are in the port dir; clean the gen/test directory when
9209         generating new test.c
9210         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
9211         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
9212         * support/regression/tests/zeropad.c: added
9213
9214 2003-05-09    <johan AT balder>
9215
9216         * src/SDCCglue.c: fixed bug #597940
9217
9218 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
9219
9220         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9221   cache sfr, optimize next,step, fix off by one sourceline,
9222   support ddd list function.
9223         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
9224
9225 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9226
9227         * support/regression/HTMLgen.py: added compare_s2f()
9228         * support/regression/Makefile: redo 1.27
9229         * support/regression/generate-cases.py: redo 1.5
9230
9231 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
9232
9233         * support/regression/tests/float.c: workaround 33 bit hex constant
9234         * support/regression/tests/simplefloat.c: fix division for host
9235
9236 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
9237
9238         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
9239         that tame's the PIC's over-aggressive optimizer.
9240
9241 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9242
9243          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
9244          support for MSVC.
9245
9246 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
9247
9248         Initial support for DS80C400. "Hello world" runs on TINIm400
9249         (with polled I/O).
9250
9251 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
9252
9253          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9254          * Some notes on ddd usage added in debugger/README
9255          Martin Helmling adding more features and fixes for ddd GUI debugger.
9256          Code added for nexti, stepi, up, down, and other adjustments.
9257
9258 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
9259
9260         * src/pic/pCodepeep.c non-wildcard asmops are now handled
9261         * src/pic/peeph.def Added two rules to optimize carry manipulation
9262         * src/pic/* removed debug printfs
9263
9264 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
9265
9266         * debugger/mcs51/cmd.c: added header newalloc.h
9267
9268 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
9269
9270         * as/Makefile: new EXEEXT
9271         * as/z80/Makefile: remove trailing slash of BUILDIR
9272         * as/z80/clean.mk: new EXEEXT
9273         * Makefile.common.in: add to CFLAGS (and others), don't replace it
9274         * support/cpp2/Makefile.in: new EXEEXT
9275         * src/pic/glue.c (pic14emitRegularMap): fixed warning
9276
9277 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
9278
9279         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
9280         EXEEXT was introduced to fix all related problems with targets
9281         "clean", "install" and "uninstall"; a couple of further flaws
9282         especially with "clean" have been fixed too
9283         * as/mcs51/Makefile.in
9284         * as/mcs51/clean.mk
9285         * as/z80/Makefile
9286         * Makefile
9287         * clean.mk
9288         * debugger/mcs51/Makefile.in
9289         * debugger/mcs51/clean.mk
9290         * link/z80/Makefile
9291         * link/z80/Makefile.in
9292         * link/z80/clean.mk
9293         * link/Makefile
9294         * packihx/Makefile.in
9295         * packihx/clean.mk
9296         * sim/ucsim/Makefile
9297         * sim/ucsim/clean.mk
9298         * sim/ucsim/avr.src/Makefile.in
9299         * sim/ucsim/avr.src/clean.mk
9300         * sim/ucsim/s51.src/Makefile.in
9301         * sim/ucsim/s51.src/clean.mk
9302         * sim/ucsim/xa.src/Makefile.in
9303         * sim/ucsim/xa.src/clean.mk
9304         * sim/ucsim/z80.src/Makefile.in
9305         * sim/ucsim/z80.src/clean.mk
9306         * sim/ucsim/main_in.mk
9307         * sim/ucsim/packages_in.mk
9308         * sim/ucsim/gui.src/Makefile.in
9309         * sim/ucsim/gui.src/serio.src/Makefile.in
9310         * sim/ucsim/gui.src/serio.src/clean.mk
9311         * src/Makefile.in
9312         * src/clean.mk
9313         * support/cpp2/Makefile.in
9314         * support/cpp2/clean.mk
9315         * support/makebin/Makefile
9316         * support/makebin/clean.mk
9317         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
9318         * doc/sdccman.lyx: --program-suffix no longer needed
9319
9320 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
9321
9322          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
9323          Martin Helmling added support for ddd GUI debugger.
9324          Code added to display assembly, set variables, and other commands
9325          to interface to ddd.
9326
9327 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
9328
9329         * as/Makefile: fix target clean
9330         * as/clean.mk: fix target clean
9331         * as/z80/clean.mk: fix target clean
9332
9333 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
9334
9335         * Makefile.common.in: added  AT EXEEXT AT
9336         * configure.in: removed all mingw32 stuff
9337         * configure: rebuilt from configure.in
9338         * doc/sdccman.lyx: updated section "installation"
9339         * support/scripts/sdcc_mingw32: adapted to configure
9340         * support/scripts/sdcc_cygwin_mingw32: added
9341
9342 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
9343
9344         * src/pic Added object file support for the PIC port
9345         * src/pic Applied patch from Craig Franklin (this started the object file support)
9346         * src/regression Updated the PIC regression tests for object files
9347
9348 2003-04-20  Borut Razem <borut.razem AT siol.net>
9349
9350         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
9351           lklex.c: In function `getfid':
9352           lklex.c:203: warning: array subscript has type `char'
9353         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
9354           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
9355         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
9356           stack handling macros
9357
9358 2003-04-19  Borut Razem <borut.razem AT siol.net>
9359
9360         * "handling space characters in file path" task:
9361         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
9362         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
9363         * support/Util/MySystem.h: make it self-sufficient
9364         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
9365           src/z80/main.c, sdcc/as/mcs51/lklex.c:
9366           handling space characters in file path
9367         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
9368           (it will be used by assemblers, which have their own includes, e.g. gpasm)
9369         * support/Util/MySystem.c: handling space characters in executable's path
9370
9371 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
9372
9373         * as/z80/Makefile: fix permanent rebuild of z80
9374         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
9375         * support/regression/tests/bitfields.c: added Johan's bitfields.c
9376
9377 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
9378
9379         * src/SDCCopt.c: add special case optimization to replace modulo by
9380           a power of two with a bitwise AND.
9381
9382 2003-04-18    <johan AT balder>
9383
9384         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
9385
9386 2003-04-17    <johan AT balder>
9387
9388         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
9389         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
9390
9391 2003-04-13  Borut Razem <borut.razem AT siol.net>
9392
9393         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
9394         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
9395           fixed mingw problem in adl_NORMALIZE_PATH
9396
9397 2003-04-12  Borut Razem <borut.razem AT siol.net>
9398
9399         * fixed "#pragma SAVE/RESTORE can not be nested":
9400         * src/SDCC.lex: reworked pragma handling functions
9401         * sdcc/src/SDCCglobl.h: reworked stack handling macros
9402         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
9403
9404 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9405
9406         * src/SDCCutil.c (pathEquivalent): defined but not used
9407         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
9408         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
9409         * configure: rebuilt from configure.in
9410         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9411         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9412         * device/include/Makefile.in: replace sdcc_datadir
9413         * device/lib/Makefile.in: replace sdcc_datadir
9414         * Makefile.common.in: add LDFLAGS from configure
9415         * packihx/Makefile.in: use LDFLAGS
9416         * src/Makefile.in: use LDFLAGS
9417         * support/cpp2/Makefile.in: add LDFLAGS from configure
9418         * support/makebin/Makefile: use LDFLAGS
9419         * .version: bumped version number to 2.3.5
9420
9421 2003-04-12  Borut Razem <borut.razem AT siol.net>
9422
9423         * completed "different paths" task:
9424         * src/SDCCmacro.c: fixed bug in handling quotes
9425         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
9426         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
9427
9428 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9429
9430         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
9431
9432 2003-04-11 kevin Vigor <kevin AT vigor.nu>
9433
9434         * ds390/gen.c ds390/peeph.def: fix bug 706781
9435
9436 2003-04-11  Borut Razem <borut.razem AT siol.net>
9437
9438         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
9439
9440 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
9441
9442         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
9443         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
9444          set - this bit used to not be set...).
9445         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
9446           bad code in PIC Port
9447         * src/regression/and2.c added to test bug 609268
9448         * src/regression/Makefile added and2.c to regression test
9449
9450
9451 2003-04-08    <johan AT CP255758-A>
9452
9453         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
9454         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
9455         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
9456
9457 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
9458
9459         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
9460         fix bug #487815
9461         * support/cpp2/Makefile.in: fix bug #487815
9462         * configure: rebuilt from configure.in
9463         * Makefile.common.in: docdir changed, new path suffixes
9464         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9465         * sdcc_vc_in.h: reflect changes from sdccconf.h
9466         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
9467         * src/SDCCutil.h: remove BINDIR hack
9468         * doc/sdccman.lyx: update new path hierarchy
9469
9470 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9471
9472         * src/SDCCpeeph.c: added okToRemoveSLOC test
9473
9474 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9475
9476         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
9477
9478 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9479
9480         * src/SDCCpeeph.c: added labelIsReturnOnly test
9481         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
9482
9483 2003-04-05    <johan AT balder>
9484
9485         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
9486         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
9487         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
9488         * src/SDCCast.c: fixed a warning
9489         * src/SDCCast.h: fixed a warning
9490         * src/SDCCicode.c (operandFromAst): fixed a warning
9491
9492 2003-04-04    <johan AT balder>
9493
9494         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
9495         * src/SDCCast.c (decorateType): fixed bug #715076
9496         * src/SDCC.y: fixed bug #702907
9497
9498 2003-04-03    <johan AT balder>
9499
9500         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
9501         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
9502         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
9503         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
9504         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
9505
9506 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
9507
9508         * _decdptr.c: fix return values
9509         * _gptrget.c: fix return values
9510         * _gptrgetc.c: fix return values
9511         * _gptrput.c: fix return values
9512         * _mulint.c: fix return values
9513         * as/z80/Makefile: fix 'make -j' problem
9514
9515 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
9516
9517         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
9518         * configure.in: big cleanup, updated to autoconf 2.5x
9519         * configure: rebuilt from configure.in
9520         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9521         * sdcc_vc_in.h: reflect changes from sdccconf.h
9522         * doc/Makefile: fixed a flaw in "make install"
9523
9524 2003-04-02    <johan AT balder>
9525
9526         * src/ds390/gen.c (genCmp): no comments
9527         * src/mcs51/gen.c (genCmp): no comments
9528         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
9529         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
9530
9531 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
9532
9533         * support/regression/generate-cases.py: place generated file in given sub directory
9534         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
9535         * support/regression/Makefile: improvements for 'make -j';
9536         side effect: it's simpler and faster now
9537
9538 2003-03-31  Borut Razem <borut.razem AT siol.net>
9539
9540         * src/z80/main.c: link-{port} and as-{port} defined without path
9541         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
9542
9543 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
9544
9545         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
9546
9547 2003-03-30  Borut Razem <borut.razem AT siol.net>
9548
9549         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
9550           changed type of list parameter to set
9551         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
9552         * src/port.h: changed type of do_assemble() parameter to set
9553         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
9554           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
9555           definition of "cppoutfilename" macro with NULL value in preProcess()
9556         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
9557         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
9558         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
9559           replaced with set *binPathSet
9560         * shash_add() deallocates the item, if allready exsists, before adding the new one
9561         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
9562
9563 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
9564
9565         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
9566           a nested for loop bug in the PIC port
9567         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
9568           for loops
9569
9570 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
9571
9572         * support/Util/dbuf.h: remove C++ stuff to make it portable
9573
9574 2003-03-28  Borut Razem <borut.razem AT siol.net>
9575
9576         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
9577           literal strings in stringLiteral()
9578         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
9579         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
9580           to the project
9581
9582 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
9583
9584         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
9585
9586 2003-03-26    <johan AT balder>
9587
9588         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
9589         * src/ds390/gen.c (saveRegisters): catched symbol abuse
9590         * src/SDCCast.c (decorateType): fixed " -v < 3"
9591
9592 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
9593
9594         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
9595         Added Lenny Story's debug infrastructure changes:
9596         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
9597         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
9598         * src/cdbFile.c: added
9599         * src/SDCCdebug.c: added
9600         * src/SDCCdebug.h: added
9601         * src/SDCCast.c (createFunction)
9602         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
9603         * src/SDCCmain.c (parseCmdLine, main)
9604         * src/SDCCmem.c (redoStackOffsets)
9605         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
9606         * src/SDCCsymt.h
9607         * src/common.h
9608         * src/avr/gen.c (genAVRCode)
9609         * src/ds390/gen.c (gen390Code)
9610         * src/mcs51/gen.c (gen51Code)
9611         * src/pic/gen.c (genpic14Code)
9612         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
9613         * src/xa51/gen.c (genXA51Code)
9614         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
9615
9616 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9617
9618         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
9619         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
9620
9621 2003-03-22    <johan AT balder>
9622
9623         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
9624
9625 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
9626
9627         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
9628         * doc/cdbfileformat.lyx: added, written by Lenny Story
9629         * doc/Makefile: added cdbfileformat.lyx
9630         * doc/clean.mk: added cdbfileformat.lyx
9631
9632 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
9633
9634         * src/mcs51/peeph.def: fix bug #705773
9635
9636 2003-03-20    <johan AT balder>
9637
9638         An sfr/sbit can have an "at #" AND an initializer
9639         * src/SDCCsymt.c (checkSClass):
9640         * src/SDCCmem.c (allocGlobal):
9641         * src/SDCCmem.c (allocLocal):
9642         * src/SDCCast.c (createBlock):
9643
9644 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
9645
9646         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
9647
9648 2003-03-16    <johan AT balder>
9649
9650         Undid the hackup of const and volatile, the problem is much bigger
9651         * src/SDCC.y:1.65
9652         * src/SDCCast.c:1.171
9653         * src/SDCCglue.c:1.138
9654         * src/SDCCicode.c:1.146
9655         * src/SDCCsymt.c:1.150
9656         * src/SDCCval.c:1.65
9657
9658 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
9659
9660         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
9661         * src/ds390/gen.c (genAddrOf): fixed bug #704087
9662
9663 2003-03-13    <johan AT balder>
9664
9665         Hackup const and volatile modifiers in type chains a bit:
9666         * src/SDCC.y:1.63
9667         * src/SDCCast.c:1.169
9668         * src/SDCCglue.c:1.136
9669         * src/SDCCicode.c:1.143
9670         * src/SDCCsymt.c1.146
9671         * src/SDCCsymt.h1.59
9672         * src/SDCCval.c:1.63
9673
9674 2003-03-12    <johan AT balder>
9675
9676         * src/SDCCBBlock.h: more LRH debugging junk
9677         * src/SDCCcflow.h: more LRH debugging junk
9678         * src/SDCCloop.c: more LRH debugging junk
9679         * src/SDCC.y (struct_declaration): fixed bug #697590
9680         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
9681         * src/ds390/gen.c (aopForRemat): fixed bug #700031
9682         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
9683
9684 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9685         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
9686         test function names must now match exactly).
9687         * src/SDCCcse.c: added special case in findCheaperOp to allow
9688         extending a short integer. Makes less awful code for bug 700121 test case.
9689
9690 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9691
9692         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
9693         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
9694
9695 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9696
9697         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
9698         actually called (operandsNotEqual() was called for all
9699         operandsNotEqualX tests).
9700
9701 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9702
9703         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
9704         with shorter literals. Fixes bug 700121.
9705
9706 2003-03-11    <johan AT balder>
9707
9708         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
9709
9710 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
9711
9712         * src/SDCCloop.c (mergeRegions): an evil beast is dead
9713         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
9714
9715 2003-03-10  Borut Razem <borut.razem AT siol.net>
9716
9717         * src/SDCCmain.c: pipe preprocessor's output
9718         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9719         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9720         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9721         which closes all pipes in pipeSet set
9722         * src/SDCCset.c: free deleted item in function deleteSetItem()
9723         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9724         moved from z80 to src subproject
9725         * .version: increased version number to 2.3.4
9726
9727 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
9728
9729         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
9730         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
9731         * support/regression/ports/xa51/spec.mk: fix typo
9732
9733 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
9734
9735         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
9736
9737 2003-03-09  Borut Razem <borut.razem AT siol.net>
9738
9739         * src/SDCCmain.c: pipe preprocessor's output
9740         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9741         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9742         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9743         which closes all pipes in pipeSet set
9744         * src/SDCCset.c: free deleted item in function deleteSetItem()
9745         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9746         moved from z80 to src subproject
9747
9748 2003-03-09  Borut Razem <borut.razem AT siol.net>
9749
9750         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
9751         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
9752         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
9753         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
9754         * src/SDCCglobl.h: unification of WIN32 native definitions
9755
9756 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9757
9758         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
9759
9760 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9761
9762         * src/configure.in:   check for endianess (even while cross-compiling)
9763         * src/configure:      check for endianess (even while cross-compiling)
9764         * src/configure_in.h: check for endianess (even while cross-compiling)
9765         * src/avr/gen.c:        remove old endianess stuff
9766         * src/mcs51/gen.c:      remove old endianess stuff
9767         * src/ds390/gen.c:      remove old endianess stuff
9768         * src/pic/gen.c:        remove old endianess stuff
9769         * src/pic/genarith.c:   remove old endianess stuff
9770         * src/pic/glue.c:       fix endianess check
9771         * src/pic16/gen.c:      remove old endianess stuff
9772         * src/pic16/genarith.c: remove old endianess stuff
9773         * src/pic16/glue.c:     fix endianess check
9774         * src/xa51/gen.c:       remove old endianess stuff
9775         * src/z80/gen.c:        fix endianess check
9776         * src/SDCCglue.c:       fix endianess check
9777         * src/ds390/peeph.def: fix bug 700036
9778
9779 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9780
9781         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
9782         * src/configure: find appropriate data-types on host for SDCC's int and long
9783         * src/configure.in: find appropriate data-types on host for SDCC's int and long
9784         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
9785         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
9786
9787 2003-03-07    <johan AT balder>
9788
9789         Just a big NOOP:
9790                 some minor cleanups before the big shot
9791                 OP_DEFS and OP_USES now use Kevin's protection
9792                 new option --nolabelopt
9793
9794         * src/SDCCBBlock.c:
9795         * src/SDCCast.c,:
9796         * src/SDCCcflow.c:
9797         * src/SDCCcse.c:
9798         * src/SDCCicode.c:
9799         * src/SDCCicode.h:
9800         * src/SDCClabel.c:
9801         * src/SDCCloop.c:
9802         * src/SDCCmain.c:
9803         * src/ds390/ralloc.c:
9804         * src/mcs51/ralloc.c:
9805         * src/pic/ralloc.c:
9806         * src/xa51/ralloc.c:
9807         * src/z80/ralloc.c:
9808
9809 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
9810
9811         * src/pic/pcode.c (get_op): fix 64 bit warnings
9812         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
9813         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
9814         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
9815         * support/regression/tests/malloc.c: fix 64 bit warnings
9816
9817 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
9818
9819         * src/mcs51/gen.c (genMinus): fixed bug 696436
9820
9821 2003-03-02  Borut Razem <borut.razem AT siol.net>
9822
9823         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
9824
9825 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
9826
9827         * configure.in: test for mkstemp
9828         * sdccconf_in.h: add HAVE_MKSTEMP
9829
9830 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
9831
9832         * device/include/ctype.h: removed warning while using --stack-auto
9833         * device/include/malloc.h: removed warning while using --stack-auto
9834         * device/include/string.h: removed warning while using --stack-auto
9835
9836 2003-02-23  Borut Razem <borut.razem AT siol.net>
9837
9838         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
9839         because NDEBUG is defined (see man assert)
9840         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
9841
9842 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9843
9844         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
9845         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
9846
9847 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9848
9849         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
9850         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
9851
9852 2003-02-18    <johan AT balder>
9853
9854         * as/mcs51/asmain.c (asmbl): module can start with a digit
9855         * as/z80/asmain.c (asmbl): module can start with a digit
9856
9857 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
9858
9859         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
9860         * src/asm.c: fix pipe() for Mingw32
9861
9862 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
9863
9864         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
9865         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
9866         make -V work again; --c1mode reads now from stdin
9867         * doc/sdccman.lyx: added --c1mode
9868         * support/Util/SDCCerr.c: new messages for c1 mode
9869         * support/Util/SDCCerr.h: new messages for c1 mode
9870         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
9871
9872 2003-02-15    <johan AT balder>
9873
9874         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
9875
9876 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
9877
9878         * doc/sdccman.lyx: Environment variables, -o and other minor things
9879
9880 2003-02-14    <johan AT balder>
9881
9882         * src/xa51/main.c: before anyone really tries to use it :)
9883
9884         * Install doc's in share/sdcc/doc
9885         * removed some obsolete files
9886         * Do a proper make distclean and uninstall
9887         M Makefile.common.in
9888         R sdccbuild.sh
9889         M as/Makefile
9890         M device/include/Makefile.in
9891         M device/lib/Makefile.in
9892         M doc/sdccman.lyx
9893         M link/Makefile
9894         M sim/ucsim/doc/Makefile.in
9895         M src/clean.mk
9896         R src/avr/peeph.rul
9897         R src/xa51/peeph.rul
9898         M support/cpp2/Makefile.in
9899         M support/makebin/Makefile
9900
9901
9902 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
9903
9904         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
9905
9906 2003-02-10  Borut Razem <borut.razem AT siol.net>
9907
9908         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
9909         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
9910         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
9911         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
9912         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
9913         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
9914         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
9915         src/z80/Makefile.bcc: Borland Makefile cleanup
9916         * as/z80/Makefile.bcc: Added Borland Makefile
9917         * support/cpp2/borland.h: Removed
9918
9919 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
9920
9921         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
9922         * src/SDCC.lex: new pragma NOIV
9923         * src/SDCCglobl.h: new pragma NOIV
9924         * src/SDCCmem.c: new pragma NOIV
9925
9926 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9927
9928         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
9929
9930 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9931
9932         * src/SDCCmain.c: signal handling is switched off by --debug
9933         * doc/Makefile: small fix for install; use clean.mk again
9934         * doc/clean.mk: clean *.pdf and *.html too
9935
9936 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
9937
9938         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
9939         * device/lib/printfl.c: fix a ds390 bug by making it portable
9940         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
9941         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
9942         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
9943         * debugger/mcs51/cmd.c: converted multi-line string literals
9944         * sim/ucsim/globals.cc: converted multi-line string literals
9945         * src/SDCCmain.c: introduced signal handler to remove temp files
9946         * doc/Makefile: small tweaks, implement clean
9947         * doc: removed generated files
9948
9949 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9950
9951         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
9952         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
9953         Address Record is not correctly generated for DS390."
9954
9955 2003-02-02  Borut Razem <borut.razem AT siol.net>
9956
9957         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
9958         * as/mcs51/asm.h: fixed compilation with Borland C
9959         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
9960         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
9961         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
9962         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
9963         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
9964         src/z80/Makefile.bcc: delete $(LIB) only if exist
9965         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
9966
9967 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
9968
9969         * device/include/malloc.h: introduced NULL
9970         * device/include/string.h: introduced NULL
9971         * device/include/stdlib.h: introduced NULL
9972         * device/lib/_memcpy.c: removed NULL
9973         * device/lib/_strcat.c: removed NULL
9974         * device/lib/_strchr.c: removed NULL
9975         * device/lib/_strcmp.c: removed NULL
9976         * device/lib/_strcpy.c: removed NULL
9977         * device/lib/_strcspn.c: removed NULL
9978         * device/lib/_strlen.c: removed NULL
9979         * device/lib/_strncat.c: removed NULL
9980         * device/lib/_strncmp.c: removed NULL
9981         * device/lib/_strncpy.c: removed NULL
9982         * device/lib/_strpbrk.c: removed NULL
9983         * device/lib/_strrchr.c: removed NULL
9984         * device/lib/_strspn.c: removed NULL
9985         * device/lib/_strstr.c: removed NULL
9986         * device/lib/_strtok.c: removed NULL
9987         * device/lib/malloc.c: removed NULL, include own header
9988
9989 2003-02-02    <johan AT balder>
9990
9991         * 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
9992         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
9993         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
9994         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
9995         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
9996         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
9997
9998 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9999
10000         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
10001         area 'DATA'"
10002
10003 2003-02-01    <johan AT balder>
10004
10005         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
10006
10007 2003-01-31    <johan AT CP255758-A>
10008
10009         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
10010
10011 2003-01-30    <johan AT balder>
10012
10013         * src/SDCCBBlock.c: automatic bug detection
10014         * src/SDCCicode.c: automatic bug detection
10015
10016 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10017
10018         * src/SDCCglobl.h:   now --xram-size 0 works
10019         * src/SDCCmain.c:    now --xram-size 0 works
10020
10021 2003-01-29    <johan AT balder>
10022
10023         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
10024
10025 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10026
10027         * as/mcs51/aslink.h: Added options --xram-size and --code-size
10028         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
10029         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
10030         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
10031         * src/SDCCglobl.h:   Added options --xram-size and --code-size
10032         * src/SDCCmain.c:    Added options --xram-size and --code-size
10033
10034 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
10035
10036         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
10037         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
10038
10039 2003-01-27    <johan AT balder>
10040
10041         * src/SDCC.y: fixed bug #613764
10042
10043 2003-01-26    <johan AT balder>
10044
10045         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
10046         * src/SDCCsymt.h: fixed bug #673374
10047         * src/SDCCglue.c: fixed bug #661910
10048         * src/SDCCast.c: fixed bug #458099 and 673374
10049
10050 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
10051
10052         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
10053         * as/mcs51/strcmpi.h: added
10054         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
10055         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
10056         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
10057         * as/mcs51/assym.c: strcmpi -> as_strcmpi
10058         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
10059         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
10060         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
10061         * as/mcs51/Makefile.aslink: new module strcmpi
10062         * as/mcs51/Makefile.asx8051: new module strcmpi
10063         * as/mcs51/Makefil.bcc: new module strcmpi
10064         * as/mcs51/Makefile.in: new module strcmpi
10065         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
10066
10067 2003-01-26    <johan AT balder>
10068
10069         * src/SDCCglue.c: reverted back to 1.124
10070         * src/SDCCast.c: reverted back to 1.156
10071         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
10072
10073 2003-01-25    <johan AT balder>
10074
10075         * src/SDCCglue.c: A better fix for bug #661910
10076         * src/SDCCast.c: A better fix for bug #661910
10077         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
10078
10079 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10080
10081         * src/Makefile.in: remove spawn.o
10082         * src/SDCCmain.c: remove spawn.h
10083         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
10084         * src/spawn.c: removed
10085         * src/spawn.h: removed
10086         * support/regression/ports/ds390/spec.mk: link with -r
10087
10088 2003-01-24    <johan AT CP255758-A>
10089
10090         * src/ds390/gen.c (aopOp): fixed bug #667458
10091         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
10092         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
10093         (createIvalCharPtr): an ival doesn't always have a storage class anymore
10094
10095 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10096
10097         * src/mcs51/peeph.def: better assembler identation by Frieder
10098         * src/mcs51/gen.c: better assembler identation by Frieder
10099
10100 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
10101
10102         * as/z80/string.h: removed for gcc 3.2
10103         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
10104         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
10105
10106 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10107
10108         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
10109         * src/SDCCpeeph.c (replaceRule): fix bug #663503
10110         * support/regression/Makefile: separate temp files for ports
10111         * support/regression/generate-cases.py: separate temp files for ports
10112         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10113         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10114
10115 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10116
10117         * moved tinitalk to device/examples/ds390
10118
10119 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
10120
10121         * as/mcs51/lkmem.c: rflag is for DS390
10122         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
10123         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
10124                          (linkEdit): move mem- and map-files the same way as ihx-files
10125         * src/z80/main.c (_setDefaultOptions): removed --generic
10126         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
10127         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
10128         * src/pic/glue.c (picglue): --c1mode works again
10129         * src/pic16/glue.c (pic16glue): --c1mode works again
10130         * src/asm.c (printCLine): fix #660034
10131
10132 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
10133
10134         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
10135         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
10136         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
10137         * as/mcs51/lkmem (summary): better fix for sp problem
10138         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
10139         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
10140         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
10141                                               remove --stack-after-data
10142
10143 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
10144
10145         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
10146         * src/SDCCutil.c (join): ugly bug: missing '\0'
10147         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
10148
10149 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10150
10151         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
10152         * src/port.h: typo
10153         * src/pic/main.c (_asmCmd): gpasm supports -o
10154         * src/z80/main.c: more general macros
10155         * device/lib/Makefile.in: remove intermediate files
10156
10157 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10158
10159         * .version: Bumped version number to 2.3.3
10160         * src/SDCCBBlock.c: new option -o
10161         * src/SDCCglobl.h: new option -o
10162         * src/SDCCglue.c: new option -o
10163         * src/SDCCmain.c: new option -o
10164         * src/asm.c: new option -o
10165         * src/ds390/main.c: new option -o
10166         * src/pic/glue.c: new option -o
10167         * src/pic/pcode.c: new option -o
10168         * src/pic/ralloc.c: new option -o
10169         * src/pic16/glue.c: new option -o
10170         * src/pic16/pcode.c: new option -o
10171         * src/pic16/ralloc.c: new option -o
10172         * src/z80/main.c: new option -o
10173         * device/lib/Makefile.in: use -o
10174         * support/regression/ports/ds390/spec.mk: use -o
10175         * support/regression/ports/gbz80/spec.mk: use -o
10176         * support/regression/ports/mcs51/spec.mk: use -o
10177         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
10178         * support/regression/ports/z80/spec.mk: use -o
10179         * support/regression/ports/ucz80/spec.mk: use -o
10180         * support/regression/ports/xa51/spec.mk: use -o
10181         * support/regression/fwk/lib/timeout.c: fix usage string
10182
10183 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
10184         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
10185
10186 2003-01-07    <johan AT balder>
10187
10188         * src/SDCCast.c (decorateType): fixed bug #600035
10189
10190 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
10191         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
10192         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
10193         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
10194         * src/pic/pcode.c: outcommented unused variable to remove warnings
10195         * src/pic/ralloc.c: outcommented unused variable to remove warnings
10196
10197 2003-01-06    <karl AT turbobit.com>
10198         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
10199    regression tests.
10200
10201 2003-01-06    <johan AT balder>
10202
10203         * src/SDCCicode.c: fixed array add
10204
10205 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
10206         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
10207         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
10208
10209 2003-01-04    <johan AT balder>
10210
10211         * src/SDCCval.c (getNelements): fixed the initialized array of structures
10212
10213 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10214         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
10215
10216 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10217         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
10218         * support/regression/tests/bug-524697.c: fit mem usage into 8032
10219
10220 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10221         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
10222
10223 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
10224         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
10225
10226 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
10227         * src/mcs51/main.c: removed {bindir}{sep} from aslink
10228
10229 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10230
10231     * in \sdcc\as\mcs51\ changed these files in order to create an
10232     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
10233     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
10234     following files to include the previous two files: aslink.dsp,
10235     Makefile.aslink, Makefile.bcc, and Makefile.in.
10236
10237     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
10238     .adb instead of .cdb
10239
10240 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10241
10242         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
10243         value from option --iram-size.
10244
10245 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10246
10247         * \sdcc\as\mcs51\lklist.c: added boundary check before using
10248         dram[] array.
10249
10250 2002-09-18    <wiml AT hhhh.org>
10251
10252         * SDCClrange.h: exposed setFromRange() and setToRange()
10253         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
10254           packRegsForAccUse() (bug 542397)
10255         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
10256           multiple times and emitting the fetch operations more than once
10257           added aopGetUsesAcc() function to allow binary operators to
10258           fetch their operands in the correct order; made genMinus() emit
10259           compact code for X = LITERAL - Y
10260
10261 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10262         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
10263         sprintf() in line 1267.
10264
10265 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10266         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
10267         like ports.
10268
10269 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10270         Changes to aslink (All the changes are marked with 'JCF'):
10271
10272         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
10273         summary().
10274
10275         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
10276         area BSEG.  Also moves, if possible, the DATA area down into the internal
10277         ram so more space is available.
10278
10279         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
10280         sflag.
10281
10282         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
10283         not bytes.  Function summary() which creates a memory usage summary
10284         file with extension .mem.  Reports of overlaping stack and small stack
10285         size.  If the space for the stack is less than 16 bytes aslink trows a
10286         warning.
10287
10288         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
10289         the 8051.  Option 'y' for memory summary output file.
10290
10291         Changes to sdcc (All the changes are marked with 'JCF'):
10292
10293         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
10294
10295         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
10296         overlaying area for it (uses RegBankUsed[4]).
10297
10298         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
10299         bank zero as used by default.  By default aslink locates the stack
10300         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
10301         the creation of the .mem file.  Delegates the allocation of data area
10302         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
10303         the begining of the stack area to aslink.
10304
10305         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
10306         glue() in SDCCglue.c creates an area for it.
10307
10308 2002-09-03  Borut Razem <borut.razem AT siol.net>
10309         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
10310         sdcc/src/pic/glue.c:
10311         introduced atexit() handler for teporay files removal in case of
10312         errors, assertions, ...
10313
10314 2002-08-29  Borut Razem <borut.razem AT siol.net>
10315         * sdcc/support/cpp2/auto-host_vc_in.h:
10316         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
10317         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
10318         Maybe there is a similar problem with BORLANDC? It should be checked!
10319
10320         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
10321         corrected improper use of assert: the assignment to clr variable was done inside the assert.
10322         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
10323         was not executed, and the compiler (cl) launched a warning:
10324         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
10325
10326 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
10327         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
10328
10329 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
10330         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
10331
10332         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10333           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
10334           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
10335           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10336           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
10337           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
10338           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
10339         - added Release configuration in VS projects
10340         - review of compiler an linker options
10341         - VC .exe files are generated in bin_vc directory, not to interfere
10342           with binaries generated from other projects (cygwin, mingw, bcc ...)
10343
10344         * sdcc/src/yacc.dsp: added
10345
10346         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
10347         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
10348         and insert the version number definitions from .version
10349
10350         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
10351
10352         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
10353         added - genarate auto-host.h using auto-host_vc_in.h as template
10354
10355         * sdcc/sdcc_vc.h,
10356         removed from CVS, generated automatically
10357
10358 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
10359         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
10360
10361 2002-08-11  Borut Razem <borut.razem AT siol.net>
10362         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
10363
10364 2002-08-10  Borut Razem <borut.razem AT siol.net>
10365         * src/SDCCmain.c (main):
10366         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
10367         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
10368         The consequence was that some temporary files were not removed.
10369
10370         * src/SDCCglue.c:
10371         unification of code in functions tempfilename() and tempfile():
10372         function tempnam() is defined in Visual Studio 6.0 and .NET
10373
10374         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
10375
10376         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10377           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
10378         - removed compiler command line option /WX: Treats all warnings as errors
10379         - update a list of source files, included into the project
10380
10381         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10382           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
10383         changed project type to Generic Project so that can be correcly converted to VS.NET project
10384
10385         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
10386
10387         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
10388
10389         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
10390
10391         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
10392         added return 0 statements after assert() to make compiler happy
10393
10394         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
10395         added newline in the def file to keep MSC compiler satisfied
10396
10397         * sdcc/src/z80/gen.c:
10398         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
10399           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
10400         - solved MSC error in function aopDump()
10401
10402         * sdcc_vc.h: define PREFIX as "\\sdcc"
10403
10404 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
10405         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
10406
10407 2002-06-22  Scott Dattalo <scott AT dattalo.com>
10408         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
10409         - Rewrote the register banking algorithm.
10410         - Added pCode live-range analysis to registers (for now, only non-used and
10411         singly-used registers optimized away)
10412
10413         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
10414
10415         * 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.
10416
10417 2002-05-10  Scott Dattalo <scott AT dattalo.com>
10418         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
10419
10420 2002-04-22  Michael Hope  <michaelh AT vroom>
10421
10422         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
10423
10424         * configure.in (DD_COPT): Added include support required for gbdk.
10425
10426         * .version: Bumped version number just to increase it.
10427
10428         * src/SDCCmain.c: Added -nostdinc to the default options.
10429
10430 2002-04-15  Michael Hope  <michaelh AT vroom>
10431
10432         * device/lib/z80/printf.c (sprintf): Added.
10433
10434         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
10435
10436         * src/z80/peeph.def: Added transpose redundent load rule.
10437
10438         * src/z80/main.c: Added force callee saves for jaune.
10439
10440         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
10441
10442         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
10443
10444 2002-03-28  Johan Knol  <johan AT balder>
10445
10446         * src/SDCCval.c: fixed bug #532436
10447
10448 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10449         * /src/port.h:
10450         Added "char *Processor" field to the port structure.
10451
10452         * /src/SDCCmain.c:
10453         Added -p option. Allows port dependent processor to be specified.
10454
10455         * all ports:
10456         Initialized the new field char *Processor field to NULL in all ports
10457
10458         * /src/pic/*:
10459         Compiler generated registers for interrupt context saving
10460         were not getting allocated.
10461
10462 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
10463
10464         * /src/SDCCast.c:
10465         Fixed left shift. Will promote the left side of a left shift
10466         if a) left shifting more than size of operand or b) when assigned
10467         to something size > size of left side
10468
10469 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10470         * src/pic/*
10471         tons of changes. Register allocation has been
10472         rewritten. Added customization for the various PICs. Flow
10473         analysis is restructured. ...
10474
10475         * src/pic/device.h:
10476         Added
10477
10478         * src/pic/device.c:
10479         Added. device.c is a PIC port hack to accomodate variations
10480         in PIC devices.
10481
10482 2002-03-13  Michael Hope  <michaelh AT vroom>
10483
10484         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
10485
10486 2002-03-04  johanknol  <johanknol AT manik>
10487
10488         * /src/SDCCval.c: fixed
10489
10490         const unsigned char arr[][2] = { { 0, 1 } };
10491         t18.c:1: error: Initializer element is not constant
10492
10493 2002-03-04  bela  <bela AT manik>
10494
10495         * /device/include/mcs51reg.h:
10496         ds89c420 register definition update
10497
10498 2002-03-03    <johan AT FRIJA>
10499
10500         * support/Util/SDCCerr.c: did something, but don't no why anymore
10501
10502         * support/regression/tests/bug-524691.c: made it a little less shy
10503
10504         * src/SDCCast.c (decorateType): fixed bug #524697
10505
10506         * src/SDCCast.c: made some lineno improvements
10507
10508         * src/SDCCval.c (getNelements): changed warning to error
10509
10510         * src/SDCCglue.c (printIvalArray): changed warning to error
10511
10512         * src/SDCCicode.c: fixed a warning for mingw
10513
10514         * src/SDCCast.c (decorateType): fixed the << promotion for ops
10515
10516         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
10517
10518 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
10519
10520         * src/ds390/peeph.def:
10521         Added some more peephole rules
10522
10523         * src/ds390/gen.c: Various fixes & enhancements
10524
10525         * src/SDCClrange.c, src/SDCClrange.h:
10526         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
10527
10528         * src/ds390/ralloc.c:
10529         various fixes & enhancements (ds390) specific
10530
10531         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
10532         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
10533         from rallocs.
10534
10535         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
10536
10537 2002-03-02    <johan AT FRIJA>
10538
10539         * src/SDCCast.c (decorateType): fixed bug #524708
10540
10541         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
10542
10543         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
10544
10545 2002-03-01  Michael Hope  <michaelh AT vroom>
10546
10547         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
10548
10549         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
10550
10551 2002-03-01    <johan AT FRIJA>
10552
10553         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
10554
10555         * src/SDCCast.c (decorateType): fixed bug #524209
10556
10557         * src/SDCCval.c (valNot): fixed bug #524195
10558
10559 2002-02-26    <johan AT balder>
10560
10561         * src/xa51/gen.c: fixed a warning
10562
10563         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
10564
10565         * src/SDCCast.c (decorateType): fixed bug #522534
10566
10567 2002-02-23    <johan AT balder>
10568
10569         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
10570
10571 2002-02-22    <johan AT balder>
10572
10573         * src/SDCCast.c: fixed bug #514865
10574
10575         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
10576
10577 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
10578
10579         * sdcc/src/SDCCloop.c:
10580         Previous fix was not good. basic blocks that have "break" or "return" are
10581         not really partof a loop , but live ranges used in these blocks should
10582         be live thru the entire loop, so set partOfLoop but don't add them to
10583         loop region
10584
10585 2002-02-21    <johan AT FRIJA>
10586
10587         * src/SDCCcse.c: fixed bug #514308
10588
10589 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
10590
10591         * src/SDCCloop.c:
10592         Fixed BUG #519583. If a conditional block ended in a return/break
10593         statement inside a loop, it was not being considered part of the loop.
10594
10595         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
10596
10597 2002-02-10  Karl Bongers <karl AT turbobit.com>
10598
10599         * debugger/*:
10600         Fixed up SDCDB debugger somewhat.  Updated debugger/README
10601         with lots of comments and notes.
10602
10603         * device/examples/test2.c:
10604         Fix bug, "red" variable not being initialized(compiler complained).
10605
10606         * device/examples/Makefile, examples/test3.c:
10607         Add Makefile in device/examples folder, compiles test3.c
10608         for use as a multiple module SDCDB test case.
10609
10610         * sim/ucsim/cmd.src/cmdset.cc:
10611         Took out debug printfs in ucsim "next" command.
10612
10613         * sim/ucsim/xa.src:
10614         Karl and Johan start ucsim XA support.  Most dissassembly working,
10615         about 75% emulation done(plenty of work remaining).
10616
10617         * sim/ucsim/z80.src:
10618         Add Z80 support to ucsim, add test-ucz80 regression test,
10619         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
10620         Notice z80 compiler fails on examples/test3.c/crc code.
10621
10622 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
10623
10624         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
10625         Added support for --parms-in-bank1
10626
10627         * src/ds390/peeph.def:
10628         added a few more peephole optimzations
10629
10630         * src/ds390/main.c:
10631         1) added __builtin_inp & __builtin_outp used to read in data of given length
10632            from a memory mapped port
10633         2) added __builtin_memcmp
10634         3) added __builtin_swapw swap bytes of a short
10635
10636         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
10637         1) handle multiple send & receives from register bank1
10638         2) ralloc can now allocate DPTR1 to some liveRanges
10639
10640         * src/SDCCsymt.c, src/SDCCsymt.h:
10641         changes to handle multiple sends & receives
10642
10643         * src/SDCCptropt.h:
10644         added some pointer arithmetic optimization
10645
10646         * src/SDCCptropt.c:
10647         added some pointer arithmetic optimizations but not stable yet so not
10648         called from anywhere (will get this working shortly)
10649
10650         * src/SDCCopt.c: fixed for multiple sends & receives
10651
10652         * src/SDCCmain.c:
10653         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
10654         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
10655            set preprocessor defines (depending on options)
10656
10657         * src/SDCCicode.c, src/SDCCicode.h:
10658         changes made to handle multiple sends & receives
10659
10660         * src/SDCCglobl.h:
10661         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
10662
10663         * src/SDCCcse.c, src/SDCCcse.h:
10664         added function findbackward def (to be used in upcoming optimization)
10665
10666         * src/SDCCcflow.c, src/SDCCcflow.h:
10667         added function returnAtEnd - to determine if a basic block terminates with
10668         a RETURN iCode
10669
10670         * src/SDCCast.c, src/SDCCast.h:
10671         added option parms-in-bank1
10672
10673         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
10674         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
10675         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
10676         adjusted for --parms-in-bank1 option
10677
10678         * device/include/string.h:
10679         donot redefine "reentrant" keyword
10680
10681         * device/include/ds80c390.h: Added some more SFRs
10682
10683 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
10684
10685         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
10686
10687 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
10688
10689         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
10690
10691 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
10692
10693         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
10694
10695 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
10696
10697         * Added --xram-movc option
10698
10699 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
10700
10701         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
10702
10703 2002-01-11  Johan Knol
10704
10705         * Added math lib of Jesus Calvino-Fraga
10706
10707 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
10708
10709         * src/SDCCmain.c (processFile): fix processing of ../../src.c
10710         * support/regression/Makefile: new target test-mcs51-stack-auto
10711         * support/regression/ports/mcs51-stack-auto/spec.mk: added
10712
10713 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10714
10715         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
10716
10717 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10718
10719         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
10720
10721 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
10722
10723         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
10724
10725         * src/SDCCglue.h: add definition for printIvalChar()
10726
10727 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10728
10729         * src/SDCCast.c: fix #498138 by Johan
10730
10731         * src/SDCCglue.c: fix #498138 by Johan
10732
10733 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10734
10735         * support/regression/Makefile: fix clean
10736
10737         * support/regression/ports/ds390/support.c: fix transmission of last character
10738
10739 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
10740
10741         * /sdcc/src/ds390/gen.c:
10742         a) improved computing address of stack variable
10743         b) took out some #if 0 code
10744         c) improved parmBytes adjustment
10745         d) improved genPlusIncr & genMinusIncr
10746         e) genCmp could generate bad code (when left assigned to DPTR)
10747         f) Fixed bug in hasInc
10748
10749         * /sdcc/src/ds390/ralloc.c:
10750         a) packRegsForSupport could mess up live information (Fixed)
10751         b) packRegsDPTRuse could be incorrect for left & right shift
10752
10753         * /sdcc/src/mcs51/ralloc.c:
10754         packRegsForSupport could mess up the live information (Fixed)
10755
10756         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
10757
10758         * /sdcc/src/SDCCast.c:
10759         can reverse a loop even if function call is present as long
10760         as the loop control variable is local & is not passed as parameter
10761
10762 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10763
10764         * /sdcc/ChangeLog: *** empty log message ***
10765
10766         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
10767         More builtin function additions for TININative
10768
10769         * /sdcc/src/ds390/ralloc.c:
10770         Had broken the regression testsuite
10771
10772         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
10773
10774         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
10775         Added funcattr hasStackParms will be set for reentrant functions when there
10776         are paramteres on the stack, this helps in minimizing frame pointer generation
10777         typeFromStr can handle function pointers now
10778
10779         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
10780         *** empty log message ***
10781
10782 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10783
10784         * /src/ds390/gen.c, /src/ds390/main.c:
10785         More builtin function additions for TININative
10786
10787         * /src/ds390/ralloc.c:
10788         Had broken the regression testsuite
10789
10790         * /src/SDCCast.c: Fixed a bug in dumptree
10791
10792         * /src/SDCCsymt.c, /src/SDCCsymt.h:
10793         Added funcattr hasStackParms will be set for reentrant functions when there
10794         are paramteres on the stack, this helps in minimizing frame pointer generation
10795         typeFromStr can handle function pointers now
10796
10797         * /doc/builtins.txt, /doc/TININative.txt:
10798         *** empty log message ***
10799
10800
10801 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10802
10803         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
10804         ALPHA version for -mTININative
10805
10806         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
10807         updated to reflect changes in the port structure
10808
10809         * /src/port.h:
10810         added function do_assemble (similar to do_link) if non-null this function
10811         will be called to do assembly (-mTININative) requires a multi command
10812         assembly
10813         added function genAssemblerEnd will be called to generate assembler Epilogue
10814
10815         * /src/SDCCsymt.c:
10816         added _JavaNative to debug info printing
10817
10818         * /src/SDCCmain.c: added option --tini-libid
10819         added port->do_assemble function (-mTININative) has a multi command assemble
10820
10821         * /src/SDCCglue.c: Disabled "constExpr" check
10822         added port->genAssemblerEnd function
10823
10824         * /src/SDCCglobl.h: Added option --tini-libid value
10825
10826         * /src/SDCCast.h:
10827         tookout optimizeCompare from the header (has no external references)
10828
10829         * /src/SDCCast.c: made one more function "static"
10830
10831 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
10832
10833         * src/z80/mappings.i: Added z80asm support.
10834
10835         * src/z80/main.c: Added z80asm support on --asm=z80asm
10836
10837         * src/z80/gen.c: Fixed asm portability issues.
10838
10839         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
10840
10841         * src/SDCCglue.c (printExterns): Added global/extern split.
10842
10843 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
10844
10845         * support/regression/Makefile: added test for mcs51 model large
10846
10847         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
10848
10849         * support/regression/ports/gbz80/spec.mk: added -mgbz80
10850
10851 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
10852
10853         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
10854
10855 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
10856
10857         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
10858
10859         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
10860
10861 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
10862
10863         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
10864
10865         * support/regression/tests/simplefloat.c: Port to mcs51.
10866
10867 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
10868         * support/regression/tests/bug-485362.c: Added.
10869
10870         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
10871
10872         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
10873
10874         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
10875
10876         * src/z80/gen.c (aopDump): Added a dump function.
10877
10878 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
10879         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
10880
10881         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
10882
10883         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
10884
10885         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
10886
10887         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
10888
10889         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
10890
10891         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
10892
10893         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
10894
10895         * support/regression/ports/ds390/support.c: Use tinibios.
10896
10897         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
10898
10899 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
10900
10901         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
10902         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
10903
10904         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
10905
10906         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
10907
10908 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
10909
10910         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
10911
10912         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
10913         (packRegsForIYUse): Created and optimised.
10914
10915 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10916
10917         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
10918 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
10919
10920         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
10921
10922         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
10923
10924         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
10925
10926 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10927
10928         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
10929
10930         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
10931
10932 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10933
10934         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
10935
10936         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
10937
10938         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
10939
10940 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10941
10942         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
10943         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
10944         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
10945
10946         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
10947
10948         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
10949         (genNotFloat): Added.
10950         (genUminusFloat): Added.
10951
10952         * device/lib/z80/Makefile: Added floating pt stubs.
10953
10954         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
10955
10956         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
10957
10958         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
10959
10960 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10961
10962         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
10963
10964         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
10965
10966         * sdcc/support/regression/Makefile: Add port ds390.
10967
10968         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
10969
10970         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
10971
10972         * sdcc/support/regression/ports/ds390/spec.mk: Added.
10973
10974         * sdcc/support/regression/ports/ds390/support.c: Added.
10975
10976         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
10977
10978         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
10979
10980         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
10981
10982 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
10983
10984         * device/include/malloc.h: Added z80 and gbz80 support.
10985
10986         * device/lib/gbz80/heap.s: Added.
10987
10988         * device/lib/z80/heap.s: Added.
10989
10990         * device/lib/malloc.c: Added z80 and gbz80 support.
10991
10992         * support/regression/tests/malloc.c (testMalloc): Added.
10993
10994         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
10995
10996         * support/regression/tests/bug-478094.c: Added.
10997
10998         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
10999
11000 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
11001
11002         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
11003
11004         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
11005
11006         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
11007
11008         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
11009
11010         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
11011
11012 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11013
11014         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
11015
11016 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
11017
11018         * support/regression/tests/bug-477927.c: Added.
11019
11020         * src/z80/peeph.def: Added minor rules.
11021
11022         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
11023
11024         * src/z80/peeph.def: Added jump optimisation modification.
11025
11026 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
11027
11028         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
11029
11030 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
11031
11032         * support/regression/tests/funptrs.c: Added.
11033
11034 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
11035
11036         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
11037
11038 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
11039
11040         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
11041
11042         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
11043
11044         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
11045         (movLeft2ResultLong): Created.
11046
11047         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
11048         (joinPushes): Added.  Joins two char pushes into a word push.
11049
11050 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
11051
11052         * support/cpp2/Makefile.in (install): Added creation of dest dir.
11053
11054         * support/makebin/Makefile (install): Added creation of dest dir.
11055
11056 2001-10-24 Karl Bongers <karl AT turbobit.com>
11057
11058         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
11059
11060 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
11061
11062         * src/z80/ralloc.c: Turned off faulty pack for one use.
11063
11064         * src/z80/peeph-gbz80.def: Removed redundent restart options.
11065
11066         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
11067
11068 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
11069
11070         * support/regression/Makefile: Improved clean
11071
11072         * support/regression/ports/gbz80/spec.mk: Added clean
11073
11074         * support/regression/ports/host/spec.mk: Added clean
11075
11076         * support/regression/ports/z80/spec.mk: Added clean
11077
11078         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
11079
11080         * support/regression/ports/mcs51/timeout.c: little improvements
11081
11082 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
11083
11084         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
11085
11086         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
11087
11088         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
11089
11090 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
11091
11092         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
11093
11094         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
11095
11096 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
11097         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
11098
11099         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
11100
11101         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
11102
11103         * src/mcs51/main.c (_linkCmd): Added bin path to command.
11104
11105         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
11106
11107         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
11108
11109         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
11110
11111         * support/regression/tests/longor.c: Added.
11112
11113 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
11114
11115         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
11116
11117         * as/mcs51/aslink.h: define PATH_MAX
11118
11119         * as/mcs51/asm.h: define PATH_MAX
11120
11121         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
11122
11123         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
11124
11125         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
11126
11127         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
11128
11129         * src/SDCCglobl.h: define PATH_MAX
11130
11131         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
11132
11133         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
11134
11135 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
11136
11137         * src/z80/gen.c (gencjneshort): Fixed
11138
11139         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
11140
11141 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
11142
11143         * support/regression/tests/bug-469671.c: Added.
11144
11145         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
11146
11147 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
11148
11149         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
11150
11151         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
11152
11153 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
11154
11155         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
11156
11157         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
11158
11159         * src/device/lib/_mullong.c : removed hint: nooverlay bug
11160
11161         * src/device/lib/_divuint.c : removed hint: nooverlay bug
11162
11163         * src/device/lib/_divulong.c: removed hint: nooverlay bug
11164
11165         * src/device/lib/_moduint.c : removed hint: nooverlay bug
11166
11167         * src/device/lib/_modulong.c: removed hint: nooverlay bug
11168
11169 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
11170
11171         * 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.
11172
11173         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
11174
11175         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
11176
11177 2001-10-07    <johan AT FRIJA>
11178
11179         * device/lib/gets.c (gets): fixed the return value.
11180
11181 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
11182         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
11183
11184         * 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.
11185
11186         * 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.
11187
11188         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
11189
11190         * src/pic/gen.c: Removed Safe_strdup.
11191
11192         * configure.in: Added option to enable libgc support.
11193
11194         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
11195         (bitVectUnion): Optimised.
11196         (bitVectIntersect): Optimised.
11197         (bitVectBitsInCommon): Optimised.
11198         (bitVectCplAnd): Optimised.
11199
11200         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
11201
11202 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11203
11204         * src/SDCCmain.c: distinguish between assembler debug and plain options
11205
11206         * src/avr/main.c:   remove standard assembler options
11207
11208         * src/ds390/main.c: remove standard assembler options
11209
11210         * src/mcs51/main.c: remove standard assembler options
11211
11212         * src/port.h: removed "PENDING" comment
11213
11214 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11215
11216         * src/device/lib/_mulint.c  : new, with assember functions
11217
11218         * src/device/lib/_mullong.c : new, with assember functions
11219
11220         * src/device/lib/_divuint.c : with assember functions
11221
11222         * src/device/lib/_divsint.c : with assember functions
11223
11224         * src/device/lib/_divulong.c: with assember functions
11225
11226         * src/device/lib/_divslong.c: with assember functions
11227
11228         * src/device/lib/_moduint.c : with assember functions
11229
11230         * src/device/lib/_modsint.c : with assember functions
11231
11232         * src/device/lib/_modulong.c: with assember functions
11233
11234         * src/device/lib/_modslong.c: with assember functions
11235
11236         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
11237
11238         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
11239
11240         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
11241                                       replaced _mululong.c and _mulslong.c by _mullong.c
11242
11243 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11244
11245         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
11246
11247 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11248
11249         * src/SDCCglue.c: test, if win32api is available for MINGW
11250
11251 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11252
11253         * src/SDCCsymt.c: no more _modifier in printTypeChain()
11254         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
11255         * support/regression/ports/gbz80/spec.mk: removed GENERIC
11256         * support/regression/ports/host/spec.mk: removed GENERIC
11257         * support/regression/ports/mcs51/spec.mk: removed GENERIC
11258         * support/regression/ports/z80/spec.mk: removed GENERIC
11259
11260 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
11261
11262         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
11263
11264         * support/regression/tests/bug-467035.c: Created.
11265
11266 2001-10-01    <johan AT FRIJA>
11267
11268         * src/SDCC.y: fixed bug #466586 part 1
11269
11270 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
11271
11272         * SDCCicode.c: z80 has no generic pointers
11273         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
11274
11275 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
11276
11277         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
11278
11279 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
11280
11281         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
11282
11283         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
11284
11285 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
11286
11287         * configure.in: Fixed up so that ucsim is only configured once.
11288
11289         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
11290
11291         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
11292         (getPathDifference): As above.
11293
11294         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
11295
11296         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
11297
11298 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
11299         * .version: Updated to 2.3.1
11300
11301         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
11302         Added copyright header.
11303
11304         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
11305         (assemble): Added support for macro based assembler commands.
11306         (linkEdit): Added support for macro based linker commands.
11307         (preProcess): Changed the pre-processor to use macros.
11308         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
11309         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
11310
11311         * device/lib/z80/crt0.s: Added module name for debugging.
11312
11313 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
11314
11315         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11316
11317         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
11318
11319         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
11320
11321         * src/Makefile.in: Added SDCCmacro and SDCCutil
11322
11323 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
11324
11325         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11326
11327 2001-09-16    <johan AT FRIJA>
11328
11329         * 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.
11330
11331 2001-09-15    <johan AT FRIJA>
11332
11333         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
11334         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
11335
11336 2001-09-11    <johan AT FRIJA>
11337
11338         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
11339
11340 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
11341
11342         * support/regression/tests/bug-460444.c: Added test case.
11343
11344         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
11345         (genCast): Added justification for all of the asserts.
11346
11347 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
11348
11349         * support/regression/support.c: _xdata replaced by xdata
11350
11351         * support/regression/spec.mk: removed _generic
11352
11353 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
11354
11355         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
11356
11357         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
11358         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
11359
11360         * src/z80/peeph.def: Added a rule to optimise shift then compare.
11361
11362         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
11363
11364         * support/regression/tests/bug-460010.c: Added test case.
11365
11366         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
11367
11368 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
11369
11370         * support/regression/Makefile: inter-port-clean adjusted for mcs51
11371
11372         * support/regression/testfwk.c: removed workaround for bug #436344
11373
11374         * support/regression/tests/bp.c: use less memory with mcs51
11375
11376         * support/regression/tests/bug-441448.c: use less memory
11377
11378         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
11379
11380         * support/regression/collate-results.py: typo
11381
11382 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
11383
11384         * support/regression/tests/fetchoverlap.c: Added new test case.
11385
11386         * support/regression/tests/bp.c: Added new test case.
11387
11388         * support/regression/tests/bug-448984.c: Added new test case.
11389
11390         * support/regression/tests/pow2shifts.c: Added new test case.
11391
11392         * src/z80/gen.c: Turned off the noise it normally generates for the release.
11393         (genlshTwo): Fixed right shift for count > 8.
11394
11395         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
11396
11397 2001-09-08    <johan AT FRIJA>
11398
11399         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
11400
11401 2001-09-07    <johan AT FRIJA>
11402
11403         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
11404
11405         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
11406
11407 2001-09-06    <johan AT FRIJA>
11408
11409         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
11410         * bernhard noted me at this: "() equals to (void)" (1.38)
11411
11412 2001-09-05    <johan AT FRIJA>
11413
11414         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
11415
11416 2001-09-04    <johan AT FRIJA>
11417
11418         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
11419
11420
11421 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
11422
11423         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
11424
11425 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
11426
11427         * link/z80/aslink.h: Fixed path for PATH_MAX
11428
11429 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
11430
11431         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
11432
11433         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
11434
11435         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
11436
11437         * 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.
11438
11439 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
11440
11441         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
11442         (genCmp): Fixed up genCmp for the GB with longs.
11443
11444         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
11445
11446         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
11447
11448         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
11449
11450         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
11451
11452 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
11453
11454         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
11455
11456 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
11457
11458         * 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.
11459
11460         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
11461
11462 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
11463
11464         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
11465
11466         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
11467
11468 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
11469
11470   * sim/ucsim/configure:    little improvement of Cygwin-detection
11471   * sim/ucsim/configure.in: little improvement of Cygwin-detection
11472   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
11473   * support/regression/tests/bug-221100.c: small changes for mcs51
11474   * support/regression/tests/bug-221168.c: small changes for mcs51
11475   * support/regression/tests/bug-227710.c: small changes for mcs51
11476   * support/regression/tests/staticinit.c: small changes for mcs51
11477   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
11478   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11479   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11480
11481 $Revision$