0ec01fb98a539c86ad6f47ccc1222692fd7f0db4
[fw/sdcc] / ChangeLog
1 2006-05-27 Borut Razem <borut.razem AT siol.net>
2
3         * support/regression/fwk/lib/testfwk.c: increase stack size
4           from deafult 64 bytes to 128 bytes
5
6 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
7
8         * src/pic16/gen.c (genFunction, genEndFunction): some
9         beautifications, fixed bug with falsely restoring FSR2 in large
10         stack model, thanks to Beau E. Cox for reporting the bug
11
12 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
13
14         * debugger/mcs51/break.c,
15         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
16           use %p to print pointers, made address variables unsigned
17         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
18         * debugger/mcs51/symtab.c (parseSymbol): must return something
19         * src/mcs51/gen.c (aopForSym): small optimization,
20            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
21           (freeAsmop): added missing break,
22           (aopPut): removed parameter bvolatile, determine it inside the function,
23           (saveRegisters, unsaveRegisters): small optimization,
24           (genIpush): removed pointless check,
25           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
26           replaced sprintf with SNPRINTF,
27           replaced strcpy with strncpyz,
28           updated aopPut calls,
29           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
30         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
31
32 2006-05-24 Borut Razem <borut.razem AT siol.net>
33
34         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
35           modification of test for the pic16 port, put the array to the code
36           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
37
38 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
39
40         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
41         * support/Util/pstdint.h: added
42
43 2006-05-22 Borut Razem <borut.razem AT siol.net>
44
45         * src/regression/Makefile: removed bool2.c test, added -q linker option
46         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
47           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
48           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
49           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
50           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
51           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
52           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
53           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
54           define SUPPORT_BIT_TYPES 0, removed unused bit variables
55
56 2006-05-22 Raphael Neider <rneider AT web.de>
57
58         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
59           bug #1492360 (problematic due to generic pointers, see code)
60
61 2006-05-22 Borut Razem <borut.razem AT siol.net>
62
63         * support/regression/ports/pic16/specs.mk: removed stack size linker
64           directive
65         * support/regression/tests/array.c,
66           support/regression/tests/bitopcse.c,
67           support/regression/tests/bug-908454.c,
68           support/regression/tests/malloc.c: modified for pic16 regression test
69         * support/regression/tests/bitfields.c:
70           pic16 - excluded bitfileds of size > 8
71         * support/regression/tests/bp.c: pic16 - reduced data size
72         * support/regression/tests/bug-221100.c: pic16 - reduced data size
73         * support/regression/tests/bug-460010.c:
74           pic16 - used the absolute address the fits in memory
75         * support/regression/tests/bug-716242.c:
76           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
77         * support/regression/tests/float.c:
78           pic16 - excluded - data size too big
79         * support/regression/tests/onebyte.c:
80           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
81         * support/regression/tests/shifts.c:
82           pic16 - function names probably have to differ in first X characters
83           (gpasm limitation?)
84         * support/regression/tests/staticinit.c:
85           pic16 - excluded some tests due error: no target memory available for
86           section ".idata"
87
88 2006-05-22 Borut Razem <borut.razem AT siol.net>
89
90         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
91           second try. Thanks Stas Sergeev once more.
92
93 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
94
95         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
96           (genLeftShift, genRightShift): fixed bug 1491627
97         * src/hc08/peeph.def (rules 7, 8.x): added
98         * support/regression/tests/shifts.c (ShiftLeftByParam,
99           ShiftRightByParam, testShiftByParam): added to test variable shifting
100
101 2006-05-20 Raphael Neider <rneider AT web.de>
102
103         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
104         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
105           (allocReg): add only new registers to dynAllocRegs,
106           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
107             #1489055, #1445850, and probably #1483693
108
109 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
110
111         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
112         bug in for-loop that didn't emit the last of CONFIG and ID registers
113
114 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
115
116         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
117           with offset
118         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
119           1489016, 1434401 and 1490124
120         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
121           1489016, 1434401 and 1490124
122
123 2006-05-17 Borut Razem <borut.razem AT siol.net>
124
125         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
126           thanks Stas Sergeev
127
128 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
129
130         * device/include/mcs51/P89c51RD2.h,
131         * device/include/mcs51/P89LPC901.h,
132         * device/include/mcs51/P89LPC922.h,
133         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
134
135 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
136
137         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
138         to fix missing stack pragma in compiled binary object file,
139
140 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
141
142         * support/packihx/configure.in,
143         * support/packihx/configure: removed warning, autoconf >= 2.5x can
144         determine sizeof basic types even while cross compiling
145
146 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
147
148         * src/avr/gen.c (aopop),
149         * src/ds390/gen.c (aopOp),
150         * src/hc08/gen.c (aopOp),
151         * src/mcs51/gen.c (aopop),
152         * src/pic16/gen.c (pic16_aopOp),
153         * src/pic/gen.c (aopOp),
154         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
155         if size of operand is smaller than spill location
156
157 2006-05-12 Borut Razem <borut.razem AT siol.net>
158
159         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
160           have to have CR/LF line endings even if they are checked out on *nix
161           or on WIN32 in cygwin binmode
162
163 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
164
165         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
166         * device/include/ds80c390.h: added sfr16 definitions
167         * src/ds390/gen.c,
168         * src/ds390/gen.h,
169         * src/ds390/main.c,
170         * src/ds390/ralloc.c,
171         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
172           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
173           bit returning functions
174         * support/regression/tests/sfr16.c: enabled test on ds390
175
176 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
177
178         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
179         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
180
181 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
182
183         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
184         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
185           (cl_address_space constructor): removed expensive initialization,
186           (cl_address_space::get_cell): extended for late initialization,
187           (cl_address_space::*): use late initialization,
188           (cl_address_decoder::activate): removed expensive initialization,
189           This reduced regression test running time by 25%
190
191 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
192
193         * packihx/,
194         * configure.in,
195         * configure,
196         * sdcc.dsw,
197         * Makefile.bcc,
198         * Makefile.in,
199         * support/packihx/Makefile.in,
200         * support/packihx/clean.mk,
201         * support/packihx/Makefile.bcc,
202         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
203
204 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
205
206         * src/SDCCval.c (valNot): fix for regression test failure
207           of not.c on big endian hosts
208
209 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
210
211         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
212
213 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
214
215         * device/lib/mcs51/Makefile.in: changed string comparison operator
216           to = for POSIX compliance; == is bash extension
217
218 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
219
220         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
221           kosmonaut_pirx
222
223 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
224
225         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
226         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
227         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
228         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
229         bug report #1478657,
230
231 2006-05-05 Borut Razem <borut.razem AT siol.net>
232
233         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
234           making the html
235
236 2006-05-02 Borut Razem <borut.razem AT siol.net>
237
238         * doc/Makefile.in: removed *.ind dependency since there is no rule to
239           create *.ind, which made make to fail if invoked with -j 2
240
241 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
242
243         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
244           Hubert Sack for patch 1479782
245
246 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
247
248         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
249
250 2006-05-01 Raphael Neider <rneider AT web.de>
251
252         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
253           (create_pic): store only prefix-free device name,
254           (init_pic): check for device names with "16" prefix,
255           (list_valid_pics),
256         * src/pic/device.h (struct PIC_device),
257         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
258             stored device name,
259         * device/include/pic/pic12f{635,675,629,683}.h,
260         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
261         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
262         * device/include/pic/pic16f505.h,
263         * device/lib/pic/libdev/pic16f505.c: removed
264         * device/include/pic/pic14devices.txt: added support for pic12f
265             devices, removed unsupported non 16-bit devices
266             [above changes provided by patch from Zik Saleeba]
267         * src/pic/*, src/pic16/*, device/include/pic16/*,
268           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
269
270 2006-05-01 Borut Razem <borut.razem AT siol.net>
271
272         * configure.in, configure, doc/Makefile.in:
273           sync with nightly build makefile - latex, dvipdf and dvips
274           not needed any more
275
276 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
277
278         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
279         in the library source
280
281 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
282
283         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
284
285 2006-04-28 Raphael Neider <rneider AT web.de>
286
287         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
288         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
289           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
290         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
291
292 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
293
294         * device/lib/pic/libdev/Makefile.in,
295         * device/lib/hc08/Makefile.in,
296         * device/lib/gbz80/Makefile.in,
297         * device/lib/z80/Makefile.in,
298         * device/lib/ds390/Makefile.in,
299         * device/lib/ds400/Makefile.in: added srcdir to include search path,
300         thanks to Borut for the bug report
301         * configure.in,
302         * configure: always create doc/Makefile independent from --enable-doc
303         * Makefile.in: always install from directory doc independent from
304         --enable-doc
305         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
306         removed
307         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
308         * doc/Makefile.in: install *.txt if present
309         * device/include/Makefile.in (install): added installation of pic/*.inc
310         and pic/*.txt files again, they were erroneously removed
311
312 2006-04-28 Raphael Neider <rneider AT web.de>
313
314         * src/pic/{gen.c,main.h,pcode.c},
315         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
316             concerning signedness with casts
317
318 2006-04-28 Raphael Neider <rneider AT web.de>
319
320         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
321             definition of an interrupt handler,
322         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
323             interrupt handler stuff from picglue() to separate routine,
324           (picglue): enabled definition of intr handlers in files w/o main()
325
326 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
327
328         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
329           compilation with MSVC 2005 Express Edition (VC8)
330
331 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
332
333         * device/lib/Makefile: fixed build of gbz80 lib
334
335 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
336
337         * support/regression/tests/bug-460010.c,
338         * support/regression/tests/bug-524691.c,
339         * support/regression/tests/bug-716242.c: removed conditional defines
340           that are already in testfwk.h
341
342 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
343
344         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
345           (AccAXRsh1): added, shift right by 1,
346           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
347            AccAXLrl1
348         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
349
350 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
351
352         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
353         remove cast to same type
354         * src/SDCCast.c (decorateType): fix for RFE 1475742,
355         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
356         * as/z80/Makefile,
357         * link/z80/Makefile: removed, they have moved to
358         Makefile.in files
359         * configure,
360         * configure.in: replaced duplicate message about ucsim by missing sdcpp
361         * install-sh: fix bug #1204398 by setting umask 0022
362         * device/lib/Makefile: separate build of z80 and gbz80 lib
363
364 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
365
366         Enabled VPATH feature: changed nearly all Makefiles (149 files).
367         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
368
369         One basic decision: e.g. src/clean.mk includes further files. In order
370         to make this work there are two solutions:
371         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
372           run configure on them. This way they can use
373           'include $(srcdir)/port-clean.mk'
374         - always include clean.mk by the Makefile at the same level. To avoid
375           that `make clean` tries to include and build Makefile.dep the
376           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
377           implemented, because now even `make uninstall` doesn't create
378           Makefile.in. clean.mk could be eliminated by pasting it in
379           Makefile.in.
380
381         * debugger/mcs51/Makefile.in: build own objects from library sources
382         (SLIB, SDCC) in current directory
383
384         * configure, configure.in: renamed --disable-device-lib-build in
385         --disable-device-lib; added --enable-doc, the required tools are
386         searched by configure; added result message; the toolchain for the
387         belonging ports are now only built, if the port is enabled.
388
389         * support/regression/*: all output is written in directory gen, because
390         the fwk and ports directories don't livet in the build tree using vpath
391
392         * doc/sdccman.lyx: renamed --disable-device-lib-build to
393         --disable-device-lib, added --enable-doc, added section VPATH
394
395         * sim/ucsim/configure.in,
396         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
397         z80 are enabled by default
398
399 2006-04-24 Raphael Neider <rneider AT web.de>
400
401         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
402             to config word, "pic14_"-prefixed some extern functions
403           (pic14_emitConfigWord): emit __config directive(s) if assignment to
404             config word has been found
405         * src/pic/device.h: added prototypes
406         * src/pic/pcode.c: added "pic14_"-prefix where needed
407         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
408             fixup
409         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
410             words,
411           (pic14emitRegularMap): ignore config words,
412           (pic14createInterruptVect): moved generating __config directives away
413           (picglue): have __config directives emitted
414
415 2006-04-24 Borut Razem <borut.razem AT siol.net>
416
417         * doc/Makefile: sync with nightly build makefile
418
419 2006-04-24 Raphael Neider <rneider AT web.de>
420
421         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
422             registers that have not been assigned proper liveranges,
423             fixes #1469504 and #1474602,
424           (pCodeRegOptimizeRegUsage): fixed typo in comment
425
426 2006-04-24 Borut Razem <borut.razem AT siol.net>
427
428         * device/examples/main8051.c: deleted - it was removed from CVS
429           24.mar.2000 and after that modified 18.feb.2001, so it reappered
430           after the transition to Subversion
431         * src/SDCCalloc.h: deleted - it was removed  from CVS
432           3.feb.2001 and after that modified 18.feb.2001, so it reappered
433           after the transition to Subversion
434         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
435           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
436           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
437           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
438
439 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
440
441         * as/asx8051.dsp: added mcs51/strcmpi.h
442         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
443         * as/hc08/aslink.h: updated lnksect prototype
444         * as/hc08/asm.h,
445         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
446         * as/hc08/asmain.c,
447         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
448           (newdot): handle A_ABS
449         * as/hc08/asout.c,
450         * as/mcs51/asout.c (outarea): output address
451         * as/hc08/lkaomf51.c,
452         * as/mcs51/lkaomf51.c: disabled unused array UsageType
453         * as/hc08/m08pst.c,
454         * as/mcs51/i51pst.c,
455         * as/z80/z80pst.c: "ABS" is not A_OVR
456         * as/hc08/lkarea.c (newarea): read a_addr,
457           (lnkarea): added codemap array, sort absolute areas to the front,
458            combine all GSINITx/GSFINAL,
459           (find_empty_space, allocate_space): new functions,
460           (lnksect): return next address, handle absolute sections
461         * as/mcs51/lkarea.c (newarea): read a_addr,
462           lnksect2 prototype changed,
463           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
464           (find_empty_space, allocate_space): new, factored out of lnksect2,
465           (lnksect2): return next address, handle absolute sections
466         * as/hc08/lkhead.c,
467         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
468         * as/hc08/lklibr.c (addfile, fndsym),
469         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
470           index out of range and detect both '\' and '/'
471         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
472         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
473           regression tests (ds390 cannot return bool yet)
474         * doc/sdccman.lyx: changed version number, document changed --no-peep,
475           document critical interrupts on z80, document changed SDCC define
476         * src/asm.c (_asxxxx_mapping): fixed .org directive,
477           (_a390_mapping): added .org directive
478         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
479           (genMultOneByte): fixed warnings
480         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
481           ones
482         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
483         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
484           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
485         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
486         * src/pic16/main.c: removed newReg prototype
487         * src/pic16/pcode.c,
488         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
489           warnings
490         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
491           ones
492         * src/pic16/ralloc.c
493         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
494           to fix warnings
495         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
496           from short to PIC_OPTYPE
497         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
498         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
499           optype from short to PIC_OPTYPE
500         * src/port.h: made int_size unsigned to fix warnings
501         * src/SDCC.y: fixed warning on MSVC
502         * src/SDCCicode.c (getArraySizePtr): return unsigned int
503         * src/SDCCopt.c (convertToFcall): fixed warnings
504         * src/SDCCsymt.h: removed double prototype for genSymName
505         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
506           offset int to fix warnings
507
508 2006-04-22 Borut Razem <borut.razem AT siol.net>
509
510         * doc/sdccman.lyx, */Makefile, */Makefile.in:
511           references to CVS replaced with Subversion
512
513 2006-04-21 Borut Razem <borut.razem AT siol.net>
514
515         * doc/sdccman.lyx, */Makefile, */Makefile.in:
516           references to CVS replaced with Subversion
517
518 2006-04-19 Borut Razem <borut.razem AT siol.net>
519
520         * src/version.awk: adapted for svn
521         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
522           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
523           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
524           /binutils-avr/etc/*.vi, *.jin: removed all properties
525           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
526
527 2006-04-19 Borut Razem <borut.razem AT siol.net>
528
529         * CVS to Subversion migration completed
530
531 2006-04-18 Borut Razem <borut.razem AT siol.net>
532
533         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
534           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
535
536 2006-04-17 Borut Razem <borut.razem AT siol.net>
537
538         * device/include/Makefile.in: added pic/*.inc to the installation
539
540 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
541
542         * support/regression/collate-results.py: fixed output in case of
543         a valdiag error
544         * support/regression/generate-cases.py: fixed splitting of pathnames
545         with dots
546         * as/hc08/lklibr.c (addfile),
547         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
548
549 2006-04-11 Raphael Neider <rneider AT web.de>
550
551         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
552         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
553         * src/pic16/pcode.c (assignValnums): fixed #1460578
554
555 2006-04-11 Raphael Neider <rneider AT web.de>
556
557         * device/lib/pic/libdev/*.c,
558         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
559           fixes #1468739, enables compilation in --std-c99 mode
560         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
561
562 2006-04-11 Raphael Neider <rneider AT web.de>
563
564         * src/pic/device.c (find_device): removed debug output
565           (list_valid_pics): enabled verbose listing of supported devices
566         * device/include/stdbool.h: define bool as char for pic14/16 as well
567
568 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
569
570         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
571
572 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
573
574         * .version: bumped version to 2.5.6
575         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
576
577 2006-04-06 Raphael Neider <rneider AT web.de>
578
579         * .version: bumped version to 2.5.6 (pic14 ABI changed)
580         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
581         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
582           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
583             pic14_constructAbsMap
584           (pic14printPublics): declare absolute global symbols as global
585           (pic14createInterruptVect),
586         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
587           (newReg): assume new registers unused, use correct name in
588             hashtable (reg->name instead of name), more debugLog output
589         * src/pic/device.h (PIC_device): added fields for verbose output
590         * src/pic/device.c: moved device definition to pic14devices.txt,
591             added routines for runtime parsing of pic14devices.txt,
592             added support for second config word
593         * src/pic/main.c (_process_pragma): removed #pragma maxram,
594           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
595           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
596           (_pic14_parseOptions): moved pCodeInitRegisters here
597           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
598         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
599           (pCodeInitRegisters): rewrapped comments, perpared new approach to
600             handling the pseudo stack
601         * device/lib/Makefile.in: ignore failures in objects-pic16,
602         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
603         * device/lib/pic/NEWS: document new dependency on picXXX.lib
604         * device/lib/pic/Makefile.subdir,
605         * device/lib/pic16/Makefile.subdir: improved clean rules
606         * device/lib/pic/libdev/: NEW, pic14 device libraries
607         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
608         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
609         * device/include/Makefile.in: create subdir and install pic14 headers
610         * device/include/pic/p16f_common.inc: removed unused declarations
611         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
612             PICs from inc2h.pl v1.6,
613             replaced BIT_AT macros with struct declarations
614         * device/include/pic/pic14devices.txt: definition of supported devices,
615             all above improvements contributed by Zik Saleeba, thanks
616         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
617         * support/scripts/sdcc.nsi: also install pic14 device libraries and
618             headers
619
620 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
621
622         * device/include/mcs51/c8051f410.h: added interrupt numbers,
623         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
624           thanks to Charles Olds
625
626 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
627
628         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
629
630 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
631
632         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
633         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
634         * support/regression/bug1464657.c: added, new test
635
636 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
637
638         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
639           version number
640
641 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
642
643         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
644           --no-peep and --peep-file <file> are used don't use default rules but
645           do use the <file>
646
647 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
648
649         * src/mcs51/gen.c (genCall): fixed bug 1457608
650
651 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
652
653         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
654         changes seem to cause (trigger?) problems with the build system.
655
656 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
657
658         * src/SDCCpeeph.c (operandsLiteral): new, added,
659           (callFuncByName): inserted operandsLiteral
660         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
661
662 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
663
664         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
665         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
666
667 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
668
669         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
670           implemented patch 1120823 Thanks to Willy De la Court (normal
671           interrupts need an interrupt number now if they are made critical),
672           and enabled nesting of critical functions though not for gbz80
673           (genCritical, genEndCritical): added functions
674           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
675         * src/z80/mappings.i: added "ei" to all mappings
676
677 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
678
679         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
680         submitted by the Debian SDCC maintainer Aurelien Jarno:
681         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
682         archive with gcc 4.1 on mips and wrote the patch"
683
684 2006-03-16 Raphael Neider <rneider AT web.de>
685
686         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
687           the left operand is shorter than the result (c* = lit-c* + int),
688           fixes bug #1450796
689         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
690           OP_SYMBOL
691
692 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
693
694         * src/.version: increased version number to 2.5.5
695         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
696         linking is done manually in pic16 port's _linkEdit,
697         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
698         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
699         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
700         allocate asmop as AOP_ACC,
701         (aopForRemat): added parameter 'bool result' in function declaration,
702         (pic16_aopGet): return AOP_ACC when accessing WREG,
703         (pic16_popGetTempReg): minor modification,
704         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
705         'pic16_allocWithIdx',
706         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
707         calling function in absolute addresses,
708         (genAssign): take into account AOP_ACC asmop,
709         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
710         * src/pic16/pcoderegs.c: some debug functions and lines added,
711         * src/pic16/ralloc.c (decodeRegType): added but commented out,
712         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
713         register too,
714         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
715         call to allocReg, not by manually allocating a new one,
716         (pic16_assignRegisters): now before going through the register
717         allocating functions mark all registers as free. This eliminates some
718         side effects resulting from peephole parser done earlier in the backbone
719
720 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
721
722         * src/SDCCicode.c (geniCodeLogic),
723         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
724
725 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
726
727         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
728           (genSend): bugfix, do not allocate and free twice,
729           (shiftRLong): handle partially overlapping aops
730         * support/regression/tests/bitopcse.c: fixed warning redefined idata
731
732 2006-03-08 Borut Razem <borut.razem AT siol.net>
733
734         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
735           for pic16
736
737 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
738
739         * support/regression/tests/bug1409955.c: new, added
740         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
741         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
742           (aopForSym, aopOp): increment asmop.allocated if reused,
743           (freeAsmop): decrement asmop.allocated and check for zero instead of
744           using asmop.freed,
745           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
746           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
747            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
748            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
749            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
750            genSignedRightShift, genRightShift, genDataPointerGet,
751            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
752            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
753             in reverse order from allocation,
754           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
755             added swappedLR to keep track
756         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
757           pdata & code for GCC, z80, gbz80 & hc08
758         * support/regression/tests/zeropad.c: moved defines to testfwk.h
759
760 2006-03-08 Raphael Neider <rneider AT web.de>
761
762         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
763
764 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
765
766         * device/include/mcs51/c8051f410.h: new SiLabs mcu
767         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
768         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
769
770 2006-03-06 Borut Razem <borut.razem AT siol.net>
771
772         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
773           made the linker quiet
774
775 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
776
777         * src/pic16/gen.c (genPcall): fixed bug #1443644
778         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
779         which dumps before the function entry point a data byte which represents
780         the number of the local variables used by the specified function, added
781         'xinst' for initial support for Extended Instruction Support,
782         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
783         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
784         port->fun_prefix anymore (may change later),
785         (genFunction, genEndFunction): do not store/restore local registers for
786         _main (this should take care the --main-return command line option in
787         the future),
788         (genOr): removed some legacy pic-port instructions,
789         * src/pic16/genarith.c (genAddLit): re-enabled old code because
790         performing operations with SFR's causes data to be written more than
791         once to each SFR. Perhaps SFRs should be handled in special cases...
792         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
793         pcode.h
794         * src/pic16/main.c (_process_pragma): stack bound checking did not take
795         into account for stack starting position,
796         (struct OPTIONS pic16_optionsTable): added command line argument
797         --extended or -y for Extended Instruction Support,
798         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
799         (deassignLRs): *** perhaps the most important change, old 'for' code
800         (commented out for reference), didn't account for some registers which
801         were left marked 'not free' after a pointer operation. The change
802         reduces register usage a lot in some cases
803
804 2006-03-04 Borut Razem <borut.razem AT siol.net>
805
806         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
807           _clean
808         * support/regression/tests/bug-524697.c: decreased array size for
809           mcs51 to fit into the internal RAM
810         * support/regression/Makefile.in: a little bit more verbose
811
812 2006-03-03 Borut Razem <borut.razem AT siol.net>
813
814         * support/regression/fwk/lib/testfwk.c,
815           support/regression/fwk/include/testfwk.h: introduced function
816           _prints(), nonrecursive _printn(), call _initEmu() from main()
817         * support/regression/ports/gbz80/support.asm,
818           support/regression/ports/ucz80/support.asm,
819           support/regression/ports/z80/support.asm,
820           support/regression/ports/ds390/support.c,
821           support/regression/ports/hc08/support.c,
822           support/regression/ports/host/support.c,
823           support/regression/ports/mcs51/support.c,
824           support/regression/ports/xa51/support.c: added empty _initEmu()
825           function
826         * support/regression/ports/pic16/gpsim.cmd,
827           support/regression/ports/pic16/spec.mk,
828           support/regression/ports/pic16/support.c,
829           support/regression/Makefile.in: added pic16 regression test
830
831 2006-03-01 Raphael Neider <rneider AT web.de>
832
833         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
834           genConstPointerGet): use safe way of generating MOVFF to cover
835             literals as well as registers, fixes bug #1440527
836         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
837             dereference
838           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
839             more correctly, fixes bug #1232186
840           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
841         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
842             gplink guess the correct processor in more cases, applied patch
843             from Till Riedel attached to and fixing bug #1436552
844
845 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
846
847         * support/regression/tests/array.c: added, contains check for #1434401
848         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
849
850 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
851
852         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
853         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
854         * device/include/mcs51/c8051f326.h,
855         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
856         * device/include/mcs51/c8051f000.h,
857         * device/include/mcs51/c8051f018.h,
858         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
859           PCON_IDLE,PCON_STOP and added sfr16 definitions
860
861 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
862
863         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
864           genGetWord): fixed bug 1409955
865
866 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
867
868         * device/include/hc08/mc68hc908gp32.h,
869         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
870
871 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
872
873         * src/SDCCast.c (constExprValue): return NULL if not a value
874         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
875         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
876         * support/regression/tests/bitfields.c: enabled signed bitfield for all
877
878 2006-02-13 Borut Razem <borut.razem AT siol.net>
879
880         * src/regression/ptrarg.c: added, fails due to bug #1430967
881         * src/regression/Makefile: ptrarg.c added, ...
882
883 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
884
885         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
886         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
887
888 2006-02-11 Borut Razem <borut.razem AT siol.net>
889
890         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
891           print "Processor: xxx" message to stdout only if --verbose
892
893 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
894
895         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
896         * support/regression/tests/bug1426356.c: added
897         * support/regression/tests/bitfields.c: removed 2 tests
898
899 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
900
901         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
902         * device/include/mcs51/c8051f330.h,
903         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
904           PCON_IDLE,PCON_STOP and added sfr16 definitions
905         * device/lib/_divsint.c,
906         * device/lib/_divuint.c,
907         * device/lib/_divulong.c,
908         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
909           register bank bug for small stackauto
910
911 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
912
913         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
914
915 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
916
917         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
918         * all.dsp: corrected several bin paths
919         * device/include/mcs51/c8051f120.h,
920         * device/include/mcs51/c8051f300.h,
921         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
922           to PCON_IDLE,PCON_STOP
923         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
924         * device/lib/printf_large.c (output_float): fixed bug 1388703
925         * support/regression/tests/bug1057979.c: added test for bug 1388703
926
927 2006-02-08 Raphael Neider <rneider AT web.de>
928
929         * src/pic/pcode.c (pciTRIS): fixed typo,
930           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
931           (LinkFlow): fixed handling of flows that end in a call,
932           (ReuseReg): perform safety check earlier
933         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
934             to work with flows at the beginning of a pBlock,
935             fixes #1426557 (Symbol not previously defined),
936           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
937             usage information
938           (RemoveUnusedRegisters): update register usage info
939         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
940             created, reuse existing ones instead
941         * src/pic/gen.c (genPcall): fixed #1424719
942
943 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
944
945         * link/z80/lkmain.c,
946         * link/z80/lklex.c,
947         * link/z80/lkdata.c,
948         * link/z80/aslink.h: fixed build on current cygwin:
949         replaced getline() by lk_getline()
950
951 2006-02-01 Borut Razem <borut.razem AT siol.net>
952
953         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
954           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
955           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
956           src/regression/bool1.c, src/regression/bool2.c,
957           src/regression/bool3.c, src/regression/call1.c,
958           src/regression/compare.c, src/regression/compare10.c,
959           src/regression/compare2.c, src/regression/compare3.c,
960           src/regression/compare4.c, src/regression/compare5.c,
961           src/regression/compare6.c, src/regression/compare7.c,
962           src/regression/compare8.c, src/regression/compare9.c,
963           src/regression/configword.c, src/regression/for.c,
964           src/regression/inline.c, src/regression/mult1.c,
965           src/regression/nestfor.c, src/regression/or1.c,
966           src/regression/pointer1.c, src/regression/ptrfunc.c,
967           src/regression/rotate1.c, src/regression/rotate2.c,
968           src/regression/rotate3.c, src/regression/rotate4.c,
969           src/regression/rotate5.c, src/regression/rotate6.c,
970           src/regression/rotate7.c, src/regression/string1.c,
971           src/regression/struct1.c, src/regression/sub.c,
972           src/regression/sub2.c, src/regression/switch1.c,
973           src/regression/while.c, src/regression/xor.c,
974           src/regression/create_stc, src/regression/simulate,
975           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
976           regression tests
977         * src/regression/gpsim_assert.h: added
978
979 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
980
981         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
982         ((void (code *) (void)) 0) ();
983         * as/hc08/aslex.c,
984         * as/hc08/aslink.h,
985         * as/hc08/asm.h,
986         * as/hc08/asmain.c,
987         * as/hc08/lkdata.c,
988         * as/hc08/lklex.c,
989         * as/hc08/lkmain.c,
990         * as/mcs51/aslex.c,
991         * as/mcs51/aslink.h,
992         * as/mcs51/asm.h,
993         * as/mcs51/asmain.c,
994         * as/mcs51/lkdata.c,
995         * as/mcs51/lklex.c,
996         * as/mcs51/lkmain.c,
997         * as/z80/aslex.c,
998         * as/z80/asm.h,
999         * as/z80/asmain.c: fixed build on current cygwin:
1000         replaced getline() by as_getline()
1001
1002 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1003
1004         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
1005         declarator in the symbol chain
1006         * src/SDCCsymt.h,
1007         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
1008         parameter list for function pointers
1009         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
1010         * support/regression/tests/bug-716242.c: added
1011
1012 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
1013
1014         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
1015         offset if possible
1016         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
1017
1018 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
1019
1020         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
1021         inifinitely recurseable, added static
1022         * support/regression/tests/bug-1408066.c: added
1023
1024 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
1025
1026         * src/SDCCicode.h,
1027         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
1028         renamed, added possibility to create "postLoopLbl"-labels
1029         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
1030         newiTempLoopHeaderLabel
1031         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
1032         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
1033         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
1034         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
1035         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
1036         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
1037         (basicInduction): fixed bug #136564, made static,
1038         (loopInduction): changed parameter of basicInduction, made static,
1039         (addPostLoopBlock): added
1040         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
1041         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
1042         findLoopEndSeq
1043         * support/regression/tests/bug-136564.c: added
1044         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
1045         --std-sdcc99 to LIBSDCCFLAGS
1046
1047 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
1048
1049         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
1050         while loop
1051         * support/regression/tests/bug-1406131.c: added
1052
1053 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
1054
1055         * src/SDCCast.c (decorateType): fix promotion of unary minus
1056         * src/SDCCsymt.c (computeType): beautified
1057         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
1058         (valUnaryPM, valComplement): fix sign and promotion,
1059         (valNot): ANSI: result type is int (SDCC: unsigned char)
1060         * support/regression/tests/uminus.c: speedup by removing superflous
1061         test case 'int'
1062         * support/regression/tests/onebyte.c: added promotion and signedness
1063         tests for unary minus
1064         * support/regressions/tests/bug-477927.c: disable warning about
1065         uninitialized variables
1066         * support/regression/tests/not.c: added
1067
1068 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
1069
1070         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
1071         * src/mcs51/gen.c (gen51Code): show final register usage after
1072         fillGaps in asm with --i-code-in-asm
1073         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
1074         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
1075         incUsed, rliveClear, adjustIChain): made static,
1076         (setFromRange): excluded because it's unused,
1077         (findPrevUseSym, markWholeLoop): added,
1078         (findPrevUse): rewritten; fixes bug 895992; now a complete search
1079         through all branches of predecessors enables sdcc to emit the warning
1080         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
1081         (rlivePoint): made static, added parameter emitWarnings which is only
1082         true during the first run out of two,
1083         (findRecursiveSucc, findRecursivePred): removed,
1084         (computeLiveRanges): made static, added parameter emitWarnings,
1085         (dumpIcRlive): added for debugging only
1086         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
1087         removed prototype of setFromRange()
1088         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
1089         in call of computeLiveRanges()
1090         * support/regression/tests/bug-895992.c: added
1091         * support/regression/tests/bug-971834.c: added
1092         * support/valdiag/tests/bug-895992.c: added
1093         * support/valdiag/tests/bug-971834.c: added
1094
1095 2005-12-18 Raphael Neider <rneider AT web.de>
1096
1097         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
1098           (genUnpackBits): improved code for direct operands,
1099           (genPackBits): improved code for literal assignment to bitfields
1100             and for direct destination operands (no FSR indirection),
1101             prevented redundant AND, fixes #1362800,
1102           (AccLsh): added parameter to disable masking of the result
1103         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
1104           skip instructions with side-effects (like incfsz),
1105           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
1106         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
1107         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
1108           fixes #1375263
1109
1110 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
1111
1112         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
1113         volatile variables as spill location
1114
1115 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
1116
1117         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
1118         replacing literals
1119         * support/regression/tests/bug-1376320.c: added
1120
1121 2005-12-08 Raphael Neider <rneider AT web.de>
1122
1123         * src/pic/device.c: renamed is_shared to pic14_is_shared
1124         * src/pic/gen.c (genIfx): re-enabled handling of sbits
1125         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
1126           (is_valid_identifier): added for above workaround
1127
1128 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
1129
1130         * device/lib/Makefile.in: fixed to enable port-specific-objects
1131         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
1132           char, thanks Hubert Sack
1133         * doc/sdccman.lyx: documented --xstack-loc,
1134           elaborated a bit more on interrupts and pitfalls,
1135           removed "setjmp/longjmp unsupported",
1136           documented some unsupported C99 features
1137         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
1138         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
1139           if, thanks Hubert Sack
1140         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
1141         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
1142           make make_library
1143         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
1144           regression tests can report resource usage (rfe 700441)
1145         * support/regression/collate-results.py: report resource usage
1146         * support/regression/ports/ds390/spec.mk,
1147         * support/regression/ports/hc08/spec.mk,
1148         * support/regression/ports/mcs51/spec.mk,
1149         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
1150         * support/regression/ports/ds390/uCsim.cmd,
1151         * support/regression/ports/hc08/uCsim.cmd,
1152         * support/regression/ports/mcs51/uCsim.cmd,
1153         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
1154         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
1155           library, use the default one
1156         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
1157           building the library
1158
1159 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1160
1161         * config.dsp: added dependency on .version and configure_vc.awk
1162         * device/include/setjmp.h: updated for --stack-auto and --xstack
1163         * device/include/mcs51/at89c51snd1c.h: corrected line endings
1164         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
1165         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
1166         * device/lib/libsdcc.lib: added _setjmp
1167         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
1168           (decorateType): fixed bug 1372851,
1169           (optimizeGetHbit): fixed warning
1170         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
1171           array initialisation
1172         * support/regression/tests/bug1057979.c: added test for bug 1358192
1173         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
1174
1175 2005-12-03 Borut Razem <borut.razem AT siol.net>
1176
1177         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
1178           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
1179
1180 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1181
1182         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
1183         createIval): implement symbol independant "flexible array member",
1184         (createIvalCharPtr): implemented flexible array initialisation with a
1185         string
1186         * src/SDCCsymt.c (copyStruct): removed,
1187         (getSize): fixed misleading comment,
1188         (getAllocSize): removed, the additional allocation size is now in
1189         sym->flexArrayLength,
1190         (checkStructFlexArray): new, syntax checks for flexible array members,
1191         (compStructSize): added syntax checks for "flexible array members"
1192         (copyStruct): removed,
1193         (copyLinkChain): removed inefficient fix for bug 770487
1194         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
1195         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
1196         symbol->flexArrayLength
1197         * src/SDCCerr.c,
1198         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
1199         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
1200         * support/regression/tests/structflexarray.c: added
1201         * support/valdiag/tests/structflexiblearray.c: added
1202
1203 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1204
1205         * src/SDCCast.c (decorateType): fixed bug 1368489
1206         * support/Util/SDCCerr.c,
1207         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
1208
1209 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1210
1211         * device/include/mcs51/at89c51snd1c.h: added file submitted by
1212           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
1213
1214 2005-11-27 Borut Razem <borut.razem AT siol.net>
1215
1216         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
1217           support/cpp2/mkdeps.h: added command line option
1218           -obj-ext=<extension> to SDCPP to define object file externion, used
1219           for generation of make dependencies (-M)
1220         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
1221
1222 2005-11-26 Borut Razem <borut.razem AT siol.net>
1223
1224         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
1225           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
1226           added pic and pic16 libraries
1227
1228 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1229
1230         * device/include/float.h: Corrected typo in prototype of __fsgt
1231
1232 2005-11-25 Borut Razem <borut.razem AT siol.net>
1233
1234         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
1235           added creation of model-mcs51-stack-auto libraries
1236
1237 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
1238
1239         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
1240         and fields-list too
1241         * src/SDCCast.c (createIvalArray): removed obsolete comment
1242
1243 2005-11-24 Borut Razem <borut.razem AT siol.net>
1244
1245         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
1246           added missing device/lib/mcs51/crt*.asm sources
1247
1248 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
1249
1250         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
1251
1252 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
1253
1254         * device/lib/_fs2schar.c,
1255         * device/lib/_fs2sint.c,
1256         * device/lib/_fs2slong.c: optimized inline asm
1257
1258 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1259
1260         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1261           Better handling of floats between -1.0 and 0.0.
1262
1263 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1264
1265         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
1266           (the missing "if"s prohibited removal of redundant labels)
1267
1268 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1269
1270         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1271           Properly convert floats between -1.0 and 0.0 to long, int, and char
1272           types (max integer value of negative floats tends to zero).
1273         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1274           Removed changes made so to work properly with floats between
1275           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
1276           and _fs2char.c
1277
1278 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1279
1280         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
1281         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
1282         (genCast) cosmetic change
1283         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
1284         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
1285         from mcs51
1286         * support/regression/tests/bitfields (testSignedBitfields): added
1287
1288 2005-11-18 Borut Razem <borut.razem AT siol.net>
1289
1290         * sdcc/device/lib/Makefile.in: remove all unnecessary files
1291         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
1292           introduced SILENT option to make building of pic16 libraries less
1293
1294 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1295
1296         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1297           Now they work properly with floats between -1.0 and 0.0
1298         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
1299
1300 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1301
1302         * src/SDCCicode.c (printOperand): added missing else
1303
1304 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1305
1306         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
1307         reformatted for better readability
1308         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
1309         signed bitfields
1310
1311 2005-11-17 Borut Razem <borut.razem AT siol.net>
1312
1313         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
1314           introduced SILENT option to make building of pic16 libraries less
1315           verbose - used for nightly snapshot build
1316         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
1317           available on Win32 platforms.
1318         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
1319           medium, large, pic and pic16
1320
1321 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1322
1323         * device/lib/printf_large.c: Temporary patch for bug 1358192:
1324           printf("%f"...) sets fraction to zero.
1325
1326 2005-11-16 Raphael Neider <rneider AT web.de>
1327
1328         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
1329           fixes #1357221
1330         * src/pic/gen.c (genIfx): implemented for CARRY bit
1331         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
1332           to generic pointers, fixes #1357332,
1333           (pic16_movLit2f): NEW,
1334           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
1335
1336 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1337
1338         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
1339
1340 2005-11-11 Raphael Neider <rneider AT web.de>
1341
1342         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
1343         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
1344           compute pointer's type from operand,
1345           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
1346           improved single bit reads, fixes bug #1353379
1347
1348 2005-11-09 Borut Razem <borut.razem AT siol.net>
1349
1350         * support/scripts/sdcc.nsi: added lib/pic to the package
1351
1352 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
1353
1354         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
1355
1356 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1357
1358         * support/regression/tests/bug1348008.c: added
1359         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
1360         * support/regression/tests/bug1337835.c: updated comment
1361
1362 2005-11-06 Borut Razem <borut.razem AT siol.net>
1363
1364         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1365           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1366           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1367           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1368           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
1369           dynamic construction of cl_error_class and derivates - 2.nd try
1370
1371 2005-11-05 Borut Razem <borut.razem AT siol.net>
1372
1373         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
1374           bug, which caused Bus Errors on sparc solaris
1375
1376 2005-11-04 Borut Razem <borut.razem AT siol.net>
1377
1378         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1379           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1380           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1381           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1382           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
1383           and derivates to resolve the initialization problem on OSX
1384
1385 2005-11-02 Borut Razem <borut.razem AT siol.net>
1386
1387         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1388           corrected typo - #include <winsock2.h>
1389
1390 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
1391
1392         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
1393           (_asxxxx_mapping): added org directive for future enhancements
1394
1395 2005-11-01 Borut Razem <borut.razem AT siol.net>
1396
1397         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1398           enabled sockets on WIN32
1399         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
1400
1401 2005-10-31 Borut Razem <borut.razem AT siol.net>
1402
1403         * support/regression/generate-cases.py: escape backslashes in {testcase}:
1404           WIN32 backslash path delimiters should be escaped when used in C strings
1405         * support/regression/tests/bitfields.c: exclude failing assertions for
1406           __CYGWIN32__ and __MINGW32__ hosts
1407
1408 2005-10-30 Borut Razem <borut.razem AT siol.net>
1409
1410         * src/SDCCutil.c: corrected double comparison typo
1411
1412 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
1413
1414         * device/lib/medium/Makefile: added for new memory model medium
1415         * device/include/asm/mcs51/features.h: updated for medium/pdata
1416         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
1417           added Multiply & Accumulate sbit's and MAC0_PAGE define
1418         * device/include/mcs51/c8051f300.h: added sfr16 definitions
1419         * device/include/mcs51/c8051f310.h: added sfr16 definitions
1420         * device/lib/_mullong.c: update for medium model
1421         * device/lib/incl.mk: added medium model
1422         * doc/sdccman.lyx: documented medium model
1423         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
1424         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
1425         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
1426         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
1427           (allocParms): set SCLS and OCLS to pdata for medium model
1428         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
1429           for pdata,
1430           (powof2): return <0 if not power of 2
1431         * src/avr/gen.c (genBitWise): use updated powof2
1432         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
1433           (shiftR2Left2Result): small optimization in setup, save acc when storing,
1434           (shiftLLeftOrResult): use B if necessary
1435         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
1436         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
1437         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
1438         * support/regression/Makefile.in: added test-mcs51-medium
1439         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
1440
1441 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1442
1443         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
1444         specifier unsigned
1445         * device/lib/time.c (mktime): fixed bug 1334315
1446
1447 2005-10-28 Raphael Neider <rneider AT web.de>
1448
1449         * device/include/pic/p16f_common.inc: added common declarations
1450         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
1451
1452 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1453
1454         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
1455           (aopPutUsesAcc): added to predict accumulator use,
1456           (assignResultValue): save acc if necessary,
1457           (genMinusDec): store result if indirectly addressed,
1458           (genDivOneByte):  save acc if necessary,
1459           (movLeft2Result): bugfix if left already in acc,
1460           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
1461             attention to accumulator use (esp. pdata),
1462           (genReceive): receive pdata correctly
1463         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
1464         * src/SDCCicode.h: added isOperandInPagedSpace prototype
1465
1466 2005-10-27 Raphael Neider <rneider AT web.de>
1467
1468         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
1469
1470 2005-10-27 Raphael Neider <rneider AT web.de>
1471
1472         * .version: changed version to 2.5.4
1473         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
1474         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
1475           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
1476             arithmetics support routines
1477         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
1478         * device/lib/Makefile.in: also create installdir for pic
1479
1480         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
1481           pic14 port as well
1482         * src/pic/device.c (dump_sfr): rewritten to delegate register
1483           placement to the linker (use `extern sym' rather than sym EQU addr),
1484           (validAddress): fixed to check last specified address
1485         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
1486           (popGetLit): truncate literal value to 8 bit,
1487           (popGet): moved assert to more appropriate place
1488           (popGetExternal): create pCode operand from and mark the according
1489             symbol as being `extern'
1490           (popGetAddr): added sanity check on immediate's offset, provide
1491             GPOINTER tag on demand
1492           (aopPut): fixed for immediates,
1493           (mov2w_op): move operand's address or contents to WREG (depending on
1494             operand type), safer variant of mov2w,
1495           (movwf,call_libraryfunc): NEW, handy abbreviations,
1496           (get_argument_pcop,get_return_val_pcop,pass_argument,
1497           get_returnvalue): interface for accessing function parameters and
1498             return values,
1499           (assignResultValuei,genRet): use new parameter/return value interface
1500           (pic14_getDataSize): back to old version handling generic pointers,
1501           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
1502             provided implementation and/or fixed old one,
1503           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
1504             calls, removed legacy 8051 reference code
1505           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
1506           (loadSignToC): NEW, move the operands sign bit to CARRY,
1507           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
1508             genRightShiftSigned, accepts negative shift counts,
1509           (setup_fsr): load FSR and adjust IRP (indirect memory access),
1510           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
1511             generic pointers, __data pointers and __code pointers,
1512           (genUnpackBits,genPackBits): rewritten to work with generic pointers
1513             and signed bitfields, limit bitfields to 8 bit,
1514           (genDataPointerGet): fixed number of bytes read,
1515           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
1516           (genPointerGet,genPointerSet): fixed handling of __code pointers,
1517             pointers to constant data are no longer assumed to point to __code
1518             space, removed invalid pointer types,
1519           (bitpatternFromVal): retrieve the PICs representation of an integer
1520             or float literal,
1521           (genDataPointerSet): fixed assigning to po_immediate operands,
1522           (genGenPointerSet): implemented as library call,
1523           (genIfx): fixed incorrect condition,
1524           (genAddrOf): limit generic pointers' addresses to 2 bytes,
1525             provide GPOINTER tag according to destination's storage class,
1526           (genCast): added code to handle casting to generic pointers, added
1527             sign-/zero extension of the result
1528           (aop_isLitLike,op_isLitLike): fixed handling of immediates
1529         * src/pic/gen.h: added macros to access IRP bit in STATUS register
1530         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
1531           extend the result
1532         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
1533           address/register resides in the shared banks
1534           (emitSymbolToFile): improved to handle global and `pinned' symbols,
1535             put all variables into separate sections (have the linker arrange
1536             them)
1537           (picglue): put init code and interrupt handlers in separate sections
1538         * src/pic/main.c: added port specific options table, modified to PORT
1539           structure to make GPOINTERs 3 byte, added pic14_options
1540           (_pic14_do_link): private linking routine (update paths to libraries,
1541             add libsdcc.lib by default)
1542         * src/pic/main.h: declare pic14_options
1543         * src/pic/pcode.c: fixed instructions i/o relations,
1544           (RegCond): reverted to correct version,
1545           (newpCodeOpLit): truncate literals to 8 bit,
1546           (genericPrint): added debug output,
1547           (getRegFromInstruction): fixed for various operand types, simplified
1548           (BuildFlow): fixed broken handling of isntructions with labels
1549           (LinkFlow): start at last instruction in flow (skip trailing comments),
1550             pass the flow on to the next instruction after CALL
1551           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
1552           (insertPCodeInstruction): fixed inserting after a skip instruction,
1553           (DoBankSelect): fixed for labeled instructions
1554           (OptimizepBlock): honor --nopeep switch
1555           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
1556         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
1557         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
1558           (pCodeOptime2pCodes): allow disabling this optimization via
1559             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
1560             but is still buggy), started implementation of a dataflow based
1561             pCode optimization (CSE + dead code elimination)
1562           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
1563         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
1564           names are independant of the stack location and therefore portable across
1565           devices
1566
1567 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1568
1569         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
1570           (selectSpil): fixed bug 1337835 by not spilling bit variables
1571         * support/regression/tests/bug1337835.c: added test for this bug
1572         * src/mcs51/peeph.def: restart after rule 3.c,
1573           addded rules 263.x to optimize loading constants
1574
1575 2005-10-26 Raphael Neider <rneider AT web.de>
1576
1577         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
1578         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
1579           (genAssign): emit warning when casting literals to generic pointer
1580             type, also applies when taking the address of a fixed variable,
1581           (genCast): improved casting to generic pointers
1582         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
1583           extern variables, added verbose error message
1584         * device/include/pic16/{string.h,errno.h}: added #pragma library c
1585
1586 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
1587
1588         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
1589         carry must be complemented too
1590         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
1591         could be emitted by genMinus
1592         * src/SDCCval.c (constVal): fixed bug 1305065
1593
1594 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
1595
1596         * src/SDCCast.c (addCast): added promotion for bit variables
1597         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
1598         promotion casts + optimisation
1599         (optimizeGetWord): fix warning 'i' might be used uninitialized
1600         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
1601         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
1602
1603 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
1604
1605         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
1606         all chars are promoted to int; promotion should be handled in SDCCast.c
1607
1608 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1609
1610         * device/lib/_strcmp.c: Fixed bug 1326457
1611
1612 2005-10-11 Raphael Neider <rneider AT web.de>
1613
1614         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
1615         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
1616
1617 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1618
1619         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
1620         * support/regression/tests/sfr16.c: added test for the sfr32 bug
1621
1622 2005-10-04 Raphael Neider <rneider AT web.de>
1623
1624         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
1625           device/lib/pic16/pics.all: added pic18f1320
1626         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
1627
1628 2005-09-30 Raphael Neider <rneider AT web.de>
1629
1630         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
1631         * src/pic16/devices.inc: NEW, provides device descriptions
1632         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
1633
1634 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1635
1636         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
1637           GETHBIT
1638
1639 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
1640
1641         * doc/sdccman.lyx: updated Highest Order Bit documentation,
1642           documented Any Order Bit, Higher Order Byte and Higher Order Word
1643         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
1644         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
1645           (optimizeGetAbit): new, to get any bit, not only the high bit,
1646           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
1647           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
1648           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
1649           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
1650             RIGHT_OP: also try GETBYTE, GETWORD optimization,
1651             GETABIT, GETBYTE, GETWORD: decorate them,
1652           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
1653           (ast_print): added GETABIT, GETBYTE, GETWORD
1654         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
1655         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
1656           (geniCodeBinary): new generic binary icode,
1657           (ast2iCode): added GETABIT, GETBYTE, GETWORD
1658         * src/port.h: updated comment for PORT.hasExtBitOp
1659         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
1660           (genGetByte): new, to get a single byte,
1661           (genGetWord): new, to get a word from a long,
1662           (gen51Code): added GETABIT, GETBYTE, GETWORD
1663         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
1664
1665 2005-09-23 Raphael Neider <rneider AT web.de>
1666
1667         * configure.in, configure: have device/lib/pic configured
1668         * device/lib/Makefile.in: added model-pic14
1669         * device/lib/clean.mk: added pic/ to clean rule
1670         * device/lib/pic: added rudimentary pic14 library providing support
1671           functions for multiplication/division/generic pointer access
1672         * src/SDCCopt.c (convilong): mark support functions as extern
1673           for pic14 port as well
1674         * src/pic/gen.c (genMult): added assertions,
1675           (genpic14Code): emit warning on unhandled iCodes
1676         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
1677         * src/pic/pcode.c (pCodeOpCopy),
1678         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
1679           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
1680           SFR_REGISTER}), made safe for future extensions
1681         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
1682           instructions even if preceeded by SKIP instructions (also remove
1683           them); removed unused code
1684         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
1685           prevents leaving parts of the structure uninitialized after copying
1686
1687 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
1688
1689         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
1690           ago by me
1691         * support/regression/tests/addsub.c: added test for the bug
1692
1693 2005-09-21 Raphael Neider <rneider AT web.de>
1694
1695         * device/include/pic16/pic18f1220.h,
1696           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
1697         * device/lib/pic16/Makefile.rules: added missing opening paren
1698         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
1699           are provided in genutils.c,
1700           (genUminusFloat,genUminus,genCmpEq): added asserts on different
1701           operand/result sizes,
1702           (genCmp): assert on NULL pointers first, then check deref'ed values
1703         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
1704           result size
1705
1706 2005-09-18 Raphael Neider <rneider AT web.de>
1707
1708         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
1709           as these are now unused,
1710           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
1711         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
1712           local, avoids uninitialized pointer dereference on r->name
1713         * src/pic16/ralloc.c (newReg): fixed indentation
1714
1715 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
1716
1717         * src/SDCCval.c (constVal): fixed bug 730366
1718         * support/Util/SDCCerr.c,
1719         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
1720
1721 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1722
1723         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
1724
1725 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
1726
1727         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
1728
1729 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1730
1731         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
1732           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1733         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
1734           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1735         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
1736         * packihx/packihx.c (hexDigit): made c unsigned char
1737         * as/mcs51/lklibr.c (fndsym),
1738         * link/z80/lkgb.c (gb),
1739         * link/z80/lklibr.c (fndsym),
1740         * link/z80/lkrloc.c (relr),
1741         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
1742         * src/SDCC.lex (checkCurrFile, process_pragma),
1743         * src/SDCCglue.c (spacesToUnderscores),
1744         * src/SDCCmain.c (setParseWithComma, processFile),
1745         * src/asm.c (tvsprintf, printCLine),
1746         * src/avr/gen.c (emitcode, aopPut),
1747         * src/ds390/gen.c (emitcode),
1748         * src/hc08/gen.c (emitcode, emitinline),
1749         * src/mcs51/gen.c (emitcode, genInline),
1750         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1751           tokenizeLineNode),
1752         * src/pic/ralloc.c (debugLog),
1753         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1754           tokenizeLineNode),
1755         * src/pic16/ralloc.c (debugLog),
1756         * src/z80/main.c (_process_pragma):
1757            made all ctype.h function calls safe
1758         * src/SDCCopt.c: include math.h for fabs
1759         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
1760           and used them throughout the code to make ctype.h function calls safe
1761         * src/ds390/main.c (asmLineNodeFromLineNode),
1762         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
1763         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
1764            unsigned char*
1765         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
1766           (newpCodeAsmDir): made ctype.h function calls safe
1767         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
1768           pic16_emitcode):  made lbp unsigned char*
1769         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
1770           (pic16_newpCodeAsmDir): made ctype.h function calls safe
1771         * src/xa51/gen.c (emitcode),
1772         * src/z80/gen.c (_emit2): made lbp unsigned char*
1773         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
1774            char*
1775
1776 2005-09-05 Raphael Neider <rneider AT web.de>
1777
1778         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
1779           access bank splitpoint
1780
1781 2005-09-05 Raphael Neider <rneider AT web.de>
1782
1783         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
1784
1785 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
1786
1787         * .version: changed to version 2.5.3
1788         * doc/sdccman.lyx: changed version to 2.5.3,
1789           documented --codeseg and --constseg and pragma codeseg and constseg,
1790           documented bit parameters (reentrant) and bit returning
1791         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
1792            currFunc->recvSize, but is this ok for all ports?
1793           (ast2iCode): result of ~ on unsigned char must be cast to int for
1794            bool to work
1795         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
1796           function pointers in bit space
1797         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
1798           (processFuncArgs): call port.reg_parm() with reentrancy info
1799         * src/port.h,
1800         * src/avr/main.c,
1801         * src/ds390/main.c,
1802         * src/hc08/main.c,
1803         * src/pic/main.c,
1804         * src/pic16/main.c,
1805         * src/xa51/main.c,
1806         * src/z80/main.c: port.reg_parm prototype extended with
1807           "bool reentrant" parameter
1808         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
1809           options.stackAuto for allocating bit register parameters
1810         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
1811           (genSend): set BitBankUsed if it is,
1812           (selectRegBank): factored out of genCall for use in genPcall,
1813           (genCall): removed redundant dtype assignmen, use selectRegBank,
1814           (genPcall): handle returning in Carry properly, save in F0 if needed,
1815           (genReceive): handle bit register parameters
1816         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
1817           (mcs51_assignRegisters): enable bit registers for all reentrant
1818            functions and don't set BitBankUsed unconditionally
1819         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
1820         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
1821         * support/regression/tests/funptrs.c: added tests for BOOL and for return
1822
1823 2005-08-27 Borut Razem <borut.razem AT siol.net>
1824
1825         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
1826         ppc-osx (Darwin) does not support -u option. It seems that it is
1827         supported only on Linux - GNU cp
1828
1829 2005-08-25 Borut Razem <borut.razem AT siol.net>
1830
1831         * sim/ucsim/gui.src/serio.src/Makefile.in,
1832           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1833           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1834           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
1835           install and strip, since the strip at /usr/ccs/bin should be used
1836           on solaris
1837
1838 2005-08-24 Borut Razem <borut.razem AT siol.net>
1839
1840         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
1841
1842 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
1843
1844         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
1845         ffffffffu
1846
1847 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
1848
1849         * as/mcs51/aslink.h: completed lkrloc.c prototypes
1850         * as/mcs51/lkmain.c (link_main): fixed warning
1851         * device/include/stdbool.h: ds390 has no advanced bit support yet
1852         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
1853         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
1854         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
1855           and updated their macros
1856         * src/SDCCval.c (constVal): updated comment for renamed b_long
1857
1858 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
1859
1860         * as/mcs51/asdata.c: changed ctype['['] to BINOP
1861         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
1862           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
1863           (oprio): set priority for '['
1864         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
1865            and adb_24_bit
1866         * as/mcs51/asm.h: added defines R_BIT and S_BIT
1867         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
1868         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
1869         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
1870           added overlayable BIT_BANK area
1871         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
1872           (summary2): explain 'T' in legenda
1873         * as/mcs51/lkrloc.c: replaced old K&R style,
1874           (relr): added R_BIT processing,
1875           (errmsg): added "Bit-addressable relocation error",
1876           (adb_bit): added for converting from byte- to bit-addressable space,
1877           (adb_24_bit): added for converting from byte- to bit-addressable space
1878         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
1879            used in reentrant functions now even as return value
1880         * device/lib/_gptrput.c (_gptrput): removed obsolete code
1881         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
1882           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
1883         * src/SDCCglobl.h: added indicator BitBankUsed
1884         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
1885            the bit registers b0-b7
1886         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
1887           (geniCodeCast): fixed bug 1263853,
1888           (geniCodeLogicAndOr): put result in bool or char,
1889           (geniCodeReceive): added parameter func for accessing the return type,
1890           (geniCodeFunctionBody): pass func to geniCodeReceive
1891         * src/SDCCmain.c: added indicator BitBankUsed
1892         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
1893         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
1894           (checkSClass): don't put automatic bool/bit on stack,
1895           (checkFunction): removed check on function cannot return bit
1896         * src/SDCCsymt.h: added newBoolLink prototype
1897         * src/mcs51/gen.c (rb1regs): added bit registers,
1898           (movc): created for assigning to carry,
1899           (pushReg, popReg): created for pushing registers,
1900           (sameRegs): check both AOP_REG and AOP_CRY types,
1901           (aopOp): handle bit registers,
1902           (aopPut): optimization no self-assign,
1903           (saveRegisters): push reg->base (bits) only once for bit registers,
1904            and use pushReg,
1905           (unsaveRegisters): pop reg->base only once and use popReg,
1906           (assignResultValue): added parameter func and return in carry for bits,
1907           (genIpush): optimization no reload in A if not changed,
1908           (genSend): bit parameters in reentrant functions are passed in bit
1909            registers by first assigning to bits in B, then save registers and
1910            copy B to bits,
1911           (genCall): handle returning in Carry properly, save it in F0 if needed,
1912           (genPcall): updated assignResultValue call, this is not safe yet for bit
1913            returning function !!!
1914           (genFunction): don't generate equ's for bit registers and use pushReg,
1915           (genEndFunction): take care of bit returning functions and use popReg,
1916           (genRet): return bit in Carry,
1917           (genIfx): optimize bit registers and other directly addressable bits,
1918           (genReceive): updated assignResultValue call
1919         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
1920           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
1921            registers when using stack-auto
1922         * src/mcs51/ralloc.c (_G): added allBitregs,
1923           (regs8051): added the bit registers,
1924           (createStackSpil): use macro IS_BIT,
1925           (getRegBit): added to allocate a bit register, else spill,
1926           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
1927           (updateRegUsage): factored out to ease stepping while debugging,
1928           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
1929            also allocate bit registers,
1930           (fillGaps): handle bit registers,
1931           (findAllBitregs): added to create bit vector with all bit registers,
1932           (mcs51_allBitregs): returns this bit vector,
1933           (mcs51_assignRegisters): when using stack-auto use bit registers for
1934            passing parameters and creating local variables
1935         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
1936
1937 2005-08-22 Borut Razem <borut.razem AT siol.net>
1938
1939         * device/lib/Makefile.in: replaced find option -or with -o
1940           to make it run on solaris
1941
1942 2005-08-22 Raphael Neider <rneider AT web.de>
1943
1944         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
1945           fixes #1265442 (crash on Solaris)
1946
1947 2005-08-20 Borut Razem <borut.razem AT siol.net>
1948
1949         * configure, configure.in: added tests for libsocket and libnsl libraries,
1950           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
1951           from support/regression/Makefile.in
1952         * support/regression/Makefile.in: added
1953         * device/lib/pic16/Makefile.common.in: force make to use bash shell
1954         * sim/ucsim/libtool: regenerated on sparc-solaris
1955         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1956           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
1957           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
1958           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
1959           sparc-solaris, which doesn't use GNU ld linker
1960         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
1961         * as/Makefile: find on sparc-solaris does not support -maxdepth option
1962
1963 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
1964
1965         * src/mcs51/peeph.def: updated comments
1966
1967 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1968
1969         * device/lib/_gptrget.c,
1970         * device/lib/_gptrput.c: slightly shorter
1971         * doc/sdccman.lyx: incremented version
1972         * src/mcs51/peeph.def: moved peephole comments to the line of first
1973           change to better keep line correlation, reanimated 186.e
1974         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
1975
1976 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
1977
1978         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
1979           David Saxton with quotes around file name.
1980
1981 2005-08-15 Borut Razem <borut.razem AT siol.net>
1982
1983         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
1984           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
1985           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
1986           make tests run on x86_64 platform
1987
1988 2005-08-13 Raphael Neider <rneider AT web.de>
1989
1990         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
1991           as it might be executed DURING a build (parallel make is wonderful)
1992
1993 2005-08-13 Raphael Neider <rneider AT web.de>
1994
1995         * device/lib/Makefile.in (port-specific-objects-pic16):
1996           revert to cp $(PORT)/bin/*.* $(PORTDIR)
1997         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
1998           dependency
1999         * device/lib/pic16/Makefile.rules: build subdirs before creating
2000           the library, removed builddir rule, create $(builddir) early in
2001           recurse rule, use empty recurse rule for leaf directories
2002         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
2003           mkdir errors (race condition), removed duplicate suffix "hex"
2004           from clean rules
2005         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
2006         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
2007           prevents mkdir -p from aborting on Alpha
2008
2009 2005-08-12 Raphael Neider <rneider AT web.de>
2010
2011         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
2012           db-statements in order to allow for arrays of pointers in code
2013           sections to be placed without interspersed 0-padding, fixes
2014           bug #1256215
2015         * (emitStatistics): fixed division by zero for pic18f1220
2016         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
2017           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
2018         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
2019         * (pic16_pCodeConstString): keep track of already emitted string
2020           literals to prevent "duplicate definitions of symbol _str_NR"
2021         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
2022           debug message
2023         * device/lib/Makefile.in: ignore failing PIC16 library builds
2024         * device/lib/pic16/Makefile: do not build if gputils are missing
2025         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
2026
2027 2005-08-10 Raphael Neider <rneider AT web.de>
2028
2029         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
2030           my last commit)
2031
2032 2005-08-10 Raphael Neider <rneider AT web.de>
2033
2034         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
2035           Rokas' patch to add the new fixed point type "__fixed16x16"
2036         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
2037           functions for __fixed16x16 arithmetics
2038         * device/lib/pic16: reimplemented the build system to support
2039           a separate build directory, better handling of libio (create
2040           the library in a separate subdir for each architecture) and
2041           easier configuration (centralized in Makefile.common)
2042
2043 2005-08-07 Raphael Neider <rneider AT web.de>
2044
2045         * src/pic16/gen.c (genrshTwo): fixed sign extension
2046         * src/pic16/device.c: added pic18f2320, 4220 and 4320
2047         * device/include/pic16/pic18f2220.h: changed some bit definitions,
2048           added T0CONbits
2049         * device/include/pic16/pic18f4220.h: NEW, header for
2050           pic18f4220 and pic18f4320
2051         * device/include/pic16/pic18fregs.h: added new devices,
2052           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
2053         * device/include/pic16/signal.h: resolved name clashes
2054           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
2055           to also allow testing for interrupt enable bits, added
2056           comments on how to use the macros
2057         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
2058         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
2059           register definitions for the devices
2060         * device/lib/pic16/pics.all: added new devices
2061         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
2062           allocated memory
2063         * device/lib/pic16/libc/stdlib/memfree: do not count
2064           the block header as free memory
2065         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
2066           simplified and added missing end-of-blocklist-marker
2067           (reported by Peter Onion, fixes #1252814)
2068         * (_mergeHeapBlock): fixed loop condition
2069         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
2070           len==0, restructured code
2071         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
2072           up a bit, reduced bitfield accesses, prevent endless loops
2073           in case of heap corruption
2074         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
2075           "unreferenced arguments/must return a value" warnings
2076         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
2077           replaced BAUDREG with SPBRG
2078         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
2079           device/lib/pic16/debug/gstack/gstack.c: replaced
2080           _naked, _asm, _endasm with __naked, __asm, __endasm
2081
2082 2005-08-05 Raphael Neider <rneider AT web.de>
2083
2084         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
2085           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
2086
2087 2005-08-05 Borut Razem <borut.razem AT siol.net>
2088
2089         * device/lib/Makefile.in: added missing ';'
2090         * configure: removed ^M characters
2091
2092 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2093
2094         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
2095           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
2096           License
2097
2098 2005-08-04 Borut Razem <borut.razem AT siol.net>
2099
2100         * configure.in: pic16 libraries build 2nd try - enable running
2101           configure in device/lib/pic16
2102         * configure: regenerated from configure.in
2103         * device/lib/Makefile.in: create $(PORT)/bin directory
2104
2105 2005-08-03 Raphael Neider <rneider AT web.de>
2106
2107         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
2108           to get/set values via pointers
2109         * (genUnpackBits,genPackBits): changed detection of
2110           ptr->bitfield vs. sym.bitfield, fixed access via generic
2111           pointers, removed dead (wrong) code for multibyte bitfields
2112         * (genNearPointerGet, genGenPointerGet): removed useless code,
2113           fixed bitfield detection, fixes #1250594
2114         * (genNearPointerSet): removed useless code
2115         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
2116           and introduced macro pic16_emitpcode that conditionally emits
2117           the origin of the following pCode (useful for debugging SDCC)
2118         * src/pic16/pcode.c: changed (and disabled) some debug outputs
2119         * (createDefmap): fixed handling of LFSR for --optimize-df
2120
2121 2005-08-02 Borut Razem <borut.razem AT siol.net>
2122
2123         * device/lib/Makefile.in: pic16 libraries build enabled since
2124           gputils-0.13.2 are now localy installed at sourceforge's compile farm
2125
2126 2005-08-02 Raphael Neider <rneider AT web.de>
2127
2128         * src/pic16/gen.c (genPackBits): removed deprecated warning
2129         * (genGenPointerSet): fixed bitfield detection
2130
2131 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2132
2133         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
2134
2135 2005-07-31 Raphael Neider <rneider AT web.de>
2136
2137         * device/lib/pic16/libdev/pic18f458.c,
2138           device/include/pic16/pic18f458.h: added missing T0CONbits
2139
2140 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
2141
2142         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
2143
2144 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
2145
2146         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
2147
2148 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2149
2150         * device/include/mcs51/at89c51ed2.h: added.
2151
2152 2005-07-23 Raphael Neider <rneider AT web.de>
2153
2154         * src/pic/gen.h: added emitpcode macro for debugging
2155         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
2156           and replace by macro adding debug information on demand
2157         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
2158         * (gencjne): tried to fix; replaced with correct (slower) code
2159         * (gen{Unp,P}ackBits): fixed single bit access
2160         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
2161         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
2162           previous instruction
2163         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
2164           register has to be handled with care (forbidding movement
2165           of assignments/uses, removing assignments completely, ...)
2166         * (pCodeOptime2pCodes): make use of regIsSpecial
2167         * added lots of debugging output (commented out)
2168         * src/pic/rallloc.c (deassignLRs): prevent operand registers
2169           from being reused as result UNLESS it is known to work
2170
2171 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2172
2173         * support/Util/dbuf.h: include <stddef.h> for size_t
2174         * .version: changed to version 2.5.2
2175
2176 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2177
2178         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
2179
2180 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2181
2182         * src/hc08/gen.c (genMinus): fixed bug #1241835,
2183           (genModOneByte): removed needless psha/pula
2184
2185 2005-07-22 Raphael Neider <rneider AT web.de>
2186
2187         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
2188           have PIC14 handled like PIC16, fixes broken pic14 linker calls
2189         * src/pic/gen.c (resolveIfx): do not "invent" labels
2190         * (genSkipc): changed to positive logic
2191         * (genSkipCond): removed as no longer needed
2192         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
2193           backport from PIC16
2194         * (genLeftShift): check operands are in different registers
2195         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
2196           INCF does not update CARRY...
2197         * src/pic/main.c: fixed _linkCmd
2198         * src/pic/pcode.c (unlinkpCode): added inactive code
2199         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
2200           alive (do not assign result and operand overlapping registers)
2201
2202 2005-07-22 Raphael Neider <rneider AT web.de>
2203
2204         * src/pic/device.c (dump_sfr): replaced register declaration with
2205           call to emitSymbolToFile() to avoid duplicate symbols
2206         * (assignRelocatableRegisters): do not declare external symbols
2207         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
2208           right (take size of type, not etype)
2209         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
2210         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
2211         * (packRegsForAccUse): disabled assignment of WREG as
2212           the result reg to prevent occurence of just fixed #1235003,
2213           fixes #1242954
2214         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
2215           symbols (avoids duplicate symbols in .asm file)
2216         * (pic14emitRegularMap): use emitSymbolToFile()
2217         * src/pic/gen.c (aopOp): fixed spillLocation handling
2218         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
2219         * (genDataPointerSet): removed unneccessary variables/output
2220
2221 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
2222
2223         * as/mcs51/lkarea.c: enlarged codemap for banked memory
2224         * device/lib/mcs51/crtbank.asm: added # to 0x0F
2225
2226 2005-07-21 Raphael Neider <rneider AT web.de>
2227
2228         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
2229           architecture cannot handle them efficiently, fixes bug #1235003
2230         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
2231           check for empty sets before using them (fixes bug #1232190)
2232
2233 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
2234
2235         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
2236           (lnksect2): generate warnings for memory overlap
2237         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
2238           constseg to set the name of these segments so you can instruct the linker
2239           to place them in banks
2240         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
2241         * src/SDCCglobl.h: added MODEL_HUGE to enum,
2242           added code_seg and const_seg to options
2243         * src/SDCCglue.c (emitMaps): use options.const_seg,
2244           (createInterruptVect): put interrupt vectors in segment HOME,
2245           (glue): put HOME before static segment and put the main glue in HOME,
2246           (glue): use options.code_seg
2247         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
2248         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
2249           these segments so you can instruct the linker to place them in banks
2250           (linkEdit): use code_loc for HOME segment which should be the first
2251           segment in code memory now
2252         * src/SDCCmem.c: fixed more stuff like bug 1238386
2253         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
2254           (changePointer): don't change function pointers to code pointers for
2255           banked functions,
2256           (compareType): added exceptional check for banked function pointers
2257         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
2258         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
2259           after static in code memory
2260         * src/mcs51/gen.c: added aopLiteralLong prototype,
2261           (aopForSym): use getSize for functions,
2262           (genCall): generate banked calls over one trampoline __sdcc_banked_call
2263           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
2264           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
2265           the segment,
2266           (genPcall): use call for literal function pointers and generate banked
2267           calls over the one trampoline so there's only one place for the user to
2268           modify according to his/hers hardware,
2269           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
2270           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
2271         * src/mcs51/main.c: added keyword banked,
2272           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
2273         * support/Util/SDCCerr.c,
2274         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
2275           needed for passing the bank and address to the trampoline
2276         * device/lib/mcs51/crtbank.asm: added for bankswitching
2277         * device/lib/mcs51/Makefile: added crtbank
2278
2279 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2280
2281         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
2282           for fields at offset 0 of a struct or union as reported
2283           on 2005-07-07 in the developer mailing list.
2284
2285 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2286
2287         * src/SDCCmem.c: fixed bug 1238386
2288
2289 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2290
2291         * src/mcs51/peeph.def: added labelrefcounting for peepholes
2292           (patch #1144962), added peephole 300, enabled 259.x
2293         * doc/sdccman.lyx: removed screenshot and provided link instead
2294
2295 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2296
2297         * doc/sdccman.lyx: added section about debugging with ddd
2298         * doc/figures/ddd_example.eps: screenshot of debugging session
2299
2300 2005-07-04 Raphael Neider <rneider AT web.de>
2301
2302         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
2303           like CODE pointers, fixes #1115683
2304         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
2305           call, fixes bugs #1232211, #1228110,
2306           fixed wrong casts to pCodeFlow from pCodeInstructions
2307
2308 2005-07-04 Raphael Neider <rneider AT web.de>
2309
2310         * src/pic/gen.c (popGet): changed assert to allow for
2311           bit operands
2312         * (popGetAddr): changed signature to provide
2313           an additional index, patched all call sites
2314         * (genCmpEq): handle literal-like operands correctly
2315         * (genAddrOf): added sanity checks on __code/__data pointers
2316         * (genAssign): added handling of symbols from __code section
2317         * (gencjne): do not generate code for comparisons whose result
2318           is neither stored nor used, fixes bug #1171114
2319         * (AccLsh, AccRsh): operate on operand instead of WREG
2320         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
2321           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
2322           by known count
2323         * rewrote complete shift-by-literal logic, commented unused
2324           functions out
2325         * (genConstPointerGet): get multiple bytes (if result size > 1),
2326           fixed handling of non-immediate addresses
2327         * (genPointerGet): handle CODE pointers like CONST pointers
2328         * (genpic14Code): insert C-SRC lines as Cource-pCodes
2329         * ({aop,op}_isLitLike): NEW, single place to decide whether an
2330           operand is to be treated as a literal or not
2331         * (mov2w,genPcall,genCmpEq),
2332           src/pic/genarith.c: use aop_isLitLike() to decide between
2333           literal/register contents
2334         * (addSign): added missing offset
2335         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
2336           only emit comment in debug-mode,
2337           use {aop,op}_isLitLike throughout the file
2338         * src/pic/glue.c: fix initializers for pointers (work in progress)
2339         * src/pic/pcode.c (get_op): honor index on _const symbols
2340         * ({reset,dump}pCodeStatistics): NEW, estimate code size
2341         * (dumppBlock): added pCode size estimation
2342         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
2343           check for IS_SYMOP before OP_SYMBOL'ing
2344         * fixed indentation, compacted switch-statements
2345         * (allocReg): find free register and allocate it instead of
2346           allocating new registers all the time
2347         * (deassignLRs): prevent POINTER_GET's from being assigned the same
2348           registers as its operands (necessary only for multibyte GETs)
2349
2350 2005-07-01 Raphael Neider <rneider AT web.de>
2351
2352         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
2353           debugging .asm-output macros FENTRY + FEXIT
2354         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
2355           way... I wonder...
2356         * (emitpComment): NEW, printf to pCode
2357         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
2358           offset handling
2359         * (popGetAddr): NEW, variant of popGet to access an immediates
2360           high(er) bytes instead of the n'th byte of memory they reference,
2361           replaced popGet with popGetAddr where neccessary
2362         * (genDataPointerGet): reactivated and fixed implementation
2363         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
2364           accesses
2365         * (genDataPointerSet): fixed multibyte assignments
2366         * (genpic14Code): fixed --i-code-in-asm handling
2367         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
2368         * (genPlus): fixed index-out-of-bounds error
2369         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
2370         * src/pic/ralloc.c: added debugging output macro FENTRY2
2371         * (spillThis): fixed indentation, enbraced for-body for clarity
2372         * (rematStr): commented out as now unused
2373         * (regTypeNum): commented out special spill case (overwrites
2374           arbitrary values)
2375         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
2376
2377 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
2378
2379         * doc/sdccman.lyx: documented sfr16/sfr32,
2380           added example for using storage class with function pointers
2381         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
2382
2383 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
2384
2385         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
2386         * device/lib/_itoa.c,
2387         * device/lib/_ltoa.c: optimized codesize
2388         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
2389           but don't know how to suppress the double warning.
2390         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
2391         * support/Util/SDCCerr.c,
2392         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
2393
2394 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
2395
2396         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
2397           fixed old K&R prototypes
2398         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
2399         * device/lib/_gptrget.c,
2400         * device/lib/_gptrgetc.c,
2401         * device/lib/_gptrput.c: changed versions for new memory indicator values,
2402           also new versions for small generic pointers and banked generic pointers
2403         * src/port.h: added const_name
2404         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
2405         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
2406         * src/SDCCcse.c (findPrevIc): check all associative operators
2407         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
2408         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
2409         * src/SDCCmem.c: updated comments,
2410           set far-space to 0 for pdata, results in optimized code
2411         * src/SDCCmem.h: added macro CONST_NAME
2412         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
2413           moving the info into the highest bits, see also gptrget/gptrput
2414         * src/src.dsp: added sdcc.ico to project files
2415         * src/avr/gen.c (genCast): fixed bug 0x%d
2416         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
2417         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
2418           relation between ptr_type and DCL_TYPE,
2419           (genCast): fixed bug 0x%d
2420         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
2421           (CODE)" for const_name
2422         * src/hc08/gen.c (genCast): fixed bug 0x%d
2423         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
2424           (hc08_port): added "CONST (CODE)" for const_name
2425         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
2426           (aopForRemat, adjustArithmeticResult): disconnected direct relation
2427           between ptr_type and DCL_TYPE,
2428           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
2429           operand* and took AOP() inside function so sfr-ness can be checked,
2430           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
2431           new prototype,
2432           (genFunction, genEndFunction): optimized stack setup,
2433           (genMinus): optimized for literals with ending zeroes (in bytes),
2434           (genCast): fixed bug 0x%d
2435         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
2436           (mcs51_port): added "CONST (CODE)" for const_name
2437         * src/mcs51/peeph.def: made rule 226 more generic
2438         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
2439         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
2440         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
2441         * src/z80/main.c (z80_port): added NULL for const_name,
2442           (gbz80_port): added NULL for const_name
2443         * support/regression/tests/bug663539.c,
2444         * support/regression/tests/sfr16.c: new tests
2445
2446 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2447
2448         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
2449
2450 2005-06-24 Raphael Neider <rneider AT web.de>
2451
2452         * device/lib/pic16/libdev/pic18f[68][567]20.c:
2453           corrected typos...
2454         * device/include/pic16/signal.h: added USBIF
2455           and SIG_USB
2456
2457 2005-06-24 Raphael Neider <rneider AT web.de>
2458
2459         * device/lib/pic16/libdev/pic18f2455.c,
2460           device/include/pic16/pic18f2455.h: NEW
2461         * device/include/pic16/pic18fregs.h,
2462           device/lib/pic16/pics.all,
2463           src/pic16/device.c: added 18f2455
2464         * device/lib/pic16/libdev/pic18f[68][567]20.c,
2465           device/include/pic16/{pic18f[68][567].h,usart.h}:
2466           replaced MULTIPLE_USARTS define with more relaible
2467           compatibility sfrs (for USART access)
2468
2469 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
2470
2471         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
2472           and the output asm file line is printed on two lines.
2473
2474 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2475
2476         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
2477           BGT, BLE, BHI, and BLS instructions
2478         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
2479           genCmpEq): removed
2480         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
2481           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
2482           fixes bug #1216342
2483         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
2484
2485 2005-06-15 Raphael Neider <rneider AT web.de>
2486
2487         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
2488         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
2489         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
2490           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
2491           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
2492
2493 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2494
2495         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
2496           Marcel Telka in bug #1215704
2497
2498 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
2499
2500         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
2501           located in shared memory bank.
2502
2503 2005-05-31 Raphael Neider <rneider AT web.de>
2504
2505         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
2506           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
2507           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
2508
2509 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
2510
2511         * device/lib/_strncpy.c: fixed the fix
2512
2513 2005-05-26 Raphael Neider <rneider AT web.de>
2514
2515         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
2516           initializers with \0, bug #1208187
2517         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
2518           intializers with \0, bug #1208187
2519
2520 2005-05-26 Raphael Neider <rneider AT web.de>
2521
2522         * src/pic16/glue.c (pic16_printIvalChar): fixed string
2523           initializers with \0, bug #1208187
2524         * src/pic16/main.c (_process_pragma): added sanity checks
2525           for stack position and size, emit warnings when appropriate
2526
2527 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2528
2529         * device/lib/_strncpy.c: fixed not filling with \0
2530
2531 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2532
2533         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
2534           createFunction),
2535         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
2536           compound_statement),
2537         * src/SDCCsymt.h,
2538         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
2539
2540 2005-05-24 Raphael Neider <rneider AT web.de>
2541
2542         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
2543
2544 2005-05-24 Raphael Neider <rneider AT web.de>
2545
2546         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
2547           TRISE definitions, closes bug #1162453
2548
2549 2005-05-22 Raphael Neider <rneider AT web.de>
2550
2551         * src/pic16/main.c (_process_pragma): check for missing
2552           arguments to pragmas code and udata
2553         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
2554           consistency fixes to match other headers (thanks to Jim Paris)
2555         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
2556
2557 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2558
2559         * src/SDCCicode.c (isOperandEqual): fixed missing ;
2560
2561 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
2562
2563         * support/regression/tests/bug1198642.c: new test
2564         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
2565         * src/SDCCcse.c (findPrevIc): added comment, please have a look
2566         * support/scripts/resource.h,
2567         * support/scripts/resource.rc,
2568         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
2569         * support/scripts/sdcc.ico: added 32x32 icon
2570
2571 2005-05-18 Raphael Neider <rneider AT web.de>
2572
2573         * device/lib/pic16/libdev/pic18f*.c,
2574         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
2575           keywords to "__sfr" and "__at (X)"
2576         * device/include/pic16/pic18fregs.h: added pic18f4520
2577         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
2578           #1203088 (MPLAB compatibility)
2579
2580 2005-05-17 Raphael Neider <rneider AT web.de>
2581
2582         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
2583         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
2584         * device/lib/pic16/pics.all: added new devices
2585         * src/pic16/device.c: added support for pic18f4520
2586
2587 2005-05-16 Raphael Neider <rneider AT web.de>
2588         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
2589         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
2590         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
2591           convenience function for bit access
2592
2593 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2594
2595         * device/lib/printf_large.c: fixed bug 1193299
2596         * support/regression/tests/bug1057979.c: added test %3.3s
2597
2598 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2599
2600         * device/include/mcs51/8051.h,
2601         * device/include/mcs51/8052.h: made parseable with lint
2602         * device/include/mcs51/lint.h: added include file for (sp)lint
2603         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
2604         * doc/cdbfileformat.lyx,
2605         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
2606
2607 2005-05-14 Raphael Neider <rneider AT web.de>
2608
2609         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
2610         * device/lib/pic16/libc/stdlib/itoa.c (new)
2611         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
2612         * device/lib/pic16/libio/Makefile: exclude subdir according to
2613           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
2614         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
2615         * src/pic16/gen.c (genFunction): prevent annoying warning
2616         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
2617           nameclashes on BeOS
2618         * support/cpp2/cppmain.c (cpp_output_string): new
2619         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
2620           fixes bug 1116802
2621
2622 2005-05-13 Borut Razem <borut.razem AT siol.net>
2623
2624         * src/SDCCmain.c (linkEdit): fixed bug 1195202
2625
2626 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2627
2628         * .version: changed to version 2.5.1; back to bleeding edge development
2629
2630 2005-05-11 Borut Razem <borut.razem AT siol.net>
2631
2632         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
2633           generate PDF version 1.3 documents
2634
2635 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2636
2637         * .version: changed to version 2.5.0
2638
2639 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2640
2641         * doc/sdccman.lyx: updated weblinks, index and smaller updates
2642
2643 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2644
2645         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
2646         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
2647         well as many smaller updates.
2648         * .version: changed to version 2.5.0-pre1
2649
2650 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2651
2652         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
2653
2654 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2655
2656         * support/regression/tests/bug1185672.c: added
2657         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
2658           bug 1185672
2659         * src/mcs51/gen.c (genCall): added comments, made it look safer
2660         * src/mcs51/gen.c (genEndFunction): simplified
2661
2662 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2663
2664         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
2665
2666 2005-04-14 Borut Razem <borut.razem AT siol.net>
2667
2668         * fixed bug 1045046 - SIGSEGV with really simple code?:
2669           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
2670           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
2671
2672 2005-04-14 Borut Razem <borut.razem AT siol.net>
2673
2674         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
2675           src/pic16/device.h: temporarily disabled experimental #inline pragma
2676           for 2.5.0 release
2677
2678 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
2679
2680         * device/include/z80/stdio.h,
2681         * device/include/z80/string.h: removed these highly incomplete files so
2682           SDCC can use the default ones in device/include/
2683
2684 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2685
2686         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
2687         gcc warning.
2688         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
2689         fix sdcpp warnings.
2690
2691 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2692
2693         * device/include/malloc.h: removed redundant __reentrant prototypes
2694         * device/lib/_mullong.c: added working xstack variant in asm (C version
2695           doesn't pass regression tests)
2696         * device/lib/bpx.c: used __data and made bpx char for mcs51
2697         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
2698           (createFunction): fixed bug with xstackPtr
2699         * src/SDCCcse.c: corrected comments
2700         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
2701           (killDeadCode, eBBlockFromiCode): removed unused code
2702         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
2703           corrected comments
2704         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
2705           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
2706           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
2707           (genModOneByte): fixed warning in MSVC
2708         * src/mcs51/main.c (): added comments
2709         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
2710
2711 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2712
2713         * src/SDCCmain.c (linkEdit): oops, changed one line too many
2714
2715 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
2716
2717         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
2718
2719 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
2720
2721         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
2722         characters arrays of larger size than the declared one.
2723
2724 2005-04-10 Borut Razem <borut.razem AT siol.net>
2725
2726         * src/pic/gen.c (genInline),
2727           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
2728           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
2729           (findNextInstruction), (findPrevInstruction),
2730           (findInstructionUsingLabel),
2731           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
2732         * src/pic/pcode.c (findLabel): added missing '\n'
2733         * src/src.dsp: added SDCCdwarf2.c to the project
2734
2735 2005-04-09 Borut Razem <borut.razem AT siol.net>
2736
2737         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
2738
2739 2005-04-08 Raphael Neider <rneider AT web.de>
2740
2741         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
2742           into the chain after a given one) and mergeDefmapSymbols (combine
2743           defmap entries for each symbol per pcode)
2744         * (createDefmap): have defmap entries merged in the end
2745         * (defmapReplaceSymRef): split defmap entries covering two accesses to
2746           a symbol before replacing one access type's symbol, merge symbols in
2747           the end (replacement symbol might already have an entry)
2748         * (assignValnums): keep reference to written WREG intact
2749
2750 2005-04-08 Raphael Neider <rneider AT web.de>
2751
2752         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
2753           Alpha)
2754
2755 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
2756
2757         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
2758         bytes
2759
2760 2005-04-07 Raphael Neider <rneider AT web.de>
2761
2762         * device/include/pic16/usart.h: added compatibility defines for
2763           devices with more than one USART
2764         * device/include/pic16/pic18f[68][567]20.h: activated above defines
2765
2766 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2767
2768         * device/lib/Makefile.in: updated for port specific include
2769
2770 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2771
2772         * support/regression/ports/mcs51/spec.mk: added mcs51 include
2773
2774 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2775
2776         * device/include/8051.h,
2777         * device/include/8052.h,
2778         * device/include/at89S8252.h,
2779         * device/include/at89c55.h,
2780         * device/include/at89x051.h,
2781         * device/include/at89x51.h,
2782         * device/include/at89x52.h,
2783         * device/include/mcs51reg.h,
2784         * device/include/reg51.h,
2785         * device/include/reg764.h,
2786         * device/include/regc515c.h,
2787         * device/include/sab80515.h: (re)moved these 12 files
2788         * device/include/mcs51/8051.h,
2789         * device/include/mcs51/8052.h,
2790         * device/include/mcs51/at89S8252.h,
2791         * device/include/mcs51/at89c55.h,
2792         * device/include/mcs51/at89x051.h,
2793         * device/include/mcs51/at89x51.h,
2794         * device/include/mcs51/at89x52.h,
2795         * device/include/mcs51/mcs51reg.h,
2796         * device/include/mcs51/reg51.h,
2797         * device/include/mcs51/reg764.h,
2798         * device/include/mcs51/regc515c.h,
2799         * device/include/mcs51/sab80515.h: and added them here
2800
2801 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2802
2803         * device/include/stdarg.h: changed SDCC specific keywords to double
2804           underlined form.
2805         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
2806           mcs51 and ds390.
2807         * device/include/hc08/mc68hc908gp32.h,
2808         * device/include/hc08/mc68hc908jb8.h,
2809         * device/include/hc08/mc68hc908jkjl.h,
2810         * device/include/hc08/mc68hc908qy.h: fixed comments
2811         * device/include/mcs51/README: updated
2812         * device/include/mcs51/c8051f120.h: added PINRSF
2813         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
2814         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
2815           amidst code. Also inline is not supported.
2816
2817 2005-04-06 Raphael Neider <rneider AT web.de>
2818
2819         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
2820         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
2821           callers stack/frame pointers
2822
2823 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2824
2825         * device/include/pic16/usart.h: added, missing in previous commit,
2826         * device/include/pic16/adc.h: fixed typo,
2827         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
2828         commit,
2829         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
2830         <p18fxxx.inc>
2831         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
2832         uninitialized because a bug appears with gplink
2833         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
2834         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
2835         complains for unrecognised option
2836
2837 2005-04-05 Raphael Neider <rneider AT web.de>
2838
2839         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
2840           structs as well (using memcpy)
2841         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
2842           on ISRs (GOTO has no label)
2843         * src/pic16/device.h: added OF_OPTIMIZE_DF
2844         * src/pic16/main.c: added compiler switch --optimize-df to enable the
2845           new data flow analysis/optimization
2846         * src/pic16/pcode.c: added (prototypes for and implementation of)
2847           dataflow analysis functions, fixed pCodeInstructions' inCond and
2848           outCond values, made RCALL a branch instruction
2849         * (pic16_unlinkpCode): keep C line if possible
2850         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
2851           C line moved if possible
2852         * (pic16_getRegFrompCodeOp): NEW, improved version of...
2853         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
2854           to use new pic16_getRegFrompCodeOp (works for more SFRs)
2855         * (pic16_BuildFlow): fixed skip instructions with label (did not start
2856           new flow)
2857         * (pic16_getJumptabpCode): NEW, needed in...
2858         * (LinkFlow): fixed handling of jumptables, calls and conditional
2859           branches
2860         * (pic16_InsertCommentAfter): NEW
2861         * (pic16_pCodeReplace): made verbose and flow preserving
2862         * (AnalyzeFlow): added call to data flow analysis
2863         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
2864         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
2865         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
2866
2867 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2868
2869         * src/SDCCast.c (decorateType): fixed bug #1105626
2870
2871 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
2872
2873         * device/include/asm/pic16/features.h,
2874         * pic18f*.h headers,
2875         * device/include/pic16/adc.h,
2876         * device/include/pic16/delay.h,
2877         * device/include/pic16/i2c.h,
2878         * device/include/pic16/malloc.h,
2879         * device/include/pic16/stdio.h,
2880         * device/include/pic16/stdlib.h,
2881         * device/include/pic16/string.h,
2882         * device/lib/pic16/libc/stdio/printf_tiny.c,
2883         * device/lib/pic16/libc/stdio/printf_small.c,
2884         * device/lib/pic16/libc/stdio/strmgpsim.c,
2885         * device/lib/pic16/libc/stdio/strmmssp.c,
2886         * device/lib/pic16/libc/stdio/strmusart.c,
2887         * device/lib/pic16/libc/stdio/vfprintf.c,
2888         * device/lib/pic16/libc/stdlib/ltoa.c,
2889         * device/lib/pic16/libc/stdlib/putchar.c,
2890         * device/lib/pic16/libc/stdlib/x_ftoa.c,
2891         * device/lib/pic16/libc/stdlib/memchrpgm.c,
2892         * device/lib/pic16/libc/stdlib/memchrram.c,
2893         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
2894         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
2895         * device/lib/pic16/libio/adc/adcbusy.c,
2896         * device/lib/pic16/libio/adc/adcread.c,
2897         * device/lib/pic16/libio/adc/adcsetch.c,
2898         * device/lib/pic16/libio/usart/ubaud.c,
2899         * device/lib/pic16/libio/usart/ubusy.c,
2900         * device/lib/pic16/libio/usart/udrdy.c,
2901         * device/lib/pic16/libio/usart/uopen.c,
2902         * device/lib/pic16/libio/usart/uputc.c,
2903         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
2904         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
2905         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
2906         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
2907         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
2908         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
2909         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
2910         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
2911         specific keywords to double underlined form,
2912         * device/lib/pic16/libc/Makefile.rules,
2913         * device/lib/pic16/libsdcc/Makefile.rules,
2914         * device/lib/pic16/libm/Makefile,
2915         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
2916         to compile with C standard set in Makefile.common
2917         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
2918         rand.c and crc.c in compilation process,
2919         * device/lib/pic16/libsdcc/int/divuint.c,
2920         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
2921         `c' from signed to unsigned,
2922         * device/lib/pic16/startup/crt0.c,
2923         * device/lib/pic16/startup/crt0i.c,
2924         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
2925         keywords to double underlined form, bug fixes in _do_cinit function
2926         which prevented the correct initialization of the .idata segment,
2927         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
2928         core to enter a infinite loop
2929         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
2930
2931 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2932
2933         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
2934
2935 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2936
2937         * device/include/Makefile.in: add support for hc08 subdirectory
2938         * device/include/hc08/: new subdirectory
2939         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
2940         Lucas Loizaga, thanks!
2941         * device/include/hc08/mc68hc908qy.h,
2942         * device/include/hc08/mc68hc908gp32.h,
2943         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
2944         their own directory. Changed internal macro names to use the compiler
2945         reserved namespace. Changed SDCC specific keywords to double
2946         underlined form.
2947         * device/include/math.h,
2948         * device/include/malloc.h,
2949         * device/include/stdarg.h,
2950         * device/include/stdbool.h
2951         * device/include/string.h,
2952         * device/include/tinibios.h,
2953         * device/include/ds400rom.h,
2954         * device/include/8051.h,
2955         * device/include/8052.h,
2956         * device/include/80c51xa.h,
2957         * device/include/at89c55.h,
2958         * device/include/at89S8252.h,
2959         * device/include/at89x51.h,
2960         * device/include/at89x52.h,
2961         * device/include/ds80c390.h,
2962         * device/include/reg764.h,
2963         * device/include/regc515c.h,
2964         * device/include/sab80515.h,
2965         * device/include/mcs51/c8051f000.h,
2966         * device/include/mcs51/c8051f018.h,
2967         * device/include/mcs51/c8051f020.h,
2968         * device/include/mcs51/c8051f040.h,
2969         * device/include/mcs51/c8051f060.h,
2970         * device/include/mcs51/c8051f120.h,
2971         * device/include/mcs51/c8051f300.h,
2972         * device/include/mcs51/c8051f310.h,
2973         * device/include/mcs51/c8051f320.h,
2974         * device/include/mcs51/c8051f330.h,
2975         * device/include/mcs51/c8051f350.h,
2976         * device/include/z180.h: Changed SDCC specific keywords to double
2977         underlined form.
2978
2979 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
2980
2981         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
2982         18F4455,
2983         * (pic16_assignConfigWordValue): disable testing of configuration
2984         register value with config mask,
2985         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
2986         function with port->fun_prefix,
2987         * (genFunction): when generating a naked interrupt function never
2988         create an absolute segment placed in interrupt vector address, place
2989         the actual interrupt function at IVA instead, when an interrupt
2990         function is generated with unspecified interrupt then do not create
2991         the absolute section,
2992         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
2993         code for generating a call to generic pointer get/put function with
2994         a call to function pic16_callGenericPointer(),
2995         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
2996         the call to the generic pointer get/put functions with prefixing the
2997         function name with port->fun_prefix,
2998         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
2999         * src/pic16/main.c (_process_pragma): prefix function with
3000         port->fun_prefix,
3001         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
3002         calling assembler, old 18Fxxxx macro is deprecated,
3003         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
3004         PC_ASMDIR in while condition,
3005         * (findInstruction): add PC_ASMDIR in while condition,
3006         * (buildCallTree): prefix main with port->fun_prefix,
3007         * (pic16_pCode2str): fixed bug that didn't emit the memory access
3008         identifier for variable with banked access in instructions BTFSS,
3009         BTFSC, BCF, BSF, BTG
3010         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
3011         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
3012         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
3013         perform optimization when enviroment variable NO_REG_OPT is set,
3014         * (insideLRBlock): NEW, return 1 if register is inside an
3015         INF_LOCALREGS block,
3016         * (RemoveRegFromLRBlock): remove a register that is completely
3017         eliminated by register optimization, but it is still left in local
3018         register store/restore in/from stack block,
3019         * (Remove2pcodes): after removing register, check to see if it
3020         should be removed from local register store/restore in/from stack
3021         block,
3022         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
3023         DUMMY_READ_VOLATILE,
3024
3025         * device/include/pic16/adc.h: minor prototype modifications and
3026         update,
3027         * device/include/pic16/malloc.h: added GPL notice various
3028         modifications,
3029         * device/include/pic16/stdint.h: NEW, standard header for ints
3030         * device/include/pic16/delay.h: NEW, header for delay functions,
3031         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
3032         delay1mtcy,
3033         * device/include/pic16/signal.h: NEW, header providing helper macros
3034         for implementing signal handlers,
3035         * device/include/pic16/stdio.h: added prototypes for functions,
3036         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
3037         prototypes for stdin and stdout, added macro PUTCHAR to
3038         automatically implement putchar function prototype,
3039         * device/include/pic16/usart.h: modified and updated USART library,
3040         * device/lib/pic16/libio/adc/,
3041         * device/lib/pic16/libio/i2c: some modifications to improve library
3042         performance,
3043         * device/lib/pic16/libc/stdio/: modifications for the new printf*
3044         family of functions,
3045         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
3046         family of functions and other sources,
3047         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
3048         of the PIC18Fxx[28] devices,
3049         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
3050         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
3051         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
3052         _do_cinit function, because the previous failed when local variables
3053         where not placed in the same memory bank,
3054         * device/lib/pic16/libsdcc/char/: various modifications to improve
3055         library performance,
3056         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
3057         information on the new functions of the c library and more...
3058
3059 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3060
3061         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
3062
3063 2005-03-26 Raphael Neider <rneider AT web.de>
3064
3065         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
3066           if condition == CARRY)
3067         * (genCmp): adapted to new genSkipc semantics
3068         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
3069           on rIfx (genCmp was broken)
3070
3071 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3072
3073         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
3074         * src/z80/main.c (_keywords[]),
3075         * src/SDCCglobal.h (struct options),
3076         * src/SDCC.y,
3077         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
3078         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
3079         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
3080         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
3081         always available in leading double underscore form. The C99 support is
3082         mostly missing, but it's a start.
3083         * support/regression/tests/bug-227710.c: fixed nonconforming use of
3084         reserved identifier "__data".
3085
3086 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3087
3088         * src/mcs51/peeph.def: fixed bug 1170013
3089
3090 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
3091
3092         * device/include/mcs51reg.h: fixed bug 842007
3093
3094 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3095
3096         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
3097         last time.
3098
3099 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3100
3101         * src/port.h (struct PORT),
3102         * src/avr/ralloc.c (avr_assignRegisters),
3103         * src/avr/main.c,
3104         * src/ds390/ralloc.c (ds390_assignRegisters),
3105         * src/ds390/main.c,
3106         * src/hc08/ralloc.c (hc08_assignRegisters),
3107         * src/hc08/main.c,
3108         * src/mcs51/ralloc.c (mcs51_assignRegisters),
3109         * src/mcs51/main.c,
3110         * src/pic/ralloc.c (pic14_assignRegisters),
3111         * src/pic/main.c,
3112         * src/pic16/ralloc.c (pic16_assignRegisters),
3113         * src/pic16/main.c,
3114         * src/xa51/ralloc.c (xa51_assignRegisters),
3115         * src/xa51/main.c,
3116         * src/z80/ralloc.c (z80_assignRegisters),
3117         * src/z80/ralloc.h,
3118         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
3119         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
3120         * src/SDCCcse.h,
3121         * src/SDCCdflow.c (computeDataFlow),
3122         * src/SDCCdflow.h,
3123         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
3124         * src/SDCCloop.h,
3125         * src/SDCCcflow.c (*),
3126         * src/SDCCcflow.h,
3127         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
3128         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
3129         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
3130         immedDom() returning wrong block; probably fixes bug #1160833)
3131
3132 2005-03-20 Borut Razem <borut.razem AT siol.net>
3133
3134         * support/scripts/inc2h.pl: WIN32 port
3135
3136 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
3137
3138         * device/lib/makefile.in: added abs.c and labs.c
3139
3140 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3141
3142         * device/include/stdint.h: added
3143         * device/lib/abs.c: added
3144         * device/lib/labs.c: added
3145         * device/include/stdlib.h: added abs() and labs() prototypes
3146         * device/lib/libsdcc.lib: added abs and labs
3147         * device/include/float.h,
3148         * device/lib/_fsmul.c,
3149         * device/lib/printf_fast.c,
3150         * device/lib/printf_tiny.c: updated comments
3151
3152 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3153
3154         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
3155         bug #1164313
3156
3157 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3158
3159         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
3160         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
3161
3162 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
3163
3164         * device/lib/printf_large.c: removed inline assembly for portability and
3165           readability. Use printf_fast if speed or size are more important.
3166         * src/pic16/gen.c: removed conditions around use of DEBUGpc
3167         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
3168
3169 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
3170
3171         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
3172         prevent compiler warning
3173
3174 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3175
3176         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
3177         moved to level 0 and declared as static. Also they are explicit
3178         placed in access bank. This was necessery because some times they
3179         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
3180         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
3181         optimizations. Currently only compare to unsigned char is implemented,
3182         * src/pic16/gen.c: added fReturnIdx array,
3183         * (struct resolvedIfx) is moved to gen.h and made public,
3184         * (struct _G): added sregsAlloc and sregsAllocSet fields,
3185         * (aopForSym): added an optimization to directly store in stack of
3186         the operand of a SEND iCode,
3187         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
3188         but as registers instead (AOP_REG) using the fReturnIdx array,
3189         * (pic16_freeAsmop): remove the freed register from the
3190         _G.sregsAlloc field,
3191         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
3192         a compare of 'WREG',
3193         * (pic16_popGetTempRegCond): changed function prototype, now
3194         function takes also a bitVector argument v which holds the current
3195         set of registers that are allocated for stack access by aopForSym,
3196         registers allocated in aopForSym for accessing stack symbols are not
3197         any more part of the functions usedRegs field,
3198         * (genCall): some times aopOp is called for a stack variable to be
3199         send, aopForSym might perform the push, if this is true make sure
3200         that genCall doesn't push the variable twice by testing _G.resDirect,
3201         * (genFunction): changed testing for unspecified interrupt number
3202         from 256 to INTNO_UNSPEC,
3203         * modified selection scheme of frame pointer generation. Previously
3204         if function did use local registers a frame pointer was generated,
3205         now a frame pointer is generated only if function has arguments
3206         (that need PLUSW2 register access), or has stack arguments, or the
3207         compiler is not instructed to omit the frame pointer,
3208         * (genEndFunction): before restoring local registers that were saved
3209         in the function preamble, also restore the registers that *might*
3210         have been allocated for stack access,
3211         * (genRet): removed some old comments,
3212         * (genCmp, the active (RN's) version): added a call to the
3213         pic16_genCmp_special function to perform the compare with a more
3214         robust and optimized way,
3215         * (genInline): a feature has been added in inline code generation,
3216         which allows a wildcard variable substitution when writing inline
3217         assembly. Code is incomplete and experimental therefore undocumented,
3218         * (genCast): changed order of aopOp for result and right to allow
3219         aopForSym to directly load the result if possible,
3220         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
3221         perform an optimized compare on some selected special occasions,
3222         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
3223         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
3224         generate an IVT any more,
3225         * src/pic16/main.c (pic16_optionsTable): added command line option
3226         --optimize-cmp,
3227         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
3228         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
3229         macros,
3230         * src/pic16/NOTES: Raphael Neider added in list of active developers
3231         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
3232         jumptable_end to prevent bug #,
3233         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
3234         inCond and outCond fields,
3235         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
3236         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
3237         turn off register spilling,
3238         * (packRegsForOneUse): synced with other ports' versions although it
3239         is not used currently,
3240         * (pic16_packRegisters): added an optimization while reading
3241         structure bitfields, some registers may be saved (malloc code is
3242         decreased by 80 bytes)
3243
3244 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
3245
3246         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
3247         left is a bitfield, if yes, then don't optimize assignment. Perhaps
3248         this can be optimized more?
3249
3250 2005-03-10 Raphael Neider <rneider AT web.de>
3251
3252         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
3253           genNearPointerGet): (hopefully) fixed access to bitfields via
3254           pointers (p->bitN = x; and x = p->bitN; failed)
3255
3256 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
3257
3258         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
3259
3260 2005-03-09 Raphael Neider <rneider AT web.de>
3261
3262         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
3263
3264 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
3265
3266         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
3267         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
3268           (regTypeNum): set REG_BIT type if necessary
3269         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
3270         * support/regression/tests/critical.c: check bug 1144613
3271
3272 2005-03-02 Raphael Neider <rneider AT web.de>
3273
3274         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
3275
3276 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3277
3278         * src/avr/ralloc.c (serialRegAssign),
3279         * src/ds390/ralloc.c (serialRegAssign),
3280         * src/hc08/ralloc.c (serialRegAssign),
3281         * src/mcs51/ralloc.c (serialRegAssign),
3282         * src/pic/ralloc.c (serialRegAssign),
3283         * src/pic16/ralloc.c (serialRegAssign),
3284         * src/xa51/ralloc.c (serialRegAssign),
3285         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
3286
3287 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
3288
3289         * src/SDCCast.c (decorateType): fixed bug 1124787
3290
3291 2005-02-20 Hubert Sack <sack AT digiplan.de>
3292         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3293
3294         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
3295         patch #1121755
3296
3297 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3298
3299         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
3300         to keep the correct label reference count when adding/removing references
3301         to labels. A peephole file using this is appended to patch #1144962.
3302
3303 2005-02-14 Raphael Neider <rneider AT web.de>
3304
3305         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
3306         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
3307         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
3308           retrievals of result operand's value on assignment
3309
3310 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
3311
3312         * device/include/pic16/string.h: modified prototype for memccpy()
3313         to memccpy(void *, void *, char, size_t)
3314         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
3315         check whether to omit frame pointer or not,
3316         * (genInline): convert all occurences of "\n" to LF in inline
3317         assembler blocks, this helps formatting the inline text,
3318         * (pic16_loadFSR0): modified prototype,
3319         * (genNearPointerGet, genNearPointerSet): reorganization of code,
3320         removed some 8051 legacy code,
3321         * (genPackBits): enabled handling bitfields exceeding one byte in size,
3322         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
3323         before allocating temporary registers in functions,
3324
3325 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3326
3327         * support/regression/tests/bitvars.c: corrected the "fix"
3328
3329 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3330
3331         * support/regression/tests/bitvars.c,
3332         * support/regression/tests/bitwise.c,
3333         * support/regression/tests/rotate.c: "fixed" problems on Alpha
3334
3335 2005-02-10 Raphael Neider <rneider AT web.de>
3336
3337         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
3338           different size for Alpha
3339         * src/pic16/gen.c (genCmpEq) : improved compare with 0
3340
3341 2005-02-09 Raphael Neider <rneider AT web.de>
3342
3343         * src/SDCC.lex(doPragma) : save and restore warning options as well
3344           (also added new stack plus clone- and copyAndFreeSDCCERRG())
3345         * have #pragma less_pedantic set the errorlevel to WARNING
3346           (fixes #1117001)
3347         * (cloneOptimize) : fixed wrong malloc's size
3348         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
3349           facilitate correct handling of #pragma (save|restore)
3350
3351 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3352
3353         * src/mcs51/gen.c: removed non-standard C nameless struct/union
3354
3355 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
3356
3357         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
3358
3359 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
3360
3361         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
3362
3363 2005-02-02 Raphael Neider <rneider AT web.de>
3364
3365         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
3366         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
3367         * (pic16_storeForReturn): fixed to allow returning function pointers
3368         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
3369         * device/include/pic16/{stddef.h,stdbool.h}: added
3370
3371 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
3372
3373         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
3374
3375 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
3376
3377         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
3378         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
3379          appeared to be required
3380
3381 2005-01-31 Borut Razem <borut.razem AT siol.net>
3382
3383         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
3384           include/mcs51 and include/z80 directories to the package
3385
3386 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3387
3388         * src/hc08/gen.c (genFunction): fixed bug #1112752
3389
3390 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3391
3392         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
3393
3394 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3395
3396         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
3397
3398 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
3399
3400         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
3401
3402 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
3403
3404         * device/include/c8051fxxx.h: removed these 6 files
3405         * device/include/mcs51/c8051fxxx.h: added these 11 new files
3406
3407 2005-01-26 Raphael Neider <rneider AT web.de>
3408
3409         * src/pic16/gen.c (genAssign): fixed assignment from longs
3410           in codespace (were cut to three bytes)
3411         * (genDummyRead): implemented (except for CODESPACE...),
3412           fixed bug #1108575
3413         * src/pic16/glue.c (emitStatistics): beautified
3414         * device/lib/pic16/libm/Makefile: added include path
3415
3416 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3417
3418         * src/z80/gen.c (aopPut): fixed bug #1103902
3419
3420 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3421
3422         * device/lib/expf.c: fixed bug #1095792
3423
3424 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
3425
3426         * device/lib/pic16/libm: added Math library sources
3427
3428 2005-01-24 Raphael Neider <rneider AT web.de>
3429
3430         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
3431           to enable upcast to pCodeOpReg2 (there is no type tag to
3432           differenciate the two and pic16_popGet2p cast into PCOR2)
3433         * src/pic16/main.c (_process_pragma): fixed another malloc bug
3434           (sizeof(sectNames) changed to sizeof(sectName))
3435           Both patches fix segfaults under MinGW.
3436
3437 2005-01-23 Raphael Neider <rneider AT web.de>
3438
3439         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
3440           Safe_[mc]?alloc()'ed variables
3441         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
3442           of (byte sized) temporaries (assign them to WREG for now)
3443         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
3444           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
3445           this might fix SIGSEGVs on MinGW...
3446         * src/SDCCopt.c (killDeadCode): restored original behaviour
3447           (volatile operands might get thrown away though)
3448
3449 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
3450
3451         * src/pic16/gen.c: fixed bug #1106975,
3452         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
3453         pointer update, INTCON is saved, global interrupts are disabled and
3454         restored after updateing TOS.
3455         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
3456         * added function attribute 'shadowregs' to take advantage of shadow
3457         registers,
3458         * added function attribute 'wparam' as an alternative to the wparam
3459         pragma,
3460         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
3461         user declares a non-ISR function as 'shadowregs',
3462         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
3463
3464 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
3465
3466         * .version: bumped version number to 2.4.8
3467         * device/lib/pic16/pics.all: list of PIC18F devices supported by
3468         pic16 port,
3469         * device/lib/pic16/libio/i2c/: I2C module support library,
3470         * device/include/pic16/i2c.h: I2C support library header,
3471         * device/lib/pic16/libc/stdio/: standard IO support sources,
3472         * (printf_small.c): printf_small() source, supports float print,
3473         * (printf_tiny.c): printf_tiny() source, does not support floats,
3474         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
3475         enable global optimizations for entire library source, other
3476         Makefiles in the source tree are also modified to reflect this,
3477         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
3478         function,
3479         * doc/sdccman.lyx: updated to reflect new changes,
3480         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
3481         sym->onStack if-case,
3482         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
3483         sbit, idata, _idata, xdata, _xdata,
3484         * added pragma library, to link an external library, (see doc),
3485         * removed command line options, --pomit-config-words, --pomit-ivt,
3486         --pleave-reset-vector,
3487         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
3488         when calling assembler to reflect memory model used, also define
3489         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
3490         reflect stack model used,
3491         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
3492         on stack return NULL,
3493
3494 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3495
3496         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
3497           of the operands is volatile. Fixes #1020220
3498
3499 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3500
3501         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
3502         * (OptimizeRegUsage): make sure that there is really no other flow where
3503           the first pCode is used
3504
3505 2005-01-22 Raphael Neider <rneider AT web.de>
3506
3507         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
3508           to fix #1106967 (pCode->seq are not set up correctly)
3509
3510 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3511
3512         * src/SDCCglue.c (glue): make sure code area is declared before the
3513         static initialization area.
3514
3515 2005-01-21 Raphael Neider <rneider AT web.de>
3516
3517         * device/lib/Makefile.in: fixed test for pic16 install dir
3518         * device/lib/pic16/*/Makefile*: modified compile flags to enable
3519           optimizations
3520         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
3521           added --optimize-goto compiler switch and pragma wparam documentation
3522         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
3523         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
3524           and PRODH closing bug #1071770 (peephole optimizer)
3525
3526 2005-01-19 Raphael Neider <rneider AT web.de>
3527
3528         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
3529           cmdLine buffers (used when calling sdcpp...) are large enough
3530           (MAX_PATH=256 truncates arguments leading to system halts when
3531           used in MinGW...)
3532         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
3533         * (genUminus): rewritten to for efficiency
3534         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
3535           used uninitialized in some cases)
3536         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
3537           copy the third byte from the int -- now assumes 0x80 (data memory)
3538         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
3539           operands (genAddLit expects the iCode's operands to swapped as
3540           well), fixed leftover bytes (crashed for short left operands)
3541         * (pic16_genMinusDec): performance improvements, removed false
3542           PIC14 emitSKPNCs
3543         * (pic16_genMinus): fixed to cope with differently sized operands
3544         * src/pic16/glue.c (pic16_glue): added new banksel optimization
3545           for --obanksel > 1
3546         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
3547         * src/pic16/graph.[ch]: implementation of directed graphs, used by
3548           new banksel optimization
3549         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
3550           analysis for temporary registers (segfaults...)
3551         * src/pic16/peeph.def: added rule
3552
3553 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
3554
3555         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
3556         which converts a float number to its ASCII representation
3557         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
3558         functions to convert the fractional and integer part of a float to ASCII,
3559         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
3560         realloc.c): added _MALLOC_SPEC to explicit place variables in data
3561         ram
3562         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
3563         _STATMEM macros,
3564         * device/include/pic16/adc.h: added GPL info,
3565         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
3566         a pCodeOp as tested operand,
3567         * (genNearPointerGet): optimized bit testing, does not use
3568         intermediate register for bit value, test directly instead with
3569         BTFSS, BTFSC, works only for single bits,
3570         * (genpic16Code): dump the name of the iCode in the asm,
3571         * src/pic16/ralloc.c (decodeOp): removed static declaration and
3572         renamed to pic16_decodeOp,
3573         * (serialRegAssign): do not allocate a temporary register for iCode
3574         sequences that test a single bit for 1/0
3575
3576 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
3577
3578         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
3579         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
3580         access stack and frame pointers. They are initially assigned to
3581         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
3582         accessing SFRs. Updated all occurences of modification of stack or
3583         frame pointer in gen.c and pcode.c,
3584         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
3585         assigning of a literal value to pointers,
3586         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
3587         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
3588         selected
3589
3590 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3591
3592         * doc/sdccman.lyx: update documentation about stack pragma, added
3593         some info for stack memory models
3594
3595 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3596
3597         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
3598
3599 2005-01-08 Raphael Neider <rneider AT web.de>
3600
3601         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
3602           udata sections to fix bug #1097823
3603
3604 2005-01-05 Raphael Neider <rneider AT web.de>
3605
3606         * src/pic16/gen.c (genGenericShift): added handling of differently
3607           sized left operand and result
3608
3609 2005-01-04 Raphael Neider <rneider AT web.de>
3610
3611         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
3612         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
3613           to hold the condition bit)
3614         * added new version of genCmp (old code available via #define)
3615         * added new version of genShiftLeft/genShiftRight in a generic
3616           way, now supports shifting by negative values
3617         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
3618           shiftCount (expected by genGenericShift)
3619         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
3620         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
3621           dump
3622         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
3623           is an invalid literal too...)
3624
3625 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
3626
3627         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
3628         from Raphael Neider,
3629         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
3630         for 8-bit literals. This fixes some literal operands which are sign
3631         extended to 16-bits ints when instruction needs only 8-bits.
3632
3633 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
3634
3635         * device/lib/logf.c: added mcs51 assembly version
3636         * device/lib/expf.c: added mcs51 assembly version
3637         * device/lib/_logexpf.c: new shared asm code for expf and logf
3638         * device/include/math.h: add defines for assembly math library
3639         * device/lib/Makefile.in: build new _logexpf.c
3640         * device/lib/libfloat.lib: use new _logexpf.c
3641
3642 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3643
3644         * src/pic/device.c
3645         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
3646           device types which have less than 0x7f registers.
3647
3648 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3649
3650         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
3651
3652 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3653
3654         * device/lib/printf_fast.c: only build on supported arch.
3655         * device/lib/printf_tiny.c: only build on supported arch.
3656         * device/lib/printf_fast_f.c: only build if asm float lib
3657         * device/lib/_fsget1arg.c: only build if asm float lib
3658         * device/lib/_fsget2args.c: only build if asm float lib
3659         * device/lib/_fsnormalize.c: only build if asm float lib
3660         * device/lib/_fsreturnval.c: only build if asm float lib
3661         * device/lib/_fsrshift.c: only build if asm float lib
3662         * device/lib/_fsswapargs.c: only build if asm float lib
3663         * device/include/stdio.h: don't provide print_fast,
3664           print_fast_f, print_tiny prototypes if --xstack used
3665
3666 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
3667
3668         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
3669         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
3670           to the SOURCES
3671
3672 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3673
3674         * device/lib/printf_fast_f.c: same as printf_fast, but
3675           with floating point enabled
3676         * device/lib/printf_fast.c: minor tweaks
3677         * device/include/stdio.h: add printf_fast_f
3678
3679 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3680
3681         * src/SDCCmain.c: make --float-reent default for mcs51
3682         * device/lib/_fsadd.c: added mcs51 assembly version
3683         * device/lib/_fssub.c: added mcs51 assembly version
3684         * device/lib/_fsmul.c: added mcs51 assembly version
3685         * device/lib/_fsdiv.c: added mcs51 assembly version
3686         * device/lib/_fseq.c: added mcs51 assembly version
3687         * device/lib/_fsneq.c: added mcs51 assembly version
3688         * device/lib/_fsgt.c: added mcs51 assembly version
3689         * device/lib/_fslt.c: added mcs51 assembly version
3690         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
3691         * device/lib/Makefile.in: add _fscmp to build
3692         * device/lib/libfloat.lib: add _fscmp to build
3693
3694 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3695
3696         * device/lib/_fs2slong.c: added mcs51 assembly version
3697         * device/lib/_fs2sint.c: added mcs51 assembly version
3698         * device/lib/_fs2schar.c: added mcs51 assembly version
3699         * device/lib/_fs2ulong.c: added mcs51 assembly version
3700         * device/lib/_fs2uint.c: added mcs51 assembly version
3701         * device/lib/_fs2uchar.c: added mcs51 assembly version
3702         * device/lib/_slong2fs.c: added mcs51 assembly version
3703         * device/lib/_sint2fs.c: added mcs51 assembly version
3704         * device/lib/_schar2fs.c: added mcs51 assembly version
3705         * device/lib/_ulong2fs.c: added mcs51 assembly version
3706         * device/lib/_uint2fs.c: added mcs51 assembly version
3707         * device/lib/_uchar2fs.c: added mcs51 assembly version
3708         * device/include/float.h: added #define to select asm vs c
3709
3710 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
3711
3712         * device/lib/printf_fast.c: improvements to float output
3713         * device/include/float.h: add defines for assembly float library
3714         * device/lib/_fsget1arg.c: receive 1 float arg
3715         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
3716         * device/lib/_fsnormalize.c: normalize a float
3717         * device/lib/_fsreturnval.c: return float, various helper routines
3718         * device/lib/_fsrshift.c: right shift a float's mantissa
3719         * device/lib/_fsswapargs.c: swap 2 floats
3720         * device/lib/Makefile.in: build these 6 new files for mcs51
3721         * device/lib/libfloat.lib: add these 6 files to the library
3722
3723 2004-12-26 Borut Razem <borut.razem AT siol.net>
3724
3725         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
3726           built by gcc 3.4.2
3727
3728 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
3729
3730         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
3731           and fully reentrant and register bank neutral.
3732         * device/lib/printf_fast.c: added float (not enabled by default),
3733           added compact/slower integer (also not enabled by default),
3734           improved size/speed of fast integer code, other minor changes
3735         * device/include/stdio.h, device/lib/Makefile.in,
3736           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
3737
3738 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
3739
3740         * src/pic16/pcode.c: declaring variables other than at the start of a
3741           block is not supported in C by VC6.
3742
3743 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
3744
3745         * applied a previous patch from Raphael Neider that wasn't included
3746         in the previous commits, which fixes infinite loops within jumptable
3747         improvements,
3748         * made some fixes that previous patches introduced
3749
3750 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
3751
3752         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
3753         that fixes an issue with AOP_PCODE asmop's offset,
3754         * (pic16_popCopyReg): update instance field too,
3755         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
3756         function of pic port,
3757         * (genCmp, genAnd, genAssign),
3758         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
3759
3760 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
3761
3762         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
3763         variables initial values to idata section,
3764         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
3765         variables in some functions. This utilizes parmBytes field of iCode
3766         structure to hold the offset of the variable in stack. (might be
3767         able to use the stack field too?)
3768         * applied patch from Raphael Neider # ### , # ###
3769         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
3770         variable initial values in idata section,
3771         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
3772         for static variables with initial value
3773         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
3774         applied fix in while loop from Raphael Neider.
3775
3776 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
3777
3778         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
3779         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
3780         * src/ds390/ralloc.c (serialRegAssign): spill bits
3781         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
3782         * support/Util/SDCCerr.c,
3783         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
3784         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
3785         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
3786
3787 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
3788
3789         * device/include/sdcc-lib.h: inserted LGPL, added includes
3790           asm/ds390/features.h and asm/mcs51/features.h
3791         * device/include/asm/default/features.h,
3792         * device/include/asm/gbz80/features.h,
3793         * device/include/asm/z80/features.h: added empty _AUTOMEM
3794           and _STATMEM
3795         * device/include/asm/ds390/features.h,
3796         * device/include/asm/mcs51/features.h: added files with defines for
3797           _AUTOMEM and _STATMEM indicating automatic and static storage class
3798         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
3799         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
3800         * src/SDCCicode.c (geniCodeCast),
3801         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
3802         * src/SDCCloop.c (loopInduction): removed unused variable lr
3803         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
3804           to convertToFcall to include char modulo (RFE 1065037), added check
3805           if left operand is unsigned and use abs of literal value
3806         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
3807           as it doesn't work after conversion from peephole.def to peephole.rul
3808         * src/mcs51/gen.c (toBoolean): added check for size,
3809           (genModOneByte): optimized code for signed char modulo a literal
3810           power of 2 (thanks to Hubert Sack),
3811           (genRRC): removed unnecessary "clr c",
3812           (genRLC): replaced "add a,acc" with cheaper "rlc a"
3813         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
3814           jump optimization,
3815           swapped rules 256.c and 256.d,
3816           extended 256.d by using new multiple checks (thanks Erik),
3817           added rules 256.e and 256.f,
3818           updated rule 261.a and 261.b to new generated code
3819         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
3820
3821 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3822
3823         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
3824           induction related bugs, including first part of bug #1074377
3825
3826 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
3827
3828         * applied patch from bug-report #1076292,
3829         * applied patches for genAnd and Goto-optimizations for Raphael
3830         Neider,
3831         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
3832         dump a less iCode information,
3833         * src/pic16/device.h (pic16_options_t): added field debgen,
3834         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
3835         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
3836         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
3837         puclic,
3838         * (various functions): added macros FENTRY and FENTRY2 to functions,
3839         to emit function prologue,
3840         * (various functions): fixed indentation,
3841         * (genNearPointerGet): fixed loading of FSR0,
3842         * (genPackBits): applied patch from Raphael Neider to fix updating
3843         of FSR0 and touching only the modified bits,
3844         * src/pic16/genarith.c (various functions): added macros FENTRY to
3845         emit function prologue in comments,
3846         * src/pic16/pcode.h: added functions debugf2, debugf3,
3847         * src/pic16/ralloc.c: partial fix for packForPush caused
3848         segmentation fault,
3849
3850 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3851
3852         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
3853           <stsp AT users.sourceforge.net> with reversed byte order
3854         * support/regression/tests/rotate.c: added (ds390 skips some tests)
3855
3856 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3857
3858         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
3859           bug #1074377
3860         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
3861         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
3862
3863 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3864
3865         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
3866
3867 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3868
3869         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
3870           conditions,
3871           (setFromConditionArgs): friendly operand parser for peephole rules,
3872           (operandBaseName, operandsNotRelated): new peephole condition
3873           "operandsNotRelated" -- similar to "operandsNotSame", but takes
3874           architecture specific register naming into account, handles n-way
3875           comparisons, and supports quoted literals
3876         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
3877
3878 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3879
3880         * src/mcs51/peeph.def: fixed bug #1076940
3881
3882 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3883
3884         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
3885
3886 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3887
3888         Adding support for replacing ljmps with sjmps in jumptables
3889         generated for switch statements. For now you need to set the
3890         environment variable SDCC_SJMP_JUMPTABLE to enable this.
3891         Now 4 algorithms for mcs51 jumptable generation are used:
3892         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
3893         addresses loaded pc-relative for up to 112 cases and stack-pushing
3894         target addresses loaded with offset from dptr for up to 256 cases.
3895
3896         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
3897         * src/mcs51/main.c: adapted constants for switch table generation
3898         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
3899
3900 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
3901
3902         * device/lib/printf_large.c (_print_format): fixed bug 1073386
3903         * support/regression/tests/bug1057979.c: added test for bug 1073386
3904
3905 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3906
3907         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
3908         compilers
3909
3910 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3911
3912         * src/pic16/device.h,
3913         * src/pic16/genarith.c,
3914         * src/pic16/glue.c,
3915         * src/pic16/main.c,
3916         * src/pic16/pcode.c: applied patches #1068154 and #1070213
3917
3918 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
3919
3920         Large cummulative patch for pic16 port.
3921         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
3922         to call when a stack overflow occurs,
3923         * (malloc.h): added CVS Id tag,
3924         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
3925         variable,
3926         * added libc directory. The current version of LibC contains string
3927         functions, ctype functions and macros and some functions of the
3928         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
3929         be extensively tested in the future. Standard disclaimer here.
3930         Library is not automatically build yet. But one can build it by
3931         invoking 'make' inside the libc directory.
3932         * added ADC library under libio. Preliminary version yet.
3933
3934         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
3935         * src/pic16/gen.c (aopForRemat): asmop size is filled by
3936         aopForRemat() now and not by pic16_aopOp(),
3937         * (pic16_popGetTempReg): removed warning messgae when allocating
3938         temporary registers, its a buggy feature and will be removed,
3939         * (pic16_popGet): set register instance field in AOP_CRY,
3940         * (pic16_outBitC): fixed for results in size greater than 1,
3941         * (genUminusFloat): fixed for pic16, ported code from mcs51,
3942         * (pic16_storeForReturn): optimized return of 0,
3943         * (genCmp): experimental code for new genCmp which uses PIC18's
3944         special compare&skip instructions. Initial tests fail some times
3945         with variables grater than 1 byte in size, so new code is disabled,
3946         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
3947         a single bit,
3948         * (genCast): began a fix to optimize the casting of a bit to another
3949         bit, now assigning a bitfield to another bitfield will fail, sorry,
3950         * src/pic16/main.c: disabled the use of lr-support feature,
3951         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
3952         * added some function prototypes, added function _debugf prototype,
3953         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
3954         bits with offset (case PO_GPR_BIT),
3955         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
3956         command line,
3957         * (isBankInstruction): modified to return 0 for no banking instruction,
3958         and 1 for banking instruction,
3959         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
3960         caused stop processing pCodes after a inline assembly block,
3961         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
3962         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
3963         registers when it shouldn't,
3964         * src/pic16/ralloc.c (allocReg): add preliminary support for
3965         supporting a limited set of temporary registers,
3966
3967 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3968
3969         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
3970           genDataPointerSet): ensure assignments always copy in MSB to LSB
3971           order,
3972           (loadRegFromAop): recognize CLRH optimization,
3973           (genFunction): optimize RECEIVE iCodes in reentrant functions
3974
3975 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3976
3977         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
3978           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
3979           selected.
3980         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
3981         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
3982           contiguous with data
3983
3984 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3985
3986         * device/lib/_gptrget.c (_gptrget),
3987         * device/lib/_gptrgetc.c (_gptrgetc),
3988         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
3989           instead of sjmp to ret
3990         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
3991           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
3992
3993 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3994
3995         * .version: bumped version to 2.4.7
3996         * device/lib/_gptrget.c (_gptrget): is now _naked
3997         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
3998         * device/lib/_gptrput.c (_gptrput): is now _naked
3999         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
4000           (createFunction): fixed xstack
4001         * src/SDCCglue.c (emitMaps): set allocation required for bit area
4002         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
4003           or bit either,
4004           (geniCodeCritical): store original interrupt state in an iTemp bit
4005           var unless stack-auto
4006         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
4007         * src/SDCCmain.c (setIncludePath): added include/target to search path
4008         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
4009         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
4010           prototype,
4011           (processFuncArgs): put bit vars in bit area
4012         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
4013           unsaveRBank): fixed xstack,
4014           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
4015           (genFunction, genEndFunction): fixed xstack,
4016           (genAssign): optimization don't walk backwards through mem
4017         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
4018         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
4019         * support/regression/Makefile: also make library (for stack-auto) when
4020           making "all" and added "test-mcs51-xstack-auto"
4021         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
4022         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
4023         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
4024         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
4025         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
4026           make-library by MAKE_LIBRARY
4027         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
4028           regression tests for xstack
4029         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
4030         * support/regression/tests/critical.c: test for critical on mcs51
4031
4032 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4033
4034         * support/regression/ports/ucz80/spec.mk: use include and lib files from
4035           built version of sdcc instead of installed version
4036
4037 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4038
4039         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
4040         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
4041           vprintf.c now
4042         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
4043         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
4044           WARNING: remove device/lib/build/z80/printf.o by hand when
4045           updating from previous build!
4046         * device/lib/z80/printf.c: updated comment
4047         * support/regression/tests/bug1057979.c: test all ports now
4048         * support/regression/tests/bug1065458.c: file added
4049
4050 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4051
4052         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
4053           *_start and *_end symbols for static functions
4054
4055 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
4056
4057         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
4058           and search crt0.o in all library paths,
4059           (setIncludePath): proper handling of --nostdinc,
4060           (setLibPath): proper handling of --nostdlib
4061         * support/regression/Makefile,
4062         * support/regression/ports/ds390/spec.mk,
4063         * support/regression/ports/gbz80/spec.mk,
4064         * support/regression/ports/hc08/spec.mk,
4065         * support/regression/ports/mcs51/spec.mk,
4066         * support/regression/ports/mcs51-large/spec.mk,
4067         * support/regression/ports/mcs51-stack-auto/spec.mk,
4068         * support/regression/ports/z80/spec.mk: use include and lib files from
4069           built version of sdcc instead of installed version
4070         * doc/sdccman.lyx: fixed typo in --nostdinc
4071
4072 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
4073
4074         * src/pic/pcode.c,
4075         * src/pic/device.c,
4076         * src/pic/ralloc.c,
4077         * src/pic/gen.c : added support to generate code for struct bit fields.
4078
4079 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4080
4081         * as/xa51/xa_version.h,
4082         * device/include/errno.h,
4083         * device/include/regc515c.h,
4084         * device/lib/_itoa.c,
4085         * device/lib/_ltoa.c,
4086         * device/lib/ser_ir_cts_rts.c,
4087         * sim/ucsim/xa.src/glob.cc,
4088         * sim/ucsim/xa.src/inst_gen.cc,
4089         * sim/ucsim/xa.src/xa_bit.cc,
4090         * sim/ucsim/xa.src/xa_sfr.cc,
4091         * sim/ucsim/z80.src/inst_dd.cc,
4092         * sim/ucsim/z80.src/inst_fdcb.cc,
4093         * support/scripts/keil2sdcc.pl,
4094         * src/pic16/pic16.dsp,
4095         * src/pic16/pic16a.dsp: corrected cvs line endings
4096         * device/lib/printf_large.c: fixed bug 1057979
4097         * src/pic16/gen.c: fixed non-C standard code
4098         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
4099         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
4100         * support/regression/ports/mcs51/support.c: reload T1 asap
4101         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
4102           pdata use and clear idata startup behaviour
4103         * support/regression/tests/bug1057979.c: added
4104
4105 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
4106
4107         * device/examples/ds390/ow390/ad26.h,
4108         * device/examples/ds390/ow390/cnt1d.h,
4109         * device/examples/ds390/ow390/crcutil.c,
4110         * device/examples/ds390/ow390/ownet.h,
4111         * device/examples/ds390/ow390/owsesu.c,
4112         * device/examples/ds390/ow390/swt12.h,
4113         * device/examples/ds390/ow390/swtoper.c,
4114         * device/examples/ds390/ow390/temp10.h,
4115         * device/examples/ds390/ow390/thermodl.c,
4116         * device/examples/ds390/tinitalk/tinitalk.dsp,
4117         * device/examples/ds390/tinitalk/tinitalk.dsw,
4118         * device/examples/mcs51/clock/hw.h,
4119         * device/examples/mcs51/simple2/go.bat,
4120         * device/examples/serialcomm/windows/serial.h,
4121         * device/examples/xa51/dummy.c,
4122         * device/examples/xa51/hello.c,
4123         * device/include/80c51xa.h,
4124         * device/include/at89x051.h: corrected cvs line endings
4125
4126 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
4127
4128         * src/pic16/main.c (options): added command line --gstack, to trace
4129         stack over/under flows,
4130         * added pragma 'wparam' to allow passing first byte of function
4131         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
4132         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
4133         call to __gstack_test function and sets up the symbol as extern,
4134         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
4135         * popaop): added call to pic16_testStackOverflow,
4136         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
4137         wparamList list,
4138         * (genCall, genPcall): now all parameters are passed via stack
4139         except in functions that are pass to wparam pragma in which WREG is
4140         used too,
4141         * (genPcall): REENTRANT flag is checked to see if variable prototype
4142         contains reentrant keyword, don't call a non-reentrant function, via
4143         a reentrant function pointer or vice versa, functions are never
4144         passed via WREG,
4145         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
4146         D.Winkler,
4147         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
4148         SIGSEGV when accessing a NULL register stucture,
4149         * (pic16_printGPointerType): modified to handle UPPER modifier for
4150         function initializers, changed prototype of function to simpler one,
4151         * (pic16_printIvalFuncPtr): check to see if function is already
4152         added in externs list,
4153         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
4154         optimized a move from W to SFR with a move to the same register
4155         later after a CALL,
4156         * device/lib/pic16/debug: NEW directory, contains debug features
4157         which are enabled when linking with libdebug.lib, currently command
4158         line option --gstack enables stack pointer tracing for over/under
4159         flow, corresponding sources are in debug/gstack
4160
4161 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
4162
4163         * doc/sdccman.lyx: updated SDCC version,
4164         * (PIC16 port): update list of command line options,
4165         * src/pic16/device.h (structure pic16_options_t): added field gstack
4166         to enable stack overflow tracing on push/pops,
4167         * src/pic16/device.c (statistics structure): added statistics
4168         structure,
4169         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
4170         pic16_dump_int_registers): increase statistics counters for each
4171         * variable which is encountered
4172         * (pic16_dump_usection): emit each .udata variable to its own udata
4173         section,
4174         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
4175         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
4176         parameters via stack, otherwise use old scheme,
4177         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
4178         assembler output file,
4179         * src/pic16/main.c: added command line options --gstack to enable
4180         push/pop tracing for stack overflow,
4181         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
4182         instructions): added size of each instruction,
4183         * (pic16_countInstruction): estimate size of instructions in
4184         the_pFile list, inline assembly blocks are not counted,
4185         * (pic16_FixRegisterBanking): trace previous register usage, when
4186         banksel optimizations is greater than 0, don't emit a redudant
4187         banksel directive,
4188
4189 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
4190
4191         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
4192         * src/pic16/ralloc.c : applied same fix for pic16.
4193         * src/pic/gen.c : tidied it up a little.
4194
4195 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4196
4197         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
4198         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
4199
4200 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4201
4202         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
4203
4204 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4205
4206         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
4207         non-reentrant function __modsint in the interrupt function (thus
4208         corrupting math operations during serial I/O)
4209         * device/lib/ser_ir.c: as above, changed buffersize
4210         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
4211         256.c,d for zeroing
4212         * doc/Makefile: added option -t for rsync
4213
4214 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4215
4216         * src/SDCCast.h (struct ast),
4217         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
4218
4219 2004-10-20 Borut Razem <borut.razem AT siol.net>
4220
4221         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
4222         package
4223
4224 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
4225
4226         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
4227         makefile targets,
4228         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
4229         support functions to replace long sequences of MOVFF's from access
4230         bank registers to stack and vice versa,
4231         * src/pic16/device.h: added new field opt_flags, where optimization
4232         flags can be set to enable certain features,
4233         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
4234         * pBlock, (genFunction, genEndFunction): surroung loop for
4235         saving/loading used registers in stack with PC_INFO pCodes,
4236         INF_LREGS. Code in between can then be optimized by pCode optimizer
4237         to support function calls,
4238         * (genDataPointerSet): fixed bug which loaded float fields in
4239         structures with corrupt data,
4240         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
4241         in a standard way debug info on stderr. Feature used for developing
4242         and debugging only,
4243         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
4244         obsolete chunks of code,
4245         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
4246         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
4247         * pic16/src/pcode.c (pic16_newpCodeInfo,
4248         * (pic16_newpCodeOpLocalRegs),
4249         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
4250         feature,
4251         * (pic16_pCodeConstString): printing of the initial value of a
4252         symbol as a comment is inhibited since parsing was already done by
4253         copyStr and output is corrupt,
4254         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
4255
4256 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4257
4258         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
4259
4260 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4261
4262         * as/mcs51/lkarea.c: removed old K&R style,
4263           (lnksect): changed check on boundary error,
4264           (lnksect2): changed check on boundary error,
4265           (lnksect2): extend XSTK to end of page if size = 1
4266         * as/mcs51/lkmain.c: removed old K&R style,
4267           (Areas51): create l_IRAM symbol
4268         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
4269         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
4270           model-mcs51-stack-auto, added model-mcs51-xstack-auto
4271         * device/lib/_mullong.c: added version to be compiled with xstack
4272         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
4273         * device/lib/mcs51/crtxclear.asm: clear pdata as well
4274         * device/lib/mcs51/crtxstack.asm: fixed comment
4275         * src/SDCCglue.c: maxInterrupts defaults to 0,
4276           (emitMaps): added pdata,
4277           (createInterruptVect): (re)moved default,
4278           (glue): added pdata,
4279           (glue): moved __start__xstack to XSTK with default size 1
4280         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
4281           and options.float_rent when options.stackAuto is set,
4282           (linkEdit): only write XDATA_NAME if provided on command line
4283         * src/SDCCmem.h,
4284         * src/SDCCmem.c: added pdata
4285         * src/port.h: added pdata_name to PORT
4286         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
4287           (saveRegisters, unsaveRegisters): removed usage of B,
4288           (genMinus): fixed accumulator clash,
4289           (genJumpTab): added comment, this needs another look
4290         * src/mcs51/gen.c: added check for "B in use" paranoia,
4291           added pushB() and popB()
4292         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
4293           chance
4294         * src/avr/main.c,
4295         * src/ds390/main.c,
4296         * src/hc08/main.c,
4297         * src/mcs51/main.c,
4298         * src/pic/main.c,
4299         * src/pic16/main.c,
4300         * src/xa51/main.c,
4301         * src/z80/main.c: (reset_regparms) made void parameter explicit and
4302           added PSEG (PAG,XDATA) or NULL to port specifier
4303         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
4304         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
4305           (_mcs51_genInitStartup): removed __start__xstack equ,
4306           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
4307         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
4308         * src/z80/gen.c (_rleAppend): fixed warnings
4309         * support/regression/tests/zeropad.c: added pdata test
4310         * .version: bumped to 2.4.6
4311
4312 2004-10-17 Borut Razem <borut.razem AT siol.net>
4313
4314         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
4315         as a part of nightly build
4316
4317 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
4318
4319         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
4320         WREG holds the first byte function parameters,
4321         * (aopForSym): take special case for symbols which are in FARSPACE
4322         but in CODESPACE too,
4323         * (assignResultValue): modified to take into account _G.useWreg,
4324         * (genCall): don't use wreg for parameter passing when function is
4325         declared as reentrant, too, added optimization INCF to stack
4326         pointer when stack parameter count is 1,
4327         * (genFunction, genEndFunction): refurnished and fixed to not using
4328         wreg for passing parameters when function has varargs or is
4329         reentrant, fixed bug with symbol name compare for generating
4330         functions in absolute address,
4331         * (pic16_storeForReturn): refurnished,
4332         * (genCmp): began writing a new version of the function, not ready
4333         yet, therefore it is disabled,
4334         * (genAssign): do not read code memory when assigning a function to
4335         a pointer function,
4336         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
4337         array of characters, not pointer,
4338         * (pic16initialComments): in debug mode emit an .ident directive for
4339         the assembler,
4340         * (_process_pragma): emit a new warning type (internal to pic16)
4341         when setting stack to default length, emit a similar warning when
4342         placing a function at absolute address and address is not word aligned
4343         * (_pic16_parseOptions): added 'return TRUE' statement,
4344         * (_pic16_linkEdit): if compiling a source, then add the source's
4345         file object, first in the list of objects to link,
4346
4347 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
4348
4349         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
4350         * src/pic/main.c : removed VC warning.
4351         * src/pic/gen.c : changed comment.
4352
4353 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
4354
4355         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
4356         reference to a deprecated symbol _GPTRREG was causing failure to
4357         link. Thanks G. M. Gallant for the info.
4358
4359 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
4360
4361         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
4362         comments for Bugs item #954788.
4363
4364 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
4365
4366         * src/pic16/device.c (pic16_dump_gsection,
4367         * pic16_groupRegistersInSection): handle symbols declared to be in
4368         access bank differently,
4369         * src/pic16/gen.c (struct _G): added field resDirect,
4370         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
4371         send values read from stack directly to result and don't allocate
4372         temporary values,
4373         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
4374         same registers,
4375         * (pic16_sameRegsOfs): NEW,
4376         * (freeAsmop): if _G.resDirect is set then do not mark registers as
4377         free because they were not allocated from temporary pool,
4378         * pic16_popRegFromString): workaround to fix a problem with
4379         allocating variables twice or never,
4380         * (genGenPointerGet): using PRODL instead of FSR0H,
4381         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
4382         instead of FSR0H,
4383         * (genAssign): take advantage of the _G.resDirect flag,
4384         * (genCast): around line 11844, use mov2f instead of directly
4385         MOVFF'ing between operands to account for literal values,
4386         * src/pic16/genutils.c: some new debug functions for gpsim have been
4387         added,
4388         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
4389         float with integer part only,
4390         * src/pic16/main.c (_process_pragma): handle pragma udata access to
4391         place variables in access bank
4392         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
4393         updated sources to reflect recent changes in gen.c
4394
4395 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
4396
4397         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
4398         sources that searched for headers in installation path, now the
4399         device/include/pic16 is used,
4400         * src/pic16/glue.c (pic16glue),
4401         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
4402         .line directives if not in debug mode, this suppresses assembler's
4403         warnings for ignored directives
4404
4405 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4406
4407         * src/port.h: made reset_regparms prototype void parameter explicit.
4408         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
4409         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
4410         * doc/sdccman.lyx: documented warning disabling and how to use
4411           printf_large to make it print floats.
4412         * device/include/stdbool.h: NEW
4413         * device/lib/_atof.c,
4414         * device/lib/_divuint.c,
4415         * device/lib/_divulong.c,
4416         * device/lib/expf.c,
4417         * device/lib/printf_large.c,
4418         * device/lib/sincosf.c,
4419         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
4420         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
4421           a completely reentrant lib.
4422
4423 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
4424
4425         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
4426         * device/include/pic16/stdio.h: fixed bug with colon
4427
4428 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
4429
4430         * device/include/pic16/stdio.h,
4431         * device/include/pic16/stdlib.h,
4432         * device/include/pic16/math.h: NEW
4433         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
4434         declared as _naked to reduce overhead
4435         * device/lib/Makefile.in (target port-specific-objects-pic16):
4436         changed * to *.* so to ignore the CVS directory,
4437         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
4438         stacked variables back in stack,
4439         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
4440         corruption
4441
4442 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
4443
4444         * .version: bumped version number to 2.4.5
4445         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
4446         * support/Util/SDCCerr.c (messages structure): added entry for
4447         W_POSSBUG2
4448
4449         Large cumulative patch for pic16 port and libraries.
4450         * device/include/pic16/sdcc-lib.h,
4451         * device/include/pic16/stdarg.h,
4452         * device/include/asm/pic16/features.h,
4453         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
4454         * device/include/pic16/float.h: changes reentrant keyword with
4455         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
4456         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
4457         updated target build-libraries to include objects from gptr,
4458         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
4459         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
4460         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
4461         all function headings,
4462         * src/SDCCmain.c: added global parameter userIncDirsSet,
4463         * (parseCmdLine): when option -I is encountered add directory to
4464         userIncDirsSet too,
4465         * src/version.awk: added space between control and long,
4466         * src/pic16/NOTES: added some notes for the port,
4467         * src/pic16/gen.c: added prototype for mov2fp function,
4468         * (fReturnpic16[]): properly named return value registers,
4469         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
4470         * (aopForSym): added code to handle symbols with onStack flag set,
4471         symbols onStack are allocated PTRSIZE bytes,
4472         * (aopFreeAsmop): handles special case where asmops are stack objects,
4473         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
4474         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
4475         added argument lock to trace flaws in allocating temporary registers
4476         when developing port,
4477         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
4478         * (pic16_popRegFromString): reenabled allocating a direct register
4479         from string,
4480         * (assignResultValue): various beautifications,
4481         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
4482         referenced function argument,
4483         * (genIpush): reenabled to allow stacked arguments, handles only
4484         ic->parmPush iCodes,
4485         * (genCall, genPcall): major changes to allow for variable argument
4486         functions, fixed a bug with falsely restoring stack pointer after
4487         returning from call,
4488         * (genFunction): pending code for critical function,
4489         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
4490         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
4491         * (genNearPointerGet): fixed bug with indirect reading, was always
4492         reading from INDF0
4493         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
4494         pointers,
4495         * (genAddrOf): rewrote code to take address of a stacked function parameter
4496         * (genCast): fixed casting to generic pointer type,
4497         * src/pic16/gen.h: added AOP_STA,
4498         * (struct asmop): added field stk,
4499         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
4500         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
4501         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
4502         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
4503         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
4504         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
4505         generic pointers,
4506         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
4507         and library paths,
4508         * (pic16_port structure): generic pointer size is set to 3,
4509         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
4510         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
4511         compiler warning,
4512         * src/pic16/ralloc.c (allocReg): prevent allocating register when
4513         operand is an iTemp,
4514
4515 2004-09-24 Martin Helmling <mh AT octo-soft.de>
4516
4517         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
4518         * debugger/mcs51/simi.c: addapt new syntax of s51
4519
4520 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
4521
4522         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
4523         * src/pic16/pcode.c: commented out some calls to free() in order to
4524         fix bug #989576,
4525
4526 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4527
4528         * src/SDCCicode.h,
4529         * src/SDCCicode.c (isiCodeInFunctionCall),
4530         * src/avr/ralloc.c (selectSpil),
4531         * src/pic/ralloc.c (selectSpil),
4532         * src/pic16/ralloc.c (selectSpil),
4533         * src/ds390/ralloc.c (selectSpil),
4534         * src/hc08/ralloc.c (selectSpil),
4535         * src/xa51/ralloc.c (selectSpil),
4536         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
4537         stack in the middle of a function call sequence (fixes bug #1020268)
4538         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
4539         costs associated with the minimum switch case.
4540
4541 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4542
4543         * src/SDCC.lex: fixed bug #1030549
4544
4545 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4546
4547         * src/SDCCcse.h (struct cseDef),
4548         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
4549         over a function call if the CSE is derived from a symbol whose
4550         address has been taken (fixes bug #1029883)
4551         * support/regression/tests/bug-1029883: a new regression test for
4552         this bug
4553
4554 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4555
4556         * src/hc08/gen.c (emitinline): fixed bug #1029778
4557         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
4558         to a cast object is no longer a syntax error ("fixes" bug #1030006,
4559         and starts toward RFE #905167)
4560
4561 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
4562
4563         * src/pic16/gen.c (mov2f): New function to move an operand to
4564         another without considering if it is a literal or a register,
4565         * (pic16_sameRegs): don't check if they are both AOP_REG,
4566         * (AccRsh): removed andmask=0 lines,
4567         * (genLeftShift): duplicated to be improved in future versions,
4568         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
4569         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
4570         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
4571         * (pic16initMnemonics): added initialization for POC_INFSNZW,
4572         * (insertBankSwitch): fixed inserting banksel directives algorithm
4573         for instructions that follow a skip instruction, this fixes a report
4574         for broken subtraction code generation,
4575         * src/pic16/ralloc.c (deassignLRs): do not free register if current
4576         iCode is a left op, just in case result and right share the same
4577         registers
4578
4579 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4580
4581         * src/hc08/main.c,
4582         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
4583         preservation of HX
4584         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
4585         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
4586         on 2004-09-12; it was buggy
4587
4588 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4589
4590         * src/SDCCsymt.h: removed RESULT_CHECK
4591         * src/SDCCast.c,
4592         * src/SDCCglue.c,
4593         * src/SDCCval.c,
4594         * src/pic/glue.c,
4595         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
4596
4597 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
4598
4599         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
4600         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
4601         configuration values no more rejected by compiler, they are assigned
4602         to configuration registers with a warning message instead,
4603         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
4604         the for-loop so last conf register is emitted too,
4605         * (_pic16_initPaths): link library libsdcc.lib by default,
4606         * (_hasNativeMulFor): modified test for multiplication according to
4607         Raphael Neider's remarks. Integer multiplication is also done with
4608         support functions,
4609         * device/include/pic16/pic18fregs.h: corrected type error in while
4610         testing and including 18f6720 header file
4611
4612 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
4613
4614         * src/pic16/device.h (pic16_options): removed field use_crt,
4615         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
4616         until an optimization to handle single bits is added,
4617         * (pic16_loadFSR0): moved before genUnpackBits,
4618         * (genAnd): some white lines removed,
4619         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
4620         leave_reset flags in pic16_options when using crt modules,
4621
4622 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
4623
4624         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
4625           for bugs 898889 & 979599. Also used some safer print instructions.
4626
4627 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
4628
4629         * src/pic16/device.h (pic16_options_t): added field use_crt,
4630         crt_name, no_crt,
4631         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
4632         catch a probable future bug,
4633         * src/pic16/gen.c: aopIdx function commented out,
4634         * (genAssign): commented out old code which used aopIdx,
4635         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
4636         code, added if conditionals to take into account the --use-crt
4637         command line options,
4638         * src/pic16/main.c (pic16_optionsTable): added new command line
4639         options, --use-crt= and --no-crt,
4640         * (_pic16_linkEdit): now the proper crt object is added in the
4641         linker command line except than when --no-crt is specified,
4642         * src/pic16/pcode.c,
4643         * src/pic16/pcode.h: added some structures and functions for a new
4644         optimization scheme to compansate for instruction overhead between
4645         same iCodes, this scheme is currently under development and is not
4646         working in any way,
4647         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
4648         to && operator,
4649         * device/lib/pic16/startup/crt0i.c,
4650         * device/lib/pic16/startup/crt0iz.c: added global char variable
4651         __uflags to force the generation of an idata section
4652
4653 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
4654
4655         * doc/Makefile,
4656         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
4657         * doc/sdccman.lyx: updated sdcc version to 2.4.4
4658
4659 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4660
4661         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
4662         Frieder) and clarified the default code optimization mode
4663
4664 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4665
4666         * src/SDCC.lex (doPragma, process_pragma),
4667         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
4668         "opt_code_size", and "opt_code_balanced"
4669         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
4670         regrouped options by category, added support for category headers
4671         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
4672         and "--opt-code-size"
4673         * doc/sdccman.lyx: documented these new options and pragmas
4674         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
4675         preference into account
4676
4677 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4678
4679         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
4680           geniCodePreDec): Fixed bug 904237 by generating a warning
4681         * src/SDCCerr.h,
4682         * src/SDCCerr.c: added warning W_SIZEOF_VOID
4683
4684 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
4685
4686         * src/pic/device.c : When no max ram set validate full memory range.
4687         * src/pic/pcode.c,
4688         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
4689
4690 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4691
4692         * device/lib/_gptrget.c,
4693         * device/lib/_gptrput.c: updated comment
4694         * device/lib/calloc.c,
4695         * device/lib/free.c,
4696         * device/lib/malloc.c,
4697         * device/lib/realloc.c: added LGPL, made them reentrant-safe
4698         * src/SDCCcse.c (cseBBlock),
4699         * src/SDCCicode.c (printOperand, geniCodeArray),
4700         * src/SDCCicode.h (struct operand): fixed bug 868103
4701         * support/regression/tests/bug-868103.c: added
4702         * src/SDCCast.c (searchLitOp),
4703         * src/SDCCcse.h (struct cseDef),
4704         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
4705         * src/SDCCicode.h (struct operand),
4706         * src/SDCCsymt.h (struct sym_link),
4707         * src/avr/gen.c (hasInc),
4708         * src/ds390/gen.c (hasInc),
4709         * src/hc08/gen.c (genPlusIncr, hasInc),
4710         * src/mcs51/gen.c (hasInc),
4711         * src/pic16/glue.c (pic16_printIvalChar),
4712         * src/pic16/ralloc.c (regWithIdx),
4713         * src/xa51/gen.c (hasInc) : removed warnings
4714         * src/SDCCast.c (createBlock): added comment ???
4715         * src/hc08/ralloc.c: updated comments
4716
4717 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4718
4719         * doc/sdccman.lyx: updated section on switch statements, added
4720         section about semaphore locking
4721         * doc/Makefile: added option -info for latex2html
4722         * device/lib/_gptrget.c,
4723         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
4724
4725 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4726
4727         * src/pic/device.h,
4728         * src/pic/device.c,
4729         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
4730          maxram is less than 0x100.
4731
4732 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4733
4734         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
4735
4736 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4737
4738         * src/port.h,
4739         * src/mcs51/main.c,
4740         * src/ds390/main.c,
4741         * src/z80/main.c,
4742         * src/hc08/main.c,
4743         * src/pic/main.c,
4744         * src/pic16/main.c,
4745         * src/avr/main.c,
4746         * src/xa51/main.c
4747         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
4748         a jump table is the best form for a switch statement, including
4749         automatic insertion of missing cases to make the case range
4750         continuous. Developed in collaboration with Frieder Ferlemann.
4751
4752 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4753
4754         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
4755         accumulator result if it needs sign extension
4756
4757 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4758
4759         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
4760
4761 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4762
4763         * device/lib/gbz80/printf.c,
4764         * device/lib/z80/printf.c: removed define for NULL
4765
4766 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4767
4768         * as/xa51/xa_link.c,
4769         * device/examples/ds390/ow390/ad26.c,
4770         * device/examples/ds390/ow390/cnt1d.c,
4771         * device/examples/ds390/ow390/counter.c,
4772         * device/examples/ds390/ow390/ds2480.h,
4773         * device/examples/ds390/ow390/ds2480ut.c,
4774         * device/examples/ds390/ow390/findtype.c,
4775         * device/examples/ds390/ow390/gethumd.c,
4776         * device/examples/ds390/ow390/owllu.c,
4777         * device/examples/ds390/ow390/ownetu.c,
4778         * device/examples/ds390/ow390/swt12.c,
4779         * device/examples/ds390/ow390/swtloop.c,
4780         * device/examples/ds390/ow390/temp.c,
4781         * device/examples/ds390/ow390/temp10.c,
4782         * device/examples/ds390/ow390/thermo21.c,
4783         * device/examples/ds390/ow390/tinilnk.c,
4784         * device/examples/ds390/ow390/tstfind.c,
4785         * device/examples/serialcomm/windows/serial.cpp,
4786         * device/examples/serialcomm/windows/test_serialcomm.cpp,
4787         * device/include/reg51.h: fixed line endings for cvs
4788
4789 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4790
4791         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
4792         packRegsForAccUse, packRegisters): new accumulator register
4793         packing algorithm
4794         * support/regression/ports/hc08/support.c (_putchar): suppress
4795         warning of unused variable
4796         * src/SDCCicode.c: added SWAP entry to codeTable
4797
4798 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
4799
4800         * device/lib/sprintf.c: forgot to add this file before previous commit
4801
4802 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
4803
4804         * src/pic16/gen.c (genPackBits): added operand right in function
4805         parameters, load result directly if p_type is POINTER (that is
4806         called by genNearPointerSet)
4807         * (genUnPackBits): added operand left in function parameters,
4808         * (genNearPointerGet, genNearPointerSet): prevent the loading of
4809         FSR0 if accessing bitfields,
4810
4811 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
4812
4813         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
4814           _print_format; updated printf, sprintf, vsprintf
4815         * device/include/asm/default/features.h: corrected comment/define
4816         * device/lib/Makefile.in: added sprintf.c
4817         * device/lib/libsdcc.lib: added sprintf module
4818         * device/lib/printf_large.c,
4819         * device/lib/vprintf.c,
4820         * device/lib/sprintf.c: totally refactored printf_large and vprintf
4821           into these 3 files
4822         * support/regression/Makefile: changed ALL_PORTS into a usefull default
4823         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
4824         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
4825           hc08 test
4826         * support/regression/tests/zeropad.c: define idata as data for hc08
4827
4828 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4829
4830         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
4831         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
4832         labels are referenced at least once (even if a reference is not found)
4833         * src/hc08/gen.c (emitcode): set isComment flag for comments
4834         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
4835         loads), rules 6a..6b (optimize jumps to return)
4836
4837 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4838
4839         * device/lib/acosf.c (acosf),
4840         * device/lib/asinf.c (asinf),
4841         * device/lib/atanf.c (atanf),
4842         * device/lib/ceilf.c (ceilf),
4843         * device/lib/cosf.c (cosf),
4844         * device/lib/coshf.c (coshf),
4845         * device/lib/cotf.c (cotf),
4846         * device/lib/fabsf.c (fabsf),
4847         * device/lib/floorf.c (floorf),
4848         * device/lib/log10f.c (log10f),
4849         * device/lib/logf.c (logf),
4850         * device/lib/sinf.c (sinf),
4851         * device/lib/sinhf.c (sinhf),
4852         * device/lib/sqrtf.c (sqrtf),
4853         * device/lib/tanf.c (tanf),
4854         * device/lib/tanhf.c (tanhf),
4855         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
4856         replaced all instances of "reentrant" in the library functions
4857         defined in math.h with this macro.
4858         * support/regression/tests/float_trans.c: reenabled test for hc08
4859
4860 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4861
4862         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
4863         erroneously deleted
4864
4865 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4866
4867         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
4868         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
4869         multi-byte volatile operands are used
4870         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
4871         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
4872         initialization to area GSINIT0 so that it would always precede
4873         any static initializers in GSINIT
4874         * support/regression/tests/zeropad.c: fixed idata define for hc08
4875         * support/regression/tests/bug-927659.c,
4876         * support/regression/tests/float_trans.c: disabled tests for hc08
4877         pending missing library routines
4878         * .version: increased version number to 2.4.4 - hc08 port now passes
4879         regression tests
4880
4881
4882 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
4883
4884         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
4885         * Makefile.common.in,
4886         * as/Makefile,
4887         * as/hc08/Makefile.in,
4888         * as/mcs51/Makefile.in,
4889         * as/z80/Makefile.in,
4890         * debugger/mcs51/Makefile.in,
4891         * device/include/Makefile.in,
4892         * device/lib/Makefile.in,
4893         * doc/Makefile,
4894         * link/Makefile,
4895         * link/z80/Makefile.in,
4896         * packihx/Makefile.in,
4897         * sim/ucsim/main_in.mk,
4898         * sim/ucsim/avr.src/Makefile.in,
4899         * sim/ucsim/doc/Makefile.in,
4900         * sim/ucsim/gui.src/serio.src/Makefile.in,
4901         * sim/ucsim/hc08.src/Makefile.in,
4902         * sim/ucsim/s51.src/Makefile.in,
4903         * sim/ucsim/xa.src/Makefile.in,
4904         * sim/ucsim/z80.src/Makefile.in,
4905         * src/Makefile.in,
4906         * support/cpp2/Makefile.in,
4907         * support/librarian/Makefile,
4908         * support/makebin/Makefile: added DESTDIR to the install path proposed
4909         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
4910         * doc/sdccman.lyx: added DESTDIR documentation
4911
4912 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
4913
4914         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
4915         instruction for interrupt handlers, use fast returns when returning
4916         from high priority interrupts
4917
4918 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4919
4920         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
4921         code generation
4922         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
4923         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
4924         bugs, ported much of Bernhard's code from mcs51
4925         * src/mcs51/gen.c (genSend),
4926         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
4927         than one when calling a reentrant function
4928         * device/lib/_mullong.c: defined an alternate struct layout for big
4929         endian ports (hc08)
4930
4931 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4932
4933         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
4934         test
4935
4936 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4937
4938         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
4939         are sane and complete before asking the port its prefered parameter
4940         passing method (fixes bug #1017633)
4941         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
4942         and _ret3
4943
4944 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4945
4946         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
4947         problem in bitfields >= 8 bits.
4948
4949 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4950
4951         * src/SDCCsymt.c: undid changes that were not meant to be committed
4952
4953 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4954
4955         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
4956
4957 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4958
4959         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
4960           copied and wrong bit got inverted
4961
4962 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4963
4964         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
4965         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
4966         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
4967         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
4968         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
4969         assignments to bitfields at known addresses
4970         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
4971         reads from bitfields at known addresses
4972         * src/hc08/ralloc.c (packRegisters),
4973         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
4974         genhc08Code): optimize pointer get values used as conditionals
4975         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
4976         and branch
4977
4978 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4979
4980         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
4981         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
4982         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
4983         as conditionals
4984
4985 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4986
4987         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
4988
4989 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4990
4991         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
4992         related problems
4993
4994 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
4995
4996         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
4997
4998 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4999
5000         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
5001         mcs51 port
5002
5003 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5004
5005         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
5006
5007 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5008
5009         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
5010         cases use more compact code.
5011
5012 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
5013
5014         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
5015
5016 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5017
5018         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
5019
5020 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5021
5022         * src/SDCCsymt.h,
5023         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
5024         parameter of changePointer() from symbol* to sym_link*
5025         * src/SDCCast.c (decorateType): call changePointer() for CAST op
5026         * src/SDCCsymt.c (compareType): void* type is castable to other
5027         pointers, but not necesarily an exact match.
5028         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
5029         is no longer blindly treated as an exact match.
5030         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
5031
5032 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
5033
5034         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
5035
5036 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
5037
5038         * src/pic/gen.c,
5039         * src/pic/pcode.c,
5040         * src/pic/ralloc.h,
5041         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
5042
5043 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
5044
5045         * src/pic/device.c,
5046         * src/pic/device.h,
5047         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
5048
5049 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5050
5051         * src/mcs51/gen.c (emitcode): fixed bug #992819
5052
5053 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
5054
5055         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
5056           there's no need to make it worse
5057
5058 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5059
5060         * src/mcs51/ralloc.c (deassignLR),
5061         * src/ds390/ralloc.c (deassignLR),
5062         * src/hc08/ralloc.c (deassignLR),
5063         * src/z80/ralloc.c (deassignLR),
5064         * src/pic/ralloc.c (deassignLR),
5065         * src/pic16/ralloc.c (deassignLR),
5066         * src/avr/ralloc.c (deassignLR),
5067         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
5068         rlivePoint): fixed another part of bug #971834
5069
5070 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5071
5072         * src/z80/main.c: enabled "critical" keyword
5073         * src/z80/mappings.i,
5074         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
5075         functions (fixes bug #979646)
5076         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
5077
5078 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5079
5080         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
5081           such as c:\mydir.
5082
5083 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
5084
5085         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
5086           doesn't disable too much optimizations
5087
5088 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5089
5090         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
5091
5092 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
5093
5094         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
5095
5096 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5097
5098         * src/pic/gen.c tidied up tabs
5099         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
5100         * src/pic/main.c tidied up tabs
5101         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
5102         * src/pic/pcoderegs.c tidied up tabs
5103         * src/pic/ralloc.c tidied up tabs
5104
5105 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
5106
5107         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
5108         to S_FIXED for pic16 port and when symbol is not in level 0,
5109         allocate for S_REGISTER storage class and pic16 port, too,
5110         * src/pic16/device.h: prototype for checkSym,
5111         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
5112         * (pic16_assignConfigWordValue): test the value and the mask to
5113         validate that the value is suitable for the configuration word,
5114         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
5115         collect extern declared symbols, don't emit symbol twice, check
5116         first if symbol is in publics set first,
5117         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
5118         * added command line '--fstack' which enables an experimental
5119         feature for stack access, too buggy to be used yet...
5120         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
5121         * (pic16_allocDirReg): when register has storage class S_REGISTER
5122         allocate in pic16_dynAccessRegs,
5123         * device/include/pic16/pic18f????.h: modified configuration word
5124         naming convention, words started as CONFIG0H but should be CONFIG1H
5125
5126 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5127
5128         * device/include/mcs51reg.h: fixed bug 970993
5129
5130 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
5131
5132         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
5133         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
5134         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
5135         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
5136         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
5137         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
5138           error/warning numbers,
5139           added function setWarningDisabled()
5140         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
5141         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
5142           _memcmp.c _memmove.c calloc.c realloc.c free.c
5143         * support/regression/tests/malloc.c: added tests for new functionality
5144         * support/regression/tests/zeropad.c: added tests for truncated initializers
5145           and initialized char arrays starting with '\x0'
5146         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
5147
5148 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
5149
5150         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
5151
5152 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5153
5154         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
5155         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
5156         peephole 177.e. Thanks to anonymous
5157
5158 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
5159
5160         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
5161         function isn't used in the source but referenced as a
5162         variable initializer then declare it as extern in .asm file
5163
5164 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
5165
5166         * .version: increased version number to 2.4.3
5167
5168         Adding version extension according to ChangeLog CVS revision
5169         * src/Makefile.in (target all): added dependency 'version.h'
5170         * (rule version.h): added rule to create version.h from ChangeLog,
5171         * (rule dep): added dependency version.h,
5172         * src/version.awk: AWK script to create version.h
5173         * src/SDCCdwarf2.c (dwWriteModule),
5174         * src/SDCCglue.c (initialComments),
5175         * src/SDCCmain.c (printVersionInfo): modified to write after
5176         version string the version extension number,
5177         * src/SDCCutil.c: included "version.h"
5178         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
5179         number,
5180         * src/SDCCutil.h: added prototype for getBuildNumber
5181
5182         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
5183         includeDirsSet, too,
5184         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
5185         const char [] is found in function prototype...
5186
5187         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
5188         moving to WREG with source is already in WREG,
5189         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
5190         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
5191         * (aopForSym): stack'ed symbols are partially supported, added
5192         if-clause to support symbols in FARSPACE,
5193         * (sameRegs): added test for AOP_ACC to see if registers are same,
5194         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
5195         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
5196         * (pic16_popRegFromString): will not allocate a new register if it
5197         doesn't find one by name, bug may have introduced...
5198         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
5199         * (genIpush): revived to use pic16 port's stack,
5200         * (genAddrOf): added incomplete case for stack'ed operand,
5201         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
5202         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
5203         can handle multibyte operands,
5204         * src/pic16/glue.c (pic16_printIval*): some debug info added,
5205         * (pic16initialComments): added message for MPLAB compatibility
5206         mode enabled,
5207         * src/pic16/main.h: prototype for pic16_mplab_comp,
5208         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
5209         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
5210         * (_pic16_linkEdit): NEW, handles link stage, transferred here
5211         because of increased complexity of procedure,
5212         * (_process_pragma): stack pragma changed to format 'stack pos len',
5213         emit symbol '_stack_end' to conform with gplink,
5214         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
5215         to search for register,
5216         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
5217         PO_GPR_REGISTER,
5218         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
5219         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
5220         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5221         case for PO_GPR_REGISTER,
5222         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
5223         dies, the new era is ahead !...
5224         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
5225         pic16_dynInternalRegs,
5226         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
5227         * (pic16_allocDirReg): minor optimizations and bug fixes,
5228         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
5229
5230         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
5231         load stack and frame pointer with address of 'stack_end' symbol
5232
5233 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
5234
5235         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
5236         without source code but only variable initializers
5237
5238 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
5239
5240         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
5241         external are not declared as extern to reduce overhead while linking
5242
5243 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
5244
5245         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
5246
5247 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
5248
5249         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
5250           Yee Keat for the patch
5251         * src/SDCCast.c (decorateType): fixed bug #979599
5252         * src/ds390/gen.h: removed local fReturnSizeDS390
5253         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
5254         * src/ds390/gen.c (genAnd, genOr, genXor),
5255         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
5256
5257 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
5258
5259         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
5260         add relFilesSet to $3, manipulate $2 to handle linking of object
5261         files without source files in command line,
5262         * device/include/pic16 (all headers): added ID location macros,
5263         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
5264         entries for ID location bytes,
5265         * (pic16_assignIdByteValue): NEW,
5266         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
5267         added field dumpcalltree to pic16_options_t,
5268         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
5269         is used instead of pic16_Gstack_base_addr, check if (ifx) before
5270         emitting rFalseIfx label after check_carry label,
5271         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
5272         pic16_emitDIRegs), NEW
5273         * (pic16glue): dump .calltree file when option --calltree found,
5274         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
5275         * (_pic16_genAssemblerPreamble): emit ID locations after
5276         configuration registers,
5277         * (pic16_linkCmd): modifications of the link command,
5278         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
5279         * (pic16_pCodeInitRegisters): don't init stack registers,
5280         * (pic16_findPrevInstruction): fixed bug,
5281         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
5282         bug with immediate registers,
5283         * (buildCallTree): traces stack push and pop,
5284         * (pct2): dump also stack usage for each function,
5285         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
5286         * (pic16_allocDirReg): various modifications,
5287         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
5288         fixed to 1,
5289
5290 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
5291
5292         * src/pic16/pcode.c: removed buggy double colon
5293
5294 2004-07-01 Borut Razem <borut.razem AT siol.net>
5295
5296         * support/scripts/sdcc.nsi: added include/pic16 to setup
5297
5298 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
5299
5300         * device/lib/Makefile.in: fixed bug in target objects-pic16,
5301         * device/lib/pic16/Makefile: prefixed with dash (-) command under
5302         target 'clean',
5303         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
5304         specific command line arguments. Also added sample lkr script
5305         for placing a variable at a specific memory bank.
5306         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
5307         at a specific memory bank,
5308         * (pic16_dump_isection): fixed bug which caused string literals to
5309         be omitted when dumping idata section,
5310         * (pic16_groupRegistersInSection): added code to handle registers
5311         in specific memory banks,
5312         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
5313         public, all references are renamed too,
5314         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
5315         AOP_DPTR2,
5316         * (pic16_storeForReturn): added case to handle when dest is WREG,
5317         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
5318         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
5319         pic16_rel_udata, check to see if that register is marked as being
5320         a member of a specific memory bank,
5321         * (pic16_printIvalCharPtr): added code to add string literals either
5322         to code or the idata sections,
5323         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
5324         also accept the 'udata' pragma,
5325         * src/pic16/main.h: new structure types sectName and sectSym
5326         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
5327         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
5328         * (pic16_findPrevInstruction): fixed, it returned nothing,
5329         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
5330         instruction combinations,
5331         * (pic16_FixRegisterBanking): heavily reorganised,
5332         * (pic16_AnalyzeBanking): if generating banksel directives is
5333         disabled, then don't call FixRegisterBanking at all,
5334         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
5335         completely removed,
5336         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
5337
5338 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5339
5340         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
5341         Phuah Yee Keat <yk.phuah AT nestac.com>
5342
5343 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5344
5345         * src/pic16/glue.c (pic16createInterruptVect): function now emits
5346         correctly the IVT even if it is relocated to some other location
5347
5348 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5349
5350         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
5351         * device/include/pic16/pic18f2220.h: NEW,
5352         * device/lib/pic16/libdev/pic18f2220.c: NEW,
5353         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
5354         * src/pic16/device.c (struct Pics16): added info for 18f2220,
5355         * src/pic16/device.h (struct pic16_options): added ivt_loc and
5356         nodefaultlibs, ivt_loc is the location of the interrupt vector
5357         table, and nodefaultlibs signs that default libraries should not be
5358         linked in link stage,
5359         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
5360         according to --ivt-loc argument,
5361         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
5362         when pragma stack is found,
5363
5364 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5365
5366         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
5367         256 (range check), 257 (do while), 258.a-f (bit banging
5368         f.e. on 3-wire SPI bus)
5369
5370 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5371
5372         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
5373         variables used exclusively within a loop
5374
5375 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
5376
5377         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
5378
5379 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5380
5381         * src/SDCClrange.c (computeClash): fixed bug #971834
5382
5383 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5384
5385         * src/mcs51/gen.c (genCmp): fixed bug #975903
5386         * src/hc08/gen.c (operandsEqu),
5387         * src/ds390/gen.c (operandsEqu),
5388         * src/z80/gen.c (operandsEqu),
5389         * src/pic/gen.c (operandsEqu),
5390         * src/pic16/gen.c (operandsEqu),
5391         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
5392         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
5393
5394 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5395
5396         * src/SDCCcse.c (cseBBlock): fixed bug #966963
5397
5398 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
5399
5400         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
5401         default case in switch statement,
5402         * glue.c (pic16_initPointer): expr is initialised via decoarteType
5403         to eliminate problem with initialisation of pointers, but problem
5404         still exists,
5405         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
5406         * (emitStaticSegment): removed various lines emitting debug info,
5407         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
5408         added processor registers for utilizing EEPROM,
5409         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
5410         configurable and set 8
5411
5412 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
5413
5414         * .version: increased version number to 2.4.2,
5415
5416         Cumulative patch for pic16 port
5417         * src/pic16/device.c: changed scheme to dump initial values for
5418         variables in idata segment, all print_idata* functions were removed,
5419         now the pic16_printIval* will be called,
5420         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
5421         * _pic16_printPointerType, pic16_printPointerType,
5422         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
5423         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
5424         NEW, similar to the respective functions in SDCCglue.c,
5425         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
5426         way, emitting hex bytes,
5427         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
5428
5429 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5430
5431         * src/avr/ralloc.c (serialRegAssign),
5432         * src/xa51/ralloc.c (serialRegAssign),
5433         * src/pic/ralloc.c (serialRegAssign),
5434         * src/pic16/ralloc.c (serialRegAssign),
5435         * src/hc08/ralloc.c (serialRegAssign),
5436         * src/z80/ralloc.c (serialRegAssign),
5437         * src/ds390/ralloc.c (serialRegAssign),
5438         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
5439
5440 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5441
5442         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
5443         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
5444
5445 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
5446
5447         Cumulative patch for pic16 port:
5448         * src/pic16/device.h (typedef PIC16_device) modified fields for
5449         defining microcontrollers,
5450         * src/pic16/device.c: added new info for all devices in Pics16 array,
5451         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
5452         to be optimised out by the pCode optimiser,
5453         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
5454         specially, bug reported by G.M. Gallant,
5455         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
5456         as force'd so that cannot be optimised out by pCode optimiser,
5457         * src/pic16/pcode.c,
5458         * src/pic16/pcodepeeph.c,
5459         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
5460         they are disabled by default, but can be enabled explicit with
5461         command argument --denable-peeps, for testing,
5462         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
5463         --pomit-ivt in COMPILE_FLAGS
5464
5465 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5466
5467         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
5468           compilation on MSVC
5469
5470 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5471
5472         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
5473
5474 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5475
5476         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
5477         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
5478
5479 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
5480
5481         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
5482         would only assign 0x300001 register.
5483
5484 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
5485
5486         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
5487         in COMPILE_FLAGS. Thanks to G. Gallant for report.
5488
5489 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5490
5491         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
5492         for ds80c400
5493         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
5494         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
5495         added peephole 254 (left shift), 255 (jump table)
5496
5497 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
5498
5499         * device/lib/Makefile.in: removed comment line with model-pic16,
5500         * (target port-specific-objects-pic16): the libraries and objects
5501         are copied to the build directory form the device/lib/pic16/bin
5502         directory
5503
5504         Cumulative patch concerning pic16 port:
5505         * library directory has been re-organized,
5506         * added support for PIC18F1220,
5507         * added headers and library sources for chips 18f1220,18f6520,
5508         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
5509
5510         * configuration registers setting has changed, now each supported
5511         device has a complete description of the registers it uses,
5512         * all initialisations are moved to idata sections, these section
5513         can be absolute or relocatable,
5514         * fixed initialisation of codespace variables,
5515         * fixed warning about PCLATU and gpsim,
5516         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
5517         * (genAssign): use table reads when assigning from variables in codespace,
5518         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
5519         char/int variables placed in codespace,
5520         * (pic16_emitConfigRegs): NEW, emits a list with configuration
5521         registers set in .asm file, no need for --pomit-config-words anymore,
5522         * (pic16glue): some 8051 legacy segments are commented out
5523         (to be removed completely),
5524         * added support for alternative assembler and linker with --asm=
5525         and --link= command line arguments,
5526         * peepholes are disabled automatically in the port, no need to
5527         specify on command line,
5528         * port supports natively char/int/long multiplication, but converts
5529         all divisions to support functions,
5530         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
5531         to the file set in variable $2,
5532         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
5533         strings in ASCII format and not in hex,
5534         * ralloc.c (serialRegAssign): added a triplet of conditional calls
5535         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
5536         allocate proper register if iCodes aren't temporary,
5537
5538 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5539
5540         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
5541
5542 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
5543
5544         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
5545         is commented out
5546
5547 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5548
5549         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
5550         computed address is reused
5551         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
5552         multi-byte bitfields
5553
5554 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5555
5556         * src/z80/gen.c: (genArrayInit): must check for pointers too
5557
5558 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5559
5560         * support/regression/tests/zeropad.c: never meant to commit the
5561           nestedstruct test: removed, added check for GCC version
5562
5563 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
5564
5565         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
5566         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
5567         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
5568           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
5569           bugs 928906 and 954082 half-empty initializers
5570         * src/SDCCsymt.h,
5571         * src/SDCCsymt.c (getAllocSize): added for above fix
5572         * src/z80/gen.c (genArrayInit): fixed bug 741044
5573         * support/regression/tests/zeropad.c: added tests
5574
5575 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
5576
5577         * src/pic16/device.c (pic16_dump_section): corrected bug which
5578         caused some symbols of the libraries to be misplaced
5579
5580 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5581
5582         * src/pic16/glue.c,
5583         * src/pic16/ralloc.h,
5584         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
5585         to fix conflict with pic port
5586
5587 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5588
5589         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
5590         externs configuration variables,
5591         * src/pic16/ralloc.h,
5592         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
5593         prototype in header, commented out some debug messages
5594
5595 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
5596
5597         * src/pic16/glue.c,
5598         * src/pic16/main.c,
5599         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
5600         for gpasm COFF object generation. Thanks to D. Hawkins for
5601         his patch info
5602
5603 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5604
5605         * src/ds390/main.c,
5606         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
5607         Brock for spotting this)
5608         * src/ds390/gen.c (genEndFunction),
5609         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
5610         interrupt handler and critical. Disable push/pop optimizations when
5611         peephole optimizations disabled.
5612
5613 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5614
5615         Updated pic16 library sources and headers.
5616         * device/lib/pic16/pic18f*/ ,
5617         * device/include/pic16/*.h: modified to handle structured SFR
5618         definitions
5619
5620 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5621
5622         * src/port.h (PORT structure): added hook initPaths, now each
5623         port can declare its own default search paths,
5624         which can been seen with the --print-search-dirs option,
5625         see pic16 port for example,
5626         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
5627         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
5628         * (doPrintSearchDirs): NEW, replaces in a central manner the
5629         printing of search dirs which was split in set*Paths functions,
5630         * (main): added call to port->initPaths and doPrintSearchDirs,
5631         * src/avr/main.c,
5632         * src/ds390/main.c,
5633         * src/hc08/main.c,
5634         * src/izt/i186.c,
5635         * src/izt/tlcs900h.c,
5636         * src/mcs51/main.c,
5637         * src/pic/main.c,
5638         * src/pic16/main.c: modified port structures to reflect addition of
5639         initPaths hook,
5640
5641         * src/pic16/device.c (regCompare): registers are finally sorted by name,
5642         * (pic16_dump_section): for registers in same address reserve memory once,
5643         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
5644         to no_banksel,
5645         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
5646         result is greater in size than right or left,
5647         * (pic16_genUMult8X8_8): there are some cases where the result can
5648         be 16 bits size, so handle these,
5649         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
5650         * (pic16_outBitC): modified to emit pcodes,
5651         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
5652         or not,
5653         * (genDivOneByte): implemented algorithm to divide 8-bits,
5654         * (genCmp): uncommented goto, but issues still exist,
5655         * (genAnd): fixed a bug with variables >8bits,
5656         * (genPackBits): optimization added that uses BCF/BSF to change a
5657         single bit,
5658         * (genAssign): fixed bug when assigning floating point literals,
5659         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
5660         __sdcc_gsinit_startup label,
5661         * src/pic16/main.c (_pic16_init): removed search directory
5662         initialisations,
5663         * (_pic16_initPaths): NEW, used to initialise search directories,
5664         * (_hasNativeMulFor): support functions for all except char/int
5665         multiplication, and char division,
5666         * (PIC16_port struct): modified entry for native mul support,
5667         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
5668         no_banksel option,
5669         * (buildCallTree): call to register_usage is ifdef'ed out,
5670
5671 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5672
5673         * device/include/string.h: applied Stas Sergeev's patch to make this
5674         header file compatible with the preprocessor -Wundef option
5675         * src/SDCCmain.c (main): abort compilation if preprocessor reports
5676         failure (fixes bug #941458)
5677
5678 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5679
5680         * src/SDCCopt.c (killDeadCode): fixed bug #907733
5681         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
5682         that the variable, not the function, should be static
5683         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
5684         to be consistent with non-literal case
5685
5686 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5687
5688         * src/SDCCast.c (isConformingBody): fixed bug #949967
5689         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
5690         convilong): fixed bug #952086
5691
5692 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5693
5694         * src/SDCCmem.c (allocVariables): fixed bug #955321
5695
5696 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5697
5698         * src/hc08/main.c (_hc08_genAssemblerEnd),
5699         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
5700         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
5701         completely eliminated the use of a temporary file
5702         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
5703         when more than one file linked
5704         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
5705
5706 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5707
5708         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
5709         which fixes bug #543481
5710         * support/regression/tests/bug-751703.c: fixed comments left from a
5711         cut and paste error
5712         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
5713         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
5714         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
5715         scopes
5716         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
5717         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
5718         are now changed to underscores in moduleName
5719
5720 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5721
5722         * as/mcs51/lkmem.c: better fix for bug #954173
5723
5724 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5725         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5726
5727         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
5728         * device/include/c8051f000.h,
5729         * device/include/c8051f120.h,
5730         * device/include/c8051f300.h,
5731         * device/include/c8051f310.h,
5732         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
5733         PWM16) and detab'ed
5734
5735 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5736
5737         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
5738         and mailing lists, doc'ed --no-peep-comments, removed reference
5739         to knoppix (newest version has no LyX/LaTeX), other minor changes
5740         * src/SDCCglue.c (glue): save 2 bytes stack space with
5741         option --main-return. The ljmp could probably be avoided too
5742
5743 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5744
5745         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
5746
5747 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5748
5749         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
5750         * src/SDCCopt.c (isLocalWithoutDef),
5751         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
5752         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
5753         (credit to Maarten Brock for patch #949363, on which this is based)
5754         * support/regression/tests/bug-751703.c: some test cases of extern used
5755         within inner scopes.
5756
5757 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5758
5759         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
5760         SPEC_STRUCT
5761         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
5762         struct definitions
5763         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
5764         dwWriteLabel): fix to create valid debugger symbols even when
5765         the module name has non-alphanumeric symbols in it
5766         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
5767         when a variable's allocation has been optimized away
5768
5769
5770 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5771
5772         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
5773         * src/hc08/main.c,
5774         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
5775         * src/mcs51/main.c,
5776         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
5777         * src/ds390/main.c,
5778         * src/z80/gen.c (z80_emitDebuggerSymbol),
5779         * src/z80/main.c,
5780         * src/pic/gen.c (pic14_emitDebuggerSymbol),
5781         * src/pic/main.c,
5782         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
5783         * src/pic16/main.c,
5784         * src/avr/gen.c (avr_emitDebuggerSymbol),
5785         * src/avr/main.c,
5786         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
5787         * src/xa51/main.c,
5788         * src/SDCCdebug.c (emitDebuggerSymbol),
5789         * src/SDCCdebug.h,
5790         * src/port.h: added a debugger struct to the port struct. Added a
5791         callback for defining debugger symbols
5792
5793         * src/SDCCast.c (createLabel),
5794         * src/SDCC.y (labeled_statement): mark all compiler generated labels
5795         with isitmp = 1
5796         * src/SDCCicode.h,
5797         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
5798         iCode back to the ast for the function
5799
5800         * src/hc08/ralloc.c (hc08_assignRegisters),
5801         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
5802         unneeded fields from the regs struct.
5803         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
5804         pushReg() & pullReg() functions instead of emitcode()
5805
5806         * src/hc08/gen.c (genLabel, genhc08Code),
5807         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
5808
5809         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
5810         debugger hooks
5811
5812         * src/hc08/gen.c (genEndFunction, genhc08Code),
5813         * src/hc08/gen.h,
5814         * src/mcs51/gen.c (genEndFunction, gen51Code),
5815         * src/mcs51/gen.h,
5816         * src/ds390/gen.c (genEndFunction, gen390Code),
5817         * src/ds390/gen.h,
5818         * src/z80/gen.c (genEndFunction, genZ80Code),
5819         * src/z80/gen.h,
5820         * src/z80/z80.h,
5821         * src/pic/gen.c (genEndFunction, genpic14Code),
5822         * src/pic/gen.h,
5823         * src/pic16/gen.c (genEndFunction, genpic16Code),
5824         * src/pic16/gen.h,
5825         * src/avr/gen.c (genEndFunction, genAVRCode),
5826         * src/avr/gen.h,
5827         * src/xa51/gen.c (genEndFunction, genXA51Code),
5828         * src/xa51/gen.h,
5829         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
5830         specific code to cdbFile.c and out of the backend code generators
5831
5832         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
5833         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
5834         starting address is now 0
5835
5836         * as/hc08/asm.h,
5837         * as/hc08/m08pst.c,
5838         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
5839         assembler directive for DWARF support
5840         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
5841
5842         * src/src.dsp,
5843         * src/Makefile.in,
5844         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
5845
5846 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5847
5848         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
5849         and inappropriate peephole optimization in jump tables
5850
5851 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5852
5853         * as/hc08/m08pst.c,
5854         * src/SDCCglue.c: sdccopt works for the hc08 port now
5855
5856 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
5857
5858         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
5859
5860 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5861
5862         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
5863
5864 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5865
5866         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
5867         rules
5868         * src/SDCCmain.c,
5869         * src/SDCCglobl.h,
5870         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
5871         comments from the peephole optimizer replacement rules
5872         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
5873         symbols
5874         * src/SDCCcse.c (updateSpillLocation),
5875         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
5876         equivalents
5877         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
5878         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
5879         objects far pointers
5880
5881 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5882
5883         * src/SDCCsymt.h: a missing part of my last change
5884         * src/pic/ralloc.c (regTypeNum),
5885         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
5886
5887 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5888
5889         * src/SDCCicode.h,
5890         * src/SDCCicode.c (aggrToPtrDclType),
5891         * src/SDCCptropt.h,
5892         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
5893         ptrPseudoSymConvert),
5894         * src/pic/ralloc.c (regTypeNum),
5895         * src/pic16/ralloc.c (regTypeNum),
5896         * src/hc08/ralloc.c (regTypeNum),
5897         * src/ds390/ralloc.c (regTypeNum),
5898         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
5899         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
5900
5901 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5902
5903         * link/z80/lkmain.c (afile),
5904         * as/hc08/lkmain.c (afile),
5905         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
5906         prevent a pointer problem when a filename has no directory and
5907         no extension specified.
5908
5909 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5910
5911         * link/z80/lkmain.c (afile): allow periods in directory names
5912         * link/z80/lkmain.c (afile),
5913         * as/mcs51/lkmain.c (afile),
5914         * as/hc08/lkmain.c (afile): allow linker script file to have an
5915         extension other than ".lnk"
5916         * link/z80/lklex.c (getfid),
5917         * link/z80/lkmain.c (parse),
5918         * as/mcs51/lklex.c (getfid),
5919         * as/mcs51/lkmain.c (parse),
5920         * as/hc08/lklex.c (getfid),
5921         * as/hc08/lkmain.c (parse): Support comments in the linker script
5922         file on lines by themselves and after filenames
5923
5924 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5925
5926         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
5927
5928 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5929
5930         * src/z80/peeph-z80.def: removed some peephole rules that don't
5931         work with multibyte arithmetic (fixed bug #937126)
5932         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
5933         to registers and not global variables
5934         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
5935         geniCodePreInc, geniCodePostDec, geniCodePreDec,
5936         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
5937         checking for assignments not internally generated (fixed bug #931895)
5938         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
5939         structure member (fixed bug #930072)
5940
5941 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5942
5943         * src/SDCCmain.c (linkEdit),
5944         * src/hc08/main.c (_hc08_parseOptions),
5945         * as/hc08/Makefile.in,
5946         * as/hc08/aslink.h,
5947         * as/hc08/asm.h,
5948         * as/hc08/m08pst.c,
5949         * as/hc08/lkrloc.c (relr, rele),
5950         * as/hc08/lkarea.c (lnkarea)
5951         * as/hc08/lkmain.c (afile, parse),
5952         * as/hc08/lkelf.c: support for ELF output
5953         * as/hc08/lks19.c (s19),
5954         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
5955
5956 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5957
5958         * as/mcs51/lkihx.c: Fixed bug #899105.
5959
5960 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5961
5962         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
5963         .dsp files from Unix to DOS.
5964
5965 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5966
5967         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
5968         function pointers; we have been compliant for several months now.
5969         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
5970         change that was accidently commented out
5971         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
5972         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
5973         bug #922319
5974
5975 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5976
5977         * src/hc08/gen.c: output of all of the internal debugging information
5978         is now controlled by the D() macro; it is disabled by default
5979
5980 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5981
5982         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
5983         harder to keep the same registers during a CAST iCode
5984         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
5985         long via int can be done in a single cast, if the signedness is
5986         correct.
5987         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
5988         putchar() in tinibios.c in ds390's library
5989
5990 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
5991
5992         * src/SDCCast.c (decorateType): fixed bug #898889,
5993         cast result of a literal complement too
5994         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
5995         fixed check for bitfields
5996
5997 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
5998
5999         * src/SDCCicode.c (geniCodeLogic): made it static,
6000         (geniCodeLogicAndOr): added in order to fix bug #905492,
6001         (ast2iCode): fixed bug #905492
6002         * support/regression/tests/bug-905492.c: added
6003         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
6004         (processParms): fixed bug #927659: don't copy parms, this will clear
6005         decorated flag
6006         * support/regression/tests/bug-927659.c: added
6007
6008 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
6009
6010         * src/SDCCast.c (addCast): don't cast float to char
6011         * device/lib/libsdcc.lib: added _memmove
6012
6013 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
6014
6015         * device/lib/large/Makefile: fixed parallel execution by
6016         replacing `make` by `$(MAKE)`
6017
6018 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6019
6020         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
6021         offsets (fixes bug #923936)
6022
6023 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
6024
6025         * device/lib/small/Makefile: fixed parallel execution by
6026         replacing `make` by `$(MAKE)`
6027
6028 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6029
6030         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
6031
6032 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
6033
6034         * src/pic/gen.c (genCpl): multi-byte complements were not working.
6035         * src/regression/Makefile: Regression test was not running.
6036
6037 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6038
6039         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
6040         complement if possible
6041         * src/SDCCval.c (valComplement),
6042         * src/SDCCicode.c (operandOperation): fixed complement of literal
6043         * support/regression/tests/onebyte.c (testComplement): added
6044
6045 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
6046
6047         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
6048         return an optimized tree; actually replace actParm with the new tree
6049         * src/SDCCast.h: added some parantheses to remove side effects
6050         * support/regression/tests/bug-920866.c
6051
6052 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
6053         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
6054         Bit operands were not being handled properly in the pic14 port.
6055         (now src/regression/add.c passes again).
6056
6057 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6058
6059         * src/SDCC.y (labeled_statement): case and default no longer require
6060         a following statement (RFE #893037)
6061
6062 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6063
6064         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
6065         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
6066         disabled (fixes bug #916294)
6067         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
6068         "mov a,acc"; patch provided by Lenny Story
6069         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
6070
6071 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6072
6073         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
6074         functions
6075         * src/ds390/gen.c (genFunction, genEndFunction),
6076         * src/ds390/ralloc.c (ds390_assignRegisters),
6077         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
6078         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
6079         pushed if there are parameters passed on the stack. Also, a cleaner
6080         way to decide if r0/r1 should be pushed/popped. (Together they fix
6081         bug #918693)
6082
6083 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6084
6085         * doc/sdccman.lyx,
6086         * device/lib/mcs51/crtpagesfr.asm,
6087         * device/lib/mcs51/crtxinit.asm,
6088         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
6089         to avoid confusion with Si Lab's SFRPAGE register.
6090
6091 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6092
6093         * src/SDCCglue.c (emitMaps): allow public sfr variables
6094         * src/SDCCglue.c (initialComments): include compiler build date
6095         with compiler version and put the timestamp of the generated
6096         assembly file on a serperate line to be less confusing.
6097         * src/port.h: added genInitStartup hook
6098         * src/avr/main.c,
6099         * src/ds390/main.c,
6100         * src/hc08/main.c,
6101         * src/pic/main.c,
6102         * src/pic16/main.c,
6103         * src/xa51/main.c,
6104         * src/z80/main.c: genInitStartup initialize as NULL (default to
6105         historical behaviour)
6106         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
6107         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
6108         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
6109         library instead of hard coding it into the compiler.
6110         * support/regression/ports/mcs51-stack-auto/spec.mk,
6111         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
6112         * device/lib/mcs51/Makefile,
6113         * device/lib/small/Makefile,
6114         * device/lib/large/Makefile,
6115         * device/lib/mcs51/crtpagesfr.asm,
6116         * device/lib/mcs51/crtstart.asm,
6117         * device/lib/mcs51/crtxclear.asm,
6118         * device/lib/mcs51/crtxinit.asm,
6119         * device/lib/mcs51/crtclear.asm,
6120         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
6121         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
6122         and into user configurable files.
6123         * device/lib/clean.mk: clean mcs51 directory too
6124         * support/regression/tests/longlit.c: added static to T1 declaration
6125         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
6126         accesses in the initialization code
6127
6128 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6129
6130         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
6131         OSCTRIMVAL as noted in bug #916008
6132
6133 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6134
6135         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
6136         in loops with multiple exits (reported as incorrect registers
6137         used by Martin Helmling in Sdcc-user list)
6138
6139 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6140
6141         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
6142         made ds390 register extensions look less like error messages
6143
6144 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6145
6146         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
6147         reported by Adam Wozniak in Sdcc-user list
6148
6149 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
6150
6151         * src/SDCCast.c (decorateType): fixed with bug and promotion in
6152         arithmetic optimizations, added debug output
6153
6154 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
6155
6156         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
6157         * sdcc.spec: updated and split sdcc into 3 rpms
6158         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
6159         needed for literals of LEFT_OP and '+'
6160         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
6161         introduced RESULT_TYPE_NOPROM
6162         (geniCodeMultiply): fixed logic for decision if mul is optimized to
6163         left shift
6164         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
6165         limited promotion to int only for '*'
6166         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
6167
6168 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
6169
6170         * src/pic16/gen.c (genSkip),
6171         (genc16bit2lit), (gencjneshort): commented out
6172         (is_LitOp): new helper function, checks operand type
6173         (genCmpEq): rewritten
6174
6175 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
6176
6177         * support/regression/tests/bug-908454.c: added
6178
6179 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
6180
6181         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
6182         * src/SDCCicode.c (usualBinaryConversions): op needs int type
6183         (geniCodeCast): cosmetic, don't preserve bit storage class
6184         (geniCodeLeftShift): added promotion
6185         (geniCodeLogic): fixed regression
6186         * src/SDCCsymt.c (computeTypeOr): accept bits too
6187         (compareType): 2nd part of fix for bug #908454, needed for bitfields
6188
6189 2004-03-07  Borut Razem <borut.razem AT siol.net>
6190
6191         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
6192
6193 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
6194
6195         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
6196         version of pic16_genPackRegisters which does not check if ic is a
6197         CAST operator,
6198         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
6199         function cause string1.c regression test fails
6200
6201 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
6202
6203         * sim/ucsim/configure.in,
6204         * sim/ucsim/configure,
6205         * sim/ucsim/doc/Makefile.in: use docdir
6206         * src/SDCC.y: fixed sbit atrributes
6207         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
6208         * src/SDCCast.c (decorateType): |^& need special promotion handling
6209         * src/SDCCast.h,
6210         * src/SDCCsymt.h: moved definition of RESULT_TYPE
6211         * src/SDCCsymt.h (computeType),
6212         * src/SDCCicode.c: computeType() needs op
6213         * src/SDCCsymt.c (checkTypeSanity),
6214         * doc/sddman.lyx: "plain" bitfields are unsigned
6215         * src/SDCCsymt.c (computeTypeOr): added
6216         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
6217         |^& ops
6218         * src/SDCCval.c (val*): computeType() needs op
6219         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
6220         * support/regression/tests/onebyte.c: added tests for |^&
6221
6222 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
6223
6224         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
6225         for writing icode into asm output.
6226
6227 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
6228
6229         * src/pic16/device.c: added some debug lines enabled
6230         with macro DEBUG_CHECK,
6231         * src/pic16/genarith.c: more debug in genPlus,
6232         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
6233         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
6234         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
6235         * (aopForSym): onStack symbols are re-placed in data memspace,
6236         and onStack flag is cleared,
6237         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
6238         copy temporary pcodeop,
6239         * (genPcall): added warning for not updating PCLATU,
6240         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
6241         always true for pic16 port,
6242         * (genMultOneWord): NEW, supports integer multiplication,
6243         * (genMult): modified to call genMultOneWord,
6244         * (ifxForOp): added warning when return NULL,
6245         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
6246         flag is set before call to operandFromSymbol for implicit
6247         added structures,
6248         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
6249         options.intlong_rent are set by default,
6250         * (_hasNativeMulFor): modified to allow port generation of integer
6251         multiplication,
6252         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
6253         set regtype to REG_SFR for all registers, restricting seting the
6254         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
6255
6256 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6257
6258         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
6259         more than 500 times in the regression tests
6260
6261 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6262
6263         * support/Util/SDCCerr.h,
6264         * support/Util/SDCCerr.c,
6265         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6266         enumerator_list),
6267         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
6268         for symbol conflicts.
6269         * support/valdiags/tests/enum.c,
6270         * support/valdiags/tests/tentdecl.c,
6271         * support/valdiags/tests/struct.c: expect possible error messages
6272         referring to original symbol definitions.
6273         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
6274         * src/SDCCsymt.h,
6275         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
6276
6277 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
6278
6279         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
6280
6281 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
6282
6283         * src/pic16/ralloc.c (newReg): fixed bug #908929
6284
6285 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6286
6287         * src/ds390/gen.c: added missing #include "main.h"
6288
6289 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
6290
6291         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
6292         checking if symbol is already in set,
6293         * src/pic16/device.h: prototype for checkAddSym,
6294         * src/pic16/gen.c: (_G): added entry interruptvector,
6295         * (assignResultValue): removed some commented out lines,
6296         * (genFunction): check for ISR via sym->type, absolute section for
6297         interrupt code is created via a new pBlock, the goto instruction is
6298         placed now correctly at the interrupt vector position, changed all
6299         references from ivec to _G.interruptvector,
6300         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
6301         is the interrupt is a high priority one, same for return from ISR,
6302         * src/pic16/glue.c: changed all calls of addSetHead for publics and
6303         externs to calls of checkAddSym,
6304         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
6305         pic16_pcode_verbose flag is set,
6306         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
6307         * src/pic16/pcoderegs.c: message about how many registers are saved
6308         will only be emitted if pic16_pcode_verbose flag is set,
6309
6310 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6311
6312         * src/ds390/ralloc.h,
6313         * src/ds390/ralloc.c (ds390_regWithIdx),
6314         * src/ds390/gen.c (emitcode),
6315         * src/ds390/main.h,
6316         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
6317         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6318         ds390operandCompare, getRegsRead, getRegsWritten,
6319         initializeAsmLineNode): customized instruction size calculation for
6320         ds390, started basis for some register optimizations
6321         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
6322         corresponding assembly output
6323         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
6324         missing push/pop of r0/r1. Optimized push/pops
6325
6326 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6327
6328         * src/mcs51/main.c (instructionSize): fixed ACALL size
6329         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
6330
6331 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
6332
6333         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
6334         the sorting of rlist with NULL elements
6335         * (print_idataType, print_idata): NEW to create idata sections
6336         * src/pic16/device.h: idataSymSet new variable
6337         * src/pic16/gen.c (genFunction): fixed some bugs in string
6338         comparing, improved the absolute section creation for ISRs,
6339         added FSR0L/FSR0H in registers that are saved in an ISR,
6340         * (genInline): fixed the processing of inline snippets,
6341         now they undergo no process by the peephole optimizer
6342         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
6343         are placed in idataSymSet,
6344         * (pic16emitStaticSeg): extern symbols are added in externs,
6345         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
6346         switching when aboslute variables are placed in access bank memory
6347         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
6348         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
6349         commented out with #if,
6350         * (pic16_packRegisters): reintroduce the check for CAST because some
6351         symbols are not correctly handled,
6352         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
6353         pCodeInstruction instead of pCode,
6354         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
6355         pCodeAsmDir definition,
6356         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
6357         directive, then the argument directive is emitted without the leading
6358         tab, hack for inline labels which must be in the first column,
6359         * (compareLabel,pic16_findNextInstruction),
6360         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
6361         * (insertBankSwitch): modified for the new pCodeAsmDir,
6362
6363 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6364         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
6365
6366         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
6367         instance,
6368         * (pushSide): commented out with #if,
6369         * (assignResultValue): fixed some typos in saving
6370         registers,
6371         * (genPcall): FIXED and sync'ed with genCall,
6372         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
6373         * (genNearPointerGet): fixed to handle some more cases,
6374         implementation scheme via table reads,
6375         * (genConstPointerGet): modified to access code memory correct,
6376         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
6377         and improved to handle some cases
6378         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
6379         instead of "RETLW" for init data
6380         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
6381         not IN_DIRSPACE, work around to reduce bank switching when aboslute
6382         variables are placed in access bank memory (<0x80 and >=0xf80),
6383         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
6384         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
6385         TBLWT_POSTDEC,TBLWT_PREINC
6386         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
6387         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
6388         directives
6389         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
6390         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
6391         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
6392         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
6393
6394 2004-02-29  Borut Razem <borut.razem AT siol.net>
6395
6396         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
6397         support/Util/findme.h, support/Util/system.h: enhance binary relative
6398         search for lib and include by using findProgramPath()
6399
6400 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6401
6402         * src/SDCCpeeph.h,
6403         * src/SDCCpeeph.c (pcDistance),
6404         * src/port.h,
6405         * src/mcs51/ralloc.h,
6406         * src/mcs51/ralloc.c (mcs51_regWithIdx),
6407         * src/mcs51/main.h,
6408         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
6409         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6410         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
6411         size calculation port specific, started basis for some register
6412         optimizations
6413         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
6414         missing push/pop of r0/r1. Optimized push/pops
6415         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
6416         * device/lib/_modsint.c (_modsint),
6417         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
6418         and stack version so regression tests pass
6419
6420 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
6421
6422         * src/Makefile.in (dep): include SLIBOBJS in dependency check
6423         * src/SDCCast.c (decorateType): catch another small optimization
6424         with '?' operator
6425         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
6426         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
6427         modified to finally use computeType() all over SDCC,
6428         see Feature Request #877103
6429         * src/SDCCval.h: cosmetic
6430         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
6431         valCompare(); regression tested in muldiv.c
6432         * support/regression/tests/muldiv.c (testMod): mod sign follows
6433         dividend only
6434
6435 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
6436
6437         * src/SDCCast.c (decorateType): fixed bug #902362
6438         * doc/INSTALL.txt: fixed install instructions for win32
6439
6440 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
6441
6442         * device/include/Makefile.in (install): fixed by replacing spaces
6443         by tabs
6444         * doc/README.txt,
6445         * doc/INSTALL.txt: updated for release
6446         * doc/sdccman.lyx: added warning for --xstack being buggy
6447
6448 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
6449
6450         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
6451         to eliminate build warnings.
6452         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
6453
6454 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
6455            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6456
6457         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
6458         removed -penable-stack, added comment for stack pragma, added
6459         warning for not initializing the stack/frame registers, removed
6460         comment at interrupts section
6461
6462         Stack is made permanent, there is no ability to disable stack usage.
6463         * src/pic16/device.h,
6464         * src/pic16/device.c: removed all references to USE_STACK macro,
6465         * src/pic16/device.c (pic16_dump_section): when no elements in
6466         rlist, free rlist before return,
6467         * (pic16_dump_int_registers): NEW, internal registers are a new set
6468         of general purpose registers reused by each function,
6469         * (checkAddReg): returns 1 if registers is added to set,
6470         * (pic16_groupRegistersInSection): when a registers is of type
6471         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
6472         * src/pic16/device.h: memRange and Assigned Memory are deleted,
6473         SRCASECMP macro is moved here from device.c
6474         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
6475         PO_PCLATU, PO_PRODL, PO_PRODH,
6476         * (pic16_pCodeOpType, genMinus,
6477         changed compares to "a" register, with AOP_ACC,
6478         * (pic16_genPlus): fixed some bugs and indented properly,
6479         * (pic16_addSign): changed size to size+offset in the MOVWF
6480         instruction,
6481         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
6482         multiply 8-bit operand by literal, result is 8-bit,
6483         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
6484         multiply 2 8-bit operand, result is 8-bit,
6485         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
6486         genUMult8X*_16,
6487         * src/pic16/gen.c: changed accUse to contain WREG only,
6488         * (pic16_emitcomment): renamed to pic16_emitpcomment,
6489         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
6490         true, do not use immediate addressing any more unless sym is a
6491         pointer in codespace,
6492         * (aopForRemat): do not use immediate addressing when symbol not in
6493         codespace and when symbol's address is requested,
6494         * (aopOp): for-loop in if(sym->accUse) is modified for the new
6495         accUse size (= 1),
6496         * (aopGet): added case for AOP_ACC and don't return "accumulator
6497         bug" but WREG instead,
6498         * (popGetTempReg): pushes contents of temporary register in stack,
6499         * (popReleaseTempReg): pops contents of temporary register from
6500         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
6501         * (pic16_popGet): separated case AOP_ACC to return register WREG
6502         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
6503         or PO_IMMEDIATE and initializes their instance/offset appropriately,
6504         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
6505         the use of immediate pointers to certain cases only.
6506
6507         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
6508         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
6509         * (assignResultValue, genCall, genRet): modified to use the new
6510         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
6511         genPcall is still broken,
6512         * (genFunction): added code to create 'A' type pBlocks when
6513         interrupt functions are generated, code not extensively tested yet,
6514         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
6515         * (genEndFunction): modified so ISRs pop stored registers from stack,
6516         * (genMultOneByte): cleanup,
6517         * (AccRsh): added flag andmask, to and result with appropriate mask,
6518         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
6519         * (genDataPointerGet): fixed and reenabled its use,
6520         * (genNearDataPointerGet): bugs fixed,
6521         * (genDataPointerSet): bugs fixed,
6522         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
6523         pic16_DumpSymbol, pic16_DumpOp,
6524         * src/pic16/genutils.h: function prototypes for the above functions,
6525         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
6526         pointers,
6527         * (pic16emitRegularMap): many many many improvements, but needs a
6528         major cleanup,
6529         * src/pic16/main.c: enable_stack in pic16_options is removed,
6530         * (_pic16_parseOptions): removed command line options -penable-stack,
6531         * (_process_pragma): emit stack symbol only when stack pragma is
6532         processed,
6533         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
6534         redirected to FSR0L/FSR0H pair,
6535         * (pic16_get_op, pic16_get_op2): modifications and improvements,
6536         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6537         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
6538         for immediates,
6539         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
6540         * (dumpPicOptype): NEW,
6541         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
6542         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
6543         with movff instruction,
6544         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
6545         added pic16_int_regs, some packRegsFor* functions are commented out,
6546         because produce errors,
6547         * src/pic16/NOTES: minor modifications
6548
6549 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6550
6551         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
6552         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
6553         --pack-iram.
6554         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
6555         * as/mcs51/lkaomf51.c: fixed bug #895763
6556
6557 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
6558
6559         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
6560
6561 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6562
6563         * doc/sdccman.lyx: added details about the HC08 storage classes and
6564         interrupts, fixed the register usage info for z80 & gbz80
6565
6566 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
6567
6568         * doc/sdccman.lyx: added more pic16 port documentation
6569         * device/include/pic16/: added header pic18fregs.h
6570
6571 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
6572
6573         * doc/sdccman.lyx: added Vangelis' contribution
6574
6575 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6576
6577         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
6578         extend to the next CALL or PCALL, not just to the next CALL.
6579
6580 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
6581
6582         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
6583
6584 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6585
6586         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
6587         bug #895752 and a better fix for bug #716790
6588
6589 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6590
6591         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
6592
6593 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6594
6595         * doc/sdccman.lyx: minor changes, minor changed
6596
6597 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
6598
6599         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
6600         which can't handle SDCC_NEWONEBYTEOPS,
6601         (geniCodeMultiply): removed conversion from mult to shift for pic14
6602         and pic16
6603
6604 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6605
6606         * src/hc08/gen.h,
6607         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
6608         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
6609         thus fixing bug #895406
6610
6611 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
6612
6613         * device/lib/_modsint.c,
6614         * device/lib/_modslong.c: sign follows divisor only
6615         * src/hc08/gen.c (genMultOneByte): if result size is 1,
6616         signs or signedness can be ignored
6617         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
6618         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
6619         added optimization for IFX,
6620         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
6621         arguments;
6622         reenabled optimization for IFX, which was removed on 2004-01-11
6623         * src/SDCCast.h: added return type IFX
6624         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
6625         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
6626         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
6627         SDCC_OLDONEBYTEOPS selects the old behaviour
6628         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
6629         changed again and commented promotion rule
6630         * src/SDCCval.c (valDiv): promotion no longer necessary
6631         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
6632         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
6633         rewritten
6634         * support/regression/tests/onebyte.c: added
6635
6636 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
6637
6638         * gen.c (genInline): reverted to old code for assemnling inline
6639         code because of bug reported James Chadd
6640
6641 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
6642
6643         * ralloc.h: missing declarations from previous patch,
6644         seems that patch for ralloc.h was never applied, fixed
6645
6646 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6647            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6648
6649         * pcode.c,
6650         * pcode.h,
6651         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
6652         indirect addressing. Marked FSR0 as deprecated
6653         * gen.c (pointerCode): commented out, not needed now
6654         (pic16_popGet2p): new MOVFF helper function
6655         (genGenPointerGet),
6656         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
6657         (shiftRLong): removed duplicate debugging info
6658
6659 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6660
6661         * src/ds390/gen.c (genNearPointerGet),
6662         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
6663         optimization with bits, but not bitfields.
6664         * src/ds390/ralloc.c (packRegisters),
6665         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
6666
6667 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
6668
6669         * src/SDCCcse.c (algebraicOpts): copy operands before modification
6670
6671 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6672
6673         * src/SDCCsymt.h,
6674         * src/SDCCicode.c (operandFromSymbol),
6675         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
6676         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
6677         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
6678         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
6679         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
6680         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
6681         bug #892038
6682         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
6683         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
6684         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
6685         * src/SDCCsymt.c (newSymbol),
6686         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6687         enumerator_list),
6688         * src/SDCCval.h,
6689         * src/SDCCval.c (newiList): fixed bug #885705
6690
6691 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6692
6693         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
6694         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
6695
6696 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6697
6698         * device/include/c8051f120.h,
6699         * device/include/c8051f300.h,
6700         * device/include/c8051f310.h: added/updated header files for Silicon
6701         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6702         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
6703         in new section Submitting patches
6704
6705 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6706
6707         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
6708         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6709         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6710         genGenPointerSet),
6711         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
6712         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6713         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6714         genGenPointerSet),
6715         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
6716         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6717         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6718         genGenPointerSet),
6719         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
6720         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6721         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6722         genGenPointerSet): fixed bug #892400
6723         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
6724         to eliminate build warnings.
6725         * src/SDCCast.c (processParms),
6726         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
6727         fixed bug 751859
6728         * support/valdiag/valdiag.py: added GCC to the list of defines active
6729         when compiling with gcc
6730
6731 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6732
6733         * support/Util/SDCCerr.h,
6734         * support/Util/SDCCerr.c,
6735         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
6736         with an incomplete type (fixed bug #883734)
6737         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
6738
6739 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6740
6741         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
6742
6743 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6744
6745         * src/SDCCast.c (decorateType),
6746         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
6747         function pointer implementation
6748         * support/regression/tests/funptrs.c: added tests to verify both forms
6749         of function pointers work correctly. Added tests to verify parameters
6750         are passed in the correct order.
6751
6752 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
6753
6754         * device.c (regCompare): registers are sorted by ascending
6755         address and increasing size,
6756         * main.c (_pic16_finaliseOptions): removed the declaration
6757         of compiler macro MCU. Now a macro of the format pic18fxxxx
6758         will be defined from the command line
6759
6760 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6761             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6762
6763         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
6764         PCOP_RLCF was overwritten!
6765         * gen.c (genSkip): commented out calls to pic16_emitcode,
6766         * (genCmpEQ): fixed "long" compares, only high word did get compared,
6767         * (genlshTwo),
6768         * (genRRC): added debugging info,
6769         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
6770         overwritten while shifting,
6771         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
6772         overwritten while shifting,
6773         * (AccLsh),
6774         * (AccRsh),
6775         * (shiftLLeftOrResult),
6776         * (shiftRLeftOrResult),
6777         * (shiftRLong),
6778         * (shiftLLong): Implemented with pic16_emitpcode
6779         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
6780         * (genLeftShift): Fixed bug, operand for shift by variable always
6781         was "and"ed with 0x0f,
6782         * (genLeftShiftLiteral),
6783         * (genrshTwo),
6784         * (genRightShiftLiteral): added debugging info,
6785         * (genrshFour): added comment,
6786         * (genRightShift): determined signedness from operand "left"
6787         instead of "result"
6788
6789 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6790
6791         * src/SDCCicode.c (geniCodeParms),
6792         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
6793         function pointers, fixed function pointer bugs #861242 and #861896
6794
6795 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6796
6797         * device/include/c8051f000.h,
6798         * device/include/c8051f120.h,
6799         * device/include/c8051f300.h: added header files for Silicon
6800         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6801
6802 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
6803
6804         * src/SDCCast.c (processParams): added new type flow and restructured
6805         (gatherAutoInit): added new type flow
6806         (addCast): cosmetic changes
6807         (getLeftResultType): added new type flow for array indices, patch
6808         provided by Stas, see FR #877103
6809         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
6810         array index patch by Stas
6811         * src/SDCCast.h: added prototype getResultTypeFromType()
6812         * src/SDCCval.h,
6813         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
6814         * src/pic/glue.c (pic14emitStaticSeg),
6815         * src/pic16/glue.c (pic16emitStaticSeg),
6816         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
6817         for initialization of symbols
6818         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
6819         * support/Util/SDCCerr.h:
6820         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
6821         * .version: bumped version number to 2.3.8
6822         * device/include/Makefile.in (install),
6823         * doc/Makefile (install): changed to 'rm `find ...`' construct to
6824         avoid warnings
6825
6826 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
6827
6828         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
6829         Slade Rich fixed an optimization bug
6830         * src/pic/pcodepeep.c,
6831         * src/pic/pcoderegs.c
6832         * doc/Makefile (install): added test for directory
6833
6834 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6835
6836         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
6837         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
6838         * src/pic/ralloc.c (getRegPtr, getRegGpr),
6839         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
6840         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
6841         * as/mcs51/asexpr.c (term),
6842         * as/hc08/asexpr.c (term): fixed bug #887146
6843
6844 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6845
6846         * src/z80/gen.c (genMult): handle single byte result product
6847         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
6848         DUMMY_READ_VOLATILE (fixed bug #886367)
6849
6850 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6851
6852         * support/regression/tests/libmullong.c: fixed logic, on little endian
6853         hosts we ended without a mullong_wrapper()
6854
6855 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6856
6857         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
6858         virus/worm forged address usage.
6859
6860 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6861
6862         Fixed promotion, it should be done on AST level:
6863         * src/SDCCast.c (addCast): added promotion to int
6864         (decorateType): updated call to upCast()
6865         * src/SDCCicode.c (geniCodeLeftShift): removed call to
6866         usualUnaryConversions()
6867
6868 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
6869
6870         * support/regression/tests/literalop.c (mulWrapper): Added a
6871         wrapper to remove integer overflow warnings.
6872
6873         * support/regression/tests/float_trans.c: Made work on host.
6874
6875         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
6876         location of sz80.
6877
6878         * support/regression/generate-cases.py (main): Changed from inline
6879         to a main method.
6880
6881         * doc/Makefile (install): Changed to depth first to get rid of
6882         missing directory install warning.
6883
6884         * as/Makefile (install-doc): Made work on Mac.
6885
6886 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
6887
6888         * src/SDCCast.c: added an additional type flow in decorateType() of
6889         opposite direction, see feature request #860006; it's enabled at runtime
6890         by setting the environment variable SDCC_NEWTYPEFLOW
6891         * src/SDCCast.h: changed prototype of decorateType()
6892         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
6893         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
6894         'char' to 'int' can be omitted, if both operands are 'unsigned char';
6895         see feature request #877103
6896         * src/SDCCval.c: updated call of decorateType()
6897         (valBitwise): fixed bug #882876
6898         (valMinus): added promotion
6899         (valLogicAndOr): result is unsigned
6900         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
6901         * src/SDCCsymt.c (computeType),
6902         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
6903         must not cause an unsigned operation
6904         * src/pic/glue (pic14emitRegularMap),
6905         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
6906
6907 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
6908
6909         * src/pic/pcode.c (PCodeID): commented out left over debug code
6910
6911 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6912
6913         * support/valdiag/tests/overflow.c: added shift tests
6914         * src/pic/device.c,
6915         * src/pic/gen.c,
6916         * src/pic/gen.h,
6917         * src/pic/glue.c,
6918         * src/pic/main.c,
6919         * src/pic/pcode.c,
6920         * src/pic/pcode.h,
6921         * src/pic/pcodepeep.c,
6922         * src/pic/pcoderegs.c,
6923         * src/pic/ralloc.c,
6924         * src/pic/ralloc.h: applied patch from Slade Rich;
6925         added support for multiple code pages and multiple RAM banks on the
6926         PIC 14 port. The ASM files now no longer simply assume all the
6927         code / RAM are in the same page / bank. This means the linker can
6928         safely allocate code/RAM of separate ASM files to different pages/banks.
6929         * doc/sdccman.lyx: added Slade's tips
6930         * src/mcs51/peeph.def: fixed bug #880768
6931
6932 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6933
6934         * src/hc08/ralloc.c (rematStr): fixed bug #879282
6935         * src/SDCCast.c (decorateType): fixed bug #880197
6936
6937 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
6938
6939         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
6940         getopt.h.
6941
6942         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
6943         strtof is not part of C89 and isn't included with Mac OS X.
6944
6945 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6946
6947         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
6948         shiftL2Left2Result): fixed bug #879326
6949         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
6950         (genMultOneByte): fixed bug in signed vs unsigned multiplication
6951         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
6952         address fetch for clr instruction
6953         * device/lib/hc08/_mulint.c: created optimized assembly version
6954         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
6955
6956 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
6957
6958         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
6959         proposed in FR #877103
6960
6961 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6962
6963         * src/SDCCval.c (cheapestVal): added missing checks
6964         * src/SDCCicode.c (usualBinaryConversions): fixed condition
6965         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
6966
6967 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
6968
6969         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
6970         equal operands
6971
6972 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
6973
6974         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
6975         loaded with the linker search paths (-L arguments) and the libraries
6976         to be linked with the current source (-l arguments). Changes
6977         currently will affect only the pic16 port.
6978         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
6979         include path the port specific paths and port specific libraries,
6980         * gplink command now contains the $3 argument,
6981         * src/pic16/device.h,
6982         * src/pic16/device.c,: structure PIC_device is made public and
6983         renamed to PIC16_device, the same for variable Pics which is renamed
6984         to Pics16. Updated all references to them.
6985         * src/pic16/glue.c (pic16glue): corrected bug with code
6986         initialization which bypassed the variable initializations block.
6987
6988         * device/lib/pic16/Makefile.rules: removed --penable-stack from
6989         COMPILE_FLAGS and added the --nostdinc option
6990
6991 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6992
6993         * device/include/mc68hc908jb8.h: Register defs for another member
6994         of the hc08 family. Contributed by Bjorn Bringert - thanks!
6995
6996 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
6997
6998         Documenting changes from previous commits.
6999         * configure.in (version 1.56),
7000         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
7001         when generating output files to configure the pic16 library,
7002         but now I've commented it out, since gputils aren't installed in the
7003         SF compile farm, so library won't compile
7004
7005         * device/lib/Makefile.in (version 1.56): initially I've added in
7006         target 'all' the prerequestive 'model-pic16' so it compiled the
7007         pic16 library, but now I've commented it out for the same reasons
7008         above,
7009         * added targets 'model-pic16' and 'objects-pic16' to compile the
7010         library
7011         * added target 'port-specific-objects-pic16' to handle the
7012         generated libraries and copy them into the build/ directory
7013         * added target 'clean-intermediate-pic16' to clean intermediate
7014         files into pic16 directory
7015         * in target 'installdirs' added line to create directory pic16 in
7016         the installation path
7017
7018         * device/include/Makefile.in (version 1.11): in target 'install'
7019         added lines to copy all header files to installation path,
7020         * in target 'installdirs' added line create directory for pic16
7021         headers in the installation path
7022
7023 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
7024
7025         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
7026          a function call
7027
7028 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
7029
7030         * configure,
7031         * device/lib/configure.in,
7032         * device/lib/configure: fixed for autoconf 2.57
7033
7034 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7035
7036         * src/z80/main.c (_parseOptions): fixed the portmode= command line
7037         option so that it actually works. Made it specific to the z80, since
7038         the gbz80 doesn't have these kinds of I/O ports.
7039
7040 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7041
7042         * device/include/z180.h,
7043         * device/lib/_memcpy.c,
7044         * device/lib/_memmove.c,
7045         * device/lib/_mulint.c,
7046         * device/lib/ser_ir.c,
7047         * device/lib/ser_ir_cts_rts.c,
7048         * device/lib/_strcmp.c,
7049         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
7050         * src/z80/main.c (_process_pragma): add support for pragmas bank and
7051         portmode; added deprecation warning for bank= and protmode= forms.
7052         Also, guard against buffer overflow.
7053         * src/z80/gen.c (aopGet): generate better code for sfr banked read
7054
7055 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7056
7057         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
7058         changed interrupt vector table generation to only emit declared vectors.
7059         * device/include/Makefile.in: added missing backslash
7060         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
7061
7062 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7063
7064         Mainly changes to support compilation of the device libraries
7065         * src/pic16/device.c: stack is allocated via symbol and not
7066         via literal number. The symbol is placed in the corresponding
7067         position of the data ram
7068         * (pic16_dump_section): relocatable and absolute uninitialized
7069         data are now emitted in sorted order to reduce section naming,
7070         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
7071         weren't marked as being in the access bank,
7072
7073 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7074
7075         Added portion of GNU PIC Library under the directory
7076         device/include/pic16 and device/lib/pic16. These files
7077         contain the declarations of SFRs for the PIC18Fxx2 devices.
7078         The directory is initialized via configure from toplevel.
7079
7080 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
7081
7082         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
7083         the spilllocations to be compared correctly
7084
7085 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7086
7087         * src/SDCCast.c (decorateType): fixed bug introduced today
7088
7089 2004-01-12  Borut Razem <borut.razem AT siol.net>
7090
7091         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
7092         doc/sdccman.lyx: upper case pragmas are deprecated
7093
7094 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7095
7096         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
7097         in simpler and even better code
7098
7099 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
7100
7101         * src/SDCCicode.c (operandOperation): fixed bug #874819
7102         * src/SDCCast.c (decorateType): fixed
7103         char foo (unsigned long ul) { return ul > 0; }
7104
7105 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7106
7107         * doc/sdccman.lyx: Moved and added some sections, small changes
7108         all over. Telling LaTeX to be less strict with word spacing
7109         to better keep the right margin. Changed some notes about
7110         maintainance of the ports in section 3.2.1 - is it OK like this?
7111
7112 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7113
7114         SDCC source changes:
7115         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
7116         convilong): modified to inform the pic16 port that builtin functions
7117         are external
7118
7119         PIC16 PORT specific changes:
7120         * src/pic16/device.c pic16_dump_equates() added,
7121         processor registers declared internally by the port are emitted in
7122         the translation as equates,
7123         * src/pic16/gen.c: inline code is passed unprocessed to the
7124         translation,
7125         * (pic16_popGetLit2): fnuction modified to take second operand as
7126         pCodeOp pointer and not as literal,
7127         * (popRegFromIdx): prefixed with pic16_,
7128         * (pic16_popCombine2): modified to receive already allocated pCode
7129         operands,
7130         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
7131         * (genFunction): initializes local stack frame and pushes on stack
7132         all the registers used by this function,
7133         * (genEndFunction): restores all registers from stack and restores
7134         stack frame,
7135         * src/pic16/glue.c (pic16emitRegularMap): various changes and
7136         improvements,
7137         * (pic16glue): changed the program startup sequence,
7138         * added new dbName code 'A' for functions placed in absolute section
7139         * src/pic16/main.c: added function attribute _naked,
7140         * added pragma 'code' to place a fnuction at an absolute address,
7141         * added command line arguments --debug-ralloc and --pcode-verbose,
7142         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
7143         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
7144         * (pic16_newpCodeOpLit2): modified to take the second operand as
7145         pCodeOp pointer,
7146         * (pic16_printpBlock): modified to emit each function in a separate
7147         section,
7148         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
7149         UPPER for immediate operands,
7150         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
7151         instruction,
7152         * src/pic16/peeph.def: all peepholes with movff are commented out,
7153         because there is a problem in the pcode peep optimizer,
7154         * src/pic16/ralloc.c: the register allocator can now reuse local
7155         function symbols for another function. This saves register usage.
7156         * src/pic16/ralloc.h: added flag isLocal in structure regs,
7157
7158         Added file src/pic16/NOTES with information about program writing on
7159         the current port version.
7160
7161 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7162
7163         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
7164         and peephole 252 (array access)
7165
7166 2004-01-09  Borut Razem <borut.razem AT siol.net>
7167
7168         * src/SDCCmain.c : fixed #872250: -l command line defined library
7169           files are scanned before standard library files
7170
7171 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7172
7173         * src/SDCCast.c (decorateType): fixed bug #874046
7174
7175 2004-01-09  Borut Razem <borut.razem AT siol.net>
7176
7177         * support/scripts/sdcc.nsi: remove previous installation
7178
7179 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7180
7181         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
7182         bytes for last interrupt vector (mcs51)
7183         * sdcc.spec: fixed typo
7184
7185 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7186
7187         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
7188         gen51Code): more efficient parameter receive for --model-large
7189         ("bug" #845294)
7190
7191 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7192
7193         * src/ds390/main.c,
7194         * src/z80/main.c: added missed needLinkerScript flags (more than
7195         one port structure defined in these file)
7196         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
7197         bug #795325
7198
7199 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
7200
7201         * src/SDCCmain.c: removed various references to DEFAULT_PORT
7202         * src/port.h: added flag needLinkerScript in port->linker
7203         structure to inform whether to create a .lnk file or not,
7204         * src/avr/main.c,
7205         * src/ds390/main.c,
7206         * src/hc08/main.c,
7207         * src/mcs51/main.c,
7208         * src/pic/main.c,
7209         * src/pic16/main.c,
7210         * src/xa51/main.c,
7211         * src/z80/main.c: changed appropriately to configure
7212         needLinkerScript flag
7213         * src/pic/gen.c,
7214         * src/pic16/gen.c (genAddrOf): fixed bug #863624
7215         * src/pic/glue.c: added variable udata_section_name to
7216         override default uninitialized data segment definition for
7217         devices only with SHAREBANK memory (reported from Erik Epetrich)
7218         * (pic14emitOverlay): modified to emit a commented overlay segment
7219         directive when no overlay data exist
7220         * (picglue): modified to emit uninitialized data segment
7221         according to udata_section_name
7222         * src/pic/main.c (_pic14_parseOptions): added command line
7223         options --udata-section-name=[name] to override default
7224         udata definition name
7225         * modified _linkCmd and _asmCmd to include compiler passed
7226         arguments via -W option
7227         * src/pic16/main.c: added $l in _asmCmd, changed extension for
7228         object file from '.rel' to '.o' in port->linker structure,
7229         changed size of fptr from 2 to 3 in port structure
7230
7231 2004-01-07  Borut Razem <borut.razem AT siol.net>
7232
7233         * support/scripts/sdcc.nsi: update PATH
7234         * support/scripts/sdcc.ico: craeted
7235
7236 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
7237
7238         * device/include/Makefile.in: fix install
7239         * doc/Makefile: fix install
7240
7241 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7242
7243         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
7244         in bug #860505
7245         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
7246         how the function variable allocation summary is displayed; also
7247         include information about variables allocated to the overlay
7248         segment
7249
7250 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7251
7252         * as/mcs51/lkmain.c: Help about -Y option
7253         * as/mcs51/lkarea.c: Fixed gcc warnings
7254
7255 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7256
7257         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
7258         fixed warning
7259         * support/valdiag/tests/overflow.c: added
7260         * src/SDCCast.c (decorateType),
7261         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
7262         LEFT_OP (left shift)
7263
7264 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7265
7266         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
7267         (default behaviour).
7268
7269 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7270
7271         A python script to validate compiler diagnostic messages. It can be
7272         used to verify that sdcc complains about bad c source code and
7273         gives a good location of the error.
7274         * support/valdiag/Makefile,
7275         * support/valdiag/valdiag.py,
7276         * support/valdiag/tests/*
7277
7278 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7279
7280         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
7281         * src/SDCCsymt.c (newEnumType),
7282         * src/SDCCsymt.h
7283         * support/Util/SDCCerr.c,
7284         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
7285         enum related bugs.
7286         * support/regression/tests/enum.c: added test for enum values that
7287         require at least 2 bytes of storage.
7288
7289 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7290
7291         * src/common.h: added ifndef/define/endif macros
7292         around the header file.
7293         Bug reported from Jesus Calvino-Fraga
7294
7295 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7296
7297         * sdcc.spec: updated
7298         * device/include/Makefile.in: don't install CVS directories
7299         * device/lib/Makefile.in: added removal of CVS directories after install
7300         * doc/Makefile: fixed install, added local_icons
7301         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
7302         * src/mcs51/gen.c (genRightShift): fixed bug #870788
7303         * src/ds390/gen.c (genRightShift): fixed bug #870788
7304         * src/SDCCast.c (decorateType): fixed bug #870781
7305
7306 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7307
7308         PIC16 port related changes:
7309         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
7310         added variable stackPos,
7311
7312         * gen.c: genCall, assignResultValue: added support for
7313         pushing/retrieving function parameters to/from stack,
7314         genFunction,genEndFunction: setup stack frame for the
7315         generated function,
7316         genAddrOf: will be changed according to bug 863624
7317
7318         * added files genutils.c and genutils.h which contain gen*
7319         debugged and optimised functions extracted from gen.c
7320
7321         * glue.c: added variable 'externs' which holds extern symbols,
7322         pic16emitRegularMap: is modified to properly handle relocatable
7323          symbols under the new scheme,
7324         pic16createInterruptVect: is modified
7325         pic16printPublics: is modified to emit 'global' assembler directives,
7326         added pic16_printExterns to print extern symbols,
7327         pic16glue: initializes stack/frame pointer in the beginning of
7328         the assembly output. Temporary hack, will be corrected later,
7329         because gplink yet does not support stack and SDCC does not
7330         yet support a type of crt0.o object to create the final binary.
7331
7332         * Removed many lines that contain 8051 legacy code.
7333         * The code is finally placed under a 'code' directive.
7334         * Added port specific options.
7335
7336         * _process_pragma: simplified since now we do not need *special*
7337         include file to define SFR registers. But a separate header
7338         will be needed. This will be developed later.
7339         * _pic16_parseOptions: added, parses port specific options:
7340         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
7341         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
7342         --preplace-udata-with=
7343
7344         * _pic16_setDefaultOptions: modified to initialize section names,
7345         but hack is temporarly out of order since it needs improvement.
7346         * _pic16_genAssemblerPreamble: configuration words are emitted by
7347         their address instead of their name. This part is incomplete and
7348         supports only the 18Fxx2 devices. Other devices will emit an error
7349         during assembly since they do not contain the same set of config
7350         registers
7351         * _pic16_genIVT: is modified,
7352
7353         * pcode.c: added definitions for some hardware registers that are needed
7354         for stack support
7355         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
7356         All PCI entries are updated. Now LFSR is supported.
7357         * Removed pic16_pciTRIS is mentioned by mdubuc in source
7358         * added pic16_newpCodeOpLit2 to support instructions with
7359         two literal arguments
7360         * pic16_pCode2str: corrected code that emits assembler instructions
7361         with two literal operands and those that have an access bit modifier
7362         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
7363         this fixes a bug which caused some labels to be lost, when an
7364         assembler directive was added, i.e. banksel,
7365         * pic16_FixRegisterBanking: improved logic that causes the insertion
7366         of bank switching,
7367         * InlineFunction: functions that are called once, are not any more
7368         inlined. This can be a port option in the future,
7369
7370         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
7371
7372         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
7373         hold the corresponding uninitialized symbols,
7374         * pic16_allocProcessorRegister: registers have explicit marked the
7375         accessBank field,
7376         * pic16_allocInternalRegister: registers are explicit marked as
7377         not used,
7378         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
7379         processing list, so bit registers were lost,
7380         *
7381
7382         * ralloc.h: added field 'accessBank' and original symbol operand
7383         in register definition,
7384         * removed the field isMapped from register definition,
7385
7386         ** Several functions have been removed from various sources:
7387         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
7388         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
7389         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
7390         pic16_assignRelocatableRegisters
7391
7392         ** others have been introduced:
7393         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
7394         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
7395
7396 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
7397
7398         * support/scripts/inc2h.pl: changed definition of BIT_AT
7399         to emit 'sbit at' instead of 'bit at'. This was a request.
7400
7401         PIC16 port related preliminary changes:
7402         * gen.c: prefixed function popRegFromString with
7403         pic16_ and all references to it corrected
7404         * pcode.c: all pic16_pc_* hardware registers prefixed
7405         with underscore (_),
7406         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
7407         * ralloc.c: newReg(): when register is REG_SFR then
7408         set address to rIdx,
7409         pic16_allocProcessorRegister(): marks register wasUsed=0
7410         pic16_writeUsedRegs(): added a call to assign processor
7411         registers via pic16_assignFixedRegisters
7412
7413 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7414
7415         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
7416         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
7417         variables in unused register banks.  Also the SSEG is placed
7418         wherever there is enough space for it, and IDATA can be anywhere
7419         in internal RAM.  For now compile using -Wl-Y[stack_size].
7420         The mem file is different for this option as well, since it
7421         makes no sense of talking about DSEG lenght.
7422
7423 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
7424
7425         * src/SDCClrange.c: fixed bug 869095 that caused segfault
7426         in certain cases, e.g. when ROM assignment, patch provided
7427         from Albert den Haan.
7428
7429 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
7430
7431         Many signedness and type propagation fixes:
7432         * src/SDCCicode.c: made geniCodeCast() static
7433         replaced SPEC_ by IS_ (cosmetic)
7434         (operandOperation): fixed div and mod operation
7435         (usualBinaryConversions): added support for promotion of char
7436         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
7437         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
7438         (geniCodeAdd): an array index will stay unsigned, even if promoted
7439         from char to int
7440         (geniCodeArray): ditto
7441         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
7442         * src/SDCCsymt.c (computeType): added more support for char;
7443         promotion of char is selectable by promoteCharToInt, fixed signedness
7444         for all cases
7445         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7446         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7447         * src/SDCCval (val*): replaced signedness calculation by
7448         computeType()
7449         rearranged if-branches (cosmetic)
7450         (valShift): added warning W_SHIFT_CHANGED
7451         (valCompare): fixed problem with different types
7452         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
7453         * support/regression/tests/literalop.c: added many cases
7454         * support/regression/tests/ast_constant_folding.c: changed finally to
7455         'unsigned int'
7456         * .version: new year, new version: 2.3.7
7457         * src/SDCCmain.c (main): applied patch #866468
7458         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
7459         provided by Scott Bronson
7460         * doc/sdccman.lyx: updated documentation for sdcdb
7461         updated and added chapter tips
7462
7463 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7464
7465         * src/SDCCsymt.h: missing from yesterday's commits
7466
7467 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7468
7469         * src/SDCC.y (struct_or_union_specifier),
7470         * support/Util/SDCCerr.c,
7471         * support/Util/SDCCerr.h: verify that struct & union tags are used
7472         as declared.
7473
7474 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7475
7476         * src/SDCCglobl.h: missing from yesterday's commits
7477
7478 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7479
7480         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
7481         sft_attributes, struct_declaration, parameter_declaration,
7482         type_name, start_block, declaration_list),
7483         * src/SDCC.lex (check_type): support redefinition of typedef names
7484
7485 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7486
7487         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
7488         aligned xdata arrays. Erik helped me with the if clause.
7489
7490 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7491
7492         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
7493         warning
7494
7495 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7496
7497         * src/SDCCast.h,
7498         * src/SDCCast.c (newAst_),
7499         * src/SDCCicode.h,
7500         * src/SDCCicode.c (ast2iCode, newiCode),
7501         * src/SDCCglobl.h,
7502         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
7503         expr, statement, expression_statement, selection_statement,
7504         iteration_statement, expr_opt, jump_statement): foundation for tracking
7505         sequence points
7506         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
7507         point code too)
7508
7509 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7510
7511         * support/Util/SDCCerr.c,
7512         * src/SDCCast.h,
7513         * src/SDCCast.c (createCase, createDefault, decorateType),
7514         * src/SDCClabel.c (labelUnreach),
7515         * src/SDCC.y (labeled_statement, jump_statement): More improvements
7516         to error messages.
7517         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
7518         (with thanks to Stas Sergeev)
7519         * device/include/time.h,
7520         * device/lib/time.c (CheckTime): suppress unreachable code warning
7521
7522 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7523
7524         * src/SDCCast.c (createIvalCharPtr),
7525         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
7526         bug #753752)
7527         * support/regression/tests/nullstring.c: tests for these two bugs
7528
7529 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7530
7531         * support/Util/SDCCerr.h,
7532         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
7533         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
7534         about storage class and 'at' used inside struct or union
7535         * src/SDCCBBlock.c (iCodeFromeBBlock),
7536         * src/SDCCcse.c (ifxOptimize),
7537         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
7538         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
7539         printIval, emitStaticSeg, emitOverlay),
7540         * src/SDCClabel.c (deleteIfx),
7541         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
7542         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
7543         gatherAutoInit, processParms),
7544         * support/Util/SDCCerr.h,
7545         * support/Util/SDCCerr.c (werrorfl): Support for better error location
7546         reporting for post-parse errors.
7547
7548 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7549
7550         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
7551         implicit casts via union; they don't work on big endian systems
7552         (possible fix for bug #861138)
7553
7554 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7555
7556         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
7557         * src/mcs51/main.c: fixed the fix for bug #737001
7558
7559 2003-12-15  Borut Razem <borut.razem AT siol.net>
7560
7561         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
7562
7563 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7564
7565         * support/makebin/makebin.c: put output in binary mode
7566
7567 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7568
7569         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
7570         xdata and data memory on startup. Set the environment variable
7571         SDCC_NOGENRAMCLEAR to disable this.
7572         * src/mcs51/peephole.def,
7573         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
7574         (allows non-interrupt and interrupt code to safely compete for a resource
7575         without the non-interrupt code having to disable interrupts)
7576
7577 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7578
7579         * src/SDCCicode.c (geniCodeAdd),
7580         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
7581         with valFromType if type might be a pointer and host is big endian).
7582         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
7583         types, not just integer types.
7584         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
7585         multiply defined with mismatching "at" address.
7586
7587 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7588
7589         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
7590         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
7591         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
7592         with embedded nulls (fixed bug #753752)
7593
7594 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7595
7596         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
7597         Apparently this did not see much testing (endless loop)
7598
7599 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7600
7601         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
7602
7603 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7604
7605         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
7606         gracefully handle NULL memmap pointers
7607
7608 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7609
7610         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
7611         instead of deleting the iCode when an operand is volatile
7612         * src/z80/gen.c (genDummyRead),
7613         * src/mcs51/gen.c (genDummyRead),
7614         * src/ds390/gen.c (genDummyRead),
7615         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
7616         not just IC_RIGHT
7617         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
7618         * src/SDCC.y: fixed bug #850420
7619
7620 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7621
7622         Applied z80 i/o port patch from Peter Townson and fixed some operators
7623         to better handle operands in A register.
7624         * device/include/z180.h
7625         * src/SDCC.y
7626         * src/SDCCglue.c
7627         * src/z80/gen.c
7628         * src/z80/gen.h
7629         * src/z80/main.c
7630         * src/z80/peeph-z80.def
7631         * src/z80/peeph.def
7632         * src/z80/z80.h
7633
7634 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7635
7636         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
7637
7638 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7639
7640         * device/lib/hc08/_mullong.c: Removed extra #endif
7641
7642 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7643
7644         * sim/ucsim/hc08.src/inst.cc,
7645         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
7646         carries from x to h
7647         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
7648         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
7649         * device/include/stdarg.h: fixed varargs for hc08
7650         * device/lib/Makefile.in,
7651         * device/lib/hc08/Makefile,
7652         * device/lib/hc08/_mulint.c,
7653         * device/lib/hc08/_mullong.c: fixed some endian problems
7654
7655 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7656
7657         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
7658         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
7659         * device/lib/_gptrget.c,
7660         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
7661
7662 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7663
7664         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
7665         * src/SDCCast.c (astErrors): fixed bug #846007
7666         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
7667
7668 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7669
7670         * src/SDCCast.c (decorateType): disabled a transformation I added in
7671         revision 1.188 (access to fields of a structure at an absolute address);
7672         it breaks with bitfields, extern declarations, and gcse analysis.
7673         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
7674         could be assigned through a pointer, so don't complain.
7675         * src/SDCCast.c (astErrors),
7676         * src/SDCCast.h,
7677         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
7678
7679 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
7680
7681         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
7682         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
7683         output of __config directives, since gpasm now supports them
7684         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
7685         pre-processor macro, i.e. -DMCU=p18f452
7686         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
7687         and modified to handle 'cast' icode similarly to '=' icode
7688         * src/pic16/device.h (typedef struct PIC_device): added field
7689         'extMIface' to indicate that chip has external memory interface
7690         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
7691         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
7692         18F8720
7693
7694 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7695
7696         * src/SDCC.y (pointer): fixed bug #846006
7697         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
7698         * src/SDCCast.c (decorateType): fixed bug #846009
7699         * src/ds390/peeph.def,
7700         * src/ds390/gen.c (genAnd, genOr),
7701         * src/mcs51/peeph.def,
7702         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
7703
7704 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7705
7706         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
7707         * src/SDCCdflow.c
7708         * src/SDCCcse.c
7709         * src/SDCCcse.h
7710         * src/SDCCBBlock.h
7711         * src/SDCCBBlock.c
7712
7713 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
7714
7715         fixed bug #845089
7716         * src/SDCCbitv.h,
7717         * src/SDCCbitv.c: added function to free a bitvector
7718         * src/SDCClrange.h,
7719         * src/SDCClrange.c: added function to recompute the liveranges
7720         * src/avr/ralloc.c,
7721         * src/ds390/ralloc.c,
7722         * src/hc08/ralloc.c,
7723         * src/mcs51/ralloc.c,
7724         * src/pic/ralloc.c,
7725         * src/pic16/ralloc.c,
7726         * src/xa51/ralloc.c,
7727         * src/z80/ralloc.c: recompute the liveranges after register packing
7728
7729 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
7730
7731         * src/SDCCloop.c (newInduction): fixed bug #845630
7732
7733 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7734
7735         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
7736         inadvertantly left behind from my 2003-11-12 change
7737
7738 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7739
7740         Updated headers I neglected to commit yesterday.
7741         * src/SDCClrange.h,
7742         * src/SDCCicode.h
7743
7744 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7745
7746         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
7747         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
7748         * src/SDCCopt.c (eBBlockFromiCode),
7749         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
7750         the creation of the key hash table from the sequencing so it can be used
7751         earlier (for some GCSE bug fixes still pending)
7752
7753 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7754
7755         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
7756         * support/regression/tests/addsub.c: testing genPlus shortcut
7757
7758 2003-11-15  Borut Razem <borut.razem AT siol.net>
7759
7760         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
7761
7762 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7763
7764         * src/SDCCcse.c (cseBBlock): fixed bug #527779
7765         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
7766         ordering is immaterial.
7767         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
7768
7769 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7770
7771         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
7772         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
7773         (SIGSEV) of bug #840381
7774         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
7775         unlink new file before rename if new and old filenames are the same)
7776
7777 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7778
7779         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
7780         uninitialized variables) for the mcs51. Set environment variable
7781         SDCC_GENRAMCLEAR to test.
7782         xdata initialization slightly shorter
7783
7784 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7785
7786         * src/SDCCsymt.h,
7787         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
7788         #838241 & 780691 (basicly the same bug)
7789         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
7790         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
7791
7792 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
7793
7794         * src/SDCCmain.c (linkEdit): "fix" #834252
7795
7796 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7797
7798         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
7799         * src/SDCCast.h,
7800         * src/SDCC.y: fixed bug #819403
7801
7802 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7803
7804         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
7805         the reentrant attribute.
7806         * src/hc08/gen.c (genPackBits): added missing stack readjustment
7807         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
7808         simulation
7809         * src/SDCCast.c (decorateType): fixed bug with storage class not being
7810         updated during pointer dereference; f.e. ~(((char *)1)*) was being
7811         erroneously reduced to a literal.
7812         * src/hc08/ralloc.c (packRegisters, rematStr),
7813         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
7814         some cases
7815
7816 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7817
7818         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
7819         * doc/sdccman.lyx: changed from 'article' to 'book'
7820         * doc/Makefile: readded test_suite_spec and cdbfileformat
7821
7822 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
7823
7824         * device/include/stdlib.h: include malloc.h to comply with ANSI
7825         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
7826
7827 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7828
7829         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
7830         * doc/clean.mk: also remove *.out files
7831         * doc/sdccman.lyx: some additions, larger top/bottom margins
7832
7833 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7834
7835         * src/SDCC.y: fixed bug #837365
7836         * support/regression/tests/bitopcse.c
7837         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
7838         a symbol (might be valop instead)
7839         * device/lib/Makefile.in: added errno.c to HC08SOURCES
7840         * device/lib/clean.mk: added hc08 to the cleaning list
7841
7842 2003-11-04  Borut Razem <borut.razem AT siol.net>
7843
7844         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
7845           made 2003-11-04
7846         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7847           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
7848           malloc is declared in standard stdlib.h
7849
7850 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7851
7852         * device/lib/hc08/Makefile: need to clean .rel not .o files
7853         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
7854
7855 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7856
7857         * src/port.h,
7858         * src/hc08/main.c,
7859         * src/mcs51/main.c,
7860         * src/ds390/main.c,
7861         * src/z80/main.c,
7862         * src/avr/main.c,
7863         * src/pic/main.c,
7864         * src/pic16/main.c,
7865         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
7866         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
7867         tests (which uses the port's oclsExpense function)
7868         * src/SDCC.y,
7869         * src/SDCCast.c,
7870         * src/SDCCicode.c,
7871         * src/hc08/gen.c,
7872         * src/ds390/gen.c,
7873         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
7874
7875 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7876
7877         * src/SDCCcse.c (ifxOptimize),
7878         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
7879         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
7880         deleting the IFX iCode.
7881         * src/hc08/ralloc.c: reduced unneeded slocs
7882         * src/hc08/gen.c: fixed bug in asmopToBoolean
7883
7884 2003-11-04  Borut Razem <borut.razem AT siol.net>
7885
7886         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
7887           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7888           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
7889           transferred to configure
7890
7891 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
7892
7893         Use headers defined in the C[++] standards:
7894         * sim/ucsim/gui.src/serio.src/fileio.cc
7895         * sim/ucsim/gui.src/serio.src/frontend.cc
7896         * sim/ucsim/gui.src/serio.src/main.cc
7897         * sim/ucsim/gui.src/serio.src/posix_signal.cc
7898         * support/Util/NewAlloc.c
7899         * as/hc08/lklibr.c
7900         * as/mcs51/lklibr.c
7901         * as/z80/aslist.c
7902         * as/z80/assym.c
7903
7904 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7905
7906         * Added MSVC projects for hc08 assembler and linker:
7907         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
7908         /as/hc08/link_hc08.dsp
7909
7910 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
7911
7912         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
7913
7914 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
7915
7916         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
7917
7918 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7919
7920         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
7921
7922 2003-10-31  Borut Razem <borut.razem AT siol.net>
7923
7924         * support/cpp2/cpplib.h,
7925           support/cpp2/cpplib.c,
7926           support/cpp2/cpplex.c,
7927           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
7928           to switch _asm block preprocessing on / off. Default is
7929           #pragma preproc_asm +
7930
7931 2003-10-31  Borut Razem <borut.razem AT siol.net>
7932
7933         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
7934           when outputting comment blocks (when executed with -C option) and
7935           _asm (SDCPP specific) blocks
7936
7937 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7938
7939         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
7940
7941 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
7942
7943         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
7944
7945 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
7946
7947         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
7948         * src/SDCCast.c (decorateType): fixed bug #832664
7949
7950 2003-10-31  Borut Razem <borut.razem AT siol.net>
7951
7952         * support\cpp2\cpplex.c: fixed for SDCPP:
7953           comments(when executed with -C option) and _asm blocks
7954           were included even if they where in skipped #if block.
7955           Applied solution from GCC cpp 3.3.2
7956
7957 2003-10-31  Borut Razem <borut.razem AT siol.net>
7958
7959         * src/SDCC.lex: sdcc now understands both formats:
7960           '# <line_number> <file_name>' and
7961           '#line <line_number> <file_name>'
7962         * support/cpp2/cppmain.c: sdcpp now generates the standard
7963           '# <line_number> <file_name>' instead of former
7964           '#line <line_number> <file_name>'
7965
7966 2003-10-30  Borut Razem <borut.razem AT siol.net>
7967
7968         * support/cpp2/cpphash.h,
7969         * support/cpp2/cpplib.h
7970         * support/cpp2/cpplex.c,
7971         * support/cpp2/cppmain.c,
7972         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
7973
7974 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7975
7976         Fixed a number of problems revealed by bug #827883.
7977         * src/SDCCloop.c (loopInvariants): Spill location of the
7978         result operand should be recomputed if extracted from
7979         a loop. Also, don't extract assignments of an iTemp
7980         from a literal.
7981         * src/SDCCast.c (isConformingBody): loop reversal should
7982         not occur if the control variable is involved with a
7983         relational operator.
7984
7985 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7986
7987         * .version: bumped to 2.3.6 to reflect the big improvements
7988         made by Erik and Klaus. Thanks!
7989
7990 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
7991
7992         Replaced the livrange code.
7993         * src/SDCClrange.c: added new LR code
7994         * src/SDCCloop.c,
7995         * src/SDCCBBlock.h: removed remainig parts from old LR code
7996         * src/ds390/ralloc.c,
7997         * src/ds390/gen.c: minor fixes to make it work with new code
7998
7999 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8000
8001         * as/hc08/asm.h,
8002         * as/hc08/lkrloc.c,
8003         * src/hc08/gen.c,
8004         * src/hc08/ralloc.c: Fix various warnings related to the hc08
8005         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
8006         (tweaked fix for bug #818696)
8007
8008 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8009
8010         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
8011
8012 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8013
8014         * src/SDCCmain.c,
8015         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
8016         * src/mcs51/gen.c (gencjneshort),
8017         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
8018         more efficient (per Scott Bronson's suggestion)
8019
8020 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8021
8022         Extended the semantics of the critical keyword to include
8023         individual statements. See RFE #827755 and #799831
8024         * src/SDCC.y
8025         * src/SDCCicode.c
8026         * src/SDCCopt.c
8027         * src/SDCCast.c
8028         * support/Util/SDCCerr.c
8029         * support/Util/SDCCerr.h
8030         * src/mcs51/gen.c
8031         * src/ds390/gen.c
8032         * src/hc08/gen.c
8033
8034 2003-10-19  Borut Razem <borut.razem AT siol.net>
8035
8036         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
8037
8038 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8039
8040         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
8041         Fixed bug #818696
8042         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
8043         and predecrement operand is displayed
8044
8045 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8046
8047         * src/SDCCval.c (valMinus): fixed bug #826041
8048
8049 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8050
8051         Some hc08 related updates that I missed earlier
8052         * sim/ucsim/stypes.h
8053         * support/regression/ports/hc08/spec.mk
8054
8055 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8056
8057         New target "hc08" for the Motorola 68hc08 family of micros
8058
8059         * configure
8060         * configure.in
8061         * Makefile
8062         * src/hc08/*
8063         * src/SDCCmain.c
8064         * src/port.h
8065         * sim/ucsim/hc08.src/*
8066         * sim/ucsim/configure.in
8067         * src/ucsim/configure
8068         * sim/ucsim/packages_in.mk
8069         * as/hc08/*
8070         * as/Makefile
8071         * device/include/mc68hc908qy.h
8072         * device/lib/hc08/*
8073         * device/lib/Makefile.in
8074         * support/regression/ports/hc08/*
8075         * support/regression/Makefile
8076
8077 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8078
8079         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
8080         regression test
8081         * src/ds390/gen.c (genCast): fixed bug #821957
8082
8083 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8084
8085         * device/lib/logf.c: "fixed" overlay bug
8086         * support/regression/ports/host/spec.mk: added m library
8087         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
8088         * support/regression/tests/float_trans: added (for Eric)
8089
8090 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
8091
8092         * src/mcs51/gen.c (genCpl): fixed bug
8093         http://sf.net/mailarchive/message.php?msg_id=6263915
8094
8095 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
8096
8097         * src/SDCCast.c (decorateType): added extended constant folding
8098         * src/SDCCsymt.c (computeType): cleanup
8099         * src/SDCCval.c (valShift): minor optimization
8100         * support/regression/tests/ast_constant_folding.c: added
8101
8102 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8103
8104         * src/SDCCmain.c: removed some unintended changes
8105
8106 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8107
8108         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
8109         * src/z80/gen.c: fixed part of bug #817589
8110         * src/SDCCsymt.c (checkFunction): fixed bug #817895
8111
8112 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
8113
8114         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
8115         * src/SDCCcflow.c
8116         * src/SDCCcse.c
8117         * src/SDCCdflow.c
8118         * src/SDCClabel.c
8119         * src/SDCClrange.c
8120         * src/SDCCmem.c
8121         * src/SDCCopt.c
8122         * src/SDCCpeeph.c
8123         * src/SDCCset.c
8124         * src/avr/ralloc.c
8125         * src/ds390/ralloc.c
8126         * src/izt/ralloc.c
8127         * src/mcs51/ralloc.c
8128         * src/pic/ralloc.c
8129         * src/pic16/ralloc.c
8130         * src/xa51/ralloc.c
8131         * src/z80/ralloc.c
8132         * src/z80/gen.c: removed unused label "release:"
8133
8134 2003-10-06  Borut Razem <borut.razem AT siol.net>
8135
8136         * src/SDCC.lex: removed definition of unused variables
8137           save_optimize and save_options
8138
8139 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
8140
8141         * clean.mk: removed '=' in "-maxdepth=1"
8142         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
8143         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
8144
8145 2003-10-06  Borut Razem <borut.razem AT siol.net>
8146
8147         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
8148           my_unput() replaced by unput()
8149
8150 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
8151
8152         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
8153         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
8154         type-punned pointer will break strict-aliasing rules"
8155         Old LR behaviour is again default; Klaus' LR can be choosen by
8156         defining the environment variable LRKLAUS
8157         * src/SDCCBBlock.h
8158         * src/SDCCloop.c
8159         * src/SDCClrange.c
8160         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
8161         * clean.mk: fixed removal of files in bin/CVS/
8162         * device/lib/clean.mk: fixed removal of directories small and large
8163         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
8164         * src/SDCCicode.c,
8165         * src/SDCCval.c: removed superflous test for pedantic
8166
8167 2003-10-05  Borut Razem <borut.razem AT siol.net>
8168
8169         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
8170           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
8171           message "unmatched #pragma SAVE and #pragma RESTORE"
8172
8173 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8174
8175         * doc/sdccman.lyx: various additions and updates (interrupts, inline
8176           assembly, critical functions, atomic, nojtbound)
8177
8178 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
8179
8180         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
8181         * src/SDCCBBlock.h
8182         * src/SDCCloop.c
8183         * src/SDCCloop.h
8184         * src/SDCClrange.c
8185
8186 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8187
8188         * src/z80/gen.h,
8189         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8190         * src/mcs51/gen.h
8191         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8192         * src/ds390/gen.h
8193         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8194         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
8195         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
8196
8197 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8198
8199         * src/z80/gen.c (genRet): fixed bug #524753
8200         * src/z80/gen.c (genCast): fixed internal error on cast from
8201         pointer to long
8202         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
8203         fix for bug #477835 to the z80
8204         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
8205         for tracking iCodes in the peephole optimizer for z80
8206
8207 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8208
8209         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
8210         the other part of bug #814548
8211         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
8212
8213 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
8214
8215         * src/SDCCcse.c: fixed part of bug #814548
8216
8217 2003-09-28  Borut Razem <borut.razem AT siol.net>
8218
8219         * src/asm.c: rewrite of printILine() to use temporary file instead
8220           a pipe
8221         * src/xa51/main.c: commented out declaration of int rewinds
8222
8223 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8224
8225         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
8226
8227 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8228
8229         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
8230         * src/asm.c (printILine): Fixed bug #811015
8231
8232 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8233
8234         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
8235         freeing.
8236
8237 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8238
8239         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
8240         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
8241         to correctly handle general case of AOP_PAIRPTR
8242         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
8243
8244 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8245
8246         * src/mcs51/ralloc.c (fillGaps),
8247         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
8248         register positioning bug)
8249
8250 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
8251
8252         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
8253
8254 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8255
8256         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
8257         genCodePointerGet, genGenPointerGet, genFarPointerSet,
8258         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
8259         (ralloc doesn't intentionally do this now, but perhaps later)
8260         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
8261         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
8262         register positioning bugs (Fixed bug #762602 and #795325)
8263         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
8264         (Fixed bug #808779)
8265         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
8266         lines that --i-code-in-asm generates
8267
8268 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8269
8270         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
8271         trying to fclose a FILE* that was already closed.
8272
8273 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8274
8275         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
8276         of const struct should be treated as if const themselves)
8277
8278 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
8279
8280         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
8281
8282 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8283
8284         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
8285         Unix (/n) and DOS (/r/n) line terminations.
8286
8287 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8288
8289         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
8290         bug #613775
8291
8292 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8293
8294         * src/mcs51/gen.c (genFunction, genEndFunction),
8295         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
8296         and restore of EA so that stack offsets to parameters are
8297         correct when using both critical and reentrant/stack-auto.
8298         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
8299         size (can be triggered in error if sloc is shared between
8300         different sized objects)
8301         * device/include/float.h: fixed macros to explicitly use
8302         unsigned long where needed
8303
8304 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
8305
8306         Feature req. 799831: added code to allow nesting of critical functions
8307         * src/mcs51/gen.c (genFunction, genEndFunction)
8308         * src/ds390/gen.c (genFunction, genEndFunction)
8309
8310 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8311
8312         * src/SDCCsymt.c (sclsFromPtr),
8313         * src/SDCCsymt.h,
8314         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
8315         support for standard C idiom of memory mapped variables; for
8316         example, *((xdata int*)0x1234) = 1 is now internally equivalent
8317         to xdata int at 0x1234 tempvar = 1.
8318         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
8319         provided by Akiya ISHIDA
8320
8321 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
8322
8323         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
8324         * src/SDCCval.c (constVal): added reduction from int to char
8325         * src/SDCCval.c (valMult, valDiv): fixed sign handling
8326         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
8327         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
8328         to ignore the sign
8329         * support/regression/tests/shifts.c: fixed
8330
8331 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8332
8333         * src/z80/gen.c (genXor): Fixed bug #805445
8334
8335 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8336
8337         Fixed bug #621531 (const & volatile confusion in the type chain).
8338         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
8339         refer to the const or volatile state of the pointer itself.
8340
8341         * src/SDCCast.c
8342         * src/SDCCglue.c
8343         * src/SDCCicode.c
8344         * src/SDCCsymt.c
8345         * src/SDCCval.c
8346         * src/SDCC.y
8347         * src/SDCCsymt.h
8348         * src/pic/gen.c
8349         * src/pic/ralloc.c
8350         * src/pic16/gen.c
8351         * src/pic16/ralloc.c
8352         * support/regression/tests/const.c
8353
8354 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8355
8356         When checking for duplicated modules, use absolute paths
8357         instead of relative paths.  Files changed:
8358
8359         * as/mcs51/lklib.c
8360         * link/z80/lklib.c
8361
8362 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8363
8364         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
8365
8366 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8367
8368         * device/include/string.h: added size_t typedef, changed
8369         prototypes to use size_t, eliminated separate reentrant and
8370         non-reentrant declarations, added _memmove declaration
8371         * device/lib/_memcpy.c: changed to use size_t instead of int,
8372         changed /4 to >>2 to avoid division library call
8373         * device/lib/_memcmp.c,
8374         * device/lib/_memset.c,
8375         * device/lib/_strncat.c,
8376         * device/lib/_strncpy.c,
8377         * device/lib/_strncmp.c: changed to use size_t instead of int
8378         * device/lib/_memmove.c: new file (fixed bug #772294)
8379         * device/lib/Makefile.in: added _memmove.c
8380         * device/lib/z80/asm_strings.s: fixed bug #772290
8381         * support/regression/tests/bitfields.c: attempt to fix host assertion
8382         failure on amd64-unknown-linux2.2
8383
8384 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8385
8386         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
8387         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
8388         * as/z80/asmain.c (main): fixed bug #801766
8389
8390 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
8391
8392         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
8393         compilers
8394
8395 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8396
8397         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
8398         reported in bug #800609
8399
8400 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
8401
8402         * Top header beautifications in src/pic16 directory:
8403           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
8404           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
8405           pcoderegs.h, ralloc.c, ralloc.h
8406         * main.c: added top header and GPL license notice
8407         * pcode.c: fixed the if-conditional warning
8408
8409 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
8410
8411         * device/lib/_mullong.c: replaced int by short for gcc
8412
8413 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8414
8415         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
8416         and JUMPTABLE iCodes properly now (worked by accident before)
8417         * src/mcs51/gen.c (leftRightUseAcc),
8418         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
8419         iCode properly now. Use getSize instead of nRegs since a & b
8420         aren't part of the nRegs tally.
8421
8422 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
8423
8424         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
8425         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
8426           before instructions that use the _STATUS register
8427
8428 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
8429
8430         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
8431         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
8432         fetching of the pointer
8433         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
8434         copied from genNearPointerSet()
8435         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
8436         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
8437         If they pop r0/r1 they must be called in the opposite order than aopOp().
8438         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
8439         (resp. --stack-auto), prepared for --xstack
8440
8441 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8442
8443         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
8444
8445 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8446
8447         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
8448         these ports have their own __sdcc_external_start()
8449
8450 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
8451
8452         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8453         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
8454         type for bits was changed. It resulted in bit variables becoming
8455         global, which is not permitted in PIC 14 assembly output.
8456
8457 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8458
8459         * doc/sdccman.lyx: various additions and updates. Rearranged sections
8460
8461 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8462
8463         Z80 and MCS51 linkers complaint if a public symbol is defined
8464         in more than one library module:
8465
8466         * as/mcs51/lklib.c
8467         * link/z80/lklib.c
8468         * as/mcs51/Makefile.in
8469
8470 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8471
8472         A few small changes that speed up the peephole optimizer.
8473
8474         * src/SDCCpeeph.c
8475
8476 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8477
8478         Try to make the peephole optimizer smarter by maintaining
8479         an association between the assembly source code and the
8480         iCodes that originated them. Put this information to use
8481         with a new peephole rule condition "notVolatile" so that
8482         the rules can be aggressive yet still safe.
8483
8484         * src/SDCCpeeph.c
8485         * src/SDCCpeeph.h
8486         * src/mcs51/gen.c
8487         * src/mcs51/peeph.def
8488
8489 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8490
8491         Fixed bug #741761
8492
8493         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
8494         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
8495         if the left or right operand symbols have the accuse flag set.
8496
8497 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8498
8499         Changed the type of the result of the ! (NOT) operator to char;
8500         previously it returned the same type as the source. This allows
8501         us to eliminate all the genFloatNot functions (all of its target
8502         implementations were very buggy) since !float can use the same
8503         code as !long now.
8504
8505         * src/SDCCicode.c (ast2iCode): ! returns char
8506         * src/mcs51/gen.c (genNot, genNotFloat),
8507         * src/ds390/gen.c (genNot, genNotFloat),
8508         * src/z80/gen.c (genNot, genNotFloat),
8509         * src/pic/gen.c (genNot, genNotFloat),
8510         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
8511
8512 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
8513
8514         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8515         1. Interrupt would not compile properly. Ensure PCLATH register is saved
8516            during interrupts. Ensure WSAVE is located at a shared bank address.
8517         2. Fixed page selection in some places
8518         3. Fixed BTFSS/C to where necessary use registers directly and not simply
8519            the registers name strings.
8520         4. Fixed "signed / unsigned compare" compiler warnings.
8521         5. The PIC port manages its own allocation of the general purpose
8522            registers, but makes no attempt to reuse them. As a result when
8523            compiling it soon runs out of general purpose registers. Some
8524            additional code was added to the files pcode.c and device.c to walk
8525            through the function call tree and rename the registers so that they
8526            get reused.
8527
8528         * src/pic/device.c
8529         * src/pic/gen.c
8530         * src/pic/glue.c
8531         * src/pic/pcode.c
8532         * src/pic/pcode.h
8533         * src/pic/ralloc.c
8534         * src/pic/ralloc.h
8535         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
8536         genPlus() & genMinus() when the result is the same as left or right
8537
8538 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8539
8540         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
8541
8542 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8543
8544         Made bitfield a distinct type from bit so that bitfields
8545         convert as per ANSI C and bits retain their traditional
8546         boolean style behaviour. Implemented bitfield support in
8547         the z80 port.
8548
8549         * src/SDCCsymt.h,
8550         * src/SDCCsymt.c,
8551         * src/SDCCast.c,
8552         * src/cdbFile.c,
8553         * src/mcs51/gen.c,
8554         * src/ds390/gen.c: bit v bitfield split
8555         * src/z80/gen.c: New support for bitfields
8556         * support/regression/tests/bitfields.c: reenabled z80,
8557         added more tests
8558
8559 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8560
8561         Rules 246.x, 247.x relate to bitfields, the others speed up
8562         access to xdata mapped I/O devices.
8563
8564         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
8565
8566 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8567
8568         Cleaned up genPackBits and genUnpackBits and added two helper
8569         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
8570         for literal assignments in genPackBits (thanks to Frieder for
8571         reminding me).
8572
8573         * src/mcs51/gen.c
8574         * src/ds390/gen.c
8575
8576 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8577
8578         Fixed bug #748310 (pointer to function type mishandled when the
8579         function name is omitted). Also fixed a SIGSEGV when a function
8580         attribute (reentrant, etc) is used on a non-function or on a
8581         function but misplaced before the parameter list.
8582
8583         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
8584         bug #748310
8585         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
8586         * support/Util/SDCCerr.h,
8587         * support/Util/SDCCerr.c: Added func attr misuse error msg
8588
8589 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8590
8591         Fixed bug #787649 by anonymous
8592         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
8593         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
8594
8595 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8596
8597         Fixed numerous bitfield problems.
8598
8599         * src/SDCC.y: More bitfield related error checking
8600         * src/SDCCsymt.h,
8601         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
8602         * support/Util/SDCCerr.h,
8603         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
8604         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8605         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8606         * support/regression/tests/bitfields.c: tests added
8607
8608 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8609
8610         Made the constant following the "interrupt" keyword optional. If
8611         omitted, the function will not automatically be given an entry
8612         in the interrupt vector table (similar to #pragma NOIV, but
8613         less syntacticly kludgy). The interrupt number is also now
8614         range checked. Also fixed a bug in the high order bit example
8615         in the manual.
8616
8617         * src/SDCC.y
8618         * src/SDCCmem.c
8619         * src/SDCCglue.c
8620         * src/SDCCsymt.h
8621         * support/Util/SDCCerr.c
8622         * support/Util/SDCCerr.h
8623         * doc/sdccman.lyx
8624
8625 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8626
8627         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
8628         * src/SDCCicode.c (operandOperation): rewritten some ops
8629         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
8630         * src/SDCCsymt.c (computeType): literals are handled the same way as any
8631         other type
8632         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
8633         be re-activated by defining REDUCE_LITERALS)
8634         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
8635         unsigned, but are signed by default
8636         * src/SDCCval.c (constVal): rearranged
8637         * src/SDCCval.c (valMod): preliminary fix
8638         * src/SDCCval.c (valCastLiteral): use TYPE_* types
8639         * support/regression/literalop.c: added, work in progress
8640
8641 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8642
8643         Generate warnings for useless declarations like "char data;"
8644         that don't do what new users expect.
8645
8646         * src/SDCC.y
8647         * support/Util/SDCCerr.h
8648         * support/Util/SDCCerr.c
8649
8650 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
8651
8652         * src/SDCCval.c (valMult): fix overflow detection of negative int
8653
8654 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8655
8656         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
8657
8658         Changes to support big endian targets:
8659
8660         * src/ports.h
8661         * src/SDCCglue.c
8662         * src/avr/main.c
8663         * src/ds390/main.c
8664         * src/izt/i186.c
8665         * src/mcs51/main.c
8666         * src/pic/main.c
8667         * src/pic16/main.c
8668         * src/xa51/main.c
8669         * src/z80/main.c
8670
8671 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
8672
8673         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
8674         * device/lib/time.c: fixed warning "integer overflow in expression"
8675
8676 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
8677
8678         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
8679         * src/SDCCval.c (constVal): changed default to signed; hex and octal
8680         constants are unsigned; added recognition of "u" flag for unsigned
8681         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
8682         * src/SDCCval.c (valDiv, valMod): fixed signdness
8683         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
8684         signedness of modulo, left and right shift
8685         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
8686         * support/Util/SDCCerr.h: added warning W_INT_OVL
8687         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
8688         * src/SDCCast.c (ast_print): improved output of constants
8689
8690 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8691
8692         Fixed some warnings when building with MSVC:
8693
8694         * as\mcs51\asdata.c
8695         * as\z80\asdata.c
8696         * as\mcs51\asm.h
8697         * as\z80\asm.h
8698         * link\z80\aslink.h
8699         * link\z80\lkdata.c
8700         * link\z80\lkeval.c
8701         * link\z80\lkgb.c
8702         * link\z80\lkihx.c
8703         * link\z80\lks19.c
8704         * link\z80\lksym.c
8705         * support\cpp2\cpplib.c
8706         * src\ds390\gen.c
8707         * src\mcs51\gen.c
8708
8709 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
8710
8711         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
8712
8713 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8714
8715         * support\librarian\clean.mk: Do not remove Makefile.
8716         * support\librarian\Makefile: added.
8717
8718 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8719
8720         Added librarian to MSVC build:
8721         * all.dsp
8722         * sdcc.dsw
8723         * support\librarian\librarian.dsp
8724
8725         'configure' not needed for librarian, removed:
8726         * support\librarian\configure
8727         * support\librarian\configure.in
8728         * support\librarian\config_in.h
8729         * support\librarian\Makefile.in
8730
8731         Hopefully these ones built the librarian and the rest of sdcc properly:
8732         * Makefile
8733         * Makefile.common.in
8734
8735         Messed up 'configure', so revert to previous version:
8736         * configure
8737         * configure.in
8738
8739 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
8740
8741         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
8742         there, while the mantissa of a double is "only" 53 bits wide.
8743
8744 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8745
8746         Adding sdcclib to the build.  MSVC project coming soon.
8747         Files added/changed:
8748
8749         * support\librarian\clean.mk
8750         * support\librarian\configure
8751         * support\librarian\configure.in
8752         * support\librarian\config_in.h
8753         * support\librarian\Makefile.bcc
8754         * support\librarian\Makefile.in
8755         * support\librarian\sdcclib.c
8756         * Makefile.bcc
8757         * Makefile
8758         * Makefile.common.in
8759         * configure
8760         * configure.in
8761
8762 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8763
8764         Linker now complaints if linked modules have conflicting options, for
8765         example, one compiled using --model-large and another one compiled with
8766         --model-small.  The following files were modified:
8767
8768         * as\mcs51\asdata.c
8769         * as\mcs51\aslink.h
8770         * as\mcs51\asm.h
8771         * as\mcs51\asmain.c
8772         * as\mcs51\asout.c
8773         * as\mcs51\i51pst.c
8774         * as\mcs51\lkdata.c
8775         * as\mcs51\lklibr.c
8776         * as\mcs51\lkmain.c
8777         * as\z80\asdata.c
8778         * as\z80\asm.h
8779         * as\z80\asmain.c
8780         * as\z80\asout.c
8781         * as\z80\z80pst.c
8782         * link\z80\aslink.h
8783         * link\z80\lkdata.c
8784         * link\z80\lklibr.c
8785         * link\z80\lkmain.c
8786         * src\SDCCglue.c
8787
8788 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8789
8790         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
8791         as/mcs51/lklibr.c: Generate a warning when a library is not found.
8792
8793 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
8794
8795         * src/z80/mappings.i: fix _mul[us][int,long] entries
8796
8797 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8798
8799         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
8800
8801 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8802
8803         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
8804         * support/regression/tests/bitopcse.c: added
8805         fixed warning:
8806         * src/avr/gen.c:
8807         * src/pic/gen.c:
8808         * src/pic16/gen.c:
8809         * src/z80/gen.c:
8810         * src/xa51/gen.c:
8811
8812 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8813
8814         added support for new library format to z80, gbz80 linkers:
8815         *link/z80/aslink.h
8816         *link/z80/lklex.c
8817         *link/z80/lklib.c
8818         *link/z80/lklist.c
8819
8820 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8821
8822         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
8823         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
8824
8825 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
8826
8827         added DUMMY_READ_VOLATILE:
8828         * src/SDCC.y:
8829         * src/avr/gen.c:
8830         * src/xa51/gen.c:
8831         * src/z80/gen.c:
8832         * src/pic/gen.c:
8833         * src/pic16/gen.c:
8834         * src/mcs51/gen.c:
8835         * src/ds390/gen.c:
8836         * src/SDCCcse.c (algebraicOpts): many improvements
8837         * src/SDCCcse.h: removed algebraicOpts()
8838         * src/SDCCicode.c (picDummyRead): added
8839
8840 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8841
8842         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
8843         "Insufficient space in data memory".
8844
8845 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8846
8847         * src/mcs51/gen.c: fixed bug #771358
8848         * src/z80/gen.c: fixed bug #759087
8849
8850 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
8851
8852         * src/pic16/glue.c: minor cleanup by Vangelis
8853
8854 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8855
8856         * device/include/regc515c.h: fixed #758477
8857         * device/lib/_gptrget.c: saving some cycles in generic pointer get
8858         * device/lib/_gptrput.c: saved a few bytes
8859         * my tab spacing is 8, yours too?)
8860         * device/lib/_ser.c: process RX bytes earlier than TX bytes
8861         * device/lib/serial.c: process RX bytes earlier than TX bytes
8862         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
8863
8864 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8865
8866         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
8867
8868 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8869
8870     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
8871
8872 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
8873
8874         * device/lib/Makefile.in: bad fix, reverted to 1.43
8875
8876 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
8877
8878         * device/lib/Makefile.in: added missing z80 object files
8879
8880 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
8881
8882         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
8883         pic16 progress by Vangelis:
8884         * src/SDCCglobl.h:
8885         * src/SDCCmain.c:
8886         * src/pic/Makefile:
8887         * src/pic:
8888         * pic/Makefile:
8889         * pic16/device.c:
8890         * pic16/device.h:
8891         * pic16/gen.c:
8892         * pic16/gen.h:
8893         * pic16/genarith.c:
8894         * pic16/glue.c:
8895         * pic16/main.c:
8896         * pic16/pcode.c:
8897         * pic16/pcode.h:
8898         * pic16/pcodepeep.c:
8899         * pic16/peeph.def:
8900
8901 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8902
8903     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
8904
8905 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8906
8907     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
8908     added gbz80 build to MSVC project.
8909     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
8910     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
8911     from 8051 stuff and setup so it links using a .lnk file.
8912
8913 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8914
8915     * support/librarian/sdcclib.c: sdcc librarian.
8916     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
8917     with sdcclib.
8918
8919 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8920
8921     * as/mcs51/lkmain.c: properly handle extensions in function afile.
8922
8923 2003-07-02  Borut Razem <borut.razem AT siol.net>
8924
8925         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
8926         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
8927         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
8928         src/xa51/main.c, src/z80/main.c:
8929         virtualization of glue() function: each port has it's own glue function,
8930         which is accessed by do_glue function pointer in PORT.general structure
8931
8932 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
8933
8934         * DS800C400 fun, improved ROM interface and tinibios.
8935
8936 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
8937
8938         * More support for DS80C400. Now includes beginning of interface to ROM.
8939
8940 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
8941
8942         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
8943
8944 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8945
8946         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
8947
8948 2003-06-19  Borut Razem <borut.razem AT siol.net>
8949
8950         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
8951
8952 2003-06-19  Borut Razem <borut.razem AT siol.net>
8953
8954         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
8955         fixed Z80 port - crt0.o: cannot open.
8956
8957 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
8958
8959         * support/Util/MySystem.c (merge_command): revert bad fix
8960
8961 2003-06-18  Borut Razem <borut.razem AT siol.net>
8962
8963         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
8964
8965 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8966
8967         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8968         option --use-stdout sends errors to stdout instead of stderr.
8969
8970 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
8971
8972         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
8973
8974 2003-06-15  Borut Razem <borut.razem AT siol.net>
8975
8976         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
8977         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
8978         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
8979         fixed width array of pointers replaced with sets;
8980         multiple include and lib paths ared transferred to preprocessor and linker
8981         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
8982         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
8983         fixed width array of pointers
8984         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
8985         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
8986         fixupPath(), getPathDifference()
8987         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
8988         fixed width array of pointers
8989
8990 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
8991
8992         * src/pic16/ralloc.c: fix warnings
8993         * src/pic16/pcode.c: fix warning
8994
8995 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
8996
8997          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
8998         know all the details, but essentially this set of changes enable
8999         the pic16 port to generate movff instructions and generate assembler
9000         directives,
9001         * src/SDCCmain.c:
9002         * src/pic16/gen.c:
9003         * src/pic16/glue.c:
9004         * src/pic16/pcode.c:
9005         * src/pic16/device.c:
9006         * src/pic16/main.c:
9007         * src/pic16/pcode.h:
9008         * src/pic16/pcoderegs.c:
9009         * src/pic16/ralloc.c:
9010         * src/pic16/ralloc.h:
9011
9012 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9013
9014         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9015         added option --vc, so sdcc errors and warnings are compatible with
9016         Microsoft Visual Studio.
9017
9018 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9019
9020         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
9021           device/lib/libfloat.lib: added atof function.
9022
9023 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
9024
9025         * doc/sdccman.lyx: updated to Lyx 1.3
9026         * doc/cdbfileformat.lyx: updated to Lyx 1.3
9027         * doc/test_suite_spec.lyx: updated to Lyx 1.3
9028         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
9029
9030 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
9031
9032         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
9033
9034 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9035
9036         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
9037           additions to the "related tools/documentation" section
9038
9039 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
9040
9041         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
9042
9043 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
9044
9045         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
9046         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
9047
9048 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
9049
9050         * doc/sdccman.lyx: fix double dash and other minor things
9051         * doc/Makefile: fix double dash
9052
9053 2003-05-28  Karl Bongers(patches from Martin Helmling)
9054         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
9055           condition and ignore commands.
9056
9057 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9058
9059         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
9060           is in parts still quite out of date, I did changes as far as I felt makes sense
9061           for a non-native english speaker.
9062           Please feel free to add to the manual or to correct my changes.
9063         * doc/Makefile: undid touching the date of intermediate tex files.
9064
9065 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9066
9067         * doc/sdccman.lyx: Manual has an index now
9068
9069 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
9070
9071         Finalize muluint/mulsint and mululong/mulslong merging:
9072         * device/lib/_mulint.c
9073         * device/lib/_mullong.c
9074         * device/lib/gbz80/mul.s
9075         * device/lib/gbz80/stubs.s
9076         * device/lib/z80/mul.s
9077         * device/lib/z80/stubs.s
9078         * src/SDCCsymt.c (initCSupport)
9079
9080 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9081
9082         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
9083         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
9084           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
9085           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
9086           instead of /Zm500.
9087
9088 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9089
9090         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
9091           the regression tests I'm not brave enough to enable 245.b, 245.c
9092         * doc/sdccman.lyx: added latex preamble for hyperref package.
9093           Using pdflatex this will give you a hyperlinked pdf file with
9094           bookmarks. (prepend '%' before /usepackage if this breaks something)
9095
9096 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9097
9098          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
9099
9100 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
9101
9102         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
9103
9104 2003-05-21    <johan AT balder>
9105
9106         * src/SDCCglue.c (printIval): fixed bug #739934
9107
9108 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9109
9110         Applied patch from bug 737905 (renamed yylineo to mylineno):
9111         * src/altlex.c
9112         * src/SDCCast.c
9113         * src/SDCglobl.h
9114         * src/SDCC.lex
9115         * src/SDCCsymt.c
9116         * src/SDCCval.c
9117         * src/pic16/pcode.c: Cleaned warnings
9118         * src/pic16/pcodeflow.c: Cleaned warnings
9119         * src/pic16/pcoderegs.c: Cleaned warnings
9120
9121 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
9122
9123         * src/pic16/pcode.c: Cleaned warnings
9124         * src/pic16/pcodepeep.c: Cleaned warnings
9125         * src/pic16/ralloc.c: Cleaned warnings
9126
9127 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9128
9129         * doc/sdccman.lyx: fixed bug 739745
9130         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
9131
9132 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
9133
9134         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
9135         it can be defined with CFLAGS when running configure
9136         * src/SDCCmain.c: fixed compiling + linking with object files
9137
9138 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
9139
9140         * configure.in: configure for pic16 port,
9141             added --disable-pic16-port
9142         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
9143         * src/SDCCmain.c: linkOptions is changed to set *,
9144             added if/endif conditional macros to remove options help
9145             messages from optionsTable when a port is not configured, added
9146             support for the PIc16 port in the ports table, when executing
9147             the compiler with no port specified on command line, a default
9148             port is selected with the new macro DEFAULT_PORT which is
9149             defined in port.h, in setDefaultOptions() linkOptions is removed
9150             from initialization assignment, since now it is a set,
9151             parseCmdLine uses setParseWithComma for linkOptions, in
9152             linkEdit() linkOptions are accessed with new function indexSet()
9153             which returns the i'th item of a set variable. See SDCCset.c, in
9154             linkEdit() when calling buildCmdLine(), added linkOptions as
9155             last argument. Now users can pass arguments to gplink via the
9156             -Wl option, main() uses pic16glue() to glue up pic16 programs
9157         * src/SDCCpeeph.c: various changes to support pic16
9158         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
9159             return the i'th item of the set
9160         * src/SDCCset.h: added function prototype for indexSet()
9161         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
9162         * src/clean.mk: added pic16 in CLEANALLPORTS variable
9163         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
9164             added macro DEFAULT_PORT
9165         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
9166         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
9167             generated
9168         * src/pic16/glue.c: commented out some error producing lines
9169         * src/pic16/main.c: __config directives are commented out to stop
9170             gpasm complaining and test the linkage with gplink, _linkCmd and
9171             _asmCmd changed to be more gplink and gpasm friendly
9172         * src/pic16/peeph.def: peep rule 3 is commented out, since it
9173             produced an error when parsed, peep rule 12 is added to utilize
9174             movff, but it is commented out since the pCode does not support
9175             yet a command with 2 address arguments
9176
9177 2003-05-18    <johan AT balder>
9178
9179         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9180         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9181 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
9182
9183         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
9184   Added feature to script commands from file.
9185
9186 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
9187
9188         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
9189         * src/SDCCutil.c: include ctype.h for win32
9190
9191 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
9192
9193         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
9194
9195 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
9196
9197         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
9198   Fixed so you can set breakpoints prior to run, run does not stop
9199   on entry now.  Add tbreak.  Other enhancements and fixes for use
9200   with ddd.
9201
9202 2003-05-12  Borut Razem <borut.razem AT siol.net>
9203
9204         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
9205
9206 2003-05-11  Borut Razem <borut.razem AT siol.net>
9207
9208         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
9209         the path of bin directory, so that PATH is the only env. variable, which has to be set
9210         in case of standard installation.
9211         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
9212         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
9213         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
9214
9215 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9216
9217         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
9218         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
9219         temp files are in the port dir; clean the gen/test directory when
9220         generating new test.c
9221         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
9222         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
9223         * support/regression/tests/zeropad.c: added
9224
9225 2003-05-09    <johan AT balder>
9226
9227         * src/SDCCglue.c: fixed bug #597940
9228
9229 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
9230
9231         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9232   cache sfr, optimize next,step, fix off by one sourceline,
9233   support ddd list function.
9234         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
9235
9236 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9237
9238         * support/regression/HTMLgen.py: added compare_s2f()
9239         * support/regression/Makefile: redo 1.27
9240         * support/regression/generate-cases.py: redo 1.5
9241
9242 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
9243
9244         * support/regression/tests/float.c: workaround 33 bit hex constant
9245         * support/regression/tests/simplefloat.c: fix division for host
9246
9247 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
9248
9249         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
9250         that tame's the PIC's over-aggressive optimizer.
9251
9252 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9253
9254          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
9255          support for MSVC.
9256
9257 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
9258
9259         Initial support for DS80C400. "Hello world" runs on TINIm400
9260         (with polled I/O).
9261
9262 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
9263
9264          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9265          * Some notes on ddd usage added in debugger/README
9266          Martin Helmling adding more features and fixes for ddd GUI debugger.
9267          Code added for nexti, stepi, up, down, and other adjustments.
9268
9269 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
9270
9271         * src/pic/pCodepeep.c non-wildcard asmops are now handled
9272         * src/pic/peeph.def Added two rules to optimize carry manipulation
9273         * src/pic/* removed debug printfs
9274
9275 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
9276
9277         * debugger/mcs51/cmd.c: added header newalloc.h
9278
9279 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
9280
9281         * as/Makefile: new EXEEXT
9282         * as/z80/Makefile: remove trailing slash of BUILDIR
9283         * as/z80/clean.mk: new EXEEXT
9284         * Makefile.common.in: add to CFLAGS (and others), don't replace it
9285         * support/cpp2/Makefile.in: new EXEEXT
9286         * src/pic/glue.c (pic14emitRegularMap): fixed warning
9287
9288 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
9289
9290         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
9291         EXEEXT was introduced to fix all related problems with targets
9292         "clean", "install" and "uninstall"; a couple of further flaws
9293         especially with "clean" have been fixed too
9294         * as/mcs51/Makefile.in
9295         * as/mcs51/clean.mk
9296         * as/z80/Makefile
9297         * Makefile
9298         * clean.mk
9299         * debugger/mcs51/Makefile.in
9300         * debugger/mcs51/clean.mk
9301         * link/z80/Makefile
9302         * link/z80/Makefile.in
9303         * link/z80/clean.mk
9304         * link/Makefile
9305         * packihx/Makefile.in
9306         * packihx/clean.mk
9307         * sim/ucsim/Makefile
9308         * sim/ucsim/clean.mk
9309         * sim/ucsim/avr.src/Makefile.in
9310         * sim/ucsim/avr.src/clean.mk
9311         * sim/ucsim/s51.src/Makefile.in
9312         * sim/ucsim/s51.src/clean.mk
9313         * sim/ucsim/xa.src/Makefile.in
9314         * sim/ucsim/xa.src/clean.mk
9315         * sim/ucsim/z80.src/Makefile.in
9316         * sim/ucsim/z80.src/clean.mk
9317         * sim/ucsim/main_in.mk
9318         * sim/ucsim/packages_in.mk
9319         * sim/ucsim/gui.src/Makefile.in
9320         * sim/ucsim/gui.src/serio.src/Makefile.in
9321         * sim/ucsim/gui.src/serio.src/clean.mk
9322         * src/Makefile.in
9323         * src/clean.mk
9324         * support/cpp2/Makefile.in
9325         * support/cpp2/clean.mk
9326         * support/makebin/Makefile
9327         * support/makebin/clean.mk
9328         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
9329         * doc/sdccman.lyx: --program-suffix no longer needed
9330
9331 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
9332
9333          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
9334          Martin Helmling added support for ddd GUI debugger.
9335          Code added to display assembly, set variables, and other commands
9336          to interface to ddd.
9337
9338 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
9339
9340         * as/Makefile: fix target clean
9341         * as/clean.mk: fix target clean
9342         * as/z80/clean.mk: fix target clean
9343
9344 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
9345
9346         * Makefile.common.in: added  AT EXEEXT AT
9347         * configure.in: removed all mingw32 stuff
9348         * configure: rebuilt from configure.in
9349         * doc/sdccman.lyx: updated section "installation"
9350         * support/scripts/sdcc_mingw32: adapted to configure
9351         * support/scripts/sdcc_cygwin_mingw32: added
9352
9353 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
9354
9355         * src/pic Added object file support for the PIC port
9356         * src/pic Applied patch from Craig Franklin (this started the object file support)
9357         * src/regression Updated the PIC regression tests for object files
9358
9359 2003-04-20  Borut Razem <borut.razem AT siol.net>
9360
9361         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
9362           lklex.c: In function `getfid':
9363           lklex.c:203: warning: array subscript has type `char'
9364         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
9365           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
9366         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
9367           stack handling macros
9368
9369 2003-04-19  Borut Razem <borut.razem AT siol.net>
9370
9371         * "handling space characters in file path" task:
9372         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
9373         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
9374         * support/Util/MySystem.h: make it self-sufficient
9375         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
9376           src/z80/main.c, sdcc/as/mcs51/lklex.c:
9377           handling space characters in file path
9378         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
9379           (it will be used by assemblers, which have their own includes, e.g. gpasm)
9380         * support/Util/MySystem.c: handling space characters in executable's path
9381
9382 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
9383
9384         * as/z80/Makefile: fix permanent rebuild of z80
9385         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
9386         * support/regression/tests/bitfields.c: added Johan's bitfields.c
9387
9388 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
9389
9390         * src/SDCCopt.c: add special case optimization to replace modulo by
9391           a power of two with a bitwise AND.
9392
9393 2003-04-18    <johan AT balder>
9394
9395         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
9396
9397 2003-04-17    <johan AT balder>
9398
9399         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
9400         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
9401
9402 2003-04-13  Borut Razem <borut.razem AT siol.net>
9403
9404         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
9405         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
9406           fixed mingw problem in adl_NORMALIZE_PATH
9407
9408 2003-04-12  Borut Razem <borut.razem AT siol.net>
9409
9410         * fixed "#pragma SAVE/RESTORE can not be nested":
9411         * src/SDCC.lex: reworked pragma handling functions
9412         * sdcc/src/SDCCglobl.h: reworked stack handling macros
9413         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
9414
9415 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9416
9417         * src/SDCCutil.c (pathEquivalent): defined but not used
9418         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
9419         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
9420         * configure: rebuilt from configure.in
9421         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9422         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9423         * device/include/Makefile.in: replace sdcc_datadir
9424         * device/lib/Makefile.in: replace sdcc_datadir
9425         * Makefile.common.in: add LDFLAGS from configure
9426         * packihx/Makefile.in: use LDFLAGS
9427         * src/Makefile.in: use LDFLAGS
9428         * support/cpp2/Makefile.in: add LDFLAGS from configure
9429         * support/makebin/Makefile: use LDFLAGS
9430         * .version: bumped version number to 2.3.5
9431
9432 2003-04-12  Borut Razem <borut.razem AT siol.net>
9433
9434         * completed "different paths" task:
9435         * src/SDCCmacro.c: fixed bug in handling quotes
9436         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
9437         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
9438
9439 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9440
9441         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
9442
9443 2003-04-11 kevin Vigor <kevin AT vigor.nu>
9444
9445         * ds390/gen.c ds390/peeph.def: fix bug 706781
9446
9447 2003-04-11  Borut Razem <borut.razem AT siol.net>
9448
9449         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
9450
9451 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
9452
9453         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
9454         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
9455          set - this bit used to not be set...).
9456         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
9457           bad code in PIC Port
9458         * src/regression/and2.c added to test bug 609268
9459         * src/regression/Makefile added and2.c to regression test
9460
9461
9462 2003-04-08    <johan AT CP255758-A>
9463
9464         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
9465         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
9466         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
9467
9468 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
9469
9470         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
9471         fix bug #487815
9472         * support/cpp2/Makefile.in: fix bug #487815
9473         * configure: rebuilt from configure.in
9474         * Makefile.common.in: docdir changed, new path suffixes
9475         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9476         * sdcc_vc_in.h: reflect changes from sdccconf.h
9477         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
9478         * src/SDCCutil.h: remove BINDIR hack
9479         * doc/sdccman.lyx: update new path hierarchy
9480
9481 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9482
9483         * src/SDCCpeeph.c: added okToRemoveSLOC test
9484
9485 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9486
9487         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
9488
9489 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9490
9491         * src/SDCCpeeph.c: added labelIsReturnOnly test
9492         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
9493
9494 2003-04-05    <johan AT balder>
9495
9496         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
9497         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
9498         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
9499         * src/SDCCast.c: fixed a warning
9500         * src/SDCCast.h: fixed a warning
9501         * src/SDCCicode.c (operandFromAst): fixed a warning
9502
9503 2003-04-04    <johan AT balder>
9504
9505         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
9506         * src/SDCCast.c (decorateType): fixed bug #715076
9507         * src/SDCC.y: fixed bug #702907
9508
9509 2003-04-03    <johan AT balder>
9510
9511         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
9512         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
9513         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
9514         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
9515         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
9516
9517 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
9518
9519         * _decdptr.c: fix return values
9520         * _gptrget.c: fix return values
9521         * _gptrgetc.c: fix return values
9522         * _gptrput.c: fix return values
9523         * _mulint.c: fix return values
9524         * as/z80/Makefile: fix 'make -j' problem
9525
9526 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
9527
9528         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
9529         * configure.in: big cleanup, updated to autoconf 2.5x
9530         * configure: rebuilt from configure.in
9531         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9532         * sdcc_vc_in.h: reflect changes from sdccconf.h
9533         * doc/Makefile: fixed a flaw in "make install"
9534
9535 2003-04-02    <johan AT balder>
9536
9537         * src/ds390/gen.c (genCmp): no comments
9538         * src/mcs51/gen.c (genCmp): no comments
9539         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
9540         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
9541
9542 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
9543
9544         * support/regression/generate-cases.py: place generated file in given sub directory
9545         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
9546         * support/regression/Makefile: improvements for 'make -j';
9547         side effect: it's simpler and faster now
9548
9549 2003-03-31  Borut Razem <borut.razem AT siol.net>
9550
9551         * src/z80/main.c: link-{port} and as-{port} defined without path
9552         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
9553
9554 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
9555
9556         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
9557
9558 2003-03-30  Borut Razem <borut.razem AT siol.net>
9559
9560         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
9561           changed type of list parameter to set
9562         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
9563         * src/port.h: changed type of do_assemble() parameter to set
9564         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
9565           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
9566           definition of "cppoutfilename" macro with NULL value in preProcess()
9567         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
9568         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
9569         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
9570           replaced with set *binPathSet
9571         * shash_add() deallocates the item, if allready exsists, before adding the new one
9572         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
9573
9574 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
9575
9576         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
9577           a nested for loop bug in the PIC port
9578         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
9579           for loops
9580
9581 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
9582
9583         * support/Util/dbuf.h: remove C++ stuff to make it portable
9584
9585 2003-03-28  Borut Razem <borut.razem AT siol.net>
9586
9587         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
9588           literal strings in stringLiteral()
9589         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
9590         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
9591           to the project
9592
9593 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
9594
9595         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
9596
9597 2003-03-26    <johan AT balder>
9598
9599         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
9600         * src/ds390/gen.c (saveRegisters): catched symbol abuse
9601         * src/SDCCast.c (decorateType): fixed " -v < 3"
9602
9603 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
9604
9605         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
9606         Added Lenny Story's debug infrastructure changes:
9607         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
9608         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
9609         * src/cdbFile.c: added
9610         * src/SDCCdebug.c: added
9611         * src/SDCCdebug.h: added
9612         * src/SDCCast.c (createFunction)
9613         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
9614         * src/SDCCmain.c (parseCmdLine, main)
9615         * src/SDCCmem.c (redoStackOffsets)
9616         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
9617         * src/SDCCsymt.h
9618         * src/common.h
9619         * src/avr/gen.c (genAVRCode)
9620         * src/ds390/gen.c (gen390Code)
9621         * src/mcs51/gen.c (gen51Code)
9622         * src/pic/gen.c (genpic14Code)
9623         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
9624         * src/xa51/gen.c (genXA51Code)
9625         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
9626
9627 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9628
9629         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
9630         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
9631
9632 2003-03-22    <johan AT balder>
9633
9634         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
9635
9636 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
9637
9638         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
9639         * doc/cdbfileformat.lyx: added, written by Lenny Story
9640         * doc/Makefile: added cdbfileformat.lyx
9641         * doc/clean.mk: added cdbfileformat.lyx
9642
9643 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
9644
9645         * src/mcs51/peeph.def: fix bug #705773
9646
9647 2003-03-20    <johan AT balder>
9648
9649         An sfr/sbit can have an "at #" AND an initializer
9650         * src/SDCCsymt.c (checkSClass):
9651         * src/SDCCmem.c (allocGlobal):
9652         * src/SDCCmem.c (allocLocal):
9653         * src/SDCCast.c (createBlock):
9654
9655 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
9656
9657         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
9658
9659 2003-03-16    <johan AT balder>
9660
9661         Undid the hackup of const and volatile, the problem is much bigger
9662         * src/SDCC.y:1.65
9663         * src/SDCCast.c:1.171
9664         * src/SDCCglue.c:1.138
9665         * src/SDCCicode.c:1.146
9666         * src/SDCCsymt.c:1.150
9667         * src/SDCCval.c:1.65
9668
9669 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
9670
9671         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
9672         * src/ds390/gen.c (genAddrOf): fixed bug #704087
9673
9674 2003-03-13    <johan AT balder>
9675
9676         Hackup const and volatile modifiers in type chains a bit:
9677         * src/SDCC.y:1.63
9678         * src/SDCCast.c:1.169
9679         * src/SDCCglue.c:1.136
9680         * src/SDCCicode.c:1.143
9681         * src/SDCCsymt.c1.146
9682         * src/SDCCsymt.h1.59
9683         * src/SDCCval.c:1.63
9684
9685 2003-03-12    <johan AT balder>
9686
9687         * src/SDCCBBlock.h: more LRH debugging junk
9688         * src/SDCCcflow.h: more LRH debugging junk
9689         * src/SDCCloop.c: more LRH debugging junk
9690         * src/SDCC.y (struct_declaration): fixed bug #697590
9691         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
9692         * src/ds390/gen.c (aopForRemat): fixed bug #700031
9693         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
9694
9695 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9696         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
9697         test function names must now match exactly).
9698         * src/SDCCcse.c: added special case in findCheaperOp to allow
9699         extending a short integer. Makes less awful code for bug 700121 test case.
9700
9701 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9702
9703         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
9704         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
9705
9706 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9707
9708         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
9709         actually called (operandsNotEqual() was called for all
9710         operandsNotEqualX tests).
9711
9712 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9713
9714         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
9715         with shorter literals. Fixes bug 700121.
9716
9717 2003-03-11    <johan AT balder>
9718
9719         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
9720
9721 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
9722
9723         * src/SDCCloop.c (mergeRegions): an evil beast is dead
9724         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
9725
9726 2003-03-10  Borut Razem <borut.razem AT siol.net>
9727
9728         * src/SDCCmain.c: pipe preprocessor's output
9729         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9730         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9731         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9732         which closes all pipes in pipeSet set
9733         * src/SDCCset.c: free deleted item in function deleteSetItem()
9734         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9735         moved from z80 to src subproject
9736         * .version: increased version number to 2.3.4
9737
9738 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
9739
9740         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
9741         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
9742         * support/regression/ports/xa51/spec.mk: fix typo
9743
9744 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
9745
9746         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
9747
9748 2003-03-09  Borut Razem <borut.razem AT siol.net>
9749
9750         * src/SDCCmain.c: pipe preprocessor's output
9751         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9752         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9753         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9754         which closes all pipes in pipeSet set
9755         * src/SDCCset.c: free deleted item in function deleteSetItem()
9756         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9757         moved from z80 to src subproject
9758
9759 2003-03-09  Borut Razem <borut.razem AT siol.net>
9760
9761         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
9762         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
9763         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
9764         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
9765         * src/SDCCglobl.h: unification of WIN32 native definitions
9766
9767 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9768
9769         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
9770
9771 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9772
9773         * src/configure.in:   check for endianess (even while cross-compiling)
9774         * src/configure:      check for endianess (even while cross-compiling)
9775         * src/configure_in.h: check for endianess (even while cross-compiling)
9776         * src/avr/gen.c:        remove old endianess stuff
9777         * src/mcs51/gen.c:      remove old endianess stuff
9778         * src/ds390/gen.c:      remove old endianess stuff
9779         * src/pic/gen.c:        remove old endianess stuff
9780         * src/pic/genarith.c:   remove old endianess stuff
9781         * src/pic/glue.c:       fix endianess check
9782         * src/pic16/gen.c:      remove old endianess stuff
9783         * src/pic16/genarith.c: remove old endianess stuff
9784         * src/pic16/glue.c:     fix endianess check
9785         * src/xa51/gen.c:       remove old endianess stuff
9786         * src/z80/gen.c:        fix endianess check
9787         * src/SDCCglue.c:       fix endianess check
9788         * src/ds390/peeph.def: fix bug 700036
9789
9790 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9791
9792         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
9793         * src/configure: find appropriate data-types on host for SDCC's int and long
9794         * src/configure.in: find appropriate data-types on host for SDCC's int and long
9795         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
9796         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
9797
9798 2003-03-07    <johan AT balder>
9799
9800         Just a big NOOP:
9801                 some minor cleanups before the big shot
9802                 OP_DEFS and OP_USES now use Kevin's protection
9803                 new option --nolabelopt
9804
9805         * src/SDCCBBlock.c:
9806         * src/SDCCast.c,:
9807         * src/SDCCcflow.c:
9808         * src/SDCCcse.c:
9809         * src/SDCCicode.c:
9810         * src/SDCCicode.h:
9811         * src/SDCClabel.c:
9812         * src/SDCCloop.c:
9813         * src/SDCCmain.c:
9814         * src/ds390/ralloc.c:
9815         * src/mcs51/ralloc.c:
9816         * src/pic/ralloc.c:
9817         * src/xa51/ralloc.c:
9818         * src/z80/ralloc.c:
9819
9820 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
9821
9822         * src/pic/pcode.c (get_op): fix 64 bit warnings
9823         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
9824         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
9825         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
9826         * support/regression/tests/malloc.c: fix 64 bit warnings
9827
9828 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
9829
9830         * src/mcs51/gen.c (genMinus): fixed bug 696436
9831
9832 2003-03-02  Borut Razem <borut.razem AT siol.net>
9833
9834         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
9835
9836 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
9837
9838         * configure.in: test for mkstemp
9839         * sdccconf_in.h: add HAVE_MKSTEMP
9840
9841 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
9842
9843         * device/include/ctype.h: removed warning while using --stack-auto
9844         * device/include/malloc.h: removed warning while using --stack-auto
9845         * device/include/string.h: removed warning while using --stack-auto
9846
9847 2003-02-23  Borut Razem <borut.razem AT siol.net>
9848
9849         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
9850         because NDEBUG is defined (see man assert)
9851         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
9852
9853 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9854
9855         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
9856         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
9857
9858 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9859
9860         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
9861         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
9862
9863 2003-02-18    <johan AT balder>
9864
9865         * as/mcs51/asmain.c (asmbl): module can start with a digit
9866         * as/z80/asmain.c (asmbl): module can start with a digit
9867
9868 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
9869
9870         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
9871         * src/asm.c: fix pipe() for Mingw32
9872
9873 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
9874
9875         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
9876         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
9877         make -V work again; --c1mode reads now from stdin
9878         * doc/sdccman.lyx: added --c1mode
9879         * support/Util/SDCCerr.c: new messages for c1 mode
9880         * support/Util/SDCCerr.h: new messages for c1 mode
9881         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
9882
9883 2003-02-15    <johan AT balder>
9884
9885         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
9886
9887 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
9888
9889         * doc/sdccman.lyx: Environment variables, -o and other minor things
9890
9891 2003-02-14    <johan AT balder>
9892
9893         * src/xa51/main.c: before anyone really tries to use it :)
9894
9895         * Install doc's in share/sdcc/doc
9896         * removed some obsolete files
9897         * Do a proper make distclean and uninstall
9898         M Makefile.common.in
9899         R sdccbuild.sh
9900         M as/Makefile
9901         M device/include/Makefile.in
9902         M device/lib/Makefile.in
9903         M doc/sdccman.lyx
9904         M link/Makefile
9905         M sim/ucsim/doc/Makefile.in
9906         M src/clean.mk
9907         R src/avr/peeph.rul
9908         R src/xa51/peeph.rul
9909         M support/cpp2/Makefile.in
9910         M support/makebin/Makefile
9911
9912
9913 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
9914
9915         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
9916
9917 2003-02-10  Borut Razem <borut.razem AT siol.net>
9918
9919         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
9920         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
9921         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
9922         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
9923         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
9924         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
9925         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
9926         src/z80/Makefile.bcc: Borland Makefile cleanup
9927         * as/z80/Makefile.bcc: Added Borland Makefile
9928         * support/cpp2/borland.h: Removed
9929
9930 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
9931
9932         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
9933         * src/SDCC.lex: new pragma NOIV
9934         * src/SDCCglobl.h: new pragma NOIV
9935         * src/SDCCmem.c: new pragma NOIV
9936
9937 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9938
9939         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
9940
9941 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9942
9943         * src/SDCCmain.c: signal handling is switched off by --debug
9944         * doc/Makefile: small fix for install; use clean.mk again
9945         * doc/clean.mk: clean *.pdf and *.html too
9946
9947 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
9948
9949         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
9950         * device/lib/printfl.c: fix a ds390 bug by making it portable
9951         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
9952         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
9953         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
9954         * debugger/mcs51/cmd.c: converted multi-line string literals
9955         * sim/ucsim/globals.cc: converted multi-line string literals
9956         * src/SDCCmain.c: introduced signal handler to remove temp files
9957         * doc/Makefile: small tweaks, implement clean
9958         * doc: removed generated files
9959
9960 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9961
9962         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
9963         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
9964         Address Record is not correctly generated for DS390."
9965
9966 2003-02-02  Borut Razem <borut.razem AT siol.net>
9967
9968         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
9969         * as/mcs51/asm.h: fixed compilation with Borland C
9970         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
9971         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
9972         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
9973         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
9974         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
9975         src/z80/Makefile.bcc: delete $(LIB) only if exist
9976         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
9977
9978 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
9979
9980         * device/include/malloc.h: introduced NULL
9981         * device/include/string.h: introduced NULL
9982         * device/include/stdlib.h: introduced NULL
9983         * device/lib/_memcpy.c: removed NULL
9984         * device/lib/_strcat.c: removed NULL
9985         * device/lib/_strchr.c: removed NULL
9986         * device/lib/_strcmp.c: removed NULL
9987         * device/lib/_strcpy.c: removed NULL
9988         * device/lib/_strcspn.c: removed NULL
9989         * device/lib/_strlen.c: removed NULL
9990         * device/lib/_strncat.c: removed NULL
9991         * device/lib/_strncmp.c: removed NULL
9992         * device/lib/_strncpy.c: removed NULL
9993         * device/lib/_strpbrk.c: removed NULL
9994         * device/lib/_strrchr.c: removed NULL
9995         * device/lib/_strspn.c: removed NULL
9996         * device/lib/_strstr.c: removed NULL
9997         * device/lib/_strtok.c: removed NULL
9998         * device/lib/malloc.c: removed NULL, include own header
9999
10000 2003-02-02    <johan AT balder>
10001
10002         * 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
10003         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
10004         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
10005         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
10006         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
10007         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
10008
10009 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10010
10011         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
10012         area 'DATA'"
10013
10014 2003-02-01    <johan AT balder>
10015
10016         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
10017
10018 2003-01-31    <johan AT CP255758-A>
10019
10020         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
10021
10022 2003-01-30    <johan AT balder>
10023
10024         * src/SDCCBBlock.c: automatic bug detection
10025         * src/SDCCicode.c: automatic bug detection
10026
10027 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10028
10029         * src/SDCCglobl.h:   now --xram-size 0 works
10030         * src/SDCCmain.c:    now --xram-size 0 works
10031
10032 2003-01-29    <johan AT balder>
10033
10034         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
10035
10036 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10037
10038         * as/mcs51/aslink.h: Added options --xram-size and --code-size
10039         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
10040         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
10041         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
10042         * src/SDCCglobl.h:   Added options --xram-size and --code-size
10043         * src/SDCCmain.c:    Added options --xram-size and --code-size
10044
10045 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
10046
10047         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
10048         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
10049
10050 2003-01-27    <johan AT balder>
10051
10052         * src/SDCC.y: fixed bug #613764
10053
10054 2003-01-26    <johan AT balder>
10055
10056         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
10057         * src/SDCCsymt.h: fixed bug #673374
10058         * src/SDCCglue.c: fixed bug #661910
10059         * src/SDCCast.c: fixed bug #458099 and 673374
10060
10061 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
10062
10063         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
10064         * as/mcs51/strcmpi.h: added
10065         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
10066         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
10067         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
10068         * as/mcs51/assym.c: strcmpi -> as_strcmpi
10069         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
10070         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
10071         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
10072         * as/mcs51/Makefile.aslink: new module strcmpi
10073         * as/mcs51/Makefile.asx8051: new module strcmpi
10074         * as/mcs51/Makefil.bcc: new module strcmpi
10075         * as/mcs51/Makefile.in: new module strcmpi
10076         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
10077
10078 2003-01-26    <johan AT balder>
10079
10080         * src/SDCCglue.c: reverted back to 1.124
10081         * src/SDCCast.c: reverted back to 1.156
10082         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
10083
10084 2003-01-25    <johan AT balder>
10085
10086         * src/SDCCglue.c: A better fix for bug #661910
10087         * src/SDCCast.c: A better fix for bug #661910
10088         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
10089
10090 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10091
10092         * src/Makefile.in: remove spawn.o
10093         * src/SDCCmain.c: remove spawn.h
10094         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
10095         * src/spawn.c: removed
10096         * src/spawn.h: removed
10097         * support/regression/ports/ds390/spec.mk: link with -r
10098
10099 2003-01-24    <johan AT CP255758-A>
10100
10101         * src/ds390/gen.c (aopOp): fixed bug #667458
10102         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
10103         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
10104         (createIvalCharPtr): an ival doesn't always have a storage class anymore
10105
10106 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10107
10108         * src/mcs51/peeph.def: better assembler identation by Frieder
10109         * src/mcs51/gen.c: better assembler identation by Frieder
10110
10111 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
10112
10113         * as/z80/string.h: removed for gcc 3.2
10114         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
10115         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
10116
10117 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10118
10119         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
10120         * src/SDCCpeeph.c (replaceRule): fix bug #663503
10121         * support/regression/Makefile: separate temp files for ports
10122         * support/regression/generate-cases.py: separate temp files for ports
10123         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10124         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10125
10126 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10127
10128         * moved tinitalk to device/examples/ds390
10129
10130 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
10131
10132         * as/mcs51/lkmem.c: rflag is for DS390
10133         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
10134         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
10135                          (linkEdit): move mem- and map-files the same way as ihx-files
10136         * src/z80/main.c (_setDefaultOptions): removed --generic
10137         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
10138         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
10139         * src/pic/glue.c (picglue): --c1mode works again
10140         * src/pic16/glue.c (pic16glue): --c1mode works again
10141         * src/asm.c (printCLine): fix #660034
10142
10143 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
10144
10145         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
10146         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
10147         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
10148         * as/mcs51/lkmem (summary): better fix for sp problem
10149         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
10150         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
10151         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
10152                                               remove --stack-after-data
10153
10154 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
10155
10156         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
10157         * src/SDCCutil.c (join): ugly bug: missing '\0'
10158         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
10159
10160 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10161
10162         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
10163         * src/port.h: typo
10164         * src/pic/main.c (_asmCmd): gpasm supports -o
10165         * src/z80/main.c: more general macros
10166         * device/lib/Makefile.in: remove intermediate files
10167
10168 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10169
10170         * .version: Bumped version number to 2.3.3
10171         * src/SDCCBBlock.c: new option -o
10172         * src/SDCCglobl.h: new option -o
10173         * src/SDCCglue.c: new option -o
10174         * src/SDCCmain.c: new option -o
10175         * src/asm.c: new option -o
10176         * src/ds390/main.c: new option -o
10177         * src/pic/glue.c: new option -o
10178         * src/pic/pcode.c: new option -o
10179         * src/pic/ralloc.c: new option -o
10180         * src/pic16/glue.c: new option -o
10181         * src/pic16/pcode.c: new option -o
10182         * src/pic16/ralloc.c: new option -o
10183         * src/z80/main.c: new option -o
10184         * device/lib/Makefile.in: use -o
10185         * support/regression/ports/ds390/spec.mk: use -o
10186         * support/regression/ports/gbz80/spec.mk: use -o
10187         * support/regression/ports/mcs51/spec.mk: use -o
10188         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
10189         * support/regression/ports/z80/spec.mk: use -o
10190         * support/regression/ports/ucz80/spec.mk: use -o
10191         * support/regression/ports/xa51/spec.mk: use -o
10192         * support/regression/fwk/lib/timeout.c: fix usage string
10193
10194 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
10195         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
10196
10197 2003-01-07    <johan AT balder>
10198
10199         * src/SDCCast.c (decorateType): fixed bug #600035
10200
10201 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
10202         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
10203         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
10204         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
10205         * src/pic/pcode.c: outcommented unused variable to remove warnings
10206         * src/pic/ralloc.c: outcommented unused variable to remove warnings
10207
10208 2003-01-06    <karl AT turbobit.com>
10209         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
10210    regression tests.
10211
10212 2003-01-06    <johan AT balder>
10213
10214         * src/SDCCicode.c: fixed array add
10215
10216 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
10217         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
10218         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
10219
10220 2003-01-04    <johan AT balder>
10221
10222         * src/SDCCval.c (getNelements): fixed the initialized array of structures
10223
10224 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10225         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
10226
10227 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10228         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
10229         * support/regression/tests/bug-524697.c: fit mem usage into 8032
10230
10231 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10232         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
10233
10234 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
10235         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
10236
10237 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
10238         * src/mcs51/main.c: removed {bindir}{sep} from aslink
10239
10240 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10241
10242     * in \sdcc\as\mcs51\ changed these files in order to create an
10243     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
10244     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
10245     following files to include the previous two files: aslink.dsp,
10246     Makefile.aslink, Makefile.bcc, and Makefile.in.
10247
10248     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
10249     .adb instead of .cdb
10250
10251 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10252
10253         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
10254         value from option --iram-size.
10255
10256 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10257
10258         * \sdcc\as\mcs51\lklist.c: added boundary check before using
10259         dram[] array.
10260
10261 2002-09-18    <wiml AT hhhh.org>
10262
10263         * SDCClrange.h: exposed setFromRange() and setToRange()
10264         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
10265           packRegsForAccUse() (bug 542397)
10266         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
10267           multiple times and emitting the fetch operations more than once
10268           added aopGetUsesAcc() function to allow binary operators to
10269           fetch their operands in the correct order; made genMinus() emit
10270           compact code for X = LITERAL - Y
10271
10272 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10273         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
10274         sprintf() in line 1267.
10275
10276 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10277         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
10278         like ports.
10279
10280 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10281         Changes to aslink (All the changes are marked with 'JCF'):
10282
10283         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
10284         summary().
10285
10286         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
10287         area BSEG.  Also moves, if possible, the DATA area down into the internal
10288         ram so more space is available.
10289
10290         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
10291         sflag.
10292
10293         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
10294         not bytes.  Function summary() which creates a memory usage summary
10295         file with extension .mem.  Reports of overlaping stack and small stack
10296         size.  If the space for the stack is less than 16 bytes aslink trows a
10297         warning.
10298
10299         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
10300         the 8051.  Option 'y' for memory summary output file.
10301
10302         Changes to sdcc (All the changes are marked with 'JCF'):
10303
10304         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
10305
10306         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
10307         overlaying area for it (uses RegBankUsed[4]).
10308
10309         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
10310         bank zero as used by default.  By default aslink locates the stack
10311         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
10312         the creation of the .mem file.  Delegates the allocation of data area
10313         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
10314         the begining of the stack area to aslink.
10315
10316         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
10317         glue() in SDCCglue.c creates an area for it.
10318
10319 2002-09-03  Borut Razem <borut.razem AT siol.net>
10320         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
10321         sdcc/src/pic/glue.c:
10322         introduced atexit() handler for teporay files removal in case of
10323         errors, assertions, ...
10324
10325 2002-08-29  Borut Razem <borut.razem AT siol.net>
10326         * sdcc/support/cpp2/auto-host_vc_in.h:
10327         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
10328         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
10329         Maybe there is a similar problem with BORLANDC? It should be checked!
10330
10331         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
10332         corrected improper use of assert: the assignment to clr variable was done inside the assert.
10333         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
10334         was not executed, and the compiler (cl) launched a warning:
10335         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
10336
10337 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
10338         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
10339
10340 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
10341         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
10342
10343         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10344           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
10345           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
10346           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10347           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
10348           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
10349           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
10350         - added Release configuration in VS projects
10351         - review of compiler an linker options
10352         - VC .exe files are generated in bin_vc directory, not to interfere
10353           with binaries generated from other projects (cygwin, mingw, bcc ...)
10354
10355         * sdcc/src/yacc.dsp: added
10356
10357         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
10358         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
10359         and insert the version number definitions from .version
10360
10361         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
10362
10363         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
10364         added - genarate auto-host.h using auto-host_vc_in.h as template
10365
10366         * sdcc/sdcc_vc.h,
10367         removed from CVS, generated automatically
10368
10369 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
10370         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
10371
10372 2002-08-11  Borut Razem <borut.razem AT siol.net>
10373         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
10374
10375 2002-08-10  Borut Razem <borut.razem AT siol.net>
10376         * src/SDCCmain.c (main):
10377         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
10378         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
10379         The consequence was that some temporary files were not removed.
10380
10381         * src/SDCCglue.c:
10382         unification of code in functions tempfilename() and tempfile():
10383         function tempnam() is defined in Visual Studio 6.0 and .NET
10384
10385         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
10386
10387         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10388           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
10389         - removed compiler command line option /WX: Treats all warnings as errors
10390         - update a list of source files, included into the project
10391
10392         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10393           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
10394         changed project type to Generic Project so that can be correcly converted to VS.NET project
10395
10396         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
10397
10398         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
10399
10400         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
10401
10402         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
10403         added return 0 statements after assert() to make compiler happy
10404
10405         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
10406         added newline in the def file to keep MSC compiler satisfied
10407
10408         * sdcc/src/z80/gen.c:
10409         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
10410           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
10411         - solved MSC error in function aopDump()
10412
10413         * sdcc_vc.h: define PREFIX as "\\sdcc"
10414
10415 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
10416         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
10417
10418 2002-06-22  Scott Dattalo <scott AT dattalo.com>
10419         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
10420         - Rewrote the register banking algorithm.
10421         - Added pCode live-range analysis to registers (for now, only non-used and
10422         singly-used registers optimized away)
10423
10424         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
10425
10426         * 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.
10427
10428 2002-05-10  Scott Dattalo <scott AT dattalo.com>
10429         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
10430
10431 2002-04-22  Michael Hope  <michaelh AT vroom>
10432
10433         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
10434
10435         * configure.in (DD_COPT): Added include support required for gbdk.
10436
10437         * .version: Bumped version number just to increase it.
10438
10439         * src/SDCCmain.c: Added -nostdinc to the default options.
10440
10441 2002-04-15  Michael Hope  <michaelh AT vroom>
10442
10443         * device/lib/z80/printf.c (sprintf): Added.
10444
10445         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
10446
10447         * src/z80/peeph.def: Added transpose redundent load rule.
10448
10449         * src/z80/main.c: Added force callee saves for jaune.
10450
10451         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
10452
10453         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
10454
10455 2002-03-28  Johan Knol  <johan AT balder>
10456
10457         * src/SDCCval.c: fixed bug #532436
10458
10459 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10460         * /src/port.h:
10461         Added "char *Processor" field to the port structure.
10462
10463         * /src/SDCCmain.c:
10464         Added -p option. Allows port dependent processor to be specified.
10465
10466         * all ports:
10467         Initialized the new field char *Processor field to NULL in all ports
10468
10469         * /src/pic/*:
10470         Compiler generated registers for interrupt context saving
10471         were not getting allocated.
10472
10473 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
10474
10475         * /src/SDCCast.c:
10476         Fixed left shift. Will promote the left side of a left shift
10477         if a) left shifting more than size of operand or b) when assigned
10478         to something size > size of left side
10479
10480 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10481         * src/pic/*
10482         tons of changes. Register allocation has been
10483         rewritten. Added customization for the various PICs. Flow
10484         analysis is restructured. ...
10485
10486         * src/pic/device.h:
10487         Added
10488
10489         * src/pic/device.c:
10490         Added. device.c is a PIC port hack to accomodate variations
10491         in PIC devices.
10492
10493 2002-03-13  Michael Hope  <michaelh AT vroom>
10494
10495         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
10496
10497 2002-03-04  johanknol  <johanknol AT manik>
10498
10499         * /src/SDCCval.c: fixed
10500
10501         const unsigned char arr[][2] = { { 0, 1 } };
10502         t18.c:1: error: Initializer element is not constant
10503
10504 2002-03-04  bela  <bela AT manik>
10505
10506         * /device/include/mcs51reg.h:
10507         ds89c420 register definition update
10508
10509 2002-03-03    <johan AT FRIJA>
10510
10511         * support/Util/SDCCerr.c: did something, but don't no why anymore
10512
10513         * support/regression/tests/bug-524691.c: made it a little less shy
10514
10515         * src/SDCCast.c (decorateType): fixed bug #524697
10516
10517         * src/SDCCast.c: made some lineno improvements
10518
10519         * src/SDCCval.c (getNelements): changed warning to error
10520
10521         * src/SDCCglue.c (printIvalArray): changed warning to error
10522
10523         * src/SDCCicode.c: fixed a warning for mingw
10524
10525         * src/SDCCast.c (decorateType): fixed the << promotion for ops
10526
10527         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
10528
10529 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
10530
10531         * src/ds390/peeph.def:
10532         Added some more peephole rules
10533
10534         * src/ds390/gen.c: Various fixes & enhancements
10535
10536         * src/SDCClrange.c, src/SDCClrange.h:
10537         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
10538
10539         * src/ds390/ralloc.c:
10540         various fixes & enhancements (ds390) specific
10541
10542         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
10543         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
10544         from rallocs.
10545
10546         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
10547
10548 2002-03-02    <johan AT FRIJA>
10549
10550         * src/SDCCast.c (decorateType): fixed bug #524708
10551
10552         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
10553
10554         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
10555
10556 2002-03-01  Michael Hope  <michaelh AT vroom>
10557
10558         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
10559
10560         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
10561
10562 2002-03-01    <johan AT FRIJA>
10563
10564         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
10565
10566         * src/SDCCast.c (decorateType): fixed bug #524209
10567
10568         * src/SDCCval.c (valNot): fixed bug #524195
10569
10570 2002-02-26    <johan AT balder>
10571
10572         * src/xa51/gen.c: fixed a warning
10573
10574         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
10575
10576         * src/SDCCast.c (decorateType): fixed bug #522534
10577
10578 2002-02-23    <johan AT balder>
10579
10580         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
10581
10582 2002-02-22    <johan AT balder>
10583
10584         * src/SDCCast.c: fixed bug #514865
10585
10586         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
10587
10588 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
10589
10590         * sdcc/src/SDCCloop.c:
10591         Previous fix was not good. basic blocks that have "break" or "return" are
10592         not really partof a loop , but live ranges used in these blocks should
10593         be live thru the entire loop, so set partOfLoop but don't add them to
10594         loop region
10595
10596 2002-02-21    <johan AT FRIJA>
10597
10598         * src/SDCCcse.c: fixed bug #514308
10599
10600 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
10601
10602         * src/SDCCloop.c:
10603         Fixed BUG #519583. If a conditional block ended in a return/break
10604         statement inside a loop, it was not being considered part of the loop.
10605
10606         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
10607
10608 2002-02-10  Karl Bongers <karl AT turbobit.com>
10609
10610         * debugger/*:
10611         Fixed up SDCDB debugger somewhat.  Updated debugger/README
10612         with lots of comments and notes.
10613
10614         * device/examples/test2.c:
10615         Fix bug, "red" variable not being initialized(compiler complained).
10616
10617         * device/examples/Makefile, examples/test3.c:
10618         Add Makefile in device/examples folder, compiles test3.c
10619         for use as a multiple module SDCDB test case.
10620
10621         * sim/ucsim/cmd.src/cmdset.cc:
10622         Took out debug printfs in ucsim "next" command.
10623
10624         * sim/ucsim/xa.src:
10625         Karl and Johan start ucsim XA support.  Most dissassembly working,
10626         about 75% emulation done(plenty of work remaining).
10627
10628         * sim/ucsim/z80.src:
10629         Add Z80 support to ucsim, add test-ucz80 regression test,
10630         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
10631         Notice z80 compiler fails on examples/test3.c/crc code.
10632
10633 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
10634
10635         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
10636         Added support for --parms-in-bank1
10637
10638         * src/ds390/peeph.def:
10639         added a few more peephole optimzations
10640
10641         * src/ds390/main.c:
10642         1) added __builtin_inp & __builtin_outp used to read in data of given length
10643            from a memory mapped port
10644         2) added __builtin_memcmp
10645         3) added __builtin_swapw swap bytes of a short
10646
10647         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
10648         1) handle multiple send & receives from register bank1
10649         2) ralloc can now allocate DPTR1 to some liveRanges
10650
10651         * src/SDCCsymt.c, src/SDCCsymt.h:
10652         changes to handle multiple sends & receives
10653
10654         * src/SDCCptropt.h:
10655         added some pointer arithmetic optimization
10656
10657         * src/SDCCptropt.c:
10658         added some pointer arithmetic optimizations but not stable yet so not
10659         called from anywhere (will get this working shortly)
10660
10661         * src/SDCCopt.c: fixed for multiple sends & receives
10662
10663         * src/SDCCmain.c:
10664         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
10665         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
10666            set preprocessor defines (depending on options)
10667
10668         * src/SDCCicode.c, src/SDCCicode.h:
10669         changes made to handle multiple sends & receives
10670
10671         * src/SDCCglobl.h:
10672         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
10673
10674         * src/SDCCcse.c, src/SDCCcse.h:
10675         added function findbackward def (to be used in upcoming optimization)
10676
10677         * src/SDCCcflow.c, src/SDCCcflow.h:
10678         added function returnAtEnd - to determine if a basic block terminates with
10679         a RETURN iCode
10680
10681         * src/SDCCast.c, src/SDCCast.h:
10682         added option parms-in-bank1
10683
10684         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
10685         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
10686         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
10687         adjusted for --parms-in-bank1 option
10688
10689         * device/include/string.h:
10690         donot redefine "reentrant" keyword
10691
10692         * device/include/ds80c390.h: Added some more SFRs
10693
10694 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
10695
10696         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
10697
10698 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
10699
10700         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
10701
10702 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
10703
10704         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
10705
10706 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
10707
10708         * Added --xram-movc option
10709
10710 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
10711
10712         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
10713
10714 2002-01-11  Johan Knol
10715
10716         * Added math lib of Jesus Calvino-Fraga
10717
10718 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
10719
10720         * src/SDCCmain.c (processFile): fix processing of ../../src.c
10721         * support/regression/Makefile: new target test-mcs51-stack-auto
10722         * support/regression/ports/mcs51-stack-auto/spec.mk: added
10723
10724 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10725
10726         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
10727
10728 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10729
10730         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
10731
10732 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
10733
10734         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
10735
10736         * src/SDCCglue.h: add definition for printIvalChar()
10737
10738 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10739
10740         * src/SDCCast.c: fix #498138 by Johan
10741
10742         * src/SDCCglue.c: fix #498138 by Johan
10743
10744 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10745
10746         * support/regression/Makefile: fix clean
10747
10748         * support/regression/ports/ds390/support.c: fix transmission of last character
10749
10750 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
10751
10752         * /sdcc/src/ds390/gen.c:
10753         a) improved computing address of stack variable
10754         b) took out some #if 0 code
10755         c) improved parmBytes adjustment
10756         d) improved genPlusIncr & genMinusIncr
10757         e) genCmp could generate bad code (when left assigned to DPTR)
10758         f) Fixed bug in hasInc
10759
10760         * /sdcc/src/ds390/ralloc.c:
10761         a) packRegsForSupport could mess up live information (Fixed)
10762         b) packRegsDPTRuse could be incorrect for left & right shift
10763
10764         * /sdcc/src/mcs51/ralloc.c:
10765         packRegsForSupport could mess up the live information (Fixed)
10766
10767         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
10768
10769         * /sdcc/src/SDCCast.c:
10770         can reverse a loop even if function call is present as long
10771         as the loop control variable is local & is not passed as parameter
10772
10773 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10774
10775         * /sdcc/ChangeLog: *** empty log message ***
10776
10777         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
10778         More builtin function additions for TININative
10779
10780         * /sdcc/src/ds390/ralloc.c:
10781         Had broken the regression testsuite
10782
10783         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
10784
10785         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
10786         Added funcattr hasStackParms will be set for reentrant functions when there
10787         are paramteres on the stack, this helps in minimizing frame pointer generation
10788         typeFromStr can handle function pointers now
10789
10790         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
10791         *** empty log message ***
10792
10793 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10794
10795         * /src/ds390/gen.c, /src/ds390/main.c:
10796         More builtin function additions for TININative
10797
10798         * /src/ds390/ralloc.c:
10799         Had broken the regression testsuite
10800
10801         * /src/SDCCast.c: Fixed a bug in dumptree
10802
10803         * /src/SDCCsymt.c, /src/SDCCsymt.h:
10804         Added funcattr hasStackParms will be set for reentrant functions when there
10805         are paramteres on the stack, this helps in minimizing frame pointer generation
10806         typeFromStr can handle function pointers now
10807
10808         * /doc/builtins.txt, /doc/TININative.txt:
10809         *** empty log message ***
10810
10811
10812 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10813
10814         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
10815         ALPHA version for -mTININative
10816
10817         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
10818         updated to reflect changes in the port structure
10819
10820         * /src/port.h:
10821         added function do_assemble (similar to do_link) if non-null this function
10822         will be called to do assembly (-mTININative) requires a multi command
10823         assembly
10824         added function genAssemblerEnd will be called to generate assembler Epilogue
10825
10826         * /src/SDCCsymt.c:
10827         added _JavaNative to debug info printing
10828
10829         * /src/SDCCmain.c: added option --tini-libid
10830         added port->do_assemble function (-mTININative) has a multi command assemble
10831
10832         * /src/SDCCglue.c: Disabled "constExpr" check
10833         added port->genAssemblerEnd function
10834
10835         * /src/SDCCglobl.h: Added option --tini-libid value
10836
10837         * /src/SDCCast.h:
10838         tookout optimizeCompare from the header (has no external references)
10839
10840         * /src/SDCCast.c: made one more function "static"
10841
10842 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
10843
10844         * src/z80/mappings.i: Added z80asm support.
10845
10846         * src/z80/main.c: Added z80asm support on --asm=z80asm
10847
10848         * src/z80/gen.c: Fixed asm portability issues.
10849
10850         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
10851
10852         * src/SDCCglue.c (printExterns): Added global/extern split.
10853
10854 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
10855
10856         * support/regression/Makefile: added test for mcs51 model large
10857
10858         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
10859
10860         * support/regression/ports/gbz80/spec.mk: added -mgbz80
10861
10862 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
10863
10864         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
10865
10866 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
10867
10868         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
10869
10870         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
10871
10872 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
10873
10874         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
10875
10876         * support/regression/tests/simplefloat.c: Port to mcs51.
10877
10878 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
10879         * support/regression/tests/bug-485362.c: Added.
10880
10881         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
10882
10883         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
10884
10885         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
10886
10887         * src/z80/gen.c (aopDump): Added a dump function.
10888
10889 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
10890         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
10891
10892         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
10893
10894         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
10895
10896         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
10897
10898         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
10899
10900         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
10901
10902         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
10903
10904         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
10905
10906         * support/regression/ports/ds390/support.c: Use tinibios.
10907
10908         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
10909
10910 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
10911
10912         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
10913         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
10914
10915         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
10916
10917         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
10918
10919 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
10920
10921         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
10922
10923         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
10924         (packRegsForIYUse): Created and optimised.
10925
10926 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10927
10928         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
10929 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
10930
10931         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
10932
10933         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
10934
10935         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
10936
10937 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10938
10939         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
10940
10941         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
10942
10943 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10944
10945         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
10946
10947         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
10948
10949         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
10950
10951 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10952
10953         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
10954         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
10955         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
10956
10957         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
10958
10959         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
10960         (genNotFloat): Added.
10961         (genUminusFloat): Added.
10962
10963         * device/lib/z80/Makefile: Added floating pt stubs.
10964
10965         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
10966
10967         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
10968
10969         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
10970
10971 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10972
10973         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
10974
10975         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
10976
10977         * sdcc/support/regression/Makefile: Add port ds390.
10978
10979         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
10980
10981         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
10982
10983         * sdcc/support/regression/ports/ds390/spec.mk: Added.
10984
10985         * sdcc/support/regression/ports/ds390/support.c: Added.
10986
10987         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
10988
10989         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
10990
10991         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
10992
10993 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
10994
10995         * device/include/malloc.h: Added z80 and gbz80 support.
10996
10997         * device/lib/gbz80/heap.s: Added.
10998
10999         * device/lib/z80/heap.s: Added.
11000
11001         * device/lib/malloc.c: Added z80 and gbz80 support.
11002
11003         * support/regression/tests/malloc.c (testMalloc): Added.
11004
11005         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
11006
11007         * support/regression/tests/bug-478094.c: Added.
11008
11009         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
11010
11011 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
11012
11013         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
11014
11015         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
11016
11017         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
11018
11019         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
11020
11021         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
11022
11023 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11024
11025         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
11026
11027 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
11028
11029         * support/regression/tests/bug-477927.c: Added.
11030
11031         * src/z80/peeph.def: Added minor rules.
11032
11033         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
11034
11035         * src/z80/peeph.def: Added jump optimisation modification.
11036
11037 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
11038
11039         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
11040
11041 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
11042
11043         * support/regression/tests/funptrs.c: Added.
11044
11045 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
11046
11047         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
11048
11049 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
11050
11051         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
11052
11053         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
11054
11055         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
11056         (movLeft2ResultLong): Created.
11057
11058         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
11059         (joinPushes): Added.  Joins two char pushes into a word push.
11060
11061 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
11062
11063         * support/cpp2/Makefile.in (install): Added creation of dest dir.
11064
11065         * support/makebin/Makefile (install): Added creation of dest dir.
11066
11067 2001-10-24 Karl Bongers <karl AT turbobit.com>
11068
11069         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
11070
11071 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
11072
11073         * src/z80/ralloc.c: Turned off faulty pack for one use.
11074
11075         * src/z80/peeph-gbz80.def: Removed redundent restart options.
11076
11077         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
11078
11079 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
11080
11081         * support/regression/Makefile: Improved clean
11082
11083         * support/regression/ports/gbz80/spec.mk: Added clean
11084
11085         * support/regression/ports/host/spec.mk: Added clean
11086
11087         * support/regression/ports/z80/spec.mk: Added clean
11088
11089         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
11090
11091         * support/regression/ports/mcs51/timeout.c: little improvements
11092
11093 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
11094
11095         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
11096
11097         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
11098
11099         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
11100
11101 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
11102
11103         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
11104
11105         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
11106
11107 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
11108         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
11109
11110         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
11111
11112         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
11113
11114         * src/mcs51/main.c (_linkCmd): Added bin path to command.
11115
11116         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
11117
11118         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
11119
11120         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
11121
11122         * support/regression/tests/longor.c: Added.
11123
11124 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
11125
11126         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
11127
11128         * as/mcs51/aslink.h: define PATH_MAX
11129
11130         * as/mcs51/asm.h: define PATH_MAX
11131
11132         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
11133
11134         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
11135
11136         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
11137
11138         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
11139
11140         * src/SDCCglobl.h: define PATH_MAX
11141
11142         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
11143
11144         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
11145
11146 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
11147
11148         * src/z80/gen.c (gencjneshort): Fixed
11149
11150         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
11151
11152 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
11153
11154         * support/regression/tests/bug-469671.c: Added.
11155
11156         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
11157
11158 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
11159
11160         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
11161
11162         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
11163
11164 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
11165
11166         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
11167
11168         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
11169
11170         * src/device/lib/_mullong.c : removed hint: nooverlay bug
11171
11172         * src/device/lib/_divuint.c : removed hint: nooverlay bug
11173
11174         * src/device/lib/_divulong.c: removed hint: nooverlay bug
11175
11176         * src/device/lib/_moduint.c : removed hint: nooverlay bug
11177
11178         * src/device/lib/_modulong.c: removed hint: nooverlay bug
11179
11180 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
11181
11182         * 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.
11183
11184         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
11185
11186         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
11187
11188 2001-10-07    <johan AT FRIJA>
11189
11190         * device/lib/gets.c (gets): fixed the return value.
11191
11192 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
11193         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
11194
11195         * 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.
11196
11197         * 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.
11198
11199         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
11200
11201         * src/pic/gen.c: Removed Safe_strdup.
11202
11203         * configure.in: Added option to enable libgc support.
11204
11205         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
11206         (bitVectUnion): Optimised.
11207         (bitVectIntersect): Optimised.
11208         (bitVectBitsInCommon): Optimised.
11209         (bitVectCplAnd): Optimised.
11210
11211         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
11212
11213 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11214
11215         * src/SDCCmain.c: distinguish between assembler debug and plain options
11216
11217         * src/avr/main.c:   remove standard assembler options
11218
11219         * src/ds390/main.c: remove standard assembler options
11220
11221         * src/mcs51/main.c: remove standard assembler options
11222
11223         * src/port.h: removed "PENDING" comment
11224
11225 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11226
11227         * src/device/lib/_mulint.c  : new, with assember functions
11228
11229         * src/device/lib/_mullong.c : new, with assember functions
11230
11231         * src/device/lib/_divuint.c : with assember functions
11232
11233         * src/device/lib/_divsint.c : with assember functions
11234
11235         * src/device/lib/_divulong.c: with assember functions
11236
11237         * src/device/lib/_divslong.c: with assember functions
11238
11239         * src/device/lib/_moduint.c : with assember functions
11240
11241         * src/device/lib/_modsint.c : with assember functions
11242
11243         * src/device/lib/_modulong.c: with assember functions
11244
11245         * src/device/lib/_modslong.c: with assember functions
11246
11247         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
11248
11249         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
11250
11251         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
11252                                       replaced _mululong.c and _mulslong.c by _mullong.c
11253
11254 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11255
11256         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
11257
11258 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11259
11260         * src/SDCCglue.c: test, if win32api is available for MINGW
11261
11262 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11263
11264         * src/SDCCsymt.c: no more _modifier in printTypeChain()
11265         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
11266         * support/regression/ports/gbz80/spec.mk: removed GENERIC
11267         * support/regression/ports/host/spec.mk: removed GENERIC
11268         * support/regression/ports/mcs51/spec.mk: removed GENERIC
11269         * support/regression/ports/z80/spec.mk: removed GENERIC
11270
11271 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
11272
11273         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
11274
11275         * support/regression/tests/bug-467035.c: Created.
11276
11277 2001-10-01    <johan AT FRIJA>
11278
11279         * src/SDCC.y: fixed bug #466586 part 1
11280
11281 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
11282
11283         * SDCCicode.c: z80 has no generic pointers
11284         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
11285
11286 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
11287
11288         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
11289
11290 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
11291
11292         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
11293
11294         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
11295
11296 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
11297
11298         * configure.in: Fixed up so that ucsim is only configured once.
11299
11300         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
11301
11302         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
11303         (getPathDifference): As above.
11304
11305         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
11306
11307         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
11308
11309 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
11310         * .version: Updated to 2.3.1
11311
11312         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
11313         Added copyright header.
11314
11315         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
11316         (assemble): Added support for macro based assembler commands.
11317         (linkEdit): Added support for macro based linker commands.
11318         (preProcess): Changed the pre-processor to use macros.
11319         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
11320         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
11321
11322         * device/lib/z80/crt0.s: Added module name for debugging.
11323
11324 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
11325
11326         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11327
11328         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
11329
11330         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
11331
11332         * src/Makefile.in: Added SDCCmacro and SDCCutil
11333
11334 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
11335
11336         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11337
11338 2001-09-16    <johan AT FRIJA>
11339
11340         * 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.
11341
11342 2001-09-15    <johan AT FRIJA>
11343
11344         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
11345         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
11346
11347 2001-09-11    <johan AT FRIJA>
11348
11349         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
11350
11351 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
11352
11353         * support/regression/tests/bug-460444.c: Added test case.
11354
11355         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
11356         (genCast): Added justification for all of the asserts.
11357
11358 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
11359
11360         * support/regression/support.c: _xdata replaced by xdata
11361
11362         * support/regression/spec.mk: removed _generic
11363
11364 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
11365
11366         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
11367
11368         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
11369         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
11370
11371         * src/z80/peeph.def: Added a rule to optimise shift then compare.
11372
11373         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
11374
11375         * support/regression/tests/bug-460010.c: Added test case.
11376
11377         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
11378
11379 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
11380
11381         * support/regression/Makefile: inter-port-clean adjusted for mcs51
11382
11383         * support/regression/testfwk.c: removed workaround for bug #436344
11384
11385         * support/regression/tests/bp.c: use less memory with mcs51
11386
11387         * support/regression/tests/bug-441448.c: use less memory
11388
11389         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
11390
11391         * support/regression/collate-results.py: typo
11392
11393 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
11394
11395         * support/regression/tests/fetchoverlap.c: Added new test case.
11396
11397         * support/regression/tests/bp.c: Added new test case.
11398
11399         * support/regression/tests/bug-448984.c: Added new test case.
11400
11401         * support/regression/tests/pow2shifts.c: Added new test case.
11402
11403         * src/z80/gen.c: Turned off the noise it normally generates for the release.
11404         (genlshTwo): Fixed right shift for count > 8.
11405
11406         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
11407
11408 2001-09-08    <johan AT FRIJA>
11409
11410         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
11411
11412 2001-09-07    <johan AT FRIJA>
11413
11414         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
11415
11416         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
11417
11418 2001-09-06    <johan AT FRIJA>
11419
11420         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
11421         * bernhard noted me at this: "() equals to (void)" (1.38)
11422
11423 2001-09-05    <johan AT FRIJA>
11424
11425         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
11426
11427 2001-09-04    <johan AT FRIJA>
11428
11429         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
11430
11431
11432 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
11433
11434         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
11435
11436 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
11437
11438         * link/z80/aslink.h: Fixed path for PATH_MAX
11439
11440 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
11441
11442         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
11443
11444         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
11445
11446         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
11447
11448         * 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.
11449
11450 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
11451
11452         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
11453         (genCmp): Fixed up genCmp for the GB with longs.
11454
11455         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
11456
11457         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
11458
11459         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
11460
11461         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
11462
11463 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
11464
11465         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
11466
11467 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
11468
11469         * 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.
11470
11471         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
11472
11473 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
11474
11475         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
11476
11477         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
11478
11479 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
11480
11481   * sim/ucsim/configure:    little improvement of Cygwin-detection
11482   * sim/ucsim/configure.in: little improvement of Cygwin-detection
11483   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
11484   * support/regression/tests/bug-221100.c: small changes for mcs51
11485   * support/regression/tests/bug-221168.c: small changes for mcs51
11486   * support/regression/tests/bug-227710.c: small changes for mcs51
11487   * support/regression/tests/staticinit.c: small changes for mcs51
11488   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
11489   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11490   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11491
11492 $Revision$