]> git.gag.com Git - fw/sdcc/blob - ChangeLog
305832bccfa96fd80240bf136f4c0367260c0420
[fw/sdcc] / ChangeLog
1 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
2
3         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
4         bug in for-loop that didn't emit the last of CONFIG and ID registers
5
6 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
7
8         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
9           with offset
10         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
11           1489016, 1434401 and 1490124
12         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
13           1489016, 1434401 and 1490124
14
15 2006-05-17 Borut Razem <borut.razem AT siol.net>
16
17         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
18           thanks Stas Sergeev
19
20 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
21
22         * device/include/mcs51/P89c51RD2.h,
23         * device/include/mcs51/P89LPC901.h,
24         * device/include/mcs51/P89LPC922.h,
25         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
26
27 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
28
29         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
30         to fix missing stack pragma in compiled binary object file,
31
32 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
33
34         * support/packihx/configure.in,
35         * support/packihx/configure: removed warning, autoconf >= 2.5x can
36         determine sizeof basic types even while cross compiling
37
38 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
39
40         * src/avr/gen.c (aopop),
41         * src/ds390/gen.c (aopOp),
42         * src/hc08/gen.c (aopOp),
43         * src/mcs51/gen.c (aopop),
44         * src/pic16/gen.c (pic16_aopOp),
45         * src/pic/gen.c (aopOp),
46         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
47         if size of operand is smaller than spill location
48
49 2006-05-12 Borut Razem <borut.razem AT siol.net>
50
51         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
52           have to have CR/LF line endings even if they are checked out on *nix
53           or on WIN32 in cygwin binmode
54
55 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
56
57         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
58         * device/include/ds80c390.h: added sfr16 definitions
59         * src/ds390/gen.c,
60         * src/ds390/gen.h,
61         * src/ds390/main.c,
62         * src/ds390/ralloc.c,
63         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
64           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
65           bit returning functions
66         * support/regression/tests/sfr16.c: enabled test on ds390
67
68 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
69
70         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
71         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
72
73 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
74
75         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
76         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
77           (cl_address_space constructor): removed expensive initialization,
78           (cl_address_space::get_cell): extended for late initialization,
79           (cl_address_space::*): use late initialization,
80           (cl_address_decoder::activate): removed expensive initialization,
81           This reduced regression test running time by 25%
82
83 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
84
85         * packihx/,
86         * configure.in,
87         * configure,
88         * sdcc.dsw,
89         * Makefile.bcc,
90         * Makefile.in,
91         * support/packihx/Makefile.in,
92         * support/packihx/clean.mk,
93         * support/packihx/Makefile.bcc,
94         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
95
96 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
97
98         * src/SDCCval.c (valNot): fix for regression test failure
99           of not.c on big endian hosts
100
101 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
102
103         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
104
105 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
106
107         * device/lib/mcs51/Makefile.in: changed string comparison operator
108           to = for POSIX compliance; == is bash extension
109
110 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
111
112         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
113           kosmonaut_pirx
114
115 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
116
117         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
118         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
119         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
120         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
121         bug report #1478657,
122
123 2006-05-05 Borut Razem <borut.razem AT siol.net>
124
125         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
126           making the html
127
128 2006-05-02 Borut Razem <borut.razem AT siol.net>
129
130         * doc/Makefile.in: removed *.ind dependency since there is no rule to
131           create *.ind, which made make to fail if invoked with -j 2
132
133 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
134
135         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
136           Hubert Sack for patch 1479782
137
138 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
139
140         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
141
142 2006-05-01 Raphael Neider <rneider AT web.de>
143
144         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
145           (create_pic): store only prefix-free device name,
146           (init_pic): check for device names with "16" prefix,
147           (list_valid_pics),
148         * src/pic/device.h (struct PIC_device),
149         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
150             stored device name,
151         * device/include/pic/pic12f{635,675,629,683}.h,
152         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
153         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
154         * device/include/pic/pic16f505.h,
155         * device/lib/pic/libdev/pic16f505.c: removed
156         * device/include/pic/pic14devices.txt: added support for pic12f
157             devices, removed unsupported non 16-bit devices
158             [above changes provided by patch from Zik Saleeba]
159         * src/pic/*, src/pic16/*, device/include/pic16/*,
160           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
161
162 2006-05-01 Borut Razem <borut.razem AT siol.net>
163
164         * configure.in, configure, doc/Makefile.in:
165           sync with nightly build makefile - latex, dvipdf and dvips
166           not needed any more
167
168 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
169
170         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
171         in the library source
172
173 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
174
175         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
176
177 2006-04-28 Raphael Neider <rneider AT web.de>
178
179         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
180         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
181           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
182         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
183
184 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
185
186         * device/lib/pic/libdev/Makefile.in,
187         * device/lib/hc08/Makefile.in,
188         * device/lib/gbz80/Makefile.in,
189         * device/lib/z80/Makefile.in,
190         * device/lib/ds390/Makefile.in,
191         * device/lib/ds400/Makefile.in: added srcdir to include search path,
192         thanks to Borut for the bug report
193         * configure.in,
194         * configure: always create doc/Makefile independent from --enable-doc
195         * Makefile.in: always install from directory doc independent from
196         --enable-doc
197         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
198         removed
199         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
200         * doc/Makefile.in: install *.txt if present
201         * device/include/Makefile.in (install): added installation of pic/*.inc
202         and pic/*.txt files again, they were erroneously removed
203
204 2006-04-28 Raphael Neider <rneider AT web.de>
205
206         * src/pic/{gen.c,main.h,pcode.c},
207         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
208             concerning signedness with casts
209
210 2006-04-28 Raphael Neider <rneider AT web.de>
211
212         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
213             definition of an interrupt handler,
214         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
215             interrupt handler stuff from picglue() to separate routine,
216           (picglue): enabled definition of intr handlers in files w/o main()
217
218 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
219
220         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
221           compilation with MSVC 2005 Express Edition (VC8)
222
223 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
224
225         * device/lib/Makefile: fixed build of gbz80 lib
226
227 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
228
229         * support/regression/tests/bug-460010.c,
230         * support/regression/tests/bug-524691.c,
231         * support/regression/tests/bug-716242.c: removed conditional defines
232           that are already in testfwk.h
233
234 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
235
236         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
237           (AccAXRsh1): added, shift right by 1,
238           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
239            AccAXLrl1
240         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
241
242 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
243
244         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
245         remove cast to same type
246         * src/SDCCast.c (decorateType): fix for RFE 1475742,
247         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
248         * as/z80/Makefile,
249         * link/z80/Makefile: removed, they have moved to
250         Makefile.in files
251         * configure,
252         * configure.in: replaced duplicate message about ucsim by missing sdcpp
253         * install-sh: fix bug #1204398 by setting umask 0022
254         * device/lib/Makefile: separate build of z80 and gbz80 lib
255
256 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
257
258         Enabled VPATH feature: changed nearly all Makefiles (149 files).
259         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
260
261         One basic decision: e.g. src/clean.mk includes further files. In order
262         to make this work there are two solutions:
263         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
264           run configure on them. This way they can use
265           'include $(srcdir)/port-clean.mk'
266         - always include clean.mk by the Makefile at the same level. To avoid
267           that `make clean` tries to include and build Makefile.dep the
268           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
269           implemented, because now even `make uninstall` doesn't create
270           Makefile.in. clean.mk could be eliminated by pasting it in
271           Makefile.in.
272
273         * debugger/mcs51/Makefile.in: build own objects from library sources
274         (SLIB, SDCC) in current directory
275
276         * configure, configure.in: renamed --disable-device-lib-build in
277         --disable-device-lib; added --enable-doc, the required tools are
278         searched by configure; added result message; the toolchain for the
279         belonging ports are now only built, if the port is enabled.
280
281         * support/regression/*: all output is written in directory gen, because
282         the fwk and ports directories don't livet in the build tree using vpath
283
284         * doc/sdccman.lyx: renamed --disable-device-lib-build to
285         --disable-device-lib, added --enable-doc, added section VPATH
286
287         * sim/ucsim/configure.in,
288         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
289         z80 are enabled by default
290
291 2006-04-24 Raphael Neider <rneider AT web.de>
292
293         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
294             to config word, "pic14_"-prefixed some extern functions
295           (pic14_emitConfigWord): emit __config directive(s) if assignment to
296             config word has been found
297         * src/pic/device.h: added prototypes
298         * src/pic/pcode.c: added "pic14_"-prefix where needed
299         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
300             fixup
301         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
302             words,
303           (pic14emitRegularMap): ignore config words,
304           (pic14createInterruptVect): moved generating __config directives away
305           (picglue): have __config directives emitted
306
307 2006-04-24 Borut Razem <borut.razem AT siol.net>
308
309         * doc/Makefile: sync with nightly build makefile
310
311 2006-04-24 Raphael Neider <rneider AT web.de>
312
313         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
314             registers that have not been assigned proper liveranges,
315             fixes #1469504 and #1474602,
316           (pCodeRegOptimizeRegUsage): fixed typo in comment
317
318 2006-04-24 Borut Razem <borut.razem AT siol.net>
319
320         * device/examples/main8051.c: deleted - it was removed from CVS
321           24.mar.2000 and after that modified 18.feb.2001, so it reappered
322           after the transition to Subversion
323         * src/SDCCalloc.h: deleted - it was removed  from CVS
324           3.feb.2001 and after that modified 18.feb.2001, so it reappered
325           after the transition to Subversion
326         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
327           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
328           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
329           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
330
331 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
332
333         * as/asx8051.dsp: added mcs51/strcmpi.h
334         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
335         * as/hc08/aslink.h: updated lnksect prototype
336         * as/hc08/asm.h,
337         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
338         * as/hc08/asmain.c,
339         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
340           (newdot): handle A_ABS
341         * as/hc08/asout.c,
342         * as/mcs51/asout.c (outarea): output address
343         * as/hc08/lkaomf51.c,
344         * as/mcs51/lkaomf51.c: disabled unused array UsageType
345         * as/hc08/m08pst.c,
346         * as/mcs51/i51pst.c,
347         * as/z80/z80pst.c: "ABS" is not A_OVR
348         * as/hc08/lkarea.c (newarea): read a_addr,
349           (lnkarea): added codemap array, sort absolute areas to the front,
350            combine all GSINITx/GSFINAL,
351           (find_empty_space, allocate_space): new functions,
352           (lnksect): return next address, handle absolute sections
353         * as/mcs51/lkarea.c (newarea): read a_addr,
354           lnksect2 prototype changed,
355           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
356           (find_empty_space, allocate_space): new, factored out of lnksect2,
357           (lnksect2): return next address, handle absolute sections
358         * as/hc08/lkhead.c,
359         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
360         * as/hc08/lklibr.c (addfile, fndsym),
361         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
362           index out of range and detect both '\' and '/'
363         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
364         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
365           regression tests (ds390 cannot return bool yet)
366         * doc/sdccman.lyx: changed version number, document changed --no-peep,
367           document critical interrupts on z80, document changed SDCC define
368         * src/asm.c (_asxxxx_mapping): fixed .org directive,
369           (_a390_mapping): added .org directive
370         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
371           (genMultOneByte): fixed warnings
372         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
373           ones
374         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
375         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
376           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
377         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
378         * src/pic16/main.c: removed newReg prototype
379         * src/pic16/pcode.c,
380         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
381           warnings
382         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
383           ones
384         * src/pic16/ralloc.c
385         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
386           to fix warnings
387         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
388           from short to PIC_OPTYPE
389         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
390         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
391           optype from short to PIC_OPTYPE
392         * src/port.h: made int_size unsigned to fix warnings
393         * src/SDCC.y: fixed warning on MSVC
394         * src/SDCCicode.c (getArraySizePtr): return unsigned int
395         * src/SDCCopt.c (convertToFcall): fixed warnings
396         * src/SDCCsymt.h: removed double prototype for genSymName
397         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
398           offset int to fix warnings
399
400 2006-04-22 Borut Razem <borut.razem AT siol.net>
401
402         * doc/sdccman.lyx, */Makefile, */Makefile.in:
403           references to CVS replaced with Subversion
404
405 2006-04-21 Borut Razem <borut.razem AT siol.net>
406
407         * doc/sdccman.lyx, */Makefile, */Makefile.in:
408           references to CVS replaced with Subversion
409
410 2006-04-19 Borut Razem <borut.razem AT siol.net>
411
412         * src/version.awk: adapted for svn
413         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
414           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
415           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
416           /binutils-avr/etc/*.vi, *.jin: removed all properties
417           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
418
419 2006-04-19 Borut Razem <borut.razem AT siol.net>
420
421         * CVS to Subversion migration completed
422
423 2006-04-18 Borut Razem <borut.razem AT siol.net>
424
425         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
426           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
427
428 2006-04-17 Borut Razem <borut.razem AT siol.net>
429
430         * device/include/Makefile.in: added pic/*.inc to the installation
431
432 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
433
434         * support/regression/collate-results.py: fixed output in case of
435         a valdiag error
436         * support/regression/generate-cases.py: fixed splitting of pathnames
437         with dots
438         * as/hc08/lklibr.c (addfile),
439         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
440
441 2006-04-11 Raphael Neider <rneider AT web.de>
442
443         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
444         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
445         * src/pic16/pcode.c (assignValnums): fixed #1460578
446
447 2006-04-11 Raphael Neider <rneider AT web.de>
448
449         * device/lib/pic/libdev/*.c,
450         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
451           fixes #1468739, enables compilation in --std-c99 mode
452         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
453
454 2006-04-11 Raphael Neider <rneider AT web.de>
455
456         * src/pic/device.c (find_device): removed debug output
457           (list_valid_pics): enabled verbose listing of supported devices
458         * device/include/stdbool.h: define bool as char for pic14/16 as well
459
460 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
461
462         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
463
464 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
465
466         * .version: bumped version to 2.5.6
467         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
468
469 2006-04-06 Raphael Neider <rneider AT web.de>
470
471         * .version: bumped version to 2.5.6 (pic14 ABI changed)
472         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
473         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
474           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
475             pic14_constructAbsMap
476           (pic14printPublics): declare absolute global symbols as global
477           (pic14createInterruptVect),
478         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
479           (newReg): assume new registers unused, use correct name in
480             hashtable (reg->name instead of name), more debugLog output
481         * src/pic/device.h (PIC_device): added fields for verbose output
482         * src/pic/device.c: moved device definition to pic14devices.txt,
483             added routines for runtime parsing of pic14devices.txt,
484             added support for second config word
485         * src/pic/main.c (_process_pragma): removed #pragma maxram,
486           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
487           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
488           (_pic14_parseOptions): moved pCodeInitRegisters here
489           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
490         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
491           (pCodeInitRegisters): rewrapped comments, perpared new approach to
492             handling the pseudo stack
493         * device/lib/Makefile.in: ignore failures in objects-pic16,
494         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
495         * device/lib/pic/NEWS: document new dependency on picXXX.lib
496         * device/lib/pic/Makefile.subdir,
497         * device/lib/pic16/Makefile.subdir: improved clean rules
498         * device/lib/pic/libdev/: NEW, pic14 device libraries
499         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
500         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
501         * device/include/Makefile.in: create subdir and install pic14 headers
502         * device/include/pic/p16f_common.inc: removed unused declarations
503         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
504             PICs from inc2h.pl v1.6,
505             replaced BIT_AT macros with struct declarations
506         * device/include/pic/pic14devices.txt: definition of supported devices,
507             all above improvements contributed by Zik Saleeba, thanks
508         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
509         * support/scripts/sdcc.nsi: also install pic14 device libraries and
510             headers
511
512 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
513
514         * device/include/mcs51/c8051f410.h: added interrupt numbers,
515         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
516           thanks to Charles Olds
517
518 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
519
520         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
521
522 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
523
524         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
525         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
526         * support/regression/bug1464657.c: added, new test
527
528 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
529
530         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
531           version number
532
533 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
534
535         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
536           --no-peep and --peep-file <file> are used don't use default rules but
537           do use the <file>
538
539 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
540
541         * src/mcs51/gen.c (genCall): fixed bug 1457608
542
543 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
544
545         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
546         changes seem to cause (trigger?) problems with the build system.
547
548 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
549
550         * src/SDCCpeeph.c (operandsLiteral): new, added,
551           (callFuncByName): inserted operandsLiteral
552         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
553
554 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
555
556         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
557         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
558
559 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
560
561         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
562           implemented patch 1120823 Thanks to Willy De la Court (normal
563           interrupts need an interrupt number now if they are made critical),
564           and enabled nesting of critical functions though not for gbz80
565           (genCritical, genEndCritical): added functions
566           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
567         * src/z80/mappings.i: added "ei" to all mappings
568
569 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
570
571         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
572         submitted by the Debian SDCC maintainer Aurelien Jarno:
573         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
574         archive with gcc 4.1 on mips and wrote the patch"
575
576 2006-03-16 Raphael Neider <rneider AT web.de>
577
578         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
579           the left operand is shorter than the result (c* = lit-c* + int),
580           fixes bug #1450796
581         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
582           OP_SYMBOL
583
584 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
585
586         * src/.version: increased version number to 2.5.5
587         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
588         linking is done manually in pic16 port's _linkEdit,
589         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
590         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
591         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
592         allocate asmop as AOP_ACC,
593         (aopForRemat): added parameter 'bool result' in function declaration,
594         (pic16_aopGet): return AOP_ACC when accessing WREG,
595         (pic16_popGetTempReg): minor modification,
596         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
597         'pic16_allocWithIdx',
598         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
599         calling function in absolute addresses,
600         (genAssign): take into account AOP_ACC asmop,
601         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
602         * src/pic16/pcoderegs.c: some debug functions and lines added,
603         * src/pic16/ralloc.c (decodeRegType): added but commented out,
604         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
605         register too,
606         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
607         call to allocReg, not by manually allocating a new one,
608         (pic16_assignRegisters): now before going through the register
609         allocating functions mark all registers as free. This eliminates some
610         side effects resulting from peephole parser done earlier in the backbone
611
612 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
613
614         * src/SDCCicode.c (geniCodeLogic),
615         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
616
617 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
618
619         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
620           (genSend): bugfix, do not allocate and free twice,
621           (shiftRLong): handle partially overlapping aops
622         * support/regression/tests/bitopcse.c: fixed warning redefined idata
623
624 2006-03-08 Borut Razem <borut.razem AT siol.net>
625
626         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
627           for pic16
628
629 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
630
631         * support/regression/tests/bug1409955.c: new, added
632         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
633         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
634           (aopForSym, aopOp): increment asmop.allocated if reused,
635           (freeAsmop): decrement asmop.allocated and check for zero instead of
636           using asmop.freed,
637           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
638           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
639            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
640            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
641            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
642            genSignedRightShift, genRightShift, genDataPointerGet,
643            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
644            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
645             in reverse order from allocation,
646           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
647             added swappedLR to keep track
648         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
649           pdata & code for GCC, z80, gbz80 & hc08
650         * support/regression/tests/zeropad.c: moved defines to testfwk.h
651
652 2006-03-08 Raphael Neider <rneider AT web.de>
653
654         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
655
656 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
657
658         * device/include/mcs51/c8051f410.h: new SiLabs mcu
659         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
660         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
661
662 2006-03-06 Borut Razem <borut.razem AT siol.net>
663
664         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
665           made the linker quiet
666
667 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
668
669         * src/pic16/gen.c (genPcall): fixed bug #1443644
670         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
671         which dumps before the function entry point a data byte which represents
672         the number of the local variables used by the specified function, added
673         'xinst' for initial support for Extended Instruction Support,
674         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
675         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
676         port->fun_prefix anymore (may change later),
677         (genFunction, genEndFunction): do not store/restore local registers for
678         _main (this should take care the --main-return command line option in
679         the future),
680         (genOr): removed some legacy pic-port instructions,
681         * src/pic16/genarith.c (genAddLit): re-enabled old code because
682         performing operations with SFR's causes data to be written more than
683         once to each SFR. Perhaps SFRs should be handled in special cases...
684         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
685         pcode.h
686         * src/pic16/main.c (_process_pragma): stack bound checking did not take
687         into account for stack starting position,
688         (struct OPTIONS pic16_optionsTable): added command line argument
689         --extended or -y for Extended Instruction Support,
690         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
691         (deassignLRs): *** perhaps the most important change, old 'for' code
692         (commented out for reference), didn't account for some registers which
693         were left marked 'not free' after a pointer operation. The change
694         reduces register usage a lot in some cases
695
696 2006-03-04 Borut Razem <borut.razem AT siol.net>
697
698         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
699           _clean
700         * support/regression/tests/bug-524697.c: decreased array size for
701           mcs51 to fit into the internal RAM
702         * support/regression/Makefile.in: a little bit more verbose
703
704 2006-03-03 Borut Razem <borut.razem AT siol.net>
705
706         * support/regression/fwk/lib/testfwk.c,
707           support/regression/fwk/include/testfwk.h: introduced function
708           _prints(), nonrecursive _printn(), call _initEmu() from main()
709         * support/regression/ports/gbz80/support.asm,
710           support/regression/ports/ucz80/support.asm,
711           support/regression/ports/z80/support.asm,
712           support/regression/ports/ds390/support.c,
713           support/regression/ports/hc08/support.c,
714           support/regression/ports/host/support.c,
715           support/regression/ports/mcs51/support.c,
716           support/regression/ports/xa51/support.c: added empty _initEmu()
717           function
718         * support/regression/ports/pic16/gpsim.cmd,
719           support/regression/ports/pic16/spec.mk,
720           support/regression/ports/pic16/support.c,
721           support/regression/Makefile.in: added pic16 regression test
722
723 2006-03-01 Raphael Neider <rneider AT web.de>
724
725         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
726           genConstPointerGet): use safe way of generating MOVFF to cover
727             literals as well as registers, fixes bug #1440527
728         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
729             dereference
730           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
731             more correctly, fixes bug #1232186
732           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
733         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
734             gplink guess the correct processor in more cases, applied patch
735             from Till Riedel attached to and fixing bug #1436552
736
737 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
738
739         * support/regression/tests/array.c: added, contains check for #1434401
740         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
741
742 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
743
744         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
745         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
746         * device/include/mcs51/c8051f326.h,
747         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
748         * device/include/mcs51/c8051f000.h,
749         * device/include/mcs51/c8051f018.h,
750         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
751           PCON_IDLE,PCON_STOP and added sfr16 definitions
752
753 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
754
755         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
756           genGetWord): fixed bug 1409955
757
758 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
759
760         * device/include/hc08/mc68hc908gp32.h,
761         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
762
763 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
764
765         * src/SDCCast.c (constExprValue): return NULL if not a value
766         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
767         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
768         * support/regression/tests/bitfields.c: enabled signed bitfield for all
769
770 2006-02-13 Borut Razem <borut.razem AT siol.net>
771
772         * src/regression/ptrarg.c: added, fails due to bug #1430967
773         * src/regression/Makefile: ptrarg.c added, ...
774
775 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
776
777         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
778         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
779
780 2006-02-11 Borut Razem <borut.razem AT siol.net>
781
782         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
783           print "Processor: xxx" message to stdout only if --verbose
784
785 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
786
787         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
788         * support/regression/tests/bug1426356.c: added
789         * support/regression/tests/bitfields.c: removed 2 tests
790
791 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
792
793         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
794         * device/include/mcs51/c8051f330.h,
795         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
796           PCON_IDLE,PCON_STOP and added sfr16 definitions
797         * device/lib/_divsint.c,
798         * device/lib/_divuint.c,
799         * device/lib/_divulong.c,
800         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
801           register bank bug for small stackauto
802
803 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
804
805         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
806
807 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
808
809         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
810         * all.dsp: corrected several bin paths
811         * device/include/mcs51/c8051f120.h,
812         * device/include/mcs51/c8051f300.h,
813         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
814           to PCON_IDLE,PCON_STOP
815         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
816         * device/lib/printf_large.c (output_float): fixed bug 1388703
817         * support/regression/tests/bug1057979.c: added test for bug 1388703
818
819 2006-02-08 Raphael Neider <rneider AT web.de>
820
821         * src/pic/pcode.c (pciTRIS): fixed typo,
822           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
823           (LinkFlow): fixed handling of flows that end in a call,
824           (ReuseReg): perform safety check earlier
825         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
826             to work with flows at the beginning of a pBlock,
827             fixes #1426557 (Symbol not previously defined),
828           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
829             usage information
830           (RemoveUnusedRegisters): update register usage info
831         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
832             created, reuse existing ones instead
833         * src/pic/gen.c (genPcall): fixed #1424719
834
835 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
836
837         * link/z80/lkmain.c,
838         * link/z80/lklex.c,
839         * link/z80/lkdata.c,
840         * link/z80/aslink.h: fixed build on current cygwin:
841         replaced getline() by lk_getline()
842
843 2006-02-01 Borut Razem <borut.razem AT siol.net>
844
845         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
846           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
847           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
848           src/regression/bool1.c, src/regression/bool2.c,
849           src/regression/bool3.c, src/regression/call1.c,
850           src/regression/compare.c, src/regression/compare10.c,
851           src/regression/compare2.c, src/regression/compare3.c,
852           src/regression/compare4.c, src/regression/compare5.c,
853           src/regression/compare6.c, src/regression/compare7.c,
854           src/regression/compare8.c, src/regression/compare9.c,
855           src/regression/configword.c, src/regression/for.c,
856           src/regression/inline.c, src/regression/mult1.c,
857           src/regression/nestfor.c, src/regression/or1.c,
858           src/regression/pointer1.c, src/regression/ptrfunc.c,
859           src/regression/rotate1.c, src/regression/rotate2.c,
860           src/regression/rotate3.c, src/regression/rotate4.c,
861           src/regression/rotate5.c, src/regression/rotate6.c,
862           src/regression/rotate7.c, src/regression/string1.c,
863           src/regression/struct1.c, src/regression/sub.c,
864           src/regression/sub2.c, src/regression/switch1.c,
865           src/regression/while.c, src/regression/xor.c,
866           src/regression/create_stc, src/regression/simulate,
867           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
868           regression tests
869         * src/regression/gpsim_assert.h: added
870
871 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
872
873         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
874         ((void (code *) (void)) 0) ();
875         * as/hc08/aslex.c,
876         * as/hc08/aslink.h,
877         * as/hc08/asm.h,
878         * as/hc08/asmain.c,
879         * as/hc08/lkdata.c,
880         * as/hc08/lklex.c,
881         * as/hc08/lkmain.c,
882         * as/mcs51/aslex.c,
883         * as/mcs51/aslink.h,
884         * as/mcs51/asm.h,
885         * as/mcs51/asmain.c,
886         * as/mcs51/lkdata.c,
887         * as/mcs51/lklex.c,
888         * as/mcs51/lkmain.c,
889         * as/z80/aslex.c,
890         * as/z80/asm.h,
891         * as/z80/asmain.c: fixed build on current cygwin:
892         replaced getline() by as_getline()
893
894 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
895
896         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
897         declarator in the symbol chain
898         * src/SDCCsymt.h,
899         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
900         parameter list for function pointers
901         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
902         * support/regression/tests/bug-716242.c: added
903
904 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
905
906         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
907         offset if possible
908         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
909
910 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
911
912         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
913         inifinitely recurseable, added static
914         * support/regression/tests/bug-1408066.c: added
915
916 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
917
918         * src/SDCCicode.h,
919         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
920         renamed, added possibility to create "postLoopLbl"-labels
921         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
922         newiTempLoopHeaderLabel
923         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
924         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
925         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
926         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
927         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
928         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
929         (basicInduction): fixed bug #136564, made static,
930         (loopInduction): changed parameter of basicInduction, made static,
931         (addPostLoopBlock): added
932         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
933         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
934         findLoopEndSeq
935         * support/regression/tests/bug-136564.c: added
936         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
937         --std-sdcc99 to LIBSDCCFLAGS
938
939 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
940
941         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
942         while loop
943         * support/regression/tests/bug-1406131.c: added
944
945 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
946
947         * src/SDCCast.c (decorateType): fix promotion of unary minus
948         * src/SDCCsymt.c (computeType): beautified
949         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
950         (valUnaryPM, valComplement): fix sign and promotion,
951         (valNot): ANSI: result type is int (SDCC: unsigned char)
952         * support/regression/tests/uminus.c: speedup by removing superflous
953         test case 'int'
954         * support/regression/tests/onebyte.c: added promotion and signedness
955         tests for unary minus
956         * support/regressions/tests/bug-477927.c: disable warning about
957         uninitialized variables
958         * support/regression/tests/not.c: added
959
960 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
961
962         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
963         * src/mcs51/gen.c (gen51Code): show final register usage after
964         fillGaps in asm with --i-code-in-asm
965         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
966         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
967         incUsed, rliveClear, adjustIChain): made static,
968         (setFromRange): excluded because it's unused,
969         (findPrevUseSym, markWholeLoop): added,
970         (findPrevUse): rewritten; fixes bug 895992; now a complete search
971         through all branches of predecessors enables sdcc to emit the warning
972         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
973         (rlivePoint): made static, added parameter emitWarnings which is only
974         true during the first run out of two,
975         (findRecursiveSucc, findRecursivePred): removed,
976         (computeLiveRanges): made static, added parameter emitWarnings,
977         (dumpIcRlive): added for debugging only
978         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
979         removed prototype of setFromRange()
980         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
981         in call of computeLiveRanges()
982         * support/regression/tests/bug-895992.c: added
983         * support/regression/tests/bug-971834.c: added
984         * support/valdiag/tests/bug-895992.c: added
985         * support/valdiag/tests/bug-971834.c: added
986
987 2005-12-18 Raphael Neider <rneider AT web.de>
988
989         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
990           (genUnpackBits): improved code for direct operands,
991           (genPackBits): improved code for literal assignment to bitfields
992             and for direct destination operands (no FSR indirection),
993             prevented redundant AND, fixes #1362800,
994           (AccLsh): added parameter to disable masking of the result
995         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
996           skip instructions with side-effects (like incfsz),
997           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
998         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
999         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
1000           fixes #1375263
1001
1002 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
1003
1004         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
1005         volatile variables as spill location
1006
1007 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
1008
1009         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
1010         replacing literals
1011         * support/regression/tests/bug-1376320.c: added
1012
1013 2005-12-08 Raphael Neider <rneider AT web.de>
1014
1015         * src/pic/device.c: renamed is_shared to pic14_is_shared
1016         * src/pic/gen.c (genIfx): re-enabled handling of sbits
1017         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
1018           (is_valid_identifier): added for above workaround
1019
1020 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
1021
1022         * device/lib/Makefile.in: fixed to enable port-specific-objects
1023         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
1024           char, thanks Hubert Sack
1025         * doc/sdccman.lyx: documented --xstack-loc,
1026           elaborated a bit more on interrupts and pitfalls,
1027           removed "setjmp/longjmp unsupported",
1028           documented some unsupported C99 features
1029         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
1030         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
1031           if, thanks Hubert Sack
1032         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
1033         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
1034           make make_library
1035         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
1036           regression tests can report resource usage (rfe 700441)
1037         * support/regression/collate-results.py: report resource usage
1038         * support/regression/ports/ds390/spec.mk,
1039         * support/regression/ports/hc08/spec.mk,
1040         * support/regression/ports/mcs51/spec.mk,
1041         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
1042         * support/regression/ports/ds390/uCsim.cmd,
1043         * support/regression/ports/hc08/uCsim.cmd,
1044         * support/regression/ports/mcs51/uCsim.cmd,
1045         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
1046         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
1047           library, use the default one
1048         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
1049           building the library
1050
1051 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1052
1053         * config.dsp: added dependency on .version and configure_vc.awk
1054         * device/include/setjmp.h: updated for --stack-auto and --xstack
1055         * device/include/mcs51/at89c51snd1c.h: corrected line endings
1056         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
1057         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
1058         * device/lib/libsdcc.lib: added _setjmp
1059         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
1060           (decorateType): fixed bug 1372851,
1061           (optimizeGetHbit): fixed warning
1062         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
1063           array initialisation
1064         * support/regression/tests/bug1057979.c: added test for bug 1358192
1065         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
1066
1067 2005-12-03 Borut Razem <borut.razem AT siol.net>
1068
1069         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
1070           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
1071
1072 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1073
1074         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
1075         createIval): implement symbol independant "flexible array member",
1076         (createIvalCharPtr): implemented flexible array initialisation with a
1077         string
1078         * src/SDCCsymt.c (copyStruct): removed,
1079         (getSize): fixed misleading comment,
1080         (getAllocSize): removed, the additional allocation size is now in
1081         sym->flexArrayLength,
1082         (checkStructFlexArray): new, syntax checks for flexible array members,
1083         (compStructSize): added syntax checks for "flexible array members"
1084         (copyStruct): removed,
1085         (copyLinkChain): removed inefficient fix for bug 770487
1086         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
1087         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
1088         symbol->flexArrayLength
1089         * src/SDCCerr.c,
1090         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
1091         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
1092         * support/regression/tests/structflexarray.c: added
1093         * support/valdiag/tests/structflexiblearray.c: added
1094
1095 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1096
1097         * src/SDCCast.c (decorateType): fixed bug 1368489
1098         * support/Util/SDCCerr.c,
1099         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
1100
1101 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1102
1103         * device/include/mcs51/at89c51snd1c.h: added file submitted by
1104           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
1105
1106 2005-11-27 Borut Razem <borut.razem AT siol.net>
1107
1108         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
1109           support/cpp2/mkdeps.h: added command line option
1110           -obj-ext=<extension> to SDCPP to define object file externion, used
1111           for generation of make dependencies (-M)
1112         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
1113
1114 2005-11-26 Borut Razem <borut.razem AT siol.net>
1115
1116         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
1117           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
1118           added pic and pic16 libraries
1119
1120 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1121
1122         * device/include/float.h: Corrected typo in prototype of __fsgt
1123
1124 2005-11-25 Borut Razem <borut.razem AT siol.net>
1125
1126         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
1127           added creation of model-mcs51-stack-auto libraries
1128
1129 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
1130
1131         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
1132         and fields-list too
1133         * src/SDCCast.c (createIvalArray): removed obsolete comment
1134
1135 2005-11-24 Borut Razem <borut.razem AT siol.net>
1136
1137         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
1138           added missing device/lib/mcs51/crt*.asm sources
1139
1140 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
1141
1142         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
1143
1144 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
1145
1146         * device/lib/_fs2schar.c,
1147         * device/lib/_fs2sint.c,
1148         * device/lib/_fs2slong.c: optimized inline asm
1149
1150 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1151
1152         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1153           Better handling of floats between -1.0 and 0.0.
1154
1155 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1156
1157         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
1158           (the missing "if"s prohibited removal of redundant labels)
1159
1160 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1161
1162         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1163           Properly convert floats between -1.0 and 0.0 to long, int, and char
1164           types (max integer value of negative floats tends to zero).
1165         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1166           Removed changes made so to work properly with floats between
1167           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
1168           and _fs2char.c
1169
1170 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1171
1172         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
1173         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
1174         (genCast) cosmetic change
1175         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
1176         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
1177         from mcs51
1178         * support/regression/tests/bitfields (testSignedBitfields): added
1179
1180 2005-11-18 Borut Razem <borut.razem AT siol.net>
1181
1182         * sdcc/device/lib/Makefile.in: remove all unnecessary files
1183         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
1184           introduced SILENT option to make building of pic16 libraries less
1185
1186 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1187
1188         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1189           Now they work properly with floats between -1.0 and 0.0
1190         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
1191
1192 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1193
1194         * src/SDCCicode.c (printOperand): added missing else
1195
1196 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1197
1198         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
1199         reformatted for better readability
1200         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
1201         signed bitfields
1202
1203 2005-11-17 Borut Razem <borut.razem AT siol.net>
1204
1205         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
1206           introduced SILENT option to make building of pic16 libraries less
1207           verbose - used for nightly snapshot build
1208         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
1209           available on Win32 platforms.
1210         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
1211           medium, large, pic and pic16
1212
1213 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1214
1215         * device/lib/printf_large.c: Temporary patch for bug 1358192:
1216           printf("%f"...) sets fraction to zero.
1217
1218 2005-11-16 Raphael Neider <rneider AT web.de>
1219
1220         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
1221           fixes #1357221
1222         * src/pic/gen.c (genIfx): implemented for CARRY bit
1223         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
1224           to generic pointers, fixes #1357332,
1225           (pic16_movLit2f): NEW,
1226           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
1227
1228 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1229
1230         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
1231
1232 2005-11-11 Raphael Neider <rneider AT web.de>
1233
1234         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
1235         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
1236           compute pointer's type from operand,
1237           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
1238           improved single bit reads, fixes bug #1353379
1239
1240 2005-11-09 Borut Razem <borut.razem AT siol.net>
1241
1242         * support/scripts/sdcc.nsi: added lib/pic to the package
1243
1244 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
1245
1246         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
1247
1248 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1249
1250         * support/regression/tests/bug1348008.c: added
1251         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
1252         * support/regression/tests/bug1337835.c: updated comment
1253
1254 2005-11-06 Borut Razem <borut.razem AT siol.net>
1255
1256         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1257           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1258           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1259           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1260           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
1261           dynamic construction of cl_error_class and derivates - 2.nd try
1262
1263 2005-11-05 Borut Razem <borut.razem AT siol.net>
1264
1265         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
1266           bug, which caused Bus Errors on sparc solaris
1267
1268 2005-11-04 Borut Razem <borut.razem AT siol.net>
1269
1270         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1271           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1272           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1273           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1274           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
1275           and derivates to resolve the initialization problem on OSX
1276
1277 2005-11-02 Borut Razem <borut.razem AT siol.net>
1278
1279         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1280           corrected typo - #include <winsock2.h>
1281
1282 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
1283
1284         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
1285           (_asxxxx_mapping): added org directive for future enhancements
1286
1287 2005-11-01 Borut Razem <borut.razem AT siol.net>
1288
1289         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1290           enabled sockets on WIN32
1291         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
1292
1293 2005-10-31 Borut Razem <borut.razem AT siol.net>
1294
1295         * support/regression/generate-cases.py: escape backslashes in {testcase}:
1296           WIN32 backslash path delimiters should be escaped when used in C strings
1297         * support/regression/tests/bitfields.c: exclude failing assertions for
1298           __CYGWIN32__ and __MINGW32__ hosts
1299
1300 2005-10-30 Borut Razem <borut.razem AT siol.net>
1301
1302         * src/SDCCutil.c: corrected double comparison typo
1303
1304 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
1305
1306         * device/lib/medium/Makefile: added for new memory model medium
1307         * device/include/asm/mcs51/features.h: updated for medium/pdata
1308         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
1309           added Multiply & Accumulate sbit's and MAC0_PAGE define
1310         * device/include/mcs51/c8051f300.h: added sfr16 definitions
1311         * device/include/mcs51/c8051f310.h: added sfr16 definitions
1312         * device/lib/_mullong.c: update for medium model
1313         * device/lib/incl.mk: added medium model
1314         * doc/sdccman.lyx: documented medium model
1315         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
1316         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
1317         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
1318         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
1319           (allocParms): set SCLS and OCLS to pdata for medium model
1320         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
1321           for pdata,
1322           (powof2): return <0 if not power of 2
1323         * src/avr/gen.c (genBitWise): use updated powof2
1324         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
1325           (shiftR2Left2Result): small optimization in setup, save acc when storing,
1326           (shiftLLeftOrResult): use B if necessary
1327         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
1328         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
1329         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
1330         * support/regression/Makefile.in: added test-mcs51-medium
1331         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
1332
1333 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1334
1335         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
1336         specifier unsigned
1337         * device/lib/time.c (mktime): fixed bug 1334315
1338
1339 2005-10-28 Raphael Neider <rneider AT web.de>
1340
1341         * device/include/pic/p16f_common.inc: added common declarations
1342         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
1343
1344 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1345
1346         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
1347           (aopPutUsesAcc): added to predict accumulator use,
1348           (assignResultValue): save acc if necessary,
1349           (genMinusDec): store result if indirectly addressed,
1350           (genDivOneByte):  save acc if necessary,
1351           (movLeft2Result): bugfix if left already in acc,
1352           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
1353             attention to accumulator use (esp. pdata),
1354           (genReceive): receive pdata correctly
1355         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
1356         * src/SDCCicode.h: added isOperandInPagedSpace prototype
1357
1358 2005-10-27 Raphael Neider <rneider AT web.de>
1359
1360         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
1361
1362 2005-10-27 Raphael Neider <rneider AT web.de>
1363
1364         * .version: changed version to 2.5.4
1365         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
1366         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
1367           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
1368             arithmetics support routines
1369         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
1370         * device/lib/Makefile.in: also create installdir for pic
1371
1372         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
1373           pic14 port as well
1374         * src/pic/device.c (dump_sfr): rewritten to delegate register
1375           placement to the linker (use `extern sym' rather than sym EQU addr),
1376           (validAddress): fixed to check last specified address
1377         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
1378           (popGetLit): truncate literal value to 8 bit,
1379           (popGet): moved assert to more appropriate place
1380           (popGetExternal): create pCode operand from and mark the according
1381             symbol as being `extern'
1382           (popGetAddr): added sanity check on immediate's offset, provide
1383             GPOINTER tag on demand
1384           (aopPut): fixed for immediates,
1385           (mov2w_op): move operand's address or contents to WREG (depending on
1386             operand type), safer variant of mov2w,
1387           (movwf,call_libraryfunc): NEW, handy abbreviations,
1388           (get_argument_pcop,get_return_val_pcop,pass_argument,
1389           get_returnvalue): interface for accessing function parameters and
1390             return values,
1391           (assignResultValuei,genRet): use new parameter/return value interface
1392           (pic14_getDataSize): back to old version handling generic pointers,
1393           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
1394             provided implementation and/or fixed old one,
1395           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
1396             calls, removed legacy 8051 reference code
1397           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
1398           (loadSignToC): NEW, move the operands sign bit to CARRY,
1399           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
1400             genRightShiftSigned, accepts negative shift counts,
1401           (setup_fsr): load FSR and adjust IRP (indirect memory access),
1402           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
1403             generic pointers, __data pointers and __code pointers,
1404           (genUnpackBits,genPackBits): rewritten to work with generic pointers
1405             and signed bitfields, limit bitfields to 8 bit,
1406           (genDataPointerGet): fixed number of bytes read,
1407           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
1408           (genPointerGet,genPointerSet): fixed handling of __code pointers,
1409             pointers to constant data are no longer assumed to point to __code
1410             space, removed invalid pointer types,
1411           (bitpatternFromVal): retrieve the PICs representation of an integer
1412             or float literal,
1413           (genDataPointerSet): fixed assigning to po_immediate operands,
1414           (genGenPointerSet): implemented as library call,
1415           (genIfx): fixed incorrect condition,
1416           (genAddrOf): limit generic pointers' addresses to 2 bytes,
1417             provide GPOINTER tag according to destination's storage class,
1418           (genCast): added code to handle casting to generic pointers, added
1419             sign-/zero extension of the result
1420           (aop_isLitLike,op_isLitLike): fixed handling of immediates
1421         * src/pic/gen.h: added macros to access IRP bit in STATUS register
1422         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
1423           extend the result
1424         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
1425           address/register resides in the shared banks
1426           (emitSymbolToFile): improved to handle global and `pinned' symbols,
1427             put all variables into separate sections (have the linker arrange
1428             them)
1429           (picglue): put init code and interrupt handlers in separate sections
1430         * src/pic/main.c: added port specific options table, modified to PORT
1431           structure to make GPOINTERs 3 byte, added pic14_options
1432           (_pic14_do_link): private linking routine (update paths to libraries,
1433             add libsdcc.lib by default)
1434         * src/pic/main.h: declare pic14_options
1435         * src/pic/pcode.c: fixed instructions i/o relations,
1436           (RegCond): reverted to correct version,
1437           (newpCodeOpLit): truncate literals to 8 bit,
1438           (genericPrint): added debug output,
1439           (getRegFromInstruction): fixed for various operand types, simplified
1440           (BuildFlow): fixed broken handling of isntructions with labels
1441           (LinkFlow): start at last instruction in flow (skip trailing comments),
1442             pass the flow on to the next instruction after CALL
1443           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
1444           (insertPCodeInstruction): fixed inserting after a skip instruction,
1445           (DoBankSelect): fixed for labeled instructions
1446           (OptimizepBlock): honor --nopeep switch
1447           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
1448         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
1449         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
1450           (pCodeOptime2pCodes): allow disabling this optimization via
1451             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
1452             but is still buggy), started implementation of a dataflow based
1453             pCode optimization (CSE + dead code elimination)
1454           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
1455         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
1456           names are independant of the stack location and therefore portable across
1457           devices
1458
1459 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1460
1461         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
1462           (selectSpil): fixed bug 1337835 by not spilling bit variables
1463         * support/regression/tests/bug1337835.c: added test for this bug
1464         * src/mcs51/peeph.def: restart after rule 3.c,
1465           addded rules 263.x to optimize loading constants
1466
1467 2005-10-26 Raphael Neider <rneider AT web.de>
1468
1469         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
1470         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
1471           (genAssign): emit warning when casting literals to generic pointer
1472             type, also applies when taking the address of a fixed variable,
1473           (genCast): improved casting to generic pointers
1474         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
1475           extern variables, added verbose error message
1476         * device/include/pic16/{string.h,errno.h}: added #pragma library c
1477
1478 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
1479
1480         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
1481         carry must be complemented too
1482         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
1483         could be emitted by genMinus
1484         * src/SDCCval.c (constVal): fixed bug 1305065
1485
1486 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
1487
1488         * src/SDCCast.c (addCast): added promotion for bit variables
1489         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
1490         promotion casts + optimisation
1491         (optimizeGetWord): fix warning 'i' might be used uninitialized
1492         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
1493         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
1494
1495 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
1496
1497         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
1498         all chars are promoted to int; promotion should be handled in SDCCast.c
1499
1500 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1501
1502         * device/lib/_strcmp.c: Fixed bug 1326457
1503
1504 2005-10-11 Raphael Neider <rneider AT web.de>
1505
1506         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
1507         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
1508
1509 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1510
1511         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
1512         * support/regression/tests/sfr16.c: added test for the sfr32 bug
1513
1514 2005-10-04 Raphael Neider <rneider AT web.de>
1515
1516         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
1517           device/lib/pic16/pics.all: added pic18f1320
1518         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
1519
1520 2005-09-30 Raphael Neider <rneider AT web.de>
1521
1522         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
1523         * src/pic16/devices.inc: NEW, provides device descriptions
1524         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
1525
1526 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1527
1528         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
1529           GETHBIT
1530
1531 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
1532
1533         * doc/sdccman.lyx: updated Highest Order Bit documentation,
1534           documented Any Order Bit, Higher Order Byte and Higher Order Word
1535         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
1536         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
1537           (optimizeGetAbit): new, to get any bit, not only the high bit,
1538           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
1539           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
1540           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
1541           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
1542             RIGHT_OP: also try GETBYTE, GETWORD optimization,
1543             GETABIT, GETBYTE, GETWORD: decorate them,
1544           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
1545           (ast_print): added GETABIT, GETBYTE, GETWORD
1546         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
1547         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
1548           (geniCodeBinary): new generic binary icode,
1549           (ast2iCode): added GETABIT, GETBYTE, GETWORD
1550         * src/port.h: updated comment for PORT.hasExtBitOp
1551         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
1552           (genGetByte): new, to get a single byte,
1553           (genGetWord): new, to get a word from a long,
1554           (gen51Code): added GETABIT, GETBYTE, GETWORD
1555         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
1556
1557 2005-09-23 Raphael Neider <rneider AT web.de>
1558
1559         * configure.in, configure: have device/lib/pic configured
1560         * device/lib/Makefile.in: added model-pic14
1561         * device/lib/clean.mk: added pic/ to clean rule
1562         * device/lib/pic: added rudimentary pic14 library providing support
1563           functions for multiplication/division/generic pointer access
1564         * src/SDCCopt.c (convilong): mark support functions as extern
1565           for pic14 port as well
1566         * src/pic/gen.c (genMult): added assertions,
1567           (genpic14Code): emit warning on unhandled iCodes
1568         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
1569         * src/pic/pcode.c (pCodeOpCopy),
1570         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
1571           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
1572           SFR_REGISTER}), made safe for future extensions
1573         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
1574           instructions even if preceeded by SKIP instructions (also remove
1575           them); removed unused code
1576         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
1577           prevents leaving parts of the structure uninitialized after copying
1578
1579 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
1580
1581         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
1582           ago by me
1583         * support/regression/tests/addsub.c: added test for the bug
1584
1585 2005-09-21 Raphael Neider <rneider AT web.de>
1586
1587         * device/include/pic16/pic18f1220.h,
1588           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
1589         * device/lib/pic16/Makefile.rules: added missing opening paren
1590         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
1591           are provided in genutils.c,
1592           (genUminusFloat,genUminus,genCmpEq): added asserts on different
1593           operand/result sizes,
1594           (genCmp): assert on NULL pointers first, then check deref'ed values
1595         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
1596           result size
1597
1598 2005-09-18 Raphael Neider <rneider AT web.de>
1599
1600         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
1601           as these are now unused,
1602           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
1603         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
1604           local, avoids uninitialized pointer dereference on r->name
1605         * src/pic16/ralloc.c (newReg): fixed indentation
1606
1607 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
1608
1609         * src/SDCCval.c (constVal): fixed bug 730366
1610         * support/Util/SDCCerr.c,
1611         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
1612
1613 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1614
1615         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
1616
1617 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
1618
1619         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
1620
1621 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1622
1623         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
1624           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1625         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
1626           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1627         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
1628         * packihx/packihx.c (hexDigit): made c unsigned char
1629         * as/mcs51/lklibr.c (fndsym),
1630         * link/z80/lkgb.c (gb),
1631         * link/z80/lklibr.c (fndsym),
1632         * link/z80/lkrloc.c (relr),
1633         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
1634         * src/SDCC.lex (checkCurrFile, process_pragma),
1635         * src/SDCCglue.c (spacesToUnderscores),
1636         * src/SDCCmain.c (setParseWithComma, processFile),
1637         * src/asm.c (tvsprintf, printCLine),
1638         * src/avr/gen.c (emitcode, aopPut),
1639         * src/ds390/gen.c (emitcode),
1640         * src/hc08/gen.c (emitcode, emitinline),
1641         * src/mcs51/gen.c (emitcode, genInline),
1642         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1643           tokenizeLineNode),
1644         * src/pic/ralloc.c (debugLog),
1645         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1646           tokenizeLineNode),
1647         * src/pic16/ralloc.c (debugLog),
1648         * src/z80/main.c (_process_pragma):
1649            made all ctype.h function calls safe
1650         * src/SDCCopt.c: include math.h for fabs
1651         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
1652           and used them throughout the code to make ctype.h function calls safe
1653         * src/ds390/main.c (asmLineNodeFromLineNode),
1654         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
1655         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
1656            unsigned char*
1657         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
1658           (newpCodeAsmDir): made ctype.h function calls safe
1659         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
1660           pic16_emitcode):  made lbp unsigned char*
1661         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
1662           (pic16_newpCodeAsmDir): made ctype.h function calls safe
1663         * src/xa51/gen.c (emitcode),
1664         * src/z80/gen.c (_emit2): made lbp unsigned char*
1665         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
1666            char*
1667
1668 2005-09-05 Raphael Neider <rneider AT web.de>
1669
1670         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
1671           access bank splitpoint
1672
1673 2005-09-05 Raphael Neider <rneider AT web.de>
1674
1675         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
1676
1677 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
1678
1679         * .version: changed to version 2.5.3
1680         * doc/sdccman.lyx: changed version to 2.5.3,
1681           documented --codeseg and --constseg and pragma codeseg and constseg,
1682           documented bit parameters (reentrant) and bit returning
1683         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
1684            currFunc->recvSize, but is this ok for all ports?
1685           (ast2iCode): result of ~ on unsigned char must be cast to int for
1686            bool to work
1687         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
1688           function pointers in bit space
1689         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
1690           (processFuncArgs): call port.reg_parm() with reentrancy info
1691         * src/port.h,
1692         * src/avr/main.c,
1693         * src/ds390/main.c,
1694         * src/hc08/main.c,
1695         * src/pic/main.c,
1696         * src/pic16/main.c,
1697         * src/xa51/main.c,
1698         * src/z80/main.c: port.reg_parm prototype extended with
1699           "bool reentrant" parameter
1700         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
1701           options.stackAuto for allocating bit register parameters
1702         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
1703           (genSend): set BitBankUsed if it is,
1704           (selectRegBank): factored out of genCall for use in genPcall,
1705           (genCall): removed redundant dtype assignmen, use selectRegBank,
1706           (genPcall): handle returning in Carry properly, save in F0 if needed,
1707           (genReceive): handle bit register parameters
1708         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
1709           (mcs51_assignRegisters): enable bit registers for all reentrant
1710            functions and don't set BitBankUsed unconditionally
1711         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
1712         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
1713         * support/regression/tests/funptrs.c: added tests for BOOL and for return
1714
1715 2005-08-27 Borut Razem <borut.razem AT siol.net>
1716
1717         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
1718         ppc-osx (Darwin) does not support -u option. It seems that it is
1719         supported only on Linux - GNU cp
1720
1721 2005-08-25 Borut Razem <borut.razem AT siol.net>
1722
1723         * sim/ucsim/gui.src/serio.src/Makefile.in,
1724           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1725           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1726           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
1727           install and strip, since the strip at /usr/ccs/bin should be used
1728           on solaris
1729
1730 2005-08-24 Borut Razem <borut.razem AT siol.net>
1731
1732         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
1733
1734 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
1735
1736         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
1737         ffffffffu
1738
1739 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
1740
1741         * as/mcs51/aslink.h: completed lkrloc.c prototypes
1742         * as/mcs51/lkmain.c (link_main): fixed warning
1743         * device/include/stdbool.h: ds390 has no advanced bit support yet
1744         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
1745         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
1746         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
1747           and updated their macros
1748         * src/SDCCval.c (constVal): updated comment for renamed b_long
1749
1750 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
1751
1752         * as/mcs51/asdata.c: changed ctype['['] to BINOP
1753         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
1754           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
1755           (oprio): set priority for '['
1756         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
1757            and adb_24_bit
1758         * as/mcs51/asm.h: added defines R_BIT and S_BIT
1759         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
1760         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
1761         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
1762           added overlayable BIT_BANK area
1763         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
1764           (summary2): explain 'T' in legenda
1765         * as/mcs51/lkrloc.c: replaced old K&R style,
1766           (relr): added R_BIT processing,
1767           (errmsg): added "Bit-addressable relocation error",
1768           (adb_bit): added for converting from byte- to bit-addressable space,
1769           (adb_24_bit): added for converting from byte- to bit-addressable space
1770         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
1771            used in reentrant functions now even as return value
1772         * device/lib/_gptrput.c (_gptrput): removed obsolete code
1773         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
1774           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
1775         * src/SDCCglobl.h: added indicator BitBankUsed
1776         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
1777            the bit registers b0-b7
1778         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
1779           (geniCodeCast): fixed bug 1263853,
1780           (geniCodeLogicAndOr): put result in bool or char,
1781           (geniCodeReceive): added parameter func for accessing the return type,
1782           (geniCodeFunctionBody): pass func to geniCodeReceive
1783         * src/SDCCmain.c: added indicator BitBankUsed
1784         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
1785         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
1786           (checkSClass): don't put automatic bool/bit on stack,
1787           (checkFunction): removed check on function cannot return bit
1788         * src/SDCCsymt.h: added newBoolLink prototype
1789         * src/mcs51/gen.c (rb1regs): added bit registers,
1790           (movc): created for assigning to carry,
1791           (pushReg, popReg): created for pushing registers,
1792           (sameRegs): check both AOP_REG and AOP_CRY types,
1793           (aopOp): handle bit registers,
1794           (aopPut): optimization no self-assign,
1795           (saveRegisters): push reg->base (bits) only once for bit registers,
1796            and use pushReg,
1797           (unsaveRegisters): pop reg->base only once and use popReg,
1798           (assignResultValue): added parameter func and return in carry for bits,
1799           (genIpush): optimization no reload in A if not changed,
1800           (genSend): bit parameters in reentrant functions are passed in bit
1801            registers by first assigning to bits in B, then save registers and
1802            copy B to bits,
1803           (genCall): handle returning in Carry properly, save it in F0 if needed,
1804           (genPcall): updated assignResultValue call, this is not safe yet for bit
1805            returning function !!!
1806           (genFunction): don't generate equ's for bit registers and use pushReg,
1807           (genEndFunction): take care of bit returning functions and use popReg,
1808           (genRet): return bit in Carry,
1809           (genIfx): optimize bit registers and other directly addressable bits,
1810           (genReceive): updated assignResultValue call
1811         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
1812           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
1813            registers when using stack-auto
1814         * src/mcs51/ralloc.c (_G): added allBitregs,
1815           (regs8051): added the bit registers,
1816           (createStackSpil): use macro IS_BIT,
1817           (getRegBit): added to allocate a bit register, else spill,
1818           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
1819           (updateRegUsage): factored out to ease stepping while debugging,
1820           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
1821            also allocate bit registers,
1822           (fillGaps): handle bit registers,
1823           (findAllBitregs): added to create bit vector with all bit registers,
1824           (mcs51_allBitregs): returns this bit vector,
1825           (mcs51_assignRegisters): when using stack-auto use bit registers for
1826            passing parameters and creating local variables
1827         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
1828
1829 2005-08-22 Borut Razem <borut.razem AT siol.net>
1830
1831         * device/lib/Makefile.in: replaced find option -or with -o
1832           to make it run on solaris
1833
1834 2005-08-22 Raphael Neider <rneider AT web.de>
1835
1836         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
1837           fixes #1265442 (crash on Solaris)
1838
1839 2005-08-20 Borut Razem <borut.razem AT siol.net>
1840
1841         * configure, configure.in: added tests for libsocket and libnsl libraries,
1842           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
1843           from support/regression/Makefile.in
1844         * support/regression/Makefile.in: added
1845         * device/lib/pic16/Makefile.common.in: force make to use bash shell
1846         * sim/ucsim/libtool: regenerated on sparc-solaris
1847         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1848           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
1849           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
1850           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
1851           sparc-solaris, which doesn't use GNU ld linker
1852         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
1853         * as/Makefile: find on sparc-solaris does not support -maxdepth option
1854
1855 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
1856
1857         * src/mcs51/peeph.def: updated comments
1858
1859 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1860
1861         * device/lib/_gptrget.c,
1862         * device/lib/_gptrput.c: slightly shorter
1863         * doc/sdccman.lyx: incremented version
1864         * src/mcs51/peeph.def: moved peephole comments to the line of first
1865           change to better keep line correlation, reanimated 186.e
1866         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
1867
1868 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
1869
1870         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
1871           David Saxton with quotes around file name.
1872
1873 2005-08-15 Borut Razem <borut.razem AT siol.net>
1874
1875         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
1876           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
1877           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
1878           make tests run on x86_64 platform
1879
1880 2005-08-13 Raphael Neider <rneider AT web.de>
1881
1882         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
1883           as it might be executed DURING a build (parallel make is wonderful)
1884
1885 2005-08-13 Raphael Neider <rneider AT web.de>
1886
1887         * device/lib/Makefile.in (port-specific-objects-pic16):
1888           revert to cp $(PORT)/bin/*.* $(PORTDIR)
1889         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
1890           dependency
1891         * device/lib/pic16/Makefile.rules: build subdirs before creating
1892           the library, removed builddir rule, create $(builddir) early in
1893           recurse rule, use empty recurse rule for leaf directories
1894         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
1895           mkdir errors (race condition), removed duplicate suffix "hex"
1896           from clean rules
1897         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
1898         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
1899           prevents mkdir -p from aborting on Alpha
1900
1901 2005-08-12 Raphael Neider <rneider AT web.de>
1902
1903         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
1904           db-statements in order to allow for arrays of pointers in code
1905           sections to be placed without interspersed 0-padding, fixes
1906           bug #1256215
1907         * (emitStatistics): fixed division by zero for pic18f1220
1908         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
1909           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
1910         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
1911         * (pic16_pCodeConstString): keep track of already emitted string
1912           literals to prevent "duplicate definitions of symbol _str_NR"
1913         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
1914           debug message
1915         * device/lib/Makefile.in: ignore failing PIC16 library builds
1916         * device/lib/pic16/Makefile: do not build if gputils are missing
1917         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
1918
1919 2005-08-10 Raphael Neider <rneider AT web.de>
1920
1921         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
1922           my last commit)
1923
1924 2005-08-10 Raphael Neider <rneider AT web.de>
1925
1926         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
1927           Rokas' patch to add the new fixed point type "__fixed16x16"
1928         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
1929           functions for __fixed16x16 arithmetics
1930         * device/lib/pic16: reimplemented the build system to support
1931           a separate build directory, better handling of libio (create
1932           the library in a separate subdir for each architecture) and
1933           easier configuration (centralized in Makefile.common)
1934
1935 2005-08-07 Raphael Neider <rneider AT web.de>
1936
1937         * src/pic16/gen.c (genrshTwo): fixed sign extension
1938         * src/pic16/device.c: added pic18f2320, 4220 and 4320
1939         * device/include/pic16/pic18f2220.h: changed some bit definitions,
1940           added T0CONbits
1941         * device/include/pic16/pic18f4220.h: NEW, header for
1942           pic18f4220 and pic18f4320
1943         * device/include/pic16/pic18fregs.h: added new devices,
1944           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
1945         * device/include/pic16/signal.h: resolved name clashes
1946           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
1947           to also allow testing for interrupt enable bits, added
1948           comments on how to use the macros
1949         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
1950         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
1951           register definitions for the devices
1952         * device/lib/pic16/pics.all: added new devices
1953         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
1954           allocated memory
1955         * device/lib/pic16/libc/stdlib/memfree: do not count
1956           the block header as free memory
1957         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
1958           simplified and added missing end-of-blocklist-marker
1959           (reported by Peter Onion, fixes #1252814)
1960         * (_mergeHeapBlock): fixed loop condition
1961         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
1962           len==0, restructured code
1963         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
1964           up a bit, reduced bitfield accesses, prevent endless loops
1965           in case of heap corruption
1966         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
1967           "unreferenced arguments/must return a value" warnings
1968         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
1969           replaced BAUDREG with SPBRG
1970         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
1971           device/lib/pic16/debug/gstack/gstack.c: replaced
1972           _naked, _asm, _endasm with __naked, __asm, __endasm
1973
1974 2005-08-05 Raphael Neider <rneider AT web.de>
1975
1976         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
1977           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
1978
1979 2005-08-05 Borut Razem <borut.razem AT siol.net>
1980
1981         * device/lib/Makefile.in: added missing ';'
1982         * configure: removed ^M characters
1983
1984 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1985
1986         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
1987           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
1988           License
1989
1990 2005-08-04 Borut Razem <borut.razem AT siol.net>
1991
1992         * configure.in: pic16 libraries build 2nd try - enable running
1993           configure in device/lib/pic16
1994         * configure: regenerated from configure.in
1995         * device/lib/Makefile.in: create $(PORT)/bin directory
1996
1997 2005-08-03 Raphael Neider <rneider AT web.de>
1998
1999         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
2000           to get/set values via pointers
2001         * (genUnpackBits,genPackBits): changed detection of
2002           ptr->bitfield vs. sym.bitfield, fixed access via generic
2003           pointers, removed dead (wrong) code for multibyte bitfields
2004         * (genNearPointerGet, genGenPointerGet): removed useless code,
2005           fixed bitfield detection, fixes #1250594
2006         * (genNearPointerSet): removed useless code
2007         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
2008           and introduced macro pic16_emitpcode that conditionally emits
2009           the origin of the following pCode (useful for debugging SDCC)
2010         * src/pic16/pcode.c: changed (and disabled) some debug outputs
2011         * (createDefmap): fixed handling of LFSR for --optimize-df
2012
2013 2005-08-02 Borut Razem <borut.razem AT siol.net>
2014
2015         * device/lib/Makefile.in: pic16 libraries build enabled since
2016           gputils-0.13.2 are now localy installed at sourceforge's compile farm
2017
2018 2005-08-02 Raphael Neider <rneider AT web.de>
2019
2020         * src/pic16/gen.c (genPackBits): removed deprecated warning
2021         * (genGenPointerSet): fixed bitfield detection
2022
2023 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2024
2025         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
2026
2027 2005-07-31 Raphael Neider <rneider AT web.de>
2028
2029         * device/lib/pic16/libdev/pic18f458.c,
2030           device/include/pic16/pic18f458.h: added missing T0CONbits
2031
2032 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
2033
2034         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
2035
2036 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
2037
2038         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
2039
2040 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2041
2042         * device/include/mcs51/at89c51ed2.h: added.
2043
2044 2005-07-23 Raphael Neider <rneider AT web.de>
2045
2046         * src/pic/gen.h: added emitpcode macro for debugging
2047         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
2048           and replace by macro adding debug information on demand
2049         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
2050         * (gencjne): tried to fix; replaced with correct (slower) code
2051         * (gen{Unp,P}ackBits): fixed single bit access
2052         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
2053         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
2054           previous instruction
2055         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
2056           register has to be handled with care (forbidding movement
2057           of assignments/uses, removing assignments completely, ...)
2058         * (pCodeOptime2pCodes): make use of regIsSpecial
2059         * added lots of debugging output (commented out)
2060         * src/pic/rallloc.c (deassignLRs): prevent operand registers
2061           from being reused as result UNLESS it is known to work
2062
2063 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2064
2065         * support/Util/dbuf.h: include <stddef.h> for size_t
2066         * .version: changed to version 2.5.2
2067
2068 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2069
2070         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
2071
2072 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2073
2074         * src/hc08/gen.c (genMinus): fixed bug #1241835,
2075           (genModOneByte): removed needless psha/pula
2076
2077 2005-07-22 Raphael Neider <rneider AT web.de>
2078
2079         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
2080           have PIC14 handled like PIC16, fixes broken pic14 linker calls
2081         * src/pic/gen.c (resolveIfx): do not "invent" labels
2082         * (genSkipc): changed to positive logic
2083         * (genSkipCond): removed as no longer needed
2084         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
2085           backport from PIC16
2086         * (genLeftShift): check operands are in different registers
2087         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
2088           INCF does not update CARRY...
2089         * src/pic/main.c: fixed _linkCmd
2090         * src/pic/pcode.c (unlinkpCode): added inactive code
2091         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
2092           alive (do not assign result and operand overlapping registers)
2093
2094 2005-07-22 Raphael Neider <rneider AT web.de>
2095
2096         * src/pic/device.c (dump_sfr): replaced register declaration with
2097           call to emitSymbolToFile() to avoid duplicate symbols
2098         * (assignRelocatableRegisters): do not declare external symbols
2099         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
2100           right (take size of type, not etype)
2101         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
2102         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
2103         * (packRegsForAccUse): disabled assignment of WREG as
2104           the result reg to prevent occurence of just fixed #1235003,
2105           fixes #1242954
2106         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
2107           symbols (avoids duplicate symbols in .asm file)
2108         * (pic14emitRegularMap): use emitSymbolToFile()
2109         * src/pic/gen.c (aopOp): fixed spillLocation handling
2110         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
2111         * (genDataPointerSet): removed unneccessary variables/output
2112
2113 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
2114
2115         * as/mcs51/lkarea.c: enlarged codemap for banked memory
2116         * device/lib/mcs51/crtbank.asm: added # to 0x0F
2117
2118 2005-07-21 Raphael Neider <rneider AT web.de>
2119
2120         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
2121           architecture cannot handle them efficiently, fixes bug #1235003
2122         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
2123           check for empty sets before using them (fixes bug #1232190)
2124
2125 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
2126
2127         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
2128           (lnksect2): generate warnings for memory overlap
2129         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
2130           constseg to set the name of these segments so you can instruct the linker
2131           to place them in banks
2132         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
2133         * src/SDCCglobl.h: added MODEL_HUGE to enum,
2134           added code_seg and const_seg to options
2135         * src/SDCCglue.c (emitMaps): use options.const_seg,
2136           (createInterruptVect): put interrupt vectors in segment HOME,
2137           (glue): put HOME before static segment and put the main glue in HOME,
2138           (glue): use options.code_seg
2139         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
2140         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
2141           these segments so you can instruct the linker to place them in banks
2142           (linkEdit): use code_loc for HOME segment which should be the first
2143           segment in code memory now
2144         * src/SDCCmem.c: fixed more stuff like bug 1238386
2145         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
2146           (changePointer): don't change function pointers to code pointers for
2147           banked functions,
2148           (compareType): added exceptional check for banked function pointers
2149         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
2150         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
2151           after static in code memory
2152         * src/mcs51/gen.c: added aopLiteralLong prototype,
2153           (aopForSym): use getSize for functions,
2154           (genCall): generate banked calls over one trampoline __sdcc_banked_call
2155           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
2156           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
2157           the segment,
2158           (genPcall): use call for literal function pointers and generate banked
2159           calls over the one trampoline so there's only one place for the user to
2160           modify according to his/hers hardware,
2161           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
2162           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
2163         * src/mcs51/main.c: added keyword banked,
2164           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
2165         * support/Util/SDCCerr.c,
2166         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
2167           needed for passing the bank and address to the trampoline
2168         * device/lib/mcs51/crtbank.asm: added for bankswitching
2169         * device/lib/mcs51/Makefile: added crtbank
2170
2171 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2172
2173         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
2174           for fields at offset 0 of a struct or union as reported
2175           on 2005-07-07 in the developer mailing list.
2176
2177 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2178
2179         * src/SDCCmem.c: fixed bug 1238386
2180
2181 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2182
2183         * src/mcs51/peeph.def: added labelrefcounting for peepholes
2184           (patch #1144962), added peephole 300, enabled 259.x
2185         * doc/sdccman.lyx: removed screenshot and provided link instead
2186
2187 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2188
2189         * doc/sdccman.lyx: added section about debugging with ddd
2190         * doc/figures/ddd_example.eps: screenshot of debugging session
2191
2192 2005-07-04 Raphael Neider <rneider AT web.de>
2193
2194         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
2195           like CODE pointers, fixes #1115683
2196         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
2197           call, fixes bugs #1232211, #1228110,
2198           fixed wrong casts to pCodeFlow from pCodeInstructions
2199
2200 2005-07-04 Raphael Neider <rneider AT web.de>
2201
2202         * src/pic/gen.c (popGet): changed assert to allow for
2203           bit operands
2204         * (popGetAddr): changed signature to provide
2205           an additional index, patched all call sites
2206         * (genCmpEq): handle literal-like operands correctly
2207         * (genAddrOf): added sanity checks on __code/__data pointers
2208         * (genAssign): added handling of symbols from __code section
2209         * (gencjne): do not generate code for comparisons whose result
2210           is neither stored nor used, fixes bug #1171114
2211         * (AccLsh, AccRsh): operate on operand instead of WREG
2212         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
2213           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
2214           by known count
2215         * rewrote complete shift-by-literal logic, commented unused
2216           functions out
2217         * (genConstPointerGet): get multiple bytes (if result size > 1),
2218           fixed handling of non-immediate addresses
2219         * (genPointerGet): handle CODE pointers like CONST pointers
2220         * (genpic14Code): insert C-SRC lines as Cource-pCodes
2221         * ({aop,op}_isLitLike): NEW, single place to decide whether an
2222           operand is to be treated as a literal or not
2223         * (mov2w,genPcall,genCmpEq),
2224           src/pic/genarith.c: use aop_isLitLike() to decide between
2225           literal/register contents
2226         * (addSign): added missing offset
2227         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
2228           only emit comment in debug-mode,
2229           use {aop,op}_isLitLike throughout the file
2230         * src/pic/glue.c: fix initializers for pointers (work in progress)
2231         * src/pic/pcode.c (get_op): honor index on _const symbols
2232         * ({reset,dump}pCodeStatistics): NEW, estimate code size
2233         * (dumppBlock): added pCode size estimation
2234         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
2235           check for IS_SYMOP before OP_SYMBOL'ing
2236         * fixed indentation, compacted switch-statements
2237         * (allocReg): find free register and allocate it instead of
2238           allocating new registers all the time
2239         * (deassignLRs): prevent POINTER_GET's from being assigned the same
2240           registers as its operands (necessary only for multibyte GETs)
2241
2242 2005-07-01 Raphael Neider <rneider AT web.de>
2243
2244         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
2245           debugging .asm-output macros FENTRY + FEXIT
2246         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
2247           way... I wonder...
2248         * (emitpComment): NEW, printf to pCode
2249         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
2250           offset handling
2251         * (popGetAddr): NEW, variant of popGet to access an immediates
2252           high(er) bytes instead of the n'th byte of memory they reference,
2253           replaced popGet with popGetAddr where neccessary
2254         * (genDataPointerGet): reactivated and fixed implementation
2255         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
2256           accesses
2257         * (genDataPointerSet): fixed multibyte assignments
2258         * (genpic14Code): fixed --i-code-in-asm handling
2259         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
2260         * (genPlus): fixed index-out-of-bounds error
2261         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
2262         * src/pic/ralloc.c: added debugging output macro FENTRY2
2263         * (spillThis): fixed indentation, enbraced for-body for clarity
2264         * (rematStr): commented out as now unused
2265         * (regTypeNum): commented out special spill case (overwrites
2266           arbitrary values)
2267         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
2268
2269 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
2270
2271         * doc/sdccman.lyx: documented sfr16/sfr32,
2272           added example for using storage class with function pointers
2273         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
2274
2275 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
2276
2277         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
2278         * device/lib/_itoa.c,
2279         * device/lib/_ltoa.c: optimized codesize
2280         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
2281           but don't know how to suppress the double warning.
2282         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
2283         * support/Util/SDCCerr.c,
2284         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
2285
2286 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
2287
2288         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
2289           fixed old K&R prototypes
2290         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
2291         * device/lib/_gptrget.c,
2292         * device/lib/_gptrgetc.c,
2293         * device/lib/_gptrput.c: changed versions for new memory indicator values,
2294           also new versions for small generic pointers and banked generic pointers
2295         * src/port.h: added const_name
2296         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
2297         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
2298         * src/SDCCcse.c (findPrevIc): check all associative operators
2299         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
2300         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
2301         * src/SDCCmem.c: updated comments,
2302           set far-space to 0 for pdata, results in optimized code
2303         * src/SDCCmem.h: added macro CONST_NAME
2304         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
2305           moving the info into the highest bits, see also gptrget/gptrput
2306         * src/src.dsp: added sdcc.ico to project files
2307         * src/avr/gen.c (genCast): fixed bug 0x%d
2308         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
2309         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
2310           relation between ptr_type and DCL_TYPE,
2311           (genCast): fixed bug 0x%d
2312         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
2313           (CODE)" for const_name
2314         * src/hc08/gen.c (genCast): fixed bug 0x%d
2315         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
2316           (hc08_port): added "CONST (CODE)" for const_name
2317         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
2318           (aopForRemat, adjustArithmeticResult): disconnected direct relation
2319           between ptr_type and DCL_TYPE,
2320           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
2321           operand* and took AOP() inside function so sfr-ness can be checked,
2322           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
2323           new prototype,
2324           (genFunction, genEndFunction): optimized stack setup,
2325           (genMinus): optimized for literals with ending zeroes (in bytes),
2326           (genCast): fixed bug 0x%d
2327         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
2328           (mcs51_port): added "CONST (CODE)" for const_name
2329         * src/mcs51/peeph.def: made rule 226 more generic
2330         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
2331         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
2332         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
2333         * src/z80/main.c (z80_port): added NULL for const_name,
2334           (gbz80_port): added NULL for const_name
2335         * support/regression/tests/bug663539.c,
2336         * support/regression/tests/sfr16.c: new tests
2337
2338 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2339
2340         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
2341
2342 2005-06-24 Raphael Neider <rneider AT web.de>
2343
2344         * device/lib/pic16/libdev/pic18f[68][567]20.c:
2345           corrected typos...
2346         * device/include/pic16/signal.h: added USBIF
2347           and SIG_USB
2348
2349 2005-06-24 Raphael Neider <rneider AT web.de>
2350
2351         * device/lib/pic16/libdev/pic18f2455.c,
2352           device/include/pic16/pic18f2455.h: NEW
2353         * device/include/pic16/pic18fregs.h,
2354           device/lib/pic16/pics.all,
2355           src/pic16/device.c: added 18f2455
2356         * device/lib/pic16/libdev/pic18f[68][567]20.c,
2357           device/include/pic16/{pic18f[68][567].h,usart.h}:
2358           replaced MULTIPLE_USARTS define with more relaible
2359           compatibility sfrs (for USART access)
2360
2361 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
2362
2363         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
2364           and the output asm file line is printed on two lines.
2365
2366 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2367
2368         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
2369           BGT, BLE, BHI, and BLS instructions
2370         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
2371           genCmpEq): removed
2372         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
2373           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
2374           fixes bug #1216342
2375         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
2376
2377 2005-06-15 Raphael Neider <rneider AT web.de>
2378
2379         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
2380         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
2381         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
2382           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
2383           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
2384
2385 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2386
2387         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
2388           Marcel Telka in bug #1215704
2389
2390 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
2391
2392         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
2393           located in shared memory bank.
2394
2395 2005-05-31 Raphael Neider <rneider AT web.de>
2396
2397         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
2398           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
2399           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
2400
2401 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
2402
2403         * device/lib/_strncpy.c: fixed the fix
2404
2405 2005-05-26 Raphael Neider <rneider AT web.de>
2406
2407         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
2408           initializers with \0, bug #1208187
2409         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
2410           intializers with \0, bug #1208187
2411
2412 2005-05-26 Raphael Neider <rneider AT web.de>
2413
2414         * src/pic16/glue.c (pic16_printIvalChar): fixed string
2415           initializers with \0, bug #1208187
2416         * src/pic16/main.c (_process_pragma): added sanity checks
2417           for stack position and size, emit warnings when appropriate
2418
2419 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2420
2421         * device/lib/_strncpy.c: fixed not filling with \0
2422
2423 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2424
2425         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
2426           createFunction),
2427         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
2428           compound_statement),
2429         * src/SDCCsymt.h,
2430         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
2431
2432 2005-05-24 Raphael Neider <rneider AT web.de>
2433
2434         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
2435
2436 2005-05-24 Raphael Neider <rneider AT web.de>
2437
2438         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
2439           TRISE definitions, closes bug #1162453
2440
2441 2005-05-22 Raphael Neider <rneider AT web.de>
2442
2443         * src/pic16/main.c (_process_pragma): check for missing
2444           arguments to pragmas code and udata
2445         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
2446           consistency fixes to match other headers (thanks to Jim Paris)
2447         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
2448
2449 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2450
2451         * src/SDCCicode.c (isOperandEqual): fixed missing ;
2452
2453 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
2454
2455         * support/regression/tests/bug1198642.c: new test
2456         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
2457         * src/SDCCcse.c (findPrevIc): added comment, please have a look
2458         * support/scripts/resource.h,
2459         * support/scripts/resource.rc,
2460         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
2461         * support/scripts/sdcc.ico: added 32x32 icon
2462
2463 2005-05-18 Raphael Neider <rneider AT web.de>
2464
2465         * device/lib/pic16/libdev/pic18f*.c,
2466         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
2467           keywords to "__sfr" and "__at (X)"
2468         * device/include/pic16/pic18fregs.h: added pic18f4520
2469         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
2470           #1203088 (MPLAB compatibility)
2471
2472 2005-05-17 Raphael Neider <rneider AT web.de>
2473
2474         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
2475         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
2476         * device/lib/pic16/pics.all: added new devices
2477         * src/pic16/device.c: added support for pic18f4520
2478
2479 2005-05-16 Raphael Neider <rneider AT web.de>
2480         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
2481         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
2482         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
2483           convenience function for bit access
2484
2485 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2486
2487         * device/lib/printf_large.c: fixed bug 1193299
2488         * support/regression/tests/bug1057979.c: added test %3.3s
2489
2490 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2491
2492         * device/include/mcs51/8051.h,
2493         * device/include/mcs51/8052.h: made parseable with lint
2494         * device/include/mcs51/lint.h: added include file for (sp)lint
2495         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
2496         * doc/cdbfileformat.lyx,
2497         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
2498
2499 2005-05-14 Raphael Neider <rneider AT web.de>
2500
2501         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
2502         * device/lib/pic16/libc/stdlib/itoa.c (new)
2503         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
2504         * device/lib/pic16/libio/Makefile: exclude subdir according to
2505           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
2506         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
2507         * src/pic16/gen.c (genFunction): prevent annoying warning
2508         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
2509           nameclashes on BeOS
2510         * support/cpp2/cppmain.c (cpp_output_string): new
2511         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
2512           fixes bug 1116802
2513
2514 2005-05-13 Borut Razem <borut.razem AT siol.net>
2515
2516         * src/SDCCmain.c (linkEdit): fixed bug 1195202
2517
2518 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2519
2520         * .version: changed to version 2.5.1; back to bleeding edge development
2521
2522 2005-05-11 Borut Razem <borut.razem AT siol.net>
2523
2524         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
2525           generate PDF version 1.3 documents
2526
2527 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2528
2529         * .version: changed to version 2.5.0
2530
2531 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2532
2533         * doc/sdccman.lyx: updated weblinks, index and smaller updates
2534
2535 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2536
2537         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
2538         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
2539         well as many smaller updates.
2540         * .version: changed to version 2.5.0-pre1
2541
2542 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2543
2544         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
2545
2546 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2547
2548         * support/regression/tests/bug1185672.c: added
2549         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
2550           bug 1185672
2551         * src/mcs51/gen.c (genCall): added comments, made it look safer
2552         * src/mcs51/gen.c (genEndFunction): simplified
2553
2554 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2555
2556         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
2557
2558 2005-04-14 Borut Razem <borut.razem AT siol.net>
2559
2560         * fixed bug 1045046 - SIGSEGV with really simple code?:
2561           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
2562           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
2563
2564 2005-04-14 Borut Razem <borut.razem AT siol.net>
2565
2566         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
2567           src/pic16/device.h: temporarily disabled experimental #inline pragma
2568           for 2.5.0 release
2569
2570 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
2571
2572         * device/include/z80/stdio.h,
2573         * device/include/z80/string.h: removed these highly incomplete files so
2574           SDCC can use the default ones in device/include/
2575
2576 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2577
2578         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
2579         gcc warning.
2580         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
2581         fix sdcpp warnings.
2582
2583 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2584
2585         * device/include/malloc.h: removed redundant __reentrant prototypes
2586         * device/lib/_mullong.c: added working xstack variant in asm (C version
2587           doesn't pass regression tests)
2588         * device/lib/bpx.c: used __data and made bpx char for mcs51
2589         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
2590           (createFunction): fixed bug with xstackPtr
2591         * src/SDCCcse.c: corrected comments
2592         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
2593           (killDeadCode, eBBlockFromiCode): removed unused code
2594         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
2595           corrected comments
2596         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
2597           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
2598           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
2599           (genModOneByte): fixed warning in MSVC
2600         * src/mcs51/main.c (): added comments
2601         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
2602
2603 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2604
2605         * src/SDCCmain.c (linkEdit): oops, changed one line too many
2606
2607 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
2608
2609         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
2610
2611 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
2612
2613         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
2614         characters arrays of larger size than the declared one.
2615
2616 2005-04-10 Borut Razem <borut.razem AT siol.net>
2617
2618         * src/pic/gen.c (genInline),
2619           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
2620           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
2621           (findNextInstruction), (findPrevInstruction),
2622           (findInstructionUsingLabel),
2623           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
2624         * src/pic/pcode.c (findLabel): added missing '\n'
2625         * src/src.dsp: added SDCCdwarf2.c to the project
2626
2627 2005-04-09 Borut Razem <borut.razem AT siol.net>
2628
2629         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
2630
2631 2005-04-08 Raphael Neider <rneider AT web.de>
2632
2633         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
2634           into the chain after a given one) and mergeDefmapSymbols (combine
2635           defmap entries for each symbol per pcode)
2636         * (createDefmap): have defmap entries merged in the end
2637         * (defmapReplaceSymRef): split defmap entries covering two accesses to
2638           a symbol before replacing one access type's symbol, merge symbols in
2639           the end (replacement symbol might already have an entry)
2640         * (assignValnums): keep reference to written WREG intact
2641
2642 2005-04-08 Raphael Neider <rneider AT web.de>
2643
2644         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
2645           Alpha)
2646
2647 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
2648
2649         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
2650         bytes
2651
2652 2005-04-07 Raphael Neider <rneider AT web.de>
2653
2654         * device/include/pic16/usart.h: added compatibility defines for
2655           devices with more than one USART
2656         * device/include/pic16/pic18f[68][567]20.h: activated above defines
2657
2658 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2659
2660         * device/lib/Makefile.in: updated for port specific include
2661
2662 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2663
2664         * support/regression/ports/mcs51/spec.mk: added mcs51 include
2665
2666 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2667
2668         * device/include/8051.h,
2669         * device/include/8052.h,
2670         * device/include/at89S8252.h,
2671         * device/include/at89c55.h,
2672         * device/include/at89x051.h,
2673         * device/include/at89x51.h,
2674         * device/include/at89x52.h,
2675         * device/include/mcs51reg.h,
2676         * device/include/reg51.h,
2677         * device/include/reg764.h,
2678         * device/include/regc515c.h,
2679         * device/include/sab80515.h: (re)moved these 12 files
2680         * device/include/mcs51/8051.h,
2681         * device/include/mcs51/8052.h,
2682         * device/include/mcs51/at89S8252.h,
2683         * device/include/mcs51/at89c55.h,
2684         * device/include/mcs51/at89x051.h,
2685         * device/include/mcs51/at89x51.h,
2686         * device/include/mcs51/at89x52.h,
2687         * device/include/mcs51/mcs51reg.h,
2688         * device/include/mcs51/reg51.h,
2689         * device/include/mcs51/reg764.h,
2690         * device/include/mcs51/regc515c.h,
2691         * device/include/mcs51/sab80515.h: and added them here
2692
2693 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2694
2695         * device/include/stdarg.h: changed SDCC specific keywords to double
2696           underlined form.
2697         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
2698           mcs51 and ds390.
2699         * device/include/hc08/mc68hc908gp32.h,
2700         * device/include/hc08/mc68hc908jb8.h,
2701         * device/include/hc08/mc68hc908jkjl.h,
2702         * device/include/hc08/mc68hc908qy.h: fixed comments
2703         * device/include/mcs51/README: updated
2704         * device/include/mcs51/c8051f120.h: added PINRSF
2705         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
2706         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
2707           amidst code. Also inline is not supported.
2708
2709 2005-04-06 Raphael Neider <rneider AT web.de>
2710
2711         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
2712         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
2713           callers stack/frame pointers
2714
2715 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2716
2717         * device/include/pic16/usart.h: added, missing in previous commit,
2718         * device/include/pic16/adc.h: fixed typo,
2719         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
2720         commit,
2721         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
2722         <p18fxxx.inc>
2723         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
2724         uninitialized because a bug appears with gplink
2725         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
2726         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
2727         complains for unrecognised option
2728
2729 2005-04-05 Raphael Neider <rneider AT web.de>
2730
2731         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
2732           structs as well (using memcpy)
2733         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
2734           on ISRs (GOTO has no label)
2735         * src/pic16/device.h: added OF_OPTIMIZE_DF
2736         * src/pic16/main.c: added compiler switch --optimize-df to enable the
2737           new data flow analysis/optimization
2738         * src/pic16/pcode.c: added (prototypes for and implementation of)
2739           dataflow analysis functions, fixed pCodeInstructions' inCond and
2740           outCond values, made RCALL a branch instruction
2741         * (pic16_unlinkpCode): keep C line if possible
2742         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
2743           C line moved if possible
2744         * (pic16_getRegFrompCodeOp): NEW, improved version of...
2745         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
2746           to use new pic16_getRegFrompCodeOp (works for more SFRs)
2747         * (pic16_BuildFlow): fixed skip instructions with label (did not start
2748           new flow)
2749         * (pic16_getJumptabpCode): NEW, needed in...
2750         * (LinkFlow): fixed handling of jumptables, calls and conditional
2751           branches
2752         * (pic16_InsertCommentAfter): NEW
2753         * (pic16_pCodeReplace): made verbose and flow preserving
2754         * (AnalyzeFlow): added call to data flow analysis
2755         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
2756         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
2757         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
2758
2759 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2760
2761         * src/SDCCast.c (decorateType): fixed bug #1105626
2762
2763 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
2764
2765         * device/include/asm/pic16/features.h,
2766         * pic18f*.h headers,
2767         * device/include/pic16/adc.h,
2768         * device/include/pic16/delay.h,
2769         * device/include/pic16/i2c.h,
2770         * device/include/pic16/malloc.h,
2771         * device/include/pic16/stdio.h,
2772         * device/include/pic16/stdlib.h,
2773         * device/include/pic16/string.h,
2774         * device/lib/pic16/libc/stdio/printf_tiny.c,
2775         * device/lib/pic16/libc/stdio/printf_small.c,
2776         * device/lib/pic16/libc/stdio/strmgpsim.c,
2777         * device/lib/pic16/libc/stdio/strmmssp.c,
2778         * device/lib/pic16/libc/stdio/strmusart.c,
2779         * device/lib/pic16/libc/stdio/vfprintf.c,
2780         * device/lib/pic16/libc/stdlib/ltoa.c,
2781         * device/lib/pic16/libc/stdlib/putchar.c,
2782         * device/lib/pic16/libc/stdlib/x_ftoa.c,
2783         * device/lib/pic16/libc/stdlib/memchrpgm.c,
2784         * device/lib/pic16/libc/stdlib/memchrram.c,
2785         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
2786         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
2787         * device/lib/pic16/libio/adc/adcbusy.c,
2788         * device/lib/pic16/libio/adc/adcread.c,
2789         * device/lib/pic16/libio/adc/adcsetch.c,
2790         * device/lib/pic16/libio/usart/ubaud.c,
2791         * device/lib/pic16/libio/usart/ubusy.c,
2792         * device/lib/pic16/libio/usart/udrdy.c,
2793         * device/lib/pic16/libio/usart/uopen.c,
2794         * device/lib/pic16/libio/usart/uputc.c,
2795         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
2796         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
2797         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
2798         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
2799         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
2800         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
2801         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
2802         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
2803         specific keywords to double underlined form,
2804         * device/lib/pic16/libc/Makefile.rules,
2805         * device/lib/pic16/libsdcc/Makefile.rules,
2806         * device/lib/pic16/libm/Makefile,
2807         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
2808         to compile with C standard set in Makefile.common
2809         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
2810         rand.c and crc.c in compilation process,
2811         * device/lib/pic16/libsdcc/int/divuint.c,
2812         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
2813         `c' from signed to unsigned,
2814         * device/lib/pic16/startup/crt0.c,
2815         * device/lib/pic16/startup/crt0i.c,
2816         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
2817         keywords to double underlined form, bug fixes in _do_cinit function
2818         which prevented the correct initialization of the .idata segment,
2819         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
2820         core to enter a infinite loop
2821         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
2822
2823 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2824
2825         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
2826
2827 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2828
2829         * device/include/Makefile.in: add support for hc08 subdirectory
2830         * device/include/hc08/: new subdirectory
2831         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
2832         Lucas Loizaga, thanks!
2833         * device/include/hc08/mc68hc908qy.h,
2834         * device/include/hc08/mc68hc908gp32.h,
2835         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
2836         their own directory. Changed internal macro names to use the compiler
2837         reserved namespace. Changed SDCC specific keywords to double
2838         underlined form.
2839         * device/include/math.h,
2840         * device/include/malloc.h,
2841         * device/include/stdarg.h,
2842         * device/include/stdbool.h
2843         * device/include/string.h,
2844         * device/include/tinibios.h,
2845         * device/include/ds400rom.h,
2846         * device/include/8051.h,
2847         * device/include/8052.h,
2848         * device/include/80c51xa.h,
2849         * device/include/at89c55.h,
2850         * device/include/at89S8252.h,
2851         * device/include/at89x51.h,
2852         * device/include/at89x52.h,
2853         * device/include/ds80c390.h,
2854         * device/include/reg764.h,
2855         * device/include/regc515c.h,
2856         * device/include/sab80515.h,
2857         * device/include/mcs51/c8051f000.h,
2858         * device/include/mcs51/c8051f018.h,
2859         * device/include/mcs51/c8051f020.h,
2860         * device/include/mcs51/c8051f040.h,
2861         * device/include/mcs51/c8051f060.h,
2862         * device/include/mcs51/c8051f120.h,
2863         * device/include/mcs51/c8051f300.h,
2864         * device/include/mcs51/c8051f310.h,
2865         * device/include/mcs51/c8051f320.h,
2866         * device/include/mcs51/c8051f330.h,
2867         * device/include/mcs51/c8051f350.h,
2868         * device/include/z180.h: Changed SDCC specific keywords to double
2869         underlined form.
2870
2871 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
2872
2873         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
2874         18F4455,
2875         * (pic16_assignConfigWordValue): disable testing of configuration
2876         register value with config mask,
2877         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
2878         function with port->fun_prefix,
2879         * (genFunction): when generating a naked interrupt function never
2880         create an absolute segment placed in interrupt vector address, place
2881         the actual interrupt function at IVA instead, when an interrupt
2882         function is generated with unspecified interrupt then do not create
2883         the absolute section,
2884         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
2885         code for generating a call to generic pointer get/put function with
2886         a call to function pic16_callGenericPointer(),
2887         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
2888         the call to the generic pointer get/put functions with prefixing the
2889         function name with port->fun_prefix,
2890         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
2891         * src/pic16/main.c (_process_pragma): prefix function with
2892         port->fun_prefix,
2893         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
2894         calling assembler, old 18Fxxxx macro is deprecated,
2895         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
2896         PC_ASMDIR in while condition,
2897         * (findInstruction): add PC_ASMDIR in while condition,
2898         * (buildCallTree): prefix main with port->fun_prefix,
2899         * (pic16_pCode2str): fixed bug that didn't emit the memory access
2900         identifier for variable with banked access in instructions BTFSS,
2901         BTFSC, BCF, BSF, BTG
2902         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
2903         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
2904         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
2905         perform optimization when enviroment variable NO_REG_OPT is set,
2906         * (insideLRBlock): NEW, return 1 if register is inside an
2907         INF_LOCALREGS block,
2908         * (RemoveRegFromLRBlock): remove a register that is completely
2909         eliminated by register optimization, but it is still left in local
2910         register store/restore in/from stack block,
2911         * (Remove2pcodes): after removing register, check to see if it
2912         should be removed from local register store/restore in/from stack
2913         block,
2914         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
2915         DUMMY_READ_VOLATILE,
2916
2917         * device/include/pic16/adc.h: minor prototype modifications and
2918         update,
2919         * device/include/pic16/malloc.h: added GPL notice various
2920         modifications,
2921         * device/include/pic16/stdint.h: NEW, standard header for ints
2922         * device/include/pic16/delay.h: NEW, header for delay functions,
2923         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
2924         delay1mtcy,
2925         * device/include/pic16/signal.h: NEW, header providing helper macros
2926         for implementing signal handlers,
2927         * device/include/pic16/stdio.h: added prototypes for functions,
2928         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
2929         prototypes for stdin and stdout, added macro PUTCHAR to
2930         automatically implement putchar function prototype,
2931         * device/include/pic16/usart.h: modified and updated USART library,
2932         * device/lib/pic16/libio/adc/,
2933         * device/lib/pic16/libio/i2c: some modifications to improve library
2934         performance,
2935         * device/lib/pic16/libc/stdio/: modifications for the new printf*
2936         family of functions,
2937         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
2938         family of functions and other sources,
2939         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
2940         of the PIC18Fxx[28] devices,
2941         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
2942         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
2943         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
2944         _do_cinit function, because the previous failed when local variables
2945         where not placed in the same memory bank,
2946         * device/lib/pic16/libsdcc/char/: various modifications to improve
2947         library performance,
2948         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
2949         information on the new functions of the c library and more...
2950
2951 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2952
2953         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
2954
2955 2005-03-26 Raphael Neider <rneider AT web.de>
2956
2957         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
2958           if condition == CARRY)
2959         * (genCmp): adapted to new genSkipc semantics
2960         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
2961           on rIfx (genCmp was broken)
2962
2963 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2964
2965         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
2966         * src/z80/main.c (_keywords[]),
2967         * src/SDCCglobal.h (struct options),
2968         * src/SDCC.y,
2969         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
2970         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
2971         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
2972         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
2973         always available in leading double underscore form. The C99 support is
2974         mostly missing, but it's a start.
2975         * support/regression/tests/bug-227710.c: fixed nonconforming use of
2976         reserved identifier "__data".
2977
2978 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
2979
2980         * src/mcs51/peeph.def: fixed bug 1170013
2981
2982 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
2983
2984         * device/include/mcs51reg.h: fixed bug 842007
2985
2986 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2987
2988         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
2989         last time.
2990
2991 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2992
2993         * src/port.h (struct PORT),
2994         * src/avr/ralloc.c (avr_assignRegisters),
2995         * src/avr/main.c,
2996         * src/ds390/ralloc.c (ds390_assignRegisters),
2997         * src/ds390/main.c,
2998         * src/hc08/ralloc.c (hc08_assignRegisters),
2999         * src/hc08/main.c,
3000         * src/mcs51/ralloc.c (mcs51_assignRegisters),
3001         * src/mcs51/main.c,
3002         * src/pic/ralloc.c (pic14_assignRegisters),
3003         * src/pic/main.c,
3004         * src/pic16/ralloc.c (pic16_assignRegisters),
3005         * src/pic16/main.c,
3006         * src/xa51/ralloc.c (xa51_assignRegisters),
3007         * src/xa51/main.c,
3008         * src/z80/ralloc.c (z80_assignRegisters),
3009         * src/z80/ralloc.h,
3010         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
3011         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
3012         * src/SDCCcse.h,
3013         * src/SDCCdflow.c (computeDataFlow),
3014         * src/SDCCdflow.h,
3015         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
3016         * src/SDCCloop.h,
3017         * src/SDCCcflow.c (*),
3018         * src/SDCCcflow.h,
3019         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
3020         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
3021         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
3022         immedDom() returning wrong block; probably fixes bug #1160833)
3023
3024 2005-03-20 Borut Razem <borut.razem AT siol.net>
3025
3026         * support/scripts/inc2h.pl: WIN32 port
3027
3028 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
3029
3030         * device/lib/makefile.in: added abs.c and labs.c
3031
3032 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3033
3034         * device/include/stdint.h: added
3035         * device/lib/abs.c: added
3036         * device/lib/labs.c: added
3037         * device/include/stdlib.h: added abs() and labs() prototypes
3038         * device/lib/libsdcc.lib: added abs and labs
3039         * device/include/float.h,
3040         * device/lib/_fsmul.c,
3041         * device/lib/printf_fast.c,
3042         * device/lib/printf_tiny.c: updated comments
3043
3044 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3045
3046         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
3047         bug #1164313
3048
3049 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3050
3051         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
3052         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
3053
3054 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
3055
3056         * device/lib/printf_large.c: removed inline assembly for portability and
3057           readability. Use printf_fast if speed or size are more important.
3058         * src/pic16/gen.c: removed conditions around use of DEBUGpc
3059         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
3060
3061 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
3062
3063         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
3064         prevent compiler warning
3065
3066 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3067
3068         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
3069         moved to level 0 and declared as static. Also they are explicit
3070         placed in access bank. This was necessery because some times they
3071         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
3072         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
3073         optimizations. Currently only compare to unsigned char is implemented,
3074         * src/pic16/gen.c: added fReturnIdx array,
3075         * (struct resolvedIfx) is moved to gen.h and made public,
3076         * (struct _G): added sregsAlloc and sregsAllocSet fields,
3077         * (aopForSym): added an optimization to directly store in stack of
3078         the operand of a SEND iCode,
3079         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
3080         but as registers instead (AOP_REG) using the fReturnIdx array,
3081         * (pic16_freeAsmop): remove the freed register from the
3082         _G.sregsAlloc field,
3083         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
3084         a compare of 'WREG',
3085         * (pic16_popGetTempRegCond): changed function prototype, now
3086         function takes also a bitVector argument v which holds the current
3087         set of registers that are allocated for stack access by aopForSym,
3088         registers allocated in aopForSym for accessing stack symbols are not
3089         any more part of the functions usedRegs field,
3090         * (genCall): some times aopOp is called for a stack variable to be
3091         send, aopForSym might perform the push, if this is true make sure
3092         that genCall doesn't push the variable twice by testing _G.resDirect,
3093         * (genFunction): changed testing for unspecified interrupt number
3094         from 256 to INTNO_UNSPEC,
3095         * modified selection scheme of frame pointer generation. Previously
3096         if function did use local registers a frame pointer was generated,
3097         now a frame pointer is generated only if function has arguments
3098         (that need PLUSW2 register access), or has stack arguments, or the
3099         compiler is not instructed to omit the frame pointer,
3100         * (genEndFunction): before restoring local registers that were saved
3101         in the function preamble, also restore the registers that *might*
3102         have been allocated for stack access,
3103         * (genRet): removed some old comments,
3104         * (genCmp, the active (RN's) version): added a call to the
3105         pic16_genCmp_special function to perform the compare with a more
3106         robust and optimized way,
3107         * (genInline): a feature has been added in inline code generation,
3108         which allows a wildcard variable substitution when writing inline
3109         assembly. Code is incomplete and experimental therefore undocumented,
3110         * (genCast): changed order of aopOp for result and right to allow
3111         aopForSym to directly load the result if possible,
3112         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
3113         perform an optimized compare on some selected special occasions,
3114         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
3115         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
3116         generate an IVT any more,
3117         * src/pic16/main.c (pic16_optionsTable): added command line option
3118         --optimize-cmp,
3119         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
3120         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
3121         macros,
3122         * src/pic16/NOTES: Raphael Neider added in list of active developers
3123         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
3124         jumptable_end to prevent bug #,
3125         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
3126         inCond and outCond fields,
3127         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
3128         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
3129         turn off register spilling,
3130         * (packRegsForOneUse): synced with other ports' versions although it
3131         is not used currently,
3132         * (pic16_packRegisters): added an optimization while reading
3133         structure bitfields, some registers may be saved (malloc code is
3134         decreased by 80 bytes)
3135
3136 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
3137
3138         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
3139         left is a bitfield, if yes, then don't optimize assignment. Perhaps
3140         this can be optimized more?
3141
3142 2005-03-10 Raphael Neider <rneider AT web.de>
3143
3144         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
3145           genNearPointerGet): (hopefully) fixed access to bitfields via
3146           pointers (p->bitN = x; and x = p->bitN; failed)
3147
3148 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
3149
3150         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
3151
3152 2005-03-09 Raphael Neider <rneider AT web.de>
3153
3154         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
3155
3156 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
3157
3158         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
3159         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
3160           (regTypeNum): set REG_BIT type if necessary
3161         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
3162         * support/regression/tests/critical.c: check bug 1144613
3163
3164 2005-03-02 Raphael Neider <rneider AT web.de>
3165
3166         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
3167
3168 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3169
3170         * src/avr/ralloc.c (serialRegAssign),
3171         * src/ds390/ralloc.c (serialRegAssign),
3172         * src/hc08/ralloc.c (serialRegAssign),
3173         * src/mcs51/ralloc.c (serialRegAssign),
3174         * src/pic/ralloc.c (serialRegAssign),
3175         * src/pic16/ralloc.c (serialRegAssign),
3176         * src/xa51/ralloc.c (serialRegAssign),
3177         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
3178
3179 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
3180
3181         * src/SDCCast.c (decorateType): fixed bug 1124787
3182
3183 2005-02-20 Hubert Sack <sack AT digiplan.de>
3184         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3185
3186         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
3187         patch #1121755
3188
3189 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3190
3191         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
3192         to keep the correct label reference count when adding/removing references
3193         to labels. A peephole file using this is appended to patch #1144962.
3194
3195 2005-02-14 Raphael Neider <rneider AT web.de>
3196
3197         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
3198         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
3199         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
3200           retrievals of result operand's value on assignment
3201
3202 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
3203
3204         * device/include/pic16/string.h: modified prototype for memccpy()
3205         to memccpy(void *, void *, char, size_t)
3206         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
3207         check whether to omit frame pointer or not,
3208         * (genInline): convert all occurences of "\n" to LF in inline
3209         assembler blocks, this helps formatting the inline text,
3210         * (pic16_loadFSR0): modified prototype,
3211         * (genNearPointerGet, genNearPointerSet): reorganization of code,
3212         removed some 8051 legacy code,
3213         * (genPackBits): enabled handling bitfields exceeding one byte in size,
3214         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
3215         before allocating temporary registers in functions,
3216
3217 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3218
3219         * support/regression/tests/bitvars.c: corrected the "fix"
3220
3221 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3222
3223         * support/regression/tests/bitvars.c,
3224         * support/regression/tests/bitwise.c,
3225         * support/regression/tests/rotate.c: "fixed" problems on Alpha
3226
3227 2005-02-10 Raphael Neider <rneider AT web.de>
3228
3229         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
3230           different size for Alpha
3231         * src/pic16/gen.c (genCmpEq) : improved compare with 0
3232
3233 2005-02-09 Raphael Neider <rneider AT web.de>
3234
3235         * src/SDCC.lex(doPragma) : save and restore warning options as well
3236           (also added new stack plus clone- and copyAndFreeSDCCERRG())
3237         * have #pragma less_pedantic set the errorlevel to WARNING
3238           (fixes #1117001)
3239         * (cloneOptimize) : fixed wrong malloc's size
3240         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
3241           facilitate correct handling of #pragma (save|restore)
3242
3243 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3244
3245         * src/mcs51/gen.c: removed non-standard C nameless struct/union
3246
3247 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
3248
3249         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
3250
3251 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
3252
3253         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
3254
3255 2005-02-02 Raphael Neider <rneider AT web.de>
3256
3257         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
3258         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
3259         * (pic16_storeForReturn): fixed to allow returning function pointers
3260         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
3261         * device/include/pic16/{stddef.h,stdbool.h}: added
3262
3263 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
3264
3265         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
3266
3267 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
3268
3269         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
3270         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
3271          appeared to be required
3272
3273 2005-01-31 Borut Razem <borut.razem AT siol.net>
3274
3275         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
3276           include/mcs51 and include/z80 directories to the package
3277
3278 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3279
3280         * src/hc08/gen.c (genFunction): fixed bug #1112752
3281
3282 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3283
3284         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
3285
3286 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3287
3288         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
3289
3290 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
3291
3292         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
3293
3294 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
3295
3296         * device/include/c8051fxxx.h: removed these 6 files
3297         * device/include/mcs51/c8051fxxx.h: added these 11 new files
3298
3299 2005-01-26 Raphael Neider <rneider AT web.de>
3300
3301         * src/pic16/gen.c (genAssign): fixed assignment from longs
3302           in codespace (were cut to three bytes)
3303         * (genDummyRead): implemented (except for CODESPACE...),
3304           fixed bug #1108575
3305         * src/pic16/glue.c (emitStatistics): beautified
3306         * device/lib/pic16/libm/Makefile: added include path
3307
3308 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3309
3310         * src/z80/gen.c (aopPut): fixed bug #1103902
3311
3312 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3313
3314         * device/lib/expf.c: fixed bug #1095792
3315
3316 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
3317
3318         * device/lib/pic16/libm: added Math library sources
3319
3320 2005-01-24 Raphael Neider <rneider AT web.de>
3321
3322         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
3323           to enable upcast to pCodeOpReg2 (there is no type tag to
3324           differenciate the two and pic16_popGet2p cast into PCOR2)
3325         * src/pic16/main.c (_process_pragma): fixed another malloc bug
3326           (sizeof(sectNames) changed to sizeof(sectName))
3327           Both patches fix segfaults under MinGW.
3328
3329 2005-01-23 Raphael Neider <rneider AT web.de>
3330
3331         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
3332           Safe_[mc]?alloc()'ed variables
3333         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
3334           of (byte sized) temporaries (assign them to WREG for now)
3335         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
3336           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
3337           this might fix SIGSEGVs on MinGW...
3338         * src/SDCCopt.c (killDeadCode): restored original behaviour
3339           (volatile operands might get thrown away though)
3340
3341 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
3342
3343         * src/pic16/gen.c: fixed bug #1106975,
3344         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
3345         pointer update, INTCON is saved, global interrupts are disabled and
3346         restored after updateing TOS.
3347         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
3348         * added function attribute 'shadowregs' to take advantage of shadow
3349         registers,
3350         * added function attribute 'wparam' as an alternative to the wparam
3351         pragma,
3352         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
3353         user declares a non-ISR function as 'shadowregs',
3354         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
3355
3356 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
3357
3358         * .version: bumped version number to 2.4.8
3359         * device/lib/pic16/pics.all: list of PIC18F devices supported by
3360         pic16 port,
3361         * device/lib/pic16/libio/i2c/: I2C module support library,
3362         * device/include/pic16/i2c.h: I2C support library header,
3363         * device/lib/pic16/libc/stdio/: standard IO support sources,
3364         * (printf_small.c): printf_small() source, supports float print,
3365         * (printf_tiny.c): printf_tiny() source, does not support floats,
3366         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
3367         enable global optimizations for entire library source, other
3368         Makefiles in the source tree are also modified to reflect this,
3369         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
3370         function,
3371         * doc/sdccman.lyx: updated to reflect new changes,
3372         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
3373         sym->onStack if-case,
3374         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
3375         sbit, idata, _idata, xdata, _xdata,
3376         * added pragma library, to link an external library, (see doc),
3377         * removed command line options, --pomit-config-words, --pomit-ivt,
3378         --pleave-reset-vector,
3379         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
3380         when calling assembler to reflect memory model used, also define
3381         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
3382         reflect stack model used,
3383         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
3384         on stack return NULL,
3385
3386 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3387
3388         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
3389           of the operands is volatile. Fixes #1020220
3390
3391 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3392
3393         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
3394         * (OptimizeRegUsage): make sure that there is really no other flow where
3395           the first pCode is used
3396
3397 2005-01-22 Raphael Neider <rneider AT web.de>
3398
3399         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
3400           to fix #1106967 (pCode->seq are not set up correctly)
3401
3402 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3403
3404         * src/SDCCglue.c (glue): make sure code area is declared before the
3405         static initialization area.
3406
3407 2005-01-21 Raphael Neider <rneider AT web.de>
3408
3409         * device/lib/Makefile.in: fixed test for pic16 install dir
3410         * device/lib/pic16/*/Makefile*: modified compile flags to enable
3411           optimizations
3412         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
3413           added --optimize-goto compiler switch and pragma wparam documentation
3414         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
3415         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
3416           and PRODH closing bug #1071770 (peephole optimizer)
3417
3418 2005-01-19 Raphael Neider <rneider AT web.de>
3419
3420         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
3421           cmdLine buffers (used when calling sdcpp...) are large enough
3422           (MAX_PATH=256 truncates arguments leading to system halts when
3423           used in MinGW...)
3424         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
3425         * (genUminus): rewritten to for efficiency
3426         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
3427           used uninitialized in some cases)
3428         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
3429           copy the third byte from the int -- now assumes 0x80 (data memory)
3430         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
3431           operands (genAddLit expects the iCode's operands to swapped as
3432           well), fixed leftover bytes (crashed for short left operands)
3433         * (pic16_genMinusDec): performance improvements, removed false
3434           PIC14 emitSKPNCs
3435         * (pic16_genMinus): fixed to cope with differently sized operands
3436         * src/pic16/glue.c (pic16_glue): added new banksel optimization
3437           for --obanksel > 1
3438         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
3439         * src/pic16/graph.[ch]: implementation of directed graphs, used by
3440           new banksel optimization
3441         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
3442           analysis for temporary registers (segfaults...)
3443         * src/pic16/peeph.def: added rule
3444
3445 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
3446
3447         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
3448         which converts a float number to its ASCII representation
3449         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
3450         functions to convert the fractional and integer part of a float to ASCII,
3451         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
3452         realloc.c): added _MALLOC_SPEC to explicit place variables in data
3453         ram
3454         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
3455         _STATMEM macros,
3456         * device/include/pic16/adc.h: added GPL info,
3457         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
3458         a pCodeOp as tested operand,
3459         * (genNearPointerGet): optimized bit testing, does not use
3460         intermediate register for bit value, test directly instead with
3461         BTFSS, BTFSC, works only for single bits,
3462         * (genpic16Code): dump the name of the iCode in the asm,
3463         * src/pic16/ralloc.c (decodeOp): removed static declaration and
3464         renamed to pic16_decodeOp,
3465         * (serialRegAssign): do not allocate a temporary register for iCode
3466         sequences that test a single bit for 1/0
3467
3468 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
3469
3470         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
3471         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
3472         access stack and frame pointers. They are initially assigned to
3473         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
3474         accessing SFRs. Updated all occurences of modification of stack or
3475         frame pointer in gen.c and pcode.c,
3476         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
3477         assigning of a literal value to pointers,
3478         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
3479         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
3480         selected
3481
3482 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3483
3484         * doc/sdccman.lyx: update documentation about stack pragma, added
3485         some info for stack memory models
3486
3487 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3488
3489         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
3490
3491 2005-01-08 Raphael Neider <rneider AT web.de>
3492
3493         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
3494           udata sections to fix bug #1097823
3495
3496 2005-01-05 Raphael Neider <rneider AT web.de>
3497
3498         * src/pic16/gen.c (genGenericShift): added handling of differently
3499           sized left operand and result
3500
3501 2005-01-04 Raphael Neider <rneider AT web.de>
3502
3503         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
3504         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
3505           to hold the condition bit)
3506         * added new version of genCmp (old code available via #define)
3507         * added new version of genShiftLeft/genShiftRight in a generic
3508           way, now supports shifting by negative values
3509         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
3510           shiftCount (expected by genGenericShift)
3511         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
3512         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
3513           dump
3514         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
3515           is an invalid literal too...)
3516
3517 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
3518
3519         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
3520         from Raphael Neider,
3521         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
3522         for 8-bit literals. This fixes some literal operands which are sign
3523         extended to 16-bits ints when instruction needs only 8-bits.
3524
3525 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
3526
3527         * device/lib/logf.c: added mcs51 assembly version
3528         * device/lib/expf.c: added mcs51 assembly version
3529         * device/lib/_logexpf.c: new shared asm code for expf and logf
3530         * device/include/math.h: add defines for assembly math library
3531         * device/lib/Makefile.in: build new _logexpf.c
3532         * device/lib/libfloat.lib: use new _logexpf.c
3533
3534 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3535
3536         * src/pic/device.c
3537         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
3538           device types which have less than 0x7f registers.
3539
3540 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3541
3542         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
3543
3544 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3545
3546         * device/lib/printf_fast.c: only build on supported arch.
3547         * device/lib/printf_tiny.c: only build on supported arch.
3548         * device/lib/printf_fast_f.c: only build if asm float lib
3549         * device/lib/_fsget1arg.c: only build if asm float lib
3550         * device/lib/_fsget2args.c: only build if asm float lib
3551         * device/lib/_fsnormalize.c: only build if asm float lib
3552         * device/lib/_fsreturnval.c: only build if asm float lib
3553         * device/lib/_fsrshift.c: only build if asm float lib
3554         * device/lib/_fsswapargs.c: only build if asm float lib
3555         * device/include/stdio.h: don't provide print_fast,
3556           print_fast_f, print_tiny prototypes if --xstack used
3557
3558 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
3559
3560         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
3561         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
3562           to the SOURCES
3563
3564 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3565
3566         * device/lib/printf_fast_f.c: same as printf_fast, but
3567           with floating point enabled
3568         * device/lib/printf_fast.c: minor tweaks
3569         * device/include/stdio.h: add printf_fast_f
3570
3571 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3572
3573         * src/SDCCmain.c: make --float-reent default for mcs51
3574         * device/lib/_fsadd.c: added mcs51 assembly version
3575         * device/lib/_fssub.c: added mcs51 assembly version
3576         * device/lib/_fsmul.c: added mcs51 assembly version
3577         * device/lib/_fsdiv.c: added mcs51 assembly version
3578         * device/lib/_fseq.c: added mcs51 assembly version
3579         * device/lib/_fsneq.c: added mcs51 assembly version
3580         * device/lib/_fsgt.c: added mcs51 assembly version
3581         * device/lib/_fslt.c: added mcs51 assembly version
3582         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
3583         * device/lib/Makefile.in: add _fscmp to build
3584         * device/lib/libfloat.lib: add _fscmp to build
3585
3586 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3587
3588         * device/lib/_fs2slong.c: added mcs51 assembly version
3589         * device/lib/_fs2sint.c: added mcs51 assembly version
3590         * device/lib/_fs2schar.c: added mcs51 assembly version
3591         * device/lib/_fs2ulong.c: added mcs51 assembly version
3592         * device/lib/_fs2uint.c: added mcs51 assembly version
3593         * device/lib/_fs2uchar.c: added mcs51 assembly version
3594         * device/lib/_slong2fs.c: added mcs51 assembly version
3595         * device/lib/_sint2fs.c: added mcs51 assembly version
3596         * device/lib/_schar2fs.c: added mcs51 assembly version
3597         * device/lib/_ulong2fs.c: added mcs51 assembly version
3598         * device/lib/_uint2fs.c: added mcs51 assembly version
3599         * device/lib/_uchar2fs.c: added mcs51 assembly version
3600         * device/include/float.h: added #define to select asm vs c
3601
3602 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
3603
3604         * device/lib/printf_fast.c: improvements to float output
3605         * device/include/float.h: add defines for assembly float library
3606         * device/lib/_fsget1arg.c: receive 1 float arg
3607         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
3608         * device/lib/_fsnormalize.c: normalize a float
3609         * device/lib/_fsreturnval.c: return float, various helper routines
3610         * device/lib/_fsrshift.c: right shift a float's mantissa
3611         * device/lib/_fsswapargs.c: swap 2 floats
3612         * device/lib/Makefile.in: build these 6 new files for mcs51
3613         * device/lib/libfloat.lib: add these 6 files to the library
3614
3615 2004-12-26 Borut Razem <borut.razem AT siol.net>
3616
3617         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
3618           built by gcc 3.4.2
3619
3620 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
3621
3622         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
3623           and fully reentrant and register bank neutral.
3624         * device/lib/printf_fast.c: added float (not enabled by default),
3625           added compact/slower integer (also not enabled by default),
3626           improved size/speed of fast integer code, other minor changes
3627         * device/include/stdio.h, device/lib/Makefile.in,
3628           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
3629
3630 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
3631
3632         * src/pic16/pcode.c: declaring variables other than at the start of a
3633           block is not supported in C by VC6.
3634
3635 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
3636
3637         * applied a previous patch from Raphael Neider that wasn't included
3638         in the previous commits, which fixes infinite loops within jumptable
3639         improvements,
3640         * made some fixes that previous patches introduced
3641
3642 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
3643
3644         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
3645         that fixes an issue with AOP_PCODE asmop's offset,
3646         * (pic16_popCopyReg): update instance field too,
3647         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
3648         function of pic port,
3649         * (genCmp, genAnd, genAssign),
3650         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
3651
3652 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
3653
3654         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
3655         variables initial values to idata section,
3656         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
3657         variables in some functions. This utilizes parmBytes field of iCode
3658         structure to hold the offset of the variable in stack. (might be
3659         able to use the stack field too?)
3660         * applied patch from Raphael Neider # ### , # ###
3661         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
3662         variable initial values in idata section,
3663         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
3664         for static variables with initial value
3665         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
3666         applied fix in while loop from Raphael Neider.
3667
3668 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
3669
3670         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
3671         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
3672         * src/ds390/ralloc.c (serialRegAssign): spill bits
3673         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
3674         * support/Util/SDCCerr.c,
3675         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
3676         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
3677         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
3678
3679 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
3680
3681         * device/include/sdcc-lib.h: inserted LGPL, added includes
3682           asm/ds390/features.h and asm/mcs51/features.h
3683         * device/include/asm/default/features.h,
3684         * device/include/asm/gbz80/features.h,
3685         * device/include/asm/z80/features.h: added empty _AUTOMEM
3686           and _STATMEM
3687         * device/include/asm/ds390/features.h,
3688         * device/include/asm/mcs51/features.h: added files with defines for
3689           _AUTOMEM and _STATMEM indicating automatic and static storage class
3690         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
3691         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
3692         * src/SDCCicode.c (geniCodeCast),
3693         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
3694         * src/SDCCloop.c (loopInduction): removed unused variable lr
3695         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
3696           to convertToFcall to include char modulo (RFE 1065037), added check
3697           if left operand is unsigned and use abs of literal value
3698         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
3699           as it doesn't work after conversion from peephole.def to peephole.rul
3700         * src/mcs51/gen.c (toBoolean): added check for size,
3701           (genModOneByte): optimized code for signed char modulo a literal
3702           power of 2 (thanks to Hubert Sack),
3703           (genRRC): removed unnecessary "clr c",
3704           (genRLC): replaced "add a,acc" with cheaper "rlc a"
3705         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
3706           jump optimization,
3707           swapped rules 256.c and 256.d,
3708           extended 256.d by using new multiple checks (thanks Erik),
3709           added rules 256.e and 256.f,
3710           updated rule 261.a and 261.b to new generated code
3711         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
3712
3713 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3714
3715         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
3716           induction related bugs, including first part of bug #1074377
3717
3718 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
3719
3720         * applied patch from bug-report #1076292,
3721         * applied patches for genAnd and Goto-optimizations for Raphael
3722         Neider,
3723         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
3724         dump a less iCode information,
3725         * src/pic16/device.h (pic16_options_t): added field debgen,
3726         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
3727         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
3728         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
3729         puclic,
3730         * (various functions): added macros FENTRY and FENTRY2 to functions,
3731         to emit function prologue,
3732         * (various functions): fixed indentation,
3733         * (genNearPointerGet): fixed loading of FSR0,
3734         * (genPackBits): applied patch from Raphael Neider to fix updating
3735         of FSR0 and touching only the modified bits,
3736         * src/pic16/genarith.c (various functions): added macros FENTRY to
3737         emit function prologue in comments,
3738         * src/pic16/pcode.h: added functions debugf2, debugf3,
3739         * src/pic16/ralloc.c: partial fix for packForPush caused
3740         segmentation fault,
3741
3742 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3743
3744         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
3745           <stsp AT users.sourceforge.net> with reversed byte order
3746         * support/regression/tests/rotate.c: added (ds390 skips some tests)
3747
3748 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3749
3750         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
3751           bug #1074377
3752         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
3753         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
3754
3755 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3756
3757         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
3758
3759 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3760
3761         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
3762           conditions,
3763           (setFromConditionArgs): friendly operand parser for peephole rules,
3764           (operandBaseName, operandsNotRelated): new peephole condition
3765           "operandsNotRelated" -- similar to "operandsNotSame", but takes
3766           architecture specific register naming into account, handles n-way
3767           comparisons, and supports quoted literals
3768         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
3769
3770 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3771
3772         * src/mcs51/peeph.def: fixed bug #1076940
3773
3774 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3775
3776         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
3777
3778 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3779
3780         Adding support for replacing ljmps with sjmps in jumptables
3781         generated for switch statements. For now you need to set the
3782         environment variable SDCC_SJMP_JUMPTABLE to enable this.
3783         Now 4 algorithms for mcs51 jumptable generation are used:
3784         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
3785         addresses loaded pc-relative for up to 112 cases and stack-pushing
3786         target addresses loaded with offset from dptr for up to 256 cases.
3787
3788         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
3789         * src/mcs51/main.c: adapted constants for switch table generation
3790         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
3791
3792 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
3793
3794         * device/lib/printf_large.c (_print_format): fixed bug 1073386
3795         * support/regression/tests/bug1057979.c: added test for bug 1073386
3796
3797 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3798
3799         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
3800         compilers
3801
3802 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3803
3804         * src/pic16/device.h,
3805         * src/pic16/genarith.c,
3806         * src/pic16/glue.c,
3807         * src/pic16/main.c,
3808         * src/pic16/pcode.c: applied patches #1068154 and #1070213
3809
3810 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
3811
3812         Large cummulative patch for pic16 port.
3813         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
3814         to call when a stack overflow occurs,
3815         * (malloc.h): added CVS Id tag,
3816         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
3817         variable,
3818         * added libc directory. The current version of LibC contains string
3819         functions, ctype functions and macros and some functions of the
3820         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
3821         be extensively tested in the future. Standard disclaimer here.
3822         Library is not automatically build yet. But one can build it by
3823         invoking 'make' inside the libc directory.
3824         * added ADC library under libio. Preliminary version yet.
3825
3826         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
3827         * src/pic16/gen.c (aopForRemat): asmop size is filled by
3828         aopForRemat() now and not by pic16_aopOp(),
3829         * (pic16_popGetTempReg): removed warning messgae when allocating
3830         temporary registers, its a buggy feature and will be removed,
3831         * (pic16_popGet): set register instance field in AOP_CRY,
3832         * (pic16_outBitC): fixed for results in size greater than 1,
3833         * (genUminusFloat): fixed for pic16, ported code from mcs51,
3834         * (pic16_storeForReturn): optimized return of 0,
3835         * (genCmp): experimental code for new genCmp which uses PIC18's
3836         special compare&skip instructions. Initial tests fail some times
3837         with variables grater than 1 byte in size, so new code is disabled,
3838         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
3839         a single bit,
3840         * (genCast): began a fix to optimize the casting of a bit to another
3841         bit, now assigning a bitfield to another bitfield will fail, sorry,
3842         * src/pic16/main.c: disabled the use of lr-support feature,
3843         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
3844         * added some function prototypes, added function _debugf prototype,
3845         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
3846         bits with offset (case PO_GPR_BIT),
3847         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
3848         command line,
3849         * (isBankInstruction): modified to return 0 for no banking instruction,
3850         and 1 for banking instruction,
3851         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
3852         caused stop processing pCodes after a inline assembly block,
3853         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
3854         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
3855         registers when it shouldn't,
3856         * src/pic16/ralloc.c (allocReg): add preliminary support for
3857         supporting a limited set of temporary registers,
3858
3859 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3860
3861         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
3862           genDataPointerSet): ensure assignments always copy in MSB to LSB
3863           order,
3864           (loadRegFromAop): recognize CLRH optimization,
3865           (genFunction): optimize RECEIVE iCodes in reentrant functions
3866
3867 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3868
3869         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
3870           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
3871           selected.
3872         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
3873         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
3874           contiguous with data
3875
3876 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3877
3878         * device/lib/_gptrget.c (_gptrget),
3879         * device/lib/_gptrgetc.c (_gptrgetc),
3880         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
3881           instead of sjmp to ret
3882         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
3883           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
3884
3885 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
3886
3887         * .version: bumped version to 2.4.7
3888         * device/lib/_gptrget.c (_gptrget): is now _naked
3889         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
3890         * device/lib/_gptrput.c (_gptrput): is now _naked
3891         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
3892           (createFunction): fixed xstack
3893         * src/SDCCglue.c (emitMaps): set allocation required for bit area
3894         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
3895           or bit either,
3896           (geniCodeCritical): store original interrupt state in an iTemp bit
3897           var unless stack-auto
3898         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
3899         * src/SDCCmain.c (setIncludePath): added include/target to search path
3900         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
3901         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
3902           prototype,
3903           (processFuncArgs): put bit vars in bit area
3904         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
3905           unsaveRBank): fixed xstack,
3906           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
3907           (genFunction, genEndFunction): fixed xstack,
3908           (genAssign): optimization don't walk backwards through mem
3909         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
3910         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
3911         * support/regression/Makefile: also make library (for stack-auto) when
3912           making "all" and added "test-mcs51-xstack-auto"
3913         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
3914         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
3915         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
3916         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
3917         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
3918           make-library by MAKE_LIBRARY
3919         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
3920           regression tests for xstack
3921         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
3922         * support/regression/tests/critical.c: test for critical on mcs51
3923
3924 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3925
3926         * support/regression/ports/ucz80/spec.mk: use include and lib files from
3927           built version of sdcc instead of installed version
3928
3929 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
3930
3931         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
3932         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
3933           vprintf.c now
3934         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
3935         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
3936           WARNING: remove device/lib/build/z80/printf.o by hand when
3937           updating from previous build!
3938         * device/lib/z80/printf.c: updated comment
3939         * support/regression/tests/bug1057979.c: test all ports now
3940         * support/regression/tests/bug1065458.c: file added
3941
3942 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3943
3944         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
3945           *_start and *_end symbols for static functions
3946
3947 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
3948
3949         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
3950           and search crt0.o in all library paths,
3951           (setIncludePath): proper handling of --nostdinc,
3952           (setLibPath): proper handling of --nostdlib
3953         * support/regression/Makefile,
3954         * support/regression/ports/ds390/spec.mk,
3955         * support/regression/ports/gbz80/spec.mk,
3956         * support/regression/ports/hc08/spec.mk,
3957         * support/regression/ports/mcs51/spec.mk,
3958         * support/regression/ports/mcs51-large/spec.mk,
3959         * support/regression/ports/mcs51-stack-auto/spec.mk,
3960         * support/regression/ports/z80/spec.mk: use include and lib files from
3961           built version of sdcc instead of installed version
3962         * doc/sdccman.lyx: fixed typo in --nostdinc
3963
3964 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
3965
3966         * src/pic/pcode.c,
3967         * src/pic/device.c,
3968         * src/pic/ralloc.c,
3969         * src/pic/gen.c : added support to generate code for struct bit fields.
3970
3971 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
3972
3973         * as/xa51/xa_version.h,
3974         * device/include/errno.h,
3975         * device/include/regc515c.h,
3976         * device/lib/_itoa.c,
3977         * device/lib/_ltoa.c,
3978         * device/lib/ser_ir_cts_rts.c,
3979         * sim/ucsim/xa.src/glob.cc,
3980         * sim/ucsim/xa.src/inst_gen.cc,
3981         * sim/ucsim/xa.src/xa_bit.cc,
3982         * sim/ucsim/xa.src/xa_sfr.cc,
3983         * sim/ucsim/z80.src/inst_dd.cc,
3984         * sim/ucsim/z80.src/inst_fdcb.cc,
3985         * support/scripts/keil2sdcc.pl,
3986         * src/pic16/pic16.dsp,
3987         * src/pic16/pic16a.dsp: corrected cvs line endings
3988         * device/lib/printf_large.c: fixed bug 1057979
3989         * src/pic16/gen.c: fixed non-C standard code
3990         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
3991         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
3992         * support/regression/ports/mcs51/support.c: reload T1 asap
3993         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
3994           pdata use and clear idata startup behaviour
3995         * support/regression/tests/bug1057979.c: added
3996
3997 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
3998
3999         * device/examples/ds390/ow390/ad26.h,
4000         * device/examples/ds390/ow390/cnt1d.h,
4001         * device/examples/ds390/ow390/crcutil.c,
4002         * device/examples/ds390/ow390/ownet.h,
4003         * device/examples/ds390/ow390/owsesu.c,
4004         * device/examples/ds390/ow390/swt12.h,
4005         * device/examples/ds390/ow390/swtoper.c,
4006         * device/examples/ds390/ow390/temp10.h,
4007         * device/examples/ds390/ow390/thermodl.c,
4008         * device/examples/ds390/tinitalk/tinitalk.dsp,
4009         * device/examples/ds390/tinitalk/tinitalk.dsw,
4010         * device/examples/mcs51/clock/hw.h,
4011         * device/examples/mcs51/simple2/go.bat,
4012         * device/examples/serialcomm/windows/serial.h,
4013         * device/examples/xa51/dummy.c,
4014         * device/examples/xa51/hello.c,
4015         * device/include/80c51xa.h,
4016         * device/include/at89x051.h: corrected cvs line endings
4017
4018 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
4019
4020         * src/pic16/main.c (options): added command line --gstack, to trace
4021         stack over/under flows,
4022         * added pragma 'wparam' to allow passing first byte of function
4023         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
4024         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
4025         call to __gstack_test function and sets up the symbol as extern,
4026         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
4027         * popaop): added call to pic16_testStackOverflow,
4028         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
4029         wparamList list,
4030         * (genCall, genPcall): now all parameters are passed via stack
4031         except in functions that are pass to wparam pragma in which WREG is
4032         used too,
4033         * (genPcall): REENTRANT flag is checked to see if variable prototype
4034         contains reentrant keyword, don't call a non-reentrant function, via
4035         a reentrant function pointer or vice versa, functions are never
4036         passed via WREG,
4037         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
4038         D.Winkler,
4039         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
4040         SIGSEGV when accessing a NULL register stucture,
4041         * (pic16_printGPointerType): modified to handle UPPER modifier for
4042         function initializers, changed prototype of function to simpler one,
4043         * (pic16_printIvalFuncPtr): check to see if function is already
4044         added in externs list,
4045         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
4046         optimized a move from W to SFR with a move to the same register
4047         later after a CALL,
4048         * device/lib/pic16/debug: NEW directory, contains debug features
4049         which are enabled when linking with libdebug.lib, currently command
4050         line option --gstack enables stack pointer tracing for over/under
4051         flow, corresponding sources are in debug/gstack
4052
4053 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
4054
4055         * doc/sdccman.lyx: updated SDCC version,
4056         * (PIC16 port): update list of command line options,
4057         * src/pic16/device.h (structure pic16_options_t): added field gstack
4058         to enable stack overflow tracing on push/pops,
4059         * src/pic16/device.c (statistics structure): added statistics
4060         structure,
4061         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
4062         pic16_dump_int_registers): increase statistics counters for each
4063         * variable which is encountered
4064         * (pic16_dump_usection): emit each .udata variable to its own udata
4065         section,
4066         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
4067         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
4068         parameters via stack, otherwise use old scheme,
4069         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
4070         assembler output file,
4071         * src/pic16/main.c: added command line options --gstack to enable
4072         push/pop tracing for stack overflow,
4073         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
4074         instructions): added size of each instruction,
4075         * (pic16_countInstruction): estimate size of instructions in
4076         the_pFile list, inline assembly blocks are not counted,
4077         * (pic16_FixRegisterBanking): trace previous register usage, when
4078         banksel optimizations is greater than 0, don't emit a redudant
4079         banksel directive,
4080
4081 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
4082
4083         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
4084         * src/pic16/ralloc.c : applied same fix for pic16.
4085         * src/pic/gen.c : tidied it up a little.
4086
4087 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4088
4089         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
4090         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
4091
4092 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4093
4094         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
4095
4096 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4097
4098         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
4099         non-reentrant function __modsint in the interrupt function (thus
4100         corrupting math operations during serial I/O)
4101         * device/lib/ser_ir.c: as above, changed buffersize
4102         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
4103         256.c,d for zeroing
4104         * doc/Makefile: added option -t for rsync
4105
4106 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4107
4108         * src/SDCCast.h (struct ast),
4109         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
4110
4111 2004-10-20 Borut Razem <borut.razem AT siol.net>
4112
4113         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
4114         package
4115
4116 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
4117
4118         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
4119         makefile targets,
4120         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
4121         support functions to replace long sequences of MOVFF's from access
4122         bank registers to stack and vice versa,
4123         * src/pic16/device.h: added new field opt_flags, where optimization
4124         flags can be set to enable certain features,
4125         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
4126         * pBlock, (genFunction, genEndFunction): surroung loop for
4127         saving/loading used registers in stack with PC_INFO pCodes,
4128         INF_LREGS. Code in between can then be optimized by pCode optimizer
4129         to support function calls,
4130         * (genDataPointerSet): fixed bug which loaded float fields in
4131         structures with corrupt data,
4132         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
4133         in a standard way debug info on stderr. Feature used for developing
4134         and debugging only,
4135         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
4136         obsolete chunks of code,
4137         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
4138         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
4139         * pic16/src/pcode.c (pic16_newpCodeInfo,
4140         * (pic16_newpCodeOpLocalRegs),
4141         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
4142         feature,
4143         * (pic16_pCodeConstString): printing of the initial value of a
4144         symbol as a comment is inhibited since parsing was already done by
4145         copyStr and output is corrupt,
4146         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
4147
4148 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4149
4150         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
4151
4152 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4153
4154         * as/mcs51/lkarea.c: removed old K&R style,
4155           (lnksect): changed check on boundary error,
4156           (lnksect2): changed check on boundary error,
4157           (lnksect2): extend XSTK to end of page if size = 1
4158         * as/mcs51/lkmain.c: removed old K&R style,
4159           (Areas51): create l_IRAM symbol
4160         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
4161         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
4162           model-mcs51-stack-auto, added model-mcs51-xstack-auto
4163         * device/lib/_mullong.c: added version to be compiled with xstack
4164         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
4165         * device/lib/mcs51/crtxclear.asm: clear pdata as well
4166         * device/lib/mcs51/crtxstack.asm: fixed comment
4167         * src/SDCCglue.c: maxInterrupts defaults to 0,
4168           (emitMaps): added pdata,
4169           (createInterruptVect): (re)moved default,
4170           (glue): added pdata,
4171           (glue): moved __start__xstack to XSTK with default size 1
4172         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
4173           and options.float_rent when options.stackAuto is set,
4174           (linkEdit): only write XDATA_NAME if provided on command line
4175         * src/SDCCmem.h,
4176         * src/SDCCmem.c: added pdata
4177         * src/port.h: added pdata_name to PORT
4178         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
4179           (saveRegisters, unsaveRegisters): removed usage of B,
4180           (genMinus): fixed accumulator clash,
4181           (genJumpTab): added comment, this needs another look
4182         * src/mcs51/gen.c: added check for "B in use" paranoia,
4183           added pushB() and popB()
4184         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
4185           chance
4186         * src/avr/main.c,
4187         * src/ds390/main.c,
4188         * src/hc08/main.c,
4189         * src/mcs51/main.c,
4190         * src/pic/main.c,
4191         * src/pic16/main.c,
4192         * src/xa51/main.c,
4193         * src/z80/main.c: (reset_regparms) made void parameter explicit and
4194           added PSEG (PAG,XDATA) or NULL to port specifier
4195         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
4196         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
4197           (_mcs51_genInitStartup): removed __start__xstack equ,
4198           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
4199         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
4200         * src/z80/gen.c (_rleAppend): fixed warnings
4201         * support/regression/tests/zeropad.c: added pdata test
4202         * .version: bumped to 2.4.6
4203
4204 2004-10-17 Borut Razem <borut.razem AT siol.net>
4205
4206         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
4207         as a part of nightly build
4208
4209 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
4210
4211         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
4212         WREG holds the first byte function parameters,
4213         * (aopForSym): take special case for symbols which are in FARSPACE
4214         but in CODESPACE too,
4215         * (assignResultValue): modified to take into account _G.useWreg,
4216         * (genCall): don't use wreg for parameter passing when function is
4217         declared as reentrant, too, added optimization INCF to stack
4218         pointer when stack parameter count is 1,
4219         * (genFunction, genEndFunction): refurnished and fixed to not using
4220         wreg for passing parameters when function has varargs or is
4221         reentrant, fixed bug with symbol name compare for generating
4222         functions in absolute address,
4223         * (pic16_storeForReturn): refurnished,
4224         * (genCmp): began writing a new version of the function, not ready
4225         yet, therefore it is disabled,
4226         * (genAssign): do not read code memory when assigning a function to
4227         a pointer function,
4228         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
4229         array of characters, not pointer,
4230         * (pic16initialComments): in debug mode emit an .ident directive for
4231         the assembler,
4232         * (_process_pragma): emit a new warning type (internal to pic16)
4233         when setting stack to default length, emit a similar warning when
4234         placing a function at absolute address and address is not word aligned
4235         * (_pic16_parseOptions): added 'return TRUE' statement,
4236         * (_pic16_linkEdit): if compiling a source, then add the source's
4237         file object, first in the list of objects to link,
4238
4239 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
4240
4241         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
4242         * src/pic/main.c : removed VC warning.
4243         * src/pic/gen.c : changed comment.
4244
4245 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
4246
4247         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
4248         reference to a deprecated symbol _GPTRREG was causing failure to
4249         link. Thanks G. M. Gallant for the info.
4250
4251 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
4252
4253         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
4254         comments for Bugs item #954788.
4255
4256 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
4257
4258         * src/pic16/device.c (pic16_dump_gsection,
4259         * pic16_groupRegistersInSection): handle symbols declared to be in
4260         access bank differently,
4261         * src/pic16/gen.c (struct _G): added field resDirect,
4262         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
4263         send values read from stack directly to result and don't allocate
4264         temporary values,
4265         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
4266         same registers,
4267         * (pic16_sameRegsOfs): NEW,
4268         * (freeAsmop): if _G.resDirect is set then do not mark registers as
4269         free because they were not allocated from temporary pool,
4270         * pic16_popRegFromString): workaround to fix a problem with
4271         allocating variables twice or never,
4272         * (genGenPointerGet): using PRODL instead of FSR0H,
4273         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
4274         instead of FSR0H,
4275         * (genAssign): take advantage of the _G.resDirect flag,
4276         * (genCast): around line 11844, use mov2f instead of directly
4277         MOVFF'ing between operands to account for literal values,
4278         * src/pic16/genutils.c: some new debug functions for gpsim have been
4279         added,
4280         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
4281         float with integer part only,
4282         * src/pic16/main.c (_process_pragma): handle pragma udata access to
4283         place variables in access bank
4284         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
4285         updated sources to reflect recent changes in gen.c
4286
4287 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
4288
4289         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
4290         sources that searched for headers in installation path, now the
4291         device/include/pic16 is used,
4292         * src/pic16/glue.c (pic16glue),
4293         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
4294         .line directives if not in debug mode, this suppresses assembler's
4295         warnings for ignored directives
4296
4297 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4298
4299         * src/port.h: made reset_regparms prototype void parameter explicit.
4300         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
4301         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
4302         * doc/sdccman.lyx: documented warning disabling and how to use
4303           printf_large to make it print floats.
4304         * device/include/stdbool.h: NEW
4305         * device/lib/_atof.c,
4306         * device/lib/_divuint.c,
4307         * device/lib/_divulong.c,
4308         * device/lib/expf.c,
4309         * device/lib/printf_large.c,
4310         * device/lib/sincosf.c,
4311         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
4312         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
4313           a completely reentrant lib.
4314
4315 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
4316
4317         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
4318         * device/include/pic16/stdio.h: fixed bug with colon
4319
4320 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
4321
4322         * device/include/pic16/stdio.h,
4323         * device/include/pic16/stdlib.h,
4324         * device/include/pic16/math.h: NEW
4325         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
4326         declared as _naked to reduce overhead
4327         * device/lib/Makefile.in (target port-specific-objects-pic16):
4328         changed * to *.* so to ignore the CVS directory,
4329         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
4330         stacked variables back in stack,
4331         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
4332         corruption
4333
4334 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
4335
4336         * .version: bumped version number to 2.4.5
4337         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
4338         * support/Util/SDCCerr.c (messages structure): added entry for
4339         W_POSSBUG2
4340
4341         Large cumulative patch for pic16 port and libraries.
4342         * device/include/pic16/sdcc-lib.h,
4343         * device/include/pic16/stdarg.h,
4344         * device/include/asm/pic16/features.h,
4345         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
4346         * device/include/pic16/float.h: changes reentrant keyword with
4347         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
4348         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
4349         updated target build-libraries to include objects from gptr,
4350         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
4351         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
4352         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
4353         all function headings,
4354         * src/SDCCmain.c: added global parameter userIncDirsSet,
4355         * (parseCmdLine): when option -I is encountered add directory to
4356         userIncDirsSet too,
4357         * src/version.awk: added space between control and long,
4358         * src/pic16/NOTES: added some notes for the port,
4359         * src/pic16/gen.c: added prototype for mov2fp function,
4360         * (fReturnpic16[]): properly named return value registers,
4361         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
4362         * (aopForSym): added code to handle symbols with onStack flag set,
4363         symbols onStack are allocated PTRSIZE bytes,
4364         * (aopFreeAsmop): handles special case where asmops are stack objects,
4365         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
4366         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
4367         added argument lock to trace flaws in allocating temporary registers
4368         when developing port,
4369         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
4370         * (pic16_popRegFromString): reenabled allocating a direct register
4371         from string,
4372         * (assignResultValue): various beautifications,
4373         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
4374         referenced function argument,
4375         * (genIpush): reenabled to allow stacked arguments, handles only
4376         ic->parmPush iCodes,
4377         * (genCall, genPcall): major changes to allow for variable argument
4378         functions, fixed a bug with falsely restoring stack pointer after
4379         returning from call,
4380         * (genFunction): pending code for critical function,
4381         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
4382         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
4383         * (genNearPointerGet): fixed bug with indirect reading, was always
4384         reading from INDF0
4385         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
4386         pointers,
4387         * (genAddrOf): rewrote code to take address of a stacked function parameter
4388         * (genCast): fixed casting to generic pointer type,
4389         * src/pic16/gen.h: added AOP_STA,
4390         * (struct asmop): added field stk,
4391         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
4392         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
4393         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
4394         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
4395         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
4396         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
4397         generic pointers,
4398         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
4399         and library paths,
4400         * (pic16_port structure): generic pointer size is set to 3,
4401         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
4402         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
4403         compiler warning,
4404         * src/pic16/ralloc.c (allocReg): prevent allocating register when
4405         operand is an iTemp,
4406
4407 2004-09-24 Martin Helmling <mh AT octo-soft.de>
4408
4409         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
4410         * debugger/mcs51/simi.c: addapt new syntax of s51
4411
4412 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
4413
4414         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
4415         * src/pic16/pcode.c: commented out some calls to free() in order to
4416         fix bug #989576,
4417
4418 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4419
4420         * src/SDCCicode.h,
4421         * src/SDCCicode.c (isiCodeInFunctionCall),
4422         * src/avr/ralloc.c (selectSpil),
4423         * src/pic/ralloc.c (selectSpil),
4424         * src/pic16/ralloc.c (selectSpil),
4425         * src/ds390/ralloc.c (selectSpil),
4426         * src/hc08/ralloc.c (selectSpil),
4427         * src/xa51/ralloc.c (selectSpil),
4428         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
4429         stack in the middle of a function call sequence (fixes bug #1020268)
4430         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
4431         costs associated with the minimum switch case.
4432
4433 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4434
4435         * src/SDCC.lex: fixed bug #1030549
4436
4437 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4438
4439         * src/SDCCcse.h (struct cseDef),
4440         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
4441         over a function call if the CSE is derived from a symbol whose
4442         address has been taken (fixes bug #1029883)
4443         * support/regression/tests/bug-1029883: a new regression test for
4444         this bug
4445
4446 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4447
4448         * src/hc08/gen.c (emitinline): fixed bug #1029778
4449         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
4450         to a cast object is no longer a syntax error ("fixes" bug #1030006,
4451         and starts toward RFE #905167)
4452
4453 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
4454
4455         * src/pic16/gen.c (mov2f): New function to move an operand to
4456         another without considering if it is a literal or a register,
4457         * (pic16_sameRegs): don't check if they are both AOP_REG,
4458         * (AccRsh): removed andmask=0 lines,
4459         * (genLeftShift): duplicated to be improved in future versions,
4460         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
4461         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
4462         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
4463         * (pic16initMnemonics): added initialization for POC_INFSNZW,
4464         * (insertBankSwitch): fixed inserting banksel directives algorithm
4465         for instructions that follow a skip instruction, this fixes a report
4466         for broken subtraction code generation,
4467         * src/pic16/ralloc.c (deassignLRs): do not free register if current
4468         iCode is a left op, just in case result and right share the same
4469         registers
4470
4471 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4472
4473         * src/hc08/main.c,
4474         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
4475         preservation of HX
4476         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
4477         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
4478         on 2004-09-12; it was buggy
4479
4480 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4481
4482         * src/SDCCsymt.h: removed RESULT_CHECK
4483         * src/SDCCast.c,
4484         * src/SDCCglue.c,
4485         * src/SDCCval.c,
4486         * src/pic/glue.c,
4487         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
4488
4489 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
4490
4491         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
4492         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
4493         configuration values no more rejected by compiler, they are assigned
4494         to configuration registers with a warning message instead,
4495         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
4496         the for-loop so last conf register is emitted too,
4497         * (_pic16_initPaths): link library libsdcc.lib by default,
4498         * (_hasNativeMulFor): modified test for multiplication according to
4499         Raphael Neider's remarks. Integer multiplication is also done with
4500         support functions,
4501         * device/include/pic16/pic18fregs.h: corrected type error in while
4502         testing and including 18f6720 header file
4503
4504 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
4505
4506         * src/pic16/device.h (pic16_options): removed field use_crt,
4507         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
4508         until an optimization to handle single bits is added,
4509         * (pic16_loadFSR0): moved before genUnpackBits,
4510         * (genAnd): some white lines removed,
4511         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
4512         leave_reset flags in pic16_options when using crt modules,
4513
4514 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
4515
4516         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
4517           for bugs 898889 & 979599. Also used some safer print instructions.
4518
4519 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
4520
4521         * src/pic16/device.h (pic16_options_t): added field use_crt,
4522         crt_name, no_crt,
4523         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
4524         catch a probable future bug,
4525         * src/pic16/gen.c: aopIdx function commented out,
4526         * (genAssign): commented out old code which used aopIdx,
4527         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
4528         code, added if conditionals to take into account the --use-crt
4529         command line options,
4530         * src/pic16/main.c (pic16_optionsTable): added new command line
4531         options, --use-crt= and --no-crt,
4532         * (_pic16_linkEdit): now the proper crt object is added in the
4533         linker command line except than when --no-crt is specified,
4534         * src/pic16/pcode.c,
4535         * src/pic16/pcode.h: added some structures and functions for a new
4536         optimization scheme to compansate for instruction overhead between
4537         same iCodes, this scheme is currently under development and is not
4538         working in any way,
4539         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
4540         to && operator,
4541         * device/lib/pic16/startup/crt0i.c,
4542         * device/lib/pic16/startup/crt0iz.c: added global char variable
4543         __uflags to force the generation of an idata section
4544
4545 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
4546
4547         * doc/Makefile,
4548         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
4549         * doc/sdccman.lyx: updated sdcc version to 2.4.4
4550
4551 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4552
4553         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
4554         Frieder) and clarified the default code optimization mode
4555
4556 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4557
4558         * src/SDCC.lex (doPragma, process_pragma),
4559         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
4560         "opt_code_size", and "opt_code_balanced"
4561         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
4562         regrouped options by category, added support for category headers
4563         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
4564         and "--opt-code-size"
4565         * doc/sdccman.lyx: documented these new options and pragmas
4566         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
4567         preference into account
4568
4569 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4570
4571         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
4572           geniCodePreDec): Fixed bug 904237 by generating a warning
4573         * src/SDCCerr.h,
4574         * src/SDCCerr.c: added warning W_SIZEOF_VOID
4575
4576 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
4577
4578         * src/pic/device.c : When no max ram set validate full memory range.
4579         * src/pic/pcode.c,
4580         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
4581
4582 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4583
4584         * device/lib/_gptrget.c,
4585         * device/lib/_gptrput.c: updated comment
4586         * device/lib/calloc.c,
4587         * device/lib/free.c,
4588         * device/lib/malloc.c,
4589         * device/lib/realloc.c: added LGPL, made them reentrant-safe
4590         * src/SDCCcse.c (cseBBlock),
4591         * src/SDCCicode.c (printOperand, geniCodeArray),
4592         * src/SDCCicode.h (struct operand): fixed bug 868103
4593         * support/regression/tests/bug-868103.c: added
4594         * src/SDCCast.c (searchLitOp),
4595         * src/SDCCcse.h (struct cseDef),
4596         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
4597         * src/SDCCicode.h (struct operand),
4598         * src/SDCCsymt.h (struct sym_link),
4599         * src/avr/gen.c (hasInc),
4600         * src/ds390/gen.c (hasInc),
4601         * src/hc08/gen.c (genPlusIncr, hasInc),
4602         * src/mcs51/gen.c (hasInc),
4603         * src/pic16/glue.c (pic16_printIvalChar),
4604         * src/pic16/ralloc.c (regWithIdx),
4605         * src/xa51/gen.c (hasInc) : removed warnings
4606         * src/SDCCast.c (createBlock): added comment ???
4607         * src/hc08/ralloc.c: updated comments
4608
4609 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4610
4611         * doc/sdccman.lyx: updated section on switch statements, added
4612         section about semaphore locking
4613         * doc/Makefile: added option -info for latex2html
4614         * device/lib/_gptrget.c,
4615         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
4616
4617 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4618
4619         * src/pic/device.h,
4620         * src/pic/device.c,
4621         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
4622          maxram is less than 0x100.
4623
4624 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4625
4626         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
4627
4628 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4629
4630         * src/port.h,
4631         * src/mcs51/main.c,
4632         * src/ds390/main.c,
4633         * src/z80/main.c,
4634         * src/hc08/main.c,
4635         * src/pic/main.c,
4636         * src/pic16/main.c,
4637         * src/avr/main.c,
4638         * src/xa51/main.c
4639         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
4640         a jump table is the best form for a switch statement, including
4641         automatic insertion of missing cases to make the case range
4642         continuous. Developed in collaboration with Frieder Ferlemann.
4643
4644 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4645
4646         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
4647         accumulator result if it needs sign extension
4648
4649 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4650
4651         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
4652
4653 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4654
4655         * device/lib/gbz80/printf.c,
4656         * device/lib/z80/printf.c: removed define for NULL
4657
4658 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4659
4660         * as/xa51/xa_link.c,
4661         * device/examples/ds390/ow390/ad26.c,
4662         * device/examples/ds390/ow390/cnt1d.c,
4663         * device/examples/ds390/ow390/counter.c,
4664         * device/examples/ds390/ow390/ds2480.h,
4665         * device/examples/ds390/ow390/ds2480ut.c,
4666         * device/examples/ds390/ow390/findtype.c,
4667         * device/examples/ds390/ow390/gethumd.c,
4668         * device/examples/ds390/ow390/owllu.c,
4669         * device/examples/ds390/ow390/ownetu.c,
4670         * device/examples/ds390/ow390/swt12.c,
4671         * device/examples/ds390/ow390/swtloop.c,
4672         * device/examples/ds390/ow390/temp.c,
4673         * device/examples/ds390/ow390/temp10.c,
4674         * device/examples/ds390/ow390/thermo21.c,
4675         * device/examples/ds390/ow390/tinilnk.c,
4676         * device/examples/ds390/ow390/tstfind.c,
4677         * device/examples/serialcomm/windows/serial.cpp,
4678         * device/examples/serialcomm/windows/test_serialcomm.cpp,
4679         * device/include/reg51.h: fixed line endings for cvs
4680
4681 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4682
4683         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
4684         packRegsForAccUse, packRegisters): new accumulator register
4685         packing algorithm
4686         * support/regression/ports/hc08/support.c (_putchar): suppress
4687         warning of unused variable
4688         * src/SDCCicode.c: added SWAP entry to codeTable
4689
4690 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
4691
4692         * device/lib/sprintf.c: forgot to add this file before previous commit
4693
4694 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
4695
4696         * src/pic16/gen.c (genPackBits): added operand right in function
4697         parameters, load result directly if p_type is POINTER (that is
4698         called by genNearPointerSet)
4699         * (genUnPackBits): added operand left in function parameters,
4700         * (genNearPointerGet, genNearPointerSet): prevent the loading of
4701         FSR0 if accessing bitfields,
4702
4703 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
4704
4705         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
4706           _print_format; updated printf, sprintf, vsprintf
4707         * device/include/asm/default/features.h: corrected comment/define
4708         * device/lib/Makefile.in: added sprintf.c
4709         * device/lib/libsdcc.lib: added sprintf module
4710         * device/lib/printf_large.c,
4711         * device/lib/vprintf.c,
4712         * device/lib/sprintf.c: totally refactored printf_large and vprintf
4713           into these 3 files
4714         * support/regression/Makefile: changed ALL_PORTS into a usefull default
4715         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
4716         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
4717           hc08 test
4718         * support/regression/tests/zeropad.c: define idata as data for hc08
4719
4720 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4721
4722         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
4723         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
4724         labels are referenced at least once (even if a reference is not found)
4725         * src/hc08/gen.c (emitcode): set isComment flag for comments
4726         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
4727         loads), rules 6a..6b (optimize jumps to return)
4728
4729 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4730
4731         * device/lib/acosf.c (acosf),
4732         * device/lib/asinf.c (asinf),
4733         * device/lib/atanf.c (atanf),
4734         * device/lib/ceilf.c (ceilf),
4735         * device/lib/cosf.c (cosf),
4736         * device/lib/coshf.c (coshf),
4737         * device/lib/cotf.c (cotf),
4738         * device/lib/fabsf.c (fabsf),
4739         * device/lib/floorf.c (floorf),
4740         * device/lib/log10f.c (log10f),
4741         * device/lib/logf.c (logf),
4742         * device/lib/sinf.c (sinf),
4743         * device/lib/sinhf.c (sinhf),
4744         * device/lib/sqrtf.c (sqrtf),
4745         * device/lib/tanf.c (tanf),
4746         * device/lib/tanhf.c (tanhf),
4747         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
4748         replaced all instances of "reentrant" in the library functions
4749         defined in math.h with this macro.
4750         * support/regression/tests/float_trans.c: reenabled test for hc08
4751
4752 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4753
4754         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
4755         erroneously deleted
4756
4757 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4758
4759         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
4760         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
4761         multi-byte volatile operands are used
4762         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
4763         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
4764         initialization to area GSINIT0 so that it would always precede
4765         any static initializers in GSINIT
4766         * support/regression/tests/zeropad.c: fixed idata define for hc08
4767         * support/regression/tests/bug-927659.c,
4768         * support/regression/tests/float_trans.c: disabled tests for hc08
4769         pending missing library routines
4770         * .version: increased version number to 2.4.4 - hc08 port now passes
4771         regression tests
4772
4773
4774 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
4775
4776         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
4777         * Makefile.common.in,
4778         * as/Makefile,
4779         * as/hc08/Makefile.in,
4780         * as/mcs51/Makefile.in,
4781         * as/z80/Makefile.in,
4782         * debugger/mcs51/Makefile.in,
4783         * device/include/Makefile.in,
4784         * device/lib/Makefile.in,
4785         * doc/Makefile,
4786         * link/Makefile,
4787         * link/z80/Makefile.in,
4788         * packihx/Makefile.in,
4789         * sim/ucsim/main_in.mk,
4790         * sim/ucsim/avr.src/Makefile.in,
4791         * sim/ucsim/doc/Makefile.in,
4792         * sim/ucsim/gui.src/serio.src/Makefile.in,
4793         * sim/ucsim/hc08.src/Makefile.in,
4794         * sim/ucsim/s51.src/Makefile.in,
4795         * sim/ucsim/xa.src/Makefile.in,
4796         * sim/ucsim/z80.src/Makefile.in,
4797         * src/Makefile.in,
4798         * support/cpp2/Makefile.in,
4799         * support/librarian/Makefile,
4800         * support/makebin/Makefile: added DESTDIR to the install path proposed
4801         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
4802         * doc/sdccman.lyx: added DESTDIR documentation
4803
4804 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
4805
4806         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
4807         instruction for interrupt handlers, use fast returns when returning
4808         from high priority interrupts
4809
4810 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4811
4812         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
4813         code generation
4814         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
4815         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
4816         bugs, ported much of Bernhard's code from mcs51
4817         * src/mcs51/gen.c (genSend),
4818         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
4819         than one when calling a reentrant function
4820         * device/lib/_mullong.c: defined an alternate struct layout for big
4821         endian ports (hc08)
4822
4823 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4824
4825         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
4826         test
4827
4828 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4829
4830         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
4831         are sane and complete before asking the port its prefered parameter
4832         passing method (fixes bug #1017633)
4833         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
4834         and _ret3
4835
4836 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4837
4838         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
4839         problem in bitfields >= 8 bits.
4840
4841 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4842
4843         * src/SDCCsymt.c: undid changes that were not meant to be committed
4844
4845 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4846
4847         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
4848
4849 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
4850
4851         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
4852           copied and wrong bit got inverted
4853
4854 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4855
4856         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
4857         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
4858         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
4859         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
4860         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
4861         assignments to bitfields at known addresses
4862         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
4863         reads from bitfields at known addresses
4864         * src/hc08/ralloc.c (packRegisters),
4865         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
4866         genhc08Code): optimize pointer get values used as conditionals
4867         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
4868         and branch
4869
4870 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4871
4872         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
4873         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
4874         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
4875         as conditionals
4876
4877 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4878
4879         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
4880
4881 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4882
4883         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
4884         related problems
4885
4886 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
4887
4888         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
4889
4890 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4891
4892         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
4893         mcs51 port
4894
4895 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
4896
4897         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
4898
4899 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4900
4901         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
4902         cases use more compact code.
4903
4904 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
4905
4906         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
4907
4908 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4909
4910         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
4911
4912 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4913
4914         * src/SDCCsymt.h,
4915         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
4916         parameter of changePointer() from symbol* to sym_link*
4917         * src/SDCCast.c (decorateType): call changePointer() for CAST op
4918         * src/SDCCsymt.c (compareType): void* type is castable to other
4919         pointers, but not necesarily an exact match.
4920         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
4921         is no longer blindly treated as an exact match.
4922         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
4923
4924 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
4925
4926         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
4927
4928 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
4929
4930         * src/pic/gen.c,
4931         * src/pic/pcode.c,
4932         * src/pic/ralloc.h,
4933         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
4934
4935 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
4936
4937         * src/pic/device.c,
4938         * src/pic/device.h,
4939         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
4940
4941 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4942
4943         * src/mcs51/gen.c (emitcode): fixed bug #992819
4944
4945 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
4946
4947         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
4948           there's no need to make it worse
4949
4950 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4951
4952         * src/mcs51/ralloc.c (deassignLR),
4953         * src/ds390/ralloc.c (deassignLR),
4954         * src/hc08/ralloc.c (deassignLR),
4955         * src/z80/ralloc.c (deassignLR),
4956         * src/pic/ralloc.c (deassignLR),
4957         * src/pic16/ralloc.c (deassignLR),
4958         * src/avr/ralloc.c (deassignLR),
4959         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
4960         rlivePoint): fixed another part of bug #971834
4961
4962 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4963
4964         * src/z80/main.c: enabled "critical" keyword
4965         * src/z80/mappings.i,
4966         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
4967         functions (fixes bug #979646)
4968         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
4969
4970 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
4971
4972         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
4973           such as c:\mydir.
4974
4975 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
4976
4977         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
4978           doesn't disable too much optimizations
4979
4980 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4981
4982         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
4983
4984 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
4985
4986         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
4987
4988 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
4989
4990         * src/pic/gen.c tidied up tabs
4991         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
4992         * src/pic/main.c tidied up tabs
4993         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
4994         * src/pic/pcoderegs.c tidied up tabs
4995         * src/pic/ralloc.c tidied up tabs
4996
4997 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
4998
4999         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
5000         to S_FIXED for pic16 port and when symbol is not in level 0,
5001         allocate for S_REGISTER storage class and pic16 port, too,
5002         * src/pic16/device.h: prototype for checkSym,
5003         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
5004         * (pic16_assignConfigWordValue): test the value and the mask to
5005         validate that the value is suitable for the configuration word,
5006         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
5007         collect extern declared symbols, don't emit symbol twice, check
5008         first if symbol is in publics set first,
5009         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
5010         * added command line '--fstack' which enables an experimental
5011         feature for stack access, too buggy to be used yet...
5012         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
5013         * (pic16_allocDirReg): when register has storage class S_REGISTER
5014         allocate in pic16_dynAccessRegs,
5015         * device/include/pic16/pic18f????.h: modified configuration word
5016         naming convention, words started as CONFIG0H but should be CONFIG1H
5017
5018 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5019
5020         * device/include/mcs51reg.h: fixed bug 970993
5021
5022 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
5023
5024         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
5025         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
5026         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
5027         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
5028         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
5029         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
5030           error/warning numbers,
5031           added function setWarningDisabled()
5032         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
5033         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
5034           _memcmp.c _memmove.c calloc.c realloc.c free.c
5035         * support/regression/tests/malloc.c: added tests for new functionality
5036         * support/regression/tests/zeropad.c: added tests for truncated initializers
5037           and initialized char arrays starting with '\x0'
5038         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
5039
5040 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
5041
5042         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
5043
5044 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5045
5046         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
5047         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
5048         peephole 177.e. Thanks to anonymous
5049
5050 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
5051
5052         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
5053         function isn't used in the source but referenced as a
5054         variable initializer then declare it as extern in .asm file
5055
5056 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
5057
5058         * .version: increased version number to 2.4.3
5059
5060         Adding version extension according to ChangeLog CVS revision
5061         * src/Makefile.in (target all): added dependency 'version.h'
5062         * (rule version.h): added rule to create version.h from ChangeLog,
5063         * (rule dep): added dependency version.h,
5064         * src/version.awk: AWK script to create version.h
5065         * src/SDCCdwarf2.c (dwWriteModule),
5066         * src/SDCCglue.c (initialComments),
5067         * src/SDCCmain.c (printVersionInfo): modified to write after
5068         version string the version extension number,
5069         * src/SDCCutil.c: included "version.h"
5070         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
5071         number,
5072         * src/SDCCutil.h: added prototype for getBuildNumber
5073
5074         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
5075         includeDirsSet, too,
5076         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
5077         const char [] is found in function prototype...
5078
5079         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
5080         moving to WREG with source is already in WREG,
5081         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
5082         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
5083         * (aopForSym): stack'ed symbols are partially supported, added
5084         if-clause to support symbols in FARSPACE,
5085         * (sameRegs): added test for AOP_ACC to see if registers are same,
5086         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
5087         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
5088         * (pic16_popRegFromString): will not allocate a new register if it
5089         doesn't find one by name, bug may have introduced...
5090         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
5091         * (genIpush): revived to use pic16 port's stack,
5092         * (genAddrOf): added incomplete case for stack'ed operand,
5093         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
5094         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
5095         can handle multibyte operands,
5096         * src/pic16/glue.c (pic16_printIval*): some debug info added,
5097         * (pic16initialComments): added message for MPLAB compatibility
5098         mode enabled,
5099         * src/pic16/main.h: prototype for pic16_mplab_comp,
5100         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
5101         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
5102         * (_pic16_linkEdit): NEW, handles link stage, transferred here
5103         because of increased complexity of procedure,
5104         * (_process_pragma): stack pragma changed to format 'stack pos len',
5105         emit symbol '_stack_end' to conform with gplink,
5106         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
5107         to search for register,
5108         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
5109         PO_GPR_REGISTER,
5110         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
5111         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
5112         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5113         case for PO_GPR_REGISTER,
5114         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
5115         dies, the new era is ahead !...
5116         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
5117         pic16_dynInternalRegs,
5118         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
5119         * (pic16_allocDirReg): minor optimizations and bug fixes,
5120         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
5121
5122         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
5123         load stack and frame pointer with address of 'stack_end' symbol
5124
5125 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
5126
5127         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
5128         without source code but only variable initializers
5129
5130 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
5131
5132         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
5133         external are not declared as extern to reduce overhead while linking
5134
5135 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
5136
5137         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
5138
5139 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
5140
5141         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
5142           Yee Keat for the patch
5143         * src/SDCCast.c (decorateType): fixed bug #979599
5144         * src/ds390/gen.h: removed local fReturnSizeDS390
5145         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
5146         * src/ds390/gen.c (genAnd, genOr, genXor),
5147         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
5148
5149 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
5150
5151         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
5152         add relFilesSet to $3, manipulate $2 to handle linking of object
5153         files without source files in command line,
5154         * device/include/pic16 (all headers): added ID location macros,
5155         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
5156         entries for ID location bytes,
5157         * (pic16_assignIdByteValue): NEW,
5158         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
5159         added field dumpcalltree to pic16_options_t,
5160         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
5161         is used instead of pic16_Gstack_base_addr, check if (ifx) before
5162         emitting rFalseIfx label after check_carry label,
5163         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
5164         pic16_emitDIRegs), NEW
5165         * (pic16glue): dump .calltree file when option --calltree found,
5166         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
5167         * (_pic16_genAssemblerPreamble): emit ID locations after
5168         configuration registers,
5169         * (pic16_linkCmd): modifications of the link command,
5170         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
5171         * (pic16_pCodeInitRegisters): don't init stack registers,
5172         * (pic16_findPrevInstruction): fixed bug,
5173         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
5174         bug with immediate registers,
5175         * (buildCallTree): traces stack push and pop,
5176         * (pct2): dump also stack usage for each function,
5177         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
5178         * (pic16_allocDirReg): various modifications,
5179         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
5180         fixed to 1,
5181
5182 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
5183
5184         * src/pic16/pcode.c: removed buggy double colon
5185
5186 2004-07-01 Borut Razem <borut.razem AT siol.net>
5187
5188         * support/scripts/sdcc.nsi: added include/pic16 to setup
5189
5190 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
5191
5192         * device/lib/Makefile.in: fixed bug in target objects-pic16,
5193         * device/lib/pic16/Makefile: prefixed with dash (-) command under
5194         target 'clean',
5195         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
5196         specific command line arguments. Also added sample lkr script
5197         for placing a variable at a specific memory bank.
5198         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
5199         at a specific memory bank,
5200         * (pic16_dump_isection): fixed bug which caused string literals to
5201         be omitted when dumping idata section,
5202         * (pic16_groupRegistersInSection): added code to handle registers
5203         in specific memory banks,
5204         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
5205         public, all references are renamed too,
5206         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
5207         AOP_DPTR2,
5208         * (pic16_storeForReturn): added case to handle when dest is WREG,
5209         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
5210         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
5211         pic16_rel_udata, check to see if that register is marked as being
5212         a member of a specific memory bank,
5213         * (pic16_printIvalCharPtr): added code to add string literals either
5214         to code or the idata sections,
5215         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
5216         also accept the 'udata' pragma,
5217         * src/pic16/main.h: new structure types sectName and sectSym
5218         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
5219         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
5220         * (pic16_findPrevInstruction): fixed, it returned nothing,
5221         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
5222         instruction combinations,
5223         * (pic16_FixRegisterBanking): heavily reorganised,
5224         * (pic16_AnalyzeBanking): if generating banksel directives is
5225         disabled, then don't call FixRegisterBanking at all,
5226         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
5227         completely removed,
5228         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
5229
5230 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5231
5232         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
5233         Phuah Yee Keat <yk.phuah AT nestac.com>
5234
5235 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5236
5237         * src/pic16/glue.c (pic16createInterruptVect): function now emits
5238         correctly the IVT even if it is relocated to some other location
5239
5240 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5241
5242         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
5243         * device/include/pic16/pic18f2220.h: NEW,
5244         * device/lib/pic16/libdev/pic18f2220.c: NEW,
5245         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
5246         * src/pic16/device.c (struct Pics16): added info for 18f2220,
5247         * src/pic16/device.h (struct pic16_options): added ivt_loc and
5248         nodefaultlibs, ivt_loc is the location of the interrupt vector
5249         table, and nodefaultlibs signs that default libraries should not be
5250         linked in link stage,
5251         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
5252         according to --ivt-loc argument,
5253         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
5254         when pragma stack is found,
5255
5256 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5257
5258         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
5259         256 (range check), 257 (do while), 258.a-f (bit banging
5260         f.e. on 3-wire SPI bus)
5261
5262 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5263
5264         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
5265         variables used exclusively within a loop
5266
5267 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
5268
5269         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
5270
5271 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5272
5273         * src/SDCClrange.c (computeClash): fixed bug #971834
5274
5275 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5276
5277         * src/mcs51/gen.c (genCmp): fixed bug #975903
5278         * src/hc08/gen.c (operandsEqu),
5279         * src/ds390/gen.c (operandsEqu),
5280         * src/z80/gen.c (operandsEqu),
5281         * src/pic/gen.c (operandsEqu),
5282         * src/pic16/gen.c (operandsEqu),
5283         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
5284         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
5285
5286 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5287
5288         * src/SDCCcse.c (cseBBlock): fixed bug #966963
5289
5290 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
5291
5292         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
5293         default case in switch statement,
5294         * glue.c (pic16_initPointer): expr is initialised via decoarteType
5295         to eliminate problem with initialisation of pointers, but problem
5296         still exists,
5297         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
5298         * (emitStaticSegment): removed various lines emitting debug info,
5299         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
5300         added processor registers for utilizing EEPROM,
5301         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
5302         configurable and set 8
5303
5304 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
5305
5306         * .version: increased version number to 2.4.2,
5307
5308         Cumulative patch for pic16 port
5309         * src/pic16/device.c: changed scheme to dump initial values for
5310         variables in idata segment, all print_idata* functions were removed,
5311         now the pic16_printIval* will be called,
5312         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
5313         * _pic16_printPointerType, pic16_printPointerType,
5314         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
5315         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
5316         NEW, similar to the respective functions in SDCCglue.c,
5317         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
5318         way, emitting hex bytes,
5319         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
5320
5321 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5322
5323         * src/avr/ralloc.c (serialRegAssign),
5324         * src/xa51/ralloc.c (serialRegAssign),
5325         * src/pic/ralloc.c (serialRegAssign),
5326         * src/pic16/ralloc.c (serialRegAssign),
5327         * src/hc08/ralloc.c (serialRegAssign),
5328         * src/z80/ralloc.c (serialRegAssign),
5329         * src/ds390/ralloc.c (serialRegAssign),
5330         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
5331
5332 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5333
5334         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
5335         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
5336
5337 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
5338
5339         Cumulative patch for pic16 port:
5340         * src/pic16/device.h (typedef PIC16_device) modified fields for
5341         defining microcontrollers,
5342         * src/pic16/device.c: added new info for all devices in Pics16 array,
5343         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
5344         to be optimised out by the pCode optimiser,
5345         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
5346         specially, bug reported by G.M. Gallant,
5347         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
5348         as force'd so that cannot be optimised out by pCode optimiser,
5349         * src/pic16/pcode.c,
5350         * src/pic16/pcodepeeph.c,
5351         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
5352         they are disabled by default, but can be enabled explicit with
5353         command argument --denable-peeps, for testing,
5354         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
5355         --pomit-ivt in COMPILE_FLAGS
5356
5357 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5358
5359         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
5360           compilation on MSVC
5361
5362 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5363
5364         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
5365
5366 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5367
5368         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
5369         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
5370
5371 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
5372
5373         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
5374         would only assign 0x300001 register.
5375
5376 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
5377
5378         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
5379         in COMPILE_FLAGS. Thanks to G. Gallant for report.
5380
5381 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5382
5383         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
5384         for ds80c400
5385         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
5386         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
5387         added peephole 254 (left shift), 255 (jump table)
5388
5389 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
5390
5391         * device/lib/Makefile.in: removed comment line with model-pic16,
5392         * (target port-specific-objects-pic16): the libraries and objects
5393         are copied to the build directory form the device/lib/pic16/bin
5394         directory
5395
5396         Cumulative patch concerning pic16 port:
5397         * library directory has been re-organized,
5398         * added support for PIC18F1220,
5399         * added headers and library sources for chips 18f1220,18f6520,
5400         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
5401
5402         * configuration registers setting has changed, now each supported
5403         device has a complete description of the registers it uses,
5404         * all initialisations are moved to idata sections, these section
5405         can be absolute or relocatable,
5406         * fixed initialisation of codespace variables,
5407         * fixed warning about PCLATU and gpsim,
5408         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
5409         * (genAssign): use table reads when assigning from variables in codespace,
5410         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
5411         char/int variables placed in codespace,
5412         * (pic16_emitConfigRegs): NEW, emits a list with configuration
5413         registers set in .asm file, no need for --pomit-config-words anymore,
5414         * (pic16glue): some 8051 legacy segments are commented out
5415         (to be removed completely),
5416         * added support for alternative assembler and linker with --asm=
5417         and --link= command line arguments,
5418         * peepholes are disabled automatically in the port, no need to
5419         specify on command line,
5420         * port supports natively char/int/long multiplication, but converts
5421         all divisions to support functions,
5422         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
5423         to the file set in variable $2,
5424         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
5425         strings in ASCII format and not in hex,
5426         * ralloc.c (serialRegAssign): added a triplet of conditional calls
5427         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
5428         allocate proper register if iCodes aren't temporary,
5429
5430 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5431
5432         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
5433
5434 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
5435
5436         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
5437         is commented out
5438
5439 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5440
5441         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
5442         computed address is reused
5443         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
5444         multi-byte bitfields
5445
5446 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5447
5448         * src/z80/gen.c: (genArrayInit): must check for pointers too
5449
5450 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5451
5452         * support/regression/tests/zeropad.c: never meant to commit the
5453           nestedstruct test: removed, added check for GCC version
5454
5455 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
5456
5457         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
5458         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
5459         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
5460           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
5461           bugs 928906 and 954082 half-empty initializers
5462         * src/SDCCsymt.h,
5463         * src/SDCCsymt.c (getAllocSize): added for above fix
5464         * src/z80/gen.c (genArrayInit): fixed bug 741044
5465         * support/regression/tests/zeropad.c: added tests
5466
5467 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
5468
5469         * src/pic16/device.c (pic16_dump_section): corrected bug which
5470         caused some symbols of the libraries to be misplaced
5471
5472 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5473
5474         * src/pic16/glue.c,
5475         * src/pic16/ralloc.h,
5476         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
5477         to fix conflict with pic port
5478
5479 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5480
5481         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
5482         externs configuration variables,
5483         * src/pic16/ralloc.h,
5484         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
5485         prototype in header, commented out some debug messages
5486
5487 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
5488
5489         * src/pic16/glue.c,
5490         * src/pic16/main.c,
5491         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
5492         for gpasm COFF object generation. Thanks to D. Hawkins for
5493         his patch info
5494
5495 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5496
5497         * src/ds390/main.c,
5498         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
5499         Brock for spotting this)
5500         * src/ds390/gen.c (genEndFunction),
5501         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
5502         interrupt handler and critical. Disable push/pop optimizations when
5503         peephole optimizations disabled.
5504
5505 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5506
5507         Updated pic16 library sources and headers.
5508         * device/lib/pic16/pic18f*/ ,
5509         * device/include/pic16/*.h: modified to handle structured SFR
5510         definitions
5511
5512 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5513
5514         * src/port.h (PORT structure): added hook initPaths, now each
5515         port can declare its own default search paths,
5516         which can been seen with the --print-search-dirs option,
5517         see pic16 port for example,
5518         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
5519         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
5520         * (doPrintSearchDirs): NEW, replaces in a central manner the
5521         printing of search dirs which was split in set*Paths functions,
5522         * (main): added call to port->initPaths and doPrintSearchDirs,
5523         * src/avr/main.c,
5524         * src/ds390/main.c,
5525         * src/hc08/main.c,
5526         * src/izt/i186.c,
5527         * src/izt/tlcs900h.c,
5528         * src/mcs51/main.c,
5529         * src/pic/main.c,
5530         * src/pic16/main.c: modified port structures to reflect addition of
5531         initPaths hook,
5532
5533         * src/pic16/device.c (regCompare): registers are finally sorted by name,
5534         * (pic16_dump_section): for registers in same address reserve memory once,
5535         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
5536         to no_banksel,
5537         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
5538         result is greater in size than right or left,
5539         * (pic16_genUMult8X8_8): there are some cases where the result can
5540         be 16 bits size, so handle these,
5541         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
5542         * (pic16_outBitC): modified to emit pcodes,
5543         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
5544         or not,
5545         * (genDivOneByte): implemented algorithm to divide 8-bits,
5546         * (genCmp): uncommented goto, but issues still exist,
5547         * (genAnd): fixed a bug with variables >8bits,
5548         * (genPackBits): optimization added that uses BCF/BSF to change a
5549         single bit,
5550         * (genAssign): fixed bug when assigning floating point literals,
5551         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
5552         __sdcc_gsinit_startup label,
5553         * src/pic16/main.c (_pic16_init): removed search directory
5554         initialisations,
5555         * (_pic16_initPaths): NEW, used to initialise search directories,
5556         * (_hasNativeMulFor): support functions for all except char/int
5557         multiplication, and char division,
5558         * (PIC16_port struct): modified entry for native mul support,
5559         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
5560         no_banksel option,
5561         * (buildCallTree): call to register_usage is ifdef'ed out,
5562
5563 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5564
5565         * device/include/string.h: applied Stas Sergeev's patch to make this
5566         header file compatible with the preprocessor -Wundef option
5567         * src/SDCCmain.c (main): abort compilation if preprocessor reports
5568         failure (fixes bug #941458)
5569
5570 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5571
5572         * src/SDCCopt.c (killDeadCode): fixed bug #907733
5573         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
5574         that the variable, not the function, should be static
5575         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
5576         to be consistent with non-literal case
5577
5578 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5579
5580         * src/SDCCast.c (isConformingBody): fixed bug #949967
5581         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
5582         convilong): fixed bug #952086
5583
5584 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5585
5586         * src/SDCCmem.c (allocVariables): fixed bug #955321
5587
5588 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5589
5590         * src/hc08/main.c (_hc08_genAssemblerEnd),
5591         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
5592         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
5593         completely eliminated the use of a temporary file
5594         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
5595         when more than one file linked
5596         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
5597
5598 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5599
5600         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
5601         which fixes bug #543481
5602         * support/regression/tests/bug-751703.c: fixed comments left from a
5603         cut and paste error
5604         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
5605         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
5606         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
5607         scopes
5608         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
5609         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
5610         are now changed to underscores in moduleName
5611
5612 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5613
5614         * as/mcs51/lkmem.c: better fix for bug #954173
5615
5616 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5617         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5618
5619         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
5620         * device/include/c8051f000.h,
5621         * device/include/c8051f120.h,
5622         * device/include/c8051f300.h,
5623         * device/include/c8051f310.h,
5624         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
5625         PWM16) and detab'ed
5626
5627 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5628
5629         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
5630         and mailing lists, doc'ed --no-peep-comments, removed reference
5631         to knoppix (newest version has no LyX/LaTeX), other minor changes
5632         * src/SDCCglue.c (glue): save 2 bytes stack space with
5633         option --main-return. The ljmp could probably be avoided too
5634
5635 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5636
5637         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
5638
5639 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5640
5641         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
5642         * src/SDCCopt.c (isLocalWithoutDef),
5643         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
5644         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
5645         (credit to Maarten Brock for patch #949363, on which this is based)
5646         * support/regression/tests/bug-751703.c: some test cases of extern used
5647         within inner scopes.
5648
5649 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5650
5651         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
5652         SPEC_STRUCT
5653         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
5654         struct definitions
5655         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
5656         dwWriteLabel): fix to create valid debugger symbols even when
5657         the module name has non-alphanumeric symbols in it
5658         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
5659         when a variable's allocation has been optimized away
5660
5661
5662 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5663
5664         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
5665         * src/hc08/main.c,
5666         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
5667         * src/mcs51/main.c,
5668         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
5669         * src/ds390/main.c,
5670         * src/z80/gen.c (z80_emitDebuggerSymbol),
5671         * src/z80/main.c,
5672         * src/pic/gen.c (pic14_emitDebuggerSymbol),
5673         * src/pic/main.c,
5674         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
5675         * src/pic16/main.c,
5676         * src/avr/gen.c (avr_emitDebuggerSymbol),
5677         * src/avr/main.c,
5678         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
5679         * src/xa51/main.c,
5680         * src/SDCCdebug.c (emitDebuggerSymbol),
5681         * src/SDCCdebug.h,
5682         * src/port.h: added a debugger struct to the port struct. Added a
5683         callback for defining debugger symbols
5684
5685         * src/SDCCast.c (createLabel),
5686         * src/SDCC.y (labeled_statement): mark all compiler generated labels
5687         with isitmp = 1
5688         * src/SDCCicode.h,
5689         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
5690         iCode back to the ast for the function
5691
5692         * src/hc08/ralloc.c (hc08_assignRegisters),
5693         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
5694         unneeded fields from the regs struct.
5695         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
5696         pushReg() & pullReg() functions instead of emitcode()
5697
5698         * src/hc08/gen.c (genLabel, genhc08Code),
5699         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
5700
5701         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
5702         debugger hooks
5703
5704         * src/hc08/gen.c (genEndFunction, genhc08Code),
5705         * src/hc08/gen.h,
5706         * src/mcs51/gen.c (genEndFunction, gen51Code),
5707         * src/mcs51/gen.h,
5708         * src/ds390/gen.c (genEndFunction, gen390Code),
5709         * src/ds390/gen.h,
5710         * src/z80/gen.c (genEndFunction, genZ80Code),
5711         * src/z80/gen.h,
5712         * src/z80/z80.h,
5713         * src/pic/gen.c (genEndFunction, genpic14Code),
5714         * src/pic/gen.h,
5715         * src/pic16/gen.c (genEndFunction, genpic16Code),
5716         * src/pic16/gen.h,
5717         * src/avr/gen.c (genEndFunction, genAVRCode),
5718         * src/avr/gen.h,
5719         * src/xa51/gen.c (genEndFunction, genXA51Code),
5720         * src/xa51/gen.h,
5721         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
5722         specific code to cdbFile.c and out of the backend code generators
5723
5724         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
5725         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
5726         starting address is now 0
5727
5728         * as/hc08/asm.h,
5729         * as/hc08/m08pst.c,
5730         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
5731         assembler directive for DWARF support
5732         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
5733
5734         * src/src.dsp,
5735         * src/Makefile.in,
5736         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
5737
5738 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5739
5740         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
5741         and inappropriate peephole optimization in jump tables
5742
5743 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5744
5745         * as/hc08/m08pst.c,
5746         * src/SDCCglue.c: sdccopt works for the hc08 port now
5747
5748 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
5749
5750         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
5751
5752 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5753
5754         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
5755
5756 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5757
5758         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
5759         rules
5760         * src/SDCCmain.c,
5761         * src/SDCCglobl.h,
5762         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
5763         comments from the peephole optimizer replacement rules
5764         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
5765         symbols
5766         * src/SDCCcse.c (updateSpillLocation),
5767         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
5768         equivalents
5769         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
5770         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
5771         objects far pointers
5772
5773 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5774
5775         * src/SDCCsymt.h: a missing part of my last change
5776         * src/pic/ralloc.c (regTypeNum),
5777         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
5778
5779 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5780
5781         * src/SDCCicode.h,
5782         * src/SDCCicode.c (aggrToPtrDclType),
5783         * src/SDCCptropt.h,
5784         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
5785         ptrPseudoSymConvert),
5786         * src/pic/ralloc.c (regTypeNum),
5787         * src/pic16/ralloc.c (regTypeNum),
5788         * src/hc08/ralloc.c (regTypeNum),
5789         * src/ds390/ralloc.c (regTypeNum),
5790         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
5791         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
5792
5793 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5794
5795         * link/z80/lkmain.c (afile),
5796         * as/hc08/lkmain.c (afile),
5797         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
5798         prevent a pointer problem when a filename has no directory and
5799         no extension specified.
5800
5801 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5802
5803         * link/z80/lkmain.c (afile): allow periods in directory names
5804         * link/z80/lkmain.c (afile),
5805         * as/mcs51/lkmain.c (afile),
5806         * as/hc08/lkmain.c (afile): allow linker script file to have an
5807         extension other than ".lnk"
5808         * link/z80/lklex.c (getfid),
5809         * link/z80/lkmain.c (parse),
5810         * as/mcs51/lklex.c (getfid),
5811         * as/mcs51/lkmain.c (parse),
5812         * as/hc08/lklex.c (getfid),
5813         * as/hc08/lkmain.c (parse): Support comments in the linker script
5814         file on lines by themselves and after filenames
5815
5816 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5817
5818         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
5819
5820 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5821
5822         * src/z80/peeph-z80.def: removed some peephole rules that don't
5823         work with multibyte arithmetic (fixed bug #937126)
5824         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
5825         to registers and not global variables
5826         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
5827         geniCodePreInc, geniCodePostDec, geniCodePreDec,
5828         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
5829         checking for assignments not internally generated (fixed bug #931895)
5830         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
5831         structure member (fixed bug #930072)
5832
5833 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5834
5835         * src/SDCCmain.c (linkEdit),
5836         * src/hc08/main.c (_hc08_parseOptions),
5837         * as/hc08/Makefile.in,
5838         * as/hc08/aslink.h,
5839         * as/hc08/asm.h,
5840         * as/hc08/m08pst.c,
5841         * as/hc08/lkrloc.c (relr, rele),
5842         * as/hc08/lkarea.c (lnkarea)
5843         * as/hc08/lkmain.c (afile, parse),
5844         * as/hc08/lkelf.c: support for ELF output
5845         * as/hc08/lks19.c (s19),
5846         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
5847
5848 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5849
5850         * as/mcs51/lkihx.c: Fixed bug #899105.
5851
5852 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5853
5854         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
5855         .dsp files from Unix to DOS.
5856
5857 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5858
5859         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
5860         function pointers; we have been compliant for several months now.
5861         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
5862         change that was accidently commented out
5863         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
5864         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
5865         bug #922319
5866
5867 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5868
5869         * src/hc08/gen.c: output of all of the internal debugging information
5870         is now controlled by the D() macro; it is disabled by default
5871
5872 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5873
5874         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
5875         harder to keep the same registers during a CAST iCode
5876         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
5877         long via int can be done in a single cast, if the signedness is
5878         correct.
5879         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
5880         putchar() in tinibios.c in ds390's library
5881
5882 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
5883
5884         * src/SDCCast.c (decorateType): fixed bug #898889,
5885         cast result of a literal complement too
5886         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
5887         fixed check for bitfields
5888
5889 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
5890
5891         * src/SDCCicode.c (geniCodeLogic): made it static,
5892         (geniCodeLogicAndOr): added in order to fix bug #905492,
5893         (ast2iCode): fixed bug #905492
5894         * support/regression/tests/bug-905492.c: added
5895         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
5896         (processParms): fixed bug #927659: don't copy parms, this will clear
5897         decorated flag
5898         * support/regression/tests/bug-927659.c: added
5899
5900 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
5901
5902         * src/SDCCast.c (addCast): don't cast float to char
5903         * device/lib/libsdcc.lib: added _memmove
5904
5905 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
5906
5907         * device/lib/large/Makefile: fixed parallel execution by
5908         replacing `make` by `$(MAKE)`
5909
5910 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5911
5912         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
5913         offsets (fixes bug #923936)
5914
5915 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
5916
5917         * device/lib/small/Makefile: fixed parallel execution by
5918         replacing `make` by `$(MAKE)`
5919
5920 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5921
5922         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
5923
5924 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
5925
5926         * src/pic/gen.c (genCpl): multi-byte complements were not working.
5927         * src/regression/Makefile: Regression test was not running.
5928
5929 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
5930
5931         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
5932         complement if possible
5933         * src/SDCCval.c (valComplement),
5934         * src/SDCCicode.c (operandOperation): fixed complement of literal
5935         * support/regression/tests/onebyte.c (testComplement): added
5936
5937 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
5938
5939         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
5940         return an optimized tree; actually replace actParm with the new tree
5941         * src/SDCCast.h: added some parantheses to remove side effects
5942         * support/regression/tests/bug-920866.c
5943
5944 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
5945         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
5946         Bit operands were not being handled properly in the pic14 port.
5947         (now src/regression/add.c passes again).
5948
5949 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5950
5951         * src/SDCC.y (labeled_statement): case and default no longer require
5952         a following statement (RFE #893037)
5953
5954 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5955
5956         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
5957         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
5958         disabled (fixes bug #916294)
5959         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
5960         "mov a,acc"; patch provided by Lenny Story
5961         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
5962
5963 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5964
5965         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
5966         functions
5967         * src/ds390/gen.c (genFunction, genEndFunction),
5968         * src/ds390/ralloc.c (ds390_assignRegisters),
5969         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
5970         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
5971         pushed if there are parameters passed on the stack. Also, a cleaner
5972         way to decide if r0/r1 should be pushed/popped. (Together they fix
5973         bug #918693)
5974
5975 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5976
5977         * doc/sdccman.lyx,
5978         * device/lib/mcs51/crtpagesfr.asm,
5979         * device/lib/mcs51/crtxinit.asm,
5980         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
5981         to avoid confusion with Si Lab's SFRPAGE register.
5982
5983 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5984
5985         * src/SDCCglue.c (emitMaps): allow public sfr variables
5986         * src/SDCCglue.c (initialComments): include compiler build date
5987         with compiler version and put the timestamp of the generated
5988         assembly file on a serperate line to be less confusing.
5989         * src/port.h: added genInitStartup hook
5990         * src/avr/main.c,
5991         * src/ds390/main.c,
5992         * src/hc08/main.c,
5993         * src/pic/main.c,
5994         * src/pic16/main.c,
5995         * src/xa51/main.c,
5996         * src/z80/main.c: genInitStartup initialize as NULL (default to
5997         historical behaviour)
5998         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
5999         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
6000         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
6001         library instead of hard coding it into the compiler.
6002         * support/regression/ports/mcs51-stack-auto/spec.mk,
6003         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
6004         * device/lib/mcs51/Makefile,
6005         * device/lib/small/Makefile,
6006         * device/lib/large/Makefile,
6007         * device/lib/mcs51/crtpagesfr.asm,
6008         * device/lib/mcs51/crtstart.asm,
6009         * device/lib/mcs51/crtxclear.asm,
6010         * device/lib/mcs51/crtxinit.asm,
6011         * device/lib/mcs51/crtclear.asm,
6012         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
6013         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
6014         and into user configurable files.
6015         * device/lib/clean.mk: clean mcs51 directory too
6016         * support/regression/tests/longlit.c: added static to T1 declaration
6017         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
6018         accesses in the initialization code
6019
6020 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6021
6022         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
6023         OSCTRIMVAL as noted in bug #916008
6024
6025 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6026
6027         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
6028         in loops with multiple exits (reported as incorrect registers
6029         used by Martin Helmling in Sdcc-user list)
6030
6031 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6032
6033         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
6034         made ds390 register extensions look less like error messages
6035
6036 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6037
6038         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
6039         reported by Adam Wozniak in Sdcc-user list
6040
6041 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
6042
6043         * src/SDCCast.c (decorateType): fixed with bug and promotion in
6044         arithmetic optimizations, added debug output
6045
6046 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
6047
6048         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
6049         * sdcc.spec: updated and split sdcc into 3 rpms
6050         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
6051         needed for literals of LEFT_OP and '+'
6052         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
6053         introduced RESULT_TYPE_NOPROM
6054         (geniCodeMultiply): fixed logic for decision if mul is optimized to
6055         left shift
6056         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
6057         limited promotion to int only for '*'
6058         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
6059
6060 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
6061
6062         * src/pic16/gen.c (genSkip),
6063         (genc16bit2lit), (gencjneshort): commented out
6064         (is_LitOp): new helper function, checks operand type
6065         (genCmpEq): rewritten
6066
6067 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
6068
6069         * support/regression/tests/bug-908454.c: added
6070
6071 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
6072
6073         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
6074         * src/SDCCicode.c (usualBinaryConversions): op needs int type
6075         (geniCodeCast): cosmetic, don't preserve bit storage class
6076         (geniCodeLeftShift): added promotion
6077         (geniCodeLogic): fixed regression
6078         * src/SDCCsymt.c (computeTypeOr): accept bits too
6079         (compareType): 2nd part of fix for bug #908454, needed for bitfields
6080
6081 2004-03-07  Borut Razem <borut.razem AT siol.net>
6082
6083         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
6084
6085 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
6086
6087         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
6088         version of pic16_genPackRegisters which does not check if ic is a
6089         CAST operator,
6090         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
6091         function cause string1.c regression test fails
6092
6093 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
6094
6095         * sim/ucsim/configure.in,
6096         * sim/ucsim/configure,
6097         * sim/ucsim/doc/Makefile.in: use docdir
6098         * src/SDCC.y: fixed sbit atrributes
6099         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
6100         * src/SDCCast.c (decorateType): |^& need special promotion handling
6101         * src/SDCCast.h,
6102         * src/SDCCsymt.h: moved definition of RESULT_TYPE
6103         * src/SDCCsymt.h (computeType),
6104         * src/SDCCicode.c: computeType() needs op
6105         * src/SDCCsymt.c (checkTypeSanity),
6106         * doc/sddman.lyx: "plain" bitfields are unsigned
6107         * src/SDCCsymt.c (computeTypeOr): added
6108         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
6109         |^& ops
6110         * src/SDCCval.c (val*): computeType() needs op
6111         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
6112         * support/regression/tests/onebyte.c: added tests for |^&
6113
6114 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
6115
6116         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
6117         for writing icode into asm output.
6118
6119 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
6120
6121         * src/pic16/device.c: added some debug lines enabled
6122         with macro DEBUG_CHECK,
6123         * src/pic16/genarith.c: more debug in genPlus,
6124         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
6125         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
6126         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
6127         * (aopForSym): onStack symbols are re-placed in data memspace,
6128         and onStack flag is cleared,
6129         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
6130         copy temporary pcodeop,
6131         * (genPcall): added warning for not updating PCLATU,
6132         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
6133         always true for pic16 port,
6134         * (genMultOneWord): NEW, supports integer multiplication,
6135         * (genMult): modified to call genMultOneWord,
6136         * (ifxForOp): added warning when return NULL,
6137         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
6138         flag is set before call to operandFromSymbol for implicit
6139         added structures,
6140         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
6141         options.intlong_rent are set by default,
6142         * (_hasNativeMulFor): modified to allow port generation of integer
6143         multiplication,
6144         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
6145         set regtype to REG_SFR for all registers, restricting seting the
6146         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
6147
6148 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6149
6150         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
6151         more than 500 times in the regression tests
6152
6153 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6154
6155         * support/Util/SDCCerr.h,
6156         * support/Util/SDCCerr.c,
6157         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6158         enumerator_list),
6159         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
6160         for symbol conflicts.
6161         * support/valdiags/tests/enum.c,
6162         * support/valdiags/tests/tentdecl.c,
6163         * support/valdiags/tests/struct.c: expect possible error messages
6164         referring to original symbol definitions.
6165         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
6166         * src/SDCCsymt.h,
6167         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
6168
6169 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
6170
6171         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
6172
6173 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
6174
6175         * src/pic16/ralloc.c (newReg): fixed bug #908929
6176
6177 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6178
6179         * src/ds390/gen.c: added missing #include "main.h"
6180
6181 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
6182
6183         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
6184         checking if symbol is already in set,
6185         * src/pic16/device.h: prototype for checkAddSym,
6186         * src/pic16/gen.c: (_G): added entry interruptvector,
6187         * (assignResultValue): removed some commented out lines,
6188         * (genFunction): check for ISR via sym->type, absolute section for
6189         interrupt code is created via a new pBlock, the goto instruction is
6190         placed now correctly at the interrupt vector position, changed all
6191         references from ivec to _G.interruptvector,
6192         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
6193         is the interrupt is a high priority one, same for return from ISR,
6194         * src/pic16/glue.c: changed all calls of addSetHead for publics and
6195         externs to calls of checkAddSym,
6196         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
6197         pic16_pcode_verbose flag is set,
6198         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
6199         * src/pic16/pcoderegs.c: message about how many registers are saved
6200         will only be emitted if pic16_pcode_verbose flag is set,
6201
6202 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6203
6204         * src/ds390/ralloc.h,
6205         * src/ds390/ralloc.c (ds390_regWithIdx),
6206         * src/ds390/gen.c (emitcode),
6207         * src/ds390/main.h,
6208         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
6209         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6210         ds390operandCompare, getRegsRead, getRegsWritten,
6211         initializeAsmLineNode): customized instruction size calculation for
6212         ds390, started basis for some register optimizations
6213         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
6214         corresponding assembly output
6215         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
6216         missing push/pop of r0/r1. Optimized push/pops
6217
6218 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6219
6220         * src/mcs51/main.c (instructionSize): fixed ACALL size
6221         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
6222
6223 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
6224
6225         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
6226         the sorting of rlist with NULL elements
6227         * (print_idataType, print_idata): NEW to create idata sections
6228         * src/pic16/device.h: idataSymSet new variable
6229         * src/pic16/gen.c (genFunction): fixed some bugs in string
6230         comparing, improved the absolute section creation for ISRs,
6231         added FSR0L/FSR0H in registers that are saved in an ISR,
6232         * (genInline): fixed the processing of inline snippets,
6233         now they undergo no process by the peephole optimizer
6234         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
6235         are placed in idataSymSet,
6236         * (pic16emitStaticSeg): extern symbols are added in externs,
6237         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
6238         switching when aboslute variables are placed in access bank memory
6239         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
6240         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
6241         commented out with #if,
6242         * (pic16_packRegisters): reintroduce the check for CAST because some
6243         symbols are not correctly handled,
6244         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
6245         pCodeInstruction instead of pCode,
6246         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
6247         pCodeAsmDir definition,
6248         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
6249         directive, then the argument directive is emitted without the leading
6250         tab, hack for inline labels which must be in the first column,
6251         * (compareLabel,pic16_findNextInstruction),
6252         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
6253         * (insertBankSwitch): modified for the new pCodeAsmDir,
6254
6255 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6256         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
6257
6258         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
6259         instance,
6260         * (pushSide): commented out with #if,
6261         * (assignResultValue): fixed some typos in saving
6262         registers,
6263         * (genPcall): FIXED and sync'ed with genCall,
6264         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
6265         * (genNearPointerGet): fixed to handle some more cases,
6266         implementation scheme via table reads,
6267         * (genConstPointerGet): modified to access code memory correct,
6268         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
6269         and improved to handle some cases
6270         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
6271         instead of "RETLW" for init data
6272         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
6273         not IN_DIRSPACE, work around to reduce bank switching when aboslute
6274         variables are placed in access bank memory (<0x80 and >=0xf80),
6275         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
6276         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
6277         TBLWT_POSTDEC,TBLWT_PREINC
6278         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
6279         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
6280         directives
6281         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
6282         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
6283         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
6284         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
6285
6286 2004-02-29  Borut Razem <borut.razem AT siol.net>
6287
6288         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
6289         support/Util/findme.h, support/Util/system.h: enhance binary relative
6290         search for lib and include by using findProgramPath()
6291
6292 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6293
6294         * src/SDCCpeeph.h,
6295         * src/SDCCpeeph.c (pcDistance),
6296         * src/port.h,
6297         * src/mcs51/ralloc.h,
6298         * src/mcs51/ralloc.c (mcs51_regWithIdx),
6299         * src/mcs51/main.h,
6300         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
6301         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6302         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
6303         size calculation port specific, started basis for some register
6304         optimizations
6305         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
6306         missing push/pop of r0/r1. Optimized push/pops
6307         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
6308         * device/lib/_modsint.c (_modsint),
6309         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
6310         and stack version so regression tests pass
6311
6312 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
6313
6314         * src/Makefile.in (dep): include SLIBOBJS in dependency check
6315         * src/SDCCast.c (decorateType): catch another small optimization
6316         with '?' operator
6317         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
6318         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
6319         modified to finally use computeType() all over SDCC,
6320         see Feature Request #877103
6321         * src/SDCCval.h: cosmetic
6322         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
6323         valCompare(); regression tested in muldiv.c
6324         * support/regression/tests/muldiv.c (testMod): mod sign follows
6325         dividend only
6326
6327 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
6328
6329         * src/SDCCast.c (decorateType): fixed bug #902362
6330         * doc/INSTALL.txt: fixed install instructions for win32
6331
6332 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
6333
6334         * device/include/Makefile.in (install): fixed by replacing spaces
6335         by tabs
6336         * doc/README.txt,
6337         * doc/INSTALL.txt: updated for release
6338         * doc/sdccman.lyx: added warning for --xstack being buggy
6339
6340 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
6341
6342         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
6343         to eliminate build warnings.
6344         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
6345
6346 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
6347            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6348
6349         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
6350         removed -penable-stack, added comment for stack pragma, added
6351         warning for not initializing the stack/frame registers, removed
6352         comment at interrupts section
6353
6354         Stack is made permanent, there is no ability to disable stack usage.
6355         * src/pic16/device.h,
6356         * src/pic16/device.c: removed all references to USE_STACK macro,
6357         * src/pic16/device.c (pic16_dump_section): when no elements in
6358         rlist, free rlist before return,
6359         * (pic16_dump_int_registers): NEW, internal registers are a new set
6360         of general purpose registers reused by each function,
6361         * (checkAddReg): returns 1 if registers is added to set,
6362         * (pic16_groupRegistersInSection): when a registers is of type
6363         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
6364         * src/pic16/device.h: memRange and Assigned Memory are deleted,
6365         SRCASECMP macro is moved here from device.c
6366         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
6367         PO_PCLATU, PO_PRODL, PO_PRODH,
6368         * (pic16_pCodeOpType, genMinus,
6369         changed compares to "a" register, with AOP_ACC,
6370         * (pic16_genPlus): fixed some bugs and indented properly,
6371         * (pic16_addSign): changed size to size+offset in the MOVWF
6372         instruction,
6373         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
6374         multiply 8-bit operand by literal, result is 8-bit,
6375         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
6376         multiply 2 8-bit operand, result is 8-bit,
6377         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
6378         genUMult8X*_16,
6379         * src/pic16/gen.c: changed accUse to contain WREG only,
6380         * (pic16_emitcomment): renamed to pic16_emitpcomment,
6381         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
6382         true, do not use immediate addressing any more unless sym is a
6383         pointer in codespace,
6384         * (aopForRemat): do not use immediate addressing when symbol not in
6385         codespace and when symbol's address is requested,
6386         * (aopOp): for-loop in if(sym->accUse) is modified for the new
6387         accUse size (= 1),
6388         * (aopGet): added case for AOP_ACC and don't return "accumulator
6389         bug" but WREG instead,
6390         * (popGetTempReg): pushes contents of temporary register in stack,
6391         * (popReleaseTempReg): pops contents of temporary register from
6392         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
6393         * (pic16_popGet): separated case AOP_ACC to return register WREG
6394         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
6395         or PO_IMMEDIATE and initializes their instance/offset appropriately,
6396         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
6397         the use of immediate pointers to certain cases only.
6398
6399         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
6400         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
6401         * (assignResultValue, genCall, genRet): modified to use the new
6402         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
6403         genPcall is still broken,
6404         * (genFunction): added code to create 'A' type pBlocks when
6405         interrupt functions are generated, code not extensively tested yet,
6406         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
6407         * (genEndFunction): modified so ISRs pop stored registers from stack,
6408         * (genMultOneByte): cleanup,
6409         * (AccRsh): added flag andmask, to and result with appropriate mask,
6410         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
6411         * (genDataPointerGet): fixed and reenabled its use,
6412         * (genNearDataPointerGet): bugs fixed,
6413         * (genDataPointerSet): bugs fixed,
6414         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
6415         pic16_DumpSymbol, pic16_DumpOp,
6416         * src/pic16/genutils.h: function prototypes for the above functions,
6417         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
6418         pointers,
6419         * (pic16emitRegularMap): many many many improvements, but needs a
6420         major cleanup,
6421         * src/pic16/main.c: enable_stack in pic16_options is removed,
6422         * (_pic16_parseOptions): removed command line options -penable-stack,
6423         * (_process_pragma): emit stack symbol only when stack pragma is
6424         processed,
6425         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
6426         redirected to FSR0L/FSR0H pair,
6427         * (pic16_get_op, pic16_get_op2): modifications and improvements,
6428         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6429         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
6430         for immediates,
6431         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
6432         * (dumpPicOptype): NEW,
6433         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
6434         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
6435         with movff instruction,
6436         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
6437         added pic16_int_regs, some packRegsFor* functions are commented out,
6438         because produce errors,
6439         * src/pic16/NOTES: minor modifications
6440
6441 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6442
6443         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
6444         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
6445         --pack-iram.
6446         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
6447         * as/mcs51/lkaomf51.c: fixed bug #895763
6448
6449 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
6450
6451         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
6452
6453 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6454
6455         * doc/sdccman.lyx: added details about the HC08 storage classes and
6456         interrupts, fixed the register usage info for z80 & gbz80
6457
6458 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
6459
6460         * doc/sdccman.lyx: added more pic16 port documentation
6461         * device/include/pic16/: added header pic18fregs.h
6462
6463 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
6464
6465         * doc/sdccman.lyx: added Vangelis' contribution
6466
6467 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6468
6469         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
6470         extend to the next CALL or PCALL, not just to the next CALL.
6471
6472 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
6473
6474         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
6475
6476 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6477
6478         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
6479         bug #895752 and a better fix for bug #716790
6480
6481 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6482
6483         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
6484
6485 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6486
6487         * doc/sdccman.lyx: minor changes, minor changed
6488
6489 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
6490
6491         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
6492         which can't handle SDCC_NEWONEBYTEOPS,
6493         (geniCodeMultiply): removed conversion from mult to shift for pic14
6494         and pic16
6495
6496 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6497
6498         * src/hc08/gen.h,
6499         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
6500         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
6501         thus fixing bug #895406
6502
6503 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
6504
6505         * device/lib/_modsint.c,
6506         * device/lib/_modslong.c: sign follows divisor only
6507         * src/hc08/gen.c (genMultOneByte): if result size is 1,
6508         signs or signedness can be ignored
6509         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
6510         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
6511         added optimization for IFX,
6512         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
6513         arguments;
6514         reenabled optimization for IFX, which was removed on 2004-01-11
6515         * src/SDCCast.h: added return type IFX
6516         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
6517         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
6518         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
6519         SDCC_OLDONEBYTEOPS selects the old behaviour
6520         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
6521         changed again and commented promotion rule
6522         * src/SDCCval.c (valDiv): promotion no longer necessary
6523         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
6524         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
6525         rewritten
6526         * support/regression/tests/onebyte.c: added
6527
6528 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
6529
6530         * gen.c (genInline): reverted to old code for assemnling inline
6531         code because of bug reported James Chadd
6532
6533 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
6534
6535         * ralloc.h: missing declarations from previous patch,
6536         seems that patch for ralloc.h was never applied, fixed
6537
6538 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6539            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6540
6541         * pcode.c,
6542         * pcode.h,
6543         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
6544         indirect addressing. Marked FSR0 as deprecated
6545         * gen.c (pointerCode): commented out, not needed now
6546         (pic16_popGet2p): new MOVFF helper function
6547         (genGenPointerGet),
6548         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
6549         (shiftRLong): removed duplicate debugging info
6550
6551 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6552
6553         * src/ds390/gen.c (genNearPointerGet),
6554         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
6555         optimization with bits, but not bitfields.
6556         * src/ds390/ralloc.c (packRegisters),
6557         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
6558
6559 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
6560
6561         * src/SDCCcse.c (algebraicOpts): copy operands before modification
6562
6563 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6564
6565         * src/SDCCsymt.h,
6566         * src/SDCCicode.c (operandFromSymbol),
6567         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
6568         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
6569         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
6570         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
6571         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
6572         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
6573         bug #892038
6574         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
6575         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
6576         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
6577         * src/SDCCsymt.c (newSymbol),
6578         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6579         enumerator_list),
6580         * src/SDCCval.h,
6581         * src/SDCCval.c (newiList): fixed bug #885705
6582
6583 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6584
6585         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
6586         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
6587
6588 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6589
6590         * device/include/c8051f120.h,
6591         * device/include/c8051f300.h,
6592         * device/include/c8051f310.h: added/updated header files for Silicon
6593         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6594         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
6595         in new section Submitting patches
6596
6597 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6598
6599         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
6600         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6601         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6602         genGenPointerSet),
6603         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
6604         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6605         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6606         genGenPointerSet),
6607         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
6608         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6609         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6610         genGenPointerSet),
6611         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
6612         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6613         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6614         genGenPointerSet): fixed bug #892400
6615         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
6616         to eliminate build warnings.
6617         * src/SDCCast.c (processParms),
6618         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
6619         fixed bug 751859
6620         * support/valdiag/valdiag.py: added GCC to the list of defines active
6621         when compiling with gcc
6622
6623 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6624
6625         * support/Util/SDCCerr.h,
6626         * support/Util/SDCCerr.c,
6627         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
6628         with an incomplete type (fixed bug #883734)
6629         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
6630
6631 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6632
6633         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
6634
6635 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6636
6637         * src/SDCCast.c (decorateType),
6638         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
6639         function pointer implementation
6640         * support/regression/tests/funptrs.c: added tests to verify both forms
6641         of function pointers work correctly. Added tests to verify parameters
6642         are passed in the correct order.
6643
6644 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
6645
6646         * device.c (regCompare): registers are sorted by ascending
6647         address and increasing size,
6648         * main.c (_pic16_finaliseOptions): removed the declaration
6649         of compiler macro MCU. Now a macro of the format pic18fxxxx
6650         will be defined from the command line
6651
6652 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6653             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6654
6655         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
6656         PCOP_RLCF was overwritten!
6657         * gen.c (genSkip): commented out calls to pic16_emitcode,
6658         * (genCmpEQ): fixed "long" compares, only high word did get compared,
6659         * (genlshTwo),
6660         * (genRRC): added debugging info,
6661         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
6662         overwritten while shifting,
6663         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
6664         overwritten while shifting,
6665         * (AccLsh),
6666         * (AccRsh),
6667         * (shiftLLeftOrResult),
6668         * (shiftRLeftOrResult),
6669         * (shiftRLong),
6670         * (shiftLLong): Implemented with pic16_emitpcode
6671         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
6672         * (genLeftShift): Fixed bug, operand for shift by variable always
6673         was "and"ed with 0x0f,
6674         * (genLeftShiftLiteral),
6675         * (genrshTwo),
6676         * (genRightShiftLiteral): added debugging info,
6677         * (genrshFour): added comment,
6678         * (genRightShift): determined signedness from operand "left"
6679         instead of "result"
6680
6681 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6682
6683         * src/SDCCicode.c (geniCodeParms),
6684         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
6685         function pointers, fixed function pointer bugs #861242 and #861896
6686
6687 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6688
6689         * device/include/c8051f000.h,
6690         * device/include/c8051f120.h,
6691         * device/include/c8051f300.h: added header files for Silicon
6692         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6693
6694 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
6695
6696         * src/SDCCast.c (processParams): added new type flow and restructured
6697         (gatherAutoInit): added new type flow
6698         (addCast): cosmetic changes
6699         (getLeftResultType): added new type flow for array indices, patch
6700         provided by Stas, see FR #877103
6701         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
6702         array index patch by Stas
6703         * src/SDCCast.h: added prototype getResultTypeFromType()
6704         * src/SDCCval.h,
6705         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
6706         * src/pic/glue.c (pic14emitStaticSeg),
6707         * src/pic16/glue.c (pic16emitStaticSeg),
6708         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
6709         for initialization of symbols
6710         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
6711         * support/Util/SDCCerr.h:
6712         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
6713         * .version: bumped version number to 2.3.8
6714         * device/include/Makefile.in (install),
6715         * doc/Makefile (install): changed to 'rm `find ...`' construct to
6716         avoid warnings
6717
6718 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
6719
6720         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
6721         Slade Rich fixed an optimization bug
6722         * src/pic/pcodepeep.c,
6723         * src/pic/pcoderegs.c
6724         * doc/Makefile (install): added test for directory
6725
6726 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6727
6728         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
6729         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
6730         * src/pic/ralloc.c (getRegPtr, getRegGpr),
6731         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
6732         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
6733         * as/mcs51/asexpr.c (term),
6734         * as/hc08/asexpr.c (term): fixed bug #887146
6735
6736 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6737
6738         * src/z80/gen.c (genMult): handle single byte result product
6739         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
6740         DUMMY_READ_VOLATILE (fixed bug #886367)
6741
6742 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6743
6744         * support/regression/tests/libmullong.c: fixed logic, on little endian
6745         hosts we ended without a mullong_wrapper()
6746
6747 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6748
6749         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
6750         virus/worm forged address usage.
6751
6752 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6753
6754         Fixed promotion, it should be done on AST level:
6755         * src/SDCCast.c (addCast): added promotion to int
6756         (decorateType): updated call to upCast()
6757         * src/SDCCicode.c (geniCodeLeftShift): removed call to
6758         usualUnaryConversions()
6759
6760 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
6761
6762         * support/regression/tests/literalop.c (mulWrapper): Added a
6763         wrapper to remove integer overflow warnings.
6764
6765         * support/regression/tests/float_trans.c: Made work on host.
6766
6767         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
6768         location of sz80.
6769
6770         * support/regression/generate-cases.py (main): Changed from inline
6771         to a main method.
6772
6773         * doc/Makefile (install): Changed to depth first to get rid of
6774         missing directory install warning.
6775
6776         * as/Makefile (install-doc): Made work on Mac.
6777
6778 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
6779
6780         * src/SDCCast.c: added an additional type flow in decorateType() of
6781         opposite direction, see feature request #860006; it's enabled at runtime
6782         by setting the environment variable SDCC_NEWTYPEFLOW
6783         * src/SDCCast.h: changed prototype of decorateType()
6784         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
6785         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
6786         'char' to 'int' can be omitted, if both operands are 'unsigned char';
6787         see feature request #877103
6788         * src/SDCCval.c: updated call of decorateType()
6789         (valBitwise): fixed bug #882876
6790         (valMinus): added promotion
6791         (valLogicAndOr): result is unsigned
6792         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
6793         * src/SDCCsymt.c (computeType),
6794         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
6795         must not cause an unsigned operation
6796         * src/pic/glue (pic14emitRegularMap),
6797         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
6798
6799 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
6800
6801         * src/pic/pcode.c (PCodeID): commented out left over debug code
6802
6803 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6804
6805         * support/valdiag/tests/overflow.c: added shift tests
6806         * src/pic/device.c,
6807         * src/pic/gen.c,
6808         * src/pic/gen.h,
6809         * src/pic/glue.c,
6810         * src/pic/main.c,
6811         * src/pic/pcode.c,
6812         * src/pic/pcode.h,
6813         * src/pic/pcodepeep.c,
6814         * src/pic/pcoderegs.c,
6815         * src/pic/ralloc.c,
6816         * src/pic/ralloc.h: applied patch from Slade Rich;
6817         added support for multiple code pages and multiple RAM banks on the
6818         PIC 14 port. The ASM files now no longer simply assume all the
6819         code / RAM are in the same page / bank. This means the linker can
6820         safely allocate code/RAM of separate ASM files to different pages/banks.
6821         * doc/sdccman.lyx: added Slade's tips
6822         * src/mcs51/peeph.def: fixed bug #880768
6823
6824 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6825
6826         * src/hc08/ralloc.c (rematStr): fixed bug #879282
6827         * src/SDCCast.c (decorateType): fixed bug #880197
6828
6829 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
6830
6831         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
6832         getopt.h.
6833
6834         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
6835         strtof is not part of C89 and isn't included with Mac OS X.
6836
6837 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6838
6839         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
6840         shiftL2Left2Result): fixed bug #879326
6841         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
6842         (genMultOneByte): fixed bug in signed vs unsigned multiplication
6843         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
6844         address fetch for clr instruction
6845         * device/lib/hc08/_mulint.c: created optimized assembly version
6846         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
6847
6848 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
6849
6850         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
6851         proposed in FR #877103
6852
6853 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
6854
6855         * src/SDCCval.c (cheapestVal): added missing checks
6856         * src/SDCCicode.c (usualBinaryConversions): fixed condition
6857         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
6858
6859 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
6860
6861         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
6862         equal operands
6863
6864 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
6865
6866         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
6867         loaded with the linker search paths (-L arguments) and the libraries
6868         to be linked with the current source (-l arguments). Changes
6869         currently will affect only the pic16 port.
6870         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
6871         include path the port specific paths and port specific libraries,
6872         * gplink command now contains the $3 argument,
6873         * src/pic16/device.h,
6874         * src/pic16/device.c,: structure PIC_device is made public and
6875         renamed to PIC16_device, the same for variable Pics which is renamed
6876         to Pics16. Updated all references to them.
6877         * src/pic16/glue.c (pic16glue): corrected bug with code
6878         initialization which bypassed the variable initializations block.
6879
6880         * device/lib/pic16/Makefile.rules: removed --penable-stack from
6881         COMPILE_FLAGS and added the --nostdinc option
6882
6883 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6884
6885         * device/include/mc68hc908jb8.h: Register defs for another member
6886         of the hc08 family. Contributed by Bjorn Bringert - thanks!
6887
6888 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
6889
6890         Documenting changes from previous commits.
6891         * configure.in (version 1.56),
6892         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
6893         when generating output files to configure the pic16 library,
6894         but now I've commented it out, since gputils aren't installed in the
6895         SF compile farm, so library won't compile
6896
6897         * device/lib/Makefile.in (version 1.56): initially I've added in
6898         target 'all' the prerequestive 'model-pic16' so it compiled the
6899         pic16 library, but now I've commented it out for the same reasons
6900         above,
6901         * added targets 'model-pic16' and 'objects-pic16' to compile the
6902         library
6903         * added target 'port-specific-objects-pic16' to handle the
6904         generated libraries and copy them into the build/ directory
6905         * added target 'clean-intermediate-pic16' to clean intermediate
6906         files into pic16 directory
6907         * in target 'installdirs' added line to create directory pic16 in
6908         the installation path
6909
6910         * device/include/Makefile.in (version 1.11): in target 'install'
6911         added lines to copy all header files to installation path,
6912         * in target 'installdirs' added line create directory for pic16
6913         headers in the installation path
6914
6915 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
6916
6917         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
6918          a function call
6919
6920 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
6921
6922         * configure,
6923         * device/lib/configure.in,
6924         * device/lib/configure: fixed for autoconf 2.57
6925
6926 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6927
6928         * src/z80/main.c (_parseOptions): fixed the portmode= command line
6929         option so that it actually works. Made it specific to the z80, since
6930         the gbz80 doesn't have these kinds of I/O ports.
6931
6932 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6933
6934         * device/include/z180.h,
6935         * device/lib/_memcpy.c,
6936         * device/lib/_memmove.c,
6937         * device/lib/_mulint.c,
6938         * device/lib/ser_ir.c,
6939         * device/lib/ser_ir_cts_rts.c,
6940         * device/lib/_strcmp.c,
6941         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
6942         * src/z80/main.c (_process_pragma): add support for pragmas bank and
6943         portmode; added deprecation warning for bank= and protmode= forms.
6944         Also, guard against buffer overflow.
6945         * src/z80/gen.c (aopGet): generate better code for sfr banked read
6946
6947 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6948
6949         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
6950         changed interrupt vector table generation to only emit declared vectors.
6951         * device/include/Makefile.in: added missing backslash
6952         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
6953
6954 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6955
6956         Mainly changes to support compilation of the device libraries
6957         * src/pic16/device.c: stack is allocated via symbol and not
6958         via literal number. The symbol is placed in the corresponding
6959         position of the data ram
6960         * (pic16_dump_section): relocatable and absolute uninitialized
6961         data are now emitted in sorted order to reduce section naming,
6962         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
6963         weren't marked as being in the access bank,
6964
6965 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
6966
6967         Added portion of GNU PIC Library under the directory
6968         device/include/pic16 and device/lib/pic16. These files
6969         contain the declarations of SFRs for the PIC18Fxx2 devices.
6970         The directory is initialized via configure from toplevel.
6971
6972 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
6973
6974         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
6975         the spilllocations to be compared correctly
6976
6977 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6978
6979         * src/SDCCast.c (decorateType): fixed bug introduced today
6980
6981 2004-01-12  Borut Razem <borut.razem AT siol.net>
6982
6983         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
6984         doc/sdccman.lyx: upper case pragmas are deprecated
6985
6986 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
6987
6988         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
6989         in simpler and even better code
6990
6991 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
6992
6993         * src/SDCCicode.c (operandOperation): fixed bug #874819
6994         * src/SDCCast.c (decorateType): fixed
6995         char foo (unsigned long ul) { return ul > 0; }
6996
6997 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6998
6999         * doc/sdccman.lyx: Moved and added some sections, small changes
7000         all over. Telling LaTeX to be less strict with word spacing
7001         to better keep the right margin. Changed some notes about
7002         maintainance of the ports in section 3.2.1 - is it OK like this?
7003
7004 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7005
7006         SDCC source changes:
7007         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
7008         convilong): modified to inform the pic16 port that builtin functions
7009         are external
7010
7011         PIC16 PORT specific changes:
7012         * src/pic16/device.c pic16_dump_equates() added,
7013         processor registers declared internally by the port are emitted in
7014         the translation as equates,
7015         * src/pic16/gen.c: inline code is passed unprocessed to the
7016         translation,
7017         * (pic16_popGetLit2): fnuction modified to take second operand as
7018         pCodeOp pointer and not as literal,
7019         * (popRegFromIdx): prefixed with pic16_,
7020         * (pic16_popCombine2): modified to receive already allocated pCode
7021         operands,
7022         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
7023         * (genFunction): initializes local stack frame and pushes on stack
7024         all the registers used by this function,
7025         * (genEndFunction): restores all registers from stack and restores
7026         stack frame,
7027         * src/pic16/glue.c (pic16emitRegularMap): various changes and
7028         improvements,
7029         * (pic16glue): changed the program startup sequence,
7030         * added new dbName code 'A' for functions placed in absolute section
7031         * src/pic16/main.c: added function attribute _naked,
7032         * added pragma 'code' to place a fnuction at an absolute address,
7033         * added command line arguments --debug-ralloc and --pcode-verbose,
7034         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
7035         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
7036         * (pic16_newpCodeOpLit2): modified to take the second operand as
7037         pCodeOp pointer,
7038         * (pic16_printpBlock): modified to emit each function in a separate
7039         section,
7040         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
7041         UPPER for immediate operands,
7042         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
7043         instruction,
7044         * src/pic16/peeph.def: all peepholes with movff are commented out,
7045         because there is a problem in the pcode peep optimizer,
7046         * src/pic16/ralloc.c: the register allocator can now reuse local
7047         function symbols for another function. This saves register usage.
7048         * src/pic16/ralloc.h: added flag isLocal in structure regs,
7049
7050         Added file src/pic16/NOTES with information about program writing on
7051         the current port version.
7052
7053 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7054
7055         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
7056         and peephole 252 (array access)
7057
7058 2004-01-09  Borut Razem <borut.razem AT siol.net>
7059
7060         * src/SDCCmain.c : fixed #872250: -l command line defined library
7061           files are scanned before standard library files
7062
7063 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7064
7065         * src/SDCCast.c (decorateType): fixed bug #874046
7066
7067 2004-01-09  Borut Razem <borut.razem AT siol.net>
7068
7069         * support/scripts/sdcc.nsi: remove previous installation
7070
7071 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7072
7073         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
7074         bytes for last interrupt vector (mcs51)
7075         * sdcc.spec: fixed typo
7076
7077 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7078
7079         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
7080         gen51Code): more efficient parameter receive for --model-large
7081         ("bug" #845294)
7082
7083 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7084
7085         * src/ds390/main.c,
7086         * src/z80/main.c: added missed needLinkerScript flags (more than
7087         one port structure defined in these file)
7088         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
7089         bug #795325
7090
7091 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
7092
7093         * src/SDCCmain.c: removed various references to DEFAULT_PORT
7094         * src/port.h: added flag needLinkerScript in port->linker
7095         structure to inform whether to create a .lnk file or not,
7096         * src/avr/main.c,
7097         * src/ds390/main.c,
7098         * src/hc08/main.c,
7099         * src/mcs51/main.c,
7100         * src/pic/main.c,
7101         * src/pic16/main.c,
7102         * src/xa51/main.c,
7103         * src/z80/main.c: changed appropriately to configure
7104         needLinkerScript flag
7105         * src/pic/gen.c,
7106         * src/pic16/gen.c (genAddrOf): fixed bug #863624
7107         * src/pic/glue.c: added variable udata_section_name to
7108         override default uninitialized data segment definition for
7109         devices only with SHAREBANK memory (reported from Erik Epetrich)
7110         * (pic14emitOverlay): modified to emit a commented overlay segment
7111         directive when no overlay data exist
7112         * (picglue): modified to emit uninitialized data segment
7113         according to udata_section_name
7114         * src/pic/main.c (_pic14_parseOptions): added command line
7115         options --udata-section-name=[name] to override default
7116         udata definition name
7117         * modified _linkCmd and _asmCmd to include compiler passed
7118         arguments via -W option
7119         * src/pic16/main.c: added $l in _asmCmd, changed extension for
7120         object file from '.rel' to '.o' in port->linker structure,
7121         changed size of fptr from 2 to 3 in port structure
7122
7123 2004-01-07  Borut Razem <borut.razem AT siol.net>
7124
7125         * support/scripts/sdcc.nsi: update PATH
7126         * support/scripts/sdcc.ico: craeted
7127
7128 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
7129
7130         * device/include/Makefile.in: fix install
7131         * doc/Makefile: fix install
7132
7133 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7134
7135         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
7136         in bug #860505
7137         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
7138         how the function variable allocation summary is displayed; also
7139         include information about variables allocated to the overlay
7140         segment
7141
7142 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7143
7144         * as/mcs51/lkmain.c: Help about -Y option
7145         * as/mcs51/lkarea.c: Fixed gcc warnings
7146
7147 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7148
7149         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
7150         fixed warning
7151         * support/valdiag/tests/overflow.c: added
7152         * src/SDCCast.c (decorateType),
7153         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
7154         LEFT_OP (left shift)
7155
7156 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7157
7158         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
7159         (default behaviour).
7160
7161 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7162
7163         A python script to validate compiler diagnostic messages. It can be
7164         used to verify that sdcc complains about bad c source code and
7165         gives a good location of the error.
7166         * support/valdiag/Makefile,
7167         * support/valdiag/valdiag.py,
7168         * support/valdiag/tests/*
7169
7170 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7171
7172         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
7173         * src/SDCCsymt.c (newEnumType),
7174         * src/SDCCsymt.h
7175         * support/Util/SDCCerr.c,
7176         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
7177         enum related bugs.
7178         * support/regression/tests/enum.c: added test for enum values that
7179         require at least 2 bytes of storage.
7180
7181 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7182
7183         * src/common.h: added ifndef/define/endif macros
7184         around the header file.
7185         Bug reported from Jesus Calvino-Fraga
7186
7187 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7188
7189         * sdcc.spec: updated
7190         * device/include/Makefile.in: don't install CVS directories
7191         * device/lib/Makefile.in: added removal of CVS directories after install
7192         * doc/Makefile: fixed install, added local_icons
7193         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
7194         * src/mcs51/gen.c (genRightShift): fixed bug #870788
7195         * src/ds390/gen.c (genRightShift): fixed bug #870788
7196         * src/SDCCast.c (decorateType): fixed bug #870781
7197
7198 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7199
7200         PIC16 port related changes:
7201         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
7202         added variable stackPos,
7203
7204         * gen.c: genCall, assignResultValue: added support for
7205         pushing/retrieving function parameters to/from stack,
7206         genFunction,genEndFunction: setup stack frame for the
7207         generated function,
7208         genAddrOf: will be changed according to bug 863624
7209
7210         * added files genutils.c and genutils.h which contain gen*
7211         debugged and optimised functions extracted from gen.c
7212
7213         * glue.c: added variable 'externs' which holds extern symbols,
7214         pic16emitRegularMap: is modified to properly handle relocatable
7215          symbols under the new scheme,
7216         pic16createInterruptVect: is modified
7217         pic16printPublics: is modified to emit 'global' assembler directives,
7218         added pic16_printExterns to print extern symbols,
7219         pic16glue: initializes stack/frame pointer in the beginning of
7220         the assembly output. Temporary hack, will be corrected later,
7221         because gplink yet does not support stack and SDCC does not
7222         yet support a type of crt0.o object to create the final binary.
7223
7224         * Removed many lines that contain 8051 legacy code.
7225         * The code is finally placed under a 'code' directive.
7226         * Added port specific options.
7227
7228         * _process_pragma: simplified since now we do not need *special*
7229         include file to define SFR registers. But a separate header
7230         will be needed. This will be developed later.
7231         * _pic16_parseOptions: added, parses port specific options:
7232         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
7233         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
7234         --preplace-udata-with=
7235
7236         * _pic16_setDefaultOptions: modified to initialize section names,
7237         but hack is temporarly out of order since it needs improvement.
7238         * _pic16_genAssemblerPreamble: configuration words are emitted by
7239         their address instead of their name. This part is incomplete and
7240         supports only the 18Fxx2 devices. Other devices will emit an error
7241         during assembly since they do not contain the same set of config
7242         registers
7243         * _pic16_genIVT: is modified,
7244
7245         * pcode.c: added definitions for some hardware registers that are needed
7246         for stack support
7247         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
7248         All PCI entries are updated. Now LFSR is supported.
7249         * Removed pic16_pciTRIS is mentioned by mdubuc in source
7250         * added pic16_newpCodeOpLit2 to support instructions with
7251         two literal arguments
7252         * pic16_pCode2str: corrected code that emits assembler instructions
7253         with two literal operands and those that have an access bit modifier
7254         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
7255         this fixes a bug which caused some labels to be lost, when an
7256         assembler directive was added, i.e. banksel,
7257         * pic16_FixRegisterBanking: improved logic that causes the insertion
7258         of bank switching,
7259         * InlineFunction: functions that are called once, are not any more
7260         inlined. This can be a port option in the future,
7261
7262         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
7263
7264         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
7265         hold the corresponding uninitialized symbols,
7266         * pic16_allocProcessorRegister: registers have explicit marked the
7267         accessBank field,
7268         * pic16_allocInternalRegister: registers are explicit marked as
7269         not used,
7270         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
7271         processing list, so bit registers were lost,
7272         *
7273
7274         * ralloc.h: added field 'accessBank' and original symbol operand
7275         in register definition,
7276         * removed the field isMapped from register definition,
7277
7278         ** Several functions have been removed from various sources:
7279         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
7280         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
7281         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
7282         pic16_assignRelocatableRegisters
7283
7284         ** others have been introduced:
7285         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
7286         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
7287
7288 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
7289
7290         * support/scripts/inc2h.pl: changed definition of BIT_AT
7291         to emit 'sbit at' instead of 'bit at'. This was a request.
7292
7293         PIC16 port related preliminary changes:
7294         * gen.c: prefixed function popRegFromString with
7295         pic16_ and all references to it corrected
7296         * pcode.c: all pic16_pc_* hardware registers prefixed
7297         with underscore (_),
7298         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
7299         * ralloc.c: newReg(): when register is REG_SFR then
7300         set address to rIdx,
7301         pic16_allocProcessorRegister(): marks register wasUsed=0
7302         pic16_writeUsedRegs(): added a call to assign processor
7303         registers via pic16_assignFixedRegisters
7304
7305 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7306
7307         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
7308         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
7309         variables in unused register banks.  Also the SSEG is placed
7310         wherever there is enough space for it, and IDATA can be anywhere
7311         in internal RAM.  For now compile using -Wl-Y[stack_size].
7312         The mem file is different for this option as well, since it
7313         makes no sense of talking about DSEG lenght.
7314
7315 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
7316
7317         * src/SDCClrange.c: fixed bug 869095 that caused segfault
7318         in certain cases, e.g. when ROM assignment, patch provided
7319         from Albert den Haan.
7320
7321 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
7322
7323         Many signedness and type propagation fixes:
7324         * src/SDCCicode.c: made geniCodeCast() static
7325         replaced SPEC_ by IS_ (cosmetic)
7326         (operandOperation): fixed div and mod operation
7327         (usualBinaryConversions): added support for promotion of char
7328         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
7329         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
7330         (geniCodeAdd): an array index will stay unsigned, even if promoted
7331         from char to int
7332         (geniCodeArray): ditto
7333         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
7334         * src/SDCCsymt.c (computeType): added more support for char;
7335         promotion of char is selectable by promoteCharToInt, fixed signedness
7336         for all cases
7337         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7338         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7339         * src/SDCCval (val*): replaced signedness calculation by
7340         computeType()
7341         rearranged if-branches (cosmetic)
7342         (valShift): added warning W_SHIFT_CHANGED
7343         (valCompare): fixed problem with different types
7344         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
7345         * support/regression/tests/literalop.c: added many cases
7346         * support/regression/tests/ast_constant_folding.c: changed finally to
7347         'unsigned int'
7348         * .version: new year, new version: 2.3.7
7349         * src/SDCCmain.c (main): applied patch #866468
7350         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
7351         provided by Scott Bronson
7352         * doc/sdccman.lyx: updated documentation for sdcdb
7353         updated and added chapter tips
7354
7355 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7356
7357         * src/SDCCsymt.h: missing from yesterday's commits
7358
7359 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7360
7361         * src/SDCC.y (struct_or_union_specifier),
7362         * support/Util/SDCCerr.c,
7363         * support/Util/SDCCerr.h: verify that struct & union tags are used
7364         as declared.
7365
7366 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7367
7368         * src/SDCCglobl.h: missing from yesterday's commits
7369
7370 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7371
7372         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
7373         sft_attributes, struct_declaration, parameter_declaration,
7374         type_name, start_block, declaration_list),
7375         * src/SDCC.lex (check_type): support redefinition of typedef names
7376
7377 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7378
7379         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
7380         aligned xdata arrays. Erik helped me with the if clause.
7381
7382 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7383
7384         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
7385         warning
7386
7387 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7388
7389         * src/SDCCast.h,
7390         * src/SDCCast.c (newAst_),
7391         * src/SDCCicode.h,
7392         * src/SDCCicode.c (ast2iCode, newiCode),
7393         * src/SDCCglobl.h,
7394         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
7395         expr, statement, expression_statement, selection_statement,
7396         iteration_statement, expr_opt, jump_statement): foundation for tracking
7397         sequence points
7398         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
7399         point code too)
7400
7401 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7402
7403         * support/Util/SDCCerr.c,
7404         * src/SDCCast.h,
7405         * src/SDCCast.c (createCase, createDefault, decorateType),
7406         * src/SDCClabel.c (labelUnreach),
7407         * src/SDCC.y (labeled_statement, jump_statement): More improvements
7408         to error messages.
7409         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
7410         (with thanks to Stas Sergeev)
7411         * device/include/time.h,
7412         * device/lib/time.c (CheckTime): suppress unreachable code warning
7413
7414 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7415
7416         * src/SDCCast.c (createIvalCharPtr),
7417         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
7418         bug #753752)
7419         * support/regression/tests/nullstring.c: tests for these two bugs
7420
7421 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7422
7423         * support/Util/SDCCerr.h,
7424         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
7425         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
7426         about storage class and 'at' used inside struct or union
7427         * src/SDCCBBlock.c (iCodeFromeBBlock),
7428         * src/SDCCcse.c (ifxOptimize),
7429         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
7430         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
7431         printIval, emitStaticSeg, emitOverlay),
7432         * src/SDCClabel.c (deleteIfx),
7433         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
7434         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
7435         gatherAutoInit, processParms),
7436         * support/Util/SDCCerr.h,
7437         * support/Util/SDCCerr.c (werrorfl): Support for better error location
7438         reporting for post-parse errors.
7439
7440 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7441
7442         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
7443         implicit casts via union; they don't work on big endian systems
7444         (possible fix for bug #861138)
7445
7446 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7447
7448         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
7449         * src/mcs51/main.c: fixed the fix for bug #737001
7450
7451 2003-12-15  Borut Razem <borut.razem AT siol.net>
7452
7453         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
7454
7455 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7456
7457         * support/makebin/makebin.c: put output in binary mode
7458
7459 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7460
7461         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
7462         xdata and data memory on startup. Set the environment variable
7463         SDCC_NOGENRAMCLEAR to disable this.
7464         * src/mcs51/peephole.def,
7465         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
7466         (allows non-interrupt and interrupt code to safely compete for a resource
7467         without the non-interrupt code having to disable interrupts)
7468
7469 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7470
7471         * src/SDCCicode.c (geniCodeAdd),
7472         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
7473         with valFromType if type might be a pointer and host is big endian).
7474         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
7475         types, not just integer types.
7476         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
7477         multiply defined with mismatching "at" address.
7478
7479 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7480
7481         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
7482         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
7483         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
7484         with embedded nulls (fixed bug #753752)
7485
7486 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7487
7488         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
7489         Apparently this did not see much testing (endless loop)
7490
7491 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7492
7493         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
7494
7495 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7496
7497         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
7498         gracefully handle NULL memmap pointers
7499
7500 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7501
7502         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
7503         instead of deleting the iCode when an operand is volatile
7504         * src/z80/gen.c (genDummyRead),
7505         * src/mcs51/gen.c (genDummyRead),
7506         * src/ds390/gen.c (genDummyRead),
7507         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
7508         not just IC_RIGHT
7509         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
7510         * src/SDCC.y: fixed bug #850420
7511
7512 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7513
7514         Applied z80 i/o port patch from Peter Townson and fixed some operators
7515         to better handle operands in A register.
7516         * device/include/z180.h
7517         * src/SDCC.y
7518         * src/SDCCglue.c
7519         * src/z80/gen.c
7520         * src/z80/gen.h
7521         * src/z80/main.c
7522         * src/z80/peeph-z80.def
7523         * src/z80/peeph.def
7524         * src/z80/z80.h
7525
7526 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7527
7528         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
7529
7530 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7531
7532         * device/lib/hc08/_mullong.c: Removed extra #endif
7533
7534 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7535
7536         * sim/ucsim/hc08.src/inst.cc,
7537         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
7538         carries from x to h
7539         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
7540         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
7541         * device/include/stdarg.h: fixed varargs for hc08
7542         * device/lib/Makefile.in,
7543         * device/lib/hc08/Makefile,
7544         * device/lib/hc08/_mulint.c,
7545         * device/lib/hc08/_mullong.c: fixed some endian problems
7546
7547 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7548
7549         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
7550         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
7551         * device/lib/_gptrget.c,
7552         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
7553
7554 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7555
7556         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
7557         * src/SDCCast.c (astErrors): fixed bug #846007
7558         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
7559
7560 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7561
7562         * src/SDCCast.c (decorateType): disabled a transformation I added in
7563         revision 1.188 (access to fields of a structure at an absolute address);
7564         it breaks with bitfields, extern declarations, and gcse analysis.
7565         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
7566         could be assigned through a pointer, so don't complain.
7567         * src/SDCCast.c (astErrors),
7568         * src/SDCCast.h,
7569         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
7570
7571 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
7572
7573         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
7574         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
7575         output of __config directives, since gpasm now supports them
7576         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
7577         pre-processor macro, i.e. -DMCU=p18f452
7578         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
7579         and modified to handle 'cast' icode similarly to '=' icode
7580         * src/pic16/device.h (typedef struct PIC_device): added field
7581         'extMIface' to indicate that chip has external memory interface
7582         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
7583         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
7584         18F8720
7585
7586 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7587
7588         * src/SDCC.y (pointer): fixed bug #846006
7589         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
7590         * src/SDCCast.c (decorateType): fixed bug #846009
7591         * src/ds390/peeph.def,
7592         * src/ds390/gen.c (genAnd, genOr),
7593         * src/mcs51/peeph.def,
7594         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
7595
7596 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7597
7598         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
7599         * src/SDCCdflow.c
7600         * src/SDCCcse.c
7601         * src/SDCCcse.h
7602         * src/SDCCBBlock.h
7603         * src/SDCCBBlock.c
7604
7605 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
7606
7607         fixed bug #845089
7608         * src/SDCCbitv.h,
7609         * src/SDCCbitv.c: added function to free a bitvector
7610         * src/SDCClrange.h,
7611         * src/SDCClrange.c: added function to recompute the liveranges
7612         * src/avr/ralloc.c,
7613         * src/ds390/ralloc.c,
7614         * src/hc08/ralloc.c,
7615         * src/mcs51/ralloc.c,
7616         * src/pic/ralloc.c,
7617         * src/pic16/ralloc.c,
7618         * src/xa51/ralloc.c,
7619         * src/z80/ralloc.c: recompute the liveranges after register packing
7620
7621 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
7622
7623         * src/SDCCloop.c (newInduction): fixed bug #845630
7624
7625 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7626
7627         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
7628         inadvertantly left behind from my 2003-11-12 change
7629
7630 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7631
7632         Updated headers I neglected to commit yesterday.
7633         * src/SDCClrange.h,
7634         * src/SDCCicode.h
7635
7636 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7637
7638         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
7639         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
7640         * src/SDCCopt.c (eBBlockFromiCode),
7641         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
7642         the creation of the key hash table from the sequencing so it can be used
7643         earlier (for some GCSE bug fixes still pending)
7644
7645 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7646
7647         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
7648         * support/regression/tests/addsub.c: testing genPlus shortcut
7649
7650 2003-11-15  Borut Razem <borut.razem AT siol.net>
7651
7652         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
7653
7654 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7655
7656         * src/SDCCcse.c (cseBBlock): fixed bug #527779
7657         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
7658         ordering is immaterial.
7659         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
7660
7661 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7662
7663         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
7664         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
7665         (SIGSEV) of bug #840381
7666         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
7667         unlink new file before rename if new and old filenames are the same)
7668
7669 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7670
7671         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
7672         uninitialized variables) for the mcs51. Set environment variable
7673         SDCC_GENRAMCLEAR to test.
7674         xdata initialization slightly shorter
7675
7676 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7677
7678         * src/SDCCsymt.h,
7679         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
7680         #838241 & 780691 (basicly the same bug)
7681         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
7682         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
7683
7684 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
7685
7686         * src/SDCCmain.c (linkEdit): "fix" #834252
7687
7688 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7689
7690         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
7691         * src/SDCCast.h,
7692         * src/SDCC.y: fixed bug #819403
7693
7694 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7695
7696         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
7697         the reentrant attribute.
7698         * src/hc08/gen.c (genPackBits): added missing stack readjustment
7699         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
7700         simulation
7701         * src/SDCCast.c (decorateType): fixed bug with storage class not being
7702         updated during pointer dereference; f.e. ~(((char *)1)*) was being
7703         erroneously reduced to a literal.
7704         * src/hc08/ralloc.c (packRegisters, rematStr),
7705         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
7706         some cases
7707
7708 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7709
7710         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
7711         * doc/sdccman.lyx: changed from 'article' to 'book'
7712         * doc/Makefile: readded test_suite_spec and cdbfileformat
7713
7714 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
7715
7716         * device/include/stdlib.h: include malloc.h to comply with ANSI
7717         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
7718
7719 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7720
7721         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
7722         * doc/clean.mk: also remove *.out files
7723         * doc/sdccman.lyx: some additions, larger top/bottom margins
7724
7725 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7726
7727         * src/SDCC.y: fixed bug #837365
7728         * support/regression/tests/bitopcse.c
7729         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
7730         a symbol (might be valop instead)
7731         * device/lib/Makefile.in: added errno.c to HC08SOURCES
7732         * device/lib/clean.mk: added hc08 to the cleaning list
7733
7734 2003-11-04  Borut Razem <borut.razem AT siol.net>
7735
7736         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
7737           made 2003-11-04
7738         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7739           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
7740           malloc is declared in standard stdlib.h
7741
7742 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7743
7744         * device/lib/hc08/Makefile: need to clean .rel not .o files
7745         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
7746
7747 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7748
7749         * src/port.h,
7750         * src/hc08/main.c,
7751         * src/mcs51/main.c,
7752         * src/ds390/main.c,
7753         * src/z80/main.c,
7754         * src/avr/main.c,
7755         * src/pic/main.c,
7756         * src/pic16/main.c,
7757         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
7758         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
7759         tests (which uses the port's oclsExpense function)
7760         * src/SDCC.y,
7761         * src/SDCCast.c,
7762         * src/SDCCicode.c,
7763         * src/hc08/gen.c,
7764         * src/ds390/gen.c,
7765         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
7766
7767 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7768
7769         * src/SDCCcse.c (ifxOptimize),
7770         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
7771         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
7772         deleting the IFX iCode.
7773         * src/hc08/ralloc.c: reduced unneeded slocs
7774         * src/hc08/gen.c: fixed bug in asmopToBoolean
7775
7776 2003-11-04  Borut Razem <borut.razem AT siol.net>
7777
7778         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
7779           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7780           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
7781           transferred to configure
7782
7783 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
7784
7785         Use headers defined in the C[++] standards:
7786         * sim/ucsim/gui.src/serio.src/fileio.cc
7787         * sim/ucsim/gui.src/serio.src/frontend.cc
7788         * sim/ucsim/gui.src/serio.src/main.cc
7789         * sim/ucsim/gui.src/serio.src/posix_signal.cc
7790         * support/Util/NewAlloc.c
7791         * as/hc08/lklibr.c
7792         * as/mcs51/lklibr.c
7793         * as/z80/aslist.c
7794         * as/z80/assym.c
7795
7796 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7797
7798         * Added MSVC projects for hc08 assembler and linker:
7799         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
7800         /as/hc08/link_hc08.dsp
7801
7802 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
7803
7804         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
7805
7806 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
7807
7808         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
7809
7810 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7811
7812         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
7813
7814 2003-10-31  Borut Razem <borut.razem AT siol.net>
7815
7816         * support/cpp2/cpplib.h,
7817           support/cpp2/cpplib.c,
7818           support/cpp2/cpplex.c,
7819           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
7820           to switch _asm block preprocessing on / off. Default is
7821           #pragma preproc_asm +
7822
7823 2003-10-31  Borut Razem <borut.razem AT siol.net>
7824
7825         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
7826           when outputting comment blocks (when executed with -C option) and
7827           _asm (SDCPP specific) blocks
7828
7829 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7830
7831         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
7832
7833 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
7834
7835         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
7836
7837 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
7838
7839         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
7840         * src/SDCCast.c (decorateType): fixed bug #832664
7841
7842 2003-10-31  Borut Razem <borut.razem AT siol.net>
7843
7844         * support\cpp2\cpplex.c: fixed for SDCPP:
7845           comments(when executed with -C option) and _asm blocks
7846           were included even if they where in skipped #if block.
7847           Applied solution from GCC cpp 3.3.2
7848
7849 2003-10-31  Borut Razem <borut.razem AT siol.net>
7850
7851         * src/SDCC.lex: sdcc now understands both formats:
7852           '# <line_number> <file_name>' and
7853           '#line <line_number> <file_name>'
7854         * support/cpp2/cppmain.c: sdcpp now generates the standard
7855           '# <line_number> <file_name>' instead of former
7856           '#line <line_number> <file_name>'
7857
7858 2003-10-30  Borut Razem <borut.razem AT siol.net>
7859
7860         * support/cpp2/cpphash.h,
7861         * support/cpp2/cpplib.h
7862         * support/cpp2/cpplex.c,
7863         * support/cpp2/cppmain.c,
7864         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
7865
7866 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7867
7868         Fixed a number of problems revealed by bug #827883.
7869         * src/SDCCloop.c (loopInvariants): Spill location of the
7870         result operand should be recomputed if extracted from
7871         a loop. Also, don't extract assignments of an iTemp
7872         from a literal.
7873         * src/SDCCast.c (isConformingBody): loop reversal should
7874         not occur if the control variable is involved with a
7875         relational operator.
7876
7877 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
7878
7879         * .version: bumped to 2.3.6 to reflect the big improvements
7880         made by Erik and Klaus. Thanks!
7881
7882 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
7883
7884         Replaced the livrange code.
7885         * src/SDCClrange.c: added new LR code
7886         * src/SDCCloop.c,
7887         * src/SDCCBBlock.h: removed remainig parts from old LR code
7888         * src/ds390/ralloc.c,
7889         * src/ds390/gen.c: minor fixes to make it work with new code
7890
7891 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7892
7893         * as/hc08/asm.h,
7894         * as/hc08/lkrloc.c,
7895         * src/hc08/gen.c,
7896         * src/hc08/ralloc.c: Fix various warnings related to the hc08
7897         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
7898         (tweaked fix for bug #818696)
7899
7900 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7901
7902         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
7903
7904 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7905
7906         * src/SDCCmain.c,
7907         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
7908         * src/mcs51/gen.c (gencjneshort),
7909         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
7910         more efficient (per Scott Bronson's suggestion)
7911
7912 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7913
7914         Extended the semantics of the critical keyword to include
7915         individual statements. See RFE #827755 and #799831
7916         * src/SDCC.y
7917         * src/SDCCicode.c
7918         * src/SDCCopt.c
7919         * src/SDCCast.c
7920         * support/Util/SDCCerr.c
7921         * support/Util/SDCCerr.h
7922         * src/mcs51/gen.c
7923         * src/ds390/gen.c
7924         * src/hc08/gen.c
7925
7926 2003-10-19  Borut Razem <borut.razem AT siol.net>
7927
7928         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
7929
7930 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7931
7932         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
7933         Fixed bug #818696
7934         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
7935         and predecrement operand is displayed
7936
7937 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7938
7939         * src/SDCCval.c (valMinus): fixed bug #826041
7940
7941 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7942
7943         Some hc08 related updates that I missed earlier
7944         * sim/ucsim/stypes.h
7945         * support/regression/ports/hc08/spec.mk
7946
7947 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7948
7949         New target "hc08" for the Motorola 68hc08 family of micros
7950
7951         * configure
7952         * configure.in
7953         * Makefile
7954         * src/hc08/*
7955         * src/SDCCmain.c
7956         * src/port.h
7957         * sim/ucsim/hc08.src/*
7958         * sim/ucsim/configure.in
7959         * src/ucsim/configure
7960         * sim/ucsim/packages_in.mk
7961         * as/hc08/*
7962         * as/Makefile
7963         * device/include/mc68hc908qy.h
7964         * device/lib/hc08/*
7965         * device/lib/Makefile.in
7966         * support/regression/ports/hc08/*
7967         * support/regression/Makefile
7968
7969 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7970
7971         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
7972         regression test
7973         * src/ds390/gen.c (genCast): fixed bug #821957
7974
7975 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
7976
7977         * device/lib/logf.c: "fixed" overlay bug
7978         * support/regression/ports/host/spec.mk: added m library
7979         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
7980         * support/regression/tests/float_trans: added (for Eric)
7981
7982 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
7983
7984         * src/mcs51/gen.c (genCpl): fixed bug
7985         http://sf.net/mailarchive/message.php?msg_id=6263915
7986
7987 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
7988
7989         * src/SDCCast.c (decorateType): added extended constant folding
7990         * src/SDCCsymt.c (computeType): cleanup
7991         * src/SDCCval.c (valShift): minor optimization
7992         * support/regression/tests/ast_constant_folding.c: added
7993
7994 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7995
7996         * src/SDCCmain.c: removed some unintended changes
7997
7998 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7999
8000         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
8001         * src/z80/gen.c: fixed part of bug #817589
8002         * src/SDCCsymt.c (checkFunction): fixed bug #817895
8003
8004 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
8005
8006         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
8007         * src/SDCCcflow.c
8008         * src/SDCCcse.c
8009         * src/SDCCdflow.c
8010         * src/SDCClabel.c
8011         * src/SDCClrange.c
8012         * src/SDCCmem.c
8013         * src/SDCCopt.c
8014         * src/SDCCpeeph.c
8015         * src/SDCCset.c
8016         * src/avr/ralloc.c
8017         * src/ds390/ralloc.c
8018         * src/izt/ralloc.c
8019         * src/mcs51/ralloc.c
8020         * src/pic/ralloc.c
8021         * src/pic16/ralloc.c
8022         * src/xa51/ralloc.c
8023         * src/z80/ralloc.c
8024         * src/z80/gen.c: removed unused label "release:"
8025
8026 2003-10-06  Borut Razem <borut.razem AT siol.net>
8027
8028         * src/SDCC.lex: removed definition of unused variables
8029           save_optimize and save_options
8030
8031 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
8032
8033         * clean.mk: removed '=' in "-maxdepth=1"
8034         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
8035         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
8036
8037 2003-10-06  Borut Razem <borut.razem AT siol.net>
8038
8039         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
8040           my_unput() replaced by unput()
8041
8042 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
8043
8044         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
8045         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
8046         type-punned pointer will break strict-aliasing rules"
8047         Old LR behaviour is again default; Klaus' LR can be choosen by
8048         defining the environment variable LRKLAUS
8049         * src/SDCCBBlock.h
8050         * src/SDCCloop.c
8051         * src/SDCClrange.c
8052         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
8053         * clean.mk: fixed removal of files in bin/CVS/
8054         * device/lib/clean.mk: fixed removal of directories small and large
8055         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
8056         * src/SDCCicode.c,
8057         * src/SDCCval.c: removed superflous test for pedantic
8058
8059 2003-10-05  Borut Razem <borut.razem AT siol.net>
8060
8061         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
8062           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
8063           message "unmatched #pragma SAVE and #pragma RESTORE"
8064
8065 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8066
8067         * doc/sdccman.lyx: various additions and updates (interrupts, inline
8068           assembly, critical functions, atomic, nojtbound)
8069
8070 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
8071
8072         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
8073         * src/SDCCBBlock.h
8074         * src/SDCCloop.c
8075         * src/SDCCloop.h
8076         * src/SDCClrange.c
8077
8078 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8079
8080         * src/z80/gen.h,
8081         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8082         * src/mcs51/gen.h
8083         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8084         * src/ds390/gen.h
8085         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8086         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
8087         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
8088
8089 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8090
8091         * src/z80/gen.c (genRet): fixed bug #524753
8092         * src/z80/gen.c (genCast): fixed internal error on cast from
8093         pointer to long
8094         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
8095         fix for bug #477835 to the z80
8096         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
8097         for tracking iCodes in the peephole optimizer for z80
8098
8099 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8100
8101         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
8102         the other part of bug #814548
8103         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
8104
8105 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
8106
8107         * src/SDCCcse.c: fixed part of bug #814548
8108
8109 2003-09-28  Borut Razem <borut.razem AT siol.net>
8110
8111         * src/asm.c: rewrite of printILine() to use temporary file instead
8112           a pipe
8113         * src/xa51/main.c: commented out declaration of int rewinds
8114
8115 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8116
8117         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
8118
8119 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8120
8121         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
8122         * src/asm.c (printILine): Fixed bug #811015
8123
8124 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8125
8126         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
8127         freeing.
8128
8129 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8130
8131         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
8132         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
8133         to correctly handle general case of AOP_PAIRPTR
8134         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
8135
8136 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8137
8138         * src/mcs51/ralloc.c (fillGaps),
8139         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
8140         register positioning bug)
8141
8142 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
8143
8144         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
8145
8146 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8147
8148         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
8149         genCodePointerGet, genGenPointerGet, genFarPointerSet,
8150         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
8151         (ralloc doesn't intentionally do this now, but perhaps later)
8152         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
8153         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
8154         register positioning bugs (Fixed bug #762602 and #795325)
8155         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
8156         (Fixed bug #808779)
8157         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
8158         lines that --i-code-in-asm generates
8159
8160 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8161
8162         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
8163         trying to fclose a FILE* that was already closed.
8164
8165 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8166
8167         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
8168         of const struct should be treated as if const themselves)
8169
8170 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
8171
8172         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
8173
8174 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8175
8176         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
8177         Unix (/n) and DOS (/r/n) line terminations.
8178
8179 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8180
8181         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
8182         bug #613775
8183
8184 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8185
8186         * src/mcs51/gen.c (genFunction, genEndFunction),
8187         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
8188         and restore of EA so that stack offsets to parameters are
8189         correct when using both critical and reentrant/stack-auto.
8190         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
8191         size (can be triggered in error if sloc is shared between
8192         different sized objects)
8193         * device/include/float.h: fixed macros to explicitly use
8194         unsigned long where needed
8195
8196 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
8197
8198         Feature req. 799831: added code to allow nesting of critical functions
8199         * src/mcs51/gen.c (genFunction, genEndFunction)
8200         * src/ds390/gen.c (genFunction, genEndFunction)
8201
8202 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8203
8204         * src/SDCCsymt.c (sclsFromPtr),
8205         * src/SDCCsymt.h,
8206         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
8207         support for standard C idiom of memory mapped variables; for
8208         example, *((xdata int*)0x1234) = 1 is now internally equivalent
8209         to xdata int at 0x1234 tempvar = 1.
8210         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
8211         provided by Akiya ISHIDA
8212
8213 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
8214
8215         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
8216         * src/SDCCval.c (constVal): added reduction from int to char
8217         * src/SDCCval.c (valMult, valDiv): fixed sign handling
8218         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
8219         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
8220         to ignore the sign
8221         * support/regression/tests/shifts.c: fixed
8222
8223 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8224
8225         * src/z80/gen.c (genXor): Fixed bug #805445
8226
8227 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8228
8229         Fixed bug #621531 (const & volatile confusion in the type chain).
8230         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
8231         refer to the const or volatile state of the pointer itself.
8232
8233         * src/SDCCast.c
8234         * src/SDCCglue.c
8235         * src/SDCCicode.c
8236         * src/SDCCsymt.c
8237         * src/SDCCval.c
8238         * src/SDCC.y
8239         * src/SDCCsymt.h
8240         * src/pic/gen.c
8241         * src/pic/ralloc.c
8242         * src/pic16/gen.c
8243         * src/pic16/ralloc.c
8244         * support/regression/tests/const.c
8245
8246 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8247
8248         When checking for duplicated modules, use absolute paths
8249         instead of relative paths.  Files changed:
8250
8251         * as/mcs51/lklib.c
8252         * link/z80/lklib.c
8253
8254 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8255
8256         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
8257
8258 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8259
8260         * device/include/string.h: added size_t typedef, changed
8261         prototypes to use size_t, eliminated separate reentrant and
8262         non-reentrant declarations, added _memmove declaration
8263         * device/lib/_memcpy.c: changed to use size_t instead of int,
8264         changed /4 to >>2 to avoid division library call
8265         * device/lib/_memcmp.c,
8266         * device/lib/_memset.c,
8267         * device/lib/_strncat.c,
8268         * device/lib/_strncpy.c,
8269         * device/lib/_strncmp.c: changed to use size_t instead of int
8270         * device/lib/_memmove.c: new file (fixed bug #772294)
8271         * device/lib/Makefile.in: added _memmove.c
8272         * device/lib/z80/asm_strings.s: fixed bug #772290
8273         * support/regression/tests/bitfields.c: attempt to fix host assertion
8274         failure on amd64-unknown-linux2.2
8275
8276 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8277
8278         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
8279         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
8280         * as/z80/asmain.c (main): fixed bug #801766
8281
8282 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
8283
8284         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
8285         compilers
8286
8287 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8288
8289         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
8290         reported in bug #800609
8291
8292 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
8293
8294         * Top header beautifications in src/pic16 directory:
8295           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
8296           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
8297           pcoderegs.h, ralloc.c, ralloc.h
8298         * main.c: added top header and GPL license notice
8299         * pcode.c: fixed the if-conditional warning
8300
8301 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
8302
8303         * device/lib/_mullong.c: replaced int by short for gcc
8304
8305 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8306
8307         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
8308         and JUMPTABLE iCodes properly now (worked by accident before)
8309         * src/mcs51/gen.c (leftRightUseAcc),
8310         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
8311         iCode properly now. Use getSize instead of nRegs since a & b
8312         aren't part of the nRegs tally.
8313
8314 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
8315
8316         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
8317         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
8318           before instructions that use the _STATUS register
8319
8320 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
8321
8322         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
8323         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
8324         fetching of the pointer
8325         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
8326         copied from genNearPointerSet()
8327         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
8328         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
8329         If they pop r0/r1 they must be called in the opposite order than aopOp().
8330         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
8331         (resp. --stack-auto), prepared for --xstack
8332
8333 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8334
8335         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
8336
8337 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8338
8339         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
8340         these ports have their own __sdcc_external_start()
8341
8342 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
8343
8344         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8345         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
8346         type for bits was changed. It resulted in bit variables becoming
8347         global, which is not permitted in PIC 14 assembly output.
8348
8349 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8350
8351         * doc/sdccman.lyx: various additions and updates. Rearranged sections
8352
8353 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8354
8355         Z80 and MCS51 linkers complaint if a public symbol is defined
8356         in more than one library module:
8357
8358         * as/mcs51/lklib.c
8359         * link/z80/lklib.c
8360         * as/mcs51/Makefile.in
8361
8362 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8363
8364         A few small changes that speed up the peephole optimizer.
8365
8366         * src/SDCCpeeph.c
8367
8368 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8369
8370         Try to make the peephole optimizer smarter by maintaining
8371         an association between the assembly source code and the
8372         iCodes that originated them. Put this information to use
8373         with a new peephole rule condition "notVolatile" so that
8374         the rules can be aggressive yet still safe.
8375
8376         * src/SDCCpeeph.c
8377         * src/SDCCpeeph.h
8378         * src/mcs51/gen.c
8379         * src/mcs51/peeph.def
8380
8381 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8382
8383         Fixed bug #741761
8384
8385         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
8386         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
8387         if the left or right operand symbols have the accuse flag set.
8388
8389 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8390
8391         Changed the type of the result of the ! (NOT) operator to char;
8392         previously it returned the same type as the source. This allows
8393         us to eliminate all the genFloatNot functions (all of its target
8394         implementations were very buggy) since !float can use the same
8395         code as !long now.
8396
8397         * src/SDCCicode.c (ast2iCode): ! returns char
8398         * src/mcs51/gen.c (genNot, genNotFloat),
8399         * src/ds390/gen.c (genNot, genNotFloat),
8400         * src/z80/gen.c (genNot, genNotFloat),
8401         * src/pic/gen.c (genNot, genNotFloat),
8402         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
8403
8404 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
8405
8406         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8407         1. Interrupt would not compile properly. Ensure PCLATH register is saved
8408            during interrupts. Ensure WSAVE is located at a shared bank address.
8409         2. Fixed page selection in some places
8410         3. Fixed BTFSS/C to where necessary use registers directly and not simply
8411            the registers name strings.
8412         4. Fixed "signed / unsigned compare" compiler warnings.
8413         5. The PIC port manages its own allocation of the general purpose
8414            registers, but makes no attempt to reuse them. As a result when
8415            compiling it soon runs out of general purpose registers. Some
8416            additional code was added to the files pcode.c and device.c to walk
8417            through the function call tree and rename the registers so that they
8418            get reused.
8419
8420         * src/pic/device.c
8421         * src/pic/gen.c
8422         * src/pic/glue.c
8423         * src/pic/pcode.c
8424         * src/pic/pcode.h
8425         * src/pic/ralloc.c
8426         * src/pic/ralloc.h
8427         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
8428         genPlus() & genMinus() when the result is the same as left or right
8429
8430 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8431
8432         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
8433
8434 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8435
8436         Made bitfield a distinct type from bit so that bitfields
8437         convert as per ANSI C and bits retain their traditional
8438         boolean style behaviour. Implemented bitfield support in
8439         the z80 port.
8440
8441         * src/SDCCsymt.h,
8442         * src/SDCCsymt.c,
8443         * src/SDCCast.c,
8444         * src/cdbFile.c,
8445         * src/mcs51/gen.c,
8446         * src/ds390/gen.c: bit v bitfield split
8447         * src/z80/gen.c: New support for bitfields
8448         * support/regression/tests/bitfields.c: reenabled z80,
8449         added more tests
8450
8451 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8452
8453         Rules 246.x, 247.x relate to bitfields, the others speed up
8454         access to xdata mapped I/O devices.
8455
8456         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
8457
8458 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8459
8460         Cleaned up genPackBits and genUnpackBits and added two helper
8461         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
8462         for literal assignments in genPackBits (thanks to Frieder for
8463         reminding me).
8464
8465         * src/mcs51/gen.c
8466         * src/ds390/gen.c
8467
8468 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8469
8470         Fixed bug #748310 (pointer to function type mishandled when the
8471         function name is omitted). Also fixed a SIGSEGV when a function
8472         attribute (reentrant, etc) is used on a non-function or on a
8473         function but misplaced before the parameter list.
8474
8475         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
8476         bug #748310
8477         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
8478         * support/Util/SDCCerr.h,
8479         * support/Util/SDCCerr.c: Added func attr misuse error msg
8480
8481 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8482
8483         Fixed bug #787649 by anonymous
8484         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
8485         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
8486
8487 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8488
8489         Fixed numerous bitfield problems.
8490
8491         * src/SDCC.y: More bitfield related error checking
8492         * src/SDCCsymt.h,
8493         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
8494         * support/Util/SDCCerr.h,
8495         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
8496         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8497         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8498         * support/regression/tests/bitfields.c: tests added
8499
8500 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8501
8502         Made the constant following the "interrupt" keyword optional. If
8503         omitted, the function will not automatically be given an entry
8504         in the interrupt vector table (similar to #pragma NOIV, but
8505         less syntacticly kludgy). The interrupt number is also now
8506         range checked. Also fixed a bug in the high order bit example
8507         in the manual.
8508
8509         * src/SDCC.y
8510         * src/SDCCmem.c
8511         * src/SDCCglue.c
8512         * src/SDCCsymt.h
8513         * support/Util/SDCCerr.c
8514         * support/Util/SDCCerr.h
8515         * doc/sdccman.lyx
8516
8517 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8518
8519         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
8520         * src/SDCCicode.c (operandOperation): rewritten some ops
8521         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
8522         * src/SDCCsymt.c (computeType): literals are handled the same way as any
8523         other type
8524         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
8525         be re-activated by defining REDUCE_LITERALS)
8526         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
8527         unsigned, but are signed by default
8528         * src/SDCCval.c (constVal): rearranged
8529         * src/SDCCval.c (valMod): preliminary fix
8530         * src/SDCCval.c (valCastLiteral): use TYPE_* types
8531         * support/regression/literalop.c: added, work in progress
8532
8533 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8534
8535         Generate warnings for useless declarations like "char data;"
8536         that don't do what new users expect.
8537
8538         * src/SDCC.y
8539         * support/Util/SDCCerr.h
8540         * support/Util/SDCCerr.c
8541
8542 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
8543
8544         * src/SDCCval.c (valMult): fix overflow detection of negative int
8545
8546 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8547
8548         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
8549
8550         Changes to support big endian targets:
8551
8552         * src/ports.h
8553         * src/SDCCglue.c
8554         * src/avr/main.c
8555         * src/ds390/main.c
8556         * src/izt/i186.c
8557         * src/mcs51/main.c
8558         * src/pic/main.c
8559         * src/pic16/main.c
8560         * src/xa51/main.c
8561         * src/z80/main.c
8562
8563 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
8564
8565         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
8566         * device/lib/time.c: fixed warning "integer overflow in expression"
8567
8568 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
8569
8570         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
8571         * src/SDCCval.c (constVal): changed default to signed; hex and octal
8572         constants are unsigned; added recognition of "u" flag for unsigned
8573         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
8574         * src/SDCCval.c (valDiv, valMod): fixed signdness
8575         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
8576         signedness of modulo, left and right shift
8577         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
8578         * support/Util/SDCCerr.h: added warning W_INT_OVL
8579         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
8580         * src/SDCCast.c (ast_print): improved output of constants
8581
8582 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8583
8584         Fixed some warnings when building with MSVC:
8585
8586         * as\mcs51\asdata.c
8587         * as\z80\asdata.c
8588         * as\mcs51\asm.h
8589         * as\z80\asm.h
8590         * link\z80\aslink.h
8591         * link\z80\lkdata.c
8592         * link\z80\lkeval.c
8593         * link\z80\lkgb.c
8594         * link\z80\lkihx.c
8595         * link\z80\lks19.c
8596         * link\z80\lksym.c
8597         * support\cpp2\cpplib.c
8598         * src\ds390\gen.c
8599         * src\mcs51\gen.c
8600
8601 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
8602
8603         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
8604
8605 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8606
8607         * support\librarian\clean.mk: Do not remove Makefile.
8608         * support\librarian\Makefile: added.
8609
8610 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8611
8612         Added librarian to MSVC build:
8613         * all.dsp
8614         * sdcc.dsw
8615         * support\librarian\librarian.dsp
8616
8617         'configure' not needed for librarian, removed:
8618         * support\librarian\configure
8619         * support\librarian\configure.in
8620         * support\librarian\config_in.h
8621         * support\librarian\Makefile.in
8622
8623         Hopefully these ones built the librarian and the rest of sdcc properly:
8624         * Makefile
8625         * Makefile.common.in
8626
8627         Messed up 'configure', so revert to previous version:
8628         * configure
8629         * configure.in
8630
8631 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
8632
8633         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
8634         there, while the mantissa of a double is "only" 53 bits wide.
8635
8636 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8637
8638         Adding sdcclib to the build.  MSVC project coming soon.
8639         Files added/changed:
8640
8641         * support\librarian\clean.mk
8642         * support\librarian\configure
8643         * support\librarian\configure.in
8644         * support\librarian\config_in.h
8645         * support\librarian\Makefile.bcc
8646         * support\librarian\Makefile.in
8647         * support\librarian\sdcclib.c
8648         * Makefile.bcc
8649         * Makefile
8650         * Makefile.common.in
8651         * configure
8652         * configure.in
8653
8654 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8655
8656         Linker now complaints if linked modules have conflicting options, for
8657         example, one compiled using --model-large and another one compiled with
8658         --model-small.  The following files were modified:
8659
8660         * as\mcs51\asdata.c
8661         * as\mcs51\aslink.h
8662         * as\mcs51\asm.h
8663         * as\mcs51\asmain.c
8664         * as\mcs51\asout.c
8665         * as\mcs51\i51pst.c
8666         * as\mcs51\lkdata.c
8667         * as\mcs51\lklibr.c
8668         * as\mcs51\lkmain.c
8669         * as\z80\asdata.c
8670         * as\z80\asm.h
8671         * as\z80\asmain.c
8672         * as\z80\asout.c
8673         * as\z80\z80pst.c
8674         * link\z80\aslink.h
8675         * link\z80\lkdata.c
8676         * link\z80\lklibr.c
8677         * link\z80\lkmain.c
8678         * src\SDCCglue.c
8679
8680 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8681
8682         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
8683         as/mcs51/lklibr.c: Generate a warning when a library is not found.
8684
8685 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
8686
8687         * src/z80/mappings.i: fix _mul[us][int,long] entries
8688
8689 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8690
8691         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
8692
8693 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8694
8695         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
8696         * support/regression/tests/bitopcse.c: added
8697         fixed warning:
8698         * src/avr/gen.c:
8699         * src/pic/gen.c:
8700         * src/pic16/gen.c:
8701         * src/z80/gen.c:
8702         * src/xa51/gen.c:
8703
8704 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8705
8706         added support for new library format to z80, gbz80 linkers:
8707         *link/z80/aslink.h
8708         *link/z80/lklex.c
8709         *link/z80/lklib.c
8710         *link/z80/lklist.c
8711
8712 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8713
8714         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
8715         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
8716
8717 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
8718
8719         added DUMMY_READ_VOLATILE:
8720         * src/SDCC.y:
8721         * src/avr/gen.c:
8722         * src/xa51/gen.c:
8723         * src/z80/gen.c:
8724         * src/pic/gen.c:
8725         * src/pic16/gen.c:
8726         * src/mcs51/gen.c:
8727         * src/ds390/gen.c:
8728         * src/SDCCcse.c (algebraicOpts): many improvements
8729         * src/SDCCcse.h: removed algebraicOpts()
8730         * src/SDCCicode.c (picDummyRead): added
8731
8732 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8733
8734         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
8735         "Insufficient space in data memory".
8736
8737 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8738
8739         * src/mcs51/gen.c: fixed bug #771358
8740         * src/z80/gen.c: fixed bug #759087
8741
8742 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
8743
8744         * src/pic16/glue.c: minor cleanup by Vangelis
8745
8746 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8747
8748         * device/include/regc515c.h: fixed #758477
8749         * device/lib/_gptrget.c: saving some cycles in generic pointer get
8750         * device/lib/_gptrput.c: saved a few bytes
8751         * my tab spacing is 8, yours too?)
8752         * device/lib/_ser.c: process RX bytes earlier than TX bytes
8753         * device/lib/serial.c: process RX bytes earlier than TX bytes
8754         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
8755
8756 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8757
8758         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
8759
8760 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8761
8762     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
8763
8764 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
8765
8766         * device/lib/Makefile.in: bad fix, reverted to 1.43
8767
8768 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
8769
8770         * device/lib/Makefile.in: added missing z80 object files
8771
8772 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
8773
8774         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
8775         pic16 progress by Vangelis:
8776         * src/SDCCglobl.h:
8777         * src/SDCCmain.c:
8778         * src/pic/Makefile:
8779         * src/pic:
8780         * pic/Makefile:
8781         * pic16/device.c:
8782         * pic16/device.h:
8783         * pic16/gen.c:
8784         * pic16/gen.h:
8785         * pic16/genarith.c:
8786         * pic16/glue.c:
8787         * pic16/main.c:
8788         * pic16/pcode.c:
8789         * pic16/pcode.h:
8790         * pic16/pcodepeep.c:
8791         * pic16/peeph.def:
8792
8793 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8794
8795     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
8796
8797 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8798
8799     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
8800     added gbz80 build to MSVC project.
8801     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
8802     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
8803     from 8051 stuff and setup so it links using a .lnk file.
8804
8805 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8806
8807     * support/librarian/sdcclib.c: sdcc librarian.
8808     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
8809     with sdcclib.
8810
8811 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8812
8813     * as/mcs51/lkmain.c: properly handle extensions in function afile.
8814
8815 2003-07-02  Borut Razem <borut.razem AT siol.net>
8816
8817         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
8818         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
8819         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
8820         src/xa51/main.c, src/z80/main.c:
8821         virtualization of glue() function: each port has it's own glue function,
8822         which is accessed by do_glue function pointer in PORT.general structure
8823
8824 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
8825
8826         * DS800C400 fun, improved ROM interface and tinibios.
8827
8828 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
8829
8830         * More support for DS80C400. Now includes beginning of interface to ROM.
8831
8832 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
8833
8834         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
8835
8836 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8837
8838         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
8839
8840 2003-06-19  Borut Razem <borut.razem AT siol.net>
8841
8842         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
8843
8844 2003-06-19  Borut Razem <borut.razem AT siol.net>
8845
8846         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
8847         fixed Z80 port - crt0.o: cannot open.
8848
8849 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
8850
8851         * support/Util/MySystem.c (merge_command): revert bad fix
8852
8853 2003-06-18  Borut Razem <borut.razem AT siol.net>
8854
8855         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
8856
8857 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8858
8859         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8860         option --use-stdout sends errors to stdout instead of stderr.
8861
8862 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
8863
8864         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
8865
8866 2003-06-15  Borut Razem <borut.razem AT siol.net>
8867
8868         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
8869         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
8870         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
8871         fixed width array of pointers replaced with sets;
8872         multiple include and lib paths ared transferred to preprocessor and linker
8873         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
8874         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
8875         fixed width array of pointers
8876         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
8877         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
8878         fixupPath(), getPathDifference()
8879         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
8880         fixed width array of pointers
8881
8882 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
8883
8884         * src/pic16/ralloc.c: fix warnings
8885         * src/pic16/pcode.c: fix warning
8886
8887 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
8888
8889          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
8890         know all the details, but essentially this set of changes enable
8891         the pic16 port to generate movff instructions and generate assembler
8892         directives,
8893         * src/SDCCmain.c:
8894         * src/pic16/gen.c:
8895         * src/pic16/glue.c:
8896         * src/pic16/pcode.c:
8897         * src/pic16/device.c:
8898         * src/pic16/main.c:
8899         * src/pic16/pcode.h:
8900         * src/pic16/pcoderegs.c:
8901         * src/pic16/ralloc.c:
8902         * src/pic16/ralloc.h:
8903
8904 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8905
8906         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
8907         added option --vc, so sdcc errors and warnings are compatible with
8908         Microsoft Visual Studio.
8909
8910 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8911
8912         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
8913           device/lib/libfloat.lib: added atof function.
8914
8915 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
8916
8917         * doc/sdccman.lyx: updated to Lyx 1.3
8918         * doc/cdbfileformat.lyx: updated to Lyx 1.3
8919         * doc/test_suite_spec.lyx: updated to Lyx 1.3
8920         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
8921
8922 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
8923
8924         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
8925
8926 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8927
8928         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
8929           additions to the "related tools/documentation" section
8930
8931 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
8932
8933         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
8934
8935 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
8936
8937         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
8938         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
8939
8940 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
8941
8942         * doc/sdccman.lyx: fix double dash and other minor things
8943         * doc/Makefile: fix double dash
8944
8945 2003-05-28  Karl Bongers(patches from Martin Helmling)
8946         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
8947           condition and ignore commands.
8948
8949 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8950
8951         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
8952           is in parts still quite out of date, I did changes as far as I felt makes sense
8953           for a non-native english speaker.
8954           Please feel free to add to the manual or to correct my changes.
8955         * doc/Makefile: undid touching the date of intermediate tex files.
8956
8957 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8958
8959         * doc/sdccman.lyx: Manual has an index now
8960
8961 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
8962
8963         Finalize muluint/mulsint and mululong/mulslong merging:
8964         * device/lib/_mulint.c
8965         * device/lib/_mullong.c
8966         * device/lib/gbz80/mul.s
8967         * device/lib/gbz80/stubs.s
8968         * device/lib/z80/mul.s
8969         * device/lib/z80/stubs.s
8970         * src/SDCCsymt.c (initCSupport)
8971
8972 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8973
8974         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
8975         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
8976           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
8977           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
8978           instead of /Zm500.
8979
8980 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8981
8982         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
8983           the regression tests I'm not brave enough to enable 245.b, 245.c
8984         * doc/sdccman.lyx: added latex preamble for hyperref package.
8985           Using pdflatex this will give you a hyperlinked pdf file with
8986           bookmarks. (prepend '%' before /usepackage if this breaks something)
8987
8988 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8989
8990          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
8991
8992 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
8993
8994         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
8995
8996 2003-05-21    <johan AT balder>
8997
8998         * src/SDCCglue.c (printIval): fixed bug #739934
8999
9000 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9001
9002         Applied patch from bug 737905 (renamed yylineo to mylineno):
9003         * src/altlex.c
9004         * src/SDCCast.c
9005         * src/SDCglobl.h
9006         * src/SDCC.lex
9007         * src/SDCCsymt.c
9008         * src/SDCCval.c
9009         * src/pic16/pcode.c: Cleaned warnings
9010         * src/pic16/pcodeflow.c: Cleaned warnings
9011         * src/pic16/pcoderegs.c: Cleaned warnings
9012
9013 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
9014
9015         * src/pic16/pcode.c: Cleaned warnings
9016         * src/pic16/pcodepeep.c: Cleaned warnings
9017         * src/pic16/ralloc.c: Cleaned warnings
9018
9019 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9020
9021         * doc/sdccman.lyx: fixed bug 739745
9022         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
9023
9024 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
9025
9026         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
9027         it can be defined with CFLAGS when running configure
9028         * src/SDCCmain.c: fixed compiling + linking with object files
9029
9030 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
9031
9032         * configure.in: configure for pic16 port,
9033             added --disable-pic16-port
9034         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
9035         * src/SDCCmain.c: linkOptions is changed to set *,
9036             added if/endif conditional macros to remove options help
9037             messages from optionsTable when a port is not configured, added
9038             support for the PIc16 port in the ports table, when executing
9039             the compiler with no port specified on command line, a default
9040             port is selected with the new macro DEFAULT_PORT which is
9041             defined in port.h, in setDefaultOptions() linkOptions is removed
9042             from initialization assignment, since now it is a set,
9043             parseCmdLine uses setParseWithComma for linkOptions, in
9044             linkEdit() linkOptions are accessed with new function indexSet()
9045             which returns the i'th item of a set variable. See SDCCset.c, in
9046             linkEdit() when calling buildCmdLine(), added linkOptions as
9047             last argument. Now users can pass arguments to gplink via the
9048             -Wl option, main() uses pic16glue() to glue up pic16 programs
9049         * src/SDCCpeeph.c: various changes to support pic16
9050         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
9051             return the i'th item of the set
9052         * src/SDCCset.h: added function prototype for indexSet()
9053         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
9054         * src/clean.mk: added pic16 in CLEANALLPORTS variable
9055         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
9056             added macro DEFAULT_PORT
9057         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
9058         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
9059             generated
9060         * src/pic16/glue.c: commented out some error producing lines
9061         * src/pic16/main.c: __config directives are commented out to stop
9062             gpasm complaining and test the linkage with gplink, _linkCmd and
9063             _asmCmd changed to be more gplink and gpasm friendly
9064         * src/pic16/peeph.def: peep rule 3 is commented out, since it
9065             produced an error when parsed, peep rule 12 is added to utilize
9066             movff, but it is commented out since the pCode does not support
9067             yet a command with 2 address arguments
9068
9069 2003-05-18    <johan AT balder>
9070
9071         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9072         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9073 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
9074
9075         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
9076   Added feature to script commands from file.
9077
9078 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
9079
9080         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
9081         * src/SDCCutil.c: include ctype.h for win32
9082
9083 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
9084
9085         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
9086
9087 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
9088
9089         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
9090   Fixed so you can set breakpoints prior to run, run does not stop
9091   on entry now.  Add tbreak.  Other enhancements and fixes for use
9092   with ddd.
9093
9094 2003-05-12  Borut Razem <borut.razem AT siol.net>
9095
9096         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
9097
9098 2003-05-11  Borut Razem <borut.razem AT siol.net>
9099
9100         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
9101         the path of bin directory, so that PATH is the only env. variable, which has to be set
9102         in case of standard installation.
9103         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
9104         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
9105         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
9106
9107 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9108
9109         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
9110         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
9111         temp files are in the port dir; clean the gen/test directory when
9112         generating new test.c
9113         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
9114         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
9115         * support/regression/tests/zeropad.c: added
9116
9117 2003-05-09    <johan AT balder>
9118
9119         * src/SDCCglue.c: fixed bug #597940
9120
9121 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
9122
9123         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9124   cache sfr, optimize next,step, fix off by one sourceline,
9125   support ddd list function.
9126         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
9127
9128 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9129
9130         * support/regression/HTMLgen.py: added compare_s2f()
9131         * support/regression/Makefile: redo 1.27
9132         * support/regression/generate-cases.py: redo 1.5
9133
9134 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
9135
9136         * support/regression/tests/float.c: workaround 33 bit hex constant
9137         * support/regression/tests/simplefloat.c: fix division for host
9138
9139 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
9140
9141         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
9142         that tame's the PIC's over-aggressive optimizer.
9143
9144 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9145
9146          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
9147          support for MSVC.
9148
9149 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
9150
9151         Initial support for DS80C400. "Hello world" runs on TINIm400
9152         (with polled I/O).
9153
9154 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
9155
9156          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9157          * Some notes on ddd usage added in debugger/README
9158          Martin Helmling adding more features and fixes for ddd GUI debugger.
9159          Code added for nexti, stepi, up, down, and other adjustments.
9160
9161 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
9162
9163         * src/pic/pCodepeep.c non-wildcard asmops are now handled
9164         * src/pic/peeph.def Added two rules to optimize carry manipulation
9165         * src/pic/* removed debug printfs
9166
9167 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
9168
9169         * debugger/mcs51/cmd.c: added header newalloc.h
9170
9171 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
9172
9173         * as/Makefile: new EXEEXT
9174         * as/z80/Makefile: remove trailing slash of BUILDIR
9175         * as/z80/clean.mk: new EXEEXT
9176         * Makefile.common.in: add to CFLAGS (and others), don't replace it
9177         * support/cpp2/Makefile.in: new EXEEXT
9178         * src/pic/glue.c (pic14emitRegularMap): fixed warning
9179
9180 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
9181
9182         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
9183         EXEEXT was introduced to fix all related problems with targets
9184         "clean", "install" and "uninstall"; a couple of further flaws
9185         especially with "clean" have been fixed too
9186         * as/mcs51/Makefile.in
9187         * as/mcs51/clean.mk
9188         * as/z80/Makefile
9189         * Makefile
9190         * clean.mk
9191         * debugger/mcs51/Makefile.in
9192         * debugger/mcs51/clean.mk
9193         * link/z80/Makefile
9194         * link/z80/Makefile.in
9195         * link/z80/clean.mk
9196         * link/Makefile
9197         * packihx/Makefile.in
9198         * packihx/clean.mk
9199         * sim/ucsim/Makefile
9200         * sim/ucsim/clean.mk
9201         * sim/ucsim/avr.src/Makefile.in
9202         * sim/ucsim/avr.src/clean.mk
9203         * sim/ucsim/s51.src/Makefile.in
9204         * sim/ucsim/s51.src/clean.mk
9205         * sim/ucsim/xa.src/Makefile.in
9206         * sim/ucsim/xa.src/clean.mk
9207         * sim/ucsim/z80.src/Makefile.in
9208         * sim/ucsim/z80.src/clean.mk
9209         * sim/ucsim/main_in.mk
9210         * sim/ucsim/packages_in.mk
9211         * sim/ucsim/gui.src/Makefile.in
9212         * sim/ucsim/gui.src/serio.src/Makefile.in
9213         * sim/ucsim/gui.src/serio.src/clean.mk
9214         * src/Makefile.in
9215         * src/clean.mk
9216         * support/cpp2/Makefile.in
9217         * support/cpp2/clean.mk
9218         * support/makebin/Makefile
9219         * support/makebin/clean.mk
9220         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
9221         * doc/sdccman.lyx: --program-suffix no longer needed
9222
9223 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
9224
9225          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
9226          Martin Helmling added support for ddd GUI debugger.
9227          Code added to display assembly, set variables, and other commands
9228          to interface to ddd.
9229
9230 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
9231
9232         * as/Makefile: fix target clean
9233         * as/clean.mk: fix target clean
9234         * as/z80/clean.mk: fix target clean
9235
9236 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
9237
9238         * Makefile.common.in: added  AT EXEEXT AT
9239         * configure.in: removed all mingw32 stuff
9240         * configure: rebuilt from configure.in
9241         * doc/sdccman.lyx: updated section "installation"
9242         * support/scripts/sdcc_mingw32: adapted to configure
9243         * support/scripts/sdcc_cygwin_mingw32: added
9244
9245 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
9246
9247         * src/pic Added object file support for the PIC port
9248         * src/pic Applied patch from Craig Franklin (this started the object file support)
9249         * src/regression Updated the PIC regression tests for object files
9250
9251 2003-04-20  Borut Razem <borut.razem AT siol.net>
9252
9253         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
9254           lklex.c: In function `getfid':
9255           lklex.c:203: warning: array subscript has type `char'
9256         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
9257           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
9258         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
9259           stack handling macros
9260
9261 2003-04-19  Borut Razem <borut.razem AT siol.net>
9262
9263         * "handling space characters in file path" task:
9264         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
9265         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
9266         * support/Util/MySystem.h: make it self-sufficient
9267         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
9268           src/z80/main.c, sdcc/as/mcs51/lklex.c:
9269           handling space characters in file path
9270         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
9271           (it will be used by assemblers, which have their own includes, e.g. gpasm)
9272         * support/Util/MySystem.c: handling space characters in executable's path
9273
9274 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
9275
9276         * as/z80/Makefile: fix permanent rebuild of z80
9277         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
9278         * support/regression/tests/bitfields.c: added Johan's bitfields.c
9279
9280 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
9281
9282         * src/SDCCopt.c: add special case optimization to replace modulo by
9283           a power of two with a bitwise AND.
9284
9285 2003-04-18    <johan AT balder>
9286
9287         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
9288
9289 2003-04-17    <johan AT balder>
9290
9291         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
9292         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
9293
9294 2003-04-13  Borut Razem <borut.razem AT siol.net>
9295
9296         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
9297         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
9298           fixed mingw problem in adl_NORMALIZE_PATH
9299
9300 2003-04-12  Borut Razem <borut.razem AT siol.net>
9301
9302         * fixed "#pragma SAVE/RESTORE can not be nested":
9303         * src/SDCC.lex: reworked pragma handling functions
9304         * sdcc/src/SDCCglobl.h: reworked stack handling macros
9305         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
9306
9307 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9308
9309         * src/SDCCutil.c (pathEquivalent): defined but not used
9310         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
9311         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
9312         * configure: rebuilt from configure.in
9313         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9314         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9315         * device/include/Makefile.in: replace sdcc_datadir
9316         * device/lib/Makefile.in: replace sdcc_datadir
9317         * Makefile.common.in: add LDFLAGS from configure
9318         * packihx/Makefile.in: use LDFLAGS
9319         * src/Makefile.in: use LDFLAGS
9320         * support/cpp2/Makefile.in: add LDFLAGS from configure
9321         * support/makebin/Makefile: use LDFLAGS
9322         * .version: bumped version number to 2.3.5
9323
9324 2003-04-12  Borut Razem <borut.razem AT siol.net>
9325
9326         * completed "different paths" task:
9327         * src/SDCCmacro.c: fixed bug in handling quotes
9328         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
9329         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
9330
9331 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9332
9333         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
9334
9335 2003-04-11 kevin Vigor <kevin AT vigor.nu>
9336
9337         * ds390/gen.c ds390/peeph.def: fix bug 706781
9338
9339 2003-04-11  Borut Razem <borut.razem AT siol.net>
9340
9341         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
9342
9343 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
9344
9345         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
9346         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
9347          set - this bit used to not be set...).
9348         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
9349           bad code in PIC Port
9350         * src/regression/and2.c added to test bug 609268
9351         * src/regression/Makefile added and2.c to regression test
9352
9353
9354 2003-04-08    <johan AT CP255758-A>
9355
9356         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
9357         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
9358         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
9359
9360 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
9361
9362         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
9363         fix bug #487815
9364         * support/cpp2/Makefile.in: fix bug #487815
9365         * configure: rebuilt from configure.in
9366         * Makefile.common.in: docdir changed, new path suffixes
9367         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9368         * sdcc_vc_in.h: reflect changes from sdccconf.h
9369         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
9370         * src/SDCCutil.h: remove BINDIR hack
9371         * doc/sdccman.lyx: update new path hierarchy
9372
9373 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9374
9375         * src/SDCCpeeph.c: added okToRemoveSLOC test
9376
9377 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9378
9379         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
9380
9381 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9382
9383         * src/SDCCpeeph.c: added labelIsReturnOnly test
9384         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
9385
9386 2003-04-05    <johan AT balder>
9387
9388         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
9389         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
9390         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
9391         * src/SDCCast.c: fixed a warning
9392         * src/SDCCast.h: fixed a warning
9393         * src/SDCCicode.c (operandFromAst): fixed a warning
9394
9395 2003-04-04    <johan AT balder>
9396
9397         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
9398         * src/SDCCast.c (decorateType): fixed bug #715076
9399         * src/SDCC.y: fixed bug #702907
9400
9401 2003-04-03    <johan AT balder>
9402
9403         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
9404         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
9405         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
9406         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
9407         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
9408
9409 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
9410
9411         * _decdptr.c: fix return values
9412         * _gptrget.c: fix return values
9413         * _gptrgetc.c: fix return values
9414         * _gptrput.c: fix return values
9415         * _mulint.c: fix return values
9416         * as/z80/Makefile: fix 'make -j' problem
9417
9418 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
9419
9420         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
9421         * configure.in: big cleanup, updated to autoconf 2.5x
9422         * configure: rebuilt from configure.in
9423         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9424         * sdcc_vc_in.h: reflect changes from sdccconf.h
9425         * doc/Makefile: fixed a flaw in "make install"
9426
9427 2003-04-02    <johan AT balder>
9428
9429         * src/ds390/gen.c (genCmp): no comments
9430         * src/mcs51/gen.c (genCmp): no comments
9431         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
9432         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
9433
9434 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
9435
9436         * support/regression/generate-cases.py: place generated file in given sub directory
9437         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
9438         * support/regression/Makefile: improvements for 'make -j';
9439         side effect: it's simpler and faster now
9440
9441 2003-03-31  Borut Razem <borut.razem AT siol.net>
9442
9443         * src/z80/main.c: link-{port} and as-{port} defined without path
9444         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
9445
9446 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
9447
9448         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
9449
9450 2003-03-30  Borut Razem <borut.razem AT siol.net>
9451
9452         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
9453           changed type of list parameter to set
9454         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
9455         * src/port.h: changed type of do_assemble() parameter to set
9456         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
9457           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
9458           definition of "cppoutfilename" macro with NULL value in preProcess()
9459         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
9460         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
9461         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
9462           replaced with set *binPathSet
9463         * shash_add() deallocates the item, if allready exsists, before adding the new one
9464         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
9465
9466 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
9467
9468         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
9469           a nested for loop bug in the PIC port
9470         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
9471           for loops
9472
9473 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
9474
9475         * support/Util/dbuf.h: remove C++ stuff to make it portable
9476
9477 2003-03-28  Borut Razem <borut.razem AT siol.net>
9478
9479         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
9480           literal strings in stringLiteral()
9481         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
9482         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
9483           to the project
9484
9485 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
9486
9487         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
9488
9489 2003-03-26    <johan AT balder>
9490
9491         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
9492         * src/ds390/gen.c (saveRegisters): catched symbol abuse
9493         * src/SDCCast.c (decorateType): fixed " -v < 3"
9494
9495 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
9496
9497         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
9498         Added Lenny Story's debug infrastructure changes:
9499         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
9500         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
9501         * src/cdbFile.c: added
9502         * src/SDCCdebug.c: added
9503         * src/SDCCdebug.h: added
9504         * src/SDCCast.c (createFunction)
9505         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
9506         * src/SDCCmain.c (parseCmdLine, main)
9507         * src/SDCCmem.c (redoStackOffsets)
9508         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
9509         * src/SDCCsymt.h
9510         * src/common.h
9511         * src/avr/gen.c (genAVRCode)
9512         * src/ds390/gen.c (gen390Code)
9513         * src/mcs51/gen.c (gen51Code)
9514         * src/pic/gen.c (genpic14Code)
9515         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
9516         * src/xa51/gen.c (genXA51Code)
9517         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
9518
9519 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9520
9521         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
9522         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
9523
9524 2003-03-22    <johan AT balder>
9525
9526         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
9527
9528 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
9529
9530         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
9531         * doc/cdbfileformat.lyx: added, written by Lenny Story
9532         * doc/Makefile: added cdbfileformat.lyx
9533         * doc/clean.mk: added cdbfileformat.lyx
9534
9535 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
9536
9537         * src/mcs51/peeph.def: fix bug #705773
9538
9539 2003-03-20    <johan AT balder>
9540
9541         An sfr/sbit can have an "at #" AND an initializer
9542         * src/SDCCsymt.c (checkSClass):
9543         * src/SDCCmem.c (allocGlobal):
9544         * src/SDCCmem.c (allocLocal):
9545         * src/SDCCast.c (createBlock):
9546
9547 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
9548
9549         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
9550
9551 2003-03-16    <johan AT balder>
9552
9553         Undid the hackup of const and volatile, the problem is much bigger
9554         * src/SDCC.y:1.65
9555         * src/SDCCast.c:1.171
9556         * src/SDCCglue.c:1.138
9557         * src/SDCCicode.c:1.146
9558         * src/SDCCsymt.c:1.150
9559         * src/SDCCval.c:1.65
9560
9561 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
9562
9563         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
9564         * src/ds390/gen.c (genAddrOf): fixed bug #704087
9565
9566 2003-03-13    <johan AT balder>
9567
9568         Hackup const and volatile modifiers in type chains a bit:
9569         * src/SDCC.y:1.63
9570         * src/SDCCast.c:1.169
9571         * src/SDCCglue.c:1.136
9572         * src/SDCCicode.c:1.143
9573         * src/SDCCsymt.c1.146
9574         * src/SDCCsymt.h1.59
9575         * src/SDCCval.c:1.63
9576
9577 2003-03-12    <johan AT balder>
9578
9579         * src/SDCCBBlock.h: more LRH debugging junk
9580         * src/SDCCcflow.h: more LRH debugging junk
9581         * src/SDCCloop.c: more LRH debugging junk
9582         * src/SDCC.y (struct_declaration): fixed bug #697590
9583         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
9584         * src/ds390/gen.c (aopForRemat): fixed bug #700031
9585         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
9586
9587 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9588         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
9589         test function names must now match exactly).
9590         * src/SDCCcse.c: added special case in findCheaperOp to allow
9591         extending a short integer. Makes less awful code for bug 700121 test case.
9592
9593 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9594
9595         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
9596         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
9597
9598 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9599
9600         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
9601         actually called (operandsNotEqual() was called for all
9602         operandsNotEqualX tests).
9603
9604 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9605
9606         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
9607         with shorter literals. Fixes bug 700121.
9608
9609 2003-03-11    <johan AT balder>
9610
9611         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
9612
9613 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
9614
9615         * src/SDCCloop.c (mergeRegions): an evil beast is dead
9616         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
9617
9618 2003-03-10  Borut Razem <borut.razem AT siol.net>
9619
9620         * src/SDCCmain.c: pipe preprocessor's output
9621         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9622         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9623         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9624         which closes all pipes in pipeSet set
9625         * src/SDCCset.c: free deleted item in function deleteSetItem()
9626         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9627         moved from z80 to src subproject
9628         * .version: increased version number to 2.3.4
9629
9630 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
9631
9632         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
9633         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
9634         * support/regression/ports/xa51/spec.mk: fix typo
9635
9636 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
9637
9638         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
9639
9640 2003-03-09  Borut Razem <borut.razem AT siol.net>
9641
9642         * src/SDCCmain.c: pipe preprocessor's output
9643         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9644         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9645         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9646         which closes all pipes in pipeSet set
9647         * src/SDCCset.c: free deleted item in function deleteSetItem()
9648         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9649         moved from z80 to src subproject
9650
9651 2003-03-09  Borut Razem <borut.razem AT siol.net>
9652
9653         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
9654         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
9655         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
9656         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
9657         * src/SDCCglobl.h: unification of WIN32 native definitions
9658
9659 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9660
9661         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
9662
9663 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9664
9665         * src/configure.in:   check for endianess (even while cross-compiling)
9666         * src/configure:      check for endianess (even while cross-compiling)
9667         * src/configure_in.h: check for endianess (even while cross-compiling)
9668         * src/avr/gen.c:        remove old endianess stuff
9669         * src/mcs51/gen.c:      remove old endianess stuff
9670         * src/ds390/gen.c:      remove old endianess stuff
9671         * src/pic/gen.c:        remove old endianess stuff
9672         * src/pic/genarith.c:   remove old endianess stuff
9673         * src/pic/glue.c:       fix endianess check
9674         * src/pic16/gen.c:      remove old endianess stuff
9675         * src/pic16/genarith.c: remove old endianess stuff
9676         * src/pic16/glue.c:     fix endianess check
9677         * src/xa51/gen.c:       remove old endianess stuff
9678         * src/z80/gen.c:        fix endianess check
9679         * src/SDCCglue.c:       fix endianess check
9680         * src/ds390/peeph.def: fix bug 700036
9681
9682 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9683
9684         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
9685         * src/configure: find appropriate data-types on host for SDCC's int and long
9686         * src/configure.in: find appropriate data-types on host for SDCC's int and long
9687         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
9688         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
9689
9690 2003-03-07    <johan AT balder>
9691
9692         Just a big NOOP:
9693                 some minor cleanups before the big shot
9694                 OP_DEFS and OP_USES now use Kevin's protection
9695                 new option --nolabelopt
9696
9697         * src/SDCCBBlock.c:
9698         * src/SDCCast.c,:
9699         * src/SDCCcflow.c:
9700         * src/SDCCcse.c:
9701         * src/SDCCicode.c:
9702         * src/SDCCicode.h:
9703         * src/SDCClabel.c:
9704         * src/SDCCloop.c:
9705         * src/SDCCmain.c:
9706         * src/ds390/ralloc.c:
9707         * src/mcs51/ralloc.c:
9708         * src/pic/ralloc.c:
9709         * src/xa51/ralloc.c:
9710         * src/z80/ralloc.c:
9711
9712 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
9713
9714         * src/pic/pcode.c (get_op): fix 64 bit warnings
9715         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
9716         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
9717         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
9718         * support/regression/tests/malloc.c: fix 64 bit warnings
9719
9720 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
9721
9722         * src/mcs51/gen.c (genMinus): fixed bug 696436
9723
9724 2003-03-02  Borut Razem <borut.razem AT siol.net>
9725
9726         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
9727
9728 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
9729
9730         * configure.in: test for mkstemp
9731         * sdccconf_in.h: add HAVE_MKSTEMP
9732
9733 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
9734
9735         * device/include/ctype.h: removed warning while using --stack-auto
9736         * device/include/malloc.h: removed warning while using --stack-auto
9737         * device/include/string.h: removed warning while using --stack-auto
9738
9739 2003-02-23  Borut Razem <borut.razem AT siol.net>
9740
9741         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
9742         because NDEBUG is defined (see man assert)
9743         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
9744
9745 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9746
9747         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
9748         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
9749
9750 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9751
9752         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
9753         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
9754
9755 2003-02-18    <johan AT balder>
9756
9757         * as/mcs51/asmain.c (asmbl): module can start with a digit
9758         * as/z80/asmain.c (asmbl): module can start with a digit
9759
9760 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
9761
9762         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
9763         * src/asm.c: fix pipe() for Mingw32
9764
9765 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
9766
9767         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
9768         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
9769         make -V work again; --c1mode reads now from stdin
9770         * doc/sdccman.lyx: added --c1mode
9771         * support/Util/SDCCerr.c: new messages for c1 mode
9772         * support/Util/SDCCerr.h: new messages for c1 mode
9773         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
9774
9775 2003-02-15    <johan AT balder>
9776
9777         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
9778
9779 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
9780
9781         * doc/sdccman.lyx: Environment variables, -o and other minor things
9782
9783 2003-02-14    <johan AT balder>
9784
9785         * src/xa51/main.c: before anyone really tries to use it :)
9786
9787         * Install doc's in share/sdcc/doc
9788         * removed some obsolete files
9789         * Do a proper make distclean and uninstall
9790         M Makefile.common.in
9791         R sdccbuild.sh
9792         M as/Makefile
9793         M device/include/Makefile.in
9794         M device/lib/Makefile.in
9795         M doc/sdccman.lyx
9796         M link/Makefile
9797         M sim/ucsim/doc/Makefile.in
9798         M src/clean.mk
9799         R src/avr/peeph.rul
9800         R src/xa51/peeph.rul
9801         M support/cpp2/Makefile.in
9802         M support/makebin/Makefile
9803
9804
9805 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
9806
9807         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
9808
9809 2003-02-10  Borut Razem <borut.razem AT siol.net>
9810
9811         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
9812         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
9813         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
9814         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
9815         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
9816         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
9817         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
9818         src/z80/Makefile.bcc: Borland Makefile cleanup
9819         * as/z80/Makefile.bcc: Added Borland Makefile
9820         * support/cpp2/borland.h: Removed
9821
9822 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
9823
9824         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
9825         * src/SDCC.lex: new pragma NOIV
9826         * src/SDCCglobl.h: new pragma NOIV
9827         * src/SDCCmem.c: new pragma NOIV
9828
9829 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9830
9831         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
9832
9833 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
9834
9835         * src/SDCCmain.c: signal handling is switched off by --debug
9836         * doc/Makefile: small fix for install; use clean.mk again
9837         * doc/clean.mk: clean *.pdf and *.html too
9838
9839 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
9840
9841         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
9842         * device/lib/printfl.c: fix a ds390 bug by making it portable
9843         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
9844         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
9845         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
9846         * debugger/mcs51/cmd.c: converted multi-line string literals
9847         * sim/ucsim/globals.cc: converted multi-line string literals
9848         * src/SDCCmain.c: introduced signal handler to remove temp files
9849         * doc/Makefile: small tweaks, implement clean
9850         * doc: removed generated files
9851
9852 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9853
9854         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
9855         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
9856         Address Record is not correctly generated for DS390."
9857
9858 2003-02-02  Borut Razem <borut.razem AT siol.net>
9859
9860         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
9861         * as/mcs51/asm.h: fixed compilation with Borland C
9862         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
9863         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
9864         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
9865         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
9866         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
9867         src/z80/Makefile.bcc: delete $(LIB) only if exist
9868         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
9869
9870 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
9871
9872         * device/include/malloc.h: introduced NULL
9873         * device/include/string.h: introduced NULL
9874         * device/include/stdlib.h: introduced NULL
9875         * device/lib/_memcpy.c: removed NULL
9876         * device/lib/_strcat.c: removed NULL
9877         * device/lib/_strchr.c: removed NULL
9878         * device/lib/_strcmp.c: removed NULL
9879         * device/lib/_strcpy.c: removed NULL
9880         * device/lib/_strcspn.c: removed NULL
9881         * device/lib/_strlen.c: removed NULL
9882         * device/lib/_strncat.c: removed NULL
9883         * device/lib/_strncmp.c: removed NULL
9884         * device/lib/_strncpy.c: removed NULL
9885         * device/lib/_strpbrk.c: removed NULL
9886         * device/lib/_strrchr.c: removed NULL
9887         * device/lib/_strspn.c: removed NULL
9888         * device/lib/_strstr.c: removed NULL
9889         * device/lib/_strtok.c: removed NULL
9890         * device/lib/malloc.c: removed NULL, include own header
9891
9892 2003-02-02    <johan AT balder>
9893
9894         * 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
9895         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
9896         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
9897         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
9898         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
9899         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
9900
9901 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9902
9903         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
9904         area 'DATA'"
9905
9906 2003-02-01    <johan AT balder>
9907
9908         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
9909
9910 2003-01-31    <johan AT CP255758-A>
9911
9912         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
9913
9914 2003-01-30    <johan AT balder>
9915
9916         * src/SDCCBBlock.c: automatic bug detection
9917         * src/SDCCicode.c: automatic bug detection
9918
9919 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9920
9921         * src/SDCCglobl.h:   now --xram-size 0 works
9922         * src/SDCCmain.c:    now --xram-size 0 works
9923
9924 2003-01-29    <johan AT balder>
9925
9926         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
9927
9928 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9929
9930         * as/mcs51/aslink.h: Added options --xram-size and --code-size
9931         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
9932         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
9933         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
9934         * src/SDCCglobl.h:   Added options --xram-size and --code-size
9935         * src/SDCCmain.c:    Added options --xram-size and --code-size
9936
9937 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
9938
9939         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
9940         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
9941
9942 2003-01-27    <johan AT balder>
9943
9944         * src/SDCC.y: fixed bug #613764
9945
9946 2003-01-26    <johan AT balder>
9947
9948         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
9949         * src/SDCCsymt.h: fixed bug #673374
9950         * src/SDCCglue.c: fixed bug #661910
9951         * src/SDCCast.c: fixed bug #458099 and 673374
9952
9953 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
9954
9955         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
9956         * as/mcs51/strcmpi.h: added
9957         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
9958         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
9959         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
9960         * as/mcs51/assym.c: strcmpi -> as_strcmpi
9961         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
9962         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
9963         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
9964         * as/mcs51/Makefile.aslink: new module strcmpi
9965         * as/mcs51/Makefile.asx8051: new module strcmpi
9966         * as/mcs51/Makefil.bcc: new module strcmpi
9967         * as/mcs51/Makefile.in: new module strcmpi
9968         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
9969
9970 2003-01-26    <johan AT balder>
9971
9972         * src/SDCCglue.c: reverted back to 1.124
9973         * src/SDCCast.c: reverted back to 1.156
9974         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
9975
9976 2003-01-25    <johan AT balder>
9977
9978         * src/SDCCglue.c: A better fix for bug #661910
9979         * src/SDCCast.c: A better fix for bug #661910
9980         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
9981
9982 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
9983
9984         * src/Makefile.in: remove spawn.o
9985         * src/SDCCmain.c: remove spawn.h
9986         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
9987         * src/spawn.c: removed
9988         * src/spawn.h: removed
9989         * support/regression/ports/ds390/spec.mk: link with -r
9990
9991 2003-01-24    <johan AT CP255758-A>
9992
9993         * src/ds390/gen.c (aopOp): fixed bug #667458
9994         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
9995         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
9996         (createIvalCharPtr): an ival doesn't always have a storage class anymore
9997
9998 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
9999
10000         * src/mcs51/peeph.def: better assembler identation by Frieder
10001         * src/mcs51/gen.c: better assembler identation by Frieder
10002
10003 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
10004
10005         * as/z80/string.h: removed for gcc 3.2
10006         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
10007         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
10008
10009 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10010
10011         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
10012         * src/SDCCpeeph.c (replaceRule): fix bug #663503
10013         * support/regression/Makefile: separate temp files for ports
10014         * support/regression/generate-cases.py: separate temp files for ports
10015         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10016         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10017
10018 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10019
10020         * moved tinitalk to device/examples/ds390
10021
10022 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
10023
10024         * as/mcs51/lkmem.c: rflag is for DS390
10025         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
10026         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
10027                          (linkEdit): move mem- and map-files the same way as ihx-files
10028         * src/z80/main.c (_setDefaultOptions): removed --generic
10029         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
10030         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
10031         * src/pic/glue.c (picglue): --c1mode works again
10032         * src/pic16/glue.c (pic16glue): --c1mode works again
10033         * src/asm.c (printCLine): fix #660034
10034
10035 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
10036
10037         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
10038         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
10039         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
10040         * as/mcs51/lkmem (summary): better fix for sp problem
10041         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
10042         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
10043         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
10044                                               remove --stack-after-data
10045
10046 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
10047
10048         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
10049         * src/SDCCutil.c (join): ugly bug: missing '\0'
10050         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
10051
10052 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10053
10054         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
10055         * src/port.h: typo
10056         * src/pic/main.c (_asmCmd): gpasm supports -o
10057         * src/z80/main.c: more general macros
10058         * device/lib/Makefile.in: remove intermediate files
10059
10060 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10061
10062         * .version: Bumped version number to 2.3.3
10063         * src/SDCCBBlock.c: new option -o
10064         * src/SDCCglobl.h: new option -o
10065         * src/SDCCglue.c: new option -o
10066         * src/SDCCmain.c: new option -o
10067         * src/asm.c: new option -o
10068         * src/ds390/main.c: new option -o
10069         * src/pic/glue.c: new option -o
10070         * src/pic/pcode.c: new option -o
10071         * src/pic/ralloc.c: new option -o
10072         * src/pic16/glue.c: new option -o
10073         * src/pic16/pcode.c: new option -o
10074         * src/pic16/ralloc.c: new option -o
10075         * src/z80/main.c: new option -o
10076         * device/lib/Makefile.in: use -o
10077         * support/regression/ports/ds390/spec.mk: use -o
10078         * support/regression/ports/gbz80/spec.mk: use -o
10079         * support/regression/ports/mcs51/spec.mk: use -o
10080         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
10081         * support/regression/ports/z80/spec.mk: use -o
10082         * support/regression/ports/ucz80/spec.mk: use -o
10083         * support/regression/ports/xa51/spec.mk: use -o
10084         * support/regression/fwk/lib/timeout.c: fix usage string
10085
10086 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
10087         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
10088
10089 2003-01-07    <johan AT balder>
10090
10091         * src/SDCCast.c (decorateType): fixed bug #600035
10092
10093 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
10094         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
10095         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
10096         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
10097         * src/pic/pcode.c: outcommented unused variable to remove warnings
10098         * src/pic/ralloc.c: outcommented unused variable to remove warnings
10099
10100 2003-01-06    <karl AT turbobit.com>
10101         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
10102    regression tests.
10103
10104 2003-01-06    <johan AT balder>
10105
10106         * src/SDCCicode.c: fixed array add
10107
10108 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
10109         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
10110         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
10111
10112 2003-01-04    <johan AT balder>
10113
10114         * src/SDCCval.c (getNelements): fixed the initialized array of structures
10115
10116 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10117         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
10118
10119 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10120         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
10121         * support/regression/tests/bug-524697.c: fit mem usage into 8032
10122
10123 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10124         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
10125
10126 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
10127         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
10128
10129 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
10130         * src/mcs51/main.c: removed {bindir}{sep} from aslink
10131
10132 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10133
10134     * in \sdcc\as\mcs51\ changed these files in order to create an
10135     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
10136     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
10137     following files to include the previous two files: aslink.dsp,
10138     Makefile.aslink, Makefile.bcc, and Makefile.in.
10139
10140     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
10141     .adb instead of .cdb
10142
10143 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10144
10145         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
10146         value from option --iram-size.
10147
10148 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10149
10150         * \sdcc\as\mcs51\lklist.c: added boundary check before using
10151         dram[] array.
10152
10153 2002-09-18    <wiml AT hhhh.org>
10154
10155         * SDCClrange.h: exposed setFromRange() and setToRange()
10156         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
10157           packRegsForAccUse() (bug 542397)
10158         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
10159           multiple times and emitting the fetch operations more than once
10160           added aopGetUsesAcc() function to allow binary operators to
10161           fetch their operands in the correct order; made genMinus() emit
10162           compact code for X = LITERAL - Y
10163
10164 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10165         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
10166         sprintf() in line 1267.
10167
10168 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10169         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
10170         like ports.
10171
10172 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10173         Changes to aslink (All the changes are marked with 'JCF'):
10174
10175         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
10176         summary().
10177
10178         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
10179         area BSEG.  Also moves, if possible, the DATA area down into the internal
10180         ram so more space is available.
10181
10182         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
10183         sflag.
10184
10185         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
10186         not bytes.  Function summary() which creates a memory usage summary
10187         file with extension .mem.  Reports of overlaping stack and small stack
10188         size.  If the space for the stack is less than 16 bytes aslink trows a
10189         warning.
10190
10191         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
10192         the 8051.  Option 'y' for memory summary output file.
10193
10194         Changes to sdcc (All the changes are marked with 'JCF'):
10195
10196         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
10197
10198         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
10199         overlaying area for it (uses RegBankUsed[4]).
10200
10201         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
10202         bank zero as used by default.  By default aslink locates the stack
10203         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
10204         the creation of the .mem file.  Delegates the allocation of data area
10205         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
10206         the begining of the stack area to aslink.
10207
10208         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
10209         glue() in SDCCglue.c creates an area for it.
10210
10211 2002-09-03  Borut Razem <borut.razem AT siol.net>
10212         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
10213         sdcc/src/pic/glue.c:
10214         introduced atexit() handler for teporay files removal in case of
10215         errors, assertions, ...
10216
10217 2002-08-29  Borut Razem <borut.razem AT siol.net>
10218         * sdcc/support/cpp2/auto-host_vc_in.h:
10219         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
10220         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
10221         Maybe there is a similar problem with BORLANDC? It should be checked!
10222
10223         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
10224         corrected improper use of assert: the assignment to clr variable was done inside the assert.
10225         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
10226         was not executed, and the compiler (cl) launched a warning:
10227         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
10228
10229 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
10230         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
10231
10232 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
10233         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
10234
10235         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10236           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
10237           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
10238           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10239           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
10240           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
10241           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
10242         - added Release configuration in VS projects
10243         - review of compiler an linker options
10244         - VC .exe files are generated in bin_vc directory, not to interfere
10245           with binaries generated from other projects (cygwin, mingw, bcc ...)
10246
10247         * sdcc/src/yacc.dsp: added
10248
10249         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
10250         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
10251         and insert the version number definitions from .version
10252
10253         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
10254
10255         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
10256         added - genarate auto-host.h using auto-host_vc_in.h as template
10257
10258         * sdcc/sdcc_vc.h,
10259         removed from CVS, generated automatically
10260
10261 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
10262         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
10263
10264 2002-08-11  Borut Razem <borut.razem AT siol.net>
10265         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
10266
10267 2002-08-10  Borut Razem <borut.razem AT siol.net>
10268         * src/SDCCmain.c (main):
10269         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
10270         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
10271         The consequence was that some temporary files were not removed.
10272
10273         * src/SDCCglue.c:
10274         unification of code in functions tempfilename() and tempfile():
10275         function tempnam() is defined in Visual Studio 6.0 and .NET
10276
10277         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
10278
10279         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10280           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
10281         - removed compiler command line option /WX: Treats all warnings as errors
10282         - update a list of source files, included into the project
10283
10284         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10285           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
10286         changed project type to Generic Project so that can be correcly converted to VS.NET project
10287
10288         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
10289
10290         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
10291
10292         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
10293
10294         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
10295         added return 0 statements after assert() to make compiler happy
10296
10297         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
10298         added newline in the def file to keep MSC compiler satisfied
10299
10300         * sdcc/src/z80/gen.c:
10301         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
10302           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
10303         - solved MSC error in function aopDump()
10304
10305         * sdcc_vc.h: define PREFIX as "\\sdcc"
10306
10307 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
10308         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
10309
10310 2002-06-22  Scott Dattalo <scott AT dattalo.com>
10311         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
10312         - Rewrote the register banking algorithm.
10313         - Added pCode live-range analysis to registers (for now, only non-used and
10314         singly-used registers optimized away)
10315
10316         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
10317
10318         * 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.
10319
10320 2002-05-10  Scott Dattalo <scott AT dattalo.com>
10321         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
10322
10323 2002-04-22  Michael Hope  <michaelh AT vroom>
10324
10325         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
10326
10327         * configure.in (DD_COPT): Added include support required for gbdk.
10328
10329         * .version: Bumped version number just to increase it.
10330
10331         * src/SDCCmain.c: Added -nostdinc to the default options.
10332
10333 2002-04-15  Michael Hope  <michaelh AT vroom>
10334
10335         * device/lib/z80/printf.c (sprintf): Added.
10336
10337         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
10338
10339         * src/z80/peeph.def: Added transpose redundent load rule.
10340
10341         * src/z80/main.c: Added force callee saves for jaune.
10342
10343         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
10344
10345         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
10346
10347 2002-03-28  Johan Knol  <johan AT balder>
10348
10349         * src/SDCCval.c: fixed bug #532436
10350
10351 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10352         * /src/port.h:
10353         Added "char *Processor" field to the port structure.
10354
10355         * /src/SDCCmain.c:
10356         Added -p option. Allows port dependent processor to be specified.
10357
10358         * all ports:
10359         Initialized the new field char *Processor field to NULL in all ports
10360
10361         * /src/pic/*:
10362         Compiler generated registers for interrupt context saving
10363         were not getting allocated.
10364
10365 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
10366
10367         * /src/SDCCast.c:
10368         Fixed left shift. Will promote the left side of a left shift
10369         if a) left shifting more than size of operand or b) when assigned
10370         to something size > size of left side
10371
10372 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10373         * src/pic/*
10374         tons of changes. Register allocation has been
10375         rewritten. Added customization for the various PICs. Flow
10376         analysis is restructured. ...
10377
10378         * src/pic/device.h:
10379         Added
10380
10381         * src/pic/device.c:
10382         Added. device.c is a PIC port hack to accomodate variations
10383         in PIC devices.
10384
10385 2002-03-13  Michael Hope  <michaelh AT vroom>
10386
10387         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
10388
10389 2002-03-04  johanknol  <johanknol AT manik>
10390
10391         * /src/SDCCval.c: fixed
10392
10393         const unsigned char arr[][2] = { { 0, 1 } };
10394         t18.c:1: error: Initializer element is not constant
10395
10396 2002-03-04  bela  <bela AT manik>
10397
10398         * /device/include/mcs51reg.h:
10399         ds89c420 register definition update
10400
10401 2002-03-03    <johan AT FRIJA>
10402
10403         * support/Util/SDCCerr.c: did something, but don't no why anymore
10404
10405         * support/regression/tests/bug-524691.c: made it a little less shy
10406
10407         * src/SDCCast.c (decorateType): fixed bug #524697
10408
10409         * src/SDCCast.c: made some lineno improvements
10410
10411         * src/SDCCval.c (getNelements): changed warning to error
10412
10413         * src/SDCCglue.c (printIvalArray): changed warning to error
10414
10415         * src/SDCCicode.c: fixed a warning for mingw
10416
10417         * src/SDCCast.c (decorateType): fixed the << promotion for ops
10418
10419         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
10420
10421 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
10422
10423         * src/ds390/peeph.def:
10424         Added some more peephole rules
10425
10426         * src/ds390/gen.c: Various fixes & enhancements
10427
10428         * src/SDCClrange.c, src/SDCClrange.h:
10429         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
10430
10431         * src/ds390/ralloc.c:
10432         various fixes & enhancements (ds390) specific
10433
10434         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
10435         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
10436         from rallocs.
10437
10438         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
10439
10440 2002-03-02    <johan AT FRIJA>
10441
10442         * src/SDCCast.c (decorateType): fixed bug #524708
10443
10444         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
10445
10446         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
10447
10448 2002-03-01  Michael Hope  <michaelh AT vroom>
10449
10450         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
10451
10452         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
10453
10454 2002-03-01    <johan AT FRIJA>
10455
10456         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
10457
10458         * src/SDCCast.c (decorateType): fixed bug #524209
10459
10460         * src/SDCCval.c (valNot): fixed bug #524195
10461
10462 2002-02-26    <johan AT balder>
10463
10464         * src/xa51/gen.c: fixed a warning
10465
10466         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
10467
10468         * src/SDCCast.c (decorateType): fixed bug #522534
10469
10470 2002-02-23    <johan AT balder>
10471
10472         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
10473
10474 2002-02-22    <johan AT balder>
10475
10476         * src/SDCCast.c: fixed bug #514865
10477
10478         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
10479
10480 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
10481
10482         * sdcc/src/SDCCloop.c:
10483         Previous fix was not good. basic blocks that have "break" or "return" are
10484         not really partof a loop , but live ranges used in these blocks should
10485         be live thru the entire loop, so set partOfLoop but don't add them to
10486         loop region
10487
10488 2002-02-21    <johan AT FRIJA>
10489
10490         * src/SDCCcse.c: fixed bug #514308
10491
10492 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
10493
10494         * src/SDCCloop.c:
10495         Fixed BUG #519583. If a conditional block ended in a return/break
10496         statement inside a loop, it was not being considered part of the loop.
10497
10498         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
10499
10500 2002-02-10  Karl Bongers <karl AT turbobit.com>
10501
10502         * debugger/*:
10503         Fixed up SDCDB debugger somewhat.  Updated debugger/README
10504         with lots of comments and notes.
10505
10506         * device/examples/test2.c:
10507         Fix bug, "red" variable not being initialized(compiler complained).
10508
10509         * device/examples/Makefile, examples/test3.c:
10510         Add Makefile in device/examples folder, compiles test3.c
10511         for use as a multiple module SDCDB test case.
10512
10513         * sim/ucsim/cmd.src/cmdset.cc:
10514         Took out debug printfs in ucsim "next" command.
10515
10516         * sim/ucsim/xa.src:
10517         Karl and Johan start ucsim XA support.  Most dissassembly working,
10518         about 75% emulation done(plenty of work remaining).
10519
10520         * sim/ucsim/z80.src:
10521         Add Z80 support to ucsim, add test-ucz80 regression test,
10522         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
10523         Notice z80 compiler fails on examples/test3.c/crc code.
10524
10525 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
10526
10527         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
10528         Added support for --parms-in-bank1
10529
10530         * src/ds390/peeph.def:
10531         added a few more peephole optimzations
10532
10533         * src/ds390/main.c:
10534         1) added __builtin_inp & __builtin_outp used to read in data of given length
10535            from a memory mapped port
10536         2) added __builtin_memcmp
10537         3) added __builtin_swapw swap bytes of a short
10538
10539         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
10540         1) handle multiple send & receives from register bank1
10541         2) ralloc can now allocate DPTR1 to some liveRanges
10542
10543         * src/SDCCsymt.c, src/SDCCsymt.h:
10544         changes to handle multiple sends & receives
10545
10546         * src/SDCCptropt.h:
10547         added some pointer arithmetic optimization
10548
10549         * src/SDCCptropt.c:
10550         added some pointer arithmetic optimizations but not stable yet so not
10551         called from anywhere (will get this working shortly)
10552
10553         * src/SDCCopt.c: fixed for multiple sends & receives
10554
10555         * src/SDCCmain.c:
10556         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
10557         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
10558            set preprocessor defines (depending on options)
10559
10560         * src/SDCCicode.c, src/SDCCicode.h:
10561         changes made to handle multiple sends & receives
10562
10563         * src/SDCCglobl.h:
10564         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
10565
10566         * src/SDCCcse.c, src/SDCCcse.h:
10567         added function findbackward def (to be used in upcoming optimization)
10568
10569         * src/SDCCcflow.c, src/SDCCcflow.h:
10570         added function returnAtEnd - to determine if a basic block terminates with
10571         a RETURN iCode
10572
10573         * src/SDCCast.c, src/SDCCast.h:
10574         added option parms-in-bank1
10575
10576         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
10577         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
10578         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
10579         adjusted for --parms-in-bank1 option
10580
10581         * device/include/string.h:
10582         donot redefine "reentrant" keyword
10583
10584         * device/include/ds80c390.h: Added some more SFRs
10585
10586 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
10587
10588         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
10589
10590 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
10591
10592         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
10593
10594 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
10595
10596         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
10597
10598 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
10599
10600         * Added --xram-movc option
10601
10602 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
10603
10604         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
10605
10606 2002-01-11  Johan Knol
10607
10608         * Added math lib of Jesus Calvino-Fraga
10609
10610 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
10611
10612         * src/SDCCmain.c (processFile): fix processing of ../../src.c
10613         * support/regression/Makefile: new target test-mcs51-stack-auto
10614         * support/regression/ports/mcs51-stack-auto/spec.mk: added
10615
10616 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10617
10618         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
10619
10620 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10621
10622         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
10623
10624 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
10625
10626         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
10627
10628         * src/SDCCglue.h: add definition for printIvalChar()
10629
10630 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10631
10632         * src/SDCCast.c: fix #498138 by Johan
10633
10634         * src/SDCCglue.c: fix #498138 by Johan
10635
10636 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10637
10638         * support/regression/Makefile: fix clean
10639
10640         * support/regression/ports/ds390/support.c: fix transmission of last character
10641
10642 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
10643
10644         * /sdcc/src/ds390/gen.c:
10645         a) improved computing address of stack variable
10646         b) took out some #if 0 code
10647         c) improved parmBytes adjustment
10648         d) improved genPlusIncr & genMinusIncr
10649         e) genCmp could generate bad code (when left assigned to DPTR)
10650         f) Fixed bug in hasInc
10651
10652         * /sdcc/src/ds390/ralloc.c:
10653         a) packRegsForSupport could mess up live information (Fixed)
10654         b) packRegsDPTRuse could be incorrect for left & right shift
10655
10656         * /sdcc/src/mcs51/ralloc.c:
10657         packRegsForSupport could mess up the live information (Fixed)
10658
10659         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
10660
10661         * /sdcc/src/SDCCast.c:
10662         can reverse a loop even if function call is present as long
10663         as the loop control variable is local & is not passed as parameter
10664
10665 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10666
10667         * /sdcc/ChangeLog: *** empty log message ***
10668
10669         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
10670         More builtin function additions for TININative
10671
10672         * /sdcc/src/ds390/ralloc.c:
10673         Had broken the regression testsuite
10674
10675         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
10676
10677         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
10678         Added funcattr hasStackParms will be set for reentrant functions when there
10679         are paramteres on the stack, this helps in minimizing frame pointer generation
10680         typeFromStr can handle function pointers now
10681
10682         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
10683         *** empty log message ***
10684
10685 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10686
10687         * /src/ds390/gen.c, /src/ds390/main.c:
10688         More builtin function additions for TININative
10689
10690         * /src/ds390/ralloc.c:
10691         Had broken the regression testsuite
10692
10693         * /src/SDCCast.c: Fixed a bug in dumptree
10694
10695         * /src/SDCCsymt.c, /src/SDCCsymt.h:
10696         Added funcattr hasStackParms will be set for reentrant functions when there
10697         are paramteres on the stack, this helps in minimizing frame pointer generation
10698         typeFromStr can handle function pointers now
10699
10700         * /doc/builtins.txt, /doc/TININative.txt:
10701         *** empty log message ***
10702
10703
10704 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10705
10706         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
10707         ALPHA version for -mTININative
10708
10709         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
10710         updated to reflect changes in the port structure
10711
10712         * /src/port.h:
10713         added function do_assemble (similar to do_link) if non-null this function
10714         will be called to do assembly (-mTININative) requires a multi command
10715         assembly
10716         added function genAssemblerEnd will be called to generate assembler Epilogue
10717
10718         * /src/SDCCsymt.c:
10719         added _JavaNative to debug info printing
10720
10721         * /src/SDCCmain.c: added option --tini-libid
10722         added port->do_assemble function (-mTININative) has a multi command assemble
10723
10724         * /src/SDCCglue.c: Disabled "constExpr" check
10725         added port->genAssemblerEnd function
10726
10727         * /src/SDCCglobl.h: Added option --tini-libid value
10728
10729         * /src/SDCCast.h:
10730         tookout optimizeCompare from the header (has no external references)
10731
10732         * /src/SDCCast.c: made one more function "static"
10733
10734 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
10735
10736         * src/z80/mappings.i: Added z80asm support.
10737
10738         * src/z80/main.c: Added z80asm support on --asm=z80asm
10739
10740         * src/z80/gen.c: Fixed asm portability issues.
10741
10742         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
10743
10744         * src/SDCCglue.c (printExterns): Added global/extern split.
10745
10746 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
10747
10748         * support/regression/Makefile: added test for mcs51 model large
10749
10750         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
10751
10752         * support/regression/ports/gbz80/spec.mk: added -mgbz80
10753
10754 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
10755
10756         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
10757
10758 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
10759
10760         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
10761
10762         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
10763
10764 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
10765
10766         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
10767
10768         * support/regression/tests/simplefloat.c: Port to mcs51.
10769
10770 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
10771         * support/regression/tests/bug-485362.c: Added.
10772
10773         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
10774
10775         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
10776
10777         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
10778
10779         * src/z80/gen.c (aopDump): Added a dump function.
10780
10781 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
10782         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
10783
10784         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
10785
10786         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
10787
10788         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
10789
10790         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
10791
10792         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
10793
10794         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
10795
10796         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
10797
10798         * support/regression/ports/ds390/support.c: Use tinibios.
10799
10800         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
10801
10802 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
10803
10804         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
10805         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
10806
10807         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
10808
10809         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
10810
10811 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
10812
10813         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
10814
10815         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
10816         (packRegsForIYUse): Created and optimised.
10817
10818 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10819
10820         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
10821 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
10822
10823         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
10824
10825         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
10826
10827         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
10828
10829 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10830
10831         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
10832
10833         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
10834
10835 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10836
10837         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
10838
10839         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
10840
10841         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
10842
10843 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10844
10845         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
10846         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
10847         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
10848
10849         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
10850
10851         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
10852         (genNotFloat): Added.
10853         (genUminusFloat): Added.
10854
10855         * device/lib/z80/Makefile: Added floating pt stubs.
10856
10857         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
10858
10859         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
10860
10861         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
10862
10863 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
10864
10865         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
10866
10867         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
10868
10869         * sdcc/support/regression/Makefile: Add port ds390.
10870
10871         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
10872
10873         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
10874
10875         * sdcc/support/regression/ports/ds390/spec.mk: Added.
10876
10877         * sdcc/support/regression/ports/ds390/support.c: Added.
10878
10879         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
10880
10881         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
10882
10883         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
10884
10885 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
10886
10887         * device/include/malloc.h: Added z80 and gbz80 support.
10888
10889         * device/lib/gbz80/heap.s: Added.
10890
10891         * device/lib/z80/heap.s: Added.
10892
10893         * device/lib/malloc.c: Added z80 and gbz80 support.
10894
10895         * support/regression/tests/malloc.c (testMalloc): Added.
10896
10897         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
10898
10899         * support/regression/tests/bug-478094.c: Added.
10900
10901         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
10902
10903 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
10904
10905         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
10906
10907         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
10908
10909         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
10910
10911         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
10912
10913         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
10914
10915 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
10916
10917         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
10918
10919 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
10920
10921         * support/regression/tests/bug-477927.c: Added.
10922
10923         * src/z80/peeph.def: Added minor rules.
10924
10925         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
10926
10927         * src/z80/peeph.def: Added jump optimisation modification.
10928
10929 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
10930
10931         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
10932
10933 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
10934
10935         * support/regression/tests/funptrs.c: Added.
10936
10937 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
10938
10939         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
10940
10941 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
10942
10943         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
10944
10945         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
10946
10947         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
10948         (movLeft2ResultLong): Created.
10949
10950         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
10951         (joinPushes): Added.  Joins two char pushes into a word push.
10952
10953 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
10954
10955         * support/cpp2/Makefile.in (install): Added creation of dest dir.
10956
10957         * support/makebin/Makefile (install): Added creation of dest dir.
10958
10959 2001-10-24 Karl Bongers <karl AT turbobit.com>
10960
10961         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
10962
10963 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
10964
10965         * src/z80/ralloc.c: Turned off faulty pack for one use.
10966
10967         * src/z80/peeph-gbz80.def: Removed redundent restart options.
10968
10969         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
10970
10971 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
10972
10973         * support/regression/Makefile: Improved clean
10974
10975         * support/regression/ports/gbz80/spec.mk: Added clean
10976
10977         * support/regression/ports/host/spec.mk: Added clean
10978
10979         * support/regression/ports/z80/spec.mk: Added clean
10980
10981         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
10982
10983         * support/regression/ports/mcs51/timeout.c: little improvements
10984
10985 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
10986
10987         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
10988
10989         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
10990
10991         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
10992
10993 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
10994
10995         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
10996
10997         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
10998
10999 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
11000         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
11001
11002         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
11003
11004         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
11005
11006         * src/mcs51/main.c (_linkCmd): Added bin path to command.
11007
11008         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
11009
11010         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
11011
11012         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
11013
11014         * support/regression/tests/longor.c: Added.
11015
11016 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
11017
11018         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
11019
11020         * as/mcs51/aslink.h: define PATH_MAX
11021
11022         * as/mcs51/asm.h: define PATH_MAX
11023
11024         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
11025
11026         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
11027
11028         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
11029
11030         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
11031
11032         * src/SDCCglobl.h: define PATH_MAX
11033
11034         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
11035
11036         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
11037
11038 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
11039
11040         * src/z80/gen.c (gencjneshort): Fixed
11041
11042         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
11043
11044 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
11045
11046         * support/regression/tests/bug-469671.c: Added.
11047
11048         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
11049
11050 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
11051
11052         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
11053
11054         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
11055
11056 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
11057
11058         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
11059
11060         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
11061
11062         * src/device/lib/_mullong.c : removed hint: nooverlay bug
11063
11064         * src/device/lib/_divuint.c : removed hint: nooverlay bug
11065
11066         * src/device/lib/_divulong.c: removed hint: nooverlay bug
11067
11068         * src/device/lib/_moduint.c : removed hint: nooverlay bug
11069
11070         * src/device/lib/_modulong.c: removed hint: nooverlay bug
11071
11072 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
11073
11074         * 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.
11075
11076         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
11077
11078         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
11079
11080 2001-10-07    <johan AT FRIJA>
11081
11082         * device/lib/gets.c (gets): fixed the return value.
11083
11084 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
11085         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
11086
11087         * 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.
11088
11089         * 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.
11090
11091         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
11092
11093         * src/pic/gen.c: Removed Safe_strdup.
11094
11095         * configure.in: Added option to enable libgc support.
11096
11097         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
11098         (bitVectUnion): Optimised.
11099         (bitVectIntersect): Optimised.
11100         (bitVectBitsInCommon): Optimised.
11101         (bitVectCplAnd): Optimised.
11102
11103         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
11104
11105 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11106
11107         * src/SDCCmain.c: distinguish between assembler debug and plain options
11108
11109         * src/avr/main.c:   remove standard assembler options
11110
11111         * src/ds390/main.c: remove standard assembler options
11112
11113         * src/mcs51/main.c: remove standard assembler options
11114
11115         * src/port.h: removed "PENDING" comment
11116
11117 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11118
11119         * src/device/lib/_mulint.c  : new, with assember functions
11120
11121         * src/device/lib/_mullong.c : new, with assember functions
11122
11123         * src/device/lib/_divuint.c : with assember functions
11124
11125         * src/device/lib/_divsint.c : with assember functions
11126
11127         * src/device/lib/_divulong.c: with assember functions
11128
11129         * src/device/lib/_divslong.c: with assember functions
11130
11131         * src/device/lib/_moduint.c : with assember functions
11132
11133         * src/device/lib/_modsint.c : with assember functions
11134
11135         * src/device/lib/_modulong.c: with assember functions
11136
11137         * src/device/lib/_modslong.c: with assember functions
11138
11139         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
11140
11141         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
11142
11143         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
11144                                       replaced _mululong.c and _mulslong.c by _mullong.c
11145
11146 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11147
11148         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
11149
11150 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11151
11152         * src/SDCCglue.c: test, if win32api is available for MINGW
11153
11154 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11155
11156         * src/SDCCsymt.c: no more _modifier in printTypeChain()
11157         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
11158         * support/regression/ports/gbz80/spec.mk: removed GENERIC
11159         * support/regression/ports/host/spec.mk: removed GENERIC
11160         * support/regression/ports/mcs51/spec.mk: removed GENERIC
11161         * support/regression/ports/z80/spec.mk: removed GENERIC
11162
11163 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
11164
11165         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
11166
11167         * support/regression/tests/bug-467035.c: Created.
11168
11169 2001-10-01    <johan AT FRIJA>
11170
11171         * src/SDCC.y: fixed bug #466586 part 1
11172
11173 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
11174
11175         * SDCCicode.c: z80 has no generic pointers
11176         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
11177
11178 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
11179
11180         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
11181
11182 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
11183
11184         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
11185
11186         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
11187
11188 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
11189
11190         * configure.in: Fixed up so that ucsim is only configured once.
11191
11192         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
11193
11194         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
11195         (getPathDifference): As above.
11196
11197         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
11198
11199         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
11200
11201 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
11202         * .version: Updated to 2.3.1
11203
11204         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
11205         Added copyright header.
11206
11207         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
11208         (assemble): Added support for macro based assembler commands.
11209         (linkEdit): Added support for macro based linker commands.
11210         (preProcess): Changed the pre-processor to use macros.
11211         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
11212         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
11213
11214         * device/lib/z80/crt0.s: Added module name for debugging.
11215
11216 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
11217
11218         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11219
11220         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
11221
11222         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
11223
11224         * src/Makefile.in: Added SDCCmacro and SDCCutil
11225
11226 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
11227
11228         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11229
11230 2001-09-16    <johan AT FRIJA>
11231
11232         * 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.
11233
11234 2001-09-15    <johan AT FRIJA>
11235
11236         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
11237         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
11238
11239 2001-09-11    <johan AT FRIJA>
11240
11241         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
11242
11243 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
11244
11245         * support/regression/tests/bug-460444.c: Added test case.
11246
11247         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
11248         (genCast): Added justification for all of the asserts.
11249
11250 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
11251
11252         * support/regression/support.c: _xdata replaced by xdata
11253
11254         * support/regression/spec.mk: removed _generic
11255
11256 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
11257
11258         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
11259
11260         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
11261         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
11262
11263         * src/z80/peeph.def: Added a rule to optimise shift then compare.
11264
11265         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
11266
11267         * support/regression/tests/bug-460010.c: Added test case.
11268
11269         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
11270
11271 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
11272
11273         * support/regression/Makefile: inter-port-clean adjusted for mcs51
11274
11275         * support/regression/testfwk.c: removed workaround for bug #436344
11276
11277         * support/regression/tests/bp.c: use less memory with mcs51
11278
11279         * support/regression/tests/bug-441448.c: use less memory
11280
11281         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
11282
11283         * support/regression/collate-results.py: typo
11284
11285 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
11286
11287         * support/regression/tests/fetchoverlap.c: Added new test case.
11288
11289         * support/regression/tests/bp.c: Added new test case.
11290
11291         * support/regression/tests/bug-448984.c: Added new test case.
11292
11293         * support/regression/tests/pow2shifts.c: Added new test case.
11294
11295         * src/z80/gen.c: Turned off the noise it normally generates for the release.
11296         (genlshTwo): Fixed right shift for count > 8.
11297
11298         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
11299
11300 2001-09-08    <johan AT FRIJA>
11301
11302         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
11303
11304 2001-09-07    <johan AT FRIJA>
11305
11306         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
11307
11308         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
11309
11310 2001-09-06    <johan AT FRIJA>
11311
11312         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
11313         * bernhard noted me at this: "() equals to (void)" (1.38)
11314
11315 2001-09-05    <johan AT FRIJA>
11316
11317         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
11318
11319 2001-09-04    <johan AT FRIJA>
11320
11321         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
11322
11323
11324 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
11325
11326         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
11327
11328 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
11329
11330         * link/z80/aslink.h: Fixed path for PATH_MAX
11331
11332 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
11333
11334         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
11335
11336         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
11337
11338         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
11339
11340         * 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.
11341
11342 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
11343
11344         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
11345         (genCmp): Fixed up genCmp for the GB with longs.
11346
11347         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
11348
11349         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
11350
11351         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
11352
11353         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
11354
11355 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
11356
11357         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
11358
11359 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
11360
11361         * 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.
11362
11363         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
11364
11365 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
11366
11367         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
11368
11369         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
11370
11371 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
11372
11373   * sim/ucsim/configure:    little improvement of Cygwin-detection
11374   * sim/ucsim/configure.in: little improvement of Cygwin-detection
11375   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
11376   * support/regression/tests/bug-221100.c: small changes for mcs51
11377   * support/regression/tests/bug-221168.c: small changes for mcs51
11378   * support/regression/tests/bug-227710.c: small changes for mcs51
11379   * support/regression/tests/staticinit.c: small changes for mcs51
11380   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
11381   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11382   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11383
11384 $Revision$