git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4205 4a8a32a2...
[fw/sdcc] / ChangeLog
1 2006-06-02 Borut Razem <borut.razem AT siol.net>
2
3         * support/regression/ports/pic16/support.c: increase stack size
4           to 255 bytes
5         * support/regression/Makefile.in: sort tests by name so that the
6           resutlts can be compared on different machines / platforms
7
8 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
9
10         * device/lib/printf_large.c (output_digit): optimized further, Tnx Frieder
11         * src/ds390/gen.c (emitLabel): new, added,
12           (genDjnz): fixed stack overflow bug,
13           (throughout): cosmetic changes to sync with mcs51/gen.c,
14           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl)
15         * src/mcs51/gen.c (genEndFunction): small optimization,
16           (throughout): cosmetic changes to sync with ds390/gen.c
17
18 2006-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
19
20         * device/lib/printf_large.c (output_digit, calculate_digit): optimized,
21           (_print_format): fixed printing pointers
22         * src/mcs51/gen.c (emitLabel, movb): new, added,
23           (genAssign): small optimization,
24           (genDjnz): fixed stack overflow bug,
25           (throughout): replaced sprintf with SNPRINTF,
26           replaced mcs51_regWithIdx with REG_WITH_INDEX,
27           replaced emitcode("mov", "b,...") with MOVB(...),
28           replaced emitcode("", "%05d$:", lbl->key + 100) with emitLabel(lbl),
29           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
30         * src/mcs51/peeph.def: added rules 140 and 264
31         * src/SDCCmem.c (allocLocal): store register declared locals in DSEG/OSEG
32           so they may get optimized into registers
33
34 2006-05-30 Maarten Brock <sourceforge.brock AT dse.nl>
35
36         * src/SDCCmain.c (optionsTable, parseCmdLine): handle --use-stdout
37           immediately when encountered,
38           (printUsage): always use stderr even on windows
39
40 2006-05-30 Bernhard Held <bernhard AT bernhardheld.de>
41
42         * src/SDCCast.c (isLoopCountable): fixed bug #1478316
43         (processParms): fixed bug #1247551
44         * src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
45         parseCmdLine, main): print '--version' to stdout,
46         print 'help' to stdout if --help is given,
47         print 'help' to stderr and exit with EXIT_FAILURE if no or bad
48         arguments are given; fixed --help
49
50 2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
51
52         * src/SDCCcse.c (findPointerSet): fixed bug #1493710
53         * support/regression/tests/bug-1493710.c: added
54
55 2006-05-27 Borut Razem <borut.razem AT siol.net>
56
57         * support/regression/fwk/lib/testfwk.c: define array in _printn() as
58           static instead auto
59         * support/regression/ports/pic16/support.c: increase stack size
60           from default 64 bytes to 128 bytes
61         * support/regression/tests/staticinit.c,
62           support/regression/tests/float.c: regression tests fully enabled
63           for pic16 port by putting the initialized data arrays into the code
64           section
65         * support/regression/ports/pic16/spec.mk: don't link default libraries.
66           This was changed by mistake in the previous version.
67
68 2006-05-28 Vangelis Rokas <vrokas AT users.sourceforge.net>
69
70         * src/pic16/gen.c (genFunction, genEndFunction): some
71         beautifications, fixed bug with falsely restoring FSR2 in large
72         stack model, thanks to Beau E. Cox for reporting the bug
73
74 2006-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
75
76         * debugger/mcs51/break.c,
77         * debugger/mcs51/cmd.c (throughout): removed unused variables and labels,
78           use %p to print pointers, made address variables unsigned
79         * debugger/mcs51/cmd.c (infoSymbols): added missing parameter to printf
80         * debugger/mcs51/symtab.c (parseSymbol): must return something
81         * src/mcs51/gen.c (aopForSym): small optimization,
82            moved declarations mcs51_ptrRegReq and mcs51_nRegs to ralloc.h,
83           (freeAsmop): added missing break,
84           (aopPut): removed parameter bvolatile, determine it inside the function,
85           (saveRegisters, unsaveRegisters): small optimization,
86           (genIpush): removed pointless check,
87           (throughout): replaced Safe_calloc, strcpy with Safe_strdup,
88           replaced sprintf with SNPRINTF,
89           replaced strcpy with strncpyz,
90           updated aopPut calls,
91           replaced D(emitcode("; genXXX", "")) with D(emitcode(";", "genXXX"))
92         * src/mcs51/ralloc.h:  added declarations mcs51_ptrRegReq and mcs51_nRegs
93
94 2006-05-24 Borut Razem <borut.razem AT siol.net>
95
96         * support/regression/tests/bug-221100.c: fixed xdata problem caused by
97           modification of test for the pic16 port, put the array to the code
98           memory for pic16port; thanks to Maarten Brock and Frieder Ferlemann
99
100 2006-05-23 Jesus Calvino-Fraga <jesusc at ece.ubc.ca>
101
102         * src/pic/gen.c: MSC 6 does not have <stdint.h>.  Use pstdint.h instead.
103         * support/Util/pstdint.h: added
104
105 2006-05-22 Borut Razem <borut.razem AT siol.net>
106
107         * src/regression/Makefile: removed bool2.c test, added -q linker option
108         * src/regression/add2.c, src/regression/add3.c, src/regression/bool1.c,
109           src/regression/bool3.c, src/regression/nestfor.c, src/regression/ptrfunc.c,
110           src/regression/compare.c, src/regression/or1.c, src/regression/compare2.c,
111           src/regression/while.c, src/regression/compare3.c, src/regression/compare4.c,
112           src/regression/compare5.c, src/regression/sub2.c, src/regression/rotate1.c,
113           src/regression/rotate2.c, src/regression/rotate3.c, src/regression/rotate4.c,
114           src/regression/switch1.c, src/regression/rotate5.c, src/regression/for.c,
115           src/regression/add.c, src/regression/sub.c, src/regression/call1.c:
116           define SUPPORT_BIT_TYPES 0, removed unused bit variables
117
118 2006-05-22 Raphael Neider <rneider AT web.de>
119
120         * src/pic16/gen.c (pic16_storeForReturn): fragile fix for
121           bug #1492360 (problematic due to generic pointers, see code)
122
123 2006-05-22 Borut Razem <borut.razem AT siol.net>
124
125         * support/regression/ports/pic16/specs.mk: removed stack size linker
126           directive
127         * support/regression/tests/array.c,
128           support/regression/tests/bitopcse.c,
129           support/regression/tests/bug-908454.c,
130           support/regression/tests/malloc.c: modified for pic16 regression test
131         * support/regression/tests/bitfields.c:
132           pic16 - excluded bitfileds of size > 8
133         * support/regression/tests/bp.c: pic16 - reduced data size
134         * support/regression/tests/bug-221100.c: pic16 - reduced data size
135         * support/regression/tests/bug-460010.c:
136           pic16 - used the absolute address the fits in memory
137         * support/regression/tests/bug-716242.c:
138           bug [ 1443651 ] pic 16: redefining symbol that cannot be redefined.
139         * support/regression/tests/float.c:
140           pic16 - excluded - data size too big
141         * support/regression/tests/onebyte.c:
142           pic16 - bug [ 1444425 ] onebyte.c regression tes fails on pic16
143         * support/regression/tests/shifts.c:
144           pic16 - function names probably have to differ in first X characters
145           (gpasm limitation?)
146         * support/regression/tests/staticinit.c:
147           pic16 - excluded some tests due error: no target memory available for
148           section ".idata"
149
150 2006-05-22 Borut Razem <borut.razem AT siol.net>
151
152         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
153           second try. Thanks Stas Sergeev once more.
154
155 2006-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
156
157         * src/hc08/gen.c (transferAopAop): aop forced to stack was not restored,
158           (genLeftShift, genRightShift): fixed bug 1491627
159         * src/hc08/peeph.def (rules 7, 8.x): added
160         * support/regression/tests/shifts.c (ShiftLeftByParam,
161           ShiftRightByParam, testShiftByParam): added to test variable shifting
162
163 2006-05-20 Raphael Neider <rneider AT web.de>
164
165         * src/pic/gen.c (bitpatternFromVal): fixed for 64-bit machines
166         * src/pic16/ralloc.c (newReg): use correct name in hashtable,
167           (allocReg): add only new registers to dynAllocRegs,
168           (pic16_assignRegisters): do not reset dynrIdx, fixes bugs
169             #1489055, #1445850, and probably #1483693
170
171 2006-05-19 Vangelis Rokas <vrokas AT users.sourceforge.net>
172
173         * src/pic16/glue.c (pic16_emitConfigRegs, pic16_emitIDRegs): fixed
174         bug in for-loop that didn't emit the last of CONFIG and ID registers
175
176 2006-05-18 Maarten Brock <sourceforge.brock AT dse.nl>
177
178         * src/mcs51/gen.c (genCodePointerGet): inc dptr instead of loading acc
179           with offset
180         * src/mcs51/peeph.def (186.x): updated and reenabled to fix bugs
181           1489016, 1434401 and 1490124
182         * src/ds390/peeph.def (186.x, 227.x): updated and reenabled to fix bugs
183           1489016, 1434401 and 1490124
184
185 2006-05-17 Borut Razem <borut.razem AT siol.net>
186
187         * support/Util/dbuf.c: fixed bug #1489008 fix dbuf_c_str(),
188           thanks Stas Sergeev
189
190 2006-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
191
192         * device/include/mcs51/P89c51RD2.h,
193         * device/include/mcs51/P89LPC901.h,
194         * device/include/mcs51/P89LPC922.h,
195         * device/include/mcs51/P89LPC932.h: added, thanks Omar Espinosa
196
197 2006-05-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
198
199         * device/lib/pic16/libsdcc/stack/{stack.S, Makefile.in}: add workaround
200         to fix missing stack pragma in compiled binary object file,
201
202 2006-05-14 Bernhard Held <bernhard AT bernhardheld.de>
203
204         * support/packihx/configure.in,
205         * support/packihx/configure: removed warning, autoconf >= 2.5x can
206         determine sizeof basic types even while cross compiling
207
208 2006-05-13 Bernhard Held <bernhard AT bernhardheld.de>
209
210         * src/avr/gen.c (aopop),
211         * src/ds390/gen.c (aopOp),
212         * src/hc08/gen.c (aopOp),
213         * src/mcs51/gen.c (aopop),
214         * src/pic16/gen.c (pic16_aopOp),
215         * src/pic/gen.c (aopOp),
216         * src/z80/gen.c (aopop): fix for bug #1479882; use new, exclusive asmop
217         if size of operand is smaller than spill location
218
219 2006-05-12 Borut Razem <borut.razem AT siol.net>
220
221         * *.dsw, *.dsp: changed property svn:eol-style to CRLF since they
222           have to have CR/LF line endings even if they are checked out on *nix
223           or on WIN32 in cygwin binmode
224
225 2006-05-12 Maarten Brock <sourceforge.brock AT dse.nl>
226
227         * doc/sdccman.lyx: documented numeric ranges, WEBDOC #1442369
228         * device/include/ds80c390.h: added sfr16 definitions
229         * src/ds390/gen.c,
230         * src/ds390/gen.h,
231         * src/ds390/main.c,
232         * src/ds390/ralloc.c,
233         * src/ds390/ralloc.h: changes all over the place to sync with mcs51
234           fixing several bugs and adding sfr16/sfr32, reentrant bit params,
235           bit returning functions
236         * support/regression/tests/sfr16.c: enabled test on ds390
237
238 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
239
240         * src/hc08/gen.c (asmopToBool, genIfx): fix for bug #1429722
241         * src/hc08/gen.c (storeRegToAop): fix for bug #1439894
242
243 2006-05-11 Maarten Brock <sourceforge.brock AT dse.nl>
244
245         * sim/ucsim/sim.src/memcl.h: added get_decoder() to cl_address_space
246         * sim/ucsim/sim.src/mem.cc: implemented cl_address_space::get_decoder,
247           (cl_address_space constructor): removed expensive initialization,
248           (cl_address_space::get_cell): extended for late initialization,
249           (cl_address_space::*): use late initialization,
250           (cl_address_decoder::activate): removed expensive initialization,
251           This reduced regression test running time by 25%
252
253 2006-05-11 Bernhard Held <bernhard AT bernhardheld.de>
254
255         * packihx/,
256         * configure.in,
257         * configure,
258         * sdcc.dsw,
259         * Makefile.bcc,
260         * Makefile.in,
261         * support/packihx/Makefile.in,
262         * support/packihx/clean.mk,
263         * support/packihx/Makefile.bcc,
264         * support/packihx/PackIhx.dsp: moved packihx to support/packihx
265
266 2006-05-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
267
268         * src/SDCCval.c (valNot): fix for regression test failure
269           of not.c on big endian hosts
270
271 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
272
273         * device/inlcude/mcs51/msc1210.h: new, added, thanks Philippe Latu
274
275 2006-05-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
276
277         * device/lib/mcs51/Makefile.in: changed string comparison operator
278           to = for POSIX compliance; == is bash extension
279
280 2006-05-10 Maarten Brock <sourceforge.brock AT dse.nl>
281
282         * device/lib/hc08/_mulint.c: applied patch 1485428, thanks
283           kosmonaut_pirx
284
285 2006-05-09 Vangelis Rokas <vrokas AT users.sourceforge.net>
286
287         * src/pic16/gen.c (pic16_freeAsmop): release any temp registers
288         allocated by aopForSym thus fixing bug #1478657 about failed testfwk.c
289         * src/pic16/main.c (_pic16_keywords): added 'sfr16' keyword,
290         * src/pic16/ralloc.c (pic16_allocWithIdx): also a fix for bug exposed by
291         bug report #1478657,
292
293 2006-05-05 Borut Razem <borut.razem AT siol.net>
294
295         * doc/Makefile.in: remove of WARNINGS and labels.pl immediately after
296           making the html
297
298 2006-05-02 Borut Razem <borut.razem AT siol.net>
299
300         * doc/Makefile.in: removed *.ind dependency since there is no rule to
301           create *.ind, which made make to fail if invoked with -j 2
302
303 2006-05-01 Maarten Brock <sourceforge.brock AT dse.nl>
304
305         * src/SDCCglue.c (emitRegularMap): partial fix for bug 1477149, thanks
306           Hubert Sack for patch 1479782
307
308 2006-05-01 Vangelis Rokas <vrokas AT users.sourceforge.net>
309
310         * src/pic16/glue.c (pic16_printIvalStruct): fixed bug #1445929
311
312 2006-05-01 Raphael Neider <rneider AT web.de>
313
314         * src/pic/device.c (sanitise_processor_name): only remove p(ic) prefix,
315           (create_pic): store only prefix-free device name,
316           (init_pic): check for device names with "16" prefix,
317           (list_valid_pics),
318         * src/pic/device.h (struct PIC_device),
319         * src/pic/main.c (_pic14_genAssemblerPreamble): adapted to single
320             stored device name,
321         * device/include/pic/pic12f{635,675,629,683}.h,
322         * device/lib/pic/libdev/pic12f{635,675,629,683}.c: NEW device libraries
323         * device/lib/pic/libdev/Makefile.in: allow pic12* devices,
324         * device/include/pic/pic16f505.h,
325         * device/lib/pic/libdev/pic16f505.c: removed
326         * device/include/pic/pic14devices.txt: added support for pic12f
327             devices, removed unsupported non 16-bit devices
328             [above changes provided by patch from Zik Saleeba]
329         * src/pic/*, src/pic16/*, device/include/pic16/*,
330           device/lib/pic/**, device/lib/pic16/**: obfuscated email address
331
332 2006-05-01 Borut Razem <borut.razem AT siol.net>
333
334         * configure.in, configure, doc/Makefile.in:
335           sync with nightly build makefile - latex, dvipdf and dvips
336           not needed any more
337
338 2006-04-30 Bernhard Held <bernhard AT bernhardheld.de>
339
340         * support/scripts/sdcc.nsi: removed all Readmes and Makefiles
341         in the library source
342
343 2006-04-30 Maarten Brock <sourceforge.brock AT dse.nl>
344
345         * support/regression/ports/hc08/spec.mk: fixed bug 1478892
346
347 2006-04-28 Raphael Neider <rneider AT web.de>
348
349         * src/pic16/pcode.c (pic16_newpCodeOpLit12),
350         * src/pic16/gen.c (pic16_popGetLit12): NEW, create 12 bit literal,
351           (pic16_loadFSR0): handle 12 bit literals correctly, fixes #1440527
352         * src/pic16/pcode.h: added prototype for pic16_newpCodeOpLit12()
353
354 2006-04-28 Bernhard Held <bernhard AT bernhardheld.de>
355
356         * device/lib/pic/libdev/Makefile.in,
357         * device/lib/hc08/Makefile.in,
358         * device/lib/gbz80/Makefile.in,
359         * device/lib/z80/Makefile.in,
360         * device/lib/ds390/Makefile.in,
361         * device/lib/ds400/Makefile.in: added srcdir to include search path,
362         thanks to Borut for the bug report
363         * configure.in,
364         * configure: always create doc/Makefile independent from --enable-doc
365         * Makefile.in: always install from directory doc independent from
366         --enable-doc
367         * device/lib/pic/Makefile.in: added libdev again, it was erroneously
368         removed
369         * device/lib/pic/libdev/Makefile.in: fixed VPATH build
370         * doc/Makefile.in: install *.txt if present
371         * device/include/Makefile.in (install): added installation of pic/*.inc
372         and pic/*.txt files again, they were erroneously removed
373
374 2006-04-28 Raphael Neider <rneider AT web.de>
375
376         * src/pic/{gen.c,main.h,pcode.c},
377         * src/pic16/{gen.c,pcode.c}: quietened compiler warnings
378             concerning signedness with casts
379
380 2006-04-28 Raphael Neider <rneider AT web.de>
381
382         * src/pic/gen.c (genFunction): set global pic14_hasInterrupt on
383             definition of an interrupt handler,
384         * src/pic/glue.c (pic14_emitInterruptHandler): moved output of
385             interrupt handler stuff from picglue() to separate routine,
386           (picglue): enabled definition of intr handlers in files w/o main()
387
388 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
389
390         * support/librarian/sdcclib.c: moved include <limits.h> up to enable
391           compilation with MSVC 2005 Express Edition (VC8)
392
393 2006-04-26 Bernhard Held <bernhard AT bernhardheld.de>
394
395         * device/lib/Makefile: fixed build of gbz80 lib
396
397 2006-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
398
399         * support/regression/tests/bug-460010.c,
400         * support/regression/tests/bug-524691.c,
401         * support/regression/tests/bug-716242.c: removed conditional defines
402           that are already in testfwk.h
403
404 2006-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
405
406         * src/ds390/gen.c (AccAXRrl1, AccAXLrl1): changed to real rotate by 1,
407           (AccAXRsh1): added, shift right by 1,
408           (AccAXLsh, AccAXRsh, AccAXRshS): updated for AccAXRrl1, AccAXRsh1 and
409            AccAXLrl1
410         * support/regression/tests/rotate.c: use <stdint.h> and enabled ds390
411
412 2006-04-25 Bernhard Held <bernhard AT bernhardheld.de>
413
414         * src/SDCCast.c (decorateType): partial fix for RFE 1475769,
415         remove cast to same type
416         * src/SDCCast.c (decorateType): fix for RFE 1475742,
417         optimize 'ifx (op == 0)' resp. 'ifx (op != 0)'
418         * as/z80/Makefile,
419         * link/z80/Makefile: removed, they have moved to
420         Makefile.in files
421         * configure,
422         * configure.in: replaced duplicate message about ucsim by missing sdcpp
423         * install-sh: fix bug #1204398 by setting umask 0022
424         * device/lib/Makefile: separate build of z80 and gbz80 lib
425
426 2006-04-24 Bernhard Held <bernhard AT bernhardheld.de>
427
428         Enabled VPATH feature: changed nearly all Makefiles (149 files).
429         See sdccman.lyx '2.4.10 VPATH feature' about how to use it.
430
431         One basic decision: e.g. src/clean.mk includes further files. In order
432         to make this work there are two solutions:
433         - rename another dozen clean.mk to clean_in.mk, add srcdir to them and
434           run configure on them. This way they can use
435           'include $(srcdir)/port-clean.mk'
436         - always include clean.mk by the Makefile at the same level. To avoid
437           that `make clean` tries to include and build Makefile.dep the
438           MAKECMDGOALS are examined (see e.g. src/Makefile.in). This has been
439           implemented, because now even `make uninstall` doesn't create
440           Makefile.in. clean.mk could be eliminated by pasting it in
441           Makefile.in.
442
443         * debugger/mcs51/Makefile.in: build own objects from library sources
444         (SLIB, SDCC) in current directory
445
446         * configure, configure.in: renamed --disable-device-lib-build in
447         --disable-device-lib; added --enable-doc, the required tools are
448         searched by configure; added result message; the toolchain for the
449         belonging ports are now only built, if the port is enabled.
450
451         * support/regression/*: all output is written in directory gen, because
452         the fwk and ports directories don't livet in the build tree using vpath
453
454         * doc/sdccman.lyx: renamed --disable-device-lib-build to
455         --disable-device-lib, added --enable-doc, added section VPATH
456
457         * sim/ucsim/configure.in,
458         * sim/ucsim/configure.in: hc08 couldn't be disabled, now hc08 and
459         z80 are enabled by default
460
461 2006-04-24 Raphael Neider <rneider AT web.de>
462
463         * src/pic/device.c (pic14_assignConfigWordValue): remember assignments
464             to config word, "pic14_"-prefixed some extern functions
465           (pic14_emitConfigWord): emit __config directive(s) if assignment to
466             config word has been found
467         * src/pic/device.h: added prototypes
468         * src/pic/pcode.c: added "pic14_"-prefix where needed
469         * src/pic/ralloc.c (IS_CONFIG_ADDRESS,pic14_assignRegisters): cosmetic
470             fixup
471         * src/pic/glue.c (pic14_constructAbsMap): handle assignments to config
472             words,
473           (pic14emitRegularMap): ignore config words,
474           (pic14createInterruptVect): moved generating __config directives away
475           (picglue): have __config directives emitted
476
477 2006-04-24 Borut Razem <borut.razem AT siol.net>
478
479         * doc/Makefile: sync with nightly build makefile
480
481 2006-04-24 Raphael Neider <rneider AT web.de>
482
483         * src/pic/pcoderegs.c (OptimizeRegUsage): do not optimize
484             registers that have not been assigned proper liveranges,
485             fixes #1469504 and #1474602,
486           (pCodeRegOptimizeRegUsage): fixed typo in comment
487
488 2006-04-24 Borut Razem <borut.razem AT siol.net>
489
490         * device/examples/main8051.c: deleted - it was removed from CVS
491           24.mar.2000 and after that modified 18.feb.2001, so it reappered
492           after the transition to Subversion
493         * src/SDCCalloc.h: deleted - it was removed  from CVS
494           3.feb.2001 and after that modified 18.feb.2001, so it reappered
495           after the transition to Subversion
496         * sim/ucsim/cpu.gif, sim/ucsim/interrupt.gif, sim/ucsim/new.gif,
497           sim/ucsim/serial1.gif, sim/ucsim/serial2.gif,
498           sim/ucsim/term_cpuopt.gif, sim/ucsim/timers.gif, sim/ucsim/wins.gif,
499           sim/ucsim/post.jpg, sim/ucsim/UCsim.jpg: corrected
500
501 2006-04-22 Maarten Brock <sourceforge.brock AT dse.nl>
502
503         * as/asx8051.dsp: added mcs51/strcmpi.h
504         * as/hc08/as_hc08.dsp: added asm.h, m6808.h, strcmpi.h
505         * as/hc08/aslink.h: updated lnksect prototype
506         * as/hc08/asm.h,
507         * as/mcs51/asm.h: added a_addr to struct area and s_org to struct sym
508         * as/hc08/asmain.c,
509         * as/mcs51/asmain.c (asmbl): init dot.s_org for S_ORG,
510           (newdot): handle A_ABS
511         * as/hc08/asout.c,
512         * as/mcs51/asout.c (outarea): output address
513         * as/hc08/lkaomf51.c,
514         * as/mcs51/lkaomf51.c: disabled unused array UsageType
515         * as/hc08/m08pst.c,
516         * as/mcs51/i51pst.c,
517         * as/z80/z80pst.c: "ABS" is not A_OVR
518         * as/hc08/lkarea.c (newarea): read a_addr,
519           (lnkarea): added codemap array, sort absolute areas to the front,
520            combine all GSINITx/GSFINAL,
521           (find_empty_space, allocate_space): new functions,
522           (lnksect): return next address, handle absolute sections
523         * as/mcs51/lkarea.c (newarea): read a_addr,
524           lnksect2 prototype changed,
525           (lnkarea2): define codemap unsigned, combine all GSINITx/GSFINAL,
526           (find_empty_space, allocate_space): new, factored out of lnksect2,
527           (lnksect2): return next address, handle absolute sections
528         * as/hc08/lkhead.c,
529         * as/mcs51/lkhead.c (newhead): head is absolute but not overlay
530         * as/hc08/lklibr.c (addfile, fndsym),
531         * as/mcs51/lklibr.c (addfile, buildlibraryindex, fndsym): prevent
532           index out of range and detect both '\' and '/'
533         * device/include/mcs51/c8051f200.h: added _XPAGE, removed bad comment
534         * device/include/stdbool.h: removed SDCC_ds390 from check to pass
535           regression tests (ds390 cannot return bool yet)
536         * doc/sdccman.lyx: changed version number, document changed --no-peep,
537           document critical interrupts on z80, document changed SDCC define
538         * src/asm.c (_asxxxx_mapping): fixed .org directive,
539           (_a390_mapping): added .org directive
540         * src/hc08/gen.c (transferAopAop): made bytemask log to fix warning,
541           (genMultOneByte): fixed warnings
542         * src/hc08/hc08.dsp: lowered warning level to 2 to suppress pedantic
543           ones
544         * src/pic16/device.c: removed newReg prototype, removed BYTE_IN_LONG
545         * src/pic16/gen.c (pic16_popGetLabel): made parameter key signed,
546           (pic16_genLeftShiftLiteral, genRightShiftLiteral): fixed warnings
547         * src/pic16/gen.h: changed prototype for pic16_popGetLabel
548         * src/pic16/main.c: removed newReg prototype
549         * src/pic16/pcode.c,
550         * src/pic16/pcode.h (pic16_emitDB): changed parameter c to int to fix
551           warnings
552         * src/pic16/pic16.dsp: lowered warning level to 2 to suppress pedantic
553           ones
554         * src/pic16/ralloc.c
555         * src/pic16/ralloc.h (newReg): changed type to int and size to unsigned
556           to fix warnings
557         * src/pic/pcode.c (allocInternalRegister): changed parameter optype
558           from short to PIC_OPTYPE
559         * src/pic/pic.dsp: lowered warning level to 2 to suppress pedantic ones
560         * src/pic/ralloc.c (newReg, allocInternalRegister): changed parameter
561           optype from short to PIC_OPTYPE
562         * src/port.h: made int_size unsigned to fix warnings
563         * src/SDCC.y: fixed warning on MSVC
564         * src/SDCCicode.c (getArraySizePtr): return unsigned int
565         * src/SDCCopt.c (convertToFcall): fixed warnings
566         * src/SDCCsymt.h: removed double prototype for genSymName
567         * src/xa51/ralloc.c (allocReg): made size unsigned int, type int and
568           offset int to fix warnings
569
570 2006-04-22 Borut Razem <borut.razem AT siol.net>
571
572         * doc/sdccman.lyx, */Makefile, */Makefile.in:
573           references to CVS replaced with Subversion
574
575 2006-04-21 Borut Razem <borut.razem AT siol.net>
576
577         * doc/sdccman.lyx, */Makefile, */Makefile.in:
578           references to CVS replaced with Subversion
579
580 2006-04-19 Borut Razem <borut.razem AT siol.net>
581
582         * src/version.awk: adapted for svn
583         * /asxxxx/asxhtml/*.gif: set property svn:mime-type to image/gif
584           sim/ucsim/doc/*.gif: set property svn:mime-type to image/gif
585           sim/ucsim/doc/*.jpg: set property svn:mime-type to image/jpeg
586           /binutils-avr/etc/*.vi, *.jin: removed all properties
587           support/scripts/sdcc.ico: set property svn:mime-type to image/x-icon
588
589 2006-04-19 Borut Razem <borut.razem AT siol.net>
590
591         * CVS to Subversion migration completed
592
593 2006-04-18 Borut Razem <borut.razem AT siol.net>
594
595         * support/scripts/sdcc.nsi: removed unexisting ${DEV_ROOT}\lib\pic\*.o,
596           ${DEV_ROOT}\lib\src\pic\libdev\*.S, ${DEV_ROOT}\lib\src\pic\libdev\*.inc
597
598 2006-04-17 Borut Razem <borut.razem AT siol.net>
599
600         * device/include/Makefile.in: added pic/*.inc to the installation
601
602 2006-04-15 Bernhard Held <bernhard AT bernhardheld.de>
603
604         * support/regression/collate-results.py: fixed output in case of
605         a valdiag error
606         * support/regression/generate-cases.py: fixed splitting of pathnames
607         with dots
608         * as/hc08/lklibr.c (addfile),
609         * as/mcs51/lklibr.c (addfile): fixed off-by-one bug
610
611 2006-04-11 Raphael Neider <rneider AT web.de>
612
613         * src/pic16/gen.c (getFreePtr, pic16_popRegFromString),
614         * src/pic16/ralloc.c (pic16_allocregWithName): removed debug output
615         * src/pic16/pcode.c (assignValnums): fixed #1460578
616
617 2006-04-11 Raphael Neider <rneider AT web.de>
618
619         * device/lib/pic/libdev/*.c,
620         * device/include/pic/*.h: replaced sfr and data with __sfr and __data,
621           fixes #1468739, enables compilation in --std-c99 mode
622         * support/scripts/inc2h.pl: emit __sfr/__data instead of sfr/data
623
624 2006-04-11 Raphael Neider <rneider AT web.de>
625
626         * src/pic/device.c (find_device): removed debug output
627           (list_valid_pics): enabled verbose listing of supported devices
628         * device/include/stdbool.h: define bool as char for pic14/16 as well
629
630 2006-04-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
631
632         * src/SDCC.y: allow using brackets here: "__interrupt (1) __using (1)"
633
634 2006-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
635
636         * .version: bumped version to 2.5.6
637         * src/pic/ralloc.c (newReg): MSVC doesn't support __builtin_return_address
638
639 2006-04-06 Raphael Neider <rneider AT web.de>
640
641         * .version: bumped version to 2.5.6 (pic14 ABI changed)
642         * src/SDCCmain.c: add -DSDCC_PROCESSOR=<id> for pic14 port
643         * src/pic/glue.c (emitSymbolToFile,pic14_constructAbsMap,
644           pic14emitRegularMap,pic14emitMaps): moved output for absolute symbols to
645             pic14_constructAbsMap
646           (pic14printPublics): declare absolute global symbols as global
647           (pic14createInterruptVect),
648         * src/pic/ralloc.c (IS_CONFIG_ADDRESS): support second config word,
649           (newReg): assume new registers unused, use correct name in
650             hashtable (reg->name instead of name), more debugLog output
651         * src/pic/device.h (PIC_device): added fields for verbose output
652         * src/pic/device.c: moved device definition to pic14devices.txt,
653             added routines for runtime parsing of pic14devices.txt,
654             added support for second config word
655         * src/pic/main.c (_process_pragma): removed #pragma maxram,
656           (_pic14_keywords): no longer accept "bit" and "sbit" keywords
657           (_pic14_initPaths): add search paths with "pic" suffix (not "pic14")
658           (_pic14_parseOptions): moved pCodeInitRegisters here
659           (_pic14_do_link): add "pic$(ARCH).lib" to linker arguments
660         * src/pic/pcode.c (AnalyzeBanking): bail out on unset processor,
661           (pCodeInitRegisters): rewrapped comments, perpared new approach to
662             handling the pseudo stack
663         * device/lib/Makefile.in: ignore failures in objects-pic16,
664         * device/lib/pic/{configure,configure.in,Makefile}: added libdev/
665         * device/lib/pic/NEWS: document new dependency on picXXX.lib
666         * device/lib/pic/Makefile.subdir,
667         * device/lib/pic16/Makefile.subdir: improved clean rules
668         * device/lib/pic/libdev/: NEW, pic14 device libraries
669         * device/lib/pic/libsdcc/_gptr{get,put}{1,2,3,4}.S: use _X not X
670         * device/lib/pic/libsdcc/macros.inc: use _X not X, declare default SFRs
671         * device/include/Makefile.in: create subdir and install pic14 headers
672         * device/include/pic/p16f_common.inc: removed unused declarations
673         * device/include/pic/pic16*.h: added header files for 100+ 14 bit
674             PICs from inc2h.pl v1.6,
675             replaced BIT_AT macros with struct declarations
676         * device/include/pic/pic14devices.txt: definition of supported devices,
677             all above improvements contributed by Zik Saleeba, thanks
678         * support/scripts/inc2h.pl: removed BIT_AT, replaced with structs
679         * support/scripts/sdcc.nsi: also install pic14 device libraries and
680             headers
681
682 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
683
684         * device/include/mcs51/c8051f410.h: added interrupt numbers,
685         * device/include/mcs51/c8051f200.h: old SiLabs mcu completes the list,
686           thanks to Charles Olds
687
688 2006-04-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
689
690         * debugger/mcs51/cmd.c (infoRegisters): show return address on stack
691
692 2006-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
693
694         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug 1464657
695         * src/mcs51/gen.c (genJumpTab): fixed bug in medium model
696         * support/regression/bug1464657.c: added, new test
697
698 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
699
700         * src/SDCCmain.c (preProcess): implemented RFE 1449908, define SDCC as the
701           version number
702
703 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
704
705         * src/SDCCpeeph.c (initPeepHole): implemented RFE 1460196, when both
706           --no-peep and --peep-file <file> are used don't use default rules but
707           do use the <file>
708
709 2006-04-05 Maarten Brock <sourceforge.brock AT dse.nl>
710
711         * src/mcs51/gen.c (genCall): fixed bug 1457608
712
713 2006-03-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
714
715         * doc/sdccman.lyx: reverted to version 1.129 of december as my latest
716         changes seem to cause (trigger?) problems with the build system.
717
718 2006-03-29 Maarten Brock <sourceforge.brock AT dse.nl>
719
720         * src/SDCCpeeph.c (operandsLiteral): new, added,
721           (callFuncByName): inserted operandsLiteral
722         * src/mcs51/peeph.def: reenabled 132.e, added extra check to 132.x
723
724 2006-03-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
725
726         * doc/sdccman.lyx: added paragraph "Use of SDCC in Education"
727         * src/mcs51/peeph.def: disabled rule 132.e fixing bug #1453093
728
729 2006-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
730
731         * src/z80/gen.c (genFunction, genEndFunction): fixed bug 1160666,
732           implemented patch 1120823 Thanks to Willy De la Court (normal
733           interrupts need an interrupt number now if they are made critical),
734           and enabled nesting of critical functions though not for gbz80
735           (genCritical, genEndCritical): added functions
736           (genZ80Code): added cases for CRITICAL and ENDCRITICAL
737         * src/z80/mappings.i: added "ei" to all mappings
738
739 2006-03-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
740
741         * sim/ucsim/cmd.src/newcmdcl.h: applied patch fixing GCC 4.1 build
742         submitted by the Debian SDCC maintainer Aurelien Jarno:
743         "Credits goes to Martin Michlmayr, who rebuilt the whole Debian
744         archive with gcc 4.1 on mips and wrote the patch"
745
746 2006-03-16 Raphael Neider <rneider AT web.de>
747
748         * src/pic16/genarith.c (genAddLit): simplified and fixed case where
749           the left operand is shorter than the result (c* = lit-c* + int),
750           fixes bug #1450796
751         * src/pic16/gen.c (genRightShift): check IS_SYMOP before accessing
752           OP_SYMBOL
753
754 2006-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
755
756         * src/.version: increased version number to 2.5.5
757         * src/SDCCmain.c (linkEdit): do not test for PIC16 target since, PIC16
758         linking is done manually in pic16 port's _linkEdit,
759         * src/SDCCsymt.c (compStructSize): for target PIC16 and shell variable
760         PIC16_PACKED_BITFIELDS, compact bitfield structures as much as possible,
761         * src/pic16/gen.c (aopForSym): when direct register name is WREG then
762         allocate asmop as AOP_ACC,
763         (aopForRemat): added parameter 'bool result' in function declaration,
764         (pic16_aopGet): return AOP_ACC when accessing WREG,
765         (pic16_popGetTempReg): minor modification,
766         (pic16_popRegFromIdx): first try with 'pic16_regWithIdx' then with
767         'pic16_allocWithIdx',
768         (genPcall): removed ftype, usage of OP_SYM_TYPE asserted error when
769         calling function in absolute addresses,
770         (genAssign): take into account AOP_ACC asmop,
771         * src/pic16/pcode.c (pic16_newpCodeOpReg): minor modifications,
772         * src/pic16/pcoderegs.c: some debug functions and lines added,
773         * src/pic16/ralloc.c (decodeRegType): added but commented out,
774         * (pic16_typeRegWithIdx): search 'pic16_dynInternalRegs' for given
775         register too,
776         * (pic16_findFreeReg, pic16_findFreeRegNext): allocate new register via
777         call to allocReg, not by manually allocating a new one,
778         (pic16_assignRegisters): now before going through the register
779         allocating functions mark all registers as free. This eliminates some
780         side effects resulting from peephole parser done earlier in the backbone
781
782 2006-03-13 Maarten Brock <sourceforge.brock AT dse.nl>
783
784         * src/SDCCicode.c (geniCodeLogic),
785         * src/SDCCast.c (decorateType): applied patch by Bernhard for rfe 1422617
786
787 2006-03-10 Maarten Brock <sourceforge.brock AT dse.nl>
788
789         * src/mcs51/gen.c (sameReg): new, checks if two aop regs are the same,
790           (genSend): bugfix, do not allocate and free twice,
791           (shiftRLong): handle partially overlapping aops
792         * support/regression/tests/bitopcse.c: fixed warning redefined idata
793
794 2006-03-08 Borut Razem <borut.razem AT siol.net>
795
796         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata
797           for pic16
798
799 2006-03-08 Maarten Brock <sourceforge.brock AT dse.nl>
800
801         * support/regression/tests/bug1409955.c: new, added
802         * src/mcs51/gen.h: changed asmop.freed:1 to asmop.allocated for tracking
803         * src/mcs51/gen.c (newAsmop): set asmop.allocated to 1,
804           (aopForSym, aopOp): increment asmop.allocated if reused,
805           (freeAsmop): decrement asmop.allocated and check for zero instead of
806           using asmop.freed,
807           (freeForBranchAsmop): use asmop.allocated instead of asmop.freed,
808           (genNot, genCpl, genUminus, genMinus, genMult, genDiv, genMod, genCmpGt,
809            genCmpLt, genAndOp, genOrOp, genAnd, genOr, genXor, genRRC, genRLC,
810            genGetHbit, genGetAbit, genGetByte, genGetWord, genSwap,
811            genLeftShiftLiteral, genLeftShift, genRightShiftLiteral,
812            genSignedRightShift, genRightShift, genDataPointerGet,
813            genPagedPointerGet, genFarPointerGet, genCodePointerGet,
814            genGenPointerGet, genDataPointerSet, genAssign, genCast): free asmop's
815             in reverse order from allocation,
816           (genPlus, genCmpEq): free asmop's in reverse order from allocation and
817             added swappedLR to keep track
818         * support/regression/fwk/include/testfwk.h: added defines for xdata, idata,
819           pdata & code for GCC, z80, gbz80 & hc08
820         * support/regression/tests/zeropad.c: moved defines to testfwk.h
821
822 2006-03-08 Raphael Neider <rneider AT web.de>
823
824         * src/pic16/main.c (_hasNativeMulFor): fixed bug #1444425
825
826 2006-03-07 Maarten Brock <sourceforge.brock AT dse.nl>
827
828         * device/include/mcs51/c8051f410.h: new SiLabs mcu
829         * src/ds390/peeph.def: disabled 186.d and 227.a as fix for #1434401
830         * support/regression/tests/array.c: added parenthesis, made arrays unsigned
831
832 2006-03-06 Borut Razem <borut.razem AT siol.net>
833
834         * support/regression/ports/pic16/spec.mk: link with libm18f.lib,
835           made the linker quiet
836
837 2006-03-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
838
839         * src/pic16/gen.c (genPcall): fixed bug #1443644
840         * src/pic16/device.h (struct pic16_options_t): added 'int CATregs' flag
841         which dumps before the function entry point a data byte which represents
842         the number of the local variables used by the specified function, added
843         'xinst' for initial support for Extended Instruction Support,
844         * src/pic16/gen.c (aopForSym, pic16_aopGet): beautifications,
845         (pic16_testStackOverflow): do not prefix GSTACK_TEST_NAME with
846         port->fun_prefix anymore (may change later),
847         (genFunction, genEndFunction): do not store/restore local registers for
848         _main (this should take care the --main-return command line option in
849         the future),
850         (genOr): removed some legacy pic-port instructions,
851         * src/pic16/genarith.c (genAddLit): re-enabled old code because
852         performing operations with SFR's causes data to be written more than
853         once to each SFR. Perhaps SFRs should be handled in special cases...
854         * src/pic16/glue.c: macros BIG_ENDIAN and BYTE_IN_LONG are moved to
855         pcode.h
856         * src/pic16/main.c (_process_pragma): stack bound checking did not take
857         into account for stack starting position,
858         (struct OPTIONS pic16_optionsTable): added command line argument
859         --extended or -y for Extended Instruction Support,
860         * src/pic16/ralloc.c (pic16_decodeOp): added case for FUNCTION,
861         (deassignLRs): *** perhaps the most important change, old 'for' code
862         (commented out for reference), didn't account for some registers which
863         were left marked 'not free' after a pointer operation. The change
864         reduces register usage a lot in some cases
865
866 2006-03-04 Borut Razem <borut.razem AT siol.net>
867
868         * support/regression/ports/hc08/spec.mk: remove *.asm in traget
869           _clean
870         * support/regression/tests/bug-524697.c: decreased array size for
871           mcs51 to fit into the internal RAM
872         * support/regression/Makefile.in: a little bit more verbose
873
874 2006-03-03 Borut Razem <borut.razem AT siol.net>
875
876         * support/regression/fwk/lib/testfwk.c,
877           support/regression/fwk/include/testfwk.h: introduced function
878           _prints(), nonrecursive _printn(), call _initEmu() from main()
879         * support/regression/ports/gbz80/support.asm,
880           support/regression/ports/ucz80/support.asm,
881           support/regression/ports/z80/support.asm,
882           support/regression/ports/ds390/support.c,
883           support/regression/ports/hc08/support.c,
884           support/regression/ports/host/support.c,
885           support/regression/ports/mcs51/support.c,
886           support/regression/ports/xa51/support.c: added empty _initEmu()
887           function
888         * support/regression/ports/pic16/gpsim.cmd,
889           support/regression/ports/pic16/spec.mk,
890           support/regression/ports/pic16/support.c,
891           support/regression/Makefile.in: added pic16 regression test
892
893 2006-03-01 Raphael Neider <rneider AT web.de>
894
895         * src/pic16/gen.c (genPcall,pic16_derefPtr,genGenPointerGet,
896           genConstPointerGet): use safe way of generating MOVFF to cover
897             literals as well as registers, fixes bug #1440527
898         * src/pic16/glue.c (pic16_printIvalBitFields): prevent NULL pointer
899             dereference
900           (pic16_printIvalUnion,pic16_isUnion): NEW, handle initialized unions
901             more correctly, fixes bug #1232186
902           (pic16_printIval): use pic16_printIvalUnion() for initialized unions
903         * src/pic16/main.c (_pic16_linkEdit): reorder linker arguments to make
904             gplink guess the correct processor in more cases, applied patch
905             from Till Riedel attached to and fixing bug #1436552
906
907 2006-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
908
909         * support/regression/tests/array.c: added, contains check for #1434401
910         * src/mcs51/peeph.def: disabled 186.d as temporary fix for #1434401
911
912 2006-02-16 Maarten Brock <sourceforge.brock AT dse.nl>
913
914         * device/include/mcs51/at89s8253.h: new, thanks to Krzysztof Polomka
915         * device/include/mcs51/at89S8252.h: fixed, thanks to Krzysztof Polomka
916         * device/include/mcs51/c8051f326.h,
917         * device/include/mcs51/c8051f340.h: new SiLabs mcu's
918         * device/include/mcs51/c8051f000.h,
919         * device/include/mcs51/c8051f018.h,
920         * device/include/mcs51/c8051f020.h: used () with __at, renamed IDLE,STOP to
921           PCON_IDLE,PCON_STOP and added sfr16 definitions
922
923 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
924
925         * src/mcs51/gen.c (genPlus, genMinus, genMult, genGetAbit, genGetByte,
926           genGetWord): fixed bug 1409955
927
928 2006-02-14 Maarten Brock <sourceforge.brock AT dse.nl>
929
930         * device/include/hc08/mc68hc908gp32.h,
931         * device/include/hc08/mc68hc908jb8.h: removed AWUL, added PTA6 & PTA7
932
933 2006-02-13 Maarten Brock <sourceforge.brock AT dse.nl>
934
935         * src/SDCCast.c (constExprValue): return NULL if not a value
936         * src/SDCCglue.c (printIvalArray): fixed bug 1225568
937         * src/hc08/gen.c(genUnpackBits, genUnpackBitsImmed): fixed bug 1019480
938         * support/regression/tests/bitfields.c: enabled signed bitfield for all
939
940 2006-02-13 Borut Razem <borut.razem AT siol.net>
941
942         * src/regression/ptrarg.c: added, fails due to bug #1430967
943         * src/regression/Makefile: ptrarg.c added, ...
944
945 2006-02-12 Maarten Brock <sourceforge.brock AT dse.nl>
946
947         * src/z80/gen.c (genUnpackBits): fixed bug 1019480
948         * support/regression/tests/bitfields.c: enabled signed bitfield for z80
949
950 2006-02-11 Borut Razem <borut.razem AT siol.net>
951
952         * src/SDCCmain.c: Added "sdcc: Calling linker..." if --verbose,
953           print "Processor: xxx" message to stdout only if --verbose
954
955 2006-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
956
957         * src/SDCCglue.c (printIvalStruct): fixed bug 1426356 union initializer
958         * support/regression/tests/bug1426356.c: added
959         * support/regression/tests/bitfields.c: removed 2 tests
960
961 2006-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
962
963         * device/include/mcs51/at89c51snd1c.h: updated comments, see patch 1428901
964         * device/include/mcs51/c8051f330.h,
965         * device/include/mcs51/c8051f350.h: used () with __at, renamed IDLE,STOP to
966           PCON_IDLE,PCON_STOP and added sfr16 definitions
967         * device/lib/_divsint.c,
968         * device/lib/_divuint.c,
969         * device/lib/_divulong.c,
970         * device/lib/_divulong.c: renamed a,b to x,y to avoid confusion, fixed
971           register bank bug for small stackauto
972
973 2006-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
974
975         * support/regression/fwk/lib/timeout.c: include <stdlib.h> for exit()
976
977 2006-02-08 Maarten Brock <sourceforge.brock AT dse.nl>
978
979         * support/regression/ports/mcs51-xstack-auto/spec.mk: forgot -I(...)/mcs51
980         * all.dsp: corrected several bin paths
981         * device/include/mcs51/c8051f120.h,
982         * device/include/mcs51/c8051f300.h,
983         * device/include/mcs51/c8051f310.h: used () with __at and renamed IDLE,STOP
984           to PCON_IDLE,PCON_STOP
985         * device/include/mcs51/c8051f320.h: see above, also added sfr16 definitions
986         * device/lib/printf_large.c (output_float): fixed bug 1388703
987         * support/regression/tests/bug1057979.c: added test for bug 1388703
988
989 2006-02-08 Raphael Neider <rneider AT web.de>
990
991         * src/pic/pcode.c (pciTRIS): fixed typo,
992           (BuildFlow,LinkFlow_pCode): added (disabled) debug output,
993           (LinkFlow): fixed handling of flows that end in a call,
994           (ReuseReg): perform safety check earlier
995         * src/pic/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed
996             to work with flows at the beginning of a pBlock,
997             fixes #1426557 (Symbol not previously defined),
998           (pic14_ReMapLiveRanges): NEW, destroy and rebuild register
999             usage information
1000           (RemoveUnusedRegisters): update register usage info
1001         * src/pic/ralloc.c (newReg): prevent duplicate registers from being
1002             created, reuse existing ones instead
1003         * src/pic/gen.c (genPcall): fixed #1424719
1004
1005 2006-02-07 Bernhard Held <bernhard AT bernhardheld.de>
1006
1007         * link/z80/lkmain.c,
1008         * link/z80/lklex.c,
1009         * link/z80/lkdata.c,
1010         * link/z80/aslink.h: fixed build on current cygwin:
1011         replaced getline() by lk_getline()
1012
1013 2006-02-01 Borut Razem <borut.razem AT siol.net>
1014
1015         * src/regression/add.c, src/regression/add2.c, src/regression/add3.c,
1016           src/regression/add4.c, src/regression/and1.c, src/regression/and2.c,
1017           src/regression/arrays.c, src/regression/b.c, src/regression/bank1.c,
1018           src/regression/bool1.c, src/regression/bool2.c,
1019           src/regression/bool3.c, src/regression/call1.c,
1020           src/regression/compare.c, src/regression/compare10.c,
1021           src/regression/compare2.c, src/regression/compare3.c,
1022           src/regression/compare4.c, src/regression/compare5.c,
1023           src/regression/compare6.c, src/regression/compare7.c,
1024           src/regression/compare8.c, src/regression/compare9.c,
1025           src/regression/configword.c, src/regression/for.c,
1026           src/regression/inline.c, src/regression/mult1.c,
1027           src/regression/nestfor.c, src/regression/or1.c,
1028           src/regression/pointer1.c, src/regression/ptrfunc.c,
1029           src/regression/rotate1.c, src/regression/rotate2.c,
1030           src/regression/rotate3.c, src/regression/rotate4.c,
1031           src/regression/rotate5.c, src/regression/rotate6.c,
1032           src/regression/rotate7.c, src/regression/string1.c,
1033           src/regression/struct1.c, src/regression/sub.c,
1034           src/regression/sub2.c, src/regression/switch1.c,
1035           src/regression/while.c, src/regression/xor.c,
1036           src/regression/create_stc, src/regression/simulate,
1037           src/regression/rt.sh, src/regression/Makefile: reenabled Scott's PIC14
1038           regression tests
1039         * src/regression/gpsim_assert.h: added
1040
1041 2006-01-28 Bernhard Held <bernhard AT bernhardheld.de>
1042
1043         * src/ds390/gen.c (unsaveRegisters): fixed literal function pointer
1044         ((void (code *) (void)) 0) ();
1045         * as/hc08/aslex.c,
1046         * as/hc08/aslink.h,
1047         * as/hc08/asm.h,
1048         * as/hc08/asmain.c,
1049         * as/hc08/lkdata.c,
1050         * as/hc08/lklex.c,
1051         * as/hc08/lkmain.c,
1052         * as/mcs51/aslex.c,
1053         * as/mcs51/aslink.h,
1054         * as/mcs51/asm.h,
1055         * as/mcs51/asmain.c,
1056         * as/mcs51/lkdata.c,
1057         * as/mcs51/lklex.c,
1058         * as/mcs51/lkmain.c,
1059         * as/z80/aslex.c,
1060         * as/z80/asm.h,
1061         * as/z80/asmain.c: fixed build on current cygwin:
1062         replaced getline() by as_getline()
1063
1064 2006-01-27 Bernhard Held <bernhard AT bernhardheld.de>
1065
1066         * src/SDCC.y: fixed bug #716242, exchanged pointer and function
1067         declarator in the symbol chain
1068         * src/SDCCsymt.h,
1069         * src/SDCCsymt.c (processFuncPtrArgs): added, removes "(void)"
1070         parameter list for function pointers
1071         * src/SDCCast.c (decorateType): added call of processFuncPtrArgs()
1072         * support/regression/tests/bug-716242.c: added
1073
1074 2006-01-20 Bernhard Held <bernhard AT bernhardheld.de>
1075
1076         * src/SDCCicode.c (geniCodeAdd, geniCodeArray): use char for array
1077         offset if possible
1078         * src/SDCCast.c (getLeftResultType): 255 fits in char, not 256
1079
1080 2006-01-18 Bernhard Held <bernhard AT bernhardheld.de>
1081
1082         * src/SDCCast.c (backPatchLabels): fixed bug #1408066: made it
1083         inifinitely recurseable, added static
1084         * support/regression/tests/bug-1408066.c: added
1085
1086 2006-01-17 Bernhard Held <bernhard AT bernhardheld.de>
1087
1088         * src/SDCCicode.h,
1089         * src/SDCCicode.c (newiTempPreheaderLabel, newiTempLoopHeaderLabel):
1090         renamed, added possibility to create "postLoopLbl"-labels
1091         * src/SDCCBBlock.c (iCodeBreakDown): renamed newiTempPreheaderLabel to
1092         newiTempLoopHeaderLabel
1093         * src/SDCCloop.c (newInduction, newRegion, backEdges, insertIntoLoop,
1094         isNotInBlocks, addToExitsMarkDepth, createLoop, dominatedBy,
1095         addDefInExprs, assignmentsToSym, isOperandInvariant, pointerAssigned,
1096         hasNonPtrUse, loopInvariants, addressTaken, findInduction,
1097         findDefInRegion, mergeRegions, ifMerged, mergeInnerLoops): made static,
1098         (pinduction, pregion, hasIncomingDefs, findLoopEndSeq): disabled,
1099         (basicInduction): fixed bug #136564, made static,
1100         (loopInduction): changed parameter of basicInduction, made static,
1101         (addPostLoopBlock): added
1102         * src/SDCCloop.h: removed backEdges, pregion, pinduction,
1103         loopOptimizations, addressTaken, findDefInRegion, hasIncomingDefs,
1104         findLoopEndSeq
1105         * support/regression/tests/bug-136564.c: added
1106         * support/regression/ports/mcs51-xstack-auto/spec.mk: added
1107         --std-sdcc99 to LIBSDCCFLAGS
1108
1109 2006-01-16 Bernhard Held <bernhard AT bernhardheld.de>
1110
1111         * src/SDCCicode.c (geniCodeIfx): fix bug 1406131: always false
1112         while loop
1113         * support/regression/tests/bug-1406131.c: added
1114
1115 2005-12-31 Bernhard Held <bernhard AT bernhardheld.de>
1116
1117         * src/SDCCast.c (decorateType): fix promotion of unary minus
1118         * src/SDCCsymt.c (computeType): beautified
1119         * src/SDCCval.c (cheapestVal): beautified, old non-Ansi version removed,
1120         (valUnaryPM, valComplement): fix sign and promotion,
1121         (valNot): ANSI: result type is int (SDCC: unsigned char)
1122         * support/regression/tests/uminus.c: speedup by removing superflous
1123         test case 'int'
1124         * support/regression/tests/onebyte.c: added promotion and signedness
1125         tests for unary minus
1126         * support/regressions/tests/bug-477927.c: disable warning about
1127         uninitialized variables
1128         * support/regression/tests/not.c: added
1129
1130 2005-12-28 Bernhard Held <bernhard AT bernhardheld.de>
1131
1132         * device/lib/Makefile.in: added --std-sdcc99 to CFLAGS
1133         * src/mcs51/gen.c (gen51Code): show final register usage after
1134         fillGaps in asm with --i-code-in-asm
1135         * src/SDCClrange.c (sequenceiCode, setLiveFrom, setLiveTo,
1136         markLiveRanges, markAlive, findNextUseSym, findNextUse, unvisitBlocks,
1137         incUsed, rliveClear, adjustIChain): made static,
1138         (setFromRange): excluded because it's unused,
1139         (findPrevUseSym, markWholeLoop): added,
1140         (findPrevUse): rewritten; fixes bug 895992; now a complete search
1141         through all branches of predecessors enables sdcc to emit the warning
1142         W_LOCAL_NOINIT, marking of outermost loop was incomplete,
1143         (rlivePoint): made static, added parameter emitWarnings which is only
1144         true during the first run out of two,
1145         (findRecursiveSucc, findRecursivePred): removed,
1146         (computeLiveRanges): made static, added parameter emitWarnings,
1147         (dumpIcRlive): added for debugging only
1148         * src/SDCClrange.h: added boolean parameter to computeLiveRanges(),
1149         removed prototype of setFromRange()
1150         * src/SDCCopt.c (eBBlockFromiCode): added new parameter emitWarnings
1151         in call of computeLiveRanges()
1152         * support/regression/tests/bug-895992.c: added
1153         * support/regression/tests/bug-971834.c: added
1154         * support/valdiag/tests/bug-895992.c: added
1155         * support/valdiag/tests/bug-971834.c: added
1156
1157 2005-12-18 Raphael Neider <rneider AT web.de>
1158
1159         * src/pic16/gen.c: added IS_DIRECT macro for "direct" operands,
1160           (genUnpackBits): improved code for direct operands,
1161           (genPackBits): improved code for literal assignment to bitfields
1162             and for direct destination operands (no FSR indirection),
1163             prevented redundant AND, fixes #1362800,
1164           (AccLsh): added parameter to disable masking of the result
1165         * src/pic16/pcode.c (pic16_safepCodeUnlink): fixed to work with
1166           skip instructions with side-effects (like incfsz),
1167           (pic16_pCodeIsAlive): suppress verbose output unless pcode_verbose,
1168         * src/pic16/pcoderegs.c (RemoveRegsFromSet): removed annoying warning
1169         * device/lib/pic16/Makefile.common.in: added --asm=@GPASM@ to CC,
1170           fixes #1375263
1171
1172 2005-12-11 Bernhard Held <bernhard AT bernhardheld.de>
1173
1174         * src/SDCCicode.c (geniCodeAssign): fixed bug 11369874, don't use
1175         volatile variables as spill location
1176
1177 2005-12-10 Bernhard Held <bernhard AT bernhardheld.de>
1178
1179         * src/SDCCcse.c (findCheaperOp): fixed bug 1376320, copy signedness to
1180         replacing literals
1181         * support/regression/tests/bug-1376320.c: added
1182
1183 2005-12-08 Raphael Neider <rneider AT web.de>
1184
1185         * src/pic/device.c: renamed is_shared to pic14_is_shared
1186         * src/pic/gen.c (genIfx): re-enabled handling of sbits
1187         * src/pic/glue.c (emitSymbolToFile): added workaround for sbits,
1188           (is_valid_identifier): added for above workaround
1189
1190 2005-12-07 Maarten Brock <sourceforge.brock AT dse.nl>
1191
1192         * device/lib/Makefile.in: fixed to enable port-specific-objects
1193         * device/lib/ds390/i2c390.c (BitOutI2C): optimized by making bout unsigned
1194           char, thanks Hubert Sack
1195         * doc/sdccman.lyx: documented --xstack-loc,
1196           elaborated a bit more on interrupts and pitfalls,
1197           removed "setjmp/longjmp unsupported",
1198           documented some unsupported C99 features
1199         * src/SDCCmain.c (linkEdit): adapted default lib path for --stack-auto
1200         * src/SDCCpeeph.c (readRules): inserted patch 1367130 for finding missing
1201           if, thanks Hubert Sack
1202         * src/mcs51/gen.c (genEndFunction): enabled "pop psw" for regbank 0 isr
1203         * support/regression/Makefile.in: test-mcs51-stack-auto no longer needs to
1204           make make_library
1205         * support/regression/get_ticks.py: new, get cpu cycles and code size, so
1206           regression tests can report resource usage (rfe 700441)
1207         * support/regression/collate-results.py: report resource usage
1208         * support/regression/ports/ds390/spec.mk,
1209         * support/regression/ports/hc08/spec.mk,
1210         * support/regression/ports/mcs51/spec.mk,
1211         * support/regression/ports/ucz80/spec.mk: run sim output through get_ticks
1212         * support/regression/ports/ds390/uCsim.cmd,
1213         * support/regression/ports/hc08/uCsim.cmd,
1214         * support/regression/ports/mcs51/uCsim.cmd,
1215         * support/regression/ports/ucz80/uCsim.cmd: inserted "state" to report time
1216         * support/regression/ports/mcs51-stack-auto/spec.mk: no need to build the
1217           library, use the default one
1218         * support/regression/ports/mcs51-xstack-auto/spec.mk: inserted rules for
1219           building the library
1220
1221 2005-12-06 Maarten Brock <sourceforge.brock AT dse.nl>
1222
1223         * config.dsp: added dependency on .version and configure_vc.awk
1224         * device/include/setjmp.h: updated for --stack-auto and --xstack
1225         * device/include/mcs51/at89c51snd1c.h: corrected line endings
1226         * device/include/mcs51/XC866.h: added, thanks Llewellyn van Zyl
1227         * device/lib/_setjmp.c: updated for --stack-auto and --xstack
1228         * device/lib/libsdcc.lib: added _setjmp
1229         * src/SDCCast.c (createIvalCharPtr): fixed warnings,
1230           (decorateType): fixed bug 1372851,
1231           (optimizeGetHbit): fixed warning
1232         * src/SDCCglue.c (printIvalChar, printIvalArray): adapted for flexible
1233           array initialisation
1234         * support/regression/tests/bug1057979.c: added test for bug 1358192
1235         * support/regression/tests/setjmp.c: added, test for setjmp/longjmp
1236
1237 2005-12-03 Borut Razem <borut.razem AT siol.net>
1238
1239         * support/scripts/sdcc.nsi: added /SOLID option to "SetCompressor lzma"
1240           command since the NSIS was upgraded to version 2.11 on CF x86-linux2
1241
1242 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1243
1244         * src/SDCCast.c (createIvalStruct, createIvalArray, createIvalPtr,
1245         createIval): implement symbol independant "flexible array member",
1246         (createIvalCharPtr): implemented flexible array initialisation with a
1247         string
1248         * src/SDCCsymt.c (copyStruct): removed,
1249         (getSize): fixed misleading comment,
1250         (getAllocSize): removed, the additional allocation size is now in
1251         sym->flexArrayLength,
1252         (checkStructFlexArray): new, syntax checks for flexible array members,
1253         (compStructSize): added syntax checks for "flexible array members"
1254         (copyStruct): removed,
1255         (copyLinkChain): removed inefficient fix for bug 770487
1256         * src/SDCCglue.c (emitRegularMap): getAllocSize has been removed
1257         * src/SDCCsymt.h: added structdef.b_flexArrayMember and
1258         symbol->flexArrayLength
1259         * src/SDCCerr.c,
1260         * src/SDCCerr.h: added W_INVALID_FLEXARRAY, W_C89_NO_FLEXARRAY,
1261         E_FLEXARRAY_NOTATEND and E_FLEXARRAY_INEMPTYSTRCT
1262         * support/regression/tests/structflexarray.c: added
1263         * support/valdiag/tests/structflexiblearray.c: added
1264
1265 2005-11-29 Bernhard Held <bernhard AT bernhardheld.de>
1266
1267         * src/SDCCast.c (decorateType): fixed bug 1368489
1268         * support/Util/SDCCerr.c,
1269         * support/Util/SDCCerr.h: added warning W_CMP_SU_CHAR
1270
1271 2005-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1272
1273         * device/include/mcs51/at89c51snd1c.h: added file submitted by
1274           Weston T. Schmidt <schmidtw AT users.sourceforge.net>, patch #1368001
1275
1276 2005-11-27 Borut Razem <borut.razem AT siol.net>
1277
1278         * support/cpp2/cppinit.c, support/cpp2/cpplib.h, support/cpp2/mkdeps.c,
1279           support/cpp2/mkdeps.h: added command line option
1280           -obj-ext=<extension> to SDCPP to define object file externion, used
1281           for generation of make dependencies (-M)
1282         * src/SDCCmain.c: pass -obj-ext=<extension> to SDCPP
1283
1284 2005-11-26 Borut Razem <borut.razem AT siol.net>
1285
1286         * support/scripts/sdcc.nsi: added small-stack-auto libraries,
1287           added missing device/lib/mcs51/crt*.asm, pic and pic16 sources,
1288           added pic and pic16 libraries
1289
1290 2005-11-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1291
1292         * device/include/float.h: Corrected typo in prototype of __fsgt
1293
1294 2005-11-25 Borut Razem <borut.razem AT siol.net>
1295
1296         * sdcc/device/lib/Makefile.in, sdcc/device/lib/incl.mk:
1297           added creation of model-mcs51-stack-auto libraries
1298
1299 2005-11-24 Bernhard Held <bernhard AT bernhardheld.de>
1300
1301         * src/SDCCsymt.c (copyLinkChain): fixed bug 770487, copy structdef
1302         and fields-list too
1303         * src/SDCCast.c (createIvalArray): removed obsolete comment
1304
1305 2005-11-24 Borut Razem <borut.razem AT siol.net>
1306
1307         * sdcc/device/lib/Makefile.in: remove all unnecessary files, 2nd try...,
1308           added missing device/lib/mcs51/crt*.asm sources
1309
1310 2005-11-23 Bernhard Held <bernhard AT bernhardheld.de>
1311
1312         * src/SDCCast.c (createIvalCharPtr): fixed bug 1348271
1313
1314 2005-11-22 Maarten Brock <sourceforge.brock AT dse.nl>
1315
1316         * device/lib/_fs2schar.c,
1317         * device/lib/_fs2sint.c,
1318         * device/lib/_fs2slong.c: optimized inline asm
1319
1320 2005-11-21 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1321
1322         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1323           Better handling of floats between -1.0 and 0.0.
1324
1325 2005-11-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
1326
1327         * src/mcs51/peeph.def: added missing "if"s as noted by Hubert Sack.
1328           (the missing "if"s prohibited removal of redundant labels)
1329
1330 2005-11-19 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1331
1332         * device/lib/_fs2slong.c, device/lib/_fs2sint.c, device/lib/_fs2char.c:
1333           Properly convert floats between -1.0 and 0.0 to long, int, and char
1334           types (max integer value of negative floats tends to zero).
1335         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1336           Removed changes made so to work properly with floats between
1337           -1.0 and 0.0, as the problem is fixed in _fs2slong.c, _fs2sint.c,
1338           and _fs2char.c
1339
1340 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1341
1342         * src/SDCCcse.c (ReplaceOpWithCheaperOp): minor fix for debugging only
1343         * src/mcs51/gen.c (genUnpackBits): better code and a fix,
1344         (genCast) cosmetic change
1345         * src/ds390/gen.c (genUnpackBits, ): ported from mcs51
1346         * src/ds390/ralloc.c (packRegsForAssign): ported fix for bitfields
1347         from mcs51
1348         * support/regression/tests/bitfields (testSignedBitfields): added
1349
1350 2005-11-18 Borut Razem <borut.razem AT siol.net>
1351
1352         * sdcc/device/lib/Makefile.in: remove all unnecessary files
1353         * device/lib/pic/Makefile.rules, device/lib/pic16/Makefile.subdir:
1354           introduced SILENT option to make building of pic16 libraries less
1355
1356 2005-11-18 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1357
1358         * device/lib/modff.c, device/lib/ceilf.c, device/lib/floorf.c:
1359           Now they work properly with floats between -1.0 and 0.0
1360         * device/lib/printf_large.c: Removed temporary patch for bug 1358192
1361
1362 2005-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
1363
1364         * src/SDCCicode.c (printOperand): added missing else
1365
1366 2005-11-18 Bernhard Held <bernhard AT bernhardheld.de>
1367
1368         * src/SDCCsymt.c (computeType): fixed bug 1358192: added missing else,
1369         reformatted for better readability
1370         * src/mcs51/gen.c (genUnpackBits): initial, incomplete support for
1371         signed bitfields
1372
1373 2005-11-17 Borut Razem <borut.razem AT siol.net>
1374
1375         * device/lib/pic16/Makefile.rules, device/lib/pic16/Makefile.subdir:
1376           introduced SILENT option to make building of pic16 libraries less
1377           verbose - used for nightly snapshot build
1378         * doc/sdccman.lyx: documented that SDCDB and ucSim are currently not
1379           available on Win32 platforms.
1380         * sdcc/device/lib/Makefile.in: added library sources for mcs51, small,
1381           medium, large, pic and pic16
1382
1383 2005-11-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1384
1385         * device/lib/printf_large.c: Temporary patch for bug 1358192:
1386           printf("%f"...) sets fraction to zero.
1387
1388 2005-11-16 Raphael Neider <rneider AT web.de>
1389
1390         * src/pic/pcode.c (LinkFlow): handle empty flows correctly,
1391           fixes #1357221
1392         * src/pic/gen.c (genIfx): implemented for CARRY bit
1393         * src/pic16/gen.c (genAssign,genCast): fixed assigning/casting
1394           to generic pointers, fixes #1357332,
1395           (pic16_movLit2f): NEW,
1396           (pic16_storeForReturn,genDataPointerSet): use pic16_movLit2f
1397
1398 2005-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
1399
1400         * src/SDCCmain.c (parseCmdLine): fixed bug 1356800, thanks rsudjian
1401
1402 2005-11-11 Raphael Neider <rneider AT web.de>
1403
1404         * src/pic/gen.c: handle FPOINTERS like POINTERS everywhere
1405         * src/pic16/gen.c (pic16_derefPtr): now works for non-pointers as well,
1406           compute pointer's type from operand,
1407           (genUnpackBits,genPackBits): handle FPOINTERS correctly, re-indented,
1408           improved single bit reads, fixes bug #1353379
1409
1410 2005-11-09 Borut Razem <borut.razem AT siol.net>
1411
1412         * support/scripts/sdcc.nsi: added lib/pic to the package
1413
1414 2005-11-08 Maarten Brock <sourceforge.brock AT dse.nl>
1415
1416         * src/SDCCval.c (valUnaryPM): fixed bug 1350699
1417
1418 2005-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
1419
1420         * support/regression/tests/bug1348008.c: added
1421         * src/mcs51/gen.c (saveRBank, unsaveRBank): fixed bug 1348008
1422         * support/regression/tests/bug1337835.c: updated comment
1423
1424 2005-11-06 Borut Razem <borut.razem AT siol.net>
1425
1426         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1427           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1428           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1429           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1430           sim/ucsim/cmd.src/set.cc, sim/ucsim/cmd.src/show.cc:
1431           dynamic construction of cl_error_class and derivates - 2.nd try
1432
1433 2005-11-05 Borut Razem <borut.razem AT siol.net>
1434
1435         * sim/ucsim/sim.src/error.cc: fixed uninitialized class member variable
1436           bug, which caused Bus Errors on sparc solaris
1437
1438 2005-11-04 Borut Razem <borut.razem AT siol.net>
1439
1440         * sim/ucsim/error.cc, sim/ucsim/errorcl.h,
1441           sim/ucsim/sim.src/stack.cc, sim/ucsim/sim.src/stackcl.h,
1442           sim/ucsim/sim.src/uc.cc, sim/ucsim/sim.src/uccl.h,
1443           sim/ucsim/sim.src/mem.cc, sim/ucsim/sim.src/memcl.h,
1444           sim/ucsim/cmd.src/cmdconf.cc: dynamic construction of cl_error_class
1445           and derivates to resolve the initialization problem on OSX
1446
1447 2005-11-02 Borut Razem <borut.razem AT siol.net>
1448
1449         * sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1450           corrected typo - #include <winsock2.h>
1451
1452 2005-11-02 Maarten Brock <sourceforge.brock AT dse.nl>
1453
1454         * src/asm.c (printILine): always close tmpFile, thanks Beau E. Cox,
1455           (_asxxxx_mapping): added org directive for future enhancements
1456
1457 2005-11-01 Borut Razem <borut.razem AT siol.net>
1458
1459         * sim/ucsim/app.cc, sim/ucsim/cmd.src/cmdutil.cc, sim/ucsim/cmd.src/newcmd.cc:
1460           enabled sockets on WIN32
1461         * sim/ucsim/cmd.src/newcmd.cc: fixed bug with uninitialized variables
1462
1463 2005-10-31 Borut Razem <borut.razem AT siol.net>
1464
1465         * support/regression/generate-cases.py: escape backslashes in {testcase}:
1466           WIN32 backslash path delimiters should be escaped when used in C strings
1467         * support/regression/tests/bitfields.c: exclude failing assertions for
1468           __CYGWIN32__ and __MINGW32__ hosts
1469
1470 2005-10-30 Borut Razem <borut.razem AT siol.net>
1471
1472         * src/SDCCutil.c: corrected double comparison typo
1473
1474 2005-10-30 Maarten Brock <sourceforge.brock AT dse.nl>
1475
1476         * device/lib/medium/Makefile: added for new memory model medium
1477         * device/include/asm/mcs51/features.h: updated for medium/pdata
1478         * device/include/mcs51/c8051f120.h: added sfr16/sfr32 definitions,
1479           added Multiply & Accumulate sbit's and MAC0_PAGE define
1480         * device/include/mcs51/c8051f300.h: added sfr16 definitions
1481         * device/include/mcs51/c8051f310.h: added sfr16 definitions
1482         * device/lib/_mullong.c: update for medium model
1483         * device/lib/incl.mk: added medium model
1484         * doc/sdccman.lyx: documented medium model
1485         * src/SDCCast.c (isBitAndPow2): simplified using updated powof2
1486         * src/SDCCicode.c (geniCodeMultiply, geniCodeDivision): use updated powof2
1487         * src/SDCCmain.c (optionsTable, linkEdit): enabled medium model
1488         * src/SDCCmem.c (allocIntoSeg): set iaccess for pdata symbols,
1489           (allocParms): set SCLS and OCLS to pdata for medium model
1490         * src/SDCCsymt.c (processFuncArgs): use default_local_map and set iaccess
1491           for pdata,
1492           (powof2): return <0 if not power of 2
1493         * src/avr/gen.c (genBitWise): use updated powof2
1494         * src/mcs51/gen.c (genMinusDec): use acc if necessary,
1495           (shiftR2Left2Result): small optimization in setup, save acc when storing,
1496           (shiftLLeftOrResult): use B if necessary
1497         * src/mcs51/main.c (_mcs51_finaliseOptions, mcs51_port): added medium model
1498         * src/mcs51/peeph.def: renamed 226 to 226.b, added 226.a
1499         * src/pic/main.c (_pic14_do_link): made void parameter list explicit
1500         * support/regression/Makefile.in: added test-mcs51-medium
1501         * support/regression/ports/mcs51-medium/spec.mk: added to test medium model
1502
1503 2005-10-28 Bernhard Held <bernhard AT bernhardheld.de>
1504
1505         * src/SDCCsymt.c (compStructSize): make bitfields without (un)signed
1506         specifier unsigned
1507         * device/lib/time.c (mktime): fixed bug 1334315
1508
1509 2005-10-28 Raphael Neider <rneider AT web.de>
1510
1511         * device/include/pic/p16f_common.inc: added common declarations
1512         * src/pic/ralloc.c (initStack): moved regs *r to block start for Alpha
1513
1514 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1515
1516         * src/mcs51/gen.c (getTempRegs): return 0 if not enough registers found,
1517           (aopPutUsesAcc): added to predict accumulator use,
1518           (assignResultValue): save acc if necessary,
1519           (genMinusDec): store result if indirectly addressed,
1520           (genDivOneByte):  save acc if necessary,
1521           (movLeft2Result): bugfix if left already in acc,
1522           (genAnd, genOr, genXor, shiftL2Left2Result, shiftR2Left2Result): pay more
1523             attention to accumulator use (esp. pdata),
1524           (genReceive): receive pdata correctly
1525         * src/SDCCicode.c (isOperandInPagedSpace): added to detect pdata operands
1526         * src/SDCCicode.h: added isOperandInPagedSpace prototype
1527
1528 2005-10-27 Raphael Neider <rneider AT web.de>
1529
1530         * doc/sdccman.lyx: corrected version (should be 2.5.4 not 2.5.5)
1531
1532 2005-10-27 Raphael Neider <rneider AT web.de>
1533
1534         * .version: changed version to 2.5.4
1535         * doc/sdccman.lyx: changed version to 2.5.4, added some remarks to PIC14
1536         * device/lib/pic/libsdcc/{_mulint.c,_mullong.c}: use unsigned literals,
1537           (_divschar.c,divuchar.c,_mulchar.c,_modschar.c,_moduchar): NEW,
1538             arithmetics support routines
1539         * device/lib/pic/Makefile.rules: have assembler sources preprocessed
1540         * device/lib/Makefile.in: also create installdir for pic
1541
1542         * src/SDCCopt.c (cnvToFcall): mark support routines `extern' for
1543           pic14 port as well
1544         * src/pic/device.c (dump_sfr): rewritten to delegate register
1545           placement to the linker (use `extern sym' rather than sym EQU addr),
1546           (validAddress): fixed to check last specified address
1547         * src/pic/gen.c (aopForSym): added code to deal with array (useless?),
1548           (popGetLit): truncate literal value to 8 bit,
1549           (popGet): moved assert to more appropriate place
1550           (popGetExternal): create pCode operand from and mark the according
1551             symbol as being `extern'
1552           (popGetAddr): added sanity check on immediate's offset, provide
1553             GPOINTER tag on demand
1554           (aopPut): fixed for immediates,
1555           (mov2w_op): move operand's address or contents to WREG (depending on
1556             operand type), safer variant of mov2w,
1557           (movwf,call_libraryfunc): NEW, handy abbreviations,
1558           (get_argument_pcop,get_return_val_pcop,pass_argument,
1559           get_returnvalue): interface for accessing function parameters and
1560             return values,
1561           (assignResultValuei,genRet): use new parameter/return value interface
1562           (pic14_getDataSize): back to old version handling generic pointers,
1563           (pic14_toBoolean,genNot,genCpl,genCmpEq,genOrOp): heavily rewritten,
1564             provided implementation and/or fixed old one,
1565           (genMultOneByte,genDivOneByte,genModOneByte): implemented as library
1566             calls, removed legacy 8051 reference code
1567           (AccLsh,AccRsh): rewritten and fixed to deal with signed operands
1568           (loadSignToC): NEW, move the operands sign bit to CARRY,
1569           (genGenericShift): NEW, replaces genLeftShift, genRightShift and
1570             genRightShiftSigned, accepts negative shift counts,
1571           (setup_fsr): load FSR and adjust IRP (indirect memory access),
1572           (emitPtrByteGet,emitPtrByteSet): rewritten, now works with
1573             generic pointers, __data pointers and __code pointers,
1574           (genUnpackBits,genPackBits): rewritten to work with generic pointers
1575             and signed bitfields, limit bitfields to 8 bit,
1576           (genDataPointerGet): fixed number of bytes read,
1577           (genGenPointerGet,genConstPointerGet): fixed bitfield access,
1578           (genPointerGet,genPointerSet): fixed handling of __code pointers,
1579             pointers to constant data are no longer assumed to point to __code
1580             space, removed invalid pointer types,
1581           (bitpatternFromVal): retrieve the PICs representation of an integer
1582             or float literal,
1583           (genDataPointerSet): fixed assigning to po_immediate operands,
1584           (genGenPointerSet): implemented as library call,
1585           (genIfx): fixed incorrect condition,
1586           (genAddrOf): limit generic pointers' addresses to 2 bytes,
1587             provide GPOINTER tag according to destination's storage class,
1588           (genCast): added code to handle casting to generic pointers, added
1589             sign-/zero extension of the result
1590           (aop_isLitLike,op_isLitLike): fixed handling of immediates
1591         * src/pic/gen.h: added macros to access IRP bit in STATUS register
1592         * src/pic/genarith.c (genAddLit): use min(result's,left's) size, sign
1593           extend the result
1594         * src/pic/glue.c (is_shared_address,is_shared): check whether a given
1595           address/register resides in the shared banks
1596           (emitSymbolToFile): improved to handle global and `pinned' symbols,
1597             put all variables into separate sections (have the linker arrange
1598             them)
1599           (picglue): put init code and interrupt handlers in separate sections
1600         * src/pic/main.c: added port specific options table, modified to PORT
1601           structure to make GPOINTERs 3 byte, added pic14_options
1602           (_pic14_do_link): private linking routine (update paths to libraries,
1603             add libsdcc.lib by default)
1604         * src/pic/main.h: declare pic14_options
1605         * src/pic/pcode.c: fixed instructions i/o relations,
1606           (RegCond): reverted to correct version,
1607           (newpCodeOpLit): truncate literals to 8 bit,
1608           (genericPrint): added debug output,
1609           (getRegFromInstruction): fixed for various operand types, simplified
1610           (BuildFlow): fixed broken handling of isntructions with labels
1611           (LinkFlow): start at last instruction in flow (skip trailing comments),
1612             pass the flow on to the next instruction after CALL
1613           (pCodeReplace): NEW, replace a pCode and move meta data to the new one
1614           (insertPCodeInstruction): fixed inserting after a skip instruction,
1615           (DoBankSelect): fixed for labeled instructions
1616           (OptimizepBlock): honor --nopeep switch
1617           (AnalyzeFlow,ReuseReg): prevent crash on source files with no function
1618         * src/pic/pcodepeep.c (pCodePeepMatchRule): prevent NULL pointer accesses
1619         * src/pic/pcoderegs.c (regIsLocal): NEW, check visibility of a register
1620           (pCodeOptime2pCodes): allow disabling this optimization via
1621             --no-pcode-opt due seldomly occuring bugs, fixed some conditions
1622             but is still buggy), started implementation of a dataflow based
1623             pCode optimization (CSE + dead code elimination)
1624           (pCodeRegMapLiveRangesInFlow): removed bogus inCond
1625         * src/pic/ralloc.c (initStack): renamed stack registers to STK%d, the new
1626           names are independant of the stack location and therefore portable across
1627           devices
1628
1629 2005-10-27 Maarten Brock <sourceforge.brock AT dse.nl>
1630
1631         * src/mcs51/ralloc.c (bitType): added to detect bit variables,
1632           (selectSpil): fixed bug 1337835 by not spilling bit variables
1633         * support/regression/tests/bug1337835.c: added test for this bug
1634         * src/mcs51/peeph.def: restart after rule 3.c,
1635           addded rules 263.x to optimize loading constants
1636
1637 2005-10-26 Raphael Neider <rneider AT web.de>
1638
1639         * src/SDCCsymt.c (compStructSize): allow signed bitfields for PIC ports
1640         * src/pic16/gen.c (genUnpackBits): support signed bitfields,
1641           (genAssign): emit warning when casting literals to generic pointer
1642             type, also applies when taking the address of a fixed variable,
1643           (genCast): improved casting to generic pointers
1644         * src/pic16/glue.c (pic16emitStaticSeg): fixed(?) handling of fixed
1645           extern variables, added verbose error message
1646         * device/include/pic16/{string.h,errno.h}: added #pragma library c
1647
1648 2005-10-26 Bernhard Held <bernhard AT bernhardheld.de>
1649
1650         * src/mcs51/gen.c (genMinus): fixed bug 1270906: reverse subtraction,
1651         carry must be complemented too
1652         * src/mcs51/peeph.def: addded rule 262 to remove double cpl c, which
1653         could be emitted by genMinus
1654         * src/SDCCval.c (constVal): fixed bug 1305065
1655
1656 2005-10-25 Bernhard Held <bernhard AT bernhardheld.de>
1657
1658         * src/SDCCast.c (addCast): added promotion for bit variables
1659         (decorateType): emit W_COMPLEMENT before the problem vanishes behind
1660         promotion casts + optimisation
1661         (optimizeGetWord): fix warning 'i' might be used uninitialized
1662         * src/mcs51/gen.c (genCpl): removed W_COMPLEMENT
1663         * src/ds390/gen.c (genCpl): removed W_COMPLEMENT
1664
1665 2005-10-24 Bernhard Held <bernhard AT bernhardheld.de>
1666
1667         * src/SDCCicode.c (ast2iCode): reverted to 1.224 because of regression:
1668         all chars are promoted to int; promotion should be handled in SDCCast.c
1669
1670 2005-10-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
1671
1672         * device/lib/_strcmp.c: Fixed bug 1326457
1673
1674 2005-10-11 Raphael Neider <rneider AT web.de>
1675
1676         * device/lib/pic16/libio/i2c.ignore: added 1320, fixes broken builds
1677         * device/lib/pic16/libdev/pic18f1320.c: added 1320's device library
1678
1679 2005-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
1680
1681         * src/SDCC.y (AT): fixed bug with sfr32 addresses when built with GCC
1682         * support/regression/tests/sfr16.c: added test for the sfr32 bug
1683
1684 2005-10-04 Raphael Neider <rneider AT web.de>
1685
1686         * device/include/pic16/pic18fregs.h, src/pic16/devices.inc,
1687           device/lib/pic16/pics.all: added pic18f1320
1688         * src/pic16/pcode.c (mnem2key): fixed prototype's argument mismatch
1689
1690 2005-09-30 Raphael Neider <rneider AT web.de>
1691
1692         * src/pic16/device.c (Pics16[]): moved device descriptions to devices.inc
1693         * src/pic16/devices.inc: NEW, provides device descriptions
1694         * src/pic16/gen.c (genInline): fixed handling of ';'-comments
1695
1696 2005-09-26 Maarten Brock <sourceforge.brock AT dse.nl>
1697
1698         * src/SDCCicode.c (operandOperation): added GETABIT, GETBYTE, GETWORD and
1699           GETHBIT
1700
1701 2005-09-25 Maarten Brock <sourceforge.brock AT dse.nl>
1702
1703         * doc/sdccman.lyx: updated Highest Order Bit documentation,
1704           documented Any Order Bit, Higher Order Byte and Higher Order Word
1705         * src/SDCC.y: added tokens GETABIT, GETBYTE, GETWORD
1706         * src/SDCCast.c (optimizeGetHbit): updated to also accept bool=expr&(1<<n),
1707           (optimizeGetAbit): new, to get any bit, not only the high bit,
1708           (optimizeGetByte): new, to get a byte from a (long) int: expr>>(8*n),
1709           (optimizeGetWord): new, to get a word from a long int: expr>>(8*n),
1710           (isConformingBody): also check GETABIT, GETBYTE, GETWORD,
1711           (decorateType): '&': also try GETABIT, GETBYTE, GETWORD optimization,
1712             RIGHT_OP: also try GETBYTE, GETWORD optimization,
1713             GETABIT, GETBYTE, GETWORD: decorate them,
1714           (isShiftRightLitVal, isBitAndPowOf2): new helper functions,
1715           (ast_print): added GETABIT, GETBYTE, GETWORD
1716         * src/SDCCcse.c (isSignedOp): added GETABIT, GETBYTE, GETWORD
1717         * src/SDCCicode.c (codeTable): added GETABIT, GETBYTE, GETWORD,
1718           (geniCodeBinary): new generic binary icode,
1719           (ast2iCode): added GETABIT, GETBYTE, GETWORD
1720         * src/port.h: updated comment for PORT.hasExtBitOp
1721         * src/mcs51/gen.c (genGetAbit): new, to get any single bit,
1722           (genGetByte): new, to get a single byte,
1723           (genGetWord): new, to get a word from a long,
1724           (gen51Code): added GETABIT, GETBYTE, GETWORD
1725         * src/mcs51/main.c (hasExtBitOp): added GETABIT, GETBYTE, GETWORD
1726
1727 2005-09-23 Raphael Neider <rneider AT web.de>
1728
1729         * configure.in, configure: have device/lib/pic configured
1730         * device/lib/Makefile.in: added model-pic14
1731         * device/lib/clean.mk: added pic/ to clean rule
1732         * device/lib/pic: added rudimentary pic14 library providing support
1733           functions for multiplication/division/generic pointer access
1734         * src/SDCCopt.c (convilong): mark support functions as extern
1735           for pic14 port as well
1736         * src/pic/gen.c (genMult): added assertions,
1737           (genpic14Code): emit warning on unhandled iCodes
1738         * src/pic/main.c (_hasNativeMulFor): return true only for 8x8 bit
1739         * src/pic/pcode.c (pCodeOpCopy),
1740         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed handling of various
1741           pCodeOpReg-subtypes (PO_{STATUS,INTCON,PCL,PCLATH,PCLATU,BSR,
1742           SFR_REGISTER}), made safe for future extensions
1743         * src/pic16/pcode.c (pic16_safepCodeUnlink): allow for removal of
1744           instructions even if preceeded by SKIP instructions (also remove
1745           them); removed unused code
1746         * src/pic16/pcode.h: added arg2 to pCodeOpLit to match pCodeOpLit2,
1747           prevents leaving parts of the structure uninitialized after copying
1748
1749 2005-09-22 Maarten Brock <sourceforge.brock AT dse.nl>
1750
1751         * src/mcs51/gen.c (genMinus): fix for undetected bug introduced 3 months
1752           ago by me
1753         * support/regression/tests/addsub.c: added test for the bug
1754
1755 2005-09-21 Raphael Neider <rneider AT web.de>
1756
1757         * device/include/pic16/pic18f1220.h,
1758           device/lib/pic16/libdev/pic18f1220.c: added ECCPAS sfr and bitfield
1759         * device/lib/pic16/Makefile.rules: added missing opening paren
1760         * src/pic16/gen.c (pic16_genNot,pic16_genCpl): removed as these
1761           are provided in genutils.c,
1762           (genUminusFloat,genUminus,genCmpEq): added asserts on different
1763           operand/result sizes,
1764           (genCmp): assert on NULL pointers first, then check deref'ed values
1765         * src/pic16/genutils.c (pic16_genCpl): fixed for different operand/
1766           result size
1767
1768 2005-09-18 Raphael Neider <rneider AT web.de>
1769
1770         * src/pic16/gen.c (genFarPointerGet,genFarPointerSet): removed
1771           as these are now unused,
1772           (genPointerGet,genPointerSet): handle FPOINTERs like POINTERs
1773         * src/pic16/pcode.c (pic16_symIsSpecial): assume REG_TMPs to be
1774           local, avoids uninitialized pointer dereference on r->name
1775         * src/pic16/ralloc.c (newReg): fixed indentation
1776
1777 2005-09-13 Maarten Brock <sourceforge.brock AT dse.nl>
1778
1779         * src/SDCCval.c (constVal): fixed bug 730366
1780         * support/Util/SDCCerr.c,
1781         * support/Util/SDCCerr.h: added warning W_INVALID_INT_CONST
1782
1783 2005-09-10 Maarten Brock <sourceforge.brock AT dse.nl>
1784
1785         * as/mcs51/lkmem.c (summary2): fixed report for absolute areas (bug 1210220)
1786
1787 2005-09-09 Maarten Brock <sourceforge.brock AT dse.nl>
1788
1789         * src/mcs51/peeph.def (241.x): fixed bug when comparing generic pointers
1790
1791 2005-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
1792
1793         * as/hc08/lkaomf51.c (OutputName): made name unsigned char,
1794           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1795         * as/mcs51/lkaomf51.c (OutputName): made name unsigned char,
1796           (hex2dec): made hex_digit unsigned char, removed ascii dependance
1797         * as/mcs51/lkarea.c (lnkarea2): sort absolute areas to the front
1798         * packihx/packihx.c (hexDigit): made c unsigned char
1799         * as/mcs51/lklibr.c (fndsym),
1800         * link/z80/lkgb.c (gb),
1801         * link/z80/lklibr.c (fndsym),
1802         * link/z80/lkrloc.c (relr),
1803         * sim/ucsim/libltdl/ltdl.c (load_deplibs, try_dlopen),
1804         * src/SDCC.lex (checkCurrFile, process_pragma),
1805         * src/SDCCglue.c (spacesToUnderscores),
1806         * src/SDCCmain.c (setParseWithComma, processFile),
1807         * src/asm.c (tvsprintf, printCLine),
1808         * src/avr/gen.c (emitcode, aopPut),
1809         * src/ds390/gen.c (emitcode),
1810         * src/hc08/gen.c (emitcode, emitinline),
1811         * src/mcs51/gen.c (emitcode, genInline),
1812         * src/pic/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1813           tokenizeLineNode),
1814         * src/pic/ralloc.c (debugLog),
1815         * src/pic16/pcodepeep.c (cvt_extract_destination, cvt_extract_status,
1816           tokenizeLineNode),
1817         * src/pic16/ralloc.c (debugLog),
1818         * src/z80/main.c (_process_pragma):
1819            made all ctype.h function calls safe
1820         * src/SDCCopt.c: include math.h for fabs
1821         * src/SDCCpeeph.c: added macros ISCHARDIGIT, ISCHARSPACE and ISCHARALNUM
1822           and used them throughout the code to make ctype.h function calls safe
1823         * src/ds390/main.c (asmLineNodeFromLineNode),
1824         * src/mcs51/main.c (asmLineNodeFromLineNode): made p unsigned char*
1825         * src/pic/gen.c (DEBUGpic14_emitcode, pic14_emitcode): made lbp
1826            unsigned char*
1827         * src/pic/pcode.c (mnem2key): made mnem unsigned char*,
1828           (newpCodeAsmDir): made ctype.h function calls safe
1829         * src/pic16/gen.c (pic16_emitpcomment, DEBUGpic16_emitcode,
1830           pic16_emitcode):  made lbp unsigned char*
1831         * src/pic16/pcode.c (mnem2key): made mnem unsigned char*,
1832           (pic16_newpCodeAsmDir): made ctype.h function calls safe
1833         * src/xa51/gen.c (emitcode),
1834         * src/z80/gen.c (_emit2): made lbp unsigned char*
1835         * support/Util/MySystem.c (split_command): made cmd_line and p unsigned
1836            char*
1837
1838 2005-09-05 Raphael Neider <rneider AT web.de>
1839
1840         * src/pic16/ralloc.c (pic16_allocDirReg): use device specific
1841           access bank splitpoint
1842
1843 2005-09-05 Raphael Neider <rneider AT web.de>
1844
1845         * device/lib/pic16/libc/Makefile: added (missing) string to SUBDIRS
1846
1847 2005-09-03 Maarten Brock <sourceforge.brock AT dse.nl>
1848
1849         * .version: changed to version 2.5.3
1850         * doc/sdccman.lyx: changed version to 2.5.3,
1851           documented --codeseg and --constseg and pragma codeseg and constseg,
1852           documented bit parameters (reentrant) and bit returning
1853         * src/SDCCicode.c (geniCodeReceive): fixed (possible) bug generating
1854            currFunc->recvSize, but is this ok for all ports?
1855           (ast2iCode): result of ~ on unsigned char must be cast to int for
1856            bool to work
1857         * src/SDCCmem.c (allocGlobal, allocLocal): don't put bit returning
1858           function pointers in bit space
1859         * src/SDCCsymt.c (checkSClass): allow bit returning function pointers,
1860           (processFuncArgs): call port.reg_parm() with reentrancy info
1861         * src/port.h,
1862         * src/avr/main.c,
1863         * src/ds390/main.c,
1864         * src/hc08/main.c,
1865         * src/pic/main.c,
1866         * src/pic16/main.c,
1867         * src/xa51/main.c,
1868         * src/z80/main.c: port.reg_parm prototype extended with
1869           "bool reentrant" parameter
1870         * src/mcs51/main.c (_mcs51_regparm): use parameter reentrant instead of
1871           options.stackAuto for allocating bit register parameters
1872         * src/mcs51/gen.c (genNot): optimized complementing direct bit,
1873           (genSend): set BitBankUsed if it is,
1874           (selectRegBank): factored out of genCall for use in genPcall,
1875           (genCall): removed redundant dtype assignmen, use selectRegBank,
1876           (genPcall): handle returning in Carry properly, save in F0 if needed,
1877           (genReceive): handle bit register parameters
1878         * src/mcs51/ralloc.c (updateRegUsage): update BitBankUsed along the way,
1879           (mcs51_assignRegisters): enable bit registers for all reentrant
1880            functions and don't set BitBankUsed unconditionally
1881         * src/mcs51/peeph.def (177.d): fixed bug if %2==%3
1882         * support/regression/tests/bitvars.c: enable tests for SDCC_STACK_AUTO
1883         * support/regression/tests/funptrs.c: added tests for BOOL and for return
1884
1885 2005-08-27 Borut Razem <borut.razem AT siol.net>
1886
1887         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) and on
1888         ppc-osx (Darwin) does not support -u option. It seems that it is
1889         supported only on Linux - GNU cp
1890
1891 2005-08-25 Borut Razem <borut.razem AT siol.net>
1892
1893         * sim/ucsim/gui.src/serio.src/Makefile.in,
1894           sim/ucsim/s51.src/Makefile.in, sim/ucsim/avr.src/Makefile.in,
1895           sim/ucsim/z80.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
1896           sim/ucsim/xa.src/Makefile.in: install -s changed to 2 steps:
1897           install and strip, since the strip at /usr/ccs/bin should be used
1898           on solaris
1899
1900 2005-08-24 Borut Razem <borut.razem AT siol.net>
1901
1902         * clean.mk, device/lib/clean.mk: find on sparc-solaris does not support -maxdepth option
1903
1904 2005-08-23 Bernhard Held <bernhard AT bernhardheld.de>
1905
1906         * src/SDCCopt.c (convertToFcall): fixed modulus with divisors 1 and
1907         ffffffffu
1908
1909 2005-08-23 Maarten Brock <sourceforge.brock AT dse.nl>
1910
1911         * as/mcs51/aslink.h: completed lkrloc.c prototypes
1912         * as/mcs51/lkmain.c (link_main): fixed warning
1913         * device/include/stdbool.h: ds390 has no advanced bit support yet
1914         * src/SDCC.y: use SPEC_SHORT and renamed _signed to b_signed
1915         * src/SDCCsymt.c: use SPEC_SHORT and renamed _signed to b_signed
1916         * src/SDCCsymt.h (struct specifier): renamed _xxx bitfields to b_xxx
1917           and updated their macros
1918         * src/SDCCval.c (constVal): updated comment for renamed b_long
1919
1920 2005-08-22 Maarten Brock <sourceforge.brock AT dse.nl>
1921
1922         * as/mcs51/asdata.c: changed ctype['['] to BINOP
1923         * as/mcs51/asexpr.c (expr): added case '[' for bit access in bdata,
1924           (term): abused bit 15 of s_addr to indicate bit-addressable bytes,
1925           (oprio): set priority for '['
1926         * as/mcs51/aslink.h: added define R_BIT, and prototypes for adb_bit
1927            and adb_24_bit
1928         * as/mcs51/asm.h: added defines R_BIT and S_BIT
1929         * as/mcs51/lkarea.c (lnksect2): use T for seg BIT_BANK and overlay it
1930         * as/mcs51/lkdata.c: changed ctype['['] to BINOP
1931         * as/mcs51/lkmain.c (Areas51): rel2 contains 12 (=C) areas now,
1932           added overlayable BIT_BANK area
1933         * as/mcs51/lkmem.c (summary): add BIT_BANK to BSEG_BYTES in the report,
1934           (summary2): explain 'T' in legenda
1935         * as/mcs51/lkrloc.c: replaced old K&R style,
1936           (relr): added R_BIT processing,
1937           (errmsg): added "Bit-addressable relocation error",
1938           (adb_bit): added for converting from byte- to bit-addressable space,
1939           (adb_24_bit): added for converting from byte- to bit-addressable space
1940         * device/include/stdbool.h: changed BOOL to __bit for mcs51 as it can be
1941            used in reentrant functions now even as return value
1942         * device/lib/_gptrput.c (_gptrput): removed obsolete code
1943         * src/SDCCast.c (resultTypePropagate): also propagate AND_OP and OR_OP,
1944           (decorateType): case '!', GETHBIT, AND_OP, OR_OP: result in bool or char
1945         * src/SDCCglobl.h: added indicator BitBankUsed
1946         * src/SDCCglue.c (glue): emit area BIT_BANK with byte 'bits' and equ's for
1947            the bit registers b0-b7
1948         * src/SDCCicode.c (operandFromSymbol): removed IS_BITVAR check,
1949           (geniCodeCast): fixed bug 1263853,
1950           (geniCodeLogicAndOr): put result in bool or char,
1951           (geniCodeReceive): added parameter func for accessing the return type,
1952           (geniCodeFunctionBody): pass func to geniCodeReceive
1953         * src/SDCCmain.c: added indicator BitBankUsed
1954         * src/SDCCmem.c (allocLocal): explicitly set sclass for V_BIT
1955         * src/SDCCsymt.c (newBoolLink): added for creating a bool/bit,
1956           (checkSClass): don't put automatic bool/bit on stack,
1957           (checkFunction): removed check on function cannot return bit
1958         * src/SDCCsymt.h: added newBoolLink prototype
1959         * src/mcs51/gen.c (rb1regs): added bit registers,
1960           (movc): created for assigning to carry,
1961           (pushReg, popReg): created for pushing registers,
1962           (sameRegs): check both AOP_REG and AOP_CRY types,
1963           (aopOp): handle bit registers,
1964           (aopPut): optimization no self-assign,
1965           (saveRegisters): push reg->base (bits) only once for bit registers,
1966            and use pushReg,
1967           (unsaveRegisters): pop reg->base only once and use popReg,
1968           (assignResultValue): added parameter func and return in carry for bits,
1969           (genIpush): optimization no reload in A if not changed,
1970           (genSend): bit parameters in reentrant functions are passed in bit
1971            registers by first assigning to bits in B, then save registers and
1972            copy B to bits,
1973           (genCall): handle returning in Carry properly, save it in F0 if needed,
1974           (genPcall): updated assignResultValue call, this is not safe yet for bit
1975            returning function !!!
1976           (genFunction): don't generate equ's for bit registers and use pushReg,
1977           (genEndFunction): take care of bit returning functions and use popReg,
1978           (genRet): return bit in Carry,
1979           (genIfx): optimize bit registers and other directly addressable bits,
1980           (genReceive): updated assignResultValue call
1981         * src/mcs51/main.c (_mcs51_reset_regparm): added regBitParmFlg,
1982           (_mcs51_regparm): allow passing of upto 8 bit parameters in bit
1983            registers when using stack-auto
1984         * src/mcs51/ralloc.c (_G): added allBitregs,
1985           (regs8051): added the bit registers,
1986           (createStackSpil): use macro IS_BIT,
1987           (getRegBit): added to allocate a bit register, else spill,
1988           (getRegBitNoSpil): added to allocate a bit register, else a gpr,
1989           (updateRegUsage): factored out to ease stepping while debugging,
1990           (serialRegAssign): use updateRegUsage, only spill bits if necessary,
1991            also allocate bit registers,
1992           (fillGaps): handle bit registers,
1993           (findAllBitregs): added to create bit vector with all bit registers,
1994           (mcs51_allBitregs): returns this bit vector,
1995           (mcs51_assignRegisters): when using stack-auto use bit registers for
1996            passing parameters and creating local variables
1997         * src/mcs51/ralloc.h: added B0_IDX..B7_IDX and prototype mcs51_allBitregs
1998
1999 2005-08-22 Borut Razem <borut.razem AT siol.net>
2000
2001         * device/lib/Makefile.in: replaced find option -or with -o
2002           to make it run on solaris
2003
2004 2005-08-22 Raphael Neider <rneider AT web.de>
2005
2006         * src/pic16/gen.c (pic16_loadFromReturn): added check for AOP_PCODE,
2007           fixes #1265442 (crash on Solaris)
2008
2009 2005-08-20 Borut Razem <borut.razem AT siol.net>
2010
2011         * configure, configure.in: added tests for libsocket and libnsl libraries,
2012           requred by sdcdb on sparc-solaris; generate support/regression/Makefile
2013           from support/regression/Makefile.in
2014         * support/regression/Makefile.in: added
2015         * device/lib/pic16/Makefile.common.in: force make to use bash shell
2016         * sim/ucsim/libtool: regenerated on sparc-solaris
2017         * sim/ucsim/avr.src/Makefile.in, sim/ucsim/hc08.src/Makefile.in,
2018           sim/ucsim/s51.src/Makefile.in, sim/ucsim/xa.src/Makefile.in,
2019           sim/ucsim/z80.src/Makefile.in: removed GNU ld specific linker options
2020           -Wl,--start-group and -Wl,--end-group to enable ucsim compilation on
2021           sparc-solaris, which doesn't use GNU ld linker
2022         * device/lib/Makefile.in: cp on sparc-solaris (SunOS) does not support -u option
2023         * as/Makefile: find on sparc-solaris does not support -maxdepth option
2024
2025 2005-08-19 Maarten Brock <sourceforge.brock AT dse.nl>
2026
2027         * src/mcs51/peeph.def: updated comments
2028
2029 2005-08-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2030
2031         * device/lib/_gptrget.c,
2032         * device/lib/_gptrput.c: slightly shorter
2033         * doc/sdccman.lyx: incremented version
2034         * src/mcs51/peeph.def: moved peephole comments to the line of first
2035           change to better keep line correlation, reanimated 186.e
2036         * src/mcs51/peeph.def: renamed similar peepholes by using suffixes
2037
2038 2005-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
2039
2040         * src/pic/pcode.c : Pasted ".line" assembly directives patch from
2041           David Saxton with quotes around file name.
2042
2043 2005-08-15 Borut Razem <borut.razem AT siol.net>
2044
2045         * support/regression/tests/bitfields.c, support/regression/tests/bitvars.c,
2046           support/regression/tests/bitwise.c, support/regression/tests/literalop.c,
2047           support/regression/tests/rotate.c, support/regression/tests/zeropad.c:
2048           make tests run on x86_64 platform
2049
2050 2005-08-13 Raphael Neider <rneider AT web.de>
2051
2052         * device/lib/pic16/Makefile.subdir: weakened clean-intermediate rule
2053           as it might be executed DURING a build (parallel make is wonderful)
2054
2055 2005-08-13 Raphael Neider <rneider AT web.de>
2056
2057         * device/lib/Makefile.in (port-specific-objects-pic16):
2058           revert to cp $(PORT)/bin/*.* $(PORTDIR)
2059         * device/lib/pic16/Makefile: added .PHONY targets, removed builddir
2060           dependency
2061         * device/lib/pic16/Makefile.rules: build subdirs before creating
2062           the library, removed builddir rule, create $(builddir) early in
2063           recurse rule, use empty recurse rule for leaf directories
2064         * device/lib/pic16/Makefile.subdir: added phony targets, ignore
2065           mkdir errors (race condition), removed duplicate suffix "hex"
2066           from clean rules
2067         * device/lib/pic16/libdev/Makefile: recursive make via + and $(MAKE)
2068         * device/lib/pic16/libio/Makefile: create sub-make's builddir early,
2069           prevents mkdir -p from aborting on Alpha
2070
2071 2005-08-12 Raphael Neider <rneider AT web.de>
2072
2073         * src/pic16/glue.c (pic16_print(G)PointerType): do not flush
2074           db-statements in order to allow for arrays of pointers in code
2075           sections to be placed without interspersed 0-padding, fixes
2076           bug #1256215
2077         * (emitStatistics): fixed division by zero for pic18f1220
2078         * src/pic16/pcode.c: buffer (up to) 12 DB directives to allow for
2079           unpadded writing of 8-bit, 16-bit, 24-bit and 32-bit values
2080         * (pic16_emitDS): respect DB_ITEMS_PER_LINE
2081         * (pic16_pCodeConstString): keep track of already emitted string
2082           literals to prevent "duplicate definitions of symbol _str_NR"
2083         * src/pic16/ralloc.c (pic16_allocRegByName): removed not so helpful
2084           debug message
2085         * device/lib/Makefile.in: ignore failing PIC16 library builds
2086         * device/lib/pic16/Makefile: do not build if gputils are missing
2087         * device/lib/pic16/Makefile.common.in: do not enforce MAKEFLAGS=-s
2088
2089 2005-08-10 Raphael Neider <rneider AT web.de>
2090
2091         * device/lib/Makefile.in: fixed copying pic16 libraries (broken by
2092           my last commit)
2093
2094 2005-08-10 Raphael Neider <rneider AT web.de>
2095
2096         * src/*.c, src/pic16/{gen.c,glue.c,main.c}: applied Vangelis
2097           Rokas' patch to add the new fixed point type "__fixed16x16"
2098         * device/lib/pic16/libsdcc/fixed16x16: added Vangelis' support
2099           functions for __fixed16x16 arithmetics
2100         * device/lib/pic16: reimplemented the build system to support
2101           a separate build directory, better handling of libio (create
2102           the library in a separate subdir for each architecture) and
2103           easier configuration (centralized in Makefile.common)
2104
2105 2005-08-07 Raphael Neider <rneider AT web.de>
2106
2107         * src/pic16/gen.c (genrshTwo): fixed sign extension
2108         * src/pic16/device.c: added pic18f2320, 4220 and 4320
2109         * device/include/pic16/pic18f2220.h: changed some bit definitions,
2110           added T0CONbits
2111         * device/include/pic16/pic18f4220.h: NEW, header for
2112           pic18f4220 and pic18f4320
2113         * device/include/pic16/pic18fregs.h: added new devices,
2114           embraced Nop(), ClrWdt(), Sleep() and Reset() with do {} while(0)
2115         * device/include/pic16/signal.h: resolved name clashes
2116           on bit definitions, added DEF_HANDLER2(sig1,sig2,handler)
2117           to also allow testing for interrupt enable bits, added
2118           comments on how to use the macros
2119         * device/lib/pic16/libdev/pic18f2220.c: added T0CONbits
2120         * device/lib/pic16/libdev/pic18f{2320,4220,4320}.c: NEW,
2121           register definitions for the devices
2122         * device/lib/pic16/pics.all: added new devices
2123         * device/lib/pic16/libc/stdlib/calloc.c: fixed zeroing
2124           allocated memory
2125         * device/lib/pic16/libc/stdlib/memfree: do not count
2126           the block header as free memory
2127         * device/lib/pic16/libc/stdlib/memmisc.c (_initHeap):
2128           simplified and added missing end-of-blocklist-marker
2129           (reported by Peter Onion, fixes #1252814)
2130         * (_mergeHeapBlock): fixed loop condition
2131         * device/lib/pic16/libc/stdlib/realloc.c: return NULL for
2132           len==0, restructured code
2133         * device/lib/pic16/libc/stdlib/{malloc,memfreemax}.c: cleaned
2134           up a bit, reduced bitfield accesses, prevent endless loops
2135           in case of heap corruption
2136         * device/lib/pic16/libc/stdlib/x_ftoa.c: disabled
2137           "unreferenced arguments/must return a value" warnings
2138         * device/lib/pic16/libio/usart/ubaud.c (usart_baud):
2139           replaced BAUDREG with SPBRG
2140         * device/lib/pic16/libsdcc/lregs/{lrrest.c,lrst.c},
2141           device/lib/pic16/debug/gstack/gstack.c: replaced
2142           _naked, _asm, _endasm with __naked, __asm, __endasm
2143
2144 2005-08-05 Raphael Neider <rneider AT web.de>
2145
2146         * src/pic16/gen.c (pic16_aopGet): fixed handling of offsets in
2147           AOP_PCODE operands, fixes multibyte union-bitfield-accesses
2148
2149 2005-08-05 Borut Razem <borut.razem AT siol.net>
2150
2151         * device/lib/Makefile.in: added missing ';'
2152         * configure: removed ^M characters
2153
2154 2005-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2155
2156         * device/include/mcs51/at89c51ed2.h, device/include/mcs51/p89v51rd2.h,
2157           device/include/mcs51/at89s53.h: changed to GNU Lesser General Public
2158           License
2159
2160 2005-08-04 Borut Razem <borut.razem AT siol.net>
2161
2162         * configure.in: pic16 libraries build 2nd try - enable running
2163           configure in device/lib/pic16
2164         * configure: regenerated from configure.in
2165         * device/lib/Makefile.in: create $(PORT)/bin directory
2166
2167 2005-08-03 Raphael Neider <rneider AT web.de>
2168
2169         * src/pic16/gen.c (pic16_derefPtr): NEW, single place
2170           to get/set values via pointers
2171         * (genUnpackBits,genPackBits): changed detection of
2172           ptr->bitfield vs. sym.bitfield, fixed access via generic
2173           pointers, removed dead (wrong) code for multibyte bitfields
2174         * (genNearPointerGet, genGenPointerGet): removed useless code,
2175           fixed bitfield detection, fixes #1250594
2176         * (genNearPointerSet): removed useless code
2177         * src/pic16/gen.h: renamed pic16_emitpcode to pic16_emitpcode_real
2178           and introduced macro pic16_emitpcode that conditionally emits
2179           the origin of the following pCode (useful for debugging SDCC)
2180         * src/pic16/pcode.c: changed (and disabled) some debug outputs
2181         * (createDefmap): fixed handling of LFSR for --optimize-df
2182
2183 2005-08-02 Borut Razem <borut.razem AT siol.net>
2184
2185         * device/lib/Makefile.in: pic16 libraries build enabled since
2186           gputils-0.13.2 are now localy installed at sourceforge's compile farm
2187
2188 2005-08-02 Raphael Neider <rneider AT web.de>
2189
2190         * src/pic16/gen.c (genPackBits): removed deprecated warning
2191         * (genGenPointerSet): fixed bitfield detection
2192
2193 2005-08-02 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2194
2195         * device/include/mcs51/msm8xc154s.h: Removed PT2 definition, now in 8052.h.
2196
2197 2005-07-31 Raphael Neider <rneider AT web.de>
2198
2199         * device/lib/pic16/libdev/pic18f458.c,
2200           device/include/pic16/pic18f458.h: added missing T0CONbits
2201
2202 2005-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
2203
2204         * device/include/mcs51/msm8xc154s.h: added, thanks to Matthias Arndt
2205
2206 2005-07-28 Maarten Brock <sourceforge.brock AT dse.nl>
2207
2208         * src/mcs51/gen.c (operandsEqu): fixed bug 1246687
2209
2210 2005-07-23 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2211
2212         * device/include/mcs51/at89c51ed2.h: added.
2213
2214 2005-07-23 Raphael Neider <rneider AT web.de>
2215
2216         * src/pic/gen.h: added emitpcode macro for debugging
2217         * src/pic/gen.c (emitpcode): renamed to emitpcode_real
2218           and replace by macro adding debug information on demand
2219         * (genNot): fixed to C semantics (!0 = 1; !x = 0 iff x != 0)
2220         * (gencjne): tried to fix; replaced with correct (slower) code
2221         * (gen{Unp,P}ackBits): fixed single bit access
2222         * src/pic/pcode.c (AnalyzepCode): fixed DFPRINTF argument
2223         * src/pic/pcodepeep.c (pCodeSearchCondition): fixed finding
2224           previous instruction
2225         * src/pic/pcoderegs.c (regIsSpecial): NEW, check whether a
2226           register has to be handled with care (forbidding movement
2227           of assignments/uses, removing assignments completely, ...)
2228         * (pCodeOptime2pCodes): make use of regIsSpecial
2229         * added lots of debugging output (commented out)
2230         * src/pic/rallloc.c (deassignLRs): prevent operand registers
2231           from being reused as result UNLESS it is known to work
2232
2233 2005-07-23 Maarten Brock <sourceforge.brock AT dse.nl>
2234
2235         * support/Util/dbuf.h: include <stddef.h> for size_t
2236         * .version: changed to version 2.5.2
2237
2238 2005-07-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2239
2240         * src/SDCCloop.c (loopInvariants): fixed bug #1234048
2241
2242 2005-07-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2243
2244         * src/hc08/gen.c (genMinus): fixed bug #1241835,
2245           (genModOneByte): removed needless psha/pula
2246
2247 2005-07-22 Raphael Neider <rneider AT web.de>
2248
2249         * src/SDCCmain.c (linkEdit): initialized linkerScriptFileName,
2250           have PIC14 handled like PIC16, fixes broken pic14 linker calls
2251         * src/pic/gen.c (resolveIfx): do not "invent" labels
2252         * (genSkipc): changed to positive logic
2253         * (genSkipCond): removed as no longer needed
2254         * (pic14_mov2w_regOrLit,genCmp): NEW, replacement for buggy version,
2255           backport from PIC16
2256         * (genLeftShift): check operands are in different registers
2257         * src/pic/genarith.c (genPlus): replaced INCF with ADDLW as
2258           INCF does not update CARRY...
2259         * src/pic/main.c: fixed _linkCmd
2260         * src/pic/pcode.c (unlinkpCode): added inactive code
2261         * src/pic/ralloc.c (deassignLRs): keep arguments to shift operations
2262           alive (do not assign result and operand overlapping registers)
2263
2264 2005-07-22 Raphael Neider <rneider AT web.de>
2265
2266         * src/pic/device.c (dump_sfr): replaced register declaration with
2267           call to emitSymbolToFile() to avoid duplicate symbols
2268         * (assignRelocatableRegisters): do not declare external symbols
2269         * src/pic/ralloc.c (allocNewDirReg): fixed to get size of arrays
2270           right (take size of type, not etype)
2271         * (allocDirReg): fixed call to allocNewDirReg() to pass OP_SYM_TYPE
2272         * (writeUsedRegs): also dump dynDirectRegs (e.g. local variables)
2273         * (packRegsForAccUse): disabled assignment of WREG as
2274           the result reg to prevent occurence of just fixed #1235003,
2275           fixes #1242954
2276         * src/pic/glue.c (emitSymbolToFile): NEW, central place to declare
2277           symbols (avoids duplicate symbols in .asm file)
2278         * (pic14emitRegularMap): use emitSymbolToFile()
2279         * src/pic/gen.c (aopOp): fixed spillLocation handling
2280         * (gen{Unp,P}ackBits): fixed acquiring bit-operands
2281         * (genDataPointerSet): removed unneccessary variables/output
2282
2283 2005-07-22 Maarten Brock <sourceforge.brock AT dse.nl>
2284
2285         * as/mcs51/lkarea.c: enlarged codemap for banked memory
2286         * device/lib/mcs51/crtbank.asm: added # to 0x0F
2287
2288 2005-07-21 Raphael Neider <rneider AT web.de>
2289
2290         * src/pic/gen.c (aopOp): do not generate AOP_ACC operands as pic14
2291           architecture cannot handle them efficiently, fixes bug #1235003
2292         * src/pic16/device.c (pic16_dump_{u,i}section,pic16_dump_int_registers):
2293           check for empty sets before using them (fixes bug #1232190)
2294
2295 2005-07-19 Maarten Brock <sourceforge.brock AT dse.nl>
2296
2297         * as/mcs51/lkarea.c (lnkarea, lnkarea2): improved BSEG size calculation,
2298           (lnksect2): generate warnings for memory overlap
2299         * src/SDCC.lex (doPragma, process_pragma): added pragma's codeseg and
2300           constseg to set the name of these segments so you can instruct the linker
2301           to place them in banks
2302         * src/SDCCast.c (decorateType): use new macro IS_FUNCPTR()
2303         * src/SDCCglobl.h: added MODEL_HUGE to enum,
2304           added code_seg and const_seg to options
2305         * src/SDCCglue.c (emitMaps): use options.const_seg,
2306           (createInterruptVect): put interrupt vectors in segment HOME,
2307           (glue): put HOME before static segment and put the main glue in HOME,
2308           (glue): use options.code_seg
2309         * src/SDCCicode.c (geniCodeCall): use new macro IS_FUNCPTR()
2310         * src/SDCCmain.c: added option --codeseg and --constseg to set the name of
2311           these segments so you can instruct the linker to place them in banks
2312           (linkEdit): use code_loc for HOME segment which should be the first
2313           segment in code memory now
2314         * src/SDCCmem.c: fixed more stuff like bug 1238386
2315         * src/SDCCsymt.c (getSize): use generic pointer size for banked functions,
2316           (changePointer): don't change function pointers to code pointers for
2317           banked functions,
2318           (compareType): added exceptional check for banked function pointers
2319         * src/SDCCsymt.h: changed IFFUNC_ISBANKEDCALL, added IS_FUNCPTR
2320         * src/hc08/main.c (_hc08_genAssemblerPreamble): put HOME first, put CSEG
2321           after static in code memory
2322         * src/mcs51/gen.c: added aopLiteralLong prototype,
2323           (aopForSym): use getSize for functions,
2324           (genCall): generate banked calls over one trampoline __sdcc_banked_call
2325           in HOME with lsb of address in r0, msb in r1 and bank in r2, use
2326           -Wl-bBANKSEG=0xbbaaaa option to set the address (aaaa) and bank (bb) of
2327           the segment,
2328           (genPcall): use call for literal function pointers and generate banked
2329           calls over the one trampoline so there's only one place for the user to
2330           modify according to his/hers hardware,
2331           (genEndFunction): jump to __sdcc_banked_ret in HOME for banked functions,
2332           (genPlusIncr): moved check icount>4 beyond inc dptr optimization
2333         * src/mcs51/main.c: added keyword banked,
2334           (_mcs51_genExtraAreas): put HOME first followed by GSINIT, STATIC and CSEG
2335         * support/Util/SDCCerr.c,
2336         * support/Util/SDCCerr.h: added E_BANKED_WITH_CALLEESAVES, registers are
2337           needed for passing the bank and address to the trampoline
2338         * device/lib/mcs51/crtbank.asm: added for bankswitching
2339         * device/lib/mcs51/Makefile: added crtbank
2340
2341 2005-07-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2342
2343         * src/SDCCcse.c (algebraicOpts): fixed loss of volatility
2344           for fields at offset 0 of a struct or union as reported
2345           on 2005-07-07 in the developer mailing list.
2346
2347 2005-07-15 Maarten Brock <sourceforge.brock AT dse.nl>
2348
2349         * src/SDCCmem.c: fixed bug 1238386
2350
2351 2005-07-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2352
2353         * src/mcs51/peeph.def: added labelrefcounting for peepholes
2354           (patch #1144962), added peephole 300, enabled 259.x
2355         * doc/sdccman.lyx: removed screenshot and provided link instead
2356
2357 2005-07-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2358
2359         * doc/sdccman.lyx: added section about debugging with ddd
2360         * doc/figures/ddd_example.eps: screenshot of debugging session
2361
2362 2005-07-04 Raphael Neider <rneider AT web.de>
2363
2364         * src/pic/gen.c (genPointerGet): handle pointers to CONST values
2365           like CODE pointers, fixes #1115683
2366         * src/pic/pcode.c (DoBankSelect): forget LastRegIdx during function
2367           call, fixes bugs #1232211, #1228110,
2368           fixed wrong casts to pCodeFlow from pCodeInstructions
2369
2370 2005-07-04 Raphael Neider <rneider AT web.de>
2371
2372         * src/pic/gen.c (popGet): changed assert to allow for
2373           bit operands
2374         * (popGetAddr): changed signature to provide
2375           an additional index, patched all call sites
2376         * (genCmpEq): handle literal-like operands correctly
2377         * (genAddrOf): added sanity checks on __code/__data pointers
2378         * (genAssign): added handling of symbols from __code section
2379         * (gencjne): do not generate code for comparisons whose result
2380           is neither stored nor used, fixes bug #1171114
2381         * (AccLsh, AccRsh): operate on operand instead of WREG
2382         * (shift{Left,Right}_Left2ResultLit): NEW, size independant
2383           replacement for Shift{LR}{12}Left2Result; shift (byte/int/long)
2384           by known count
2385         * rewrote complete shift-by-literal logic, commented unused
2386           functions out
2387         * (genConstPointerGet): get multiple bytes (if result size > 1),
2388           fixed handling of non-immediate addresses
2389         * (genPointerGet): handle CODE pointers like CONST pointers
2390         * (genpic14Code): insert C-SRC lines as Cource-pCodes
2391         * ({aop,op}_isLitLike): NEW, single place to decide whether an
2392           operand is to be treated as a literal or not
2393         * (mov2w,genPcall,genCmpEq),
2394           src/pic/genarith.c: use aop_isLitLike() to decide between
2395           literal/register contents
2396         * (addSign): added missing offset
2397         * src/pic/gen.h: remove newline after FENTRY/FEXIT comments,
2398           only emit comment in debug-mode,
2399           use {aop,op}_isLitLike throughout the file
2400         * src/pic/glue.c: fix initializers for pointers (work in progress)
2401         * src/pic/pcode.c (get_op): honor index on _const symbols
2402         * ({reset,dump}pCodeStatistics): NEW, estimate code size
2403         * (dumppBlock): added pCode size estimation
2404         * src/pic/ralloc.c (deassignLRs,serialRegAssign,packRegisters):
2405           check for IS_SYMOP before OP_SYMBOL'ing
2406         * fixed indentation, compacted switch-statements
2407         * (allocReg): find free register and allocate it instead of
2408           allocating new registers all the time
2409         * (deassignLRs): prevent POINTER_GET's from being assigned the same
2410           registers as its operands (necessary only for multibyte GETs)
2411
2412 2005-07-01 Raphael Neider <rneider AT web.de>
2413
2414         * src/pic/gen.h: added prototypes emitpComment, popGetAddr and
2415           debugging .asm-output macros FENTRY + FEXIT
2416         * src/pic/gen.c (Safe_vsnprintf): NEW, is there a more generic
2417           way... I wonder...
2418         * (emitpComment): NEW, printf to pCode
2419         * (popGet): added assert on too large offsets, fixed PO_IMMEDIATE's
2420           offset handling
2421         * (popGetAddr): NEW, variant of popGet to access an immediates
2422           high(er) bytes instead of the n'th byte of memory they reference,
2423           replaced popGet with popGetAddr where neccessary
2424         * (genDataPointerGet): reactivated and fixed implementation
2425         * (genNearPointerGet): enabled call to genDataPointerGet, fixes array-
2426           accesses
2427         * (genDataPointerSet): fixed multibyte assignments
2428         * (genpic14Code): fixed --i-code-in-asm handling
2429         * src/pic/genarith.c: fixed PO_IMMEDIATE issue using popGetAddr,
2430         * (genPlus): fixed index-out-of-bounds error
2431         * src/pic/pcode.c (get_op): fixed PO_IMMEDIATE's index/offset handling
2432         * src/pic/ralloc.c: added debugging output macro FENTRY2
2433         * (spillThis): fixed indentation, enbraced for-body for clarity
2434         * (rematStr): commented out as now unused
2435         * (regTypeNum): commented out special spill case (overwrites
2436           arbitrary values)
2437         * fixes bugs #1229346, #1216476 (both arrays) and #1115667 (SIGSEGV)
2438
2439 2005-06-30 Maarten Brock <sourceforge.brock AT dse.nl>
2440
2441         * doc/sdccman.lyx: documented sfr16/sfr32,
2442           added example for using storage class with function pointers
2443         * src/mcs51/gen.c (genPlusIncr): optimized small offsets from dptr
2444
2445 2005-06-28 Maarten Brock <sourceforge.brock AT dse.nl>
2446
2447         * device/lib/_gptrget.c: also push/pop _PSBANK, added # to 0x03
2448         * device/lib/_itoa.c,
2449         * device/lib/_ltoa.c: optimized codesize
2450         * src/SDCCsymt.c (checkSClass): added sanity check for sfr at addresses,
2451           but don't know how to suppress the double warning.
2452         * src/mcs51/gen.c (genPlusIncr): fixed bug when incrementing volatile int's
2453         * support/Util/SDCCerr.c,
2454         * support/Util/SDCCerr.h: added warning W_SFR_ABSRANGE for sanity check
2455
2456 2005-06-27 Maarten Brock <sourceforge.brock AT dse.nl>
2457
2458         * as/mcs51/asexpr.c (expr): disabled warning "not in .flat24 mode",
2459           fixed old K&R prototypes
2460         * as/mcs51/asout.c (outrb): always output as if generating 24bit addresses
2461         * device/lib/_gptrget.c,
2462         * device/lib/_gptrgetc.c,
2463         * device/lib/_gptrput.c: changed versions for new memory indicator values,
2464           also new versions for small generic pointers and banked generic pointers
2465         * src/port.h: added const_name
2466         * src/SDCC.lex: added keywords sfr16, __sfr16, sfr32, __sfr32
2467         * src/SDCC.y: added tokens SFR16, SFR32 and their sfr_attributes
2468         * src/SDCCcse.c (findPrevIc): check all associative operators
2469         * src/SDCCglue.c (emitMaps): use CONST_NAME if defined
2470         * src/SDCCicode.h: added macro IS_ASSOCIATIVE
2471         * src/SDCCmem.c: updated comments,
2472           set far-space to 0 for pdata, results in optimized code
2473         * src/SDCCmem.h: added macro CONST_NAME
2474         * src/SDCCsymt.h: renumerated generic pointer types GPTYPE_... thereby
2475           moving the info into the highest bits, see also gptrget/gptrput
2476         * src/src.dsp: added sdcc.ico to project files
2477         * src/avr/gen.c (genCast): fixed bug 0x%d
2478         * src/avr/main.c (avr_port): added "CONST (CODE)" for const_name
2479         * src/ds390/gen.c (aopForRemat, adjustArithmeticResult): disconnected direct
2480           relation between ptr_type and DCL_TYPE,
2481           (genCast): fixed bug 0x%d
2482         * src/ds390/main.c (ds390_port, tininative_port, ds400_port): added "CONST
2483           (CODE)" for const_name
2484         * src/hc08/gen.c (genCast): fixed bug 0x%d
2485         * src/hc08/main.c (_hc08_genAssemblerPreamble): added .area ...const_name,
2486           (hc08_port): added "CONST (CODE)" for const_name
2487         * src/mcs51/gen.c (aopForSym): optimized pushing ACC,
2488           (aopForRemat, adjustArithmeticResult): disconnected direct relation
2489           between ptr_type and DCL_TYPE,
2490           (aopGetUsesAcc, aopGet, aopPut): changed first parameter from asmop* to
2491           operand* and took AOP() inside function so sfr-ness can be checked,
2492           (all over): repaired calls to aopGetUsesAcc, aopGet, aopPut to comply with
2493           new prototype,
2494           (genFunction, genEndFunction): optimized stack setup,
2495           (genMinus): optimized for literals with ending zeroes (in bytes),
2496           (genCast): fixed bug 0x%d
2497         * src/mcs51/main.c (_mcs51_keywords): added sfr16 and sfr32,
2498           (mcs51_port): added "CONST (CODE)" for const_name
2499         * src/mcs51/peeph.def: made rule 226 more generic
2500         * src/pic/main.c (pic_port): added "CONST (CODE)" for const_name
2501         * src/pic16/main.c (pic16_port): added "CONST (CODE)" for const_name
2502         * src/xa51/main.c (xa51_port): added "CONST (CODE)" for const_name
2503         * src/z80/main.c (z80_port): added NULL for const_name,
2504           (gbz80_port): added NULL for const_name
2505         * support/regression/tests/bug663539.c,
2506         * support/regression/tests/sfr16.c: new tests
2507
2508 2005-06-25 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2509
2510         * device/include/mcs51/p89v51rd2.h, device/include/mcs51/at89s53.h: added.
2511
2512 2005-06-24 Raphael Neider <rneider AT web.de>
2513
2514         * device/lib/pic16/libdev/pic18f[68][567]20.c:
2515           corrected typos...
2516         * device/include/pic16/signal.h: added USBIF
2517           and SIG_USB
2518
2519 2005-06-24 Raphael Neider <rneider AT web.de>
2520
2521         * device/lib/pic16/libdev/pic18f2455.c,
2522           device/include/pic16/pic18f2455.h: NEW
2523         * device/include/pic16/pic18fregs.h,
2524           device/lib/pic16/pics.all,
2525           src/pic16/device.c: added 18f2455
2526         * device/lib/pic16/libdev/pic18f[68][567]20.c,
2527           device/include/pic16/{pic18f[68][567].h,usart.h}:
2528           replaced MULTIPLE_USARTS define with more relaible
2529           compatibility sfrs (for USART access)
2530
2531 2005-06-20 Slade Rich <slade_rich AT users.sourceforge.net>
2532
2533         * src/pic/pcode.c : Fixed problem when a string constant contains a "\r\n"
2534           and the output asm file line is printed on two lines.
2535
2536 2005-06-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2537
2538         * sim/ucsim/hc08.src/inst.cc (inst_condbranch): fixed simulation of
2539           BGT, BLE, BHI, and BLS instructions
2540         * src/hc08/gen.c (outAcc, outBitC, outBitNV, genCmpLt, genCmpGt,
2541           genCmpEq): removed
2542         * src/hc08/gen.c (genCmpEQorNE, genCmp, branchopCmp, nameCmp,
2543           negatedCmp, exchangedCmp, genhc08Code): rewrite of comparison handling,
2544           fixes bug #1216342
2545         * src/hc08/peeph.def: added rules 2g - 2l for new conditional branches
2546
2547 2005-06-15 Raphael Neider <rneider AT web.de>
2548
2549         * src/pic16/NOTES: moved Vangelis from active developers to people to contact
2550         * device/include/pic16/{6520.h,8520.h}: fixed configuration bits
2551         * src/pic16/gen.c (): prevent iTemps from being considered to be in CODESPACE,
2552           fixes bug #1221120; for symbols in CODESPACE get number of bytes to read from
2553           OP_SYM_TYPE() instead of OP_SYM_ETYPE()
2554
2555 2005-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2556
2557         * device/include/mcs51/reg764.h: Changed PB0 to PBO as requested by
2558           Marcel Telka in bug #1215704
2559
2560 2005-06-02 Slade Rich <slade_rich AT users.sourceforge.net>
2561
2562         * src/pic/pcode.c : Changed pseudo stack size to 15 to allow WSAVE to be
2563           located in shared memory bank.
2564
2565 2005-05-31 Raphael Neider <rneider AT web.de>
2566
2567         * src/pic16/{gen.c,genarith.c}: replaced sign-extension
2568           "CLRF, BTFSC <signbit>, DECF/COMF" with side-effect-free
2569           "CLRF, BTFSC <signbit>, SETF"; fixes "long>>9"
2570
2571 2005-05-27 Maarten Brock <sourceforge.brock AT dse.nl>
2572
2573         * device/lib/_strncpy.c: fixed the fix
2574
2575 2005-05-26 Raphael Neider <rneider AT web.de>
2576
2577         * src/pic16/glue.c (pic16_printIvalChar): fixed _constant_ string
2578           initializers with \0, bug #1208187
2579         * src/pic/glue.c (printIvalChar): fixed (non- and constant) string
2580           intializers with \0, bug #1208187
2581
2582 2005-05-26 Raphael Neider <rneider AT web.de>
2583
2584         * src/pic16/glue.c (pic16_printIvalChar): fixed string
2585           initializers with \0, bug #1208187
2586         * src/pic16/main.c (_process_pragma): added sanity checks
2587           for stack position and size, emit warnings when appropriate
2588
2589 2005-05-26 Maarten Brock <sourceforge.brock AT dse.nl>
2590
2591         * device/lib/_strncpy.c: fixed not filling with \0
2592
2593 2005-05-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2594
2595         * src/SDCCast.c (funcOfType, funcOfTypeVarg, stringToSymbol,
2596           createFunction),
2597         * src/SDCC.y (external_definition, enumerator, parameter_declaration,
2598           compound_statement),
2599         * src/SDCCsymt.h,
2600         * src/SDCCsymt.c (addSymChain, processFuncArgs): fixed bug #1159134
2601
2602 2005-05-24 Raphael Neider <rneider AT web.de>
2603
2604         * src/pic16/glue.c (pic16_printGPointerType): fixed #1207796
2605
2606 2005-05-24 Raphael Neider <rneider AT web.de>
2607
2608         * device/include/pic16/pic18f{442,452,458}.h: fixed wrong
2609           TRISE definitions, closes bug #1162453
2610
2611 2005-05-22 Raphael Neider <rneider AT web.de>
2612
2613         * src/pic16/main.c (_process_pragma): check for missing
2614           arguments to pragmas code and udata
2615         * device/include/pic16/pic18f{2550,4331,4455,4520}.h:
2616           consistency fixes to match other headers (thanks to Jim Paris)
2617         * device/lib/pic16/libio/i2c.ignore: 18f4331 provides no I2C
2618
2619 2005-05-21 Maarten Brock <sourceforge.brock AT dse.nl>
2620
2621         * src/SDCCicode.c (isOperandEqual): fixed missing ;
2622
2623 2005-05-19 Maarten Brock <sourceforge.brock AT dse.nl>
2624
2625         * support/regression/tests/bug1198642.c: new test
2626         * src/SDCCicode.c (isOperandEqual): fixed bug 1198642
2627         * src/SDCCcse.c (findPrevIc): added comment, please have a look
2628         * support/scripts/resource.h,
2629         * support/scripts/resource.rc,
2630         * src/src.dsp: added sdcc.ico to project as icon for sdcc.exe
2631         * support/scripts/sdcc.ico: added 32x32 icon
2632
2633 2005-05-18 Raphael Neider <rneider AT web.de>
2634
2635         * device/lib/pic16/libdev/pic18f*.c,
2636         * device/include/pic16/pic18f*.h: updated "sfr" and "at X"
2637           keywords to "__sfr" and "__at (X)"
2638         * device/include/pic16/pic18fregs.h: added pic18f4520
2639         * src/pic16/pcode.c (pic16_pCode2str): fixed (?) bug
2640           #1203088 (MPLAB compatibility)
2641
2642 2005-05-17 Raphael Neider <rneider AT web.de>
2643
2644         * device/include/pic16/pic18f{2550,4331,4455,4520}.h: NEW
2645         * device/lib/pic16/libdev/pic18f{2550,4331,4455,4520}.c: NEW
2646         * device/lib/pic16/pics.all: added new devices
2647         * src/pic16/device.c: added support for pic18f4520
2648
2649 2005-05-16 Raphael Neider <rneider AT web.de>
2650         * src/pic16/gen.{c,h}: s/mov2f/pic16_mov2f made public
2651         * src/pic16/genarith.c (genAddLit): fixed bug 1202480
2652         * src/pic16/pcode.{c,h} (pic16_newpCodeOpBit_simple): NEW
2653           convenience function for bit access
2654
2655 2005-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
2656
2657         * device/lib/printf_large.c: fixed bug 1193299
2658         * support/regression/tests/bug1057979.c: added test %3.3s
2659
2660 2005-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2661
2662         * device/include/mcs51/8051.h,
2663         * device/include/mcs51/8052.h: made parseable with lint
2664         * device/include/mcs51/lint.h: added include file for (sp)lint
2665         * doc/sdccman.lyx: added doc about use of splint (syntax checking tool)
2666         * doc/cdbfileformat.lyx,
2667         * doc/test_suite_spec.lyx: hardcoded date to the date of last text change
2668
2669 2005-05-14 Raphael Neider <rneider AT web.de>
2670
2671         * device/lib/pic16/Makefile.common.in: add --optimize-df to OPT_FLAGS
2672         * device/lib/pic16/libc/stdlib/itoa.c (new)
2673         * device/lib/pic16/libc/stdlib/Makefile: have itoa.c built
2674         * device/lib/pic16/libio/Makefile: exclude subdir according to
2675           ${subdir}.ignore for certain PICs (lacking e.g. i2c)
2676         * device/lib/pic16/libio/i2c.ignore (new): pic18f1220 has no I2C support
2677         * src/pic16/gen.c (genFunction): prevent annoying warning
2678         * src/pic16/pcode.c: renamed stack_t to dynstack_t to prevent
2679           nameclashes on BeOS
2680         * support/cpp2/cppmain.c (cpp_output_string): new
2681         * support/cpp2/cpplib.c (_cpp_do__Pragma): fixed _Pragma(""),
2682           fixes bug 1116802
2683
2684 2005-05-13 Borut Razem <borut.razem AT siol.net>
2685
2686         * src/SDCCmain.c (linkEdit): fixed bug 1195202
2687
2688 2005-05-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2689
2690         * .version: changed to version 2.5.1; back to bleeding edge development
2691
2692 2005-05-11 Borut Razem <borut.razem AT siol.net>
2693
2694         * doc/sdccman.lyx doc/cdbfileformat.lyx doc/test_suite_spec.lyx:
2695           generate PDF version 1.3 documents
2696
2697 2005-05-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2698
2699         * .version: changed to version 2.5.0
2700
2701 2005-04-27 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
2702
2703         * doc/sdccman.lyx: updated weblinks, index and smaller updates
2704
2705 2005-04-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2706
2707         * doc/sdccman.lyx: changed version 2.5.0, documented --std-c89,
2708         --std-sdcc89, --std-c99, --std-sdcc99, and the corresponding #pragmas, as
2709         well as many smaller updates.
2710         * .version: changed to version 2.5.0-pre1
2711
2712 2005-04-26 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
2713
2714         * src/SDCCmain.c (setIncludePath): added port->target to SDCC_INCLUDE_NAME
2715
2716 2005-04-26 Maarten Brock <sourceforge.brock AT dse.nl>
2717
2718         * support/regression/tests/bug1185672.c: added
2719         * src/mcs51/gen.c (aopGetUsesAcc, genCpl, genAnd, genOr, genXor): fixed
2720           bug 1185672
2721         * src/mcs51/gen.c (genCall): added comments, made it look safer
2722         * src/mcs51/gen.c (genEndFunction): simplified
2723
2724 2005-04-25 Maarten Brock <sourceforge.brock AT dse.nl>
2725
2726         * src/mcs51/ralloc.c (serialRegAssign): fixed bug 1189609
2727
2728 2005-04-14 Borut Razem <borut.razem AT siol.net>
2729
2730         * fixed bug 1045046 - SIGSEGV with really simple code?:
2731           src/pic/pcode.c (pCodeInitRegisters)- pseudo stack size increased to 16
2732           src/pic/ralloc.c (typeRegWithIdx) - error message on pseudo stack overflow
2733
2734 2005-04-14 Borut Razem <borut.razem AT siol.net>
2735
2736         * src/pic16/gen.c (genInline), src/pic16/main.c (_process_pragma),
2737           src/pic16/device.h: temporarily disabled experimental #inline pragma
2738           for 2.5.0 release
2739
2740 2005-04-14 Maarten Brock <sourceforge.brock AT dse.nl>
2741
2742         * device/include/z80/stdio.h,
2743         * device/include/z80/string.h: removed these highly incomplete files so
2744           SDCC can use the default ones in device/include/
2745
2746 2005-04-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2747
2748         * src/mcs51/gen.c (genEndFunction): removed unused variable to fix
2749         gcc warning.
2750         * device/lib/Makefile.in: default PORTINCDIR to the mcs51 subdir to
2751         fix sdcpp warnings.
2752
2753 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2754
2755         * device/include/malloc.h: removed redundant __reentrant prototypes
2756         * device/lib/_mullong.c: added working xstack variant in asm (C version
2757           doesn't pass regression tests)
2758         * device/lib/bpx.c: used __data and made bpx char for mcs51
2759         * src/SDCCast.c (decorateType): removed unused GPTYPE_IDATA,
2760           (createFunction): fixed bug with xstackPtr
2761         * src/SDCCcse.c: corrected comments
2762         * src/SDCCopt.c (convertToFcall): fixed warning in MSVC,
2763           (killDeadCode, eBBlockFromiCode): removed unused code
2764         * src/SDCCsymt.h: removed unused GPTYPE_GPTR and GPTYPE_IDATA,
2765           corrected comments
2766         * src/mcs51/gen.c (aopForSym, aopPut, toBoolean, unsaveRegisters,
2767           assignResultValue, genCall, genFunction, genEndFunction, genAnd,
2768           genOr, genXor, genAddrOf): fixed several bugs concerning xstack
2769           (genModOneByte): fixed warning in MSVC
2770         * src/mcs51/main.c (): added comments
2771         * src/mcs51/peeph.def: changed 129 to 129.a, added 129.b, 129.c & 129.d
2772
2773 2005-04-12 Maarten Brock <sourceforge.brock AT dse.nl>
2774
2775         * src/SDCCmain.c (linkEdit): oops, changed one line too many
2776
2777 2005-04-11 Maarten Brock <sourceforge.brock AT dse.nl>
2778
2779         * src/SDCCmain.c (linkEdit): fixed bug with finding crt0.o for z80
2780
2781 2005-04-10 Vangelis Rokas <vrokas AT users.sourceforge.net>
2782
2783         * src/pic16/glue.c (printIvalChar): fixed bug when emitting
2784         characters arrays of larger size than the declared one.
2785
2786 2005-04-10 Borut Razem <borut.razem AT siol.net>
2787
2788         * src/pic/gen.c (genInline),
2789           src/pic/pcode.c (newpCodeAsmDir), (pCode2str),
2790           (genericPrint), (unlinkpCodeFromBranch), (compareLabel),
2791           (findNextInstruction), (findPrevInstruction),
2792           (findInstructionUsingLabel),
2793           src/pic/pcode.h: fixed bug #1164907 - Labels not being recognized
2794         * src/pic/pcode.c (findLabel): added missing '\n'
2795         * src/src.dsp: added SDCCdwarf2.c to the project
2796
2797 2005-04-09 Borut Razem <borut.razem AT siol.net>
2798
2799         * support/scripts/sdcc.nsi: added include/hc08/* h to NSIS setup
2800
2801 2005-04-08 Raphael Neider <rneider AT web.de>
2802
2803         * src/pic16/pcode.c: added helpers defmapInsertAfter (insert a new item
2804           into the chain after a given one) and mergeDefmapSymbols (combine
2805           defmap entries for each symbol per pcode)
2806         * (createDefmap): have defmap entries merged in the end
2807         * (defmapReplaceSymRef): split defmap entries covering two accesses to
2808           a symbol before replacing one access type's symbol, merge symbols in
2809           the end (replacement symbol might already have an entry)
2810         * (assignValnums): keep reference to written WREG intact
2811
2812 2005-04-08 Raphael Neider <rneider AT web.de>
2813
2814         * src/pic16/pcode.c (struct defmap_s): named anonymous union (for
2815           Alpha)
2816
2817 2005-04-08 Vangelis Rokas <vrokas AT users.sourceforge.net>
2818
2819         * src/pic16/pcode.c (pic16_get_op2): enlarged size of array b to 128
2820         bytes
2821
2822 2005-04-07 Raphael Neider <rneider AT web.de>
2823
2824         * device/include/pic16/usart.h: added compatibility defines for
2825           devices with more than one USART
2826         * device/include/pic16/pic18f[68][567]20.h: activated above defines
2827
2828 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2829
2830         * device/lib/Makefile.in: updated for port specific include
2831
2832 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2833
2834         * support/regression/ports/mcs51/spec.mk: added mcs51 include
2835
2836 2005-04-07 Maarten Brock <sourceforge.brock AT dse.nl>
2837
2838         * device/include/8051.h,
2839         * device/include/8052.h,
2840         * device/include/at89S8252.h,
2841         * device/include/at89c55.h,
2842         * device/include/at89x051.h,
2843         * device/include/at89x51.h,
2844         * device/include/at89x52.h,
2845         * device/include/mcs51reg.h,
2846         * device/include/reg51.h,
2847         * device/include/reg764.h,
2848         * device/include/regc515c.h,
2849         * device/include/sab80515.h: (re)moved these 12 files
2850         * device/include/mcs51/8051.h,
2851         * device/include/mcs51/8052.h,
2852         * device/include/mcs51/at89S8252.h,
2853         * device/include/mcs51/at89c55.h,
2854         * device/include/mcs51/at89x051.h,
2855         * device/include/mcs51/at89x51.h,
2856         * device/include/mcs51/at89x52.h,
2857         * device/include/mcs51/mcs51reg.h,
2858         * device/include/mcs51/reg51.h,
2859         * device/include/mcs51/reg764.h,
2860         * device/include/mcs51/regc515c.h,
2861         * device/include/mcs51/sab80515.h: and added them here
2862
2863 2005-04-06 Maarten Brock <sourceforge.brock AT dse.nl>
2864
2865         * device/include/stdarg.h: changed SDCC specific keywords to double
2866           underlined form.
2867         * device/include/stdint.h: changed intptr_t and uintptr_t for others than
2868           mcs51 and ds390.
2869         * device/include/hc08/mc68hc908gp32.h,
2870         * device/include/hc08/mc68hc908jb8.h,
2871         * device/include/hc08/mc68hc908jkjl.h,
2872         * device/include/hc08/mc68hc908qy.h: fixed comments
2873         * device/include/mcs51/README: updated
2874         * device/include/mcs51/c8051f120.h: added PINRSF
2875         * device/lib/pic16/libc/stdlib/crc16.c: fixed comments
2876         * src/pic16/pcode.c: MSVC6 doesn't accept declaring new variables
2877           amidst code. Also inline is not supported.
2878
2879 2005-04-06 Raphael Neider <rneider AT web.de>
2880
2881         * src/pic16/pcode.c (pic16_pCodeReplace): also update pcflow->end
2882         * (createDefmap): fixed CALLs to depend on FSR1 and RETLW to restore
2883           callers stack/frame pointers
2884
2885 2005-04-06 Vangelis Rokas <vrokas AT users.sourceforge.net>
2886
2887         * device/include/pic16/usart.h: added, missing in previous commit,
2888         * device/include/pic16/adc.h: fixed typo,
2889         * device/lib/pic16/libc/utils/cvtdec.S: added missing in previous
2890         commit,
2891         * device/lib/pic16/libc/stdlib/g_ftoa.S: modified to include
2892         <p18fxxx.inc>
2893         * device/lib/pic16/libc/stdio/streams.c: leave stdin, stdout
2894         uninitialized because a bug appears with gplink
2895         * device/lib/pic16/{some makefiles}: moved $(CSTD) from CFLAGS to
2896         COMPILE_FLAGS and added CPPFLAGS with -nostdinc because sdcpp
2897         complains for unrecognised option
2898
2899 2005-04-05 Raphael Neider <rneider AT web.de>
2900
2901         * src/pic16/gen.c (pic16_popCopyReg): made copying work for extended
2902           structs as well (using memcpy)
2903         * (genFunction): fixed comparison, used pCodeOpLabel to reduce warning
2904           on ISRs (GOTO has no label)
2905         * src/pic16/device.h: added OF_OPTIMIZE_DF
2906         * src/pic16/main.c: added compiler switch --optimize-df to enable the
2907           new data flow analysis/optimization
2908         * src/pic16/pcode.c: added (prototypes for and implementation of)
2909           dataflow analysis functions, fixed pCodeInstructions' inCond and
2910           outCond values, made RCALL a branch instruction
2911         * (pic16_unlinkpCode): keep C line if possible
2912         * (pic16_pCodeUnlink): removed cast on left side of assignment, have
2913           C line moved if possible
2914         * (pic16_getRegFrompCodeOp): NEW, improved version of...
2915         * (pic16_getRegFromInstruction,pic16_getRegFromInstruction2): changed
2916           to use new pic16_getRegFrompCodeOp (works for more SFRs)
2917         * (pic16_BuildFlow): fixed skip instructions with label (did not start
2918           new flow)
2919         * (pic16_getJumptabpCode): NEW, needed in...
2920         * (LinkFlow): fixed handling of jumptables, calls and conditional
2921           branches
2922         * (pic16_InsertCommentAfter): NEW
2923         * (pic16_pCodeReplace): made verbose and flow preserving
2924         * (AnalyzeFlow): added call to data flow analysis
2925         * src/pic16/pcode.h: added defmaps to pCodeFlow struct
2926         * src/pic16/pcodeflow.h: added PCC_STATUS to mean all STATUS bits
2927         * src/pic16/ralloc.c (packRegsForAssign): added return 1 in the end
2928
2929 2005-04-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2930
2931         * src/SDCCast.c (decorateType): fixed bug #1105626
2932
2933 2005-04-02 Vangelis Rokas <vrokas AT users.sourceforge.net>
2934
2935         * device/include/asm/pic16/features.h,
2936         * pic18f*.h headers,
2937         * device/include/pic16/adc.h,
2938         * device/include/pic16/delay.h,
2939         * device/include/pic16/i2c.h,
2940         * device/include/pic16/malloc.h,
2941         * device/include/pic16/stdio.h,
2942         * device/include/pic16/stdlib.h,
2943         * device/include/pic16/string.h,
2944         * device/lib/pic16/libc/stdio/printf_tiny.c,
2945         * device/lib/pic16/libc/stdio/printf_small.c,
2946         * device/lib/pic16/libc/stdio/strmgpsim.c,
2947         * device/lib/pic16/libc/stdio/strmmssp.c,
2948         * device/lib/pic16/libc/stdio/strmusart.c,
2949         * device/lib/pic16/libc/stdio/vfprintf.c,
2950         * device/lib/pic16/libc/stdlib/ltoa.c,
2951         * device/lib/pic16/libc/stdlib/putchar.c,
2952         * device/lib/pic16/libc/stdlib/x_ftoa.c,
2953         * device/lib/pic16/libc/stdlib/memchrpgm.c,
2954         * device/lib/pic16/libc/stdlib/memchrram.c,
2955         * device/lib/pic16/libc/stdlib/memcpypgm2ram.c,
2956         * device/lib/pic16/libc/stdlib/memcpyram2ram.c,
2957         * device/lib/pic16/libio/adc/adcbusy.c,
2958         * device/lib/pic16/libio/adc/adcread.c,
2959         * device/lib/pic16/libio/adc/adcsetch.c,
2960         * device/lib/pic16/libio/usart/ubaud.c,
2961         * device/lib/pic16/libio/usart/ubusy.c,
2962         * device/lib/pic16/libio/usart/udrdy.c,
2963         * device/lib/pic16/libio/usart/uopen.c,
2964         * device/lib/pic16/libio/usart/uputc.c,
2965         * device/lib/pic16/libsdcc/gptr/gptrget1.c,
2966         * device/lib/pic16/libsdcc/gptr/gptrget2.c,
2967         * device/lib/pic16/libsdcc/gptr/gptrget3.c,
2968         * device/lib/pic16/libsdcc/gptr/gptrget4.c,
2969         * device/lib/pic16/libsdcc/gptr/gptrput1.c,
2970         * device/lib/pic16/libsdcc/gptr/gptrput2.c,
2971         * device/lib/pic16/libsdcc/gptr/gptrput3.c,
2972         * device/lib/pic16/libsdcc/gptr/gptrput4.c: modified all SDCC
2973         specific keywords to double underlined form,
2974         * device/lib/pic16/libc/Makefile.rules,
2975         * device/lib/pic16/libsdcc/Makefile.rules,
2976         * device/lib/pic16/libm/Makefile,
2977         * device/lib/pic16/libio/Makefile.rules: added CSTD macro in CFLAGS
2978         to compile with C standard set in Makefile.common
2979         * device/lib/pic16/libc/stdlib/Makefile: added new C sources
2980         rand.c and crc.c in compilation process,
2981         * device/lib/pic16/libsdcc/int/divuint.c,
2982         * device/lib/pic16/libsdcc/long/divulong.c: changed declaration of
2983         `c' from signed to unsigned,
2984         * device/lib/pic16/startup/crt0.c,
2985         * device/lib/pic16/startup/crt0i.c,
2986         * device/lib/pic16/startup/crt0iz.c: adopted to all SDCC specific
2987         keywords to double underlined form, bug fixes in _do_cinit function
2988         which prevented the correct initialization of the .idata segment,
2989         * src/pic16/pcoderegs.c (insideLRBlock): fixed a bug that caused the
2990         core to enter a infinite loop
2991         * device/lib/pic16/libc/stdlib/rand.c, crc.c: new files
2992
2993 2005-04-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2994
2995         * src/SDCCicode.c (getArraySizePtr): fixed bug #1122171
2996
2997 2005-04-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
2998
2999         * device/include/Makefile.in: add support for hc08 subdirectory
3000         * device/include/hc08/: new subdirectory
3001         * device/include/hc08/mc68hc908jkjl.h: new header contributed by
3002         Lucas Loizaga, thanks!
3003         * device/include/hc08/mc68hc908qy.h,
3004         * device/include/hc08/mc68hc908gp32.h,
3005         * device/include/hc08/mc68hc908jb8.h: moved hc08 register defs to
3006         their own directory. Changed internal macro names to use the compiler
3007         reserved namespace. Changed SDCC specific keywords to double
3008         underlined form.
3009         * device/include/math.h,
3010         * device/include/malloc.h,
3011         * device/include/stdarg.h,
3012         * device/include/stdbool.h
3013         * device/include/string.h,
3014         * device/include/tinibios.h,
3015         * device/include/ds400rom.h,
3016         * device/include/8051.h,
3017         * device/include/8052.h,
3018         * device/include/80c51xa.h,
3019         * device/include/at89c55.h,
3020         * device/include/at89S8252.h,
3021         * device/include/at89x51.h,
3022         * device/include/at89x52.h,
3023         * device/include/ds80c390.h,
3024         * device/include/reg764.h,
3025         * device/include/regc515c.h,
3026         * device/include/sab80515.h,
3027         * device/include/mcs51/c8051f000.h,
3028         * device/include/mcs51/c8051f018.h,
3029         * device/include/mcs51/c8051f020.h,
3030         * device/include/mcs51/c8051f040.h,
3031         * device/include/mcs51/c8051f060.h,
3032         * device/include/mcs51/c8051f120.h,
3033         * device/include/mcs51/c8051f300.h,
3034         * device/include/mcs51/c8051f310.h,
3035         * device/include/mcs51/c8051f320.h,
3036         * device/include/mcs51/c8051f330.h,
3037         * device/include/mcs51/c8051f350.h,
3038         * device/include/z180.h: Changed SDCC specific keywords to double
3039         underlined form.
3040
3041 2005-03-31 Vangelis Rokas <vrokas AT users.sourceforge.net>
3042
3043         * src/pic16/device.c (Pics16[]): added devices 18F2550, 18F4331,
3044         18F4455,
3045         * (pic16_assignConfigWordValue): disable testing of configuration
3046         register value with config mask,
3047         * src/pic16/gen.c (pic16_testStackOverflow): prefix stack test
3048         function with port->fun_prefix,
3049         * (genFunction): when generating a naked interrupt function never
3050         create an absolute segment placed in interrupt vector address, place
3051         the actual interrupt function at IVA instead, when an interrupt
3052         function is generated with unspecified interrupt then do not create
3053         the absolute section,
3054         * (genGenPointerGet, genGenPointerSet, genPackBits): replace all
3055         code for generating a call to generic pointer get/put function with
3056         a call to function pic16_callGenericPointer(),
3057         * src/pic16/genutils.c (pic16_callGenericPointerRW): NEW, generates
3058         the call to the generic pointer get/put functions with prefixing the
3059         function name with port->fun_prefix,
3060         * src/pic16/glue.c (pic16glue): ifdef-out test of OF_LR_SUPPORT,
3061         * src/pic16/main.c (_process_pragma): prefix function with
3062         port->fun_prefix,
3063         * (_pic16_finaliseOptions): define macro __18Fxxxx macro when
3064         calling assembler, old 18Fxxxx macro is deprecated,
3065         * src/pic16/pcode.c (unlinkpCodeFromBranch): added PC_INLINE and
3066         PC_ASMDIR in while condition,
3067         * (findInstruction): add PC_ASMDIR in while condition,
3068         * (buildCallTree): prefix main with port->fun_prefix,
3069         * (pic16_pCode2str): fixed bug that didn't emit the memory access
3070         identifier for variable with banked access in instructions BTFSS,
3071         BTFSC, BCF, BSF, BTG
3072         * (AnalyzeFlow): moved call to OptimizepCode to pic16_AnalyzeBanking,
3073         * src/pic16/pcodepeep.c (pCodeOpCompare): increase size of b to 1024,
3074         * src/pic16/pcoderegs.c (pic16_pCodeRegoptimizeRegUsage): don't
3075         perform optimization when enviroment variable NO_REG_OPT is set,
3076         * (insideLRBlock): NEW, return 1 if register is inside an
3077         INF_LOCALREGS block,
3078         * (RemoveRegFromLRBlock): remove a register that is completely
3079         eliminated by register optimization, but it is still left in local
3080         register store/restore in/from stack block,
3081         * (Remove2pcodes): after removing register, check to see if it
3082         should be removed from local register store/restore in/from stack
3083         block,
3084         * src/pic16/ralloc.c (pic16_decodeOp): added decode for
3085         DUMMY_READ_VOLATILE,
3086
3087         * device/include/pic16/adc.h: minor prototype modifications and
3088         update,
3089         * device/include/pic16/malloc.h: added GPL notice various
3090         modifications,
3091         * device/include/pic16/stdint.h: NEW, standard header for ints
3092         * device/include/pic16/delay.h: NEW, header for delay functions,
3093         delay10tcy, delay100tcy, delay1ktcy, delay10ktcy, delay100ktcy,
3094         delay1mtcy,
3095         * device/include/pic16/signal.h: NEW, header providing helper macros
3096         for implementing signal handlers,
3097         * device/include/pic16/stdio.h: added prototypes for functions,
3098         printf, vprintf, sprintf, vsprintf, fprintf, vfprintf. Added
3099         prototypes for stdin and stdout, added macro PUTCHAR to
3100         automatically implement putchar function prototype,
3101         * device/include/pic16/usart.h: modified and updated USART library,
3102         * device/lib/pic16/libio/adc/,
3103         * device/lib/pic16/libio/i2c: some modifications to improve library
3104         performance,
3105         * device/lib/pic16/libc/stdio/: modifications for the new printf*
3106         family of functions,
3107         * device/lib/pic16/libc/stdlib/: various modifications in the malloc
3108         family of functions and other sources,
3109         * device/lib/pic16/libio/usart/: NEW, c sources for the usart module
3110         of the PIC18Fxx[28] devices,
3111         * device/lib/pic16/libc/delay/: NEW, c sources for the delay functions,
3112         * device/lib/pic16/libc/utils/: minor modifications in the .S sources,
3113         * device/lib/pic16/startup/{crt0i.c, crt0iz.c}: redesign of the
3114         _do_cinit function, because the previous failed when local variables
3115         where not placed in the same memory bank,
3116         * device/lib/pic16/libsdcc/char/: various modifications to improve
3117         library performance,
3118         * doc/sdccman.lyx: some reorganization of the PIC16 part, added many
3119         information on the new functions of the c library and more...
3120
3121 2005-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3122
3123         * src/SDCCBBlock.c (iCodeBreakDown): fixed bug #1170212
3124
3125 2005-03-26 Raphael Neider <rneider AT web.de>
3126
3127         * src/pic16/gen.c (genSkipc): fixed semantics (execute branch
3128           if condition == CARRY)
3129         * (genCmp): adapted to new genSkipc semantics
3130         * src/pic16/genutils.c (pic6_genCmp_special): removed side effect
3131           on rIfx (genCmp was broken)
3132
3133 2005-03-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3134
3135         * src/SDCCmain.c (setDefaultOptions, optionsTable[], parseCmdLine),
3136         * src/z80/main.c (_keywords[]),
3137         * src/SDCCglobal.h (struct options),
3138         * src/SDCC.y,
3139         * src/SDCC.lex (isTargetKeyword, doPragma, pragma_tbl[]): new pragmas
3140         to enable/disable SDCC and C99 extensions/keywords (std_c89, std_sdcc89,
3141         std_c99, std_sdcc99). Also, equivalent command line options (--std-c89,
3142         --std-sdcc89, --std-c99, --std-sdcc99). SDCC specific keywords are
3143         always available in leading double underscore form. The C99 support is
3144         mostly missing, but it's a start.
3145         * support/regression/tests/bug-227710.c: fixed nonconforming use of
3146         reserved identifier "__data".
3147
3148 2005-03-24 Maarten Brock <sourceforge.brock AT dse.nl>
3149
3150         * src/mcs51/peeph.def: fixed bug 1170013
3151
3152 2005-03-22 Maarten Brock <sourceforge.brock AT dse.nl>
3153
3154         * device/include/mcs51reg.h: fixed bug 842007
3155
3156 2005-03-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3157
3158         * src/SDCCcflow.c (dfNumCompare): committed the wrong version of this
3159         last time.
3160
3161 2005-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3162
3163         * src/port.h (struct PORT),
3164         * src/avr/ralloc.c (avr_assignRegisters),
3165         * src/avr/main.c,
3166         * src/ds390/ralloc.c (ds390_assignRegisters),
3167         * src/ds390/main.c,
3168         * src/hc08/ralloc.c (hc08_assignRegisters),
3169         * src/hc08/main.c,
3170         * src/mcs51/ralloc.c (mcs51_assignRegisters),
3171         * src/mcs51/main.c,
3172         * src/pic/ralloc.c (pic14_assignRegisters),
3173         * src/pic/main.c,
3174         * src/pic16/ralloc.c (pic16_assignRegisters),
3175         * src/pic16/main.c,
3176         * src/xa51/ralloc.c (xa51_assignRegisters),
3177         * src/xa51/main.c,
3178         * src/z80/ralloc.c (z80_assignRegisters),
3179         * src/z80/ralloc.h,
3180         * src/SDCCopt.c (eBBlockFromiCode, replaceRegEqv, killDeadCode),
3181         * src/SDCCcse.c (ifxOptimize, cseBBlock, cseAllBlocks),
3182         * src/SDCCcse.h,
3183         * src/SDCCdflow.c (computeDataFlow),
3184         * src/SDCCdflow.h,
3185         * src/SDCCloop.c (addDefInExprs, loopInvariants, loopOptimizations),
3186         * src/SDCCloop.h,
3187         * src/SDCCcflow.c (*),
3188         * src/SDCCcflow.h,
3189         * src/SDCCBBlock.c (iCodeBreakDown, dumpEbbsToFileExt, eBBWithEntryLabel),
3190         * src/SDCCBBlock.h (struct ebbIndex): new struct that keeps two copies
3191         of the eBBlock list, sorted by both bbnum and dfnum. (fixes bug with
3192         immedDom() returning wrong block; probably fixes bug #1160833)
3193
3194 2005-03-20 Borut Razem <borut.razem AT siol.net>
3195
3196         * support/scripts/inc2h.pl: WIN32 port
3197
3198 2005-03-19 Maarten Brock <sourceforge.brock AT dse.nl>
3199
3200         * device/lib/makefile.in: added abs.c and labs.c
3201
3202 2005-03-17 Maarten Brock <sourceforge.brock AT dse.nl>
3203
3204         * device/include/stdint.h: added
3205         * device/lib/abs.c: added
3206         * device/lib/labs.c: added
3207         * device/include/stdlib.h: added abs() and labs() prototypes
3208         * device/lib/libsdcc.lib: added abs and labs
3209         * device/include/float.h,
3210         * device/lib/_fsmul.c,
3211         * device/lib/printf_fast.c,
3212         * device/lib/printf_tiny.c: updated comments
3213
3214 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3215
3216         * src/SDCCicode.c (geniCodeSwitch, geniCodeJumpTable): fixed
3217         bug #1164313
3218
3219 2005-03-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3220
3221         * src/SDCCcse.c (cseBBlock): retain assignment to self when volatile
3222         * src/SDCCast.c (isLoopCountable): fixed bug #1161985
3223
3224 2005-03-15 Maarten Brock <sourceforge.brock AT dse.nl>
3225
3226         * device/lib/printf_large.c: removed inline assembly for portability and
3227           readability. Use printf_fast if speed or size are more important.
3228         * src/pic16/gen.c: removed conditions around use of DEBUGpc
3229         * src/pic16/genutils.h: added define for DEBUGpc for MSVC
3230
3231 2005-03-15 Vangelis Rokas <vrokas AT users.sourceforge.net>
3232
3233         * src/pic16/genutils.c (pic16_genCmp_special): initialized offs to
3234         prevent compiler warning
3235
3236 2005-03-14 Vangelis Rokas <vrokas AT users.sourceforge.net>
3237
3238         * device/lib/pic16/startup/crt0i.c (_cinit): local variables where
3239         moved to level 0 and declared as static. Also they are explicit
3240         placed in access bank. This was necessery because some times they
3241         might cross memory bank boundaries. crt0iz.c is *NOT* updated!!!
3242         * src/pic16/device.h: added flag OPTIMIZE_CMP to enable some compare
3243         optimizations. Currently only compare to unsigned char is implemented,
3244         * src/pic16/gen.c: added fReturnIdx array,
3245         * (struct resolvedIfx) is moved to gen.h and made public,
3246         * (struct _G): added sregsAlloc and sregsAllocSet fields,
3247         * (aopForSym): added an optimization to directly store in stack of
3248         the operand of a SEND iCode,
3249         * (pic16_aopOp): don't return return registers as strings (AOP_STR)
3250         but as registers instead (AOP_REG) using the fReturnIdx array,
3251         * (pic16_freeAsmop): remove the freed register from the
3252         _G.sregsAlloc field,
3253         * (pic16_aopGet): in case AOP_STR, the compare to 'a' is changed to
3254         a compare of 'WREG',
3255         * (pic16_popGetTempRegCond): changed function prototype, now
3256         function takes also a bitVector argument v which holds the current
3257         set of registers that are allocated for stack access by aopForSym,
3258         registers allocated in aopForSym for accessing stack symbols are not
3259         any more part of the functions usedRegs field,
3260         * (genCall): some times aopOp is called for a stack variable to be
3261         send, aopForSym might perform the push, if this is true make sure
3262         that genCall doesn't push the variable twice by testing _G.resDirect,
3263         * (genFunction): changed testing for unspecified interrupt number
3264         from 256 to INTNO_UNSPEC,
3265         * modified selection scheme of frame pointer generation. Previously
3266         if function did use local registers a frame pointer was generated,
3267         now a frame pointer is generated only if function has arguments
3268         (that need PLUSW2 register access), or has stack arguments, or the
3269         compiler is not instructed to omit the frame pointer,
3270         * (genEndFunction): before restoring local registers that were saved
3271         in the function preamble, also restore the registers that *might*
3272         have been allocated for stack access,
3273         * (genRet): removed some old comments,
3274         * (genCmp, the active (RN's) version): added a call to the
3275         pic16_genCmp_special function to perform the compare with a more
3276         robust and optimized way,
3277         * (genInline): a feature has been added in inline code generation,
3278         which allows a wildcard variable substitution when writing inline
3279         assembly. Code is incomplete and experimental therefore undocumented,
3280         * (genCast): changed order of aopOp for result and right to allow
3281         aopForSym to directly load the result if possible,
3282         * src/pic16/genutils.c (selectCompareOp, pic16_genCmp_special): NEW,
3283         perform an optimized compare on some selected special occasions,
3284         * src/pic16/genutils.h: declaration of resolvedIfx structure from gen.c,
3285         * src/pic16/glue.c (pic16createInterrupVect): make sure we never
3286         generate an IVT any more,
3287         * src/pic16/main.c (pic16_optionsTable): added command line option
3288         --optimize-cmp,
3289         * (_pic16_initPaths): when calling C preprocessor define pic18fXXXX
3290         macro too, when calling assembler define pic18fXXXX *and* __18Fxxxx
3291         macros,
3292         * src/pic16/NOTES: Raphael Neider added in list of active developers
3293         * src/pic16/pcode.c (OPT_TYPE_STR): added strings jumptable_begin and
3294         jumptable_end to prevent bug #,
3295         * (pic16_pciADDWFC, ADDFWC, COMF, CLRF): added some missing flags in
3296         inCond and outCond fields,
3297         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): add a fix for bug #,
3298         * src/pic16/ralloc.c (serialRegAssign): explicit set willCS to 0 to
3299         turn off register spilling,
3300         * (packRegsForOneUse): synced with other ports' versions although it
3301         is not used currently,
3302         * (pic16_packRegisters): added an optimization while reading
3303         structure bitfields, some registers may be saved (malloc code is
3304         decreased by 80 bytes)
3305
3306 2005-03-12 Vangelis Rokas <vrokas AT users.sourceforge.net>
3307
3308         * src/SDCCcse.c (cseBBlock): inside 'do operand lookup' loop test if
3309         left is a bitfield, if yes, then don't optimize assignment. Perhaps
3310         this can be optimized more?
3311
3312 2005-03-10 Raphael Neider <rneider AT web.de>
3313
3314         * src/pic16/gen.c (pic16_loadFSR0, genPackBits, genUnpackBits,
3315           genNearPointerGet): (hopefully) fixed access to bitfields via
3316           pointers (p->bitN = x; and x = p->bitN; failed)
3317
3318 2005-03-09 Paul Stoffregen <paul AT pjrc.com>
3319
3320         * device/lib/printf_fast.c: fix leading zero format, eg "%02d"
3321
3322 2005-03-09 Raphael Neider <rneider AT web.de>
3323
3324         * src/SDCCopt.c (killDeadCode): fixed bug #1156016
3325
3326 2005-03-06 Maarten Brock <sourceforge.brock AT dse.nl>
3327
3328         * src/SDCCicode.h: moved CRITICAL and ENDCRITICAL from SKIP_IC2 to SKIP_IC
3329         * src/mcs51/ralloc.c (willCauseSpill): added check for REG_BIT type,
3330           (regTypeNum): set REG_BIT type if necessary
3331         * src/mcs51/ralloc.h: added define REG_BIT, used to fix bug 1144613
3332         * support/regression/tests/critical.c: check bug 1144613
3333
3334 2005-03-02 Raphael Neider <rneider AT web.de>
3335
3336         * src/pic16/gen.c (genRightShiftLiteral): fixed bug #1154256
3337
3338 2005-02-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3339
3340         * src/avr/ralloc.c (serialRegAssign),
3341         * src/ds390/ralloc.c (serialRegAssign),
3342         * src/hc08/ralloc.c (serialRegAssign),
3343         * src/mcs51/ralloc.c (serialRegAssign),
3344         * src/pic/ralloc.c (serialRegAssign),
3345         * src/pic16/ralloc.c (serialRegAssign),
3346         * src/xa51/ralloc.c (serialRegAssign),
3347         * src/z80/ralloc.c (serialRegAssign): fixed bug #1105154
3348
3349 2005-02-22 Maarten Brock <sourceforge.brock AT dse.nl>
3350
3351         * src/SDCCast.c (decorateType): fixed bug 1124787
3352
3353 2005-02-20 Hubert Sack <sack AT digiplan.de>
3354         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3355
3356         * src/mcs51/peeph.def: added peepholes 3.h-k and 132.a-f from
3357         patch #1121755
3358
3359 2005-02-20 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3360
3361         * src/SDCCpeeph.def: new keyword "labelRefCountChange" which allows peepholes
3362         to keep the correct label reference count when adding/removing references
3363         to labels. A peephole file using this is appended to patch #1144962.
3364
3365 2005-02-14 Raphael Neider <rneider AT web.de>
3366
3367         * device/lib/pic16/libc/string/memccpy.c: changed 3rd argument to char
3368         * src/SDCC.lex (process_pragma): fixed to make disable_warning work for PIC16
3369         * src/pic16/gen.c (aopForSym, calls to pic16_aopOp): prevent unneccessary
3370           retrievals of result operand's value on assignment
3371
3372 2005-02-13 Vangelis Rokas <vrokas AT otenet.gr>
3373
3374         * device/include/pic16/string.h: modified prototype for memccpy()
3375         to memccpy(void *, void *, char, size_t)
3376         * src/pic16/gen.c (genFunction, genEndFunction): reenable if-case to
3377         check whether to omit frame pointer or not,
3378         * (genInline): convert all occurences of "\n" to LF in inline
3379         assembler blocks, this helps formatting the inline text,
3380         * (pic16_loadFSR0): modified prototype,
3381         * (genNearPointerGet, genNearPointerSet): reorganization of code,
3382         removed some 8051 legacy code,
3383         * (genPackBits): enabled handling bitfields exceeding one byte in size,
3384         * src/pic16/ralloc.c (pic16_assignRegisters): clear dynrIdx variable
3385         before allocating temporary registers in functions,
3386
3387 2005-02-11 Maarten Brock <sourceforge.brock AT dse.nl>
3388
3389         * support/regression/tests/bitvars.c: corrected the "fix"
3390
3391 2005-02-10 Maarten Brock <sourceforge.brock AT dse.nl>
3392
3393         * support/regression/tests/bitvars.c,
3394         * support/regression/tests/bitwise.c,
3395         * support/regression/tests/rotate.c: "fixed" problems on Alpha
3396
3397 2005-02-10 Raphael Neider <rneider AT web.de>
3398
3399         * src/pic16/pcode.c (assignToSameBank) : fixed cast to pointer of
3400           different size for Alpha
3401         * src/pic16/gen.c (genCmpEq) : improved compare with 0
3402
3403 2005-02-09 Raphael Neider <rneider AT web.de>
3404
3405         * src/SDCC.lex(doPragma) : save and restore warning options as well
3406           (also added new stack plus clone- and copyAndFreeSDCCERRG())
3407         * have #pragma less_pedantic set the errorlevel to WARNING
3408           (fixes #1117001)
3409         * (cloneOptimize) : fixed wrong malloc's size
3410         * support/Util/SDCCerr.[ch] : made SDCCERRG globally accessible to
3411           facilitate correct handling of #pragma (save|restore)
3412
3413 2005-02-09 Maarten Brock <sourceforge.brock AT dse.nl>
3414
3415         * src/mcs51/gen.c: removed non-standard C nameless struct/union
3416
3417 2005-02-04 Slade Rich <slade_rich AT users.sourceforge.net>
3418
3419         * src/pic/gen.c : Fix for bugs #1080519 & #1115662.
3420
3421 2005-02-03 Maarten Brock <sourceforge.brock AT dse.nl>
3422
3423         * device/include/mcs51/c8051f120.h: added declarations for sbit port 2,3&4
3424
3425 2005-02-02 Raphael Neider <rneider AT web.de>
3426
3427         * src/SDCCast.c (processParms): disabled W_NONRENT_ARGS for pic16 port
3428         * src/pic16/gen.c (aopForSym): reenabled special case for function pointers
3429         * (pic16_storeForReturn): fixed to allow returning function pointers
3430         * (genPackBits): improved accessing full bytes, implemented for GPOINTERs
3431         * device/include/pic16/{stddef.h,stdbool.h}: added
3432
3433 2005-02-02 Maarten Brock <sourceforge.brock AT dse.nl>
3434
3435         * device/include/mcs51/c8051f040.h: added define CPT2_PAGE
3436
3437 2005-02-01 Slade Rich <slade_rich AT users.sourceforge.net>
3438
3439         * src/pic16/pic16.dsp : Added file graph.c to make it compile under windows
3440         * src/pic16/Makefile.bcc : Do not use this file but added file graph.c as it
3441          appeared to be required
3442
3443 2005-01-31 Borut Razem <borut.razem AT siol.net>
3444
3445         * support/scripts/sdcc.nsi: added include/asm/ds390, include/asm/mcs51,
3446           include/mcs51 and include/z80 directories to the package
3447
3448 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3449
3450         * src/hc08/gen.c (genFunction): fixed bug #1112752
3451
3452 2005-01-30 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3453
3454         * src/mcs51/peeph.def: adapted peephole 258.x to changed gen.c (genAnd)
3455
3456 2005-01-29 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3457
3458         * src/mcs51/gen.c (genAnd): accessing LSB/MSB by rotating acc
3459
3460 2005-01-29 Maarten Brock <sourceforge.brock AT dse.nl>
3461
3462         * device/include/Makefile.in: create/copy mcs51 and z80 include subdirs
3463
3464 2005-01-27 Maarten Brock <sourceforge.brock AT dse.nl>
3465
3466         * device/include/c8051fxxx.h: removed these 6 files
3467         * device/include/mcs51/c8051fxxx.h: added these 11 new files
3468
3469 2005-01-26 Raphael Neider <rneider AT web.de>
3470
3471         * src/pic16/gen.c (genAssign): fixed assignment from longs
3472           in codespace (were cut to three bytes)
3473         * (genDummyRead): implemented (except for CODESPACE...),
3474           fixed bug #1108575
3475         * src/pic16/glue.c (emitStatistics): beautified
3476         * device/lib/pic16/libm/Makefile: added include path
3477
3478 2005-01-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3479
3480         * src/z80/gen.c (aopPut): fixed bug #1103902
3481
3482 2005-01-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3483
3484         * device/lib/expf.c: fixed bug #1095792
3485
3486 2005-01-24 Vangelis Rokas <vrokas AT otenet.gr>
3487
3488         * device/lib/pic16/libm: added Math library sources
3489
3490 2005-01-24 Raphael Neider <rneider AT web.de>
3491
3492         * src/pic16/pcode.h: added second memory operand to pCodeOpReg
3493           to enable upcast to pCodeOpReg2 (there is no type tag to
3494           differenciate the two and pic16_popGet2p cast into PCOR2)
3495         * src/pic16/main.c (_process_pragma): fixed another malloc bug
3496           (sizeof(sectNames) changed to sizeof(sectName))
3497           Both patches fix segfaults under MinGW.
3498
3499 2005-01-23 Raphael Neider <rneider AT web.de>
3500
3501         * src/pic16/{device.c,pcode.c}: s/free/Safe_free/g for
3502           Safe_[mc]?alloc()'ed variables
3503         * src/pic16/gen.c (pic16_aopOp,pic16_popGet): added handling
3504           of (byte sized) temporaries (assign them to WREG for now)
3505         * src/pic16/main.c (_process_pragma): fixed nasty malloc bug
3506           (used sizeof(set *sectSyms) instead of sizeof(struct sectSym)),
3507           this might fix SIGSEGVs on MinGW...
3508         * src/SDCCopt.c (killDeadCode): restored original behaviour
3509           (volatile operands might get thrown away though)
3510
3511 2005-01-23 Vangelis Rokas <vrokas AT otenet.gr>
3512
3513         * src/pic16/gen.c: fixed bug #1106975,
3514         * src/pic16/gen.c: fixed possible bug #1102572, now during TOS
3515         pointer update, INTCON is saved, global interrupts are disabled and
3516         restored after updateing TOS.
3517         * src/SDCC.y, src/SDCC.lex, src/SDCCsymt.c, src/SDCCsymt.h:
3518         * added function attribute 'shadowregs' to take advantage of shadow
3519         registers,
3520         * added function attribute 'wparam' as an alternative to the wparam
3521         pragma,
3522         * support/Utils/SDCCerr.[ch]: added error E_SHADOWREGS_NO_ISR when
3523         user declares a non-ISR function as 'shadowregs',
3524         * doc/sdccman.lyx: updated to reflect recent changes of pic16 port
3525
3526 2005-01-22 Vangelis Rokas <vrokas AT otenet.gr>
3527
3528         * .version: bumped version number to 2.4.8
3529         * device/lib/pic16/pics.all: list of PIC18F devices supported by
3530         pic16 port,
3531         * device/lib/pic16/libio/i2c/: I2C module support library,
3532         * device/include/pic16/i2c.h: I2C support library header,
3533         * device/lib/pic16/libc/stdio/: standard IO support sources,
3534         * (printf_small.c): printf_small() source, supports float print,
3535         * (printf_tiny.c): printf_tiny() source, does not support floats,
3536         * device/lib/pic16/Makefile.common.in: added OPT_FLAGS macro to
3537         enable global optimizations for entire library source, other
3538         Makefiles in the source tree are also modified to reflect this,
3539         * device/lib/pic16/libc/stdlib/putchar.c (putchar): dummy putchar()
3540         function,
3541         * doc/sdccman.lyx: updated to reflect new changes,
3542         * src/pic16/gen.c (aopForSym): don't handle sym->iaccess in
3543         sym->onStack if-case,
3544         * src/pic16/main.c (_pic16_keywords): commented out keywords bit,
3545         sbit, idata, _idata, xdata, _xdata,
3546         * added pragma library, to link an external library, (see doc),
3547         * removed command line options, --pomit-config-words, --pomit-ivt,
3548         --pleave-reset-vector,
3549         * (pic16_finaliseOptions): when define macro SDCC_MODEL_{SMALL/LARGE}
3550         when calling assembler to reflect memory model used, also define
3551         macro STACK_MODEL_{SMALL/LARGE} when compiling and assembling to
3552         reflect stack model used,
3553         * src/pic16/ralloc.c (pic16_allocDirReg): when operand is allocated
3554         on stack return NULL,
3555
3556 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3557
3558         * src/SDCCopt.c (killDeadCode): do not throw iCodes away if one
3559           of the operands is volatile. Fixes #1020220
3560
3561 2005-01-22 Daniel Winkler <post AT danielwinkler.de>
3562
3563         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): reenabled optimization
3564         * (OptimizeRegUsage): make sure that there is really no other flow where
3565           the first pCode is used
3566
3567 2005-01-22 Raphael Neider <rneider AT web.de>
3568
3569         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): disabled optimization
3570           to fix #1106967 (pCode->seq are not set up correctly)
3571
3572 2005-01-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3573
3574         * src/SDCCglue.c (glue): make sure code area is declared before the
3575         static initialization area.
3576
3577 2005-01-21 Raphael Neider <rneider AT web.de>
3578
3579         * device/lib/Makefile.in: fixed test for pic16 install dir
3580         * device/lib/pic16/*/Makefile*: modified compile flags to enable
3581           optimizations
3582         * doc/sdccman.lyx: updated banksel optimization, removed --flr-support and
3583           added --optimize-goto compiler switch and pragma wparam documentation
3584         * src/pic16/pcode.c (pic16_OptimizeBanksel): removed statistics dump
3585         * src/pic16/pcodepeep.c (pic16_pCodeOpCopy): fixed copying of WREG, PRODL
3586           and PRODH closing bug #1071770 (peephole optimizer)
3587
3588 2005-01-19 Raphael Neider <rneider AT web.de>
3589
3590         * src/SDCCglobl.h: ensure that PATH_MAX >= 2048 to guarantee
3591           cmdLine buffers (used when calling sdcpp...) are large enough
3592           (MAX_PATH=256 truncates arguments leading to system halts when
3593           used in MinGW...)
3594         * src/pic16/gen.c (pic16_sameRegs): relaxed size criterion
3595         * (genUminus): rewritten to for efficiency
3596         * (genNearPointer[GS]et): enforce reloading of FSR0 (was still
3597           used uninitialized in some cases)
3598         * (genCast): upcasting a 16bit int to a 24bit GPOINTER may not
3599           copy the third byte from the int -- now assumes 0x80 (data memory)
3600         * src/pic16/genarith.c (pic16_genPlus): fixed bug when swapping
3601           operands (genAddLit expects the iCode's operands to swapped as
3602           well), fixed leftover bytes (crashed for short left operands)
3603         * (pic16_genMinusDec): performance improvements, removed false
3604           PIC14 emitSKPNCs
3605         * (pic16_genMinus): fixed to cope with differently sized operands
3606         * src/pic16/glue.c (pic16_glue): added new banksel optimization
3607           for --obanksel > 1
3608         * src/pic16/pcode.c: implemented (first phase of) banksel optimization
3609         * src/pic16/graph.[ch]: implementation of directed graphs, used by
3610           new banksel optimization
3611         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): prevented
3612           analysis for temporary registers (segfaults...)
3613         * src/pic16/peeph.def: added rule
3614
3615 2005-01-18 Vangelis Rokas <vrokas AT otenet.gr>
3616
3617         * device/lib/pic16/libc/stdlib/x_ftoa.c: it defines x_ftoa function
3618         which converts a float number to its ASCII representation
3619         * device/lib/pic16/libc/utils/cnvfrac.S,cnvint.S: support
3620         functions to convert the fractional and integer part of a float to ASCII,
3621         * device/lib/pic16/libc/stdlib/(calloc.c,free.c, malloc.c,
3622         realloc.c): added _MALLOC_SPEC to explicit place variables in data
3623         ram
3624         * device/include/asm/pic16/features.h: added _CODE, _DATA, _AUTOMEM,
3625         _STATMEM macros,
3626         * device/include/pic16/adc.h: added GPL info,
3627         * src/pic16/gen.c (genIfxpCOpJump): perform an genIfxJump but using
3628         a pCodeOp as tested operand,
3629         * (genNearPointerGet): optimized bit testing, does not use
3630         intermediate register for bit value, test directly instead with
3631         BTFSS, BTFSC, works only for single bits,
3632         * (genpic16Code): dump the name of the iCode in the asm,
3633         * src/pic16/ralloc.c (decodeOp): removed static declaration and
3634         renamed to pic16_decodeOp,
3635         * (serialRegAssign): do not allocate a temporary register for iCode
3636         sequences that test a single bit for 1/0
3637
3638 2005-01-12 Vangelis Rokas <vrokas AT otenet.gr>
3639
3640         * src/pic16/pcode.[ch]: introduced pic16_stackpnt_*,
3641         pic16_framepnt_*, pic16_stack_*, pic1_frame_* pointer variables to
3642         access stack and frame pointers. They are initially assigned to
3643         point at pic16_pc_fsr1[lh] and pic16_pc_fsr2[lh] variables and other
3644         accessing SFRs. Updated all occurences of modification of stack or
3645         frame pointer in gen.c and pcode.c,
3646         * src/pic16/ralloc.c (serialRegAssign): fixed two bugs with
3647         assigning of a literal value to pointers,
3648         * src/pic16/main.c (pic16_finiliseOptions): set pre-processor define
3649         flag STACK_MODEL_SMALL or STACK_MODEL_LARGE according to the model
3650         selected
3651
3652 2005-01-11 Vangelis Rokas <vrokas AT otenet.gr>
3653
3654         * doc/sdccman.lyx: update documentation about stack pragma, added
3655         some info for stack memory models
3656
3657 2005-01-08 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
3658
3659         * src/pic16/gen.c (DEBUGpc): MSVC 6 does not support macro variable arguments
3660
3661 2005-01-08 Raphael Neider <rneider AT web.de>
3662
3663         * src/pic16/device.c (pic16_dump_usection): changed naming scheme for
3664           udata sections to fix bug #1097823
3665
3666 2005-01-05 Raphael Neider <rneider AT web.de>
3667
3668         * src/pic16/gen.c (genGenericShift): added handling of differently
3669           sized left operand and result
3670
3671 2005-01-04 Raphael Neider <rneider AT web.de>
3672
3673         * src/pic16/gen.c (genIfxJump): fixed inverted skips on CARRY
3674         * (genIfx): fixed (?) read from uninitialized SPIL_LOC (now assumes CARRY
3675           to hold the condition bit)
3676         * added new version of genCmp (old code available via #define)
3677         * added new version of genShiftLeft/genShiftRight in a generic
3678           way, now supports shifting by negative values
3679         * (genLeftShiftLiteral, genRightShiftLiteral): use absolute value of
3680           shiftCount (expected by genGenericShift)
3681         * src/pic16/genarith.c (genPlus): added code for adding CARRY+literal
3682         * src/pic16/pcode.c (pic16_OptimizeJumps): removed annoying statistics
3683           dump
3684         * (pic16_newpCodeOpLit): changed to cast to unsigned char (as e.g. -32766
3685           is an invalid literal too...)
3686
3687 2005-01-04 Vangelis Rokas <vrokas AT otenet.gr>
3688
3689         * src/pic16/gen.c (aopForSym, genEndFunction): applied some fixes
3690         from Raphael Neider,
3691         * src/pic16/pcode.c (pic16_newpCodeOpLit): removed casting to char
3692         for 8-bit literals. This fixes some literal operands which are sign
3693         extended to 16-bits ints when instruction needs only 8-bits.
3694
3695 2004-12-31 Paul Stoffregen <paul AT pjrc.com>
3696
3697         * device/lib/logf.c: added mcs51 assembly version
3698         * device/lib/expf.c: added mcs51 assembly version
3699         * device/lib/_logexpf.c: new shared asm code for expf and logf
3700         * device/include/math.h: add defines for assembly math library
3701         * device/lib/Makefile.in: build new _logexpf.c
3702         * device/lib/libfloat.lib: use new _logexpf.c
3703
3704 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3705
3706         * src/pic/device.c
3707         * src/pic/pcode.c : adjusted internal stack and pre-allocated registers for
3708           device types which have less than 0x7f registers.
3709
3710 2004-12-29 Slade Rich <slade_rich AT users.sourceforge.net>
3711
3712         * src/pic/genarith.c : Fixed problem with subtraction where the result would not be updated when borrowing.
3713
3714 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3715
3716         * device/lib/printf_fast.c: only build on supported arch.
3717         * device/lib/printf_tiny.c: only build on supported arch.
3718         * device/lib/printf_fast_f.c: only build if asm float lib
3719         * device/lib/_fsget1arg.c: only build if asm float lib
3720         * device/lib/_fsget2args.c: only build if asm float lib
3721         * device/lib/_fsnormalize.c: only build if asm float lib
3722         * device/lib/_fsreturnval.c: only build if asm float lib
3723         * device/lib/_fsrshift.c: only build if asm float lib
3724         * device/lib/_fsswapargs.c: only build if asm float lib
3725         * device/include/stdio.h: don't provide print_fast,
3726           print_fast_f, print_tiny prototypes if --xstack used
3727
3728 2004-12-28 Maarten Brock <sourceforge.brock AT dse.nl>
3729
3730         * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~
3731         * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files
3732           to the SOURCES
3733
3734 2004-12-28 Paul Stoffregen <paul AT pjrc.com>
3735
3736         * device/lib/printf_fast_f.c: same as printf_fast, but
3737           with floating point enabled
3738         * device/lib/printf_fast.c: minor tweaks
3739         * device/include/stdio.h: add printf_fast_f
3740
3741 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3742
3743         * src/SDCCmain.c: make --float-reent default for mcs51
3744         * device/lib/_fsadd.c: added mcs51 assembly version
3745         * device/lib/_fssub.c: added mcs51 assembly version
3746         * device/lib/_fsmul.c: added mcs51 assembly version
3747         * device/lib/_fsdiv.c: added mcs51 assembly version
3748         * device/lib/_fseq.c: added mcs51 assembly version
3749         * device/lib/_fsneq.c: added mcs51 assembly version
3750         * device/lib/_fsgt.c: added mcs51 assembly version
3751         * device/lib/_fslt.c: added mcs51 assembly version
3752         * device/lib/_fscmp.c: shared code for fseq,fsgt,fslt,fsneq
3753         * device/lib/Makefile.in: add _fscmp to build
3754         * device/lib/libfloat.lib: add _fscmp to build
3755
3756 2004-12-27 Paul Stoffregen <paul AT pjrc.com>
3757
3758         * device/lib/_fs2slong.c: added mcs51 assembly version
3759         * device/lib/_fs2sint.c: added mcs51 assembly version
3760         * device/lib/_fs2schar.c: added mcs51 assembly version
3761         * device/lib/_fs2ulong.c: added mcs51 assembly version
3762         * device/lib/_fs2uint.c: added mcs51 assembly version
3763         * device/lib/_fs2uchar.c: added mcs51 assembly version
3764         * device/lib/_slong2fs.c: added mcs51 assembly version
3765         * device/lib/_sint2fs.c: added mcs51 assembly version
3766         * device/lib/_schar2fs.c: added mcs51 assembly version
3767         * device/lib/_ulong2fs.c: added mcs51 assembly version
3768         * device/lib/_uint2fs.c: added mcs51 assembly version
3769         * device/lib/_uchar2fs.c: added mcs51 assembly version
3770         * device/include/float.h: added #define to select asm vs c
3771
3772 2004-12-26 Paul Stoffregen <paul AT pjrc.com>
3773
3774         * device/lib/printf_fast.c: improvements to float output
3775         * device/include/float.h: add defines for assembly float library
3776         * device/lib/_fsget1arg.c: receive 1 float arg
3777         * device/lib/_fsget2args.c: receive 2 float args (reentrant)
3778         * device/lib/_fsnormalize.c: normalize a float
3779         * device/lib/_fsreturnval.c: return float, various helper routines
3780         * device/lib/_fsrshift.c: right shift a float's mantissa
3781         * device/lib/_fsswapargs.c: swap 2 floats
3782         * device/lib/Makefile.in: build these 6 new files for mcs51
3783         * device/lib/libfloat.lib: add these 6 files to the library
3784
3785 2004-12-26 Borut Razem <borut.razem AT siol.net>
3786
3787         * sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
3788           built by gcc 3.4.2
3789
3790 2004-12-25 Paul Stoffregen <paul AT pjrc.com>
3791
3792         * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes,
3793           and fully reentrant and register bank neutral.
3794         * device/lib/printf_fast.c: added float (not enabled by default),
3795           added compact/slower integer (also not enabled by default),
3796           improved size/speed of fast integer code, other minor changes
3797         * device/include/stdio.h, device/lib/Makefile.in,
3798           device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build
3799
3800 2004-12-24 Maarten Brock <sourceforge.brock AT dse.nl>
3801
3802         * src/pic16/pcode.c: declaring variables other than at the start of a
3803           block is not supported in C by VC6.
3804
3805 2004-12-22 Vangelis Rokas <vrokas AT otenet.gr>
3806
3807         * applied a previous patch from Raphael Neider that wasn't included
3808         in the previous commits, which fixes infinite loops within jumptable
3809         improvements,
3810         * made some fixes that previous patches introduced
3811
3812 2004-12-21 Vangelis Rokas <vrokas AT otenet.gr>
3813
3814         * src/pic16/gen.c (pic16_aopGet): applied fix from Raphael Neider
3815         that fixes an issue with AOP_PCODE asmop's offset,
3816         * (pic16_popCopyReg): update instance field too,
3817         * (mov2w): modified to pic16_mov2w because it conflicts with mov2w
3818         function of pic port,
3819         * (genCmp, genAnd, genAssign),
3820         * src/pic16/genarith.c (genAddLit): some fixes from Raphael Neider,
3821
3822 2004-12-20 Vangelis Rokas <vrokas AT otenet.gr>
3823
3824         * src/SDCCast.c (gatherAutoInit): allow pic16 to emit static
3825         variables initial values to idata section,
3826         * src/SDCCicode.c (geniCodeCall): patch from ### to fix unreferenced
3827         variables in some functions. This utilizes parmBytes field of iCode
3828         structure to hold the offset of the variable in stack. (might be
3829         able to use the stack field too?)
3830         * applied patch from Raphael Neider # ### , # ###
3831         * src/pic16/glue.c (pic16emitRegularMap): fix to print static
3832         variable initial values in idata section,
3833         * src/pic16/ralloc.c (pic16_allocDirReg): don't allocate register
3834         for static variables with initial value
3835         * src/device/lib/pic16/libsdcc/float/ulong2fs.c (__ulong2fs):
3836         applied fix in while loop from Raphael Neider.
3837
3838 2004-12-19 Maarten Brock <sourceforge.brock AT dse.nl>
3839
3840         * src/ds390/gen.c (genCpl): fixed bit=~(char/bit) bugs, added warning
3841         * src/ds390/main.c (_ds390_regparm): don't pass bit params in registers
3842         * src/ds390/ralloc.c (serialRegAssign): spill bits
3843         * src/mcs51/gen.c (genCpl): fixed bit=~(char) bugs, added warning
3844         * support/Util/SDCCerr.c,
3845         * support/Util/SDCCerr.h: added warning W_COMPLEMENT for using bit=~(bit)
3846         * support/regression/tests/bitvars.c: added tests for bitwise complement(~)
3847         * support/regression/tests/bitwise.c: added test for bitwise complement(~)
3848
3849 2004-12-09 Maarten Brock <sourceforge.brock AT dse.nl>
3850
3851         * device/include/sdcc-lib.h: inserted LGPL, added includes
3852           asm/ds390/features.h and asm/mcs51/features.h
3853         * device/include/asm/default/features.h,
3854         * device/include/asm/gbz80/features.h,
3855         * device/include/asm/z80/features.h: added empty _AUTOMEM
3856           and _STATMEM
3857         * device/include/asm/ds390/features.h,
3858         * device/include/asm/mcs51/features.h: added files with defines for
3859           _AUTOMEM and _STATMEM indicating automatic and static storage class
3860         * device/lib/printf_large.c (_print_format): optimized & used _AUTOMEM
3861         * doc/sdccman.lyx: version 2.4.7, updated xstack documentation
3862         * src/SDCCicode.c (geniCodeCast),
3863         * src/SDCCsymt.c (compareType): allow cast of data-ptr to idata-ptr
3864         * src/SDCCloop.c (loopInduction): removed unused variable lr
3865         * src/SDCCopt.c (convilong, convertToFcall): moved "easy special case"
3866           to convertToFcall to include char modulo (RFE 1065037), added check
3867           if left operand is unsigned and use abs of literal value
3868         * src/SDCCpeeph.c (setFromConditionArgs): removed double quotes option
3869           as it doesn't work after conversion from peephole.def to peephole.rul
3870         * src/mcs51/gen.c (toBoolean): added check for size,
3871           (genModOneByte): optimized code for signed char modulo a literal
3872           power of 2 (thanks to Hubert Sack),
3873           (genRRC): removed unnecessary "clr c",
3874           (genRLC): replaced "add a,acc" with cheaper "rlc a"
3875         * src/mcs51/peeph.def: renamed 115 to 115.a, added rule 115.b: another
3876           jump optimization,
3877           swapped rules 256.c and 256.d,
3878           extended 256.d by using new multiple checks (thanks Erik),
3879           added rules 256.e and 256.f,
3880           updated rule 261.a and 261.b to new generated code
3881         * support/regression/tests/muldiv.c: added test div/mod by a power of 2
3882
3883 2004-12-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3884
3885         * src/SDCCloop.c (basicInduction, loopInduction): fixed several
3886           induction related bugs, including first part of bug #1074377
3887
3888 2004-12-05 Vangelis Rokas <vrokas AT otenet.gr>
3889
3890         * applied patch from bug-report #1076292,
3891         * applied patches for genAnd and Goto-optimizations for Raphael
3892         Neider,
3893         * src/SDCCicode.c (printOperand): fixed !REGA source to compile and
3894         dump a less iCode information,
3895         * src/pic16/device.h (pic16_options_t): added field debgen,
3896         * src/pic16/gen.h: added macros DUMP_FUNCTION_ENTRY,
3897         DUMP_FUNCTION_EXIT, FENTRY, FENTRY2,
3898         * src/pic16/gen.c (my_powof2): renamed to pic16_my_powof2 and made
3899         puclic,
3900         * (various functions): added macros FENTRY and FENTRY2 to functions,
3901         to emit function prologue,
3902         * (various functions): fixed indentation,
3903         * (genNearPointerGet): fixed loading of FSR0,
3904         * (genPackBits): applied patch from Raphael Neider to fix updating
3905         of FSR0 and touching only the modified bits,
3906         * src/pic16/genarith.c (various functions): added macros FENTRY to
3907         emit function prologue in comments,
3908         * src/pic16/pcode.h: added functions debugf2, debugf3,
3909         * src/pic16/ralloc.c: partial fix for packForPush caused
3910         segmentation fault,
3911
3912 2004-12-04 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3913
3914         * src/mcs51/peeph.def: added 261.a,b (16 bit rotate) by Stas Sergeev
3915           <stsp AT users.sourceforge.net> with reversed byte order
3916         * support/regression/tests/rotate.c: added (ds390 skips some tests)
3917
3918 2004-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3919
3920         * src/z80/gen.c (genLeftShift, genRightShift): fixed second part of
3921           bug #1074377
3922         * src/hc08/gen.c (genrshFour, shiftRLong, shiftLLong),
3923         * src/mcs51/gen.c (shiftLLong): Fixed some shifting bugs Frieder found
3924
3925 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3926
3927         * src/pic/pcode.c : fixed a problem where banksel was not being inserted.
3928
3929 2004-12-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
3930
3931         * src/SDCCpeeph.c (callFuncByName): support combined peephole rule
3932           conditions,
3933           (setFromConditionArgs): friendly operand parser for peephole rules,
3934           (operandBaseName, operandsNotRelated): new peephole condition
3935           "operandsNotRelated" -- similar to "operandsNotSame", but takes
3936           architecture specific register naming into account, handles n-way
3937           comparisons, and supports quoted literals
3938         * src/mcs51/peeph.def: restored rule 177.d with an extra condition
3939
3940 2004-12-02 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3941
3942         * src/mcs51/peeph.def: fixed bug #1076940
3943
3944 2004-12-02 Slade Rich <slade_rich AT users.sourceforge.net>
3945
3946         * device/include/pic/pic16f877.h : added an include file for the PIC16F877 device.
3947
3948 2004-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
3949
3950         Adding support for replacing ljmps with sjmps in jumptables
3951         generated for switch statements. For now you need to set the
3952         environment variable SDCC_SJMP_JUMPTABLE to enable this.
3953         Now 4 algorithms for mcs51 jumptable generation are used:
3954         ljmp or sjmp jumptables for up to 16 cases, stack-pushing target
3955         addresses loaded pc-relative for up to 112 cases and stack-pushing
3956         target addresses loaded with offset from dptr for up to 256 cases.
3957
3958         * src/SDCCpeeph.c: added peephole conditional labelJTInRange
3959         * src/mcs51/main.c: adapted constants for switch table generation
3960         * src/mcs51/peeph.def: added 260.x for replacing ljmp with sjmp
3961
3962 2004-11-26 Maarten Brock <sourceforge.brock AT dse.nl>
3963
3964         * device/lib/printf_large.c (_print_format): fixed bug 1073386
3965         * support/regression/tests/bug1057979.c: added test for bug 1073386
3966
3967 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3968
3969         * src/pic16/pcode.c: fixed bug which may produce error in non-GNU
3970         compilers
3971
3972 2004-11-25 Vangelis Rokas <vrokas AT otenet.gr>
3973
3974         * src/pic16/device.h,
3975         * src/pic16/genarith.c,
3976         * src/pic16/glue.c,
3977         * src/pic16/main.c,
3978         * src/pic16/pcode.c: applied patches #1068154 and #1070213
3979
3980 2004-11-24 Vangelis Rokas <vrokas AT otenet.gr>
3981
3982         Large cummulative patch for pic16 port.
3983         * device/lib/pic16/gstack.h: NEW, user can specify its own handler
3984         to call when a stack overflow occurs,
3985         * (malloc.h): added CVS Id tag,
3986         * (pic18f{242,252,442,452}.h): added T0CONbits structure and
3987         variable,
3988         * added libc directory. The current version of LibC contains string
3989         functions, ctype functions and macros and some functions of the
3990         stdlib set (like malloc/free/atof/atoi etc...). All functions are to
3991         be extensively tested in the future. Standard disclaimer here.
3992         Library is not automatically build yet. But one can build it by
3993         invoking 'make' inside the libc directory.
3994         * added ADC library under libio. Preliminary version yet.
3995
3996         * src/pic16/gen.h: added emitTOGC macro, to toggle Carry flag,
3997         * src/pic16/gen.c (aopForRemat): asmop size is filled by
3998         aopForRemat() now and not by pic16_aopOp(),
3999         * (pic16_popGetTempReg): removed warning messgae when allocating
4000         temporary registers, its a buggy feature and will be removed,
4001         * (pic16_popGet): set register instance field in AOP_CRY,
4002         * (pic16_outBitC): fixed for results in size greater than 1,
4003         * (genUminusFloat): fixed for pic16, ported code from mcs51,
4004         * (pic16_storeForReturn): optimized return of 0,
4005         * (genCmp): experimental code for new genCmp which uses PIC18's
4006         special compare&skip instructions. Initial tests fail some times
4007         with variables grater than 1 byte in size, so new code is disabled,
4008         * (genUnpackBits, genPackBits): more optimizations in reading/writing,
4009         a single bit,
4010         * (genCast): began a fix to optimize the casting of a bit to another
4011         bit, now assigning a bitfield to another bitfield will fail, sorry,
4012         * src/pic16/main.c: disabled the use of lr-support feature,
4013         * src/pic16/pcode.h: renamed PCASMDIR to PCAD,
4014         * added some function prototypes, added function _debugf prototype,
4015         * src/pic16/pcode.c: (pic16_get_op): fixed emitting operands of register
4016         bits with offset (case PO_GPR_BIT),
4017         * (genericPrint): don't emit INFO pcode when --pcode-verbose not in
4018         command line,
4019         * (isBankInstruction): modified to return 0 for no banking instruction,
4020         and 1 for banking instruction,
4021         * (pic16_isPCinFlow): check for PCAD (assembler directives) too,
4022         caused stop processing pCodes after a inline assembly block,
4023         * (pic16_popCopyGPR2Bit): updated to match bitfields with offset,
4024         * src/pic16/pcoderegs.c: fixed a bug with eliminating some temporary
4025         registers when it shouldn't,
4026         * src/pic16/ralloc.c (allocReg): add preliminary support for
4027         supporting a limited set of temporary registers,
4028
4029 2004-11-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4030
4031         * src/hc08/gen.c (genAssign, genPointerGetSetOfs, genDataPointerGet,
4032           genDataPointerSet): ensure assignments always copy in MSB to LSB
4033           order,
4034           (loadRegFromAop): recognize CLRH optimization,
4035           (genFunction): optimize RECEIVE iCodes in reentrant functions
4036
4037 2004-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4038
4039         * src/SDCCmain.c (parseCmdLine, optionsTable[]): fixed bug with
4040           --out-fmt-s19 turning into --out-fmt-elf if s19 was already
4041           selected.
4042         * src/SDCCmain.c (linkEdit): don't define SSEG for HC08
4043         * src/hc08/main.c (_hc08_setDefaultOptions): default xdata to be
4044           contiguous with data
4045
4046 2004-11-19 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4047
4048         * device/lib/_gptrget.c (_gptrget),
4049         * device/lib/_gptrgetc.c (_gptrgetc),
4050         * device/lib/_gptrput.c (_gptrput): _naked allows to use ret
4051           instead of sjmp to ret
4052         * src/mcs51/peeph.def: added peepholes 3.d-g and 177.g,h provided
4053           by Hubert Sack <hsack2002 AT arcor.de> in RFE #1067986, thanks
4054
4055 2004-11-18 Maarten Brock <sourceforge.brock AT dse.nl>
4056
4057         * .version: bumped version to 2.4.7
4058         * device/lib/_gptrget.c (_gptrget): is now _naked
4059         * device/lib/_gptrgetc.c (_gptrgetc): is now _naked
4060         * device/lib/_gptrput.c (_gptrput): is now _naked
4061         * src/SDCCast.c (createBlock): removed ridiculous self-assignment,
4062           (createFunction): fixed xstack
4063         * src/SDCCglue.c (emitMaps): set allocation required for bit area
4064         * src/SDCCicode.c (geniCodeCast): don't change SPEC_OCLS for literal
4065           or bit either,
4066           (geniCodeCritical): store original interrupt state in an iTemp bit
4067           var unless stack-auto
4068         * src/SDCCicode.h: added CRITICAL and ENDCRITICAL to SKIP_IC2
4069         * src/SDCCmain.c (setIncludePath): added include/target to search path
4070         * src/SDCCmem.c (allocParms): store bit vars in bit space, not overlay
4071         * src/SDCCsymt.c (checkFunction): don't check regbank for isr's against
4072           prototype,
4073           (processFuncArgs): put bit vars in bit area
4074         * src/mcs51/gen.c (saveRegisters, unsaveRegisters, genXpush, saveRBank,
4075           unsaveRBank): fixed xstack,
4076           (genFunction): bugfix: replaced (global!) reentrant with fReentrant,
4077           (genFunction, genEndFunction): fixed xstack,
4078           (genAssign): optimization don't walk backwards through mem
4079         * src/mcs51/main.c (_mcs51_regparm): don't pass bit params in registers
4080         * src/mcs51/ralloc.c (createStackSpil): spill bits to bit area
4081         * support/regression/Makefile: also make library (for stack-auto) when
4082           making "all" and added "test-mcs51-xstack-auto"
4083         * support/regression/fwk/lib/testfwk.c: added T2_isr prototype for mcs51
4084         * support/regression/ports/mcs51/T2_isr.c: added this file as a stub
4085         * support/regression/ports/mcs51/fwk.lib: added to link T2_isr stub
4086         * support/regression/ports/mcs51/spec.mk: added rules for fwk.lib
4087         * support/regression/ports/mcs51-stack-auto/spec.mk: replaced
4088           make-library by MAKE_LIBRARY
4089         * support/regression/ports/mcs51-xstack-auto/spec.mk: file added to run
4090           regression tests for xstack
4091         * support/regression/tests/bitvars.c: test for bit vars (bug 938782)
4092         * support/regression/tests/critical.c: test for critical on mcs51
4093
4094 2004-11-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4095
4096         * support/regression/ports/ucz80/spec.mk: use include and lib files from
4097           built version of sdcc instead of installed version
4098
4099 2004-11-14 Maarten Brock <sourceforge.brock AT dse.nl>
4100
4101         * src/mcs51/gen.c (toBoolean): fixed bug 1065458
4102         * device/lib/Makefile.in: z80 uses printf_large.c, sprintf.c and
4103           vprintf.c now
4104         * device/lib/printf_large.c (calculate_digit): fixed bug 1057979
4105         * device/lib/z80/Makefile: don't use printf.c as it fails bug 1057979
4106           WARNING: remove device/lib/build/z80/printf.o by hand when
4107           updating from previous build!
4108         * device/lib/z80/printf.c: updated comment
4109         * support/regression/tests/bug1057979.c: test all ports now
4110         * support/regression/tests/bug1065458.c: file added
4111
4112 2004-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4113
4114         * src/z80/gen.c (genFunction, genEndFunction): avoided generating
4115           *_start and *_end symbols for static functions
4116
4117 2004-11-11 Maarten Brock <sourceforge.brock AT dse.nl>
4118
4119         * src/SDCCmain.c (linkEdit): don't suppress crt0 if --nostdlib is used
4120           and search crt0.o in all library paths,
4121           (setIncludePath): proper handling of --nostdinc,
4122           (setLibPath): proper handling of --nostdlib
4123         * support/regression/Makefile,
4124         * support/regression/ports/ds390/spec.mk,
4125         * support/regression/ports/gbz80/spec.mk,
4126         * support/regression/ports/hc08/spec.mk,
4127         * support/regression/ports/mcs51/spec.mk,
4128         * support/regression/ports/mcs51-large/spec.mk,
4129         * support/regression/ports/mcs51-stack-auto/spec.mk,
4130         * support/regression/ports/z80/spec.mk: use include and lib files from
4131           built version of sdcc instead of installed version
4132         * doc/sdccman.lyx: fixed typo in --nostdinc
4133
4134 2004-11-10 Slade Rich <slade_rich AT users.sourceforge.net>
4135
4136         * src/pic/pcode.c,
4137         * src/pic/device.c,
4138         * src/pic/ralloc.c,
4139         * src/pic/gen.c : added support to generate code for struct bit fields.
4140
4141 2004-11-06 Maarten Brock <sourceforge.brock AT dse.nl>
4142
4143         * as/xa51/xa_version.h,
4144         * device/include/errno.h,
4145         * device/include/regc515c.h,
4146         * device/lib/_itoa.c,
4147         * device/lib/_ltoa.c,
4148         * device/lib/ser_ir_cts_rts.c,
4149         * sim/ucsim/xa.src/glob.cc,
4150         * sim/ucsim/xa.src/inst_gen.cc,
4151         * sim/ucsim/xa.src/xa_bit.cc,
4152         * sim/ucsim/xa.src/xa_sfr.cc,
4153         * sim/ucsim/z80.src/inst_dd.cc,
4154         * sim/ucsim/z80.src/inst_fdcb.cc,
4155         * support/scripts/keil2sdcc.pl,
4156         * src/pic16/pic16.dsp,
4157         * src/pic16/pic16a.dsp: corrected cvs line endings
4158         * device/lib/printf_large.c: fixed bug 1057979
4159         * src/pic16/gen.c: fixed non-C standard code
4160         * src/SDCCmain.c: made --pack-iram default, added --no-pack-iram
4161         * src/SDCCglobl.h: changed pack_iram to no_pack_iram
4162         * support/regression/ports/mcs51/support.c: reload T1 asap
4163         * doc/sdccman.lyx: updated for options --pack-iram and --no-pack-iram,
4164           pdata use and clear idata startup behaviour
4165         * support/regression/tests/bug1057979.c: added
4166
4167 2004-11-04 Maarten Brock <sourceforge.brock AT dse.nl>
4168
4169         * device/examples/ds390/ow390/ad26.h,
4170         * device/examples/ds390/ow390/cnt1d.h,
4171         * device/examples/ds390/ow390/crcutil.c,
4172         * device/examples/ds390/ow390/ownet.h,
4173         * device/examples/ds390/ow390/owsesu.c,
4174         * device/examples/ds390/ow390/swt12.h,
4175         * device/examples/ds390/ow390/swtoper.c,
4176         * device/examples/ds390/ow390/temp10.h,
4177         * device/examples/ds390/ow390/thermodl.c,
4178         * device/examples/ds390/tinitalk/tinitalk.dsp,
4179         * device/examples/ds390/tinitalk/tinitalk.dsw,
4180         * device/examples/mcs51/clock/hw.h,
4181         * device/examples/mcs51/simple2/go.bat,
4182         * device/examples/serialcomm/windows/serial.h,
4183         * device/examples/xa51/dummy.c,
4184         * device/examples/xa51/hello.c,
4185         * device/include/80c51xa.h,
4186         * device/include/at89x051.h: corrected cvs line endings
4187
4188 2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
4189
4190         * src/pic16/main.c (options): added command line --gstack, to trace
4191         stack over/under flows,
4192         * added pragma 'wparam' to allow passing first byte of function
4193         parameters via WREG, syntax is #pragma wparam my_function[, func2...]
4194         * src/pic16/gen.c (pic16_testStackOverflow): function which emits a
4195         call to __gstack_test function and sets up the symbol as extern,
4196         * (pic16_pushpCodeOp, pic16_poppCodeOp, pushw, pushaop, popaopidx,
4197         * popaop): added call to pic16_testStackOverflow,
4198         * (wParamCmp, inWparamList): NEW, test existence of a symbol in
4199         wparamList list,
4200         * (genCall, genPcall): now all parameters are passed via stack
4201         except in functions that are pass to wparam pragma in which WREG is
4202         used too,
4203         * (genPcall): REENTRANT flag is checked to see if variable prototype
4204         contains reentrant keyword, don't call a non-reentrant function, via
4205         a reentrant function pointer or vice versa, functions are never
4206         passed via WREG,
4207         * (genJumpTab): applied patch from bug #1057478 by R.Neider and
4208         D.Winkler,
4209         * src/pic16/glue.c (pic16emitRegularMap): fixed bug which caused a
4210         SIGSEGV when accessing a NULL register stucture,
4211         * (pic16_printGPointerType): modified to handle UPPER modifier for
4212         function initializers, changed prototype of function to simpler one,
4213         * (pic16_printIvalFuncPtr): check to see if function is already
4214         added in externs list,
4215         * src/pic16/pcoderegs.c (pCodeOptime2pCodes): fixed bug which
4216         optimized a move from W to SFR with a move to the same register
4217         later after a CALL,
4218         * device/lib/pic16/debug: NEW directory, contains debug features
4219         which are enabled when linking with libdebug.lib, currently command
4220         line option --gstack enables stack pointer tracing for over/under
4221         flow, corresponding sources are in debug/gstack
4222
4223 2004-10-30 Vangelis Rokas <vrokas AT otenet.gr>
4224
4225         * doc/sdccman.lyx: updated SDCC version,
4226         * (PIC16 port): update list of command line options,
4227         * src/pic16/device.h (structure pic16_options_t): added field gstack
4228         to enable stack overflow tracing on push/pops,
4229         * src/pic16/device.c (statistics structure): added statistics
4230         structure,
4231         * (pic16_dump_access, pic16_dump_usection, pic16_dump_gsection,
4232         pic16_dump_int_registers): increase statistics counters for each
4233         * variable which is encountered
4234         * (pic16_dump_usection): emit each .udata variable to its own udata
4235         section,
4236         * src/pic16/gen.c (assignResultValue, genCall, genPcall, genFunction):
4237         when macro USE_WREG_IN_FUNC_PARAMS is set to 0 pass all function
4238         parameters via stack, otherwise use old scheme,
4239         * src/pic16/glue.c (pic16_emitStatistics): dump statistics in
4240         assembler output file,
4241         * src/pic16/main.c: added command line options --gstack to enable
4242         push/pop tracing for stack overflow,
4243         * src/pic16/pcode.c (all pCodeInstruction records for PIC18F
4244         instructions): added size of each instruction,
4245         * (pic16_countInstruction): estimate size of instructions in
4246         the_pFile list, inline assembly blocks are not counted,
4247         * (pic16_FixRegisterBanking): trace previous register usage, when
4248         banksel optimizations is greater than 0, don't emit a redudant
4249         banksel directive,
4250
4251 2004-10-26 Slade Rich <slade_rich AT users.sourceforge.net>
4252
4253         * src/pic/ralloc.c : fixed inefficient code produced when compiling a complimented bit operation.
4254         * src/pic16/ralloc.c : applied same fix for pic16.
4255         * src/pic/gen.c : tidied it up a little.
4256
4257 2004-10-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4258
4259         * src/mcs51/peeph.def: disabled 259.a,b for removing redundant ret,
4260         thanks to Martin Helmling for reporting (mail on sdcc-devel 2004-10-25)
4261
4262 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4263
4264         * src/SDCCast.c (reverseParms): fixed bug #1040577 (part 2)
4265
4266 2004-10-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4267
4268         * device/lib/ser_ir_cts_rts.c: integer promotion caused a call to the
4269         non-reentrant function __modsint in the interrupt function (thus
4270         corrupting math operations during serial I/O)
4271         * device/lib/ser_ir.c: as above, changed buffersize
4272         * src/mcs51/peeph.def: added 259.a,b for removing redundant ret,
4273         256.c,d for zeroing
4274         * doc/Makefile: added option -t for rsync
4275
4276 2004-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4277
4278         * src/SDCCast.h (struct ast),
4279         * src/SDCCast.c (reverseParms, copyAst): fixed bug #1040577 (part 1)
4280
4281 2004-10-20 Borut Razem <borut.razem AT siol.net>
4282
4283         * support/scripts/sdcc.nsi: added include/pic16/*.h to the setup
4284         package
4285
4286 2004-10-20 Vangelis Rokas <vrokas AT otenet.gr>
4287
4288         * device/lib/pic16/libsdcc/Makefile: added lregs directory in
4289         makefile targets,
4290         * device/lib/pic16/libsdcc/lregs/{Makefile,lrst.c,lrrest.c}: NEW
4291         support functions to replace long sequences of MOVFF's from access
4292         bank registers to stack and vice versa,
4293         * src/pic16/device.h: added new field opt_flags, where optimization
4294         flags can be set to enable certain features,
4295         * src/pic16/gen.c (pic16_emitpinfo): NEW to add PC_INFO pCode in
4296         * pBlock, (genFunction, genEndFunction): surroung loop for
4297         saving/loading used registers in stack with PC_INFO pCodes,
4298         INF_LREGS. Code in between can then be optimized by pCode optimizer
4299         to support function calls,
4300         * (genDataPointerSet): fixed bug which loaded float fields in
4301         structures with corrupt data,
4302         * src/pic16/genutils.c (debugf, _debugf): macro/function which emits
4303         in a standard way debug info on stderr. Feature used for developing
4304         and debugging only,
4305         * src/pic16/glue.c (pic16glue): reformatted, deleted some old and
4306         obsolete chunks of code,
4307         * if optimization flag OF_LR_SUPPORT was set, call pic16_OptimizeLocalRegs,
4308         * src/pic16/main.c (_pic16_parseOptions): added handler for --flr-support,
4309         * pic16/src/pcode.c (pic16_newpCodeInfo,
4310         * (pic16_newpCodeOpLocalRegs),
4311         * (pic16_convertLocalRegs2Support): NEW, to support new optimization
4312         feature,
4313         * (pic16_pCodeConstString): printing of the initial value of a
4314         symbol as a comment is inhibited since parsing was already done by
4315         copyStr and output is corrupt,
4316         * (pic16_pCode2str, genericPrint): handle PC_INFO pCode,
4317
4318 2004-10-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4319
4320         * src/mcs51/ralloc.c (packRegisters): fixed bug #1044601
4321
4322 2004-10-19 Maarten Brock <sourceforge.brock AT dse.nl>
4323
4324         * as/mcs51/lkarea.c: removed old K&R style,
4325           (lnksect): changed check on boundary error,
4326           (lnksect2): changed check on boundary error,
4327           (lnksect2): extend XSTK to end of page if size = 1
4328         * as/mcs51/lkmain.c: removed old K&R style,
4329           (Areas51): create l_IRAM symbol
4330         * as/mcs51/lkmem.c (summary2): added report on PSEG and XSTK
4331         * device/lib/Makefile.in: renamed model-mcs51-reentrant to
4332           model-mcs51-stack-auto, added model-mcs51-xstack-auto
4333         * device/lib/_mullong.c: added version to be compiled with xstack
4334         * device/lib/mcs51/crtclear.asm: clear only upto --iram-size
4335         * device/lib/mcs51/crtxclear.asm: clear pdata as well
4336         * device/lib/mcs51/crtxstack.asm: fixed comment
4337         * src/SDCCglue.c: maxInterrupts defaults to 0,
4338           (emitMaps): added pdata,
4339           (createInterruptVect): (re)moved default,
4340           (glue): added pdata,
4341           (glue): moved __start__xstack to XSTK with default size 1
4342         * src/SDCCmain.c (parseCmdLine): automatically set options.intlong_rent
4343           and options.float_rent when options.stackAuto is set,
4344           (linkEdit): only write XDATA_NAME if provided on command line
4345         * src/SDCCmem.h,
4346         * src/SDCCmem.c: added pdata
4347         * src/port.h: added pdata_name to PORT
4348         * src/mcs51/gen.c (toBoolean): fixed for Acc use of aopGet,
4349           (saveRegisters, unsaveRegisters): removed usage of B,
4350           (genMinus): fixed accumulator clash,
4351           (genJumpTab): added comment, this needs another look
4352         * src/mcs51/gen.c: added check for "B in use" paranoia,
4353           added pushB() and popB()
4354         * src/mcs51/peeph.def: restart after 177.c so 177.a can get a second
4355           chance
4356         * src/avr/main.c,
4357         * src/ds390/main.c,
4358         * src/hc08/main.c,
4359         * src/mcs51/main.c,
4360         * src/pic/main.c,
4361         * src/pic16/main.c,
4362         * src/xa51/main.c,
4363         * src/z80/main.c: (reset_regparms) made void parameter explicit and
4364           added PSEG (PAG,XDATA) or NULL to port specifier
4365         * src/ds390/main.c (_ds390_genIVT): moved implemented default in here
4366         * src/mcs51/main.c (_mcs51_genIVT): moved implemented default in here,
4367           (_mcs51_genInitStartup): removed __start__xstack equ,
4368           (mcs51_port): moved xstack from XSEG (XDATA) to XSTK (PAG,XDATA)
4369         * src/pic16/device.c (pic16_dump_usection, pic16_dump_isection),
4370         * src/z80/gen.c (_rleAppend): fixed warnings
4371         * support/regression/tests/zeropad.c: added pdata test
4372         * .version: bumped to 2.4.6
4373
4374 2004-10-17 Borut Razem <borut.razem AT siol.net>
4375
4376         * support/scripts/sdcc.nsi: cross compiling of WIN32 setup.exe on Linux
4377         as a part of nightly build
4378
4379 2004-10-16 Vangelis Rokas <vrokas AT otenet.gr>
4380
4381         * src/pic16/gen.c (struct _G): added field useWreg, is set to 1 when
4382         WREG holds the first byte function parameters,
4383         * (aopForSym): take special case for symbols which are in FARSPACE
4384         but in CODESPACE too,
4385         * (assignResultValue): modified to take into account _G.useWreg,
4386         * (genCall): don't use wreg for parameter passing when function is
4387         declared as reentrant, too, added optimization INCF to stack
4388         pointer when stack parameter count is 1,
4389         * (genFunction, genEndFunction): refurnished and fixed to not using
4390         wreg for passing parameters when function has varargs or is
4391         reentrant, fixed bug with symbol name compare for generating
4392         functions in absolute address,
4393         * (pic16_storeForReturn): refurnished,
4394         * (genCmp): began writing a new version of the function, not ready
4395         yet, therefore it is disabled,
4396         * (genAssign): do not read code memory when assigning a function to
4397         a pointer function,
4398         * src/pic16/glue.c (pic16emitStaticSeg): abSym->name is defined an
4399         array of characters, not pointer,
4400         * (pic16initialComments): in debug mode emit an .ident directive for
4401         the assembler,
4402         * (_process_pragma): emit a new warning type (internal to pic16)
4403         when setting stack to default length, emit a similar warning when
4404         placing a function at absolute address and address is not word aligned
4405         * (_pic16_parseOptions): added 'return TRUE' statement,
4406         * (_pic16_linkEdit): if compiling a source, then add the source's
4407         file object, first in the list of objects to link,
4408
4409 2004-10-13 Slade Rich <slade_rich AT users.sourceforge.net>
4410
4411         * src/pic/pcoderegs.c : increased count on regUsedinRange to prevent unnecessary warning.
4412         * src/pic/main.c : removed VC warning.
4413         * src/pic/gen.c : changed comment.
4414
4415 2004-10-12 Vangelis Rokas <vrokas AT otenet.gr>
4416
4417         * device/lib/pic16/libsdcc/gptr/gptrput[234].c: an external
4418         reference to a deprecated symbol _GPTRREG was causing failure to
4419         link. Thanks G. M. Gallant for the info.
4420
4421 2004-10-12 Slade Rich <slade_rich AT users.sourceforge.net>
4422
4423         * src/pic/pcode.c : Applied a code patch supplied by Paul Ashmore in
4424         comments for Bugs item #954788.
4425
4426 2004-10-10 Vangelis Rokas <vrokas AT otenet.gr>
4427
4428         * src/pic16/device.c (pic16_dump_gsection,
4429         * pic16_groupRegistersInSection): handle symbols declared to be in
4430         access bank differently,
4431         * src/pic16/gen.c (struct _G): added field resDirect,
4432         * (aopForSym): if symbol on stack and iCode is '=' and result exists,
4433         send values read from stack directly to result and don't allocate
4434         temporary values,
4435         * (pic16_sameRegs): fixed bug that allowed MOVFF to move between
4436         same registers,
4437         * (pic16_sameRegsOfs): NEW,
4438         * (freeAsmop): if _G.resDirect is set then do not mark registers as
4439         free because they were not allocated from temporary pool,
4440         * pic16_popRegFromString): workaround to fix a problem with
4441         allocating variables twice or never,
4442         * (genGenPointerGet): using PRODL instead of FSR0H,
4443         * (genGenPointerSet): using POSTDEC1 (that is a stack location)
4444         instead of FSR0H,
4445         * (genAssign): take advantage of the _G.resDirect flag,
4446         * (genCast): around line 11844, use mov2f instead of directly
4447         MOVFF'ing between operands to account for literal values,
4448         * src/pic16/genutils.c: some new debug functions for gpsim have been
4449         added,
4450         * src/pic16/glue.c (pic16_printIvalType): fixed bug that initialized
4451         float with integer part only,
4452         * src/pic16/main.c (_process_pragma): handle pragma udata access to
4453         place variables in access bank
4454         * device/lib/pic16/libsdcc/gptr/gptr*.c: using BRA instead of GOTO,
4455         updated sources to reflect recent changes in gen.c
4456
4457 2004-10-06 Vangelis Rokas <vrokas AT otenet.gr>
4458
4459         * device/lib/pic16/libsdcc/Makefile.rules: fixed bug concerning
4460         sources that searched for headers in installation path, now the
4461         device/include/pic16 is used,
4462         * src/pic16/glue.c (pic16glue),
4463         * src/pic16/pcode.c (pCode2str, genericPrint): don't print .file or
4464         .line directives if not in debug mode, this suppresses assembler's
4465         warnings for ignored directives
4466
4467 2004-10-05 Maarten Brock <sourceforge.brock AT dse.nl>
4468
4469         * src/port.h: made reset_regparms prototype void parameter explicit.
4470         * src/SDCCsymt.c (processFuncArgs): removed argument "func".
4471         * src/mcs51/ralloc.c (packRegisters): new fix for bugs 898889 & 979599.
4472         * doc/sdccman.lyx: documented warning disabling and how to use
4473           printf_large to make it print floats.
4474         * device/include/stdbool.h: NEW
4475         * device/lib/_atof.c,
4476         * device/lib/_divuint.c,
4477         * device/lib/_divulong.c,
4478         * device/lib/expf.c,
4479         * device/lib/printf_large.c,
4480         * device/lib/sincosf.c,
4481         * device/lib/sincoshf.c: used stdbool.h, all compile with stack-auto now
4482         * device/lib/Makefile.in: added target for model-mcs51-reentrant to build
4483           a completely reentrant lib.
4484
4485 2004-10-05 Vangelis Rokas <vrokas AT otenet.gr>
4486
4487         * device/lib/pic16/libsdcc/gptr/gptr*.c: added return statements
4488         * device/include/pic16/stdio.h: fixed bug with colon
4489
4490 2004-10-03 Vangelis Rokas <vrokas AT otenet.gr>
4491
4492         * device/include/pic16/stdio.h,
4493         * device/include/pic16/stdlib.h,
4494         * device/include/pic16/math.h: NEW
4495         * device/lib/pic16/libsdcc/gptr/*.c (gptrget*, gptrput*): functions
4496         declared as _naked to reduce overhead
4497         * device/lib/Makefile.in (target port-specific-objects-pic16):
4498         changed * to *.* so to ignore the CVS directory,
4499         * src/pic16/gen.c (pic16_freeAsmop): added code to store result of
4500         stacked variables back in stack,
4501         * (genEndFunction): fixed bug reported by G.M. Gallant with stack
4502         corruption
4503
4504 2004-10-01 Vangelis Rokas <vrokas AT otenet.gr>
4505
4506         * .version: bumped version number to 2.4.5
4507         * support/Util/SDCCerr.h: added warning W_POSSBUG2.
4508         * support/Util/SDCCerr.c (messages structure): added entry for
4509         W_POSSBUG2
4510
4511         Large cumulative patch for pic16 port and libraries.
4512         * device/include/pic16/sdcc-lib.h,
4513         * device/include/pic16/stdarg.h,
4514         * device/include/asm/pic16/features.h,
4515         * device/include/lib/pic16/libsdcc/gptr/{*.c, Makefile}: NEW,
4516         * device/include/pic16/float.h: changes reentrant keyword with
4517         _FS_REENTRANT, added prototype for __fsneq, included sdcc-lib.h
4518         * device/lib/pic16/libsdcc/Makefile: added target directory gptr,
4519         updated target build-libraries to include objects from gptr,
4520         * device/lib/pic16/libsdcc/{char,int,long}/*.c: added macro
4521         _IL_REENTRANT to all function headings, included sdcc-lib.h header,
4522         * device/lib/pic16/libsdcc/float/*.c: added macro _FS_REENTRANT to
4523         all function headings,
4524         * src/SDCCmain.c: added global parameter userIncDirsSet,
4525         * (parseCmdLine): when option -I is encountered add directory to
4526         userIncDirsSet too,
4527         * src/version.awk: added space between control and long,
4528         * src/pic16/NOTES: added some notes for the port,
4529         * src/pic16/gen.c: added prototype for mov2fp function,
4530         * (fReturnpic16[]): properly named return value registers,
4531         * (_G structure): added fields stackRegSet, fregsUsed, stack_lat,
4532         * (aopForSym): added code to handle symbols with onStack flag set,
4533         symbols onStack are allocated PTRSIZE bytes,
4534         * (aopFreeAsmop): handles special case where asmops are stack objects,
4535         * (aopGet, pic16_popGet): adde cod to handle new asmop AOP_STA,
4536         * (pic16_popGetTempReg, pic16_popGetTempRegCond, pic16_popReleaseTempReg):
4537         added argument lock to trace flaws in allocating temporary registers
4538         when developing port,
4539         * (pic16_popGetLit, pic16_popGetLit2): changed lit from unsigned to signed
4540         * (pic16_popRegFromString): reenabled allocating a direct register
4541         from string,
4542         * (assignResultValue): various beautifications,
4543         * fixed bug #1037717 (patch from R. Neider & D. Wrinkler) with mistaken
4544         referenced function argument,
4545         * (genIpush): reenabled to allow stacked arguments, handles only
4546         ic->parmPush iCodes,
4547         * (genCall, genPcall): major changes to allow for variable argument
4548         functions, fixed a bug with falsely restoring stack pointer after
4549         returning from call,
4550         * (genFunction): pending code for critical function,
4551         * (shiftR1Left2ResultSigned, shiftR1Left2Result, shiftL2Left2Result,
4552         * (shiftR2Left2Result, shiftLLong) applied patch #1032155 from R.Neider,
4553         * (genNearPointerGet): fixed bug with indirect reading, was always
4554         reading from INDF0
4555         * (genGenPointerGet, genGenPointerSet): rewrote to support generic
4556         pointers,
4557         * (genAddrOf): rewrote code to take address of a stacked function parameter
4558         * (genCast): fixed casting to generic pointer type,
4559         * src/pic16/gen.h: added AOP_STA,
4560         * (struct asmop): added field stk,
4561         * src/pic16/genarith.c (pic16_AopType): handle AOP_STA,
4562         * (pic16_genPlusIncr): changed emitSKPNZ to emitSKPNZ,
4563         * (pic16_genAddLit, pic16_genPlus): applied patch #1034042 by tecodev,
4564         * (pic16_genMinus): fixed bug #1035119 with patch submitted by tecodev,
4565         * src/pic16/genutils.c (pic16_genNot): removed symbol *tlbl,
4566         * src/pic16/glue.c (pic16_printGPPointerType): fixed to support new
4567         generic pointers,
4568         * src/pic16/main.c (_pic16_initPaths): ignores default SDCC include
4569         and library paths,
4570         * (pic16_port structure): generic pointer size is set to 3,
4571         * src/pic16/pcode.c (pic16_newpCodeOpLit): correctly print literal integer,
4572         * (insertBankSwitch): cast to (char *) to prevent 64bit CPUs'
4573         compiler warning,
4574         * src/pic16/ralloc.c (allocReg): prevent allocating register when
4575         operand is an iTemp,
4576
4577 2004-09-24 Martin Helmling <mh AT octo-soft.de>
4578
4579         * debugger/mcs51/cmd.c: set PC if a symbol at pc reg is set
4580         * debugger/mcs51/simi.c: addapt new syntax of s51
4581
4582 2004-09-23 Vangelis Rokas <vrokas AT otenet.gr>
4583
4584         * src/pic16/genutils.c (pic16_genNot): fixed bug #1032265,
4585         * src/pic16/pcode.c: commented out some calls to free() in order to
4586         fix bug #989576,
4587
4588 2004-09-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4589
4590         * src/SDCCicode.h,
4591         * src/SDCCicode.c (isiCodeInFunctionCall),
4592         * src/avr/ralloc.c (selectSpil),
4593         * src/pic/ralloc.c (selectSpil),
4594         * src/pic16/ralloc.c (selectSpil),
4595         * src/ds390/ralloc.c (selectSpil),
4596         * src/hc08/ralloc.c (selectSpil),
4597         * src/xa51/ralloc.c (selectSpil),
4598         * src/mcs51/ralloc.c (selectSpil): Don't use remainSpil to spill to the
4599         stack in the middle of a function call sequence (fixes bug #1020268)
4600         * src/SDCCicode.c (geniCodeJumpTable): fixed error in computing the
4601         costs associated with the minimum switch case.
4602
4603 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4604
4605         * src/SDCC.lex: fixed bug #1030549
4606
4607 2004-09-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4608
4609         * src/SDCCcse.h (struct cseDef),
4610         * src/SDCCcse.c (cseBBlock, newCseDef, ifFromAddrTaken): purge CSEs
4611         over a function call if the CSE is derived from a symbol whose
4612         address has been taken (fixes bug #1029883)
4613         * support/regression/tests/bug-1029883: a new regression test for
4614         this bug
4615
4616 2004-09-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4617
4618         * src/hc08/gen.c (emitinline): fixed bug #1029778
4619         * src/SDCC.y (assignment_expr): fixed the grammer so that assignment
4620         to a cast object is no longer a syntax error ("fixes" bug #1030006,
4621         and starts toward RFE #905167)
4622
4623 2004-09-17 Vangelis Rokas <vrokas AT otenet.gr>
4624
4625         * src/pic16/gen.c (mov2f): New function to move an operand to
4626         another without considering if it is a literal or a register,
4627         * (pic16_sameRegs): don't check if they are both AOP_REG,
4628         * (AccRsh): removed andmask=0 lines,
4629         * (genLeftShift): duplicated to be improved in future versions,
4630         * src/pic16/main.c (_process_pragma): emit stack default size in hex,
4631         * src/pic16/pcode.c: added POC_INFSNZW, updated inverted_op fields
4632         in POC_INCFSZ, POC_INCFSZW, POC_INFSNZ,
4633         * (pic16initMnemonics): added initialization for POC_INFSNZW,
4634         * (insertBankSwitch): fixed inserting banksel directives algorithm
4635         for instructions that follow a skip instruction, this fixes a report
4636         for broken subtraction code generation,
4637         * src/pic16/ralloc.c (deassignLRs): do not free register if current
4638         iCode is a left op, just in case result and right share the same
4639         registers
4640
4641 2004-09-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4642
4643         * src/hc08/main.c,
4644         * src/hc08/gen.c (genJumpTable): more efficient jump table, supports
4645         preservation of HX
4646         * src/hc08/gen.c (pullRegs): fixed order of HX & XA pairs
4647         * src/mcs51/ralloc.c (packRegisters): removed the patch applied
4648         on 2004-09-12; it was buggy
4649
4650 2004-09-15 Bernhard Held <bernhard AT bernhardheld.de>
4651
4652         * src/SDCCsymt.h: removed RESULT_CHECK
4653         * src/SDCCast.c,
4654         * src/SDCCglue.c,
4655         * src/SDCCval.c,
4656         * src/pic/glue.c,
4657         * src/pic16/glue.c: replaced RESULT_CHECK with RESULT_TYPE_NONE
4658
4659 2004-09-15 Vangelis Rokas <vrokas AT otenet.gr>
4660
4661         * src/SDCCicode.c (piCode): applied patch from Raphael Neider,
4662         * src/pic16/device.c (pic16_assignConfigWordValues): wrong
4663         configuration values no more rejected by compiler, they are assigned
4664         to configuration registers with a warning message instead,
4665         * src/pic16/glue.c (pic16_emitConfigRegs): added +1 at top-limit of
4666         the for-loop so last conf register is emitted too,
4667         * (_pic16_initPaths): link library libsdcc.lib by default,
4668         * (_hasNativeMulFor): modified test for multiplication according to
4669         Raphael Neider's remarks. Integer multiplication is also done with
4670         support functions,
4671         * device/include/pic16/pic18fregs.h: corrected type error in while
4672         testing and including 18f6720 header file
4673
4674 2004-09-14 Vangelis Rokas <vrokas AT otenet.gr>
4675
4676         * src/pic16/device.h (pic16_options): removed field use_crt,
4677         * src/pic16/gen.c (genUnpackBits): added call to pic16_loadFSR0
4678         until an optimization to handle single bits is added,
4679         * (pic16_loadFSR0): moved before genUnpackBits,
4680         * (genAnd): some white lines removed,
4681         * src/pic16/main.c (_pic16_finaliseOptions): set omit_ivt and clear
4682         leave_reset flags in pic16_options when using crt modules,
4683
4684 2004-09-12 Maarten Brock <sourceforge.brock AT dse.nl>
4685
4686         * src/mcs51/ralloc.c (packRegisters): applied fix by Bernhard Held
4687           for bugs 898889 & 979599. Also used some safer print instructions.
4688
4689 2004-09-12 Vangelis Rokas <vrokas AT otenet.gr>
4690
4691         * src/pic16/device.h (pic16_options_t): added field use_crt,
4692         crt_name, no_crt,
4693         * src/pic16/genarith.c (pic16_genPlus): added an assert(0) line to
4694         catch a probable future bug,
4695         * src/pic16/gen.c: aopIdx function commented out,
4696         * (genAssign): commented out old code which used aopIdx,
4697         * src/pic16/glue.c (pic16glue): removed some legacy fragments of
4698         code, added if conditionals to take into account the --use-crt
4699         command line options,
4700         * src/pic16/main.c (pic16_optionsTable): added new command line
4701         options, --use-crt= and --no-crt,
4702         * (_pic16_linkEdit): now the proper crt object is added in the
4703         linker command line except than when --no-crt is specified,
4704         * src/pic16/pcode.c,
4705         * src/pic16/pcode.h: added some structures and functions for a new
4706         optimization scheme to compansate for instruction overhead between
4707         same iCodes, this scheme is currently under development and is not
4708         working in any way,
4709         * src/pic16/gen.c (genAnd): added patch provided by Aaron Collwell
4710         to && operator,
4711         * device/lib/pic16/startup/crt0i.c,
4712         * device/lib/pic16/startup/crt0iz.c: added global char variable
4713         __uflags to force the generation of an idata section
4714
4715 2004-09-12 Bernhard Held <bernhard AT bernhardheld.de>
4716
4717         * doc/Makefile,
4718         * doc/clean.mk: added support for easy creation of sdcc-doc.tar.bz2
4719         * doc/sdccman.lyx: updated sdcc version to 2.4.4
4720
4721 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4722
4723         * doc/sdccman.lyx: fixed a problem with my new index entries (thanks
4724         Frieder) and clarified the default code optimization mode
4725
4726 2004-09-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4727
4728         * src/SDCC.lex (doPragma, process_pragma),
4729         * src/SDCCglobl.h (struct optimize): added pragmas "opt_code_speed",
4730         "opt_code_size", and "opt_code_balanced"
4731         * src/SDCCmain.c (optionsTable[], printOptions, scanOptionsTable):
4732         regrouped options by category, added support for category headers
4733         * src/SDCCmain.c (parseCmdLine): added options "--opt-code-speed"
4734         and "--opt-code-size"
4735         * doc/sdccman.lyx: documented these new options and pragmas
4736         * src/hc08/gen.c (AccLsh, AccRsh): take speed/size optimization
4737         preference into account
4738
4739 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4740
4741         * src/SDCCicode.c (geniCodePostInc, geniCodePreInc, geniCodePostDec,
4742           geniCodePreDec): Fixed bug 904237 by generating a warning
4743         * src/SDCCerr.h,
4744         * src/SDCCerr.c: added warning W_SIZEOF_VOID
4745
4746 2004-09-09 Slade Rich <slade_rich AT users.sourceforge.net>
4747
4748         * src/pic/device.c : When no max ram set validate full memory range.
4749         * src/pic/pcode.c,
4750         * src/pic/pcodepeep.c : Copy C code comments to optimised replacement code.
4751
4752 2004-09-08 Maarten Brock <sourceforge.brock AT dse.nl>
4753
4754         * device/lib/_gptrget.c,
4755         * device/lib/_gptrput.c: updated comment
4756         * device/lib/calloc.c,
4757         * device/lib/free.c,
4758         * device/lib/malloc.c,
4759         * device/lib/realloc.c: added LGPL, made them reentrant-safe
4760         * src/SDCCcse.c (cseBBlock),
4761         * src/SDCCicode.c (printOperand, geniCodeArray),
4762         * src/SDCCicode.h (struct operand): fixed bug 868103
4763         * support/regression/tests/bug-868103.c: added
4764         * src/SDCCast.c (searchLitOp),
4765         * src/SDCCcse.h (struct cseDef),
4766         * src/SDCCglue.c (printIvalArray, spacesToUnderscores),
4767         * src/SDCCicode.h (struct operand),
4768         * src/SDCCsymt.h (struct sym_link),
4769         * src/avr/gen.c (hasInc),
4770         * src/ds390/gen.c (hasInc),
4771         * src/hc08/gen.c (genPlusIncr, hasInc),
4772         * src/mcs51/gen.c (hasInc),
4773         * src/pic16/glue.c (pic16_printIvalChar),
4774         * src/pic16/ralloc.c (regWithIdx),
4775         * src/xa51/gen.c (hasInc) : removed warnings
4776         * src/SDCCast.c (createBlock): added comment ???
4777         * src/hc08/ralloc.c: updated comments
4778
4779 2004-09-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
4780
4781         * doc/sdccman.lyx: updated section on switch statements, added
4782         section about semaphore locking
4783         * doc/Makefile: added option -info for latex2html
4784         * device/lib/_gptrget.c,
4785         * device/lib/_gptrput.c: __XPAGE instead of P2 in outcommented code
4786
4787 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4788
4789         * src/pic/device.h,
4790         * src/pic/device.c,
4791         * src/pic/port.c : Changed PIC14 code to not set bit RP1 when
4792          maxram is less than 0x100.
4793
4794 2004-09-06 Slade Rich <slade_rich AT users.sourceforge.net>
4795
4796         * Bug fixes for PIC14 - signed RSHIFT problem. Patch supplied by Allen(agschrum).
4797
4798 2004-09-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4799
4800         * src/port.h,
4801         * src/mcs51/main.c,
4802         * src/ds390/main.c,
4803         * src/z80/main.c,
4804         * src/hc08/main.c,
4805         * src/pic/main.c,
4806         * src/pic16/main.c,
4807         * src/avr/main.c,
4808         * src/xa51/main.c
4809         * src/SDCCicode.c (geniCodeJumpTable): Better logic to determine if a
4810         a jump table is the best form for a switch statement, including
4811         automatic insertion of missing cases to make the case range
4812         continuous. Developed in collaboration with Frieder Ferlemann.
4813
4814 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4815
4816         * src/hc08/ralloc.c (canDefAccResult): multi-byte shift is unsafe for
4817         accumulator result if it needs sign extension
4818
4819 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4820
4821         * src/hc08/ralloc.c (canUseAccOperand): fixed comparison bug
4822
4823 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4824
4825         * device/lib/gbz80/printf.c,
4826         * device/lib/z80/printf.c: removed define for NULL
4827
4828 2004-09-02 Maarten Brock <sourceforge.brock AT dse.nl>
4829
4830         * as/xa51/xa_link.c,
4831         * device/examples/ds390/ow390/ad26.c,
4832         * device/examples/ds390/ow390/cnt1d.c,
4833         * device/examples/ds390/ow390/counter.c,
4834         * device/examples/ds390/ow390/ds2480.h,
4835         * device/examples/ds390/ow390/ds2480ut.c,
4836         * device/examples/ds390/ow390/findtype.c,
4837         * device/examples/ds390/ow390/gethumd.c,
4838         * device/examples/ds390/ow390/owllu.c,
4839         * device/examples/ds390/ow390/ownetu.c,
4840         * device/examples/ds390/ow390/swt12.c,
4841         * device/examples/ds390/ow390/swtloop.c,
4842         * device/examples/ds390/ow390/temp.c,
4843         * device/examples/ds390/ow390/temp10.c,
4844         * device/examples/ds390/ow390/thermo21.c,
4845         * device/examples/ds390/ow390/tinilnk.c,
4846         * device/examples/ds390/ow390/tstfind.c,
4847         * device/examples/serialcomm/windows/serial.cpp,
4848         * device/examples/serialcomm/windows/test_serialcomm.cpp,
4849         * device/include/reg51.h: fixed line endings for cvs
4850
4851 2004-09-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4852
4853         * src/hc08/ralloc.c (canDefAccResult, canUseAccOperand,
4854         packRegsForAccUse, packRegisters): new accumulator register
4855         packing algorithm
4856         * support/regression/ports/hc08/support.c (_putchar): suppress
4857         warning of unused variable
4858         * src/SDCCicode.c: added SWAP entry to codeTable
4859
4860 2004-09-01 Maarten Brock <sourceforge.brock AT dse.nl>
4861
4862         * device/lib/sprintf.c: forgot to add this file before previous commit
4863
4864 2004-09-01 Vangelis Rokas <vrokas AT otenet.gr>
4865
4866         * src/pic16/gen.c (genPackBits): added operand right in function
4867         parameters, load result directly if p_type is POINTER (that is
4868         called by genNearPointerSet)
4869         * (genUnPackBits): added operand left in function parameters,
4870         * (genNearPointerGet, genNearPointerSet): prevent the loading of
4871         FSR0 if accessing bitfields,
4872
4873 2004-08-31 Maarten Brock <sourceforge.brock AT dse.nl>
4874
4875         * device/include/stdio.h: added NULL, size_t, typedef pfn_outputchar,
4876           _print_format; updated printf, sprintf, vsprintf
4877         * device/include/asm/default/features.h: corrected comment/define
4878         * device/lib/Makefile.in: added sprintf.c
4879         * device/lib/libsdcc.lib: added sprintf module
4880         * device/lib/printf_large.c,
4881         * device/lib/vprintf.c,
4882         * device/lib/sprintf.c: totally refactored printf_large and vprintf
4883           into these 3 files
4884         * support/regression/Makefile: changed ALL_PORTS into a usefull default
4885         * support/regression/ports/mcs51-stack-auto/spec.mk: added sprintf
4886         * support/regression/tests/bug-927659.c: removed dummy putchar, enabled
4887           hc08 test
4888         * support/regression/tests/zeropad.c: define idata as data for hc08
4889
4890 2004-08-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4891
4892         * src/SDCCpeeph.c (labelIsReturnOnly): support hc08 rts opcode also
4893         * src/SDCCpeeph.c (buildLabelRefCountHash): assume function entry point
4894         labels are referenced at least once (even if a reference is not found)
4895         * src/hc08/gen.c (emitcode): set isComment flag for comments
4896         * src/hc08/peeph.def: added rules 5a..5f (optimize redundant immediate
4897         loads), rules 6a..6b (optimize jumps to return)
4898
4899 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4900
4901         * device/lib/acosf.c (acosf),
4902         * device/lib/asinf.c (asinf),
4903         * device/lib/atanf.c (atanf),
4904         * device/lib/ceilf.c (ceilf),
4905         * device/lib/cosf.c (cosf),
4906         * device/lib/coshf.c (coshf),
4907         * device/lib/cotf.c (cotf),
4908         * device/lib/fabsf.c (fabsf),
4909         * device/lib/floorf.c (floorf),
4910         * device/lib/log10f.c (log10f),
4911         * device/lib/logf.c (logf),
4912         * device/lib/sinf.c (sinf),
4913         * device/lib/sinhf.c (sinhf),
4914         * device/lib/sqrtf.c (sqrtf),
4915         * device/lib/tanf.c (tanf),
4916         * device/lib/tanhf.c (tanhf),
4917         * device/include/math.h: defined _FLOAT_FUNC_REENTRANT macro and
4918         replaced all instances of "reentrant" in the library functions
4919         defined in math.h with this macro.
4920         * support/regression/tests/float_trans.c: reenabled test for hc08
4921
4922 2004-08-30 Bernhard Held <bernhard AT bernhardheld.de>
4923
4924         * device/lib/pic16/Makefile.common.in: added MODELFLAGS again, it was
4925         erroneously deleted
4926
4927 2004-08-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4928
4929         * src/hc08/gen.c (loadRegFromAop): better use of clra & clrx
4930         * src/hc08/gen.c (genAnd, genOr): fixed bug with conditional when
4931         multi-byte volatile operands are used
4932         * src/hc08/gen.c (shiftRLong): fixed bug with wrong rotate direction
4933         * src/hc08/main.c (_hc08_genAssemblerPreamble): moved the built-in
4934         initialization to area GSINIT0 so that it would always precede
4935         any static initializers in GSINIT
4936         * support/regression/tests/zeropad.c: fixed idata define for hc08
4937         * support/regression/tests/bug-927659.c,
4938         * support/regression/tests/float_trans.c: disabled tests for hc08
4939         pending missing library routines
4940         * .version: increased version number to 2.4.4 - hc08 port now passes
4941         regression tests
4942
4943
4944 2004-08-29 Bernhard Held <bernhard AT bernhardheld.de>
4945
4946         * device/lib/pic16/Makefile.common.in: added $(MM) to fix `make clean`
4947         * Makefile.common.in,
4948         * as/Makefile,
4949         * as/hc08/Makefile.in,
4950         * as/mcs51/Makefile.in,
4951         * as/z80/Makefile.in,
4952         * debugger/mcs51/Makefile.in,
4953         * device/include/Makefile.in,
4954         * device/lib/Makefile.in,
4955         * doc/Makefile,
4956         * link/Makefile,
4957         * link/z80/Makefile.in,
4958         * packihx/Makefile.in,
4959         * sim/ucsim/main_in.mk,
4960         * sim/ucsim/avr.src/Makefile.in,
4961         * sim/ucsim/doc/Makefile.in,
4962         * sim/ucsim/gui.src/serio.src/Makefile.in,
4963         * sim/ucsim/hc08.src/Makefile.in,
4964         * sim/ucsim/s51.src/Makefile.in,
4965         * sim/ucsim/xa.src/Makefile.in,
4966         * sim/ucsim/z80.src/Makefile.in,
4967         * src/Makefile.in,
4968         * support/cpp2/Makefile.in,
4969         * support/librarian/Makefile,
4970         * support/makebin/Makefile: added DESTDIR to the install path proposed
4971         by "Maciej 'Agaran' Pijanka" <agaran AT pld-linux.org>
4972         * doc/sdccman.lyx: added DESTDIR documentation
4973
4974 2004-08-29 Vangelis Rokas (vrokas AT otenet.gr>
4975
4976         * src/pic16/gen.c (genFunction, genEndFunction): fixed return
4977         instruction for interrupt handlers, use fast returns when returning
4978         from high priority interrupts
4979
4980 2004-08-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4981
4982         * src/hc08/gen.c (genAnd, genOr, transferAopAop, rmwWithAop): optimized
4983         code generation
4984         * src/hc08/gen.c (genrshFour, genCpl): fixed bugs
4985         * src/hc08/gen.c (genMultOneByte, genDivOneByte, genModOneByte): fixed
4986         bugs, ported much of Bernhard's code from mcs51
4987         * src/mcs51/gen.c (genSend),
4988         * src/hc08/gen.c (genSend): fixed bug with lost SEND iCodes if more
4989         than one when calling a reentrant function
4990         * device/lib/_mullong.c: defined an alternate struct layout for big
4991         endian ports (hc08)
4992
4993 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4994
4995         * src/hc08/gen.c (shiftL2Left2Result): fix for bug-500536 regression
4996         test
4997
4998 2004-08-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
4999
5000         * src/SDCCsymt.c (processFuncArgs): make sure parameter types
5001         are sane and complete before asking the port its prefered parameter
5002         passing method (fixes bug #1017633)
5003         * device/lib/hc08/_ret.c: added "data" storage class to _ret2
5004         and _ret3
5005
5006 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5007
5008         * src/hc08/gen.c (genPackBitsImmed, genUnpackBitsImmed): fix offset
5009         problem in bitfields >= 8 bits.
5010
5011 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5012
5013         * src/SDCCsymt.c: undid changes that were not meant to be committed
5014
5015 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5016
5017         * support/regression/ports/hc08spec.mk: REENTRANT must be reentrant
5018
5019 2004-08-27 Maarten Brock <sourceforge.brock AT dse.nl>
5020
5021         * src/hc08/gen.c (genUminusFloat): fixed bug where only 3 bytes were
5022           copied and wrong bit got inverted
5023
5024 2004-08-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5025
5026         * src/hc08/gen.c (genPointerSet, genFarPointerSet): moved code from
5027         genFarPointerSet into genPointerSet; eliminated genFarPointerSet
5028         * src/hc08/gen.c (genPointerGet, genFarPointerGet): moved code from
5029         genFarPointerGet into genPointerGet; eliminated genFarPointerGet
5030         * src/hc08/gen.c (genPackBitsImmed): generate optimized code for
5031         assignments to bitfields at known addresses
5032         * src/hc08/gen.c (genUnpackBitsImmed): generate optimized code for
5033         reads from bitfields at known addresses
5034         * src/hc08/ralloc.c (packRegisters),
5035         * src/hc08/gen.c (genPointerGet, genUnpackBits, genUnpackBitsImmed,
5036         genhc08Code): optimize pointer get values used as conditionals
5037         * src/hc08/peeph.def: added rules 2e & 2f to optimize bit test
5038         and branch
5039
5040 2004-08-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5041
5042         * src/mcs51/gen.c (genPointerGet, genNearPointerGet, genPagedPointerGet,
5043         genFarPointerGet, genCodePointerGet, genGenPointerGet, genUnpackBits),
5044         * src/mcs51/ralloc.c (packRegisters): optimize pointer get values used
5045         as conditionals
5046
5047 2004-08-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5048
5049         * src/mcs51/peeph.def: peepholes 248.i-m for xdata bitfields
5050
5051 2004-08-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5052
5053         * src/mcs51/ralloc.c (packRegsForOneuse): fixed bug #1012650 and some
5054         related problems
5055
5056 2004-08-21 Bernhard Held <bernhard AT bernhardheld.de>
5057
5058         * sim/ucsim/cmd.src/Makefile.in: run lex only if $(PRJDIR)/devel exists
5059
5060 2004-08-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5061
5062         * src/z80/ralloc.c (packRegsForAssign): ported some bug fixes from the
5063         mcs51 port
5064
5065 2004-08-16 Slade Rich <slade_rich AT users.sourceforge.net>
5066
5067         * src/pic/gen.c: Restored fn genRet as previous fix was incorrect.
5068
5069 2004-08-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5070
5071         * src/mcs51/gen.c (genJumpTab): jumptables for more than 16 switch
5072         cases use more compact code.
5073
5074 2004-08-13 Slade Rich <slade_rich AT users.sourceforge.net>
5075
5076         * src/pic/gen.c: Fixed problem with fn returning a variable bigger than a char.
5077
5078 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5079
5080         * src/SDCClrange.c (findPrevUse): fixed bug #1007371
5081
5082 2004-08-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5083
5084         * src/SDCCsymt.h,
5085         * src/SDCCsymt.c (changePointer, checkDecl, addSymChain): changed
5086         parameter of changePointer() from symbol* to sym_link*
5087         * src/SDCCast.c (decorateType): call changePointer() for CAST op
5088         * src/SDCCsymt.c (compareType): void* type is castable to other
5089         pointers, but not necesarily an exact match.
5090         * src/SDCCicode.c (geniCodeCast): allow void* casting here since it
5091         is no longer blindly treated as an exact match.
5092         * src/SDCCval.c (valCastLiteral): treat missing type as cast to void
5093
5094 2004-08-12 Slade Rich <slade_rich AT users.sourceforge.net>
5095
5096         * src/pic/glue.c: Added struct initialisation fn printIvalStruct.
5097
5098 2004-08-11 Slade Rich <slade_rich AT users.sourceforge.net>
5099
5100         * src/pic/gen.c,
5101         * src/pic/pcode.c,
5102         * src/pic/ralloc.h,
5103         * src/pic/ralloc.c: Printing rIdx on internal verbose debug.
5104
5105 2004-08-10 Slade Rich <slade_rich AT users.sourceforge.net>
5106
5107         * src/pic/device.c,
5108         * src/pic/device.h,
5109         * src/pic/device.c: Will no longer exit if #pragma maxram has not been defined.
5110
5111 2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5112
5113         * src/mcs51/gen.c (emitcode): fixed bug #992819
5114
5115 2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
5116
5117         * src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
5118           there's no need to make it worse
5119
5120 2004-08-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5121
5122         * src/mcs51/ralloc.c (deassignLR),
5123         * src/ds390/ralloc.c (deassignLR),
5124         * src/hc08/ralloc.c (deassignLR),
5125         * src/z80/ralloc.c (deassignLR),
5126         * src/pic/ralloc.c (deassignLR),
5127         * src/pic16/ralloc.c (deassignLR),
5128         * src/avr/ralloc.c (deassignLR),
5129         * src/SDCClrange.c (findRecursiveSucc, findRecursivePred, findPrevUse,
5130         rlivePoint): fixed another part of bug #971834
5131
5132 2004-08-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5133
5134         * src/z80/main.c: enabled "critical" keyword
5135         * src/z80/mappings.i,
5136         * src/z80/gen.c (genFunction, genEndFunction): support for interrupt
5137         functions (fixes bug #979646)
5138         * doc/sdccman.lyx: added a subsection explaining z80 interrupt support
5139
5140 2004-08-04 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5141
5142         * src/mcs51/gen.c (genInline): Add \n for labels, not DOS/WIN dirs
5143           such as c:\mydir.
5144
5145 2004-08-03 Maarten Brock <sourceforge.brock AT dse.nl>
5146
5147         * src/SDCCloop.c (loopInvariants): fixed bug 983545, hope this
5148           doesn't disable too much optimizations
5149
5150 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5151
5152         * src/pic/glue.c Disabled "WARNING: function 'main' undefined" when -S option is used.
5153
5154 2004-08-02 Maarten Brock <sourceforge.brock AT dse.nl>
5155
5156         * src/SDCClrange.c (rlivePoint): fixed bug 988568, thanks to anonymous
5157
5158 2004-08-02 Slade Rich <slade_rich AT users.sourceforge.net>
5159
5160         * src/pic/gen.c tidied up tabs
5161         * src/pic/genarith.c tidied up tabs and fixed bug with literal multiple where same register was used for hi and low byte
5162         * src/pic/main.c tidied up tabs
5163         * src/pic/pcode.c tidied up tabs and disabled verbose code generation
5164         * src/pic/pcoderegs.c tidied up tabs
5165         * src/pic/ralloc.c tidied up tabs
5166
5167 2004-07-30 Vangelis Rokas <vrokas AT otenet.gr>
5168
5169         * src/SDCCmem.c (allocGlobal): don't turn S_REGISTER storage class
5170         to S_FIXED for pic16 port and when symbol is not in level 0,
5171         allocate for S_REGISTER storage class and pic16 port, too,
5172         * src/pic16/device.h: prototype for checkSym,
5173         * src/pic16/device.c (pic16_dump_access, checkSym): NEW,
5174         * (pic16_assignConfigWordValue): test the value and the mask to
5175         validate that the value is suitable for the configuration word,
5176         * src/pic16/glue.c (pic16_printIvalFuncPtr): use 'externs' to
5177         collect extern declared symbols, don't emit symbol twice, check
5178         first if symbol is in publics set first,
5179         * src/pic16/main.c (_pic16_keywords[]): added keyword 'register',
5180         * added command line '--fstack' which enables an experimental
5181         feature for stack access, too buggy to be used yet...
5182         * src/pic16/ralloc.c (pic16_accessregWithName): NEW,
5183         * (pic16_allocDirReg): when register has storage class S_REGISTER
5184         allocate in pic16_dynAccessRegs,
5185         * device/include/pic16/pic18f????.h: modified configuration word
5186         naming convention, words started as CONFIG0H but should be CONFIG1H
5187
5188 2004-07-29 Maarten Brock <sourceforge.brock AT dse.nl>
5189
5190         * device/include/mcs51reg.h: fixed bug 970993
5191
5192 2004-07-27 Maarten Brock <sourceforge.brock AT dse.nl>
5193
5194         * added lib/calloc.c, lib/free.c, lib/realloc.c, include/stddef.h
5195         * updated lib/malloc.c, lib/libsdcc.lib, lib/Makefile.in, include/malloc.h
5196         * src/SDCC.lex (doPragma): added pragma disable_warning <nnn>
5197         * src/SDCCmain.c (parseCmdLine): added option --disable-warning <nnn>
5198         * src/ds390/gen.c (genPlusIncr): fixed bug when incrementing generic pointers
5199         * support/Util/SDCCerr.c (vwerror): suppress disabled warnings and output
5200           error/warning numbers,
5201           added function setWarningDisabled()
5202         * support/Util/SDCCerr.h: added setWarningDisabled() and MAX_ERROR_WARNING
5203         * support/regression/ports/mcs51-stack-auto/spec.mk: added dependencies
5204           _memcmp.c _memmove.c calloc.c realloc.c free.c
5205         * support/regression/tests/malloc.c: added tests for new functionality
5206         * support/regression/tests/zeropad.c: added tests for truncated initializers
5207           and initialized char arrays starting with '\x0'
5208         * src/mcs51/peeph.def: fixed regression, added peephole 177.f
5209
5210 2004-07-26 Bernhard Held <bernhard AT bernhardheld.de>
5211
5212         * support/valdiag/tests/overflow.c: fixed warning on (1 >> 40)
5213
5214 2004-07-26 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5215
5216         * doc/sdccman.lyx: updated example in section "Absolute Addressing"
5217         * src/mcs51/peeph.def: added contributed fix for "bug" #995347 as
5218         peephole 177.e. Thanks to anonymous
5219
5220 2004-07-25 Vangelis Rokas <vrokas AT otenet.gr>
5221
5222         * src/pic16/glue.c (pic16_printIvalFuncPtr): when an extern
5223         function isn't used in the source but referenced as a
5224         variable initializer then declare it as extern in .asm file
5225
5226 2004-07-24 Vangelis Rokas <vrokas AT otenet.gr>
5227
5228         * .version: increased version number to 2.4.3
5229
5230         Adding version extension according to ChangeLog CVS revision
5231         * src/Makefile.in (target all): added dependency 'version.h'
5232         * (rule version.h): added rule to create version.h from ChangeLog,
5233         * (rule dep): added dependency version.h,
5234         * src/version.awk: AWK script to create version.h
5235         * src/SDCCdwarf2.c (dwWriteModule),
5236         * src/SDCCglue.c (initialComments),
5237         * src/SDCCmain.c (printVersionInfo): modified to write after
5238         version string the version extension number,
5239         * src/SDCCutil.c: included "version.h"
5240         * (getBuildNumber): NEW, returns SDCC's ChangeLog minor revision
5241         number,
5242         * src/SDCCutil.h: added prototype for getBuildNumber
5243
5244         * src/SDCCmain.c (parseCmdLine): when sOpt is 'I' add rest in
5245         includeDirsSet, too,
5246         * src/SDCCsymt.c (checkSClass): don't emit error when a variable,
5247         const char [] is found in function prototype...
5248
5249         * src/pic16/genarith.c (pic16_genUMult8XLit_8): optimization to omit
5250         moving to WREG with source is already in WREG,
5251         * src/pic16/gen.h: added AOP_FSR0 and AOP_FSR2 in enum,
5252         * src/pic16/gen.c (getFreePtr): updated to look for FSR0 and FSR2,
5253         * (aopForSym): stack'ed symbols are partially supported, added
5254         if-clause to support symbols in FARSPACE,
5255         * (sameRegs): added test for AOP_ACC to see if registers are same,
5256         * (pic16_freeAsmop): added case for AOP_FSR0 and AOP_FSR2,
5257         * (pic16_aopGet): added case for AOP_FSR0 and AOP_FSR2,
5258         * (pic16_popRegFromString): will not allocate a new register if it
5259         doesn't find one by name, bug may have introduced...
5260         * (pic16_popGet): added case for AOP_FSR0 and AOP_FSR2,
5261         * (genIpush): revived to use pic16 port's stack,
5262         * (genAddrOf): added incomplete case for stack'ed operand,
5263         * (genCast): optimized a pair of MOVFW,MOVWF to MOVFF
5264         * src/pic16/genutils.c (pic16_genNot): almot new vesrion for NOT,
5265         can handle multibyte operands,
5266         * src/pic16/glue.c (pic16_printIval*): some debug info added,
5267         * (pic16initialComments): added message for MPLAB compatibility
5268         mode enabled,
5269         * src/pic16/main.h: prototype for pic16_mplab_comp,
5270         * src/pic16/main.c (pic16_optionsTable): new option --mplab-comp,
5271         which enabled MPLAB compatibility mode (i.e. no #LINE/#FILE, BANKED)
5272         * (_pic16_linkEdit): NEW, handles link stage, transferred here
5273         because of increased complexity of procedure,
5274         * (_process_pragma): stack pragma changed to format 'stack pos len',
5275         emit symbol '_stack_end' to conform with gplink,
5276         * src/pic16/pcode.c (pic16_newpCodeOpBit): using pic16_regWithName
5277         to search for register,
5278         * (pic16_get_op, pic16_get_op2): added case for PO_W, PO_WREG and
5279         PO_GPR_REGISTER,
5280         * (pic16_pCode2str): when in MPLAB compatibility mode, comment out
5281         #LINE directives and replace 'B' with 'BANKED' in instruction opcodes
5282         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
5283         case for PO_GPR_REGISTER,
5284         * (pic16_AnalyzeBanking): removed the old message for inc2h.pl, past
5285         dies, the new era is ahead !...
5286         * src/pic16/ralloc.c: added hash reposits pic16_dynAllocRegNames and
5287         pic16_dynInternalRegs,
5288         * (pic16_allocregWithName, pic16_procregWithName, pic16_regWithname): NEW,
5289         * (pic16_allocDirReg): minor optimizations and bug fixes,
5290         * (pic16_allocWithIdx): when searching pic16_dynProcessorRegs use fixed,
5291
5292         * device/lib/pic16/startup/crt0*.c: extern definition of stack_end,
5293         load stack and frame pointer with address of 'stack_end' symbol
5294
5295 2004-07-23 Vangelis Rokas <vrokas AT otenet.gr>
5296
5297         * src/pic16/glue.c (pic16emitStaticSeg): fixed bug with files
5298         without source code but only variable initializers
5299
5300 2004-07-20 Vangelis Rokas <vrokas AT otenet.gr>
5301
5302         * src/pic16/glue.c (pic16emitRegularMap): unused functions marked as
5303         external are not declared as extern to reduce overhead while linking
5304
5305 2004-07-20 Maarten Brock <sourceforge.brock AT dse.nl>
5306
5307         * src/SDCCast.c (decorateType): removed buggy fix for bug #979599
5308
5309 2004-07-11 Maarten Brock <sourceforge.brock AT dse.nl>
5310
5311         * src/SDCCglue.c (printIvalArray): fixed bug #984229, thanks to Phuah
5312           Yee Keat for the patch
5313         * src/SDCCast.c (decorateType): fixed bug #979599
5314         * src/ds390/gen.h: removed local fReturnSizeDS390
5315         * src/ds390/gen.c: made fReturnSizeDS390 signed short to remove a warning
5316         * src/ds390/gen.c (genAnd, genOr, genXor),
5317         * src/mcs51/gen.c (genAnd, genOr, genXor): generate better optimized code
5318
5319 2004-07-04 Vangelis Rokas <vrokas AT otenet.gr>
5320
5321         * src/SDCCmain.c (linkEdit): modifications only for pic16 port,
5322         add relFilesSet to $3, manipulate $2 to handle linking of object
5323         files without source files in command line,
5324         * device/include/pic16 (all headers): added ID location macros,
5325         * src/pic16/device.c (struct PIC16_device Pics16[]): added field
5326         entries for ID location bytes,
5327         * (pic16_assignIdByteValue): NEW,
5328         * src/pic16/device.h: new structures idRegInfo_t and idBytesInfo_t,
5329         added field dumpcalltree to pic16_options_t,
5330         * src/pic16/gen.c (genCmp): fixed bug case so a temporary register
5331         is used instead of pic16_Gstack_base_addr, check if (ifx) before
5332         emitting rFalseIfx label after check_carry label,
5333         * src/pic16/glue.c (PIC16_IS_IDLOC_ADDRESS, PIC16_IS_HWREG_ADDRESS,
5334         pic16_emitDIRegs), NEW
5335         * (pic16glue): dump .calltree file when option --calltree found,
5336         * src/pic16/main.c (OPTION _pic16_optionsTable): new option --calltree
5337         * (_pic16_genAssemblerPreamble): emit ID locations after
5338         configuration registers,
5339         * (pic16_linkCmd): modifications of the link command,
5340         * src/pic16/pcode.c (pic16_pciMOVFF): PCC_REGISTER replaces PCC_REGISTER2
5341         * (pic16_pCodeInitRegisters): don't init stack registers,
5342         * (pic16_findPrevInstruction): fixed bug,
5343         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): fixed
5344         bug with immediate registers,
5345         * (buildCallTree): traces stack push and pop,
5346         * (pct2): dump also stack usage for each function,
5347         * src/pic16/ralloc.c (dynrIdx): registers names start from 0x00
5348         * (pic16_allocDirReg): various modifications,
5349         * (pic16_typeRegWithIdx): when searching pic16_dynProcessorRegs set
5350         fixed to 1,
5351
5352 2004-07-02 Vangelis Rokas <vrokas AT otenet.gr>
5353
5354         * src/pic16/pcode.c: removed buggy double colon
5355
5356 2004-07-01 Borut Razem <borut.razem AT siol.net>
5357
5358         * support/scripts/sdcc.nsi: added include/pic16 to setup
5359
5360 2004-06-30 Vangelis Rokas <vrokas AT otenet.gr>
5361
5362         * device/lib/Makefile.in: fixed bug in target objects-pic16,
5363         * device/lib/pic16/Makefile: prefixed with dash (-) command under
5364         target 'clean',
5365         * doc/sdccman.lyx: changed version to 2.4.2 and added some port
5366         specific command line arguments. Also added sample lkr script
5367         for placing a variable at a specific memory bank.
5368         * src/pic16/device.c (pic16_dump_gsection): NEW, to dump variables
5369         at a specific memory bank,
5370         * (pic16_dump_isection): fixed bug which caused string literals to
5371         be omitted when dumping idata section,
5372         * (pic16_groupRegistersInSection): added code to handle registers
5373         in specific memory banks,
5374         * src/pic16/gen.c: labelOffset is prefixed with pic16_ and made
5375         public, all references are renamed too,
5376         * (pic16_aopGet): removed switch cases for AOP_R0,AOP_R1,AOP_DPTR,
5377         AOP_DPTR2,
5378         * (pic16_storeForReturn): added case to handle when dest is WREG,
5379         * src/pic16/genarith.c (pic16_pCodeOpSubType): NEW,
5380         * src/pic16/glue.c (pic16emitRegularMap): when adding a register in
5381         pic16_rel_udata, check to see if that register is marked as being
5382         a member of a specific memory bank,
5383         * (pic16_printIvalCharPtr): added code to add string literals either
5384         to code or the idata sections,
5385         * src/pic16/main.c (_process_pragma): added \n to WHITE constant,
5386         also accept the 'udata' pragma,
5387         * src/pic16/main.h: new structure types sectName and sectSym
5388         * src/pic16/pcode.c: added new pCodeInstruction entry for BANKSEL
5389         * (newpCodeOpBit): added PIC_OPTYPE subt in function prototype,
5390         * (pic16_findPrevInstruction): fixed, it returned nothing,
5391         * (insertBankSwitch): fixed to emit banksel/skip and skip/banksel
5392         instruction combinations,
5393         * (pic16_FixRegisterBanking): heavily reorganised,
5394         * (pic16_AnalyzeBanking): if generating banksel directives is
5395         disabled, then don't call FixRegisterBanking at all,
5396         * src/pic16/ralloc.c (bitEQUs, aliasEQUs, allDefsOutOfRange):
5397         completely removed,
5398         * (pic16_writeUsedRegisters): added call to pic16_dump_gsection
5399
5400 2004-06-29 Bernhard Held <bernhard AT bernhardheld.de>
5401
5402         * src/SDCCglue.c (printChar): fixed bug #973350, patch provided by
5403         Phuah Yee Keat <yk.phuah AT nestac.com>
5404
5405 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5406
5407         * src/pic16/glue.c (pic16createInterruptVect): function now emits
5408         correctly the IVT even if it is relocated to some other location
5409
5410 2004-06-28 Vangelis Rokas <vrokas AT otenet.gr>
5411
5412         * device/include/pic16/pic18fregs.h: added case for pic18f2220.h
5413         * device/include/pic16/pic18f2220.h: NEW,
5414         * device/lib/pic16/libdev/pic18f2220.c: NEW,
5415         * device/lib/pic16/libdev/Makefile: added 18f2220 in DEVS,
5416         * src/pic16/device.c (struct Pics16): added info for 18f2220,
5417         * src/pic16/device.h (struct pic16_options): added ivt_loc and
5418         nodefaultlibs, ivt_loc is the location of the interrupt vector
5419         table, and nodefaultlibs signs that default libraries should not be
5420         linked in link stage,
5421         * src/pic16/gen.c (genFunction): relocate interrupt vector functions
5422         according to --ivt-loc argument,
5423         * src/pic16/main.c (_process_pragma): emit '_stack' as public symbol
5424         when pragma stack is found,
5425
5426 2004-06-25 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5427
5428         * src/mcs51/peeph.def: added peepholes 182.d (return 0.0),
5429         256 (range check), 257 (do while), 258.a-f (bit banging
5430         f.e. on 3-wire SPI bus)
5431
5432 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5433
5434         * src/SDCClrange.c (findNextUseSym): fixed a live range bug with
5435         variables used exclusively within a loop
5436
5437 2004-06-21 Bernhard Held <bernhard AT bernhardheld.de>
5438
5439         * src/mcs51/gen.c (genCpl): quick fix for bug #974835
5440
5441 2004-06-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5442
5443         * src/SDCClrange.c (computeClash): fixed bug #971834
5444
5445 2004-06-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5446
5447         * src/mcs51/gen.c (genCmp): fixed bug #975903
5448         * src/hc08/gen.c (operandsEqu),
5449         * src/ds390/gen.c (operandsEqu),
5450         * src/z80/gen.c (operandsEqu),
5451         * src/pic/gen.c (operandsEqu),
5452         * src/pic16/gen.c (operandsEqu),
5453         * src/mcs51/gen.c (operandsEqu): fixed bug #976283
5454         * src/SDCCmain.c (parseCmdLine): report --unknown-option only once
5455
5456 2004-06-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5457
5458         * src/SDCCcse.c (cseBBlock): fixed bug #966963
5459
5460 2004-06-12 Vangelis Rokas <vrokas AT otenet.gr>
5461
5462         * src/pic16/gen.c (genPointerGet): added E_INTERNAL_ERROR for
5463         default case in switch statement,
5464         * glue.c (pic16_initPointer): expr is initialised via decoarteType
5465         to eliminate problem with initialisation of pointers, but problem
5466         still exists,
5467         * (pic16_pointerTypeToGPByte): removed, no needed for pic16,
5468         * (emitStaticSegment): removed various lines emitting debug info,
5469         * src/pic16/pcode.c, src/pic16/pcode.h, src/pic16/ralloc.h:
5470         added processor registers for utilizing EEPROM,
5471         * src/pic16/pcode.c (pic16_emitDB): number of DBs emitted is not
5472         configurable and set 8
5473
5474 2004-06-08 Vangelis Rokas <vrokas AT otenet.gr>
5475
5476         * .version: increased version number to 2.4.2,
5477
5478         Cumulative patch for pic16 port
5479         * src/pic16/device.c: changed scheme to dump initial values for
5480         variables in idata segment, all print_idata* functions were removed,
5481         now the pic16_printIval* will be called,
5482         * src/pic16/glue.c: (pic16_initPointer, pic16_pointerTypeToGPByte,
5483         * _pic16_printPointerType, pic16_printPointerType,
5484         * pic16_printGPointerType, pic16_printIvalArray, pic16_printIvalStruct,
5485         * pic16_printIvalBitFields, pic16_printIvalFuncPtr, pic16_printIvalPtr:
5486         NEW, similar to the respective functions in SDCCglue.c,
5487         * src/pic16/pcode.c (pic16_emitDB, pic16_flushDB): reverted to old
5488         way, emitting hex bytes,
5489         * (pic16_emitDS): NEW, emits a string for pointer initialisation,
5490
5491 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5492
5493         * src/avr/ralloc.c (serialRegAssign),
5494         * src/xa51/ralloc.c (serialRegAssign),
5495         * src/pic/ralloc.c (serialRegAssign),
5496         * src/pic16/ralloc.c (serialRegAssign),
5497         * src/hc08/ralloc.c (serialRegAssign),
5498         * src/z80/ralloc.c (serialRegAssign),
5499         * src/ds390/ralloc.c (serialRegAssign),
5500         * src/mcs51/ralloc.c (serialRegAssign): fixed bug #964479
5501
5502 2004-06-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5503
5504         * src/SDCCicode.c (geniCodeJumpTable): fixed bug #967601
5505         * src/SDCCpeeph.c (labelIsReturnOnly): fixed bug #966505
5506
5507 2004-06-07 Vangelis Rokas <vrokas AT otenet.gr>
5508
5509         Cumulative patch for pic16 port:
5510         * src/pic16/device.h (typedef PIC16_device) modified fields for
5511         defining microcontrollers,
5512         * src/pic16/device.c: added new info for all devices in Pics16 array,
5513         * src/pic16/gen.c (genPcall): fixed bug that caused the return label
5514         to be optimised out by the pCode optimiser,
5515         * src/pic16/glue.c (pic16emitRegularMap): treat implicit aggragates
5516         specially, bug reported by G.M. Gallant,
5517         * src/pic16/pcode.c (pic16_newpCodeLabelFORCE): NEW, marks a label
5518         as force'd so that cannot be optimised out by pCode optimiser,
5519         * src/pic16/pcode.c,
5520         * src/pic16/pcodepeeph.c,
5521         * src/pic16/pcoderegs.c: many modifications to re-enable peepholes,
5522         they are disabled by default, but can be enabled explicit with
5523         command argument --denable-peeps, for testing,
5524         * device/lib/pic16/startup/Makefile: added --no-peep,--pomit-config-words,
5525         --pomit-ivt in COMPILE_FLAGS
5526
5527 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5528
5529         * src/pic16/pcode.c (pic16_emitDB): removed double semicolon which fails
5530           compilation on MSVC
5531
5532 2004-06-06 Maarten Brock <sourceforge.brock AT dse.nl>
5533
5534         * device/include/sab80515.h: added sfr P6, changed GPL to LGPL
5535
5536 2004-06-06 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5537
5538         device/include/sab80515.h: fixed bug #967492, DAPR is defined at adress
5539         0xd8, but the correct adress is 0xda. Thanks to anonymous for reporting
5540
5541 2004-06-06 Vangelis Rokas <vrokas AT otenet.gr>
5542
5543         * src/pic16/device.c (pic16_assignConfigWord): fixed bug that
5544         would only assign 0x300001 register.
5545
5546 2004-06-05 Vangelis Rokas <vrokas AT otenet.gr>
5547
5548         * device/lib/pic16/startup/Makefile: added $(MODELFLAGS)
5549         in COMPILE_FLAGS. Thanks to G. Gallant for report.
5550
5551 2004-06-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5552
5553         * doc/sdccman.lyx: minor changes, mentioned beta vendor support
5554         for ds80c400
5555         * src/mcs51/peeph.def: ran unexpand -a over peeph.def
5556         * src/mcs51/peeph.def: removed obsolete peephole 100.a,
5557         added peephole 254 (left shift), 255 (jump table)
5558
5559 2004-06-04 Vangelis Rokas <vrokas AT otenet.gr>
5560
5561         * device/lib/Makefile.in: removed comment line with model-pic16,
5562         * (target port-specific-objects-pic16): the libraries and objects
5563         are copied to the build directory form the device/lib/pic16/bin
5564         directory
5565
5566         Cumulative patch concerning pic16 port:
5567         * library directory has been re-organized,
5568         * added support for PIC18F1220,
5569         * added headers and library sources for chips 18f1220,18f6520,
5570         18f6620,18f6680,18f6720,18f8520,18f8620,18f8680,18f8720
5571
5572         * configuration registers setting has changed, now each supported
5573         device has a complete description of the registers it uses,
5574         * all initialisations are moved to idata sections, these section
5575         can be absolute or relocatable,
5576         * fixed initialisation of codespace variables,
5577         * fixed warning about PCLATU and gpsim,
5578         * src/pic16/gen.c (genCmp): now can handle partially iCodes with no ifx,
5579         * (genAssign): use table reads when assigning from variables in codespace,
5580         * src/pic16/glue.c (pic16emitStaticSeg): fixed to correctly initialise
5581         char/int variables placed in codespace,
5582         * (pic16_emitConfigRegs): NEW, emits a list with configuration
5583         registers set in .asm file, no need for --pomit-config-words anymore,
5584         * (pic16glue): some 8051 legacy segments are commented out
5585         (to be removed completely),
5586         * added support for alternative assembler and linker with --asm=
5587         and --link= command line arguments,
5588         * peepholes are disabled automatically in the port, no need to
5589         specify on command line,
5590         * port supports natively char/int/long multiplication, but converts
5591         all divisions to support functions,
5592         * main.c: pic16_linkCmd and pic16_asmCmd changed to force output
5593         to the file set in variable $2,
5594         * pcode.c (pic16_emitDB, pic16_flushDB): modified to print printable
5595         strings in ASCII format and not in hex,
5596         * ralloc.c (serialRegAssign): added a triplet of conditional calls
5597         to pic16_allocDirReg for IC_RESULT, IC_LEFT and IC_RIGHT so to
5598         allocate proper register if iCodes aren't temporary,
5599
5600 2004-06-02 Maarten Brock <sourceforge.brock AT dse.nl>
5601
5602         * support/regression/tests/zeropad.c: added TEST_G macro for alpha
5603
5604 2004-06-02 Vangelis Rokas <vrokas AT otenet.gr>
5605
5606         * src/pic16/gen.c (genPcall): warning about gpsim and PCLATU
5607         is commented out
5608
5609 2004-06-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5610
5611         * src/hc08/gen.c (genPointerGetSetOfs): disabled optimization if
5612         computed address is reused
5613         * src/hc08/gen.c (genPackBits): fixed offsets in assignments to
5614         multi-byte bitfields
5615
5616 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5617
5618         * src/z80/gen.c: (genArrayInit): must check for pointers too
5619
5620 2004-06-01 Maarten Brock <sourceforge.brock AT dse.nl>
5621
5622         * support/regression/tests/zeropad.c: never meant to commit the
5623           nestedstruct test: removed, added check for GCC version
5624
5625 2004-05-31 Maarten Brock <sourceforge.brock AT dse.nl>
5626
5627         * src/SDCCast.c (createIvalArray): fixed bug 770487 SIGSEGV
5628         * src/SDCCglue.c (emitRegularMap): fixed bug 770484 allocation problem
5629         * src/SDCCglue.c (initPointer, printIvalType, printIvalStruct,
5630           printIvalArray, printIvalFuncPtr, printIvalPtr, printIval): fixed
5631           bugs 928906 and 954082 half-empty initializers
5632         * src/SDCCsymt.h,
5633         * src/SDCCsymt.c (getAllocSize): added for above fix
5634         * src/z80/gen.c (genArrayInit): fixed bug 741044
5635         * support/regression/tests/zeropad.c: added tests
5636
5637 2004-05-30 Vangelis Rokas <vrokas AT otenet.gr>
5638
5639         * src/pic16/device.c (pic16_dump_section): corrected bug which
5640         caused some symbols of the libraries to be misplaced
5641
5642 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5643
5644         * src/pic16/glue.c,
5645         * src/pic16/ralloc.h,
5646         * src/pic16/ralloc.cc: prefixed IS_CONFIG_ADDRESS with PIC16_
5647         to fix conflict with pic port
5648
5649 2004-05-28 Vangelis Rokas <vrokas AT otenet.gr>
5650
5651         * src/pic16/glue.c (pic16emitStaticSeg): do not print as publics or
5652         externs configuration variables,
5653         * src/pic16/ralloc.h,
5654         * src/pic16/ralloc.cc: IS_CONFIG_ADDRESS is made public and added
5655         prototype in header, commented out some debug messages
5656
5657 2004-05-26 Vangelis Rokas <vrokas AT otenet.gr>
5658
5659         * src/pic16/glue.c,
5660         * src/pic16/main.c,
5661         * src/pic16/pcode.c: added gpasm directives #FILE/#LINE
5662         for gpasm COFF object generation. Thanks to D. Hawkins for
5663         his patch info
5664
5665 2004-05-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5666
5667         * src/ds390/main.c,
5668         * src/mcs51/main.c: fixed sort order of mnemonics (thanks to Maarten
5669         Brock for spotting this)
5670         * src/ds390/gen.c (genEndFunction),
5671         * src/mcs51/gen.c (genEndFunction): always save psw if function is an
5672         interrupt handler and critical. Disable push/pop optimizations when
5673         peephole optimizations disabled.
5674
5675 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5676
5677         Updated pic16 library sources and headers.
5678         * device/lib/pic16/pic18f*/ ,
5679         * device/include/pic16/*.h: modified to handle structured SFR
5680         definitions
5681
5682 2004-05-25 Vangelis Rokas <vrokas AT otenet.gr>
5683
5684         * src/port.h (PORT structure): added hook initPaths, now each
5685         port can declare its own default search paths,
5686         which can been seen with the --print-search-dirs option,
5687         see pic16 port for example,
5688         * src/SDCCmain.c (setBinPaths, setIncludePaths, setLibPath,
5689         setDataPaths): test to options.printSearchDirs is ifdef'ed out,
5690         * (doPrintSearchDirs): NEW, replaces in a central manner the
5691         printing of search dirs which was split in set*Paths functions,
5692         * (main): added call to port->initPaths and doPrintSearchDirs,
5693         * src/avr/main.c,
5694         * src/ds390/main.c,
5695         * src/hc08/main.c,
5696         * src/izt/i186.c,
5697         * src/izt/tlcs900h.c,
5698         * src/mcs51/main.c,
5699         * src/pic/main.c,
5700         * src/pic16/main.c: modified port structures to reflect addition of
5701         initPaths hook,
5702
5703         * src/pic16/device.c (regCompare): registers are finally sorted by name,
5704         * (pic16_dump_section): for registers in same address reserve memory once,
5705         * src/pic16/device.h (struct PIC16_device): changed variable gen_banksel
5706         to no_banksel,
5707         * src/pic16/genarith.c (pic16_genPlus): added code to handle cases where
5708         result is greater in size than right or left,
5709         * (pic16_genUMult8X8_8): there are some cases where the result can
5710         be 16 bits size, so handle these,
5711         * src/pic16/gen.c: changed some pic16_emitpcomment to DEBUGpic16_emitcode,
5712         * (pic16_outBitC): modified to emit pcodes,
5713         * (pic16_storeForReturn): using is_LitOp to see if operand is literal
5714         or not,
5715         * (genDivOneByte): implemented algorithm to divide 8-bits,
5716         * (genCmp): uncommented goto, but issues still exist,
5717         * (genAnd): fixed a bug with variables >8bits,
5718         * (genPackBits): optimization added that uses BCF/BSF to change a
5719         single bit,
5720         * (genAssign): fixed bug when assigning floating point literals,
5721         * src/pic16/glue.c (pic16glue): added assembler directive 'code' before
5722         __sdcc_gsinit_startup label,
5723         * src/pic16/main.c (_pic16_init): removed search directory
5724         initialisations,
5725         * (_pic16_initPaths): NEW, used to initialise search directories,
5726         * (_hasNativeMulFor): support functions for all except char/int
5727         multiplication, and char division,
5728         * (PIC16_port struct): modified entry for native mul support,
5729         * src/pic16/pcode.c (insertBankSwitch): modified to support the renamed
5730         no_banksel option,
5731         * (buildCallTree): call to register_usage is ifdef'ed out,
5732
5733 2004-05-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5734
5735         * device/include/string.h: applied Stas Sergeev's patch to make this
5736         header file compatible with the preprocessor -Wundef option
5737         * src/SDCCmain.c (main): abort compilation if preprocessor reports
5738         failure (fixes bug #941458)
5739
5740 2004-05-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5741
5742         * src/SDCCopt.c (killDeadCode): fixed bug #907733
5743         * support/Util/SDCCerr.c: reworded E_AUTO_ASSUMED diagnostic to clarify
5744         that the variable, not the function, should be static
5745         * src/SDCCval.c (valCastLiteral): fixed bit initialization from literal
5746         to be consistent with non-literal case
5747
5748 2004-05-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5749
5750         * src/SDCCast.c (isConformingBody): fixed bug #949967
5751         * src/SDCCopt.c (cnvToFcall, cnvToFloatCast, cnvFromFloatCast,
5752         convilong): fixed bug #952086
5753
5754 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5755
5756         * src/SDCCmem.c (allocVariables): fixed bug #955321
5757
5758 2004-05-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5759
5760         * src/hc08/main.c (_hc08_genAssemblerEnd),
5761         * src/SDCCdwarf2.c (dwOpenFile, dwCloseFile, dwWriteFunction,
5762         dwWriteModule, dwWriteCLine, dwWriteALine, dwarf2FinalizeFile):
5763         completely eliminated the use of a temporary file
5764         * src/SDCCdwarf2.c (dwWriteAttr): fixed bug with location list offset
5765         when more than one file linked
5766         * src/SDCCloop.c (pointerAssigned): fixed bug #954163
5767
5768 2004-05-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5769
5770         * src/SDCCval.c (valForArray): applied Maarten Brock's patch #947682
5771         which fixes bug #543481
5772         * support/regression/tests/bug-751703.c: fixed comments left from a
5773         cut and paste error
5774         * src/SDCCdwarf2.c (dwCloseFile): don't explicitly close a temp file
5775         * src/SDCCdwarf2.c (dwTagFromType): added bitfield support
5776         * src/SDCCdwarf2.c (dwWriteSymbolInternal): handle extern within local
5777         scopes
5778         * src/SDCCdwarf2.c (dwWriteLineNumber): line number deltas are signed
5779         * src/SDCCmain.c (processFile, parseCmdLine): non-alphanumeric chars
5780         are now changed to underscores in moduleName
5781
5782 2004-05-15 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5783
5784         * as/mcs51/lkmem.c: better fix for bug #954173
5785
5786 2004-05-15 Maarten Brock <sourceforge.brock AT dse.nl>
5787         committed by Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5788
5789         * device/include/c8051f020.h: newly added SiLabs (Cygnal) header file
5790         * device/include/c8051f000.h,
5791         * device/include/c8051f120.h,
5792         * device/include/c8051f300.h,
5793         * device/include/c8051f310.h,
5794         * device/include/c8051f320.h: updated (added _XPAGE, CAPN, CAPP,
5795         PWM16) and detab'ed
5796
5797 2004-05-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
5798
5799         * doc/sdccman.lyx: mentioned sourceforge's delay between web frontend
5800         and mailing lists, doc'ed --no-peep-comments, removed reference
5801         to knoppix (newest version has no LyX/LaTeX), other minor changes
5802         * src/SDCCglue.c (glue): save 2 bytes stack space with
5803         option --main-return. The ljmp could probably be avoided too
5804
5805 2004-05-14 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5806
5807         * as/mcs51/lkmem.c, as/mcs51/lkaomf51: fixed bug 954173
5808
5809 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5810
5811         * src/SDCCsymt.h: added IS_AUTO(symbol) test macro
5812         * src/SDCCopt.c (isLocalWithoutDef),
5813         * src/SDCCicode.c (operandFromSymbol): use the IS_AUTO test macro
5814         which adds a !IS_EXTERN codition. Fixes bugs #877426 and #751703.
5815         (credit to Maarten Brock for patch #949363, on which this is based)
5816         * support/regression/tests/bug-751703.c: some test cases of extern used
5817         within inner scopes.
5818
5819 2004-05-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5820
5821         * src/SDCCdwarf2.c (dwMatchTypes): structs must have matching
5822         SPEC_STRUCT
5823         * src/SDCCdwarf2.c (dwTagFromType): fix to handle recursive
5824         struct definitions
5825         * src/SDCCdwarf2.c (dwWriteModule, dwNewDebugSymbol, dwWriteEndFunction,
5826         dwWriteLabel): fix to create valid debugger symbols even when
5827         the module name has non-alphanumeric symbols in it
5828         * src/SDCCdwarf2.c (dwWriteSymbolInternal): better detection for
5829         when a variable's allocation has been optimized away
5830
5831
5832 2004-05-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5833
5834         * src/hc08/gen.c (hc08_emitDebuggerSymbol),
5835         * src/hc08/main.c,
5836         * src/mcs51/gen.c (mcs51_emitDebuggerSymbol),
5837         * src/mcs51/main.c,
5838         * src/ds390/gen.c (ds390_emitDebuggerSymbol),
5839         * src/ds390/main.c,
5840         * src/z80/gen.c (z80_emitDebuggerSymbol),
5841         * src/z80/main.c,
5842         * src/pic/gen.c (pic14_emitDebuggerSymbol),
5843         * src/pic/main.c,
5844         * src/pic16/gen.c (pic14_emitDebuggerSymbol),
5845         * src/pic16/main.c,
5846         * src/avr/gen.c (avr_emitDebuggerSymbol),
5847         * src/avr/main.c,
5848         * src/xa51/gen.c (xa51_emitDebuggerSymbol),
5849         * src/xa51/main.c,
5850         * src/SDCCdebug.c (emitDebuggerSymbol),
5851         * src/SDCCdebug.h,
5852         * src/port.h: added a debugger struct to the port struct. Added a
5853         callback for defining debugger symbols
5854
5855         * src/SDCCast.c (createLabel),
5856         * src/SDCC.y (labeled_statement): mark all compiler generated labels
5857         with isitmp = 1
5858         * src/SDCCicode.h,
5859         * src/SDCCicode.c (geniCodeFunctionBody): added a link from the FUNCTION
5860         iCode back to the ast for the function
5861
5862         * src/hc08/ralloc.c (hc08_assignRegisters),
5863         * src/hc08/ralloc.h: define a regs struct for the stack pointer. Removed
5864         unneeded fields from the regs struct.
5865         * src/hc08/gen.c (transferRegReg, genFunction, genEndFunction): use the
5866         pushReg() & pullReg() functions instead of emitcode()
5867
5868         * src/hc08/gen.c (genLabel, genhc08Code),
5869         * src/SDCCdebug.h: Added additional debugger hooks needed for DWARF
5870
5871         * src/cdbFile.c (cdbWriteLabel, cdbWriteScope): Added stubs for unneeded
5872         debugger hooks
5873
5874         * src/hc08/gen.c (genEndFunction, genhc08Code),
5875         * src/hc08/gen.h,
5876         * src/mcs51/gen.c (genEndFunction, gen51Code),
5877         * src/mcs51/gen.h,
5878         * src/ds390/gen.c (genEndFunction, gen390Code),
5879         * src/ds390/gen.h,
5880         * src/z80/gen.c (genEndFunction, genZ80Code),
5881         * src/z80/gen.h,
5882         * src/z80/z80.h,
5883         * src/pic/gen.c (genEndFunction, genpic14Code),
5884         * src/pic/gen.h,
5885         * src/pic16/gen.c (genEndFunction, genpic16Code),
5886         * src/pic16/gen.h,
5887         * src/avr/gen.c (genEndFunction, genAVRCode),
5888         * src/avr/gen.h,
5889         * src/xa51/gen.c (genEndFunction, genXA51Code),
5890         * src/xa51/gen.h,
5891         * src/cdbFile.c (cdbWriteFunction, cdbWriteEndFunction): moved cdb
5892         specific code to cdbFile.c and out of the backend code generators
5893
5894         * as/hc08/lkmain.c (main): removed OMF51 support from link-hc08
5895         * as/hc08/lkarea.c (lnkarea): areas with NOLOAD attribute default
5896         starting address is now 0
5897
5898         * as/hc08/asm.h,
5899         * as/hc08/m08pst.c,
5900         * as/hc08/asmain.c (asmbl): implemented the .sleb128 and .uleb128
5901         assembler directive for DWARF support
5902         * as/hc08/lkelf.c (elf): only increment address when rtflg[] set
5903
5904         * src/src.dsp,
5905         * src/Makefile.in,
5906         * src/SDCCdwarf2.c: preliminary DWARF (ver 2) debugger data generator
5907
5908 2004-05-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5909
5910         * src/hc08/gen.c (genJumpTab, emitcode, genhc08code): fixed stack error
5911         and inappropriate peephole optimization in jump tables
5912
5913 2004-04-30 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5914
5915         * as/hc08/m08pst.c,
5916         * src/SDCCglue.c: sdccopt works for the hc08 port now
5917
5918 2004-04-27 Bernhard Held <bernhard AT bernhardheld.de>
5919
5920         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): fixed bug #942130
5921
5922 2004-04-27 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5923
5924         * as/hc08/lkelf.c: sdccconf.h is not available in WIN32
5925
5926 2004-04-24 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5927
5928         * src/SDCCpeeph.c (replaceRule): support empty replacement peephole
5929         rules
5930         * src/SDCCmain.c,
5931         * src/SDCCglobl.h,
5932         * src/SDCCpeeph.c (getPeepLine): new option --no-peep-comments omits
5933         comments from the peephole optimizer replacement rules
5934         * src/SDCCmem.c (printAllocInfoSeg): give actual location of spilled
5935         symbols
5936         * src/SDCCcse.c (updateSpillLocation),
5937         * src/SDCCopt.c (killDeadCode, findReqv): better tracking of register
5938         equivalents
5939         * src/hc08/ralloc.c (regTypeNum): pseudo symbols must be in DATA only
5940         * src/hc08/main.c (_hc08_finaliseOptions): made pointers to stack
5941         objects far pointers
5942
5943 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5944
5945         * src/SDCCsymt.h: a missing part of my last change
5946         * src/pic/ralloc.c (regTypeNum),
5947         * src/pic16/ralloc.c (regTypeNum): fixed statement/declaration order
5948
5949 2004-04-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5950
5951         * src/SDCCicode.h,
5952         * src/SDCCicode.c (aggrToPtrDclType),
5953         * src/SDCCptropt.h,
5954         * src/SDCCptropt.c (ptrBaseRematSym, ptrPseudoSymSafe,
5955         ptrPseudoSymConvert),
5956         * src/pic/ralloc.c (regTypeNum),
5957         * src/pic16/ralloc.c (regTypeNum),
5958         * src/hc08/ralloc.c (regTypeNum),
5959         * src/ds390/ralloc.c (regTypeNum),
5960         * src/mcs51/ralloc.c (regTypeNum): check for dependancy hazards before
5961         creating pseudo symbols (fixed bugs #777768, #930484, and #933966)
5962
5963 2004-04-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5964
5965         * link/z80/lkmain.c (afile),
5966         * as/hc08/lkmain.c (afile),
5967         * as/mcs51/lkmain.c (afile): fix suggested by Maarten Brock to
5968         prevent a pointer problem when a filename has no directory and
5969         no extension specified.
5970
5971 2004-04-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5972
5973         * link/z80/lkmain.c (afile): allow periods in directory names
5974         * link/z80/lkmain.c (afile),
5975         * as/mcs51/lkmain.c (afile),
5976         * as/hc08/lkmain.c (afile): allow linker script file to have an
5977         extension other than ".lnk"
5978         * link/z80/lklex.c (getfid),
5979         * link/z80/lkmain.c (parse),
5980         * as/mcs51/lklex.c (getfid),
5981         * as/mcs51/lkmain.c (parse),
5982         * as/hc08/lklex.c (getfid),
5983         * as/hc08/lkmain.c (parse): Support comments in the linker script
5984         file on lines by themselves and after filenames
5985
5986 2004-04-20 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
5987
5988         * as/link_hc08.dsp: Added as/hc08/lkelf.c to project.
5989
5990 2004-04-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
5991
5992         * src/z80/peeph-z80.def: removed some peephole rules that don't
5993         work with multibyte arithmetic (fixed bug #937126)
5994         * src/mcs51/peeph.def: fixed peephole rules 150-158 to apply only
5995         to registers and not global variables
5996         * src/SDCCicode.c (geniCodeAssign, ast2iCode, geniCodePostInc,
5997         geniCodePreInc, geniCodePostDec, geniCodePreDec,
5998         geniCodeLogicAndOr, geniCodeConditional): enforce strict lvalue
5999         checking for assignments not internally generated (fixed bug #931895)
6000         * src/SDCC.y (postfix_expr): ignore typedefs when looking for a
6001         structure member (fixed bug #930072)
6002
6003 2004-04-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6004
6005         * src/SDCCmain.c (linkEdit),
6006         * src/hc08/main.c (_hc08_parseOptions),
6007         * as/hc08/Makefile.in,
6008         * as/hc08/aslink.h,
6009         * as/hc08/asm.h,
6010         * as/hc08/m08pst.c,
6011         * as/hc08/lkrloc.c (relr, rele),
6012         * as/hc08/lkarea.c (lnkarea)
6013         * as/hc08/lkmain.c (afile, parse),
6014         * as/hc08/lkelf.c: support for ELF output
6015         * as/hc08/lks19.c (s19),
6016         * as/hc08/lkihx.c (ihx): ignore areas with the NOLOAD attribute
6017
6018 2004-04-17 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6019
6020         * as/mcs51/lkihx.c: Fixed bug #899105.
6021
6022 2004-04-16 Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6023
6024         * doc/sdccman.lyx: Added instructons on how to convert MSVC .dsw and
6025         .dsp files from Unix to DOS.
6026
6027 2004-04-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6028
6029         * doc/sdccman.lyx: removed the ANSI-C noncompliance note regarding
6030         function pointers; we have been compliant for several months now.
6031         * src/mcs51/ralloc.c (serialRegAssign): enabled part of my 2004-04-13
6032         change that was accidently commented out
6033         * src/mcs51/gen.c (freeAsmop, getFreePtr, freeForBranchAsmop, genIfxJump,
6034         genCmpEq, jmpTrueOrFalse, genCmp, genAnd, genOr, genXor, genIfx): fixed
6035         bug #922319
6036
6037 2004-04-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6038
6039         * src/hc08/gen.c: output of all of the internal debugging information
6040         is now controlled by the D() macro; it is disabled by default
6041
6042 2004-04-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6043
6044         * src/mcs51/ralloc.c (serialRegAssign, fillGaps, allocThisReg): try
6045         harder to keep the same registers during a CAST iCode
6046         * src/SDCCopt.c (optimizeCastCast, eBBlockFromiCode): casts of char to
6047         long via int can be done in a single cast, if the signedness is
6048         correct.
6049         * support/regression/tests/bug-927659.c: fixed to avoid conflict with
6050         putchar() in tinibios.c in ds390's library
6051
6052 2004-04-12 Bernhard Held <bernhard AT bernhardheld.de>
6053
6054         * src/SDCCast.c (decorateType): fixed bug #898889,
6055         cast result of a literal complement too
6056         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #930931,
6057         fixed check for bitfields
6058
6059 2004-04-11 Bernhard Held <bernhard AT bernhardheld.de>
6060
6061         * src/SDCCicode.c (geniCodeLogic): made it static,
6062         (geniCodeLogicAndOr): added in order to fix bug #905492,
6063         (ast2iCode): fixed bug #905492
6064         * support/regression/tests/bug-905492.c: added
6065         * src/SDCCast.c (decorateType): don't decorate/process parms twice,
6066         (processParms): fixed bug #927659: don't copy parms, this will clear
6067         decorated flag
6068         * support/regression/tests/bug-927659.c: added
6069
6070 2004-03-29 Bernhard Held <bernhard AT bernhardheld.de>
6071
6072         * src/SDCCast.c (addCast): don't cast float to char
6073         * device/lib/libsdcc.lib: added _memmove
6074
6075 2004-03-28 Bernhard Held <bernhard AT bernhardheld.de>
6076
6077         * device/lib/large/Makefile: fixed parallel execution by
6078         replacing `make` by `$(MAKE)`
6079
6080 2004-03-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6081
6082         * src/hc08/gen.c (genPointerGetSetOfs): correctly handle 1 byte array
6083         offsets (fixes bug #923936)
6084
6085 2004-03-26 Bernhard Held <bernhard AT bernhardheld.de>
6086
6087         * device/lib/small/Makefile: fixed parallel execution by
6088         replacing `make` by `$(MAKE)`
6089
6090 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6091
6092         * device/lib/vprintf.c (vsprintf): minor optimization, see bug #801101
6093
6094 2004-03-23  Scott Dattalo  <scott AT dattalo.com>
6095
6096         * src/pic/gen.c (genCpl): multi-byte complements were not working.
6097         * src/regression/Makefile: Regression test was not running.
6098
6099 2004-03-23 Bernhard Held <bernhard AT bernhardheld.de>
6100
6101         * src/SDCCast.c (resultTypePropagate, decorateType): avoid promotion to int for
6102         complement if possible
6103         * src/SDCCval.c (valComplement),
6104         * src/SDCCicode.c (operandOperation): fixed complement of literal
6105         * support/regression/tests/onebyte.c (testComplement): added
6106
6107 2004-03-22 Bernhard Held <bernhard AT bernhardheld.de>
6108
6109         * src/SDCCast.c (processParms): fixed bug #920866; decorateType() can
6110         return an optimized tree; actually replace actParm with the new tree
6111         * src/SDCCast.h: added some parantheses to remove side effects
6112         * support/regression/tests/bug-920866.c
6113
6114 2004-03-21  Scott Dattalo  <scott AT dattalo.com>
6115         * src/pic/gen.c, src/pic/gen.h, src/pic/genarith.c, src/pic/pcode.c:
6116         Bit operands were not being handled properly in the pic14 port.
6117         (now src/regression/add.c passes again).
6118
6119 2004-03-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6120
6121         * src/SDCC.y (labeled_statement): case and default no longer require
6122         a following statement (RFE #893037)
6123
6124 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6125
6126         * src/mcs51/gen.c (pushSide, genSignedRightShift, genDjnz, geniPush):
6127         use MOVA macro to avoid "mov a,acc" when peephole optimizer is
6128         disabled (fixes bug #916294)
6129         * sim/ucsim/s51.src/mov.cc (inst_mov_a_addr): Throw an error on
6130         "mov a,acc"; patch provided by Lenny Story
6131         * device/include/mc68hc908gp32.h: header contibuted by Juan Gonzalez
6132
6133 2004-03-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6134
6135         * src/mcs51/gen.c (genFunction): optimize RECEIVE in reentrant
6136         functions
6137         * src/ds390/gen.c (genFunction, genEndFunction),
6138         * src/ds390/ralloc.c (ds390_assignRegisters),
6139         * src/mcs51/gen.c (genFunction, genEndFunction, mcs51_assignRegisters):
6140         * src/mcs51/ralloc.c (mcs51_assignRegisters): Skip optimizing registers
6141         pushed if there are parameters passed on the stack. Also, a cleaner
6142         way to decide if r0/r1 should be pushed/popped. (Together they fix
6143         bug #918693)
6144
6145 2004-03-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6146
6147         * doc/sdccman.lyx,
6148         * device/lib/mcs51/crtpagesfr.asm,
6149         * device/lib/mcs51/crtxinit.asm,
6150         * device/lib/mcs51/crtxstack.asm: Changed name of _PAGESFR to _XPAGE
6151         to avoid confusion with Si Lab's SFRPAGE register.
6152
6153 2004-03-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6154
6155         * src/SDCCglue.c (emitMaps): allow public sfr variables
6156         * src/SDCCglue.c (initialComments): include compiler build date
6157         with compiler version and put the timestamp of the generated
6158         assembly file on a serperate line to be less confusing.
6159         * src/port.h: added genInitStartup hook
6160         * src/avr/main.c,
6161         * src/ds390/main.c,
6162         * src/hc08/main.c,
6163         * src/pic/main.c,
6164         * src/pic16/main.c,
6165         * src/xa51/main.c,
6166         * src/z80/main.c: genInitStartup initialize as NULL (default to
6167         historical behaviour)
6168         * src/SDCCglue.c (glue): _sdcc_gsinit_startup is now port specific.
6169         * src/mcs51/main.c: (_mcs51_genInitStartup, _mcs51_genExtraAreas,
6170         _mcs51_genXINIT, _mcs51_genRAMCLEAR): link initialization code from the
6171         library instead of hard coding it into the compiler.
6172         * support/regression/ports/mcs51-stack-auto/spec.mk,
6173         * src/SDCCmain.c (linkEdit): added mcs51.lib to the link libraries
6174         * device/lib/mcs51/Makefile,
6175         * device/lib/small/Makefile,
6176         * device/lib/large/Makefile,
6177         * device/lib/mcs51/crtpagesfr.asm,
6178         * device/lib/mcs51/crtstart.asm,
6179         * device/lib/mcs51/crtxclear.asm,
6180         * device/lib/mcs51/crtxinit.asm,
6181         * device/lib/mcs51/crtclear.asm,
6182         * device/lib/mcs51/crtxstack.asm: move most of the mcs51 C runtime
6183         startup/initialization out of src/SDCCglue.c and src/mcs51/main.c
6184         and into user configurable files.
6185         * device/lib/clean.mk: clean mcs51 directory too
6186         * support/regression/tests/longlit.c: added static to T1 declaration
6187         * doc/sdccman.lyx: documented _PAGESFR sfr for customizing pdata
6188         accesses in the initialization code
6189
6190 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6191
6192         * device/include/mc68hc908qy.h: corrected declarations of FLBPR and
6193         OSCTRIMVAL as noted in bug #916008
6194
6195 2004-03-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6196
6197         * src/SDCCloop.c (basicInduction): fixed bug with loop induction
6198         in loops with multiple exits (reported as incorrect registers
6199         used by Martin Helmling in Sdcc-user list)
6200
6201 2004-03-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6202
6203         * src/ds390/main.c (_ds390_genAssemblerPreamble): cosmetic change,
6204         made ds390 register extensions look less like error messages
6205
6206 2004-03-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6207
6208         * src/SDCCglue.c (printIvalPtr): fixed bug with pointer initializer
6209         reported by Adam Wozniak in Sdcc-user list
6210
6211 2004-03-10 Bernhard Held <bernhard AT bernhardheld.de>
6212
6213         * src/SDCCast.c (decorateType): fixed with bug and promotion in
6214         arithmetic optimizations, added debug output
6215
6216 2004-03-09 Bernhard Held <bernhard AT bernhardheld.de>
6217
6218         * device/lib/time.c (mktime): fixed bug reported by Bert Thomas
6219         * sdcc.spec: updated and split sdcc into 3 rpms
6220         * src/SDCCast.c (decorateType): &|^ don't need addCast(); addCast() is
6221         needed for literals of LEFT_OP and '+'
6222         * src/SDCCicode.c (geniCodeLogic): I must have been braindead when I
6223         introduced RESULT_TYPE_NOPROM
6224         (geniCodeMultiply): fixed logic for decision if mul is optimized to
6225         left shift
6226         * src/SDCCsymt.c (computeType): op is int; added RESULT_TYPE_OTHER;
6227         limited promotion to int only for '*'
6228         * src/SDCCsymt.h (computeType): op is int, removed RESULT_TYPE_NOPROM
6229
6230 2004-03-09 Hans Dorn <hjdorn AT users.sourceforge.net>
6231
6232         * src/pic16/gen.c (genSkip),
6233         (genc16bit2lit), (gencjneshort): commented out
6234         (is_LitOp): new helper function, checks operand type
6235         (genCmpEq): rewritten
6236
6237 2004-03-08 Bernhard Held <bernhard AT bernhardheld.de>
6238
6239         * support/regression/tests/bug-908454.c: added
6240
6241 2004-03-07 Bernhard Held <bernhard AT bernhardheld.de>
6242
6243         * src/SDCCast.c (addCast): fixed bug #908454 by promoting bits to char
6244         * src/SDCCicode.c (usualBinaryConversions): op needs int type
6245         (geniCodeCast): cosmetic, don't preserve bit storage class
6246         (geniCodeLeftShift): added promotion
6247         (geniCodeLogic): fixed regression
6248         * src/SDCCsymt.c (computeTypeOr): accept bits too
6249         (compareType): 2nd part of fix for bug #908454, needed for bitfields
6250
6251 2004-03-07  Borut Razem <borut.razem AT siol.net>
6252
6253         * support/Util/findme.c: alloca() replaced with malloc()/free() pair
6254
6255 2004-03-06 Vangelis Rokas <vrokas AT otenet.gr>
6256
6257         * src/pic16/ralloc.c (pic16_genPackRegisters): reverted to old
6258         version of pic16_genPackRegisters which does not check if ic is a
6259         CAST operator,
6260         * src/pic16/gen.c (ifxForOp): disabled new and untested code in
6261         function cause string1.c regression test fails
6262
6263 2004-03-06 Bernhard Held <bernhard AT bernhardheld.de>
6264
6265         * sim/ucsim/configure.in,
6266         * sim/ucsim/configure,
6267         * sim/ucsim/doc/Makefile.in: use docdir
6268         * src/SDCC.y: fixed sbit atrributes
6269         * src/SDCCast.c (getResultTypeFromType): added support for bitfields
6270         * src/SDCCast.c (decorateType): |^& need special promotion handling
6271         * src/SDCCast.h,
6272         * src/SDCCsymt.h: moved definition of RESULT_TYPE
6273         * src/SDCCsymt.h (computeType),
6274         * src/SDCCicode.c: computeType() needs op
6275         * src/SDCCsymt.c (checkTypeSanity),
6276         * doc/sddman.lyx: "plain" bitfields are unsigned
6277         * src/SDCCsymt.c (computeTypeOr): added
6278         * src/SDCCsymt.c (computeType): added support for bitfields, fixed
6279         |^& ops
6280         * src/SDCCval.c (val*): computeType() needs op
6281         * src/SDCCval.c (valCastLiteral): fixed casting of bitfields
6282         * support/regression/tests/onebyte.c: added tests for |^&
6283
6284 2004-03-06 Hans Dorn <hjdorn AT users.sourceforge.net>
6285
6286         * src/pic16/gen.c: (genpic16Code) use copy of printILine's output
6287         for writing icode into asm output.
6288
6289 2004-03-05 Vangelis Rokas <vrokas AT otenet.gr>
6290
6291         * src/pic16/device.c: added some debug lines enabled
6292         with macro DEBUG_CHECK,
6293         * src/pic16/genarith.c: more debug in genPlus,
6294         * (pic16_genUMult8XLit_16, pic16_genUMult8X8_16): removed,
6295         * (pic16_genUMult16X16_16, pic16_genUMult16XLit_16): NEW,
6296         * src/pic16/gen.c: added prototypes for pic16_genMult16X16_16,
6297         * (aopForSym): onStack symbols are re-placed in data memspace,
6298         and onStack flag is cleared,
6299         * (pic16_popGetTempReg, pic16_popReleaseTempReg): modified to
6300         copy temporary pcodeop,
6301         * (genPcall): added warning for not updating PCLATU,
6302         * (genFunction): removed test with IFFUNC_CALLEESAVES, its
6303         always true for pic16 port,
6304         * (genMultOneWord): NEW, supports integer multiplication,
6305         * (genMult): modified to call genMultOneWord,
6306         * (ifxForOp): added warning when return NULL,
6307         * src/pic16/glue.c (pic16emitRegularMap): symbol implicit
6308         flag is set before call to operandFromSymbol for implicit
6309         added structures,
6310         * src/pic16/main.c (_pic16_finaliseOptions): options.float_rent,
6311         options.intlong_rent are set by default,
6312         * (_hasNativeMulFor): modified to allow port generation of integer
6313         multiplication,
6314         * src/pic16/ralloc.c (pic16_allocDirReg): commented out line which
6315         set regtype to REG_SFR for all registers, restricting seting the
6316         accessBank flag for registers 0<= r < 0x80 and 0xf80<=r<=0xfff,
6317
6318 2004-03-05 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6319
6320         * src/mcs51/peephole.def: added 251.b and 253.x. 253.x are applied
6321         more than 500 times in the regression tests
6322
6323 2004-03-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6324
6325         * support/Util/SDCCerr.h,
6326         * support/Util/SDCCerr.c,
6327         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6328         enumerator_list),
6329         * src/SDCCsymt.c (addSymChain): show location of oriignal definition
6330         for symbol conflicts.
6331         * support/valdiags/tests/enum.c,
6332         * support/valdiags/tests/tentdecl.c,
6333         * support/valdiags/tests/struct.c: expect possible error messages
6334         referring to original symbol definitions.
6335         * src/SDCC.y (struct_or_union_specifier, struct_declarator),
6336         * src/SDCCsymt.h,
6337         * src/SDCCsymt.c (promoteAnonStructs): support anonymous struct/union
6338
6339 2004-03-03 Hans Dorn <hjdorn AT users.sourceforge.net>
6340
6341         * src/pic16/gen.c (gencjne): fixed for right=REG / left=LIT
6342
6343 2004-02-03 Vangelis Rokas <vrokas AT otenet.gr>
6344
6345         * src/pic16/ralloc.c (newReg): fixed bug #908929
6346
6347 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6348
6349         * src/ds390/gen.c: added missing #include "main.h"
6350
6351 2004-03-02 Vangelis Rokas <vrokas AT otenet.gr>
6352
6353         * src/pic16/device.c (checkAddSym): NEW, adds a symbol to set while
6354         checking if symbol is already in set,
6355         * src/pic16/device.h: prototype for checkAddSym,
6356         * src/pic16/gen.c: (_G): added entry interruptvector,
6357         * (assignResultValue): removed some commented out lines,
6358         * (genFunction): check for ISR via sym->type, absolute section for
6359         interrupt code is created via a new pBlock, the goto instruction is
6360         placed now correctly at the interrupt vector position, changed all
6361         references from ivec to _G.interruptvector,
6362         * WREG,STATUS,BSR are not saved in stack upon an entry to interrupt
6363         is the interrupt is a high priority one, same for return from ISR,
6364         * src/pic16/glue.c: changed all calls of addSetHead for publics and
6365         externs to calls of checkAddSym,
6366         * src/pic16/pcode.c (pic16_pBlockConvert2*): emit warning when
6367         pic16_pcode_verbose flag is set,
6368         * src/pic16/pcode.h: extern to pic16_pcode_verbose,
6369         * src/pic16/pcoderegs.c: message about how many registers are saved
6370         will only be emitted if pic16_pcode_verbose flag is set,
6371
6372 2004-03-02 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6373
6374         * src/ds390/ralloc.h,
6375         * src/ds390/ralloc.c (ds390_regWithIdx),
6376         * src/ds390/gen.c (emitcode),
6377         * src/ds390/main.h,
6378         * src/ds390/main.c (instructionSize, ds390newAsmLineNode, updateOpRW,
6379         ds390opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6380         ds390operandCompare, getRegsRead, getRegsWritten,
6381         initializeAsmLineNode): customized instruction size calculation for
6382         ds390, started basis for some register optimizations
6383         * src/ds390/gen.c (gen390Code, emitcode): associate iCodes with
6384         corresponding assembly output
6385         * src/ds390/gen.c (genFunction, genEndFunction): added case to handle
6386         missing push/pop of r0/r1. Optimized push/pops
6387
6388 2004-03-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6389
6390         * src/mcs51/main.c (instructionSize): fixed ACALL size
6391         * src/mcs51/main.c (updateOpRW): fixed bug with @dptr, @a+dptr operands
6392
6393 2004-03-01 Vangelis Rokas <vrokas AT otenet.gr>
6394
6395         * src/pic16/device.c (pic16_dump_section): fixed a bug that allowed
6396         the sorting of rlist with NULL elements
6397         * (print_idataType, print_idata): NEW to create idata sections
6398         * src/pic16/device.h: idataSymSet new variable
6399         * src/pic16/gen.c (genFunction): fixed some bugs in string
6400         comparing, improved the absolute section creation for ISRs,
6401         added FSR0L/FSR0H in registers that are saved in an ISR,
6402         * (genInline): fixed the processing of inline snippets,
6403         now they undergo no process by the peephole optimizer
6404         * src/pic16/glue.c (pic16emitRegularMap): symbols with initialiser
6405         are placed in idataSymSet,
6406         * (pic16emitStaticSeg): extern symbols are added in externs,
6407         * src/pic16/ralloc.c (pic16_allocDirReg): work around to reduce bank
6408         switching when aboslute variables are placed in access bank memory
6409         * (pic16_writeUsedRegs): added call to pic16_dump_idata,
6410         * (packRegsForSupport,packRegsForAccUse,packRegsForOneuse):
6411         commented out with #if,
6412         * (pic16_packRegisters): reintroduce the check for CAST because some
6413         symbols are not correctly handled,
6414         * src/pic16/pcode.h: changed the definition of pCodeAsmDir to hold a
6415         pCodeInstruction instead of pCode,
6416         * src/pic16/pcode.c (pic16_newpCodeAsmDir): modified for the new
6417         pCodeAsmDir definition,
6418         * (pic16_pCode2str, genericPrint): when an AsmDir pcode has a NULL
6419         directive, then the argument directive is emitted without the leading
6420         tab, hack for inline labels which must be in the first column,
6421         * (compareLabel,pic16_findNextInstruction),
6422         * (pic16_findPrevInstruction): added case for PO_ASMDIR,
6423         * (insertBankSwitch): modified for the new pCodeAsmDir,
6424
6425 2004-03-01 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6426         patch applied by Vangelis Rokas <vrokas AT otenet.gr>
6427
6428         * src/pic16/gen.c (pic16_popGet): case PO_DIR, adds the offset to
6429         instance,
6430         * (pushSide): commented out with #if,
6431         * (assignResultValue): fixed some typos in saving
6432         registers,
6433         * (genPcall): FIXED and sync'ed with genCall,
6434         * (genDataPointerGet,genDataPointerSet): using offset not leoffset
6435         * (genNearPointerGet): fixed to handle some more cases,
6436         implementation scheme via table reads,
6437         * (genConstPointerGet): modified to access code memory correct,
6438         * (genCodePointerGet,genNearPointerSet,genGenPointerSet): modified
6439         and improved to handle some cases
6440         * glue.c (printIvalType,printIvalChar,emitStaticSeg): use "DB"
6441         instead of "RETLW" for init data
6442         * src/pic16/ralloc.c (pic16_allocDirReg): warning when a symbol is
6443         not IN_DIRSPACE, work around to reduce bank switching when aboslute
6444         variables are placed in access bank memory (<0x80 and >=0xf80),
6445         * src/pic16/pcode.c: added SFRs TBLPTR, TABLAT, added opcodes TBLRD,
6446         TBLRD_POSTINC,TBLRD_POSTDEC,TBLRD_PREINC,TBLWT,TBLWT_POSTINC,
6447         TBLWT_POSTDEC,TBLWT_PREINC
6448         * Fixed initialisation of BSR, set "alias" for SSAVE to "0"
6449         * (pic16_emitDB,pic16_flushDB): New functions to generate "DB"
6450         directives
6451         * (pic16_pCodeConstString): use "DB" instead of "RETLW"
6452         * src/pic16/pcode.h: added TBLRD*,TBLWT*, added pic16_emitDB,
6453         pic16_flushDB, made pic16_newpCodeAsmDir public, added TBLPTR, TABLAT
6454         * src/pic16/ralloc.h: added IDX_BSR,IDX_TBLPTR*,IDX_TABLAT
6455
6456 2004-02-29  Borut Razem <borut.razem AT siol.net>
6457
6458         * src/Makefile.in, src/SDCCutil.c, support/Util/findme.c,
6459         support/Util/findme.h, support/Util/system.h: enhance binary relative
6460         search for lib and include by using findProgramPath()
6461
6462 2004-02-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6463
6464         * src/SDCCpeeph.h,
6465         * src/SDCCpeeph.c (pcDistance),
6466         * src/port.h,
6467         * src/mcs51/ralloc.h,
6468         * src/mcs51/ralloc.c (mcs51_regWithIdx),
6469         * src/mcs51/main.h,
6470         * src/mcs51/main.c (instructionSize, asmLineNode, updateOpRW,
6471         mcs51opcodeCompare, asmLineNodeFromLineNode, getInstructionSize,
6472         mcs51operandCompare, getRegsRead, getRegsWritten): made instruction
6473         size calculation port specific, started basis for some register
6474         optimizations
6475         * src/mcs51/gen.c (genFunction, genEndFunction): added case to handle
6476         missing push/pop of r0/r1. Optimized push/pops
6477         * src/mcs51/ralloc.c (packregisters): fixed bug #727095
6478         * device/lib/_modsint.c (_modsint),
6479         * device/lib/_modslong.c (_modslong): fixed sign of result in non-asm
6480         and stack version so regression tests pass
6481
6482 2004-02-26 Bernhard Held <bernhard AT bernhardheld.de>
6483
6484         * src/Makefile.in (dep): include SLIBOBJS in dependency check
6485         * src/SDCCast.c (decorateType): catch another small optimization
6486         with '?' operator
6487         * src/SDCCsymt.c (computeType): added comments and cosmetic changes
6488         * src/SDCCval.c (valMult, valDiv, valMod, valPlus, valMinus, valShift):
6489         modified to finally use computeType() all over SDCC,
6490         see Feature Request #877103
6491         * src/SDCCval.h: cosmetic
6492         * src/SDCCicode.c (operandOperation): fixed EQ_OP bug, now same as in
6493         valCompare(); regression tested in muldiv.c
6494         * support/regression/tests/muldiv.c (testMod): mod sign follows
6495         dividend only
6496
6497 2004-02-23 Bernhard Held <bernhard AT bernhardheld.de>
6498
6499         * src/SDCCast.c (decorateType): fixed bug #902362
6500         * doc/INSTALL.txt: fixed install instructions for win32
6501
6502 2004-02-21 Bernhard Held <bernhard AT bernhardheld.de>
6503
6504         * device/include/Makefile.in (install): fixed by replacing spaces
6505         by tabs
6506         * doc/README.txt,
6507         * doc/INSTALL.txt: updated for release
6508         * doc/sdccman.lyx: added warning for --xstack being buggy
6509
6510 2004-02-20 Bernhard Held <bernhard AT bernhardheld.de>
6511
6512         * src/pic16/ralloc.c (packRegsForAccUse):  disabled functions with #if
6513         to eliminate build warnings.
6514         * src/pic16/gen.c (pic16_popGet): fixed for gcc 2.95.4
6515
6516 2004-02-20 Vangelis Rokas <vrokas AT otenet.gr>
6517            Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6518
6519         * doc/sdccman.lyx: removed PIC16 from PIC16 Port Specific Options,
6520         removed -penable-stack, added comment for stack pragma, added
6521         warning for not initializing the stack/frame registers, removed
6522         comment at interrupts section
6523
6524         Stack is made permanent, there is no ability to disable stack usage.
6525         * src/pic16/device.h,
6526         * src/pic16/device.c: removed all references to USE_STACK macro,
6527         * src/pic16/device.c (pic16_dump_section): when no elements in
6528         rlist, free rlist before return,
6529         * (pic16_dump_int_registers): NEW, internal registers are a new set
6530         of general purpose registers reused by each function,
6531         * (checkAddReg): returns 1 if registers is added to set,
6532         * (pic16_groupRegistersInSection): when a registers is of type
6533         PO_GPR_TEMP add it in pic16_int_regs and not in pic16_rel_udata,
6534         * src/pic16/device.h: memRange and Assigned Memory are deleted,
6535         SRCASECMP macro is moved here from device.c
6536         * src/pic16/genarith.c (pic16_pCodeOpType): added cases for
6537         PO_PCLATU, PO_PRODL, PO_PRODH,
6538         * (pic16_pCodeOpType, genMinus,
6539         changed compares to "a" register, with AOP_ACC,
6540         * (pic16_genPlus): fixed some bugs and indented properly,
6541         * (pic16_addSign): changed size to size+offset in the MOVWF
6542         instruction,
6543         * (pic16_genUMult8XLit_8): NEW, uses processor MULLW instruction to
6544         multiply 8-bit operand by literal, result is 8-bit,
6545         * (pic16_genUMult8X8_8): NEW, uses processor MULWF instruction to
6546         multiply 2 8-bit operand, result is 8-bit,
6547         * (pic16_genMult8X8_8): modified to call genUMult8X*_8 functions and not
6548         genUMult8X*_16,
6549         * src/pic16/gen.c: changed accUse to contain WREG only,
6550         * (pic16_emitcomment): renamed to pic16_emitpcomment,
6551         * (aopForSym): allocated dir register when IN_DIRSPACE(space) is,
6552         true, do not use immediate addressing any more unless sym is a
6553         pointer in codespace,
6554         * (aopForRemat): do not use immediate addressing when symbol not in
6555         codespace and when symbol's address is requested,
6556         * (aopOp): for-loop in if(sym->accUse) is modified for the new
6557         accUse size (= 1),
6558         * (aopGet): added case for AOP_ACC and don't return "accumulator
6559         bug" but WREG instead,
6560         * (popGetTempReg): pushes contents of temporary register in stack,
6561         * (popReleaseTempReg): pops contents of temporary register from
6562         stack. Use popGetTempReg/popReleaseTempReg in aligned pairs,
6563         * (pic16_popGet): separated case AOP_ACC to return register WREG
6564         from processor registers, AOP_PCODE not checks if pcop is PO_DIR
6565         or PO_IMMEDIATE and initializes their instance/offset appropriately,
6566         * The whole issue with aopForSym,aopForRemat,popGet) is to minimize
6567         the use of immediate pointers to certain cases only.
6568
6569         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): use pic16_popGet2p,
6570         * (pic16_loadFromReturn, pic16_storeForReturn: NEW,
6571         * (assignResultValue, genCall, genRet): modified to use the new
6572         function return value scheme with WREG,PRODL,PRODH,FSR0L and FSR0,
6573         genPcall is still broken,
6574         * (genFunction): added code to create 'A' type pBlocks when
6575         interrupt functions are generated, code not extensively tested yet,
6576         ISRs push WREG,STATUS,BSR,PRODL,PRODH,FSR0L,FSR0H registers on stack,
6577         * (genEndFunction): modified so ISRs pop stored registers from stack,
6578         * (genMultOneByte): cleanup,
6579         * (AccRsh): added flag andmask, to and result with appropriate mask,
6580         * (genUnpackBits,genPackBits): fixed and can handle bit fields,
6581         * (genDataPointerGet): fixed and reenabled its use,
6582         * (genNearDataPointerGet): bugs fixed,
6583         * (genDataPointerSet): bugs fixed,
6584         * src/pic16/genutils.c: added functions pic16_DumpValue,pic16_DumpAop,
6585         pic16_DumpSymbol, pic16_DumpOp,
6586         * src/pic16/genutils.h: function prototypes for the above functions,
6587         * src/pic16/glue.c: new flags initsfpnt, to initialize stack/frame
6588         pointers,
6589         * (pic16emitRegularMap): many many many improvements, but needs a
6590         major cleanup,
6591         * src/pic16/main.c: enable_stack in pic16_options is removed,
6592         * (_pic16_parseOptions): removed command line options -penable-stack,
6593         * (_process_pragma): emit stack symbol only when stack pragma is
6594         processed,
6595         * src/pic16/pcode.c: pic16_pc_fsr0 is removed, all operations are
6596         redirected to FSR0L/FSR0H pair,
6597         * (pic16_get_op, pic16_get_op2): modifications and improvements,
6598         * (pic16_getRegFromInstruction, pic16_getRegFromInstruction2): added
6599         cases PO_PRODL,PO_PRODH, pic16_getRegFromInstruction2 returns sane
6600         for immediates,
6601         * (insertBankSwitch): modified to handle cases like: (alfa + 1)
6602         * (dumpPicOptype): NEW,
6603         * src/pic16/pcode.h: added PO_PCLATU,PO_PRODL,PO_PRODH in enum,
6604         * src/pic16/pcoderegs.c (pCodeRegMapLiveRangesInFlow): fixed bug
6605         with movff instruction,
6606         * src/pic16/ralloc.c: renamed typeRegWithIdx to pic16_typeRegWithIdx,
6607         added pic16_int_regs, some packRegsFor* functions are commented out,
6608         because produce errors,
6609         * src/pic16/NOTES: minor modifications
6610
6611 2004-02-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6612
6613         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c, as/mcs51/lkmain.c,
6614         as/mcs51/lkmem.c, src/SDCCglob.h, src/SDCCmain.c: added options --stack-size and
6615         --pack-iram.
6616         * doc/sdccman.lyx: described options --stack-size and --pack-iram.
6617         * as/mcs51/lkaomf51.c: fixed bug #895763
6618
6619 2004-02-17 Bernhard Held <bernhard AT bernhardheld.de>
6620
6621         * device/include/c8051f320.h: added. Contributed by Maarten Brock.
6622
6623 2004-02-17 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6624
6625         * doc/sdccman.lyx: added details about the HC08 storage classes and
6626         interrupts, fixed the register usage info for z80 & gbz80
6627
6628 2004-02-17 Vangelis Rokas <vrokas AT otenet.gr>
6629
6630         * doc/sdccman.lyx: added more pic16 port documentation
6631         * device/include/pic16/: added header pic18fregs.h
6632
6633 2004-02-16 Bernhard Held <bernhard AT bernhardheld.de>
6634
6635         * doc/sdccman.lyx: added Vangelis' contribution
6636
6637 2004-02-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6638
6639         * src/SDCClrange.c (rlivePoint): live range of SEND operand should
6640         extend to the next CALL or PCALL, not just to the next CALL.
6641
6642 2004-02-16 Vangelis Rokas <vrokas AT otenet.gr>
6643
6644         * src/pic16/gen.c (genInline): fixed bug #896482 with inline assembly
6645
6646 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6647
6648         * src/mcs51/ralloc.c (packRegsForAssign, reassignAliasedSym): fixed
6649         bug #895752 and a better fix for bug #716790
6650
6651 2004-02-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6652
6653         * src/SDCCsymt.c (processFuncArgs): fixed bug #896796
6654
6655 2004-02-14 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6656
6657         * doc/sdccman.lyx: minor changes, minor changed
6658
6659 2004-02-13 Bernhard Held <bernhard AT bernhardheld.de>
6660
6661         * src/SDCCicode.c (usualBinaryConversions): removed pic16 from ports
6662         which can't handle SDCC_NEWONEBYTEOPS,
6663         (geniCodeMultiply): removed conversion from mult to shift for pic14
6664         and pic16
6665
6666 2004-02-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6667
6668         * src/hc08/gen.h,
6669         * src/hc08/gen.c (storeRegToAop, aopOp, aopAdrStr, accopWithAop,
6670         rmwWithAop): Ported my 2003-10-02 fix for bug #663539 to the hc08,
6671         thus fixing bug #895406
6672
6673 2004-02-11 Bernhard Held <bernhard AT bernhardheld.de>
6674
6675         * device/lib/_modsint.c,
6676         * device/lib/_modslong.c: sign follows divisor only
6677         * src/hc08/gen.c (genMultOneByte): if result size is 1,
6678         signs or signedness can be ignored
6679         * src/SDCCast.c (addCast): cosmetic - added lineno to CAST
6680         * src/SDCCast.c (resultTypePropagate): added even more ops: +, - and *,
6681         added optimization for IFX,
6682         (decorateType): Mult/Div/ModOneByte ops can handle all kind of signed
6683         arguments;
6684         reenabled optimization for IFX, which was removed on 2004-01-11
6685         * src/SDCCast.h: added return type IFX
6686         * src/SDCCicode.c: Mult/Div/ModOneByte ops can handle all kind of signed
6687         arguments with 8 or 16 bit results; pic14 and pic16 ports use old
6688         promotion behaviour; env. var. SDCC_NEWONEBYTEOPS selects the new,
6689         SDCC_OLDONEBYTEOPS selects the old behaviour
6690         * src/SDCCsymt.c (computeType): type2 can be NULL (for LEFT_OP);
6691         changed again and commented promotion rule
6692         * src/SDCCval.c (valDiv): promotion no longer necessary
6693         * src/ds390/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte),
6694         * src/mcs51/gen.c (genMultOneByte) (genDivOneByte) (genModOneByte):
6695         rewritten
6696         * support/regression/tests/onebyte.c: added
6697
6698 2004-02-11 Vangelis Rokas <vrokas AT otenet.gr>
6699
6700         * gen.c (genInline): reverted to old code for assemnling inline
6701         code because of bug reported James Chadd
6702
6703 2004-02-10 Vangelis Rokas <vrokas AT otenet.gr>
6704
6705         * ralloc.h: missing declarations from previous patch,
6706         seems that patch for ralloc.h was never applied, fixed
6707
6708 2004-02-10 Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6709            patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6710
6711         * pcode.c,
6712         * pcode.h,
6713         * ralloc.h: added FSR0L, FSR0H and other missing PIC16 SFR's for
6714         indirect addressing. Marked FSR0 as deprecated
6715         * gen.c (pointerCode): commented out, not needed now
6716         (pic16_popGet2p): new MOVFF helper function
6717         (genGenPointerGet),
6718         (genGenPointerSet): reimplemented with MOVFF and POSTINC0
6719         (shiftRLong): removed duplicate debugging info
6720
6721 2004-02-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6722
6723         * src/ds390/gen.c (genNearPointerGet),
6724         * src/mcs51/gen.c (genNearPointerGet): allow the genDataPointerGet()
6725         optimization with bits, but not bitfields.
6726         * src/ds390/ralloc.c (packRegisters),
6727         * src/mcs51/ralloc.c (packRegisters): fixed bug #884453 & #880832
6728
6729 2004-02-09 Bernhard Held <bernhard AT bernhardheld.de>
6730
6731         * src/SDCCcse.c (algebraicOpts): copy operands before modification
6732
6733 2004-02-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6734
6735         * src/SDCCsymt.h,
6736         * src/SDCCicode.c (operandFromSymbol),
6737         * src/mcs51/ralloc.c (verifyRegsAssigned, serialRegAssign),
6738         * src/ds390/ralloc.c (verifyRegsAssigned, serialRegAssign),
6739         * src/z80/ralloc.c (verifyRegsAssigned, serialRegAssign),
6740         * src/hc08/ralloc.c (verifyRegsAssigned, serialRegAssign),
6741         * src/pic/ralloc.c (verifyRegsAssigned, serialRegAssign),
6742         * src/pic16/ralloc.c (verifyRegsAssigned, serialRegAssign): fixed
6743         bug #892038
6744         * src/SDCCast.c (createIvalStruct, createIvalArray, gatherAutoInit),
6745         * src/SDCCglue.c (emitRegularMap, printIvalStruct, printIvalArray,
6746         printIvalCharPtr, printIvalPtr, printIval, emitStaticSeg, emitOverlay)
6747         * src/SDCCsymt.c (newSymbol),
6748         * src/SDCC.y (struct_or_union_specifier, enum_specifier,
6749         enumerator_list),
6750         * src/SDCCval.h,
6751         * src/SDCCval.c (newiList): fixed bug #885705
6752
6753 2004-02-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
6754
6755         * doc/sdccman.lyx: added section 3.1.4: sdcclib.
6756         * as/mcs51/lkmem.c: report the size of the stack in .mem file.
6757
6758 2004-02-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6759
6760         * device/include/c8051f120.h,
6761         * device/include/c8051f300.h,
6762         * device/include/c8051f310.h: added/updated header files for Silicon
6763         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6764         * doc/sdccman.lyx: minor changes, recommended diff -Naur and diff -u
6765         in new section Submitting patches
6766
6767 2004-02-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6768
6769         * src/mcs51/gen.c (genNearPointerGet, genPagedPointerGet,
6770         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6771         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6772         genGenPointerSet),
6773         * src/ds390/gen.c (genNearPointerGet, genPagedPointerGet,
6774         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6775         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6776         genGenPointerSet),
6777         * src/pic16/gen.c (genNearPointerGet, genPagedPointerGet,
6778         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6779         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6780         genGenPointerSet),
6781         * src/pic/gen.c (genNearPointerGet, genPagedPointerGet,
6782         genFarPointerGet, genCodePointerGet, genGenPointerGet,
6783         genNearPointerSet, genPagedPointerSet, genFarPointerSet,
6784         genGenPointerSet): fixed bug #892400
6785         * src/pic16/gen.c (genSkipz, AccRol): disabled functions with #if 0
6786         to eliminate build warnings.
6787         * src/SDCCast.c (processParms),
6788         * src/SDCC.y (function_declarator2, declarator2_function_attributes):
6789         fixed bug 751859
6790         * support/valdiag/valdiag.py: added GCC to the list of defines active
6791         when compiling with gcc
6792
6793 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6794
6795         * support/Util/SDCCerr.h,
6796         * support/Util/SDCCerr.c,
6797         * src/SDCCast.c (decorateType, sizeofOp): complain when sizeof is used
6798         with an incomplete type (fixed bug #883734)
6799         * src/SDCCicode.c (geniCodeCast): fixed bug #890510
6800
6801 2004-02-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6802
6803         * src/pic16/gen.c (genCmpEq, shiftRLong): fixed declarations
6804
6805 2004-02-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6806
6807         * src/SDCCast.c (decorateType),
6808         * src/SDCCicode.c (geniCodeParms, geniCodeCall): fixed bugs in my ANSI
6809         function pointer implementation
6810         * support/regression/tests/funptrs.c: added tests to verify both forms
6811         of function pointers work correctly. Added tests to verify parameters
6812         are passed in the correct order.
6813
6814 2004-02-06  Vangelis Rokas <vrokas AT otenet.gr>
6815
6816         * device.c (regCompare): registers are sorted by ascending
6817         address and increasing size,
6818         * main.c (_pic16_finaliseOptions): removed the declaration
6819         of compiler macro MCU. Now a macro of the format pic18fxxxx
6820         will be defined from the command line
6821
6822 2004-02-06  Hans-Juergen Dorn <hans.dorn AT apl-landau.de>
6823             patch committed by Vangelis Rokas <vrokas AT otenet.gr>
6824
6825         * pcode.c (pic16initMnemonics): fixed typo in assignment to PCOP_RLNCF
6826         PCOP_RLCF was overwritten!
6827         * gen.c (genSkip): commented out calls to pic16_emitcode,
6828         * (genCmpEQ): fixed "long" compares, only high word did get compared,
6829         * (genlshTwo),
6830         * (genRRC): added debugging info,
6831         * (shiftL2Left2Result): Fixed bug, if offr > offl. Result got
6832         overwritten while shifting,
6833         * (shiftR2Left2Result): Fixed bug, if offr < offl. Result got
6834         overwritten while shifting,
6835         * (AccLsh),
6836         * (AccRsh),
6837         * (shiftLLeftOrResult),
6838         * (shiftRLeftOrResult),
6839         * (shiftRLong),
6840         * (shiftLLong): Implemented with pic16_emitpcode
6841         * (genlshFour): Replaced pic16_aopPut with pic16_emitpcode,
6842         * (genLeftShift): Fixed bug, operand for shift by variable always
6843         was "and"ed with 0x0f,
6844         * (genLeftShiftLiteral),
6845         * (genrshTwo),
6846         * (genRightShiftLiteral): added debugging info,
6847         * (genrshFour): added comment,
6848         * (genRightShift): determined signedness from operand "left"
6849         instead of "result"
6850
6851 2004-02-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6852
6853         * src/SDCCicode.c (geniCodeParms),
6854         * src/SDCCast.c (decorateType, processParms): support for ANSI-style
6855         function pointers, fixed function pointer bugs #861242 and #861896
6856
6857 2004-01-31 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
6858
6859         * device/include/c8051f000.h,
6860         * device/include/c8051f120.h,
6861         * device/include/c8051f300.h: added header files for Silicon
6862         Laboratories (formerly Cygnal) CPUs. Contributed by Maarten Brock.
6863
6864 2004-01-31 Bernhard Held <bernhard AT bernhardheld.de>
6865
6866         * src/SDCCast.c (processParams): added new type flow and restructured
6867         (gatherAutoInit): added new type flow
6868         (addCast): cosmetic changes
6869         (getLeftResultType): added new type flow for array indices, patch
6870         provided by Stas, see FR #877103
6871         (decorateType): SDCC_NEWTYPEFLOW removed, new type flow is now standard;
6872         array index patch by Stas
6873         * src/SDCCast.h: added prototype getResultTypeFromType()
6874         * src/SDCCval.h,
6875         * src/SDCCval.c (resolveIvalSym) (resolveIvalSym),
6876         * src/pic/glue.c (pic14emitStaticSeg),
6877         * src/pic16/glue.c (pic16emitStaticSeg),
6878         * src/SDCCglue.c (emitRegularMap) (emitStaticSeg): added new type flow
6879         for initialization of symbols
6880         * src/SDCCicode.c (geniCodeArray): removed warning W_ARRAY_BOUND
6881         * support/Util/SDCCerr.h:
6882         * support/Util/SDCCerr.c: replaced W_ARRAY_BOUND by W_IDX_OUT_OF_BOUNDS
6883         * .version: bumped version number to 2.3.8
6884         * device/include/Makefile.in (install),
6885         * doc/Makefile (install): changed to 'rm `find ...`' construct to
6886         avoid warnings
6887
6888 2004-01-30 Bernhard Held <bernhard AT bernhardheld.de>
6889
6890         * support/regression/tests/libmullong.c: fixed for 64 bit hosts
6891         Slade Rich fixed an optimization bug
6892         * src/pic/pcodepeep.c,
6893         * src/pic/pcoderegs.c
6894         * doc/Makefile (install): added test for directory
6895
6896 2004-01-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6897
6898         * src/mcs51/ralloc.c (getRegPtr, getRegGpr),
6899         * src/ds390/ralloc.c (getRegPtr, getRegGpr),
6900         * src/pic/ralloc.c (getRegPtr, getRegGpr),
6901         * src/pic16/ralloc.c (getRegPtr, getRegGpr),
6902         * src/z80/ralloc.c (getRegGpr): fixed bug #883361
6903         * as/mcs51/asexpr.c (term),
6904         * as/hc08/asexpr.c (term): fixed bug #887146
6905
6906 2004-01-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6907
6908         * src/z80/gen.c (genMult): handle single byte result product
6909         * src/SDCCopt.c (killDeadCode): never convert ADDRESS_OF iCode to
6910         DUMMY_READ_VOLATILE (fixed bug #886367)
6911
6912 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6913
6914         * support/regression/tests/libmullong.c: fixed logic, on little endian
6915         hosts we ended without a mullong_wrapper()
6916
6917 2004-01-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6918
6919         * ChangeLog: changed "@" to " AT " in hopes of reducing spam and
6920         virus/worm forged address usage.
6921
6922 2004-01-27 Bernhard Held <bernhard AT bernhardheld.de>
6923
6924         Fixed promotion, it should be done on AST level:
6925         * src/SDCCast.c (addCast): added promotion to int
6926         (decorateType): updated call to upCast()
6927         * src/SDCCicode.c (geniCodeLeftShift): removed call to
6928         usualUnaryConversions()
6929
6930 2004-01-26  Michael Hope  <michaelh AT juju.net.nz>
6931
6932         * support/regression/tests/literalop.c (mulWrapper): Added a
6933         wrapper to remove integer overflow warnings.
6934
6935         * support/regression/tests/float_trans.c: Made work on host.
6936
6937         * support/regression/ports/ucz80/spec.mk (UCZ80): Made detect the
6938         location of sz80.
6939
6940         * support/regression/generate-cases.py (main): Changed from inline
6941         to a main method.
6942
6943         * doc/Makefile (install): Changed to depth first to get rid of
6944         missing directory install warning.
6945
6946         * as/Makefile (install-doc): Made work on Mac.
6947
6948 2004-01-25 Bernhard Held <bernhard AT bernhardheld.de>
6949
6950         * src/SDCCast.c: added an additional type flow in decorateType() of
6951         opposite direction, see feature request #860006; it's enabled at runtime
6952         by setting the environment variable SDCC_NEWTYPEFLOW
6953         * src/SDCCast.h: changed prototype of decorateType()
6954         * src/SDCCglue.c (emitRegularMap): updated call of decorateType()
6955         * src/SDCCicode.c (geniCodeDivision) (geniCodeModulus): promotion from
6956         'char' to 'int' can be omitted, if both operands are 'unsigned char';
6957         see feature request #877103
6958         * src/SDCCval.c: updated call of decorateType()
6959         (valBitwise): fixed bug #882876
6960         (valMinus): added promotion
6961         (valLogicAndOr): result is unsigned
6962         (cheapestVal) (constVal): literals from 0...255 are 'unsigned char' now
6963         * src/SDCCsymt.c (computeType),
6964         * src/mcs51/gen.c (genCmpGt) (genCmpLt): literal 'unsigned char'
6965         must not cause an unsigned operation
6966         * src/pic/glue (pic14emitRegularMap),
6967         * src/pic16/glue.c (pic16emitRegularMap): updated call of decorateType()
6968
6969 2004-01-23 Bernhard Held <bernhard AT bernhardheld.de>
6970
6971         * src/pic/pcode.c (PCodeID): commented out left over debug code
6972
6973 2004-01-20 Bernhard Held <bernhard AT bernhardheld.de>
6974
6975         * support/valdiag/tests/overflow.c: added shift tests
6976         * src/pic/device.c,
6977         * src/pic/gen.c,
6978         * src/pic/gen.h,
6979         * src/pic/glue.c,
6980         * src/pic/main.c,
6981         * src/pic/pcode.c,
6982         * src/pic/pcode.h,
6983         * src/pic/pcodepeep.c,
6984         * src/pic/pcoderegs.c,
6985         * src/pic/ralloc.c,
6986         * src/pic/ralloc.h: applied patch from Slade Rich;
6987         added support for multiple code pages and multiple RAM banks on the
6988         PIC 14 port. The ASM files now no longer simply assume all the
6989         code / RAM are in the same page / bank. This means the linker can
6990         safely allocate code/RAM of separate ASM files to different pages/banks.
6991         * doc/sdccman.lyx: added Slade's tips
6992         * src/mcs51/peeph.def: fixed bug #880768
6993
6994 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
6995
6996         * src/hc08/ralloc.c (rematStr): fixed bug #879282
6997         * src/SDCCast.c (decorateType): fixed bug #880197
6998
6999 2004-01-20  Michael Hope  <michaelh AT juju.net.nz>
7000
7001         * sim/ucsim/gui.src/serio.src/main.cc: Fixed unconditional use of
7002         getopt.h.
7003
7004         * debugger/mcs51/cmd.c (getValBasic): Changed strtof to strtod as
7005         strtof is not part of C89 and isn't included with Mac OS X.
7006
7007 2004-01-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7008
7009         * src/hc08/gen.c (genPlusIncr, genUminus, genMinusDec, genCmp,
7010         shiftL2Left2Result): fixed bug #879326
7011         (genAnd, genOr, genXor): fixed bug when result was of type AOP_CRY
7012         (genMultOneByte): fixed bug in signed vs unsigned multiplication
7013         * sim/ucsim/hc08.src/inst.cc (inst_clr): added missing effective
7014         address fetch for clr instruction
7015         * device/lib/hc08/_mulint.c: created optimized assembly version
7016         * src/SDCCdflow.c (computeDataFlow): fixed bug #878209
7017
7018 2004-01-19 Bernhard Held <bernhard AT bernhardheld.de>
7019
7020         * src/SDCCicode.c (geniCodeArray): applied patch from Stas Sergeev
7021         proposed in FR #877103
7022
7023 2004-01-18 Bernhard Held <bernhard AT bernhardheld.de>
7024
7025         * src/SDCCval.c (cheapestVal): added missing checks
7026         * src/SDCCicode.c (usualBinaryConversions): fixed condition
7027         * src/SDCCicode.c (geniCodeAdd): fixed part of bug #877103
7028
7029 2004-01-16 Klaus Flittner <klaus_flittner AT gmx.de>
7030
7031         * src/ds390/gen.c (aopOp3): fixed the assignment of different dptrs to
7032         equal operands
7033
7034 2004-01-16 Vangelis Rokas <vrokas AT otenet.gr>
7035
7036         * src/SDCCmain.c (linkEdit): variable $3 of the linker command is
7037         loaded with the linker search paths (-L arguments) and the libraries
7038         to be linked with the current source (-l arguments). Changes
7039         currently will affect only the pic16 port.
7040         * src/pic16/main.c (_pic16_finaliseOptions): add to the linker
7041         include path the port specific paths and port specific libraries,
7042         * gplink command now contains the $3 argument,
7043         * src/pic16/device.h,
7044         * src/pic16/device.c,: structure PIC_device is made public and
7045         renamed to PIC16_device, the same for variable Pics which is renamed
7046         to Pics16. Updated all references to them.
7047         * src/pic16/glue.c (pic16glue): corrected bug with code
7048         initialization which bypassed the variable initializations block.
7049
7050         * device/lib/pic16/Makefile.rules: removed --penable-stack from
7051         COMPILE_FLAGS and added the --nostdinc option
7052
7053 2004-01-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7054
7055         * device/include/mc68hc908jb8.h: Register defs for another member
7056         of the hc08 family. Contributed by Bjorn Bringert - thanks!
7057
7058 2004-01-14 Vangelis Rokas <vrokas AT otenet.gr>
7059
7060         Documenting changes from previous commits.
7061         * configure.in (version 1.56),
7062         * configure: initially I've added AC_CONFIG_SUBDIRS(device/lib/pic16)
7063         when generating output files to configure the pic16 library,
7064         but now I've commented it out, since gputils aren't installed in the
7065         SF compile farm, so library won't compile
7066
7067         * device/lib/Makefile.in (version 1.56): initially I've added in
7068         target 'all' the prerequestive 'model-pic16' so it compiled the
7069         pic16 library, but now I've commented it out for the same reasons
7070         above,
7071         * added targets 'model-pic16' and 'objects-pic16' to compile the
7072         library
7073         * added target 'port-specific-objects-pic16' to handle the
7074         generated libraries and copy them into the build/ directory
7075         * added target 'clean-intermediate-pic16' to clean intermediate
7076         files into pic16 directory
7077         * in target 'installdirs' added line to create directory pic16 in
7078         the installation path
7079
7080         * device/include/Makefile.in (version 1.11): in target 'install'
7081         added lines to copy all header files to installation path,
7082         * in target 'installdirs' added line create directory for pic16
7083         headers in the installation path
7084
7085 2004-01-13 Klaus Flittner <klaus_flittner AT gmx.de>
7086
7087         * src/ds390/gen.c (genCall): fixed a double use of acc and b after
7088          a function call
7089
7090 2004-01-13 Bernhard Held <bernhard AT bernhardheld.de>
7091
7092         * configure,
7093         * device/lib/configure.in,
7094         * device/lib/configure: fixed for autoconf 2.57
7095
7096 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7097
7098         * src/z80/main.c (_parseOptions): fixed the portmode= command line
7099         option so that it actually works. Made it specific to the z80, since
7100         the gbz80 doesn't have these kinds of I/O ports.
7101
7102 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7103
7104         * device/include/z180.h,
7105         * device/lib/_memcpy.c,
7106         * device/lib/_memmove.c,
7107         * device/lib/_mulint.c,
7108         * device/lib/ser_ir.c,
7109         * device/lib/ser_ir_cts_rts.c,
7110         * device/lib/_strcmp.c,
7111         * device/lib/_strtok.c: fixed pragmas to non-deprecated form
7112         * src/z80/main.c (_process_pragma): add support for pragmas bank and
7113         portmode; added deprecation warning for bank= and protmode= forms.
7114         Also, guard against buffer overflow.
7115         * src/z80/gen.c (aopGet): generate better code for sfr banked read
7116
7117 2004-01-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7118
7119         * src/hc08/main.c (_hc08_genAssemblerPreamble): fixed bug #875487. Also
7120         changed interrupt vector table generation to only emit declared vectors.
7121         * device/include/Makefile.in: added missing backslash
7122         * device/lib/pic16/Makefile.rules: add $(MODELFLAGS) to $(CFLAGS)
7123
7124 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7125
7126         Mainly changes to support compilation of the device libraries
7127         * src/pic16/device.c: stack is allocated via symbol and not
7128         via literal number. The symbol is placed in the corresponding
7129         position of the data ram
7130         * (pic16_dump_section): relocatable and absolute uninitialized
7131         data are now emitted in sorted order to reduce section naming,
7132         * src/pic16/ralloc.c (newReg): fixed bug with SFR's that
7133         weren't marked as being in the access bank,
7134
7135 2004-01-13 Vangelis Rokas <vrokas AT otenet.gr>
7136
7137         Added portion of GNU PIC Library under the directory
7138         device/include/pic16 and device/lib/pic16. These files
7139         contain the declarations of SFRs for the PIC18Fxx2 devices.
7140         The directory is initialized via configure from toplevel.
7141
7142 2004-01-12 Klaus Flittner <klaus_flittner AT gmx.de>
7143
7144         * src/ds390/gen.c (operandsEqu): fixed a little typo, that prevented
7145         the spilllocations to be compared correctly
7146
7147 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7148
7149         * src/SDCCast.c (decorateType): fixed bug introduced today
7150
7151 2004-01-12  Borut Razem <borut.razem AT siol.net>
7152
7153         * src/SDCC.lex, support/Util/SDCCerr.h, support/Util/SDCCerr.c,
7154         doc/sdccman.lyx: upper case pragmas are deprecated
7155
7156 2004-01-12 Bernhard Held <bernhard AT bernhardheld.de>
7157
7158         * src/SDCCast.c (decorateType): replacing 'ul > 0' by  '!ul' results
7159         in simpler and even better code
7160
7161 2004-01-11 Bernhard Held <bernhard AT bernhardheld.de>
7162
7163         * src/SDCCicode.c (operandOperation): fixed bug #874819
7164         * src/SDCCast.c (decorateType): fixed
7165         char foo (unsigned long ul) { return ul > 0; }
7166
7167 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7168
7169         * doc/sdccman.lyx: Moved and added some sections, small changes
7170         all over. Telling LaTeX to be less strict with word spacing
7171         to better keep the right margin. Changed some notes about
7172         maintainance of the ports in section 3.2.1 - is it OK like this?
7173
7174 2004-01-11 Vangelis Rokas <vrokas AT otenet.gr>
7175
7176         SDCC source changes:
7177         * src/SDCCopt.c (cntToFcall, cnvToFloatCast, cnvFromFloatCast,
7178         convilong): modified to inform the pic16 port that builtin functions
7179         are external
7180
7181         PIC16 PORT specific changes:
7182         * src/pic16/device.c pic16_dump_equates() added,
7183         processor registers declared internally by the port are emitted in
7184         the translation as equates,
7185         * src/pic16/gen.c: inline code is passed unprocessed to the
7186         translation,
7187         * (pic16_popGetLit2): fnuction modified to take second operand as
7188         pCodeOp pointer and not as literal,
7189         * (popRegFromIdx): prefixed with pic16_,
7190         * (pic16_popCombine2): modified to receive already allocated pCode
7191         operands,
7192         * (pic16_pushpCodeOpReg, pic16_poppCodeOpReg): added
7193         * (genFunction): initializes local stack frame and pushes on stack
7194         all the registers used by this function,
7195         * (genEndFunction): restores all registers from stack and restores
7196         stack frame,
7197         * src/pic16/glue.c (pic16emitRegularMap): various changes and
7198         improvements,
7199         * (pic16glue): changed the program startup sequence,
7200         * added new dbName code 'A' for functions placed in absolute section
7201         * src/pic16/main.c: added function attribute _naked,
7202         * added pragma 'code' to place a fnuction at an absolute address,
7203         * added command line arguments --debug-ralloc and --pcode-verbose,
7204         * (_pic16_finiliseOptions): options.all_callee_saves is set by default
7205         * src/pic16/pcode.c (pic16_pBlockConvert2Absolute) added,
7206         * (pic16_newpCodeOpLit2): modified to take the second operand as
7207         pCodeOp pointer,
7208         * (pic16_printpBlock): modified to emit each function in a separate
7209         section,
7210         * (pic16_get_op): modified to use the gpasm modifiers LOW,HIGH and
7211         UPPER for immediate operands,
7212         * src/pic16/pcodepeeph.c: added peephole support for the LFSR
7213         instruction,
7214         * src/pic16/peeph.def: all peepholes with movff are commented out,
7215         because there is a problem in the pcode peep optimizer,
7216         * src/pic16/ralloc.c: the register allocator can now reuse local
7217         function symbols for another function. This saves register usage.
7218         * src/pic16/ralloc.h: added flag isLocal in structure regs,
7219
7220         Added file src/pic16/NOTES with information about program writing on
7221         the current port version.
7222
7223 2004-01-11 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7224
7225         * src/mcs51/peephole.def: added peepholes 177.c,d (redundant moves)
7226         and peephole 252 (array access)
7227
7228 2004-01-09  Borut Razem <borut.razem AT siol.net>
7229
7230         * src/SDCCmain.c : fixed #872250: -l command line defined library
7231           files are scanned before standard library files
7232
7233 2004-01-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7234
7235         * src/SDCCast.c (decorateType): fixed bug #874046
7236
7237 2004-01-09  Borut Razem <borut.razem AT siol.net>
7238
7239         * support/scripts/sdcc.nsi: remove previous installation
7240
7241 2004-01-09 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7242
7243         * src/SDCCglue.c (createInterruptVect): don't append 7(5) padding
7244         bytes for last interrupt vector (mcs51)
7245         * sdcc.spec: fixed typo
7246
7247 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7248
7249         * src/mcs51/gen.c (genFunction, genEndFunction, genReceive, getTempRegs,
7250         gen51Code): more efficient parameter receive for --model-large
7251         ("bug" #845294)
7252
7253 2004-01-09 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7254
7255         * src/ds390/main.c,
7256         * src/z80/main.c: added missed needLinkerScript flags (more than
7257         one port structure defined in these file)
7258         * src/ds390/gen.c (aopForSym, aopOp, operandsEqu, aopOp3): fixed
7259         bug #795325
7260
7261 2004-01-08 Vangelis Rokas <vrokas AT otenet.gr>
7262
7263         * src/SDCCmain.c: removed various references to DEFAULT_PORT
7264         * src/port.h: added flag needLinkerScript in port->linker
7265         structure to inform whether to create a .lnk file or not,
7266         * src/avr/main.c,
7267         * src/ds390/main.c,
7268         * src/hc08/main.c,
7269         * src/mcs51/main.c,
7270         * src/pic/main.c,
7271         * src/pic16/main.c,
7272         * src/xa51/main.c,
7273         * src/z80/main.c: changed appropriately to configure
7274         needLinkerScript flag
7275         * src/pic/gen.c,
7276         * src/pic16/gen.c (genAddrOf): fixed bug #863624
7277         * src/pic/glue.c: added variable udata_section_name to
7278         override default uninitialized data segment definition for
7279         devices only with SHAREBANK memory (reported from Erik Epetrich)
7280         * (pic14emitOverlay): modified to emit a commented overlay segment
7281         directive when no overlay data exist
7282         * (picglue): modified to emit uninitialized data segment
7283         according to udata_section_name
7284         * src/pic/main.c (_pic14_parseOptions): added command line
7285         options --udata-section-name=[name] to override default
7286         udata definition name
7287         * modified _linkCmd and _asmCmd to include compiler passed
7288         arguments via -W option
7289         * src/pic16/main.c: added $l in _asmCmd, changed extension for
7290         object file from '.rel' to '.o' in port->linker structure,
7291         changed size of fptr from 2 to 3 in port structure
7292
7293 2004-01-07  Borut Razem <borut.razem AT siol.net>
7294
7295         * support/scripts/sdcc.nsi: update PATH
7296         * support/scripts/sdcc.ico: craeted
7297
7298 2004-01-07 Bernhard Held <bernhard AT bernhardheld.de>
7299
7300         * device/include/Makefile.in: fix install
7301         * doc/Makefile: fix install
7302
7303 2004-01-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7304
7305         * src/SDCCsymt.c (processFuncArgs): fixed superflous allocation noted
7306         in bug #860505
7307         * src/SDCCmem.c (printAllocInfoSeg, printAllocInfo): minor changes to
7308         how the function variable allocation summary is displayed; also
7309         include information about variables allocated to the overlay
7310         segment
7311
7312 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7313
7314         * as/mcs51/lkmain.c: Help about -Y option
7315         * as/mcs51/lkarea.c: Fixed gcc warnings
7316
7317 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7318
7319         * src/SDCCval.c (valShift): changed from 16 to 32 bit shift count,
7320         fixed warning
7321         * support/valdiag/tests/overflow.c: added
7322         * src/SDCCast.c (decorateType),
7323         * src/SDCCicode.c (geniCodeLeftShift): added promotion to int for
7324         LEFT_OP (left shift)
7325
7326 2004-01-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7327
7328         * as/mcs51/lkmain.c: stack must be after data when option -Y is not used
7329         (default behaviour).
7330
7331 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7332
7333         A python script to validate compiler diagnostic messages. It can be
7334         used to verify that sdcc complains about bad c source code and
7335         gives a good location of the error.
7336         * support/valdiag/Makefile,
7337         * support/valdiag/valdiag.py,
7338         * support/valdiag/tests/*
7339
7340 2004-01-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7341
7342         * src/SDCC.y (enum_specifier, enumerator_list, opt_assign_expr),
7343         * src/SDCCsymt.c (newEnumType),
7344         * src/SDCCsymt.h
7345         * support/Util/SDCCerr.c,
7346         * support/Util/SDCCerr.h: fixed bug #871258 and some other unreported
7347         enum related bugs.
7348         * support/regression/tests/enum.c: added test for enum values that
7349         require at least 2 bytes of storage.
7350
7351 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7352
7353         * src/common.h: added ifndef/define/endif macros
7354         around the header file.
7355         Bug reported from Jesus Calvino-Fraga
7356
7357 2004-01-06 Bernhard Held <bernhard AT bernhardheld.de>
7358
7359         * sdcc.spec: updated
7360         * device/include/Makefile.in: don't install CVS directories
7361         * device/lib/Makefile.in: added removal of CVS directories after install
7362         * doc/Makefile: fixed install, added local_icons
7363         * sim/ucsim/gui.src/Makefile.in: fixed an old typo
7364         * src/mcs51/gen.c (genRightShift): fixed bug #870788
7365         * src/ds390/gen.c (genRightShift): fixed bug #870788
7366         * src/SDCCast.c (decorateType): fixed bug #870781
7367
7368 2004-01-06 Vangelis Rokas <vrokas AT otenet.gr>
7369
7370         PIC16 port related changes:
7371         * device.c: removed pic16_finalMapping and pic16_finalMappingSize,
7372         added variable stackPos,
7373
7374         * gen.c: genCall, assignResultValue: added support for
7375         pushing/retrieving function parameters to/from stack,
7376         genFunction,genEndFunction: setup stack frame for the
7377         generated function,
7378         genAddrOf: will be changed according to bug 863624
7379
7380         * added files genutils.c and genutils.h which contain gen*
7381         debugged and optimised functions extracted from gen.c
7382
7383         * glue.c: added variable 'externs' which holds extern symbols,
7384         pic16emitRegularMap: is modified to properly handle relocatable
7385          symbols under the new scheme,
7386         pic16createInterruptVect: is modified
7387         pic16printPublics: is modified to emit 'global' assembler directives,
7388         added pic16_printExterns to print extern symbols,
7389         pic16glue: initializes stack/frame pointer in the beginning of
7390         the assembly output. Temporary hack, will be corrected later,
7391         because gplink yet does not support stack and SDCC does not
7392         yet support a type of crt0.o object to create the final binary.
7393
7394         * Removed many lines that contain 8051 legacy code.
7395         * The code is finally placed under a 'code' directive.
7396         * Added port specific options.
7397
7398         * _process_pragma: simplified since now we do not need *special*
7399         include file to define SFR registers. But a separate header
7400         will be needed. This will be developed later.
7401         * _pic16_parseOptions: added, parses port specific options:
7402         --pgen-banksel, --obanksel=, --pomit-config-words, --pomit-ivt,
7403         --pleave-reset-vector, --penable-stack, --pstack-model, --debug-xtra
7404         --preplace-udata-with=
7405
7406         * _pic16_setDefaultOptions: modified to initialize section names,
7407         but hack is temporarly out of order since it needs improvement.
7408         * _pic16_genAssemblerPreamble: configuration words are emitted by
7409         their address instead of their name. This part is incomplete and
7410         supports only the 18Fxx2 devices. Other devices will emit an error
7411         during assembly since they do not contain the same set of config
7412         registers
7413         * _pic16_genIVT: is modified,
7414
7415         * pcode.c: added definitions for some hardware registers that are needed
7416         for stack support
7417         * added flag is2LitOp and variable pci_magic in pCodeInstruction.
7418         All PCI entries are updated. Now LFSR is supported.
7419         * Removed pic16_pciTRIS is mentioned by mdubuc in source
7420         * added pic16_newpCodeOpLit2 to support instructions with
7421         two literal arguments
7422         * pic16_pCode2str: corrected code that emits assembler instructions
7423         with two literal operands and those that have an access bit modifier
7424         * genericPrint: now PC_ASMDIR pCodes, can emit a label if it exists,
7425         this fixes a bug which caused some labels to be lost, when an
7426         assembler directive was added, i.e. banksel,
7427         * pic16_FixRegisterBanking: improved logic that causes the insertion
7428         of bank switching,
7429         * InlineFunction: functions that are called once, are not any more
7430         inlined. This can be a port option in the future,
7431
7432         * pcode.h: added pCodeOpLit2 and added variable label in pCodeAsmDir
7433
7434         * ralloc.c: added pic16_rel_udata and pic16_fix_udata variables which
7435         hold the corresponding uninitialized symbols,
7436         * pic16_allocProcessorRegister: registers have explicit marked the
7437         accessBank field,
7438         * pic16_allocInternalRegister: registers are explicit marked as
7439         not used,
7440         * pic16_writeUsedRegs: pic16_dynDirectBitRegs was missing from the
7441         processing list, so bit registers were lost,
7442         *
7443
7444         * ralloc.h: added field 'accessBank' and original symbol operand
7445         in register definition,
7446         * removed the field isMapped from register definition,
7447
7448         ** Several functions have been removed from various sources:
7449         BanksUsedFlow2,BanksUsedFlow,FixBankFlow,InstructionRegBank,
7450         pic16_addMemRange,pic16_isREGinBank,pic16_dump_map,pic16_dump_cblock
7451         isSFR,validAddress,mapRegister,assignRegister,pic16_assignFixedRegisters
7452         pic16_assignRelocatableRegisters
7453
7454         ** others have been introduced:
7455         pic16_areRegsSame,pic16_dump_section,checkAddReg,pic16_groupRegistersInSection
7456         pic16_popGetLit2,pic16_popCombine2,pushw,pushaop
7457
7458 2004-01-05 Vangelis Rokas <vrokas AT otenet.gr>
7459
7460         * support/scripts/inc2h.pl: changed definition of BIT_AT
7461         to emit 'sbit at' instead of 'bit at'. This was a request.
7462
7463         PIC16 port related preliminary changes:
7464         * gen.c: prefixed function popRegFromString with
7465         pic16_ and all references to it corrected
7466         * pcode.c: all pic16_pc_* hardware registers prefixed
7467         with underscore (_),
7468         pic16_popCopyGPR2Bit(): function sets register wasUsed=1
7469         * ralloc.c: newReg(): when register is REG_SFR then
7470         set address to rIdx,
7471         pic16_allocProcessorRegister(): marks register wasUsed=0
7472         pic16_writeUsedRegs(): added a call to assign processor
7473         registers via pic16_assignFixedRegisters
7474
7475 2004-01-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7476
7477         * as/mcs51/aslink.h, as/mcs51/lkarea.c, as/mcs51/lkdata.c,
7478         as/mcs51/lkmain.c, as/mcs51/lkmem.c: 8051 linker can now pack
7479         variables in unused register banks.  Also the SSEG is placed
7480         wherever there is enough space for it, and IDATA can be anywhere
7481         in internal RAM.  For now compile using -Wl-Y[stack_size].
7482         The mem file is different for this option as well, since it
7483         makes no sense of talking about DSEG lenght.
7484
7485 2004-01-02 Vangelis Rokas <vrokas AT otenet.gr>
7486
7487         * src/SDCClrange.c: fixed bug 869095 that caused segfault
7488         in certain cases, e.g. when ROM assignment, patch provided
7489         from Albert den Haan.
7490
7491 2004-01-01 Bernhard Held <bernhard AT bernhardheld.de>
7492
7493         Many signedness and type propagation fixes:
7494         * src/SDCCicode.c: made geniCodeCast() static
7495         replaced SPEC_ by IS_ (cosmetic)
7496         (operandOperation): fixed div and mod operation
7497         (usualBinaryConversions): added support for promotion of char
7498         (geniCodeMultiply): replaced (unsigned long) by (TYPE_UDWORD)
7499         (geniCodeDivision): replaced (unsigned long) by (TYPE_UDWORD)
7500         (geniCodeAdd): an array index will stay unsigned, even if promoted
7501         from char to int
7502         (geniCodeArray): ditto
7503         * src/SDCCicode.h: made geniCodeCast() static: removed prototype
7504         * src/SDCCsymt.c (computeType): added more support for char;
7505         promotion of char is selectable by promoteCharToInt, fixed signedness
7506         for all cases
7507         (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7508         * src/SDCCsymt.h (powof2): replaced (unsigned long) by (TYPE_UDWORD)
7509         * src/SDCCval (val*): replaced signedness calculation by
7510         computeType()
7511         rearranged if-branches (cosmetic)
7512         (valShift): added warning W_SHIFT_CHANGED
7513         (valCompare): fixed problem with different types
7514         * src/hc08/rallo.c (leastUsedLR): fixed gcc 3.3 warning
7515         * support/regression/tests/literalop.c: added many cases
7516         * support/regression/tests/ast_constant_folding.c: changed finally to
7517         'unsigned int'
7518         * .version: new year, new version: 2.3.7
7519         * src/SDCCmain.c (main): applied patch #866468
7520         * debugger/mcs51/sdcdb.c (parseCmdLine): added -k for ucsim, patch
7521         provided by Scott Bronson
7522         * doc/sdccman.lyx: updated documentation for sdcdb
7523         updated and added chapter tips
7524
7525 2004-01-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7526
7527         * src/SDCCsymt.h: missing from yesterday's commits
7528
7529 2003-12-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7530
7531         * src/SDCC.y (struct_or_union_specifier),
7532         * support/Util/SDCCerr.c,
7533         * support/Util/SDCCerr.h: verify that struct & union tags are used
7534         as declared.
7535
7536 2003-12-29 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7537
7538         * src/SDCCglobl.h: missing from yesterday's commits
7539
7540 2003-12-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7541
7542         * src/SDCC.y (external_definition, type_specifier2, sfr_reg_bit,
7543         sft_attributes, struct_declaration, parameter_declaration,
7544         type_name, start_block, declaration_list),
7545         * src/SDCC.lex (check_type): support redefinition of typedef names
7546
7547 2003-12-22 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7548
7549         * src/mcs51/gen.c (genPlus): added special handling for 256 byte
7550         aligned xdata arrays. Erik helped me with the if clause.
7551
7552 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7553
7554         * device/lib/ds390/tinibios.c (CpuSpeed): suppress unreachable code
7555         warning
7556
7557 2003-12-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7558
7559         * src/SDCCast.h,
7560         * src/SDCCast.c (newAst_),
7561         * src/SDCCicode.h,
7562         * src/SDCCicode.c (ast2iCode, newiCode),
7563         * src/SDCCglobl.h,
7564         * src/SDCC.y (logical_and_expr, logical_or_expr, conditional_expr,
7565         expr, statement, expression_statement, selection_statement,
7566         iteration_statement, expr_opt, jump_statement): foundation for tracking
7567         sequence points
7568         * src/SDCCopt.c (killDeadCode): fixed bug #861580 (needs the sequence
7569         point code too)
7570
7571 2003-12-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7572
7573         * support/Util/SDCCerr.c,
7574         * src/SDCCast.h,
7575         * src/SDCCast.c (createCase, createDefault, decorateType),
7576         * src/SDCClabel.c (labelUnreach),
7577         * src/SDCC.y (labeled_statement, jump_statement): More improvements
7578         to error messages.
7579         * support/Util/SDCCerr.c (werrorfl): fixed a non-standard declaration
7580         (with thanks to Stas Sergeev)
7581         * device/include/time.h,
7582         * device/lib/time.c (CheckTime): suppress unreachable code warning
7583
7584 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7585
7586         * src/SDCCast.c (createIvalCharPtr),
7587         * src/SDCCglue.c (printChar): fixed bug #862241 (an error in my fix for
7588         bug #753752)
7589         * support/regression/tests/nullstring.c: tests for these two bugs
7590
7591 2003-12-18 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7592
7593         * support/Util/SDCCerr.h,
7594         * support/Util/SDCCerr.c (E_NOT_ALLOWED),
7595         * src/SDCC.y (struct_declaration, struct_or_union_specifier): complain
7596         about storage class and 'at' used inside struct or union
7597         * src/SDCCBBlock.c (iCodeFromeBBlock),
7598         * src/SDCCcse.c (ifxOptimize),
7599         * src/SDCCglue.c (emitRegularMap, initPointer, printIvalStruct,
7600         printIvalArray, printiValFuncPtr, printIvalCharPtr, printIvalPtr,
7601         printIval, emitStaticSeg, emitOverlay),
7602         * src/SDCClabel.c (deleteIfx),
7603         * src/SDCCopt.c (replaceRegEqv, eBBlockFromiCode),
7604         * src/SDCCast.c (resolveSymbols, createIvalStruct, createIvalArray,
7605         gatherAutoInit, processParms),
7606         * support/Util/SDCCerr.h,
7607         * support/Util/SDCCerr.c (werrorfl): Support for better error location
7608         reporting for post-parse errors.
7609
7610 2003-12-16 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7611
7612         * src/SDCCval.c (valPlus, valMinus, valShift): fixed some problems with
7613         implicit casts via union; they don't work on big endian systems
7614         (possible fix for bug #861138)
7615
7616 2003-12-16 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7617
7618         (committed by Erik Petrich <epetrich AT ivorytower.norman.ok.us> on Frieder's behalf)
7619         * src/mcs51/main.c: fixed the fix for bug #737001
7620
7621 2003-12-15  Borut Razem <borut.razem AT siol.net>
7622
7623         * support/scripts/sdcc.nsi: updated for NSIS 2.0 beta 4
7624
7625 2003-12-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7626
7627         * support/makebin/makebin.c: put output in binary mode
7628
7629 2003-12-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7630
7631         * src/mcs51/main.c: fixed bug #737001 for the mcs51. SDCC clears
7632         xdata and data memory on startup. Set the environment variable
7633         SDCC_NOGENRAMCLEAR to disable this.
7634         * src/mcs51/peephole.def,
7635         * src/ds390/peephole.def: using the atomic test and clear instruction jbc
7636         (allows non-interrupt and interrupt code to safely compete for a resource
7637         without the non-interrupt code having to disable interrupts)
7638
7639 2003-12-13 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7640
7641         * src/SDCCicode.c (geniCodeAdd),
7642         * src/SDCCast.c (decorateType): fixed bug #857753 (need to be careful
7643         with valFromType if type might be a pointer and host is big endian).
7644         * src/SDCCast.c (decorateType): unary plus compatible with all arithmetic
7645         types, not just integer types.
7646         * src/SDCCsymt.c (addSymChain): clarified error message when symbol is
7647         multiply defined with mismatching "at" address.
7648
7649 2003-12-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7650
7651         * src/ds390/main.c (PORT tininative_port): fixed bug #858416
7652         * src/SDCCglue.c (printChar, printIvalChar, emitStaticSeg),
7653         * src/SDCCast.c (createIvalCharPtr, stringToSymbol): handle strings
7654         with embedded nulls (fixed bug #753752)
7655
7656 2003-12-12 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7657
7658         * src/mcs51/main.c(_mcs51_genRAMCLEAR): using r0 instead of r1/r2.
7659         Apparently this did not see much testing (endless loop)
7660
7661 2003-12-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7662
7663         * src/z80/ralloc.c: set DISABLE_PACK_HL = 1 as a temporary fix to bug #855165
7664
7665 2003-12-10 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7666
7667         * src/SDCCdebug.c (outputDebugSymbols, outputDebugStackSymbols, dumpSymInfo):
7668         gracefully handle NULL memmap pointers
7669
7670 2003-12-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7671
7672         * src/SDCCopt.c (killDeadCode): change iCode type to DUMMY_READ_VOLATILE
7673         instead of deleting the iCode when an operand is volatile
7674         * src/z80/gen.c (genDummyRead),
7675         * src/mcs51/gen.c (genDummyRead),
7676         * src/ds390/gen.c (genDummyRead),
7677         * src/hc08/gen.c (genDummyRead): handle operands in IC_LEFT and/or IC_RIGHT,
7678         not just IC_RIGHT
7679         * src/SDCCicode.c (geniCodeCall): fixed bug #851607
7680         * src/SDCC.y: fixed bug #850420
7681
7682 2003-12-05 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7683
7684         Applied z80 i/o port patch from Peter Townson and fixed some operators
7685         to better handle operands in A register.
7686         * device/include/z180.h
7687         * src/SDCC.y
7688         * src/SDCCglue.c
7689         * src/z80/gen.c
7690         * src/z80/gen.h
7691         * src/z80/main.c
7692         * src/z80/peeph-z80.def
7693         * src/z80/peeph.def
7694         * src/z80/z80.h
7695
7696 2003-12-03 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7697
7698         * src/SDCCsymt.c (addSymChain, compareTypeExact): fixed bug #838241 again
7699
7700 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7701
7702         * device/lib/hc08/_mullong.c: Removed extra #endif
7703
7704 2003-12-01 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7705
7706         * sim/ucsim/hc08.src/inst.cc,
7707         * sim/ucsim/hc08.src/hc08mac.h: fixed some problems with CC flag bits and
7708         carries from x to h
7709         * src/hc08/gen.c (aopAdrStr): fixed problem with 16 bit immediate
7710         * src/hc08/gen.c (XAccRsh): fixed problem with right shift
7711         * device/include/stdarg.h: fixed varargs for hc08
7712         * device/lib/Makefile.in,
7713         * device/lib/hc08/Makefile,
7714         * device/lib/hc08/_mulint.c,
7715         * device/lib/hc08/_mullong.c: fixed some endian problems
7716
7717 2003-11-28 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7718
7719         * sdcc/src/mcs51/gen.c (genMultOneByte): help peephole 105
7720         * sdcc/src/mcs51/peeph.def: added peephole 186.e array access in code space
7721         * device/lib/_gptrget.c,
7722         * device/lib/_gptrput.c: P2 not used any more (related to #850747, #785979)
7723
7724 2003-11-27 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7725
7726         * src/SDCClrange.c (findNextUseSym, rlivePoint): fixed bug #849795
7727         * src/SDCCast.c (astErrors): fixed bug #846007
7728         * src/SDCCsymt.c (checkFunction): fixed follow-up bug on bug #846007
7729
7730 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7731
7732         * src/SDCCast.c (decorateType): disabled a transformation I added in
7733         revision 1.188 (access to fields of a structure at an absolute address);
7734         it breaks with bitfields, extern declarations, and gcse analysis.
7735         * src/SDCCopt.c (isLocalWithoutDef): if ADDRESS_OF applied to a symbol, it
7736         could be assigned through a pointer, so don't complain.
7737         * src/SDCCast.c (astErrors),
7738         * src/SDCCast.h,
7739         * src/SDCCglue.c (emitRegularMap): fixed bug #847813
7740
7741 2003-11-26 Vangelis Rokas <vrokas AT otenet.gr>
7742
7743         * src/pic16/main.c (_pic16_genIVT): fixed interrupt vector table
7744         * src/pic16/main.c (_pic16_genAssemblerPreamble): re-enabled the
7745         output of __config directives, since gpasm now supports them
7746         * src/pic16/main.c (_pic16_finaliseOptions): define MCU
7747         pre-processor macro, i.e. -DMCU=p18f452
7748         * src/pic16/ralloc.c: renamed packRegisters to pic16_packRegisters,
7749         and modified to handle 'cast' icode similarly to '=' icode
7750         * src/pic16/device.h (typedef struct PIC_device): added field
7751         'extMIface' to indicate that chip has external memory interface
7752         * src/pic16/device.c: added chips 18F248, 18F258, 18F448, 18F458,
7753         18F6520, 18F6620, 18F6680, 18F6720, 18F8520, 18F8620, 18F8680,
7754         18F8720
7755
7756 2003-11-26 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7757
7758         * src/SDCC.y (pointer): fixed bug #846006
7759         * support/Util/SDCCerr.c: made W_PTR_TYPE_INVALID message clearer
7760         * src/SDCCast.c (decorateType): fixed bug #846009
7761         * src/ds390/peeph.def,
7762         * src/ds390/gen.c (genAnd, genOr),
7763         * src/mcs51/peeph.def,
7764         * src/mcs51/gen.c (genAnd, genOr): fixed bug #846777
7765
7766 2003-11-25 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7767
7768         Fixed several common-sub-expression bugs (#772861, #768380, & #755323)
7769         * src/SDCCdflow.c
7770         * src/SDCCcse.c
7771         * src/SDCCcse.h
7772         * src/SDCCBBlock.h
7773         * src/SDCCBBlock.c
7774
7775 2003-11-23 Klaus Flittner <klaus_flittner AT gmx.de>
7776
7777         fixed bug #845089
7778         * src/SDCCbitv.h,
7779         * src/SDCCbitv.c: added function to free a bitvector
7780         * src/SDCClrange.h,
7781         * src/SDCClrange.c: added function to recompute the liveranges
7782         * src/avr/ralloc.c,
7783         * src/ds390/ralloc.c,
7784         * src/hc08/ralloc.c,
7785         * src/mcs51/ralloc.c,
7786         * src/pic/ralloc.c,
7787         * src/pic16/ralloc.c,
7788         * src/xa51/ralloc.c,
7789         * src/z80/ralloc.c: recompute the liveranges after register packing
7790
7791 2003-11-21 Klaus Flittner <klaus_flittner AT gmx.de>
7792
7793         * src/SDCCloop.c (newInduction): fixed bug #845630
7794
7795 2003-11-21 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7796
7797         * src/SDCCsymt.c (compareTypesExact): disabled debugging output
7798         inadvertantly left behind from my 2003-11-12 change
7799
7800 2003-11-20 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7801
7802         Updated headers I neglected to commit yesterday.
7803         * src/SDCClrange.h,
7804         * src/SDCCicode.h
7805
7806 2003-11-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7807
7808         * src/SDCCcse.c (algebraicOpts): fixed bug #773153
7809         * src/SDCClrange.c (rlivePoint): need to mark IC_RESULT used if POINTER_SET op
7810         * src/SDCCopt.c (eBBlockFromiCode),
7811         * src/SDCClrange.c (hashiCodeKeys, sequenceiCode, computeLiveRanges): seperated
7812         the creation of the key hash table from the sequencing so it can be used
7813         earlier (for some GCSE bug fixes still pending)
7814
7815 2003-11-15 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7816
7817         * src/mcs51/gen.c (genPlus): generate shortcut for adding 0xab00
7818         * support/regression/tests/addsub.c: testing genPlus shortcut
7819
7820 2003-11-15  Borut Razem <borut.razem AT siol.net>
7821
7822         * src/SDCCmain.c: fixed bug #841645: -MM command line option passed to sdcpp
7823
7824 2003-11-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7825
7826         * src/SDCCcse.c (cseBBlock): fixed bug #527779
7827         * src/SDCCcse.c (deleteGetPointers): rewrote so that the set
7828         ordering is immaterial.
7829         * src/SDCCdflow.c (mergeInExprs): fixed bug #587536
7830
7831 2003-11-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7832
7833         * src/SDCCicode.c (geniCodeAddressOf): fixed part of bug #840381
7834         * src/SDCCopt.c (replaceRegEqv, isLocalWithoutDef): fixed other part
7835         (SIGSEV) of bug #840381
7836         * src/SDCCmain.c (linkEdit, assemble): fixed bug #841606 (don't
7837         unlink new file before rename if new and old filenames are the same)
7838
7839 2003-11-13 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7840
7841         * src/mcs51/main.c: started fixing bug #737001 (SDCC not clearing
7842         uninitialized variables) for the mcs51. Set environment variable
7843         SDCC_GENRAMCLEAR to test.
7844         xdata initialization slightly shorter
7845
7846 2003-11-12 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7847
7848         * src/SDCCsymt.h,
7849         * src/SDCCsymt.c (addSymTypeChain, compareTypesExact): fixed bugs
7850         #838241 & 780691 (basicly the same bug)
7851         * src/SDCCBBlock.c (iCode2eBBlock): fixed bug #840148
7852         * src/SDCCBBlock.c (iCodeFromeBBlock): fixed bug #840162
7853
7854 2003-11-11 Bernhard Held <bernhard AT bernhardheld.de>
7855
7856         * src/SDCCmain.c (linkEdit): "fix" #834252
7857
7858 2003-11-11 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7859
7860         * src/SDCCast.c (removePostIncDecOps, removePreIncDecOps),
7861         * src/SDCCast.h,
7862         * src/SDCC.y: fixed bug #819403
7863
7864 2003-11-08 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7865
7866         * support/regression/fwk/lib/testfwk.c: printn is recursive and thus needs
7867         the reentrant attribute.
7868         * src/hc08/gen.c (genPackBits): added missing stack readjustment
7869         * sim/ucsim/hc08.src/inst.cc (inst_mov): fixed bugs with mov instruction
7870         simulation
7871         * src/SDCCast.c (decorateType): fixed bug with storage class not being
7872         updated during pointer dereference; f.e. ~(((char *)1)*) was being
7873         erroneously reduced to a literal.
7874         * src/hc08/ralloc.c (packRegisters, rematStr),
7875         * src/hc08/gen.c (aopForRemat): allow literals to be rematerialized in
7876         some cases
7877
7878 2003-11-08 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7879
7880         * src/mcs51/main.c: fixed bug #838385. Thanks to Josef Pavlik for finding and fixing
7881         * doc/sdccman.lyx: changed from 'article' to 'book'
7882         * doc/Makefile: readded test_suite_spec and cdbfileformat
7883
7884 2003-11-08 Bernhard Held <bernhard AT bernhardheld.de>
7885
7886         * device/include/stdlib.h: include malloc.h to comply with ANSI
7887         * support/regression/tests/malloc.c: include stdlib.h instead of malloc.h
7888
7889 2003-11-07 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7890
7891         * doc/Makefile: sdccman.pdf should build with correct references (more info in commit msg)
7892         * doc/clean.mk: also remove *.out files
7893         * doc/sdccman.lyx: some additions, larger top/bottom margins
7894
7895 2003-11-07 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7896
7897         * src/SDCC.y: fixed bug #837365
7898         * support/regression/tests/bitopcse.c
7899         * src/hc08/gen.c (genPointerGet): Don't assume pointer operand is
7900         a symbol (might be valop instead)
7901         * device/lib/Makefile.in: added errno.c to HC08SOURCES
7902         * device/lib/clean.mk: added hc08 to the cleaning list
7903
7904 2003-11-04  Borut Razem <borut.razem AT siol.net>
7905
7906         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h: reverted changes,
7907           made 2003-11-04
7908         * support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7909           as/z80/aslist.c, as/z80/assym.c: removed inclusion of nonstandard malloc.h;
7910           malloc is declared in standard stdlib.h
7911
7912 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7913
7914         * device/lib/hc08/Makefile: need to clean .rel not .o files
7915         * src/hc08/gen.c (genDjnz): can't use djnz with extended addressing mode
7916
7917 2003-11-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7918
7919         * src/port.h,
7920         * src/hc08/main.c,
7921         * src/mcs51/main.c,
7922         * src/ds390/main.c,
7923         * src/z80/main.c,
7924         * src/avr/main.c,
7925         * src/pic/main.c,
7926         * src/pic16/main.c,
7927         * src/xa51/main.c: added hasExtBitOp & oclsExpense functions to ports
7928         * src/SDCCicode.c: changed several IS_FARSPACE tests to isOclsExpensive
7929         tests (which uses the port's oclsExpense function)
7930         * src/SDCC.y,
7931         * src/SDCCast.c,
7932         * src/SDCCicode.c,
7933         * src/hc08/gen.c,
7934         * src/ds390/gen.c,
7935         * src/mcs51/gen.c: added support for the SWAP iCode (RFE #834167)
7936
7937 2003-11-04 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
7938
7939         * src/SDCCcse.c (ifxOptimize),
7940         * src/SDCClabel.c (labelIfx, deleteIfx): When the condition to
7941         an IFX iCode is volatile, convert to DUMMY_READ_VOLATILE instead
7942         deleting the IFX iCode.
7943         * src/hc08/ralloc.c: reduced unneeded slocs
7944         * src/hc08/gen.c: fixed bug in asmopToBoolean
7945
7946 2003-11-04  Borut Razem <borut.razem AT siol.net>
7947
7948         * configure, configure.in, sdcc_vc_in.h, sdcconf_in.h,
7949           support/Util/NewAlloc.c, as/hc08/lklibr.c, as/mcs51/lklibr.c,
7950           as/z80/aslist.c, as/z80/assym.c: decision to include malloc.h
7951           transferred to configure
7952
7953 2003-11-03 Bernhard Held <bernhard AT bernhardheld.de>
7954
7955         Use headers defined in the C[++] standards:
7956         * sim/ucsim/gui.src/serio.src/fileio.cc
7957         * sim/ucsim/gui.src/serio.src/frontend.cc
7958         * sim/ucsim/gui.src/serio.src/main.cc
7959         * sim/ucsim/gui.src/serio.src/posix_signal.cc
7960         * support/Util/NewAlloc.c
7961         * as/hc08/lklibr.c
7962         * as/mcs51/lklibr.c
7963         * as/z80/aslist.c
7964         * as/z80/assym.c
7965
7966 2003-11-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
7967
7968         * Added MSVC projects for hc08 assembler and linker:
7969         all.dsp, config.dsp, sdcc.dsw, /as/hc08/as_hc08.dsp,
7970         /as/hc08/link_hc08.dsp
7971
7972 2003-11-03 Martin Helmling <Martin.Helmling AT octo-soft.de>
7973
7974         * debugger/mcs51/cmd.c: allows filename starting with digit(+ some debug)
7975
7976 2003-11-02 Bernhard Held <bernhard AT bernhardheld.de>
7977
7978         * src/SDCCmain.c (linkEdit): "fixed" again bug #833605
7979
7980 2003-11-01 Frieder Ferlemann <Frieder.Ferlemann AT web.de>
7981
7982         * src/mcs51/main.c: xdata initialization is 13 bytes shorter now
7983
7984 2003-10-31  Borut Razem <borut.razem AT siol.net>
7985
7986         * support/cpp2/cpplib.h,
7987           support/cpp2/cpplib.c,
7988           support/cpp2/cpplex.c,
7989           support/cpp2/cppinit.c: introduced #pragma preproc_asm [ + | - ]
7990           to switch _asm block preprocessing on / off. Default is
7991           #pragma preproc_asm +
7992
7993 2003-10-31  Borut Razem <borut.razem AT siol.net>
7994
7995         * support/cpp2/cpplex.c: Fixed _WIN32 problem with CR-CR-LF sequences
7996           when outputting comment blocks (when executed with -C option) and
7997           _asm (SDCPP specific) blocks
7998
7999 2003-10-31 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8000
8001         * as/hc08/lkrloc.c (relr): Fixed ihx output, fixed lastAreaIndex warning
8002
8003 2003-10-31 Klaus Flittner <klaus_flittner AT gmx.de>
8004
8005         * src/SDCCcse.c (updateSpillLocation): fixed bug #808027
8006
8007 2003-10-31 Bernhard Held <bernhard AT bernhardheld.de>
8008
8009         * src/SDCCmain.c (linkEdit): "fixed" bug #833605
8010         * src/SDCCast.c (decorateType): fixed bug #832664
8011
8012 2003-10-31  Borut Razem <borut.razem AT siol.net>
8013
8014         * support\cpp2\cpplex.c: fixed for SDCPP:
8015           comments(when executed with -C option) and _asm blocks
8016           were included even if they where in skipped #if block.
8017           Applied solution from GCC cpp 3.3.2
8018
8019 2003-10-31  Borut Razem <borut.razem AT siol.net>
8020
8021         * src/SDCC.lex: sdcc now understands both formats:
8022           '# <line_number> <file_name>' and
8023           '#line <line_number> <file_name>'
8024         * support/cpp2/cppmain.c: sdcpp now generates the standard
8025           '# <line_number> <file_name>' instead of former
8026           '#line <line_number> <file_name>'
8027
8028 2003-10-30  Borut Razem <borut.razem AT siol.net>
8029
8030         * support/cpp2/cpphash.h,
8031         * support/cpp2/cpplib.h
8032         * support/cpp2/cpplex.c,
8033         * support/cpp2/cppmain.c,
8034         * support/cpp2/cppinit.c: fixed bug #828015 - Syntax variation for _asm character constants
8035
8036 2003-10-30 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8037
8038         Fixed a number of problems revealed by bug #827883.
8039         * src/SDCCloop.c (loopInvariants): Spill location of the
8040         result operand should be recomputed if extracted from
8041         a loop. Also, don't extract assignments of an iTemp
8042         from a literal.
8043         * src/SDCCast.c (isConformingBody): loop reversal should
8044         not occur if the control variable is involved with a
8045         relational operator.
8046
8047 2003-10-28 Bernhard Held <bernhard AT bernhardheld.de>
8048
8049         * .version: bumped to 2.3.6 to reflect the big improvements
8050         made by Erik and Klaus. Thanks!
8051
8052 2003-10-28 Klaus Flittner <klaus_flittner AT gmx.de>
8053
8054         Replaced the livrange code.
8055         * src/SDCClrange.c: added new LR code
8056         * src/SDCCloop.c,
8057         * src/SDCCBBlock.h: removed remainig parts from old LR code
8058         * src/ds390/ralloc.c,
8059         * src/ds390/gen.c: minor fixes to make it work with new code
8060
8061 2003-10-28 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8062
8063         * as/hc08/asm.h,
8064         * as/hc08/lkrloc.c,
8065         * src/hc08/gen.c,
8066         * src/hc08/ralloc.c: Fix various warnings related to the hc08
8067         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec): Fixed bug #829717
8068         (tweaked fix for bug #818696)
8069
8070 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8071
8072         * src/z80/ralloc.c (joinPushes): Fixed bug #828742
8073
8074 2003-10-23 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8075
8076         * src/SDCCmain.c,
8077         * sdccconf_in.h: Fixed bug #828387 (--disable-hc08-port didn't work)
8078         * src/mcs51/gen.c (gencjneshort),
8079         * src/ds390/gen.c (gencjneshort): Made comparison with AOP_IMMD operand
8080         more efficient (per Scott Bronson's suggestion)
8081
8082 2003-10-22 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8083
8084         Extended the semantics of the critical keyword to include
8085         individual statements. See RFE #827755 and #799831
8086         * src/SDCC.y
8087         * src/SDCCicode.c
8088         * src/SDCCopt.c
8089         * src/SDCCast.c
8090         * support/Util/SDCCerr.c
8091         * support/Util/SDCCerr.h
8092         * src/mcs51/gen.c
8093         * src/ds390/gen.c
8094         * src/hc08/gen.c
8095
8096 2003-10-19  Borut Razem <borut.razem AT siol.net>
8097
8098         * src/SDCC.lex: fixed bug #825944 - defined yytext_ptr to make it compile with flex 2.5.31
8099
8100 2003-10-19 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8101
8102         * src/SDCCicode.c (geniCodePreInc, geniCodePreDec, ast2iCode):
8103         Fixed bug #818696
8104         * src/SDCCast.c (ast_print): Fixed --dumptree so that preincrement
8105         and predecrement operand is displayed
8106
8107 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8108
8109         * src/SDCCval.c (valMinus): fixed bug #826041
8110
8111 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8112
8113         Some hc08 related updates that I missed earlier
8114         * sim/ucsim/stypes.h
8115         * support/regression/ports/hc08/spec.mk
8116
8117 2003-10-15 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8118
8119         New target "hc08" for the Motorola 68hc08 family of micros
8120
8121         * configure
8122         * configure.in
8123         * Makefile
8124         * src/hc08/*
8125         * src/SDCCmain.c
8126         * src/port.h
8127         * sim/ucsim/hc08.src/*
8128         * sim/ucsim/configure.in
8129         * src/ucsim/configure
8130         * sim/ucsim/packages_in.mk
8131         * as/hc08/*
8132         * as/Makefile
8133         * device/include/mc68hc908qy.h
8134         * device/lib/hc08/*
8135         * device/lib/Makefile.in
8136         * support/regression/ports/hc08/*
8137         * support/regression/Makefile
8138
8139 2003-10-14 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8140
8141         * src/z80/gen.c: fixed bug revealed by ast_constant_folding.c
8142         regression test
8143         * src/ds390/gen.c (genCast): fixed bug #821957
8144
8145 2003-10-13 Bernhard Held <bernhard AT bernhardheld.de>
8146
8147         * device/lib/logf.c: "fixed" overlay bug
8148         * support/regression/ports/host/spec.mk: added m library
8149         * support/regression/ports/mcs51-stack-auto/spec.mk: added float funcs
8150         * support/regression/tests/float_trans: added (for Eric)
8151
8152 2003-10-12 Bernhard Held <bernhard AT bernhardheld.de>
8153
8154         * src/mcs51/gen.c (genCpl): fixed bug
8155         http://sf.net/mailarchive/message.php?msg_id=6263915
8156
8157 2003-10-10 Bernhard Held <bernhard AT bernhardheld.de>
8158
8159         * src/SDCCast.c (decorateType): added extended constant folding
8160         * src/SDCCsymt.c (computeType): cleanup
8161         * src/SDCCval.c (valShift): minor optimization
8162         * support/regression/tests/ast_constant_folding.c: added
8163
8164 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8165
8166         * src/SDCCmain.c: removed some unintended changes
8167
8168 2003-10-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8169
8170         * src/SDCCmain.c (setParseWithComma): fixed bug #816685
8171         * src/z80/gen.c: fixed part of bug #817589
8172         * src/SDCCsymt.c (checkFunction): fixed bug #817895
8173
8174 2003-10-08 Bernhard Held <bernhard AT bernhardheld.de>
8175
8176         Replaced cast (void **) with (void *) to avoid gcc 3 warning:
8177         * src/SDCCcflow.c
8178         * src/SDCCcse.c
8179         * src/SDCCdflow.c
8180         * src/SDCClabel.c
8181         * src/SDCClrange.c
8182         * src/SDCCmem.c
8183         * src/SDCCopt.c
8184         * src/SDCCpeeph.c
8185         * src/SDCCset.c
8186         * src/avr/ralloc.c
8187         * src/ds390/ralloc.c
8188         * src/izt/ralloc.c
8189         * src/mcs51/ralloc.c
8190         * src/pic/ralloc.c
8191         * src/pic16/ralloc.c
8192         * src/xa51/ralloc.c
8193         * src/z80/ralloc.c
8194         * src/z80/gen.c: removed unused label "release:"
8195
8196 2003-10-06  Borut Razem <borut.razem AT siol.net>
8197
8198         * src/SDCC.lex: removed definition of unused variables
8199           save_optimize and save_options
8200
8201 2003-10-06 Bernhard Held <bernhard AT bernhardheld.de>
8202
8203         * clean.mk: removed '=' in "-maxdepth=1"
8204         * src/SDCCloop.c: replace LRKLAUS with SDCC_LRKLAUS
8205         * src/SDCClrange.c: replace LRKLAUS with SDCC_LRKLAUS
8206
8207 2003-10-06  Borut Razem <borut.razem AT siol.net>
8208
8209         * src/SDCC.lex, src/SDCC.lex: use dbuf for "_asm" definitions;
8210           my_unput() replaced by unput()
8211
8212 2003-10-05 Bernhard Held <bernhard AT bernhardheld.de>
8213
8214         * src/SDCCloop.c (assignmentsToSym, loopInduction): cast argument of
8215         setToNull() to (void *) to avoid gcc3.x's warning: "dereferencing
8216         type-punned pointer will break strict-aliasing rules"
8217         Old LR behaviour is again default; Klaus' LR can be choosen by
8218         defining the environment variable LRKLAUS
8219         * src/SDCCBBlock.h
8220         * src/SDCCloop.c
8221         * src/SDCClrange.c
8222         * src/ds390/ralloc.c (spillThis): applied Klaus' patch
8223         * clean.mk: fixed removal of files in bin/CVS/
8224         * device/lib/clean.mk: fixed removal of directories small and large
8225         * support/Util/SDCCerr.c: changed W_INT_OVL to ERROR_LEVEL_PEDANTIC
8226         * src/SDCCicode.c,
8227         * src/SDCCval.c: removed superflous test for pedantic
8228
8229 2003-10-05  Borut Razem <borut.razem AT siol.net>
8230
8231         * src/SDCC.lex, support/Util/SDCCerr.c, sdcc/support/Util/SDCCerr.h:
8232           Fixed bug #816692: introduced new ERROR_LEVEL_PEDANTIC warning
8233           message "unmatched #pragma SAVE and #pragma RESTORE"
8234
8235 2003-10-04  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8236
8237         * doc/sdccman.lyx: various additions and updates (interrupts, inline
8238           assembly, critical functions, atomic, nojtbound)
8239
8240 2003-10-04 Bernhard Held <bernhard AT bernhardheld.de>
8241
8242         Applied liferange patch from Klaus Flittner <klaus_flittner AT gmx.de>
8243         * src/SDCCBBlock.h
8244         * src/SDCCloop.c
8245         * src/SDCCloop.h
8246         * src/SDCClrange.c
8247
8248 2003-10-03  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8249
8250         * src/z80/gen.h,
8251         * src/z80/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8252         * src/mcs51/gen.h
8253         * src/mcs51/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8254         * src/ds390/gen.h
8255         * src/ds390/gen.c (aopOp, aopGet, aopPut, genDummyRead),
8256         * src/SDCCicode.c (ast2iCode, geniCodeDummyRead): Fixed bug #663539
8257         * src/SDCCopt.c (killDeadCode): Fixed bugs #663539 & #816705
8258
8259 2003-10-02  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8260
8261         * src/z80/gen.c (genRet): fixed bug #524753
8262         * src/z80/gen.c (genCast): fixed internal error on cast from
8263         pointer to long
8264         * src/z80/gen.c (_saveRegsForCall, emitCall): adapted Johan's
8265         fix for bug #477835 to the z80
8266         * src/z80/gen.c (genZ80code, _vemit2, _emit2): added support
8267         for tracking iCodes in the peephole optimizer for z80
8268
8269 2003-10-01  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8270
8271         * src/SDCCicode.c (geniCodeJumpTable, geniCodeSwitch): fixed
8272         the other part of bug #814548
8273         * src/SDCCpeeph.c (labelInRange): fixed bug #814558
8274
8275 2003-09-30  Bernhard Held <bernhard AT bernhardheld.de>
8276
8277         * src/SDCCcse.c: fixed part of bug #814548
8278
8279 2003-09-28  Borut Razem <borut.razem AT siol.net>
8280
8281         * src/asm.c: rewrite of printILine() to use temporary file instead
8282           a pipe
8283         * src/xa51/main.c: commented out declaration of int rewinds
8284
8285 2003-09-27  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8286
8287         * src/SDCCicode.c (geniCodeJumpTable): Fixed bug #813206
8288
8289 2003-09-26  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8290
8291         * src/SDCCdflow.c (computeDataFlow): Fixed bug #810746
8292         * src/asm.c (printILine): Fixed bug #811015
8293
8294 2003-09-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8295
8296         *link/z80/lklibr.c, as/mcs51/lklibr.c: Improved memory allocation and
8297         freeing.
8298
8299 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8300
8301         * src/z80/gen.c (setupToPreserveCarry): Fixed bug #796955
8302         * src/z80/gen.c (setupPair, genMovePairPair): Fixed setupPair
8303         to correctly handle general case of AOP_PAIRPTR
8304         * src/z80/gen.c (aopGet, aopPut): Generalized AOP_PAIRPTR handling
8305
8306 2003-09-21  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8307
8308         * src/mcs51/ralloc.c (fillGaps),
8309         * src/ds390/ralloc.c (fillGaps): fixed bug #810093 (yet another
8310         register positioning bug)
8311
8312 2003-09-21  Bernhard Held <bernhard AT bernhardheld.de>
8313
8314         * device/lib/_fsdiv.c: replaced (1<<31) by (1ul<<31)
8315
8316 2003-09-19  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8317
8318         * src/mcs51/gen.c (loadDptrFromOperand, genFarPointerGet,
8319         genCodePointerGet, genGenPointerGet, genFarPointerSet,
8320         genGenPointerSet): handle AOP_DPTR correctly when loading dptr
8321         (ralloc doesn't intentionally do this now, but perhaps later)
8322         * src/mcs51/ralloc.c (serialRegAssign, fillGaps),
8323         * src/ds390/ralloc.c (serialRegAssign, fillGaps): fixed some
8324         register positioning bugs (Fixed bug #762602 and #795325)
8325         * src/SDCCicode.c (geniCodeDerefPtr): Track output class correctly
8326         (Fixed bug #808779)
8327         * src/z80/gen.c: increased _vemit2's buffer[] to handle long
8328         lines that --i-code-in-asm generates
8329
8330 2003-09-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8331
8332         *link/z80/lklibr.c, as/mcs51/lklibr.c: Fixed Linux segfaults when
8333         trying to fclose a FILE* that was already closed.
8334
8335 2003-09-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8336
8337         * src/SDCCsymt.c (structElemType): fixed bug #808291 (members
8338         of const struct should be treated as if const themselves)
8339
8340 2003-09-18  Bernhard Held <bernhard AT bernhardheld.de>
8341
8342         * src/SDCCval.c (valPlus, valMinus): fixed bug #808337
8343
8344 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8345
8346         * support/librarian/sdcclib.c: Generate correct offsets for libraries with
8347         Unix (/n) and DOS (/r/n) line terminations.
8348
8349 2003-09-17  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8350
8351         * src/SDCCopt.c (cnvFromFloatCast, cnvToFloatCast): fixed
8352         bug #613775
8353
8354 2003-09-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8355
8356         * src/mcs51/gen.c (genFunction, genEndFunction),
8357         * src/ds390/gen.c (genFunction, genEndFunction): Moved save
8358         and restore of EA so that stack offsets to parameters are
8359         correct when using both critical and reentrant/stack-auto.
8360         * src/z80/gen.c (aopOp): removed erroneous assertion about sloc
8361         size (can be triggered in error if sloc is shared between
8362         different sized objects)
8363         * device/include/float.h: fixed macros to explicitly use
8364         unsigned long where needed
8365
8366 2003-09-15  Bernhard Held <bernhard AT bernhardheld.de>
8367
8368         Feature req. 799831: added code to allow nesting of critical functions
8369         * src/mcs51/gen.c (genFunction, genEndFunction)
8370         * src/ds390/gen.c (genFunction, genEndFunction)
8371
8372 2003-09-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8373
8374         * src/SDCCsymt.c (sclsFromPtr),
8375         * src/SDCCsymt.h,
8376         * src/SDCCast.c (decorateType): fixed bug #462971. Also, better
8377         support for standard C idiom of memory mapped variables; for
8378         example, *((xdata int*)0x1234) = 1 is now internally equivalent
8379         to xdata int at 0x1234 tempvar = 1.
8380         * sim/ucsim/z80.src/inst_xd.cc: fixed bug #805483 with patch
8381         provided by Akiya ISHIDA
8382
8383 2003-09-13  Bernhard Held <bernhard AT bernhardheld.de>
8384
8385         * src/SDCCval.c (cheapestVal): reenabled to reduce int to char
8386         * src/SDCCval.c (constVal): added reduction from int to char
8387         * src/SDCCval.c (valMult, valDiv): fixed sign handling
8388         * src/SDCCval.c (valShift): fixed after change of cheapestVal()
8389         * src/SDCCval.c (valCompare): fixed EQ_OP and NE_OP; they have
8390         to ignore the sign
8391         * support/regression/tests/shifts.c: fixed
8392
8393 2003-09-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8394
8395         * src/z80/gen.c (genXor): Fixed bug #805445
8396
8397 2003-09-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8398
8399         Fixed bug #621531 (const & volatile confusion in the type chain).
8400         DCL_PTR_CONST, DCL_PTR_VOLATILE, & IS_PTR_CONST now exclusively
8401         refer to the const or volatile state of the pointer itself.
8402
8403         * src/SDCCast.c
8404         * src/SDCCglue.c
8405         * src/SDCCicode.c
8406         * src/SDCCsymt.c
8407         * src/SDCCval.c
8408         * src/SDCC.y
8409         * src/SDCCsymt.h
8410         * src/pic/gen.c
8411         * src/pic/ralloc.c
8412         * src/pic16/gen.c
8413         * src/pic16/ralloc.c
8414         * support/regression/tests/const.c
8415
8416 2003-09-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8417
8418         When checking for duplicated modules, use absolute paths
8419         instead of relative paths.  Files changed:
8420
8421         * as/mcs51/lklib.c
8422         * link/z80/lklib.c
8423
8424 2003-09-09  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8425
8426         * src/SDCCicode.c (geniCodeLogic): fixed bug #797572
8427
8428 2003-09-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8429
8430         * device/include/string.h: added size_t typedef, changed
8431         prototypes to use size_t, eliminated separate reentrant and
8432         non-reentrant declarations, added _memmove declaration
8433         * device/lib/_memcpy.c: changed to use size_t instead of int,
8434         changed /4 to >>2 to avoid division library call
8435         * device/lib/_memcmp.c,
8436         * device/lib/_memset.c,
8437         * device/lib/_strncat.c,
8438         * device/lib/_strncpy.c,
8439         * device/lib/_strncmp.c: changed to use size_t instead of int
8440         * device/lib/_memmove.c: new file (fixed bug #772294)
8441         * device/lib/Makefile.in: added _memmove.c
8442         * device/lib/z80/asm_strings.s: fixed bug #772290
8443         * support/regression/tests/bitfields.c: attempt to fix host assertion
8444         failure on amd64-unknown-linux2.2
8445
8446 2003-09-06  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8447
8448         * src/z80/gen.c (aopPut, spillPairReg): fixed bug #800998
8449         * src/z80/gen.c (genFunction, genEndFunction): fixed "bug" #774700
8450         * as/z80/asmain.c (main): fixed bug #801766
8451
8452 2003-09-06  Bernhard Held <bernhard AT bernhardheld.de>
8453
8454         * src/SDCCicode.c (ast2iCode): fixed differences in iCode with different
8455         compilers
8456
8457 2003-09-05  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8458
8459         * src/SDCCast.c (isConformingBody): fixed loop reversal bug
8460         reported in bug #800609
8461
8462 2003-09-04  Vangelis Rokas <vrokas AT otenet.gr>
8463
8464         * Top header beautifications in src/pic16 directory:
8465           device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c,
8466           pcodeflow.c, pcodeflow.h, pcode.h, pcodepeep.c, pcoderegs.c,
8467           pcoderegs.h, ralloc.c, ralloc.h
8468         * main.c: added top header and GPL license notice
8469         * pcode.c: fixed the if-conditional warning
8470
8471 2003-09-04  Bernhard Held <bernhard AT bernhardheld.de>
8472
8473         * device/lib/_mullong.c: replaced int by short for gcc
8474
8475 2003-08-31  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8476
8477         * src/SDCCpeeph.c (notVolatile, notVolatileVariable): handle IFX
8478         and JUMPTABLE iCodes properly now (worked by accident before)
8479         * src/mcs51/gen.c (leftRightUseAcc),
8480         * src/ds390/gen.c (leftRightUseAcc): handle IFX and JUMPTABLE
8481         iCode properly now. Use getSize instead of nRegs since a & b
8482         aren't part of the nRegs tally.
8483
8484 2003-08-31  Vangelis Rokas <vrokas AT otenet.gr>
8485
8486         * src/pic16/main.c: corrected offsets of interrupt vectors in _pic16_genIVT()
8487         * src/pic16/pcode.c: fix to disable inserting BANKSEL directive
8488           before instructions that use the _STATUS register
8489
8490 2003-08-31  Bernhard Held <bernhard AT bernhardheld.de>
8491
8492         * src/mcs51/gen.c (freeAsmop): fixed off by one in stack offset (AOP_STK)
8493         * src/mcs51/gen.c (genNearPointerSet): added missing opcode for
8494         fetching of the pointer
8495         * src/mcs51/gen.c (genNearPointerGet): added reuse of PREG,
8496         copied from genNearPointerSet()
8497         * src/mcs51/gen.c (genNearPointerGet): don't pop r0/r1, if RESULTONSTACK
8498         * src/mcs51/gen.c: changed order of freeAsmop(left/right/result)-calls.
8499         If they pop r0/r1 they must be called in the opposite order than aopOp().
8500         * device/lib/_mullong.c: fixed for "--model-large --int-long-reent"
8501         (resp. --stack-auto), prepared for --xstack
8502
8503 2003-08-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8504
8505         * doc/sdccman.lyx: reverted tables to those in cvs 1.64
8506
8507 2003-08-28  Bernhard Held <bernhard AT bernhardheld.de>
8508
8509         * device/lib/_startup.c: quick & dirty fix for ds390/ds400;
8510         these ports have their own __sdcc_external_start()
8511
8512 2003-08-26  Bernhard Held <bernhard AT bernhardheld.de>
8513
8514         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8515         * src/pic/glue.c (pic14printPublics): fixed bug introduced when symbol
8516         type for bits was changed. It resulted in bit variables becoming
8517         global, which is not permitted in PIC 14 assembly output.
8518
8519 2003-08-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8520
8521         * doc/sdccman.lyx: various additions and updates. Rearranged sections
8522
8523 2003-08-22  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8524
8525         Z80 and MCS51 linkers complaint if a public symbol is defined
8526         in more than one library module:
8527
8528         * as/mcs51/lklib.c
8529         * link/z80/lklib.c
8530         * as/mcs51/Makefile.in
8531
8532 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8533
8534         A few small changes that speed up the peephole optimizer.
8535
8536         * src/SDCCpeeph.c
8537
8538 2003-08-22  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8539
8540         Try to make the peephole optimizer smarter by maintaining
8541         an association between the assembly source code and the
8542         iCodes that originated them. Put this information to use
8543         with a new peephole rule condition "notVolatile" so that
8544         the rules can be aggressive yet still safe.
8545
8546         * src/SDCCpeeph.c
8547         * src/SDCCpeeph.h
8548         * src/mcs51/gen.c
8549         * src/mcs51/peeph.def
8550
8551 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8552
8553         Fixed bug #741761
8554
8555         * src/mcs51/gen.c (aopForSym, leftRightUseAcc),
8556         * src/ds390/gen.c (aopForSym, leftRightUseAcc): preserve A and B
8557         if the left or right operand symbols have the accuse flag set.
8558
8559 2003-08-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8560
8561         Changed the type of the result of the ! (NOT) operator to char;
8562         previously it returned the same type as the source. This allows
8563         us to eliminate all the genFloatNot functions (all of its target
8564         implementations were very buggy) since !float can use the same
8565         code as !long now.
8566
8567         * src/SDCCicode.c (ast2iCode): ! returns char
8568         * src/mcs51/gen.c (genNot, genNotFloat),
8569         * src/ds390/gen.c (genNot, genNotFloat),
8570         * src/z80/gen.c (genNot, genNotFloat),
8571         * src/pic/gen.c (genNot, genNotFloat),
8572         * src/pic16/gen.c (genNot, genNotFloat): eliminated genNotFloat
8573
8574 2003-08-19  Bernhard Held <bernhard AT bernhardheld.de>
8575
8576         pic patch provided by Slade Rich <slade_rich AT yahoo.com>
8577         1. Interrupt would not compile properly. Ensure PCLATH register is saved
8578            during interrupts. Ensure WSAVE is located at a shared bank address.
8579         2. Fixed page selection in some places
8580         3. Fixed BTFSS/C to where necessary use registers directly and not simply
8581            the registers name strings.
8582         4. Fixed "signed / unsigned compare" compiler warnings.
8583         5. The PIC port manages its own allocation of the general purpose
8584            registers, but makes no attempt to reuse them. As a result when
8585            compiling it soon runs out of general purpose registers. Some
8586            additional code was added to the files pcode.c and device.c to walk
8587            through the function call tree and rename the registers so that they
8588            get reused.
8589
8590         * src/pic/device.c
8591         * src/pic/gen.c
8592         * src/pic/glue.c
8593         * src/pic/pcode.c
8594         * src/pic/pcode.h
8595         * src/pic/ralloc.c
8596         * src/pic/ralloc.h
8597         * src/pic/genarith.c: Fixed problems with PIC 14 port in functions
8598         genPlus() & genMinus() when the result is the same as left or right
8599
8600 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8601
8602         * src/z80/gen.c (isUnsplitable, fetchPairLong): fixed bug #770454
8603
8604 2003-08-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8605
8606         Made bitfield a distinct type from bit so that bitfields
8607         convert as per ANSI C and bits retain their traditional
8608         boolean style behaviour. Implemented bitfield support in
8609         the z80 port.
8610
8611         * src/SDCCsymt.h,
8612         * src/SDCCsymt.c,
8613         * src/SDCCast.c,
8614         * src/cdbFile.c,
8615         * src/mcs51/gen.c,
8616         * src/ds390/gen.c: bit v bitfield split
8617         * src/z80/gen.c: New support for bitfields
8618         * support/regression/tests/bitfields.c: reenabled z80,
8619         added more tests
8620
8621 2003-08-17  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8622
8623         Rules 246.x, 247.x relate to bitfields, the others speed up
8624         access to xdata mapped I/O devices.
8625
8626         * src/mcs51/peeph.def: added 26 peepholes 246.x - 248.x, 180.x
8627
8628 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8629
8630         Cleaned up genPackBits and genUnpackBits and added two helper
8631         functions, emitPtrByteGet & emitPtrByteSet. Added optimizations
8632         for literal assignments in genPackBits (thanks to Frieder for
8633         reminding me).
8634
8635         * src/mcs51/gen.c
8636         * src/ds390/gen.c
8637
8638 2003-08-16  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8639
8640         Fixed bug #748310 (pointer to function type mishandled when the
8641         function name is omitted). Also fixed a SIGSEGV when a function
8642         attribute (reentrant, etc) is used on a non-function or on a
8643         function but misplaced before the parameter list.
8644
8645         * src/SDCC.y (abstract_declarator, abstract_declaractor2): fixed
8646         bug #748310
8647         * src/SDCC.y (declarator2_function_attributes): avoided SIGSEGV
8648         * support/Util/SDCCerr.h,
8649         * support/Util/SDCCerr.c: Added func attr misuse error msg
8650
8651 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8652
8653         Fixed bug #787649 by anonymous
8654         * src/SDCCglue.c (emitRegularMap): added emission of sloc for func ptr
8655         * src/ds390/gen.c (aopForSym): fixed func ptr in sloc
8656
8657 2003-08-14  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8658
8659         Fixed numerous bitfield problems.
8660
8661         * src/SDCC.y: More bitfield related error checking
8662         * src/SDCCsymt.h,
8663         * src/SDCCsymt.c (compStructSize): fixed bitfield offset calc
8664         * support/Util/SDCCerr.h,
8665         * support/Util/SDCCerr.c: Added & edited some bitfield err msgs
8666         * src/mcs51/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8667         * src/ds390/gen.c (genPackBits, genUnpackBits): fixed mask bugs
8668         * support/regression/tests/bitfields.c: tests added
8669
8670 2003-08-13  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8671
8672         Made the constant following the "interrupt" keyword optional. If
8673         omitted, the function will not automatically be given an entry
8674         in the interrupt vector table (similar to #pragma NOIV, but
8675         less syntacticly kludgy). The interrupt number is also now
8676         range checked. Also fixed a bug in the high order bit example
8677         in the manual.
8678
8679         * src/SDCC.y
8680         * src/SDCCmem.c
8681         * src/SDCCglue.c
8682         * src/SDCCsymt.h
8683         * support/Util/SDCCerr.c
8684         * support/Util/SDCCerr.h
8685         * doc/sdccman.lyx
8686
8687 2003-08-13  Bernhard Held <bernhard AT bernhardheld.de>
8688
8689         * src/SDCCcse.c (algebraicOpts): fix bug converting op from value to type
8690         * src/SDCCicode.c (operandOperation): rewritten some ops
8691         (*, ==, unary_minus) to fix possible overflows and to accord with ANSI
8692         * src/SDCCsymt.c (computeType): literals are handled the same way as any
8693         other type
8694         * src/SDCCval.c (cheapestVal): removed, it doesn't accord with ANSI (can
8695         be re-activated by defining REDUCE_LITERALS)
8696         * src/SDCCval.c (constVal): fixed; hex and octal constants can be
8697         unsigned, but are signed by default
8698         * src/SDCCval.c (constVal): rearranged
8699         * src/SDCCval.c (valMod): preliminary fix
8700         * src/SDCCval.c (valCastLiteral): use TYPE_* types
8701         * support/regression/literalop.c: added, work in progress
8702
8703 2003-08-12  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8704
8705         Generate warnings for useless declarations like "char data;"
8706         that don't do what new users expect.
8707
8708         * src/SDCC.y
8709         * support/Util/SDCCerr.h
8710         * support/Util/SDCCerr.c
8711
8712 2003-08-09  Bernhard Held <bernhard AT bernhardheld.de>
8713
8714         * src/SDCCval.c (valMult): fix overflow detection of negative int
8715
8716 2003-08-07  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8717
8718         * src/z80/ralloc.c (joinPushes): made compatible with new signedness
8719
8720         Changes to support big endian targets:
8721
8722         * src/ports.h
8723         * src/SDCCglue.c
8724         * src/avr/main.c
8725         * src/ds390/main.c
8726         * src/izt/i186.c
8727         * src/mcs51/main.c
8728         * src/pic/main.c
8729         * src/pic16/main.c
8730         * src/xa51/main.c
8731         * src/z80/main.c
8732
8733 2003-08-06  Bernhard Held <bernhard AT bernhardheld.de>
8734
8735         * src/SDCCval.c (cheapestVal): changed behaviour to the same as constVal()
8736         * device/lib/time.c: fixed warning "integer overflow in expression"
8737
8738 2003-08-05  Bernhard Held <bernhard AT bernhardheld.de>
8739
8740         * src/SDCCval.c (cheapestVal, valueFromLit): use TYPE_* types
8741         * src/SDCCval.c (constVal): changed default to signed; hex and octal
8742         constants are unsigned; added recognition of "u" flag for unsigned
8743         * src/SDCCval.c (valMult): fixed signdness, added warning for overflow
8744         * src/SDCCval.c (valDiv, valMod): fixed signdness
8745         * src/SDCCicode.c (operandOperation): fixed critical typo; fixed
8746         signedness of modulo, left and right shift
8747         * support/Util/SDCCerr.c: added warning "integer overflow in expression"
8748         * support/Util/SDCCerr.h: added warning W_INT_OVL
8749         * src/SDCCast.c (decorateType): fixed gcc3.3 warning
8750         * src/SDCCast.c (ast_print): improved output of constants
8751
8752 2003-08-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8753
8754         Fixed some warnings when building with MSVC:
8755
8756         * as\mcs51\asdata.c
8757         * as\z80\asdata.c
8758         * as\mcs51\asm.h
8759         * as\z80\asm.h
8760         * link\z80\aslink.h
8761         * link\z80\lkdata.c
8762         * link\z80\lkeval.c
8763         * link\z80\lkgb.c
8764         * link\z80\lkihx.c
8765         * link\z80\lks19.c
8766         * link\z80\lksym.c
8767         * support\cpp2\cpplib.c
8768         * src\ds390\gen.c
8769         * src\mcs51\gen.c
8770
8771 2003-08-03  Bernhard Held <bernhard AT bernhardheld.de>
8772
8773         * src/SDCCast.c (constExprTree): fix bug #781827 by Carl Worth <cworth AT isi.edu>
8774
8775 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8776
8777         * support\librarian\clean.mk: Do not remove Makefile.
8778         * support\librarian\Makefile: added.
8779
8780 2003-08-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8781
8782         Added librarian to MSVC build:
8783         * all.dsp
8784         * sdcc.dsw
8785         * support\librarian\librarian.dsp
8786
8787         'configure' not needed for librarian, removed:
8788         * support\librarian\configure
8789         * support\librarian\configure.in
8790         * support\librarian\config_in.h
8791         * support\librarian\Makefile.in
8792
8793         Hopefully these ones built the librarian and the rest of sdcc properly:
8794         * Makefile
8795         * Makefile.common.in
8796
8797         Messed up 'configure', so revert to previous version:
8798         * configure
8799         * configure.in
8800
8801 2003-07-31  Bernhard Held <bernhard AT bernhardheld.de>
8802
8803         * src/SDCCicode.c (operandOperation): 3. fix, this time for Alpha; ULONG has 64 bits
8804         there, while the mantissa of a double is "only" 53 bits wide.
8805
8806 2003-07-31  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8807
8808         Adding sdcclib to the build.  MSVC project coming soon.
8809         Files added/changed:
8810
8811         * support\librarian\clean.mk
8812         * support\librarian\configure
8813         * support\librarian\configure.in
8814         * support\librarian\config_in.h
8815         * support\librarian\Makefile.bcc
8816         * support\librarian\Makefile.in
8817         * support\librarian\sdcclib.c
8818         * Makefile.bcc
8819         * Makefile
8820         * Makefile.common.in
8821         * configure
8822         * configure.in
8823
8824 2003-07-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8825
8826         Linker now complaints if linked modules have conflicting options, for
8827         example, one compiled using --model-large and another one compiled with
8828         --model-small.  The following files were modified:
8829
8830         * as\mcs51\asdata.c
8831         * as\mcs51\aslink.h
8832         * as\mcs51\asm.h
8833         * as\mcs51\asmain.c
8834         * as\mcs51\asout.c
8835         * as\mcs51\i51pst.c
8836         * as\mcs51\lkdata.c
8837         * as\mcs51\lklibr.c
8838         * as\mcs51\lkmain.c
8839         * as\z80\asdata.c
8840         * as\z80\asm.h
8841         * as\z80\asmain.c
8842         * as\z80\asout.c
8843         * as\z80\z80pst.c
8844         * link\z80\aslink.h
8845         * link\z80\lkdata.c
8846         * link\z80\lklibr.c
8847         * link\z80\lkmain.c
8848         * src\SDCCglue.c
8849
8850 2003-07-28  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8851
8852         *link/z80/aslink.h, link/z80/lklibr.c, as/mcs51/aslink.h,
8853         as/mcs51/lklibr.c: Generate a warning when a library is not found.
8854
8855 2003-07-28  Bernhard Held <bernhard AT bernhardheld.de>
8856
8857         * src/z80/mappings.i: fix _mul[us][int,long] entries
8858
8859 2003-07-26  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8860
8861         *src/SDCCmain.c: do not search for crt0.o when using --nostdlib
8862
8863 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8864
8865         * src/SDCCicode.c (operandOperation): really fixed problem with bitops
8866         * support/regression/tests/bitopcse.c: added
8867         fixed warning:
8868         * src/avr/gen.c:
8869         * src/pic/gen.c:
8870         * src/pic16/gen.c:
8871         * src/z80/gen.c:
8872         * src/xa51/gen.c:
8873
8874 2003-07-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8875
8876         added support for new library format to z80, gbz80 linkers:
8877         *link/z80/aslink.h
8878         *link/z80/lklex.c
8879         *link/z80/lklib.c
8880         *link/z80/lklist.c
8881
8882 2003-07-24  Bernhard Held <bernhard AT bernhardheld.de>
8883
8884         * src/SDCCicode.c (operandOperation): fixed problem with bitops and 0xffffffff;
8885         after {double d = 0xffffffff; long l = d;} l will be 0x80000000 (LONG_MIN)
8886
8887 2003-07-23  Bernhard Held <bernhard AT bernhardheld.de>
8888
8889         added DUMMY_READ_VOLATILE:
8890         * src/SDCC.y:
8891         * src/avr/gen.c:
8892         * src/xa51/gen.c:
8893         * src/z80/gen.c:
8894         * src/pic/gen.c:
8895         * src/pic16/gen.c:
8896         * src/mcs51/gen.c:
8897         * src/ds390/gen.c:
8898         * src/SDCCcse.c (algebraicOpts): many improvements
8899         * src/SDCCcse.h: removed algebraicOpts()
8900         * src/SDCCicode.c (picDummyRead): added
8901
8902 2003-07-23  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8903
8904         * as/mcs51/lkmem.c: Changed message "Insufficient DRAM memory" to
8905         "Insufficient space in data memory".
8906
8907 2003-07-20  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8908
8909         * src/mcs51/gen.c: fixed bug #771358
8910         * src/z80/gen.c: fixed bug #759087
8911
8912 2003-07-20  Bernhard Held <bernhard AT bernhardheld.de>
8913
8914         * src/pic16/glue.c: minor cleanup by Vangelis
8915
8916 2003-07-19  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
8917
8918         * device/include/regc515c.h: fixed #758477
8919         * device/lib/_gptrget.c: saving some cycles in generic pointer get
8920         * device/lib/_gptrput.c: saved a few bytes
8921         * my tab spacing is 8, yours too?)
8922         * device/lib/_ser.c: process RX bytes earlier than TX bytes
8923         * device/lib/serial.c: process RX bytes earlier than TX bytes
8924         * src/mcs51/gen.c(genGenPointerGet/Set): removed writing of type after postincrement
8925
8926 2003-07-18  Erik Petrich <epetrich AT ivorytower.norman.ok.us>
8927
8928         * src/z80/gen.c: fixed some right shift bugs (#772726 among them)
8929
8930 2003-07-17  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8931
8932     * link/z80/lklibr.c: fixed bug when there is a '.' in a library path.
8933
8934 2003-07-17  Bernhard Held <bernhard AT bernhardheld.de>
8935
8936         * device/lib/Makefile.in: bad fix, reverted to 1.43
8937
8938 2003-07-16  Bernhard Held <bernhard AT bernhardheld.de>
8939
8940         * device/lib/Makefile.in: added missing z80 object files
8941
8942 2003-07-14  Bernhard Held <bernhard AT bernhardheld.de>
8943
8944         * src/SDCCcse.c (algebraicOpts): CSE fun with &|^ and 0x00/0xff literals
8945         pic16 progress by Vangelis:
8946         * src/SDCCglobl.h:
8947         * src/SDCCmain.c:
8948         * src/pic/Makefile:
8949         * src/pic:
8950         * pic/Makefile:
8951         * pic16/device.c:
8952         * pic16/device.h:
8953         * pic16/gen.c:
8954         * pic16/gen.h:
8955         * pic16/genarith.c:
8956         * pic16/glue.c:
8957         * pic16/main.c:
8958         * pic16/pcode.c:
8959         * pic16/pcode.h:
8960         * pic16/pcodepeep.c:
8961         * pic16/peeph.def:
8962
8963 2003-07-13  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8964
8965     * src/SDCCmain.c, src/SDCCglobl.h: added option --no-std-crt0
8966
8967 2003-07-12  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8968
8969     * sdcc.dsw, all.dsp, link/z80/linkgbz80.dsp, as/z80/as-gbz80.dsp:
8970     added gbz80 build to MSVC project.
8971     * src/SDCCmain.c, src/SDCCglue.c, src/z80/main.c, src/z80/z80.dsp,
8972     link/z80/aslink.h, linkz80.dsp: cleaned up z80 and gbz80 asm files
8973     from 8051 stuff and setup so it links using a .lnk file.
8974
8975 2003-07-06  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8976
8977     * support/librarian/sdcclib.c: sdcc librarian.
8978     * as/mcs51/aslink.h, as/mcs51/lklib.c: Support for libraries created
8979     with sdcclib.
8980
8981 2003-07-03  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
8982
8983     * as/mcs51/lkmain.c: properly handle extensions in function afile.
8984
8985 2003-07-02  Borut Razem <borut.razem AT siol.net>
8986
8987         * src/port.h, src/SDCCmain.c, src/pic/glue.h, src/pic/main.c,
8988         src/pic16/glue.h, sdcc/src/pic16/main.c, src/izt/i186.c,
8989         src/izt/tlcs900h.c, src/avr/main.c, src/ds390/main.c, src/mcs51/main.c,
8990         src/xa51/main.c, src/z80/main.c:
8991         virtualization of glue() function: each port has it's own glue function,
8992         which is accessed by do_glue function pointer in PORT.general structure
8993
8994 2003-07-01 Kevin Vigor <kevin AT vigor.nu>
8995
8996         * DS800C400 fun, improved ROM interface and tinibios.
8997
8998 2003-06-27 Kevin Vigor <kevin AT vigor.nu>
8999
9000         * More support for DS80C400. Now includes beginning of interface to ROM.
9001
9002 2003-06-25  Bernhard Held <bernhard AT bernhardheld.de>
9003
9004         * src/mcs51/gen.c (gencjneshort): fixed bug #760345
9005
9006 2003-06-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9007
9008         * as/mcs51/lkaomf51.c: Make sure the size of the last procedure is correct.
9009
9010 2003-06-19  Borut Razem <borut.razem AT siol.net>
9011
9012         * src/z80/main.c: fixed Z80 port again: missing -k library paths in linker command line
9013
9014 2003-06-19  Borut Razem <borut.razem AT siol.net>
9015
9016         * src/SDCCutil.h, src/SDCCutil.c, src/SDCCglobl.h, src/SDCCmain.c, src/z80/main.c:
9017         fixed Z80 port - crt0.o: cannot open.
9018
9019 2003-06-19  Bernhard Held <bernhard AT bernhardheld.de>
9020
9021         * support/Util/MySystem.c (merge_command): revert bad fix
9022
9023 2003-06-18  Borut Razem <borut.razem AT siol.net>
9024
9025         * src/SDCC.lex, src/SDCCmain.c: fixed some warnings, introduced with changes made 15.06.1003
9026
9027 2003-06-18  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9028
9029         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9030         option --use-stdout sends errors to stdout instead of stderr.
9031
9032 2003-06-18  Bernhard Held <bernhard AT bernhardheld.de>
9033
9034         * support/Util/MySystem.c (merge_command): quick fix for Linux segfault with \"cmd\" arg
9035
9036 2003-06-15  Borut Razem <borut.razem AT siol.net>
9037
9038         * support/cpp2/sdcc.h: HAVE_DOS_BASED_FILE_SYSTEM defined for _WIN32
9039         * src/SDCC.lex: cloneXxx and copyAndFreeXxx functions for options and optimize stack handling
9040         * src/SDCCglobl.h, src/SDCCmain.c, src/ds390/main.c, src/mcs51/main.c, src/z80/main.c:
9041         fixed width array of pointers replaced with sets;
9042         multiple include and lib paths ared transferred to preprocessor and linker
9043         * src/SDCCset.c, src/SDCCset.h: added function setFromSetNonRev() and mergeSets()
9044         * src/SDCCsymt.c: reimplemented function inCalleeSaveList() by using sets instead
9045         fixed width array of pointers
9046         * src/SDCCutil.c, src/SDCCutil.h: added functions fputStrSet(), appendStrSet(), joinStrSet();
9047         removed functions addToList(), join(), joinn(), pathCharsEquivalent(), pathCharTransform(),
9048         fixupPath(), getPathDifference()
9049         * src/ds390/gen.c, src/mcs51/gen.c: reimplemented function  inExcludeList() by using sets instead
9050         fixed width array of pointers
9051
9052 2003-06-11  Bernhard Held <bernhard AT bernhardheld.de>
9053
9054         * src/pic16/ralloc.c: fix warnings
9055         * src/pic16/pcode.c: fix warning
9056
9057 2003-06-10  Scott Dattalo  <scott AT dattalo.com>
9058
9059          Scott D. for Vangelis Rokas (vrokas AT otenet.gr). I (scott) don't
9060         know all the details, but essentially this set of changes enable
9061         the pic16 port to generate movff instructions and generate assembler
9062         directives,
9063         * src/SDCCmain.c:
9064         * src/pic16/gen.c:
9065         * src/pic16/glue.c:
9066         * src/pic16/pcode.c:
9067         * src/pic16/device.c:
9068         * src/pic16/main.c:
9069         * src/pic16/pcode.h:
9070         * src/pic16/pcoderegs.c:
9071         * src/pic16/ralloc.c:
9072         * src/pic16/ralloc.h:
9073
9074 2003-06-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9075
9076         * support/Util/SDCCerr.c, src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx:
9077         added option --vc, so sdcc errors and warnings are compatible with
9078         Microsoft Visual Studio.
9079
9080 2003-06-07  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9081
9082         * device/lib/_atof.c, device/lib/Makefile.in, device/include/stdlib.h,
9083           device/lib/libfloat.lib: added atof function.
9084
9085 2003-06-04  Bernhard Held <bernhard AT bernhardheld.de>
9086
9087         * doc/sdccman.lyx: updated to Lyx 1.3
9088         * doc/cdbfileformat.lyx: updated to Lyx 1.3
9089         * doc/test_suite_spec.lyx: updated to Lyx 1.3
9090         * doc/Makefile: added fix for the \tabularnewline problem, thanks to Jesus
9091
9092 2003-06-03  Bernhard Held <bernhard AT bernhardheld.de>
9093
9094         * src/SDCCpeeph.c: separate peepRules2pCode() for pic16 by "Vangelis Rokas" <vrokas AT otenet.gr>
9095
9096 2003-06-02  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9097
9098         * doc/sdccman.lyx: cvs revision keywords, passing pdf information in latex preamble,
9099           additions to the "related tools/documentation" section
9100
9101 2003-06-02  Bernhard Held <bernhard AT bernhardheld.de>
9102
9103         * src/SDCCglue.c (tempfileandname): added check for missing TMP/TEMP/TMPDIR variable
9104
9105 2003-05-29  Bernhard Held <bernhard AT bernhardheld.de>
9106
9107         * src/pic/device.c: added 16F819, patch by "David I. Lehn" <dlehn AT vt.edu>
9108         * src/SDCCcse.c (algebraicOpts): fixed "c * 1"
9109
9110 2003-05-28  Bernhard Held <bernhard AT bernhardheld.de>
9111
9112         * doc/sdccman.lyx: fix double dash and other minor things
9113         * doc/Makefile: fix double dash
9114
9115 2003-05-28  Karl Bongers(patches from Martin Helmling)
9116         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files. Martin adds
9117           condition and ignore commands.
9118
9119 2003-05-28  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9120
9121         * doc/sdccman.lyx: Changes all over, index improved, smaller margins. The manual
9122           is in parts still quite out of date, I did changes as far as I felt makes sense
9123           for a non-native english speaker.
9124           Please feel free to add to the manual or to correct my changes.
9125         * doc/Makefile: undid touching the date of intermediate tex files.
9126
9127 2003-05-26  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9128
9129         * doc/sdccman.lyx: Manual has an index now
9130
9131 2003-05-25  Bernhard Held <bernhard AT bernhardheld.de>
9132
9133         Finalize muluint/mulsint and mululong/mulslong merging:
9134         * device/lib/_mulint.c
9135         * device/lib/_mullong.c
9136         * device/lib/gbz80/mul.s
9137         * device/lib/gbz80/stubs.s
9138         * device/lib/z80/mul.s
9139         * device/lib/z80/stubs.s
9140         * src/SDCCsymt.c (initCSupport)
9141
9142 2003-05-25  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9143
9144         * as/mcs51/lkaomf51.c: Address space 'z' was missing.
9145         * src/avr/avr.dsp, src/ds390/ds390.dsp, src/mcs51/mcs51.dsp,
9146           src/pic/pic.dsp, src/pic16/pic16.dsp, src/xa51/xa51.dsp,
9147           src/x80/z80.dsp: peep.rul is bigger now, so /Zm1000 is used
9148           instead of /Zm500.
9149
9150 2003-05-25  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9151
9152         * src/mcs51/peeph.def: added rules 244.x, 245.x. Although they pass
9153           the regression tests I'm not brave enough to enable 245.b, 245.c
9154         * doc/sdccman.lyx: added latex preamble for hyperref package.
9155           Using pdflatex this will give you a hyperlinked pdf file with
9156           bookmarks. (prepend '%' before /usepackage if this breaks something)
9157
9158 2003-05-24  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9159
9160          * doc/sdccman.lyx: updated information about .adb files (fixed bug 742649)
9161
9162 2003-05-22  Bernhard Held <bernhard AT bernhardheld.de>
9163
9164         * src/pic16/pcode.c (pic16_get_op_from_instruction): fixed a gcc 3.x warning
9165
9166 2003-05-21    <johan AT balder>
9167
9168         * src/SDCCglue.c (printIval): fixed bug #739934
9169
9170 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9171
9172         Applied patch from bug 737905 (renamed yylineo to mylineno):
9173         * src/altlex.c
9174         * src/SDCCast.c
9175         * src/SDCglobl.h
9176         * src/SDCC.lex
9177         * src/SDCCsymt.c
9178         * src/SDCCval.c
9179         * src/pic16/pcode.c: Cleaned warnings
9180         * src/pic16/pcodeflow.c: Cleaned warnings
9181         * src/pic16/pcoderegs.c: Cleaned warnings
9182
9183 2003-05-19  Scott Dattalo  <scott AT dattalo.com>
9184
9185         * src/pic16/pcode.c: Cleaned warnings
9186         * src/pic16/pcodepeep.c: Cleaned warnings
9187         * src/pic16/ralloc.c: Cleaned warnings
9188
9189 2003-05-19  Bernhard Held <bernhard AT bernhardheld.de>
9190
9191         * doc/sdccman.lyx: fixed bug 739745
9192         * src/pic16/pcode.c (pic16_get_op): fixed warning on alpha
9193
9194 2003-05-18  Bernhard Held <bernhard AT bernhardheld.de>
9195
9196         * src/port.h: removed DEFAULT_PORT, it's not yet pic16 ;-)
9197         it can be defined with CFLAGS when running configure
9198         * src/SDCCmain.c: fixed compiling + linking with object files
9199
9200 2003-05-18  Vangelis Rokas (vrokas AT otenet.gr)
9201
9202         * configure.in: configure for pic16 port,
9203             added --disable-pic16-port
9204         * sdccconf_in.h: added macro OPT_DISABLE_PIC16
9205         * src/SDCCmain.c: linkOptions is changed to set *,
9206             added if/endif conditional macros to remove options help
9207             messages from optionsTable when a port is not configured, added
9208             support for the PIc16 port in the ports table, when executing
9209             the compiler with no port specified on command line, a default
9210             port is selected with the new macro DEFAULT_PORT which is
9211             defined in port.h, in setDefaultOptions() linkOptions is removed
9212             from initialization assignment, since now it is a set,
9213             parseCmdLine uses setParseWithComma for linkOptions, in
9214             linkEdit() linkOptions are accessed with new function indexSet()
9215             which returns the i'th item of a set variable. See SDCCset.c, in
9216             linkEdit() when calling buildCmdLine(), added linkOptions as
9217             last argument. Now users can pass arguments to gplink via the
9218             -Wl option, main() uses pic16glue() to glue up pic16 programs
9219         * src/SDCCpeeph.c: various changes to support pic16
9220         * src/SDCCset.c: added function  void *indexSet(set *, int)  to
9221             return the i'th item of the set
9222         * src/SDCCset.h: added function prototype for indexSet()
9223         * src/SDCCsymt.c: in checkSClass(), added support for PIC16
9224         * src/clean.mk: added pic16 in CLEANALLPORTS variable
9225         * src/port.h: added TARGET_ID_PIC16,TARGET_IS_PIC16 macro,
9226             added macro DEFAULT_PORT
9227         * src/pic/main.c: corrected arguments of gplnk in _linkCmd
9228         * src/pic16/gen.c: bug fix in genCpl(), now the correct code is
9229             generated
9230         * src/pic16/glue.c: commented out some error producing lines
9231         * src/pic16/main.c: __config directives are commented out to stop
9232             gpasm complaining and test the linkage with gplink, _linkCmd and
9233             _asmCmd changed to be more gplink and gpasm friendly
9234         * src/pic16/peeph.def: peep rule 3 is commented out, since it
9235             produced an error when parsed, peep rule 12 is added to utilize
9236             movff, but it is commented out since the pCode does not support
9237             yet a command with 2 address arguments
9238
9239 2003-05-18    <johan AT balder>
9240
9241         * src/ds390/gen.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9242         * src/ds390/main.c (genArrayInit): removed obsolete and buggy ARRAYINIT
9243 2003-05-17  Karl Bongers(apply patches from Martin Helmling)
9244
9245         * debugger/mcs51/sdcdb.c,cmd.c,break.c and .h files.
9246   Added feature to script commands from file.
9247
9248 2003-05-14  Bernhard Held <bernhard AT bernhardheld.de>
9249
9250         * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
9251         * src/SDCCutil.c: include ctype.h for win32
9252
9253 2003-05-13  Bernhard Held <bernhard AT bernhardheld.de>
9254
9255         * src/pic16/*: removed CR from many files, reported by Vangelis Rokas
9256
9257 2003-05-12  Karl Bongers(apply development patches from Martin Helmling)
9258
9259         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,break.c and .h files.
9260   Fixed so you can set breakpoints prior to run, run does not stop
9261   on entry now.  Add tbreak.  Other enhancements and fixes for use
9262   with ddd.
9263
9264 2003-05-12  Borut Razem <borut.razem AT siol.net>
9265
9266         * src/SDCCmain.c: fixed the problem with searching the DATADIR as the last resort on *nix
9267
9268 2003-05-11  Borut Razem <borut.razem AT siol.net>
9269
9270         * src/SDCCutil.c: WIN32 version of getBinPath() calls GetModuleFileName() to determine
9271         the path of bin directory, so that PATH is the only env. variable, which has to be set
9272         in case of standard installation.
9273         * src/ds390/ds390.dsp: increased value of /Zm option to 1000
9274         * src/pic/main.c: add quotes to file name parameters for gplink and gpasm
9275         * src/SDCCglobl.h, src/SDCCmain.c, doc/sdccman.lyx: added --print-search-dirs command line option
9276
9277 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9278
9279         * src/SDCCmain.c (linkEdit): fixed buffer overflow for gbz80
9280         * support/regression/Makefile: inter-port-clean is no longer nesessary, the
9281         temp files are in the port dir; clean the gen/test directory when
9282         generating new test.c
9283         * support/regression/ports/host/spec.mk: defined OBJEXT for target clean
9284         * support/regression/tests/vaargs.c: fixed gcc 3.3 warning
9285         * support/regression/tests/zeropad.c: added
9286
9287 2003-05-09    <johan AT balder>
9288
9289         * src/SDCCglue.c: fixed bug #597940
9290
9291 2003-05-05  Karl Bongers(apply patches from Martin Helmling)
9292
9293         * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9294   cache sfr, optimize next,step, fix off by one sourceline,
9295   support ddd list function.
9296         * sim/ucsim/cmd.src/newcmd.cc - small fix for sdcdb use.
9297
9298 2003-05-04  Bernhard Held <bernhard AT bernhardheld.de>
9299
9300         * support/regression/HTMLgen.py: added compare_s2f()
9301         * support/regression/Makefile: redo 1.27
9302         * support/regression/generate-cases.py: redo 1.5
9303
9304 2003-04-30  Bernhard Held <bernhard AT bernhardheld.de>
9305
9306         * support/regression/tests/float.c: workaround 33 bit hex constant
9307         * support/regression/tests/simplefloat.c: fix division for host
9308
9309 2003-04-29  Scott Dattalo  <scott AT dattalo.com>
9310
9311         * src/pic/pcoderegs.c Applied patch from Jim Hawkridge <jim AT jimhawkridge.uk.eu.org>
9312         that tame's the PIC's over-aggressive optimizer.
9313
9314 2003-04-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9315
9316          * src.dsw, link/z80/aslink.h, link/z80/linkz80.dsp: z80 linker
9317          support for MSVC.
9318
9319 2003-04-29  Kevin Vigor <kevin AT vigor.nu>
9320
9321         Initial support for DS80C400. "Hello world" runs on TINIm400
9322         (with polled I/O).
9323
9324 2003-04-28  Karl Bongers(apply patches for Martin Helmling)
9325
9326          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,symtab.c and .h files.
9327          * Some notes on ddd usage added in debugger/README
9328          Martin Helmling adding more features and fixes for ddd GUI debugger.
9329          Code added for nexti, stepi, up, down, and other adjustments.
9330
9331 2003-04-28  Scott Dattalo  <scott AT DATTALO.COM>
9332
9333         * src/pic/pCodepeep.c non-wildcard asmops are now handled
9334         * src/pic/peeph.def Added two rules to optimize carry manipulation
9335         * src/pic/* removed debug printfs
9336
9337 2003-04-28  Bernhard Held <bernhard AT bernhardheld.de>
9338
9339         * debugger/mcs51/cmd.c: added header newalloc.h
9340
9341 2003-04-26  Bernhard Held <bernhard AT bernhardheld.de>
9342
9343         * as/Makefile: new EXEEXT
9344         * as/z80/Makefile: remove trailing slash of BUILDIR
9345         * as/z80/clean.mk: new EXEEXT
9346         * Makefile.common.in: add to CFLAGS (and others), don't replace it
9347         * support/cpp2/Makefile.in: new EXEEXT
9348         * src/pic/glue.c (pic14emitRegularMap): fixed warning
9349
9350 2003-04-24  Bernhard Held <bernhard AT bernhardheld.de>
9351
9352         Cygwin's gcc always appends .exe: 'gcc -o a a.c' creates a.exe;
9353         EXEEXT was introduced to fix all related problems with targets
9354         "clean", "install" and "uninstall"; a couple of further flaws
9355         especially with "clean" have been fixed too
9356         * as/mcs51/Makefile.in
9357         * as/mcs51/clean.mk
9358         * as/z80/Makefile
9359         * Makefile
9360         * clean.mk
9361         * debugger/mcs51/Makefile.in
9362         * debugger/mcs51/clean.mk
9363         * link/z80/Makefile
9364         * link/z80/Makefile.in
9365         * link/z80/clean.mk
9366         * link/Makefile
9367         * packihx/Makefile.in
9368         * packihx/clean.mk
9369         * sim/ucsim/Makefile
9370         * sim/ucsim/clean.mk
9371         * sim/ucsim/avr.src/Makefile.in
9372         * sim/ucsim/avr.src/clean.mk
9373         * sim/ucsim/s51.src/Makefile.in
9374         * sim/ucsim/s51.src/clean.mk
9375         * sim/ucsim/xa.src/Makefile.in
9376         * sim/ucsim/xa.src/clean.mk
9377         * sim/ucsim/z80.src/Makefile.in
9378         * sim/ucsim/z80.src/clean.mk
9379         * sim/ucsim/main_in.mk
9380         * sim/ucsim/packages_in.mk
9381         * sim/ucsim/gui.src/Makefile.in
9382         * sim/ucsim/gui.src/serio.src/Makefile.in
9383         * sim/ucsim/gui.src/serio.src/clean.mk
9384         * src/Makefile.in
9385         * src/clean.mk
9386         * support/cpp2/Makefile.in
9387         * support/cpp2/clean.mk
9388         * support/makebin/Makefile
9389         * support/makebin/clean.mk
9390         * support/scripts/sdcc_mingw32: --program-suffix no longer needed
9391         * doc/sdccman.lyx: --program-suffix no longer needed
9392
9393 2003-04-23  Karl Bongers(apply patches for Martin Helmling)
9394
9395          * debugger/mcs51/sdcdb.c,simi.c,cmd.c,..
9396          Martin Helmling added support for ddd GUI debugger.
9397          Code added to display assembly, set variables, and other commands
9398          to interface to ddd.
9399
9400 2003-04-23  Bernhard Held <bernhard AT bernhardheld.de>
9401
9402         * as/Makefile: fix target clean
9403         * as/clean.mk: fix target clean
9404         * as/z80/clean.mk: fix target clean
9405
9406 2003-04-22  Bernhard Held <bernhard AT bernhardheld.de>
9407
9408         * Makefile.common.in: added  AT EXEEXT AT
9409         * configure.in: removed all mingw32 stuff
9410         * configure: rebuilt from configure.in
9411         * doc/sdccman.lyx: updated section "installation"
9412         * support/scripts/sdcc_mingw32: adapted to configure
9413         * support/scripts/sdcc_cygwin_mingw32: added
9414
9415 2003-04-22  Scott Dattalo  <scott AT dattalo.com>
9416
9417         * src/pic Added object file support for the PIC port
9418         * src/pic Applied patch from Craig Franklin (this started the object file support)
9419         * src/regression Updated the PIC regression tests for object files
9420
9421 2003-04-20  Borut Razem <borut.razem AT siol.net>
9422
9423         * sdcc/as/mcs51/lklex.c: make getfid() more robust and fixed gcc warning:
9424           lklex.c: In function `getfid':
9425           lklex.c:203: warning: array subscript has type `char'
9426         * src/SDCCglobl.h: small change in stack handling macros, to avoid crash when compiled
9427           with MSVC with global optimization enabled (probably an cl compiler bug ;-)
9428         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added function fatal(), called from
9429           stack handling macros
9430
9431 2003-04-19  Borut Razem <borut.razem AT siol.net>
9432
9433         * "handling space characters in file path" task:
9434         * src/SDCCmacro.c: fixed bug in handlig quote at the end of line
9435         * support/Util/BuildCmd.c: define par as NULL if parameter value is invalid
9436         * support/Util/MySystem.h: make it self-sufficient
9437         * src/avr/main.c, src/ds390/main.c, src/mcs51/main.c, src/pic/main.c, src/xa51/main.c,
9438           src/z80/main.c, sdcc/as/mcs51/lklex.c:
9439           handling space characters in file path
9440         * src/SDCCmain.c: introduced setDataPaths() function, {datadir} macro
9441           (it will be used by assemblers, which have their own includes, e.g. gpasm)
9442         * support/Util/MySystem.c: handling space characters in executable's path
9443
9444 2003-04-19  Bernhard Held <bernhard AT bernhardheld.de>
9445
9446         * as/z80/Makefile: fix permanent rebuild of z80
9447         * sim/ucsim/gui.src/Makefile.in: target "install" builds the same packages as target "all"
9448         * support/regression/tests/bitfields.c: added Johan's bitfields.c
9449
9450 2003-04-18      Kevin Vigor <kevin AT vigor.nu>
9451
9452         * src/SDCCopt.c: add special case optimization to replace modulo by
9453           a power of two with a bitwise AND.
9454
9455 2003-04-18    <johan AT balder>
9456
9457         * src/mcs51/gen.c (getFreePtr): fixed bug #635354
9458
9459 2003-04-17    <johan AT balder>
9460
9461         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #716790 and removes lot's of redundant register usage around function calls
9462         * src/mcs51/ralloc.c (packRegisters): fixed bug #720667
9463
9464 2003-04-13  Borut Razem <borut.razem AT siol.net>
9465
9466         * doc/sdccman.lyx: updated info about #pragma SAVE/RESTORE nesting
9467         * configure.in, configure: fixed problems on cygwin/WinCVS environmet with ports.* line endings;
9468           fixed mingw problem in adl_NORMALIZE_PATH
9469
9470 2003-04-12  Borut Razem <borut.razem AT siol.net>
9471
9472         * fixed "#pragma SAVE/RESTORE can not be nested":
9473         * src/SDCC.lex: reworked pragma handling functions
9474         * sdcc/src/SDCCglobl.h: reworked stack handling macros
9475         * support/Util/SDCCerr.c, support/Util/SDCCerr.h: added E_STACK_VIOLATION error
9476
9477 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9478
9479         * src/SDCCutil.c (pathEquivalent): defined but not used
9480         * debugger/mcs51/sdcdb.c: replace SDCC_LIB_DIR
9481         * configure.in: remove sdcc_datadir, sdcc_lib_dir and sdcc_include_dir
9482         * configure: rebuilt from configure.in
9483         * sdccconf_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9484         * sdcc_vc_in.h: remove SDCC_LIB_DIR and SDCC_INCLUDE_DIR
9485         * device/include/Makefile.in: replace sdcc_datadir
9486         * device/lib/Makefile.in: replace sdcc_datadir
9487         * Makefile.common.in: add LDFLAGS from configure
9488         * packihx/Makefile.in: use LDFLAGS
9489         * src/Makefile.in: use LDFLAGS
9490         * support/cpp2/Makefile.in: add LDFLAGS from configure
9491         * support/makebin/Makefile: use LDFLAGS
9492         * .version: bumped version number to 2.3.5
9493
9494 2003-04-12  Borut Razem <borut.razem AT siol.net>
9495
9496         * completed "different paths" task:
9497         * src/SDCCmacro.c: fixed bug in handling quotes
9498         * src/SDCCutil.c, src/SDCCutil.c: rewritten getPrefixFromBinPath()
9499         * src/SDCCmain.c: _discoverPaths() replaced with setBinPaths(), setIncludePath() and setLibPath()
9500
9501 2003-04-12  Bernhard Held <bernhard AT bernhardheld.de>
9502
9503         * src/pic/pcoderegs.c (Remove1pcode): fix warning on alpha
9504
9505 2003-04-11 kevin Vigor <kevin AT vigor.nu>
9506
9507         * ds390/gen.c ds390/peeph.def: fix bug 706781
9508
9509 2003-04-11  Borut Razem <borut.razem AT siol.net>
9510
9511         * support/Util/dbuf.c, support/Util/dbuf.h: update to version 1.1.1 - re-added C++ stuff to make it still more portable
9512
9513 2003-04-10  Scott Dattalo  <scott AT dattalo.com>
9514
9515         * src/pic/* Applied the pointer-to-function patch from Steve Tell.
9516         * src/pic/* Fixed several pointer bugs. (PIC port broke when the ruonly bit was
9517          set - this bit used to not be set...).
9518         * src/pic/gen.c Fixed buf 609268 ==> x = (x+1) & 0xf; generated
9519           bad code in PIC Port
9520         * src/regression/and2.c added to test bug 609268
9521         * src/regression/Makefile added and2.c to regression test
9522
9523
9524 2003-04-08    <johan AT CP255758-A>
9525
9526         * src/mcs51/gen.c (gen51Code): display reg usage in --icode-in-asm
9527         * src/mcs51/ralloc.c (serialRegAssign): update the registers in use and save some slocs
9528         * src/SDCCicode.h: added riu to show the register usage in --icode-in-asm
9529
9530 2003-04-07  Bernhard Held <bernhard AT bernhardheld.de>
9531
9532         * configure.in: fully support prefix, exec_prefix, datadir, docdir;
9533         fix bug #487815
9534         * support/cpp2/Makefile.in: fix bug #487815
9535         * configure: rebuilt from configure.in
9536         * Makefile.common.in: docdir changed, new path suffixes
9537         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9538         * sdcc_vc_in.h: reflect changes from sdccconf.h
9539         * src/SDCCglobl.h: remove *SEPARATOR_CHARS, they are now in sdccconf.h
9540         * src/SDCCutil.h: remove BINDIR hack
9541         * doc/sdccman.lyx: update new path hierarchy
9542
9543 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9544
9545         * src/SDCCpeeph.c: added okToRemoveSLOC test
9546
9547 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9548
9549         * device/lib/printf_fast.c: added leading zero format ("%06d", etc)
9550
9551 2003-04-06    Paul Stoffregen <paul AT pjrc.com>
9552
9553         * src/SDCCpeeph.c: added labelIsReturnOnly test
9554         * src/mcs51/peeph.def: Peephole 244: replace ljmp to ret with ret
9555
9556 2003-04-05    <johan AT balder>
9557
9558         * src/SDCCcse.c (cseAllBlocks): fixed bug #460088
9559         * src/SDCCloop.c (DEFSETFUNC): fixed bug #460088
9560         * src/SDCCopt.c (eBBlockFromiCode): fixed bug #460088
9561         * src/SDCCast.c: fixed a warning
9562         * src/SDCCast.h: fixed a warning
9563         * src/SDCCicode.c (operandFromAst): fixed a warning
9564
9565 2003-04-04    <johan AT balder>
9566
9567         * src/SDCCloop.c (DEFSETFUNC): undid the fix for bug #519584
9568         * src/SDCCast.c (decorateType): fixed bug #715076
9569         * src/SDCC.y: fixed bug #702907
9570
9571 2003-04-03    <johan AT balder>
9572
9573         * device/lib/_mulint.c (_muluint): new #pragma LESS_PEDANTIC
9574         * src/SDCCopt.c (eBBlockFromiCode): new #pragma LESS_PEDANTIC
9575         * src/SDCCglobl.h (PRAGMA_LESSPEDANTIC): new #pragma LESS_PEDANTIC
9576         * src/SDCC.lex (doPragma): new #pragma LESS_PEDANTIC
9577         * src/SDCCmain.c (parseCmdLine): new #pragma LESS_PEDANTIC
9578
9579 2003-04-03  Bernhard Held <bernhard AT bernhardheld.de>
9580
9581         * _decdptr.c: fix return values
9582         * _gptrget.c: fix return values
9583         * _gptrgetc.c: fix return values
9584         * _gptrput.c: fix return values
9585         * _mulint.c: fix return values
9586         * as/z80/Makefile: fix 'make -j' problem
9587
9588 2003-04-02  Bernhard Held <bernhard AT bernhardheld.de>
9589
9590         * Makefile.common.in: unused PORT, SCC and SAS removed, fixed docdir
9591         * configure.in: big cleanup, updated to autoconf 2.5x
9592         * configure: rebuilt from configure.in
9593         * sdccconf_in.h: new RETSIGTYPE, and other PATHs
9594         * sdcc_vc_in.h: reflect changes from sdccconf.h
9595         * doc/Makefile: fixed a flaw in "make install"
9596
9597 2003-04-02    <johan AT balder>
9598
9599         * src/ds390/gen.c (genCmp): no comments
9600         * src/mcs51/gen.c (genCmp): no comments
9601         * src/SDCCopt.c (eBBlockFromiCode): detect missing return values
9602         * src/SDCCast.c (ast_print): fixed the function type in --dumptree
9603
9604 2003-04-01  Bernhard Held <bernhard AT bernhardheld.de>
9605
9606         * support/regression/generate-cases.py: place generated file in given sub directory
9607         * support/regression/ports/host/spec.mk: prevent removal of testfwk.o
9608         * support/regression/Makefile: improvements for 'make -j';
9609         side effect: it's simpler and faster now
9610
9611 2003-03-31  Borut Razem <borut.razem AT siol.net>
9612
9613         * src/z80/main.c: link-{port} and as-{port} defined without path
9614         * src/src.dsp: support/Util/MySystem.h and src/SDCCutil.h added to project
9615
9616 2003-03-31  Bernhard Held <bernhard AT bernhardheld.de>
9617
9618         * Makefile, src/Makefile.in: add dependencies, so that 'make -j' works
9619
9620 2003-03-30  Borut Razem <borut.razem AT siol.net>
9621
9622         * support/Util/BuildCmd.c, support/Util/BuildCmd.h: rewrite buildCmdLine(),
9623           changed type of list parameter to set
9624         * src/ds390/main.c: changed type of parameter asmOptions to set in _tininative_do_assemble()
9625         * src/port.h: changed type of do_assemble() parameter to set
9626         * src/SDCCmain.c: type of asmOptions changed to set, introduced setParseWithComma(),
9627           sdcpp defined without path, removed variable VersionString, introduced set binPathSet,
9628           definition of "cppoutfilename" macro with NULL value in preProcess()
9629         * src/SDCCglobl.h: included "SDCCset.h", added declaration of setParseWithComma()
9630         * src/SDCCglue.c: removed variable VersionString, inroduced spacesToUnderscores()
9631         * support/Util/MySystem.c, support/Util/MySystem.h: rewrite, char *ExePathList[]
9632           replaced with set *binPathSet
9633         * shash_add() deallocates the item, if allready exsists, before adding the new one
9634         * src/SDCCmacro.c: handling macros with empty or NULL values in _evalMacros()
9635
9636 2003-03-30  Scott Dattalo  <scott AT dattalo.com>
9637
9638         * src/pic/gen.c: Commit patch from Steve Tell <tell AT telltronics.org> that fixes
9639           a nested for loop bug in the PIC port
9640         * src/regression/nestfor.c: new regression test file Steve wrote to test nested
9641           for loops
9642
9643 2003-03-29  Bernhard Held <bernhard AT bernhardheld.de>
9644
9645         * support/Util/dbuf.h: remove C++ stuff to make it portable
9646
9647 2003-03-28  Borut Razem <borut.razem AT siol.net>
9648
9649         * src/SDCC.lex: Fix for bug #711240: dynamic buffer handling of C
9650           literal strings in stringLiteral()
9651         * support/Util/dbuf.c, support/Util/dbuf.h: added: dynamic buffer handling
9652         * src/Makefile.bcc, src/Makefile.in, src\src.dsp: added support/Util/dbuf.c
9653           to the project
9654
9655 2003-03-27  Paul Stoffregen <paul AT pjrc.com>
9656
9657         * src/SDCCpeeph.c (pcDistance): accurate byte distance for mcs51
9658
9659 2003-03-26    <johan AT balder>
9660
9661         * src/mcs51/gen.c (saveRegisters): catched symbol abuse
9662         * src/ds390/gen.c (saveRegisters): catched symbol abuse
9663         * src/SDCCast.c (decorateType): fixed " -v < 3"
9664
9665 2003-03-23  Bernhard Held <bernhard AT bernhardheld.de>
9666
9667         * doc/cdbfile.html: removed, replaced by cdbfileformat.lyx
9668         Added Lenny Story's debug infrastructure changes:
9669         * src/Makefile.in:  added new files cdbFile.c and SDCCdebug.c
9670         * src/Makefile.bcc: added new files cdbFile.c and SDCCdebug.c
9671         * src/cdbFile.c: added
9672         * src/SDCCdebug.c: added
9673         * src/SDCCdebug.h: added
9674         * src/SDCCast.c (createFunction)
9675         * src/SDCCglue.c (emitRegularMap, emitStaticSeg, emitOverlay, glue)
9676         * src/SDCCmain.c (parseCmdLine, main)
9677         * src/SDCCmem.c (redoStackOffsets)
9678         * src/SDCCsymt.c (cdbStructBlock, cdbTypeInfo, cdbSymbol, cdbStruct, cdbStructBlock)
9679         * src/SDCCsymt.h
9680         * src/common.h
9681         * src/avr/gen.c (genAVRCode)
9682         * src/ds390/gen.c (gen390Code)
9683         * src/mcs51/gen.c (gen51Code)
9684         * src/pic/gen.c (genpic14Code)
9685         * src/pic/glue.c (pic14emitRegularMap, pic14emitStaticSeg, pic14emitOverlay, picglue)
9686         * src/xa51/gen.c (genXA51Code)
9687         * src/SDCCast.c: fixed "void foo(void){char c; -c < 0;}"
9688
9689 2003-03-22  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9690
9691         * src/mcs51/gen.c (genCodePointerGet): quicker code for bug #700797
9692         * src/mcs51/peeph.def: added rules 177, 241.x to 243, touched 181, 182.x, 193.x
9693
9694 2003-03-22    <johan AT balder>
9695
9696         * src/SDCCicode.c (geniCodeDerefPtr): fixed bug #698231
9697
9698 2003-03-21  Bernhard Held <bernhard AT bernhardheld.de>
9699
9700         * support/scripts/sdcc_mingw32: adapted to configure from autoconf 2.54
9701         * doc/cdbfileformat.lyx: added, written by Lenny Story
9702         * doc/Makefile: added cdbfileformat.lyx
9703         * doc/clean.mk: added cdbfileformat.lyx
9704
9705 2003-03-20  Bernhard Held <bernhard AT bernhardheld.de>
9706
9707         * src/mcs51/peeph.def: fix bug #705773
9708
9709 2003-03-20    <johan AT balder>
9710
9711         An sfr/sbit can have an "at #" AND an initializer
9712         * src/SDCCsymt.c (checkSClass):
9713         * src/SDCCmem.c (allocGlobal):
9714         * src/SDCCmem.c (allocLocal):
9715         * src/SDCCast.c (createBlock):
9716
9717 2003-03-17  Bernhard Held <bernhard AT bernhardheld.de>
9718
9719         * src/ds390/peeph.def: fix bug #704878: added rule 213.b suggested by Jan Rejlek
9720
9721 2003-03-16    <johan AT balder>
9722
9723         Undid the hackup of const and volatile, the problem is much bigger
9724         * src/SDCC.y:1.65
9725         * src/SDCCast.c:1.171
9726         * src/SDCCglue.c:1.138
9727         * src/SDCCicode.c:1.146
9728         * src/SDCCsymt.c:1.150
9729         * src/SDCCval.c:1.65
9730
9731 2003-03-15  Bernhard Held <bernhard AT bernhardheld.de>
9732
9733         * src/mcs51/ralloc.c (packRegsForAssign): fixed bug #703541
9734         * src/ds390/gen.c (genAddrOf): fixed bug #704087
9735
9736 2003-03-13    <johan AT balder>
9737
9738         Hackup const and volatile modifiers in type chains a bit:
9739         * src/SDCC.y:1.63
9740         * src/SDCCast.c:1.169
9741         * src/SDCCglue.c:1.136
9742         * src/SDCCicode.c:1.143
9743         * src/SDCCsymt.c1.146
9744         * src/SDCCsymt.h1.59
9745         * src/SDCCval.c:1.63
9746
9747 2003-03-12    <johan AT balder>
9748
9749         * src/SDCCBBlock.h: more LRH debugging junk
9750         * src/SDCCcflow.h: more LRH debugging junk
9751         * src/SDCCloop.c: more LRH debugging junk
9752         * src/SDCC.y (struct_declaration): fixed bug #697590
9753         * src/SDCCsymt.[hc] (cloneSpec): NEVER EVER use this again
9754         * src/ds390/gen.c (aopForRemat): fixed bug #700031
9755         * src/SDCCglue.c (emitStaticSeg): fixed bug #700797
9756
9757 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9758         * src/SDCCpeeph.c: quit being lazy and made proper fix (peephole
9759         test function names must now match exactly).
9760         * src/SDCCcse.c: added special case in findCheaperOp to allow
9761         extending a short integer. Makes less awful code for bug 700121 test case.
9762
9763 2003-03-11  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
9764
9765         * as/mcs51/lkmain.c: Added ASlink-Warning to messages
9766         * as/mcs51/lkaomf51.c: Fixed bug when linking asmblink example
9767
9768 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9769
9770         * src/SDCCpeeph.c: fix so that operandsNotEqualX functions are
9771         actually called (operandsNotEqual() was called for all
9772         operandsNotEqualX tests).
9773
9774 2003-03-11 Kevin Vigor <kevin AT vigor.nu>
9775
9776         * src/SDCCcse.c: fix findCheaperOp to prevent replacing int types
9777         with shorter literals. Fixes bug 700121.
9778
9779 2003-03-11    <johan AT balder>
9780
9781         * src/SDCCsymt.c (compareType): a (void *) can be assigned to any pointer
9782
9783 2003-03-11  Bernhard Held <bernhard AT bernhardheld.de>
9784
9785         * src/SDCCloop.c (mergeRegions): an evil beast is dead
9786         * src/SDCCmain.c (preProcess): minor cleanup: eliminate preOutName
9787
9788 2003-03-10  Borut Razem <borut.razem AT siol.net>
9789
9790         * src/SDCCmain.c: pipe preprocessor's output
9791         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9792         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9793         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9794         which closes all pipes in pipeSet set
9795         * src/SDCCset.c: free deleted item in function deleteSetItem()
9796         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9797         moved from z80 to src subproject
9798         * .version: increased version number to 2.3.4
9799
9800 2003-03-10  Bernhard Held <bernhard AT bernhardheld.de>
9801
9802         * support/regression/ports/mcs51/spec.mk: increase timeout for CF's sparc to 30s
9803         * support/regression/ports/ds390/spec.mk: increase timeout for CF's sparc to 25s
9804         * support/regression/ports/xa51/spec.mk: fix typo
9805
9806 2003-03-09  Bernhard Held <bernhard AT bernhardheld.de>
9807
9808         * src/SDCCglobl.h: PATH_MAX is already defined in mingw32 headers
9809
9810 2003-03-09  Borut Razem <borut.razem AT siol.net>
9811
9812         * src/SDCCmain.c: pipe preprocessor's output
9813         * support/Util/MySystem.c, support/Util/MySystem.h: added my_popen()
9814         * sdcc_vc_in.h: define pclose as _pclose for WIN32
9815         * src/SDCCglue.c, src/SDCCglue.h: added set pipeSet, added function closePipes,
9816         which closes all pipes in pipeSet set
9817         * src/SDCCset.c: free deleted item in function deleteSetItem()
9818         * src/src.dsp, src/z80/z80.dsp: files support/Util/BuildCmd.c and support/Util/MySystem.c
9819         moved from z80 to src subproject
9820
9821 2003-03-09  Borut Razem <borut.razem AT siol.net>
9822
9823         * src/SDCCglue.c: re-implemented tempfilename() and tempfile(): using mkstemp() if available
9824         * src/SDCCsymt.h: fixed MSVC and BORLANDC compilation (included SDCCglobl.h instead srccconf.h)
9825         * sdcc_vc_in.h: explicitly undefined HAVE_MKSTEMP which is not available on BORLANDC and MSVC
9826         * src/SDCCset.h: removed inclusion of sdccconf.h or sdcc_vc.h
9827         * src/SDCCglobl.h: unification of WIN32 native definitions
9828
9829 2003-03-09  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9830
9831         * src/mcs51/gen.c: applied in-/dec patch mentioned on sdcc-devel 2003-03-01
9832
9833 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9834
9835         * src/configure.in:   check for endianess (even while cross-compiling)
9836         * src/configure:      check for endianess (even while cross-compiling)
9837         * src/configure_in.h: check for endianess (even while cross-compiling)
9838         * src/avr/gen.c:        remove old endianess stuff
9839         * src/mcs51/gen.c:      remove old endianess stuff
9840         * src/ds390/gen.c:      remove old endianess stuff
9841         * src/pic/gen.c:        remove old endianess stuff
9842         * src/pic/genarith.c:   remove old endianess stuff
9843         * src/pic/glue.c:       fix endianess check
9844         * src/pic16/gen.c:      remove old endianess stuff
9845         * src/pic16/genarith.c: remove old endianess stuff
9846         * src/pic16/glue.c:     fix endianess check
9847         * src/xa51/gen.c:       remove old endianess stuff
9848         * src/z80/gen.c:        fix endianess check
9849         * src/SDCCglue.c:       fix endianess check
9850         * src/ds390/peeph.def: fix bug 700036
9851
9852 2003-03-08  Bernhard Held <bernhard AT bernhardheld.de>
9853
9854         * src/SDCCsymt.h: use appropriate data-types on host for SDCC's int and long
9855         * src/configure: find appropriate data-types on host for SDCC's int and long
9856         * src/configure.in: find appropriate data-types on host for SDCC's int and long
9857         * src/sdccconf_in.h: find appropriate data-types on host for SDCC's int and long
9858         * src/xa51/gen.c: use %d, not %ld for 4 byte variables
9859
9860 2003-03-07    <johan AT balder>
9861
9862         Just a big NOOP:
9863                 some minor cleanups before the big shot
9864                 OP_DEFS and OP_USES now use Kevin's protection
9865                 new option --nolabelopt
9866
9867         * src/SDCCBBlock.c:
9868         * src/SDCCast.c,:
9869         * src/SDCCcflow.c:
9870         * src/SDCCcse.c:
9871         * src/SDCCicode.c:
9872         * src/SDCCicode.h:
9873         * src/SDCClabel.c:
9874         * src/SDCCloop.c:
9875         * src/SDCCmain.c:
9876         * src/ds390/ralloc.c:
9877         * src/mcs51/ralloc.c:
9878         * src/pic/ralloc.c:
9879         * src/xa51/ralloc.c:
9880         * src/z80/ralloc.c:
9881
9882 2003-03-06  Bernhard Held <bernhard AT bernhardheld.de>
9883
9884         * src/pic/pcode.c (get_op): fix 64 bit warnings
9885         * src/pic/pcode.c (pCode2str): fix 64 bit warnings
9886         * src/SDCChasht.c (newHashTable): fix 64 bit warnings
9887         * src/SDCCsymt.c (checkTypeSanity): fix 64 bit warnings
9888         * support/regression/tests/malloc.c: fix 64 bit warnings
9889
9890 2003-03-04  Bernhard Held <bernhard AT bernhardheld.de>
9891
9892         * src/mcs51/gen.c (genMinus): fixed bug 696436
9893
9894 2003-03-02  Borut Razem <borut.razem AT siol.net>
9895
9896         * src/SDCCmain.c: added BORLANDC, corrected MSVC in printVersionInfo()
9897
9898 2003-02-26  Bernhard Held <bernhard AT bernhardheld.de>
9899
9900         * configure.in: test for mkstemp
9901         * sdccconf_in.h: add HAVE_MKSTEMP
9902
9903 2003-02-24  Bernhard Held <bernhard AT bernhardheld.de>
9904
9905         * device/include/ctype.h: removed warning while using --stack-auto
9906         * device/include/malloc.h: removed warning while using --stack-auto
9907         * device/include/string.h: removed warning while using --stack-auto
9908
9909 2003-02-23  Borut Razem <borut.razem AT siol.net>
9910
9911         * src/asm.h: corrected assertion in function printILine(): _pipe() was not executed on MSVC,
9912         because NDEBUG is defined (see man assert)
9913         * sdcc_vc_in.h: vsnprintf is defined as _vsnprintf on MSVC
9914
9915 2003-02-23  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9916
9917         * src/mcs51/gen.c (genUminusFloat): avoided dptr in-/decrement for xdata variables
9918         * src/mcs51/peeph.def: added rule suggested by Gernot Fink, white space/comment changes
9919
9920 2003-02-18  Frieder Ferlemann <Frieder.Ferlemann AT web.de>
9921
9922         * src/SDCCpeeph.c: added peephole conditions testing for same arguments
9923         * src/mcs51/peeph.def: added rules 238a-d which remove redundant moves
9924
9925 2003-02-18    <johan AT balder>
9926
9927         * as/mcs51/asmain.c (asmbl): module can start with a digit
9928         * as/z80/asmain.c (asmbl): module can start with a digit
9929
9930 2003-02-16  Bernhard Held <bernhard AT bernhardheld.de>
9931
9932         * sim/ucsim/mkecho: inserted #!/bin/sh for Cygwin, so that it's executable
9933         * src/asm.c: fix pipe() for Mingw32
9934
9935 2003-02-15  Bernhard Held <bernhard AT bernhardheld.de>
9936
9937         * src/SDCCglue.h: make tmpfileNameSet available for preOutName
9938         * src/SDCCmain.c (preProcess): make sure, that preOutName will be deleted;
9939         make -V work again; --c1mode reads now from stdin
9940         * doc/sdccman.lyx: added --c1mode
9941         * support/Util/SDCCerr.c: new messages for c1 mode
9942         * support/Util/SDCCerr.h: new messages for c1 mode
9943         * src/SDCC.lex (checkCurrFile): test if fullSrcFileName is NULL for c1mode
9944
9945 2003-02-15    <johan AT balder>
9946
9947         * src/asm.c: new options: --no-c-code-in-asm and --i-code-in-asm
9948
9949 2003-02-14  Bernhard Held <bernhard AT bernhardheld.de>
9950
9951         * doc/sdccman.lyx: Environment variables, -o and other minor things
9952
9953 2003-02-14    <johan AT balder>
9954
9955         * src/xa51/main.c: before anyone really tries to use it :)
9956
9957         * Install doc's in share/sdcc/doc
9958         * removed some obsolete files
9959         * Do a proper make distclean and uninstall
9960         M Makefile.common.in
9961         R sdccbuild.sh
9962         M as/Makefile
9963         M device/include/Makefile.in
9964         M device/lib/Makefile.in
9965         M doc/sdccman.lyx
9966         M link/Makefile
9967         M sim/ucsim/doc/Makefile.in
9968         M src/clean.mk
9969         R src/avr/peeph.rul
9970         R src/xa51/peeph.rul
9971         M support/cpp2/Makefile.in
9972         M support/makebin/Makefile
9973
9974
9975 2003-02-13  Bernhard Held <bernhard AT bernhardheld.de>
9976
9977         * support/regression/ports/host/spec.mk: use cc as host compiler for max osx
9978
9979 2003-02-10  Borut Razem <borut.razem AT siol.net>
9980
9981         * doc/bccinst.txt, packihx/packihx.c, sdcc_vc_in.h, src/SDCCset.h,
9982         support/cpp2/config.in: Borland C++ build doesn't depend on Cygwin configure
9983         * Bcc.ini, Makefile.bcc, as/mcs51/Makefile.bcc,
9984         device/examples/ds390/tinitalk/Makefile.bcc, packihx/Makefile.bcc,
9985         support/cpp2/Makefile.bcc, src/Makefile.bcc, src/avr/Makefile.bcc,
9986         src/ds390/Makefile.bcc, src/izt/Makefile.bcc, src/mcs51/Makefile.bcc,
9987         src/pic/Makefile.bcc, src/pic16/Makefile.bcc, src/xa15/Makefile.bcc,
9988         src/z80/Makefile.bcc: Borland Makefile cleanup
9989         * as/z80/Makefile.bcc: Added Borland Makefile
9990         * support/cpp2/borland.h: Removed
9991
9992 2003-02-10  Bernhard Held <bernhard AT bernhardheld.de>
9993
9994         * doc/sdccman.lyx: new pragma NOIV by "Johannes Stezenbach" <js AT convergence.de>
9995         * src/SDCC.lex: new pragma NOIV
9996         * src/SDCCglobl.h: new pragma NOIV
9997         * src/SDCCmem.c: new pragma NOIV
9998
9999 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10000
10001         * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
10002
10003 2003-02-09  Bernhard Held <bernhard AT bernhardheld.de>
10004
10005         * src/SDCCmain.c: signal handling is switched off by --debug
10006         * doc/Makefile: small fix for install; use clean.mk again
10007         * doc/clean.mk: clean *.pdf and *.html too
10008
10009 2003-02-08  Bernhard Held <bernhard AT bernhardheld.de>
10010
10011         * device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
10012         * device/lib/printfl.c: fix a ds390 bug by making it portable
10013         * src/SDCCsymt.c (initCSupport): fix compile warning on Cygwin
10014         * src/SDCCopt.c (cnvToFloatCast): fix compile warning on Cygwin
10015         * src/SDCCopt.c (cnvFromFloatCast): fix compile warning on Cygwin
10016         * debugger/mcs51/cmd.c: converted multi-line string literals
10017         * sim/ucsim/globals.cc: converted multi-line string literals
10018         * src/SDCCmain.c: introduced signal handler to remove temp files
10019         * doc/Makefile: small tweaks, implement clean
10020         * doc: removed generated files
10021
10022 2003-02-05  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10023
10024         * as/mcs51/aslink.h, as/mcs51/lkihx.c, as/mcs51/lkrloc.c:  Applied
10025         patch from Jan Rejlek <jr AT apex-lib.cz> to fix Bug 677692: "Extended
10026         Address Record is not correctly generated for DS390."
10027
10028 2003-02-02  Borut Razem <borut.razem AT siol.net>
10029
10030         * Makefile.bcc: removed non existing cpp project and non compilable izt project from makefile
10031         * as/mcs51/asm.h: fixed compilation with Borland C
10032         * support/cpp2/Makefile.bcc: added rule to generate auto-host.h
10033         * support/cpp2/auto-host_vc_in.h: fixed compilation with Borland C
10034         * src/mcs51/mcs51a.dsp: corrected misspelled project name from msc51a to mcs51a
10035         * src/avr/Makefile.bcc, src/ds390/Makefile.bcc, src/izt/Makefile.bcc,
10036         src/mcs51/Makefile.bcc, src/pic16/Makefile.bcc, src/xa51/Makefile.bcc,
10037         src/z80/Makefile.bcc: delete $(LIB) only if exist
10038         * src/Makefile.bcc, src/pic/Makefile.bcc:  fixed compilation with Borland C
10039
10040 2003-02-02  Bernhard Held <bernhard AT bernhardheld.de>
10041
10042         * device/include/malloc.h: introduced NULL
10043         * device/include/string.h: introduced NULL
10044         * device/include/stdlib.h: introduced NULL
10045         * device/lib/_memcpy.c: removed NULL
10046         * device/lib/_strcat.c: removed NULL
10047         * device/lib/_strchr.c: removed NULL
10048         * device/lib/_strcmp.c: removed NULL
10049         * device/lib/_strcpy.c: removed NULL
10050         * device/lib/_strcspn.c: removed NULL
10051         * device/lib/_strlen.c: removed NULL
10052         * device/lib/_strncat.c: removed NULL
10053         * device/lib/_strncmp.c: removed NULL
10054         * device/lib/_strncpy.c: removed NULL
10055         * device/lib/_strpbrk.c: removed NULL
10056         * device/lib/_strrchr.c: removed NULL
10057         * device/lib/_strspn.c: removed NULL
10058         * device/lib/_strstr.c: removed NULL
10059         * device/lib/_strtok.c: removed NULL
10060         * device/lib/malloc.c: removed NULL, include own header
10061
10062 2003-02-02    <johan AT balder>
10063
10064         * 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
10065         * support/regression/fwk/lib/testfwk.c: div and mod isn't broken anymore
10066         * regressions ds390/spec.mk and mcs51/spec.mk (timeout): my good old balder isn't fast enough for some tests
10067         * src/z80/gen.c (genZ80Code): added c-lines in asm comments
10068         * as/z80/asm.h (NINPUT): increased for long c-comments in regression tests
10069         * src/z80/gen.c (genRightShiftLiteral): fixed the (char)(-3)>>8 (I think)
10070
10071 2003-02-01  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10072
10073         * src/SDCCmain.c: Fixed bug 678574: "ds390: ASlink-Error-Stack overlaps
10074         area 'DATA'"
10075
10076 2003-02-01    <johan AT balder>
10077
10078         * src/SDCCval.c (valBitwise): fixed Karl's "2 | (1<<8)"
10079
10080 2003-01-31    <johan AT CP255758-A>
10081
10082         * src/ds390/main.c (_ds390_genAssemblerPreamble): applied Jan Rejlek's >64K startup patch
10083
10084 2003-01-30    <johan AT balder>
10085
10086         * src/SDCCBBlock.c: automatic bug detection
10087         * src/SDCCicode.c: automatic bug detection
10088
10089 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10090
10091         * src/SDCCglobl.h:   now --xram-size 0 works
10092         * src/SDCCmain.c:    now --xram-size 0 works
10093
10094 2003-01-29    <johan AT balder>
10095
10096         * src/almosteverything: changed OP_DEFS and OP_USES from macros to functions to catch symbol abuse (a hot topic in the bug list :)
10097
10098 2003-01-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10099
10100         * as/mcs51/aslink.h: Added options --xram-size and --code-size
10101         * as/mcs51/lkdata.c: Added options --xram-size and --code-size
10102         * as/mcs51/lkmain.c: Added options --xram-size and --code-size
10103         * as/mcs51/lkmem.c:  Added options --xram-size and --code-size
10104         * src/SDCCglobl.h:   Added options --xram-size and --code-size
10105         * src/SDCCmain.c:    Added options --xram-size and --code-size
10106
10107 2003-01-28  Bernhard Held <bernhard AT bernhardheld.de>
10108
10109         * src/ds390/gen.c: fix deps by replacing <common.h> with "common.h"
10110         * src/SDCC.lex: rename P_OVERLAY to P_OVERLAY_ for cross-gcc 3.2 MINGW32
10111
10112 2003-01-27    <johan AT balder>
10113
10114         * src/SDCC.y: fixed bug #613764
10115
10116 2003-01-26    <johan AT balder>
10117
10118         * src/SDCClrange.c:  fixed Bernhard's "char * code ptr = &c"
10119         * src/SDCCsymt.h: fixed bug #673374
10120         * src/SDCCglue.c: fixed bug #661910
10121         * src/SDCCast.c: fixed bug #458099 and 673374
10122
10123 2003-01-26  Bernhard Held <bernhard AT bernhardheld.de>
10124
10125         * as/mcs51/strcmpi.c: added, provides Aurelien Jarno's as_strcmpi(); strcmpi() is not ANSI
10126         * as/mcs51/strcmpi.h: added
10127         * as/mcs51/asm.h: remove ugly "#define strcmpi strcmp"
10128         * as/mcs51/aslink.h: remove ugly "#define strcmpi strcmp"
10129         * as/mcs51/asmain.c: strcmpi -> as_strcmpi
10130         * as/mcs51/assym.c: strcmpi -> as_strcmpi
10131         * as/mcs51/lkmem.c: strcmpi -> as_strcmpi
10132         * as/mcs51/lknoice.c: strcmpi -> as_strcmpi
10133         * as/mcs51/lksym.c: strcmpi -> as_strcmpi
10134         * as/mcs51/Makefile.aslink: new module strcmpi
10135         * as/mcs51/Makefile.asx8051: new module strcmpi
10136         * as/mcs51/Makefil.bcc: new module strcmpi
10137         * as/mcs51/Makefile.in: new module strcmpi
10138         * sim/ucsim/s51.src/uc390.cc (get_mem_size): make RAM big enough for tinibios
10139
10140 2003-01-26    <johan AT balder>
10141
10142         * src/SDCCglue.c: reverted back to 1.124
10143         * src/SDCCast.c: reverted back to 1.156
10144         * src/mcs51/gen.c (aopGet): applied Frieder's efficiency patch
10145
10146 2003-01-25    <johan AT balder>
10147
10148         * src/SDCCglue.c: A better fix for bug #661910
10149         * src/SDCCast.c: A better fix for bug #661910
10150         * src/SDCCglue.c (emitRegularMap): That was a little too efficient
10151
10152 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10153
10154         * src/Makefile.in: remove spawn.o
10155         * src/SDCCmain.c: remove spawn.h
10156         * src/SDCCmain.c (printVersionInfo): report MINGW32 instead of UNIX
10157         * src/spawn.c: removed
10158         * src/spawn.h: removed
10159         * support/regression/ports/ds390/spec.mk: link with -r
10160
10161 2003-01-24    <johan AT CP255758-A>
10162
10163         * src/ds390/gen.c (aopOp): fixed bug #667458
10164         * src/SDCCglue.c (emitRegularMap): fixed bug #458099 again
10165         * src/SDCCast.c (createIvalCharPtr): fixed bug #661910
10166         (createIvalCharPtr): an ival doesn't always have a storage class anymore
10167
10168 2003-01-24  Bernhard Held <bernhard AT bernhardheld.de>
10169
10170         * src/mcs51/peeph.def: better assembler identation by Frieder
10171         * src/mcs51/gen.c: better assembler identation by Frieder
10172
10173 2003-01-22  Bernhard Held <bernhard AT bernhardheld.de>
10174
10175         * as/z80/string.h: removed for gcc 3.2
10176         * support/makebin/makebin.c: #include <string.h> for gcc 3.2
10177         * src/pic/pcode.c (get_op_from_instruction): fix concatenation of string literals with __FUNCTION__ for gcc 3.2
10178
10179 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10180
10181         * src/SDCCmain.c (linkEdit): rename mem and map files even in case of failure
10182         * src/SDCCpeeph.c (replaceRule): fix bug #663503
10183         * support/regression/Makefile: separate temp files for ports
10184         * support/regression/generate-cases.py: separate temp files for ports
10185         * src/mcs51/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10186         * src/ds390/peeph.def: Frieder: removed 237 (obsolete by 236g and 105); added 237 a/b
10187
10188 2003-01-19  Bernhard Held <bernhard AT bernhardheld.de>
10189
10190         * moved tinitalk to device/examples/ds390
10191
10192 2003-01-14  Bernhard Held <bernhard AT bernhardheld.de>
10193
10194         * as/mcs51/lkmem.c: rflag is for DS390
10195         * src/SDCCglobl.h: removed out_name and options stackOnData, genericPtr
10196         * src/SDCCmain.c (optionsTable, setDefaultOptions): removed --stack-after-data and --generic
10197                          (linkEdit): move mem- and map-files the same way as ihx-files
10198         * src/z80/main.c (_setDefaultOptions): removed --generic
10199         * src/SDCCmain.c (_processC1Arg, parseCmdLine, main): --c1mode works again
10200         * src/SDCCglue.c (createInterruptVect, glue): --c1mode works again
10201         * src/pic/glue.c (picglue): --c1mode works again
10202         * src/pic16/glue.c (pic16glue): --c1mode works again
10203         * src/asm.c (printCLine): fix #660034
10204
10205 2003-01-13  Bernhard Held <bernhard AT bernhardheld.de>
10206
10207         * src/ds390/peeph.def: fix #123; add 14 rules by Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>, 1 by Frieder
10208         * src/mcs51/peeph.def: fix #123; add 14 rules by Fiorenzo, 1 by Frieder
10209         * src/mcs51/gen.c (genFunction): emit r0 instead of ar0 by Fiorenzo
10210         * as/mcs51/lkmem (summary): better fix for sp problem
10211         * src/SDCCglue.c (glue): __start_stack - 1, saves 1 byte!
10212         * src/ds390/main.c (_ds390_finaliseOptions, _tininative_finaliseOptions): stack_loc = 0x400008
10213         * support/regression/ports/*/spec.mk: moving testfwk-object to port dir allow parallel execution of regression tests
10214                                               remove --stack-after-data
10215
10216 2003-01-12  Bernhard Held <bernhard AT bernhardheld.de>
10217
10218         * src/SDCCmain.c (main): port->finaliseOptions() moved for z80 linking
10219         * src/SDCCutil.c (join): ugly bug: missing '\0'
10220         * as/mcs51/lkmem.c (summary): sp on address 7 is safe
10221
10222 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10223
10224         * src/SDCCmain.c (assemble, linkEdit): preparations for -o
10225         * src/port.h: typo
10226         * src/pic/main.c (_asmCmd): gpasm supports -o
10227         * src/z80/main.c: more general macros
10228         * device/lib/Makefile.in: remove intermediate files
10229
10230 2003-01-11  Bernhard Held <bernhard AT bernhardheld.de>
10231
10232         * .version: Bumped version number to 2.3.3
10233         * src/SDCCBBlock.c: new option -o
10234         * src/SDCCglobl.h: new option -o
10235         * src/SDCCglue.c: new option -o
10236         * src/SDCCmain.c: new option -o
10237         * src/asm.c: new option -o
10238         * src/ds390/main.c: new option -o
10239         * src/pic/glue.c: new option -o
10240         * src/pic/pcode.c: new option -o
10241         * src/pic/ralloc.c: new option -o
10242         * src/pic16/glue.c: new option -o
10243         * src/pic16/pcode.c: new option -o
10244         * src/pic16/ralloc.c: new option -o
10245         * src/z80/main.c: new option -o
10246         * device/lib/Makefile.in: use -o
10247         * support/regression/ports/ds390/spec.mk: use -o
10248         * support/regression/ports/gbz80/spec.mk: use -o
10249         * support/regression/ports/mcs51/spec.mk: use -o
10250         * support/regression/ports/mcs51-stack-auto/spec.mk: use -o
10251         * support/regression/ports/z80/spec.mk: use -o
10252         * support/regression/ports/ucz80/spec.mk: use -o
10253         * support/regression/ports/xa51/spec.mk: use -o
10254         * support/regression/fwk/lib/timeout.c: fix usage string
10255
10256 2003-01-09  Bernhard Held <bernhard AT bernhardheld.de>
10257         * src/mcs51/gen.c (genPlus): replaced "mov b,acc" by "mov b,a" Fiorenzo D. Ramaglia <fd.ramaglia AT tin.it>
10258
10259 2003-01-07    <johan AT balder>
10260
10261         * src/SDCCast.c (decorateType): fixed bug #600035
10262
10263 2003-01-07  Bernhard Held <bernhard AT bernhardheld.de>
10264         * as/mcs51/lkmem.c: added several l-modifiers to printf to remove warnings
10265         * as/mcs51/lkaomf51.c: #include <ctype.h> to remove warnings
10266         * src/pic/main.c (_hasNativeMulFor): outcommented unused variables to remove warnings
10267         * src/pic/pcode.c: outcommented unused variable to remove warnings
10268         * src/pic/ralloc.c: outcommented unused variable to remove warnings
10269
10270 2003-01-06    <karl AT turbobit.com>
10271         * sim/ucsim/cmd.src/command.cc: fixed so "break xram r 0x7654" works again in
10272    regression tests.
10273
10274 2003-01-06    <johan AT balder>
10275
10276         * src/SDCCicode.c: fixed array add
10277
10278 2002-01-05  Bernhard Held <bernhard AT bernhardheld.de>
10279         * src/SDCCmacro.c: MAX_STRING_LENGTH increased to 2048; was too small for regression tests
10280         * support/regression/ports/host/support.c: #include <stdarg.h> for gcc 3.2
10281
10282 2003-01-04    <johan AT balder>
10283
10284         * src/SDCCval.c (getNelements): fixed the initialized array of structures
10285
10286 2002-12-29  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10287         * as/mcs51/Makefile.bcc: fixed typo lkomf51.o -> lkaomf51.o
10288
10289 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10290         * src/mcs51/peeph.def: added rules 234 and 235 from Frieder Ferlemann <frieder.ferlemann AT web.de>
10291         * support/regression/tests/bug-524697.c: fit mem usage into 8032
10292
10293 2002-12-28  Bernhard Held <bernhard AT bernhardheld.de>
10294         * src/mcs51/gen.c (aopGetUsesAcc): inserted missing "return FALSE"
10295
10296 2002-12-27  Bernhard Held <bernhard AT bernhardheld.de>
10297         * as/mcs51/Makefile.in: fixed typo lkomf51.o -> lkaomf51.o
10298
10299 2002-12-26  Bernhard Held <bernhard AT bernhardheld.de>
10300         * src/mcs51/main.c: removed {bindir}{sep} from aslink
10301
10302 2002-12-10  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10303
10304     * in \sdcc\as\mcs51\ changed these files in order to create an
10305     aomf51 file: aslink.h, lkdta.c, lklex.c, lklibr.c, lklist.c,
10306     lkmain.c.  Also added: lkmem.c and lkaomf51.c.  Changed the
10307     following files to include the previous two files: aslink.dsp,
10308     Makefile.aslink, Makefile.bcc, and Makefile.in.
10309
10310     * Changed \sdcc\src\SDCCmain.c so it creates files with extension
10311     .adb instead of .cdb
10312
10313 2002-11-09  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10314
10315         * \sdcc\as\mcs51\lklist.c: Now reports memory usage using the
10316         value from option --iram-size.
10317
10318 2002-09-20  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10319
10320         * \sdcc\as\mcs51\lklist.c: added boundary check before using
10321         dram[] array.
10322
10323 2002-09-18    <wiml AT hhhh.org>
10324
10325         * SDCClrange.h: exposed setFromRange() and setToRange()
10326         * mcs51/ralloc.c: fixed over-eager packRegsForSupport() and
10327           packRegsForAccUse() (bug 542397)
10328         * mcs51/gen.c: MOVA() is now a function to avoid calling aopGet()
10329           multiple times and emitting the fetch operations more than once
10330           added aopGetUsesAcc() function to allow binary operators to
10331           fetch their operands in the correct order; made genMinus() emit
10332           compact code for X = LITERAL - Y
10333
10334 2002-09-00  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10335         * \sdcc\as\mcs51\lklist.c: Fixed incorrect number of parameters to
10336         sprintf() in line 1267.
10337
10338 2002-09-08  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10339         * \sdcc\src\SDCCglue.c: Generate areas REG_BANK_[0-3] only for 8051
10340         like ports.
10341
10342 2002-09-04  Jesus Calvino-Fraga <jesusc AT ece.ubc.ca>
10343         Changes to aslink (All the changes are marked with 'JCF'):
10344
10345         * \sdcc\as\mcs51\aslink.h: External definition of sflag and
10346         summary().
10347
10348         * \sdcc\as\mcs51\lkarea.c: Computes the size of area BSEG_BYTES from
10349         area BSEG.  Also moves, if possible, the DATA area down into the internal
10350         ram so more space is available.
10351
10352         * \sdcc\as\mcs51\lkdata.c: Definition of memory summary output flag
10353         sflag.
10354
10355         * \sdcc\as\mcs51\lklist.c: For the BSEG area report the size in bits,
10356         not bytes.  Function summary() which creates a memory usage summary
10357         file with extension .mem.  Reports of overlaping stack and small stack
10358         size.  If the space for the stack is less than 16 bytes aslink trows a
10359         warning.
10360
10361         * \sdcc\as\mcs51\lkmain.c: Creation of some of the default areas for
10362         the 8051.  Option 'y' for memory summary output file.
10363
10364         Changes to sdcc (All the changes are marked with 'JCF'):
10365
10366         * \sdcc\src\SDCCglobl.h: External definition of RegBankUsed[4].
10367
10368         * \sdcc\src\SDCCglue.c:  If a register bank is used, creates an
10369         overlaying area for it (uses RegBankUsed[4]).
10370
10371         * \sdcc\src\SDCCmain.c: Definition RegBankUsed[4]; marks register
10372         bank zero as used by default.  By default aslink locates the stack
10373         (equivalent to --stack-after-data).  Pass option 'y' to aslink for
10374         the creation of the .mem file.  Delegates the allocation of data area
10375         to aslink (it is not longer 0x30 by default).  If --stack-loc passes
10376         the begining of the stack area to aslink.
10377
10378         * \sdcc\src\SDCCmem.c:  If a register bank is used, marks it so
10379         glue() in SDCCglue.c creates an area for it.
10380
10381 2002-09-03  Borut Razem <borut.razem AT siol.net>
10382         * sdcc/src/SDCCglue.c, sdcc/src/SDCCglue.h, sdcc/src/SDCCmain.c,
10383         sdcc/src/pic/glue.c:
10384         introduced atexit() handler for teporay files removal in case of
10385         errors, assertions, ...
10386
10387 2002-08-29  Borut Razem <borut.razem AT siol.net>
10388         * sdcc/support/cpp2/auto-host_vc_in.h:
10389         re-definition of O_BINARY and other O_XXX as _O_BINARY and _O_XXX, so the problem
10390         with the returned value from read() in sdcc/support/cpp2/cppfiles.c is solved for MSC.
10391         Maybe there is a similar problem with BORLANDC? It should be checked!
10392
10393         * sdcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c, sdcc/src/z80/ralloc.c:
10394         corrected improper use of assert: the assignment to clr variable was done inside the assert.
10395         In case that NDEBUG was defined, the assert macro was substituted with no-op, so the assignment
10396         was not executed, and the compiler (cl) launched a warning:
10397         ralloc.c(1442) : warning C4700: local variable 'clr' used without having been initialized
10398
10399 2002-08-28  Bernhard Held <bernhard AT bernhardheld.de>
10400         * src/SDCCglue.c (printIvalArray): iterative calculation of array length
10401
10402 2002-08-28  Jesus Calvino-Fraga and Borut Razem <borut.razem AT siol.net>
10403         * sdcc/sdcc.dsw: added sdcpp, sdcppa, yacc, conf projects
10404
10405         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10406           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp,
10407           sdcc/src/xa51/xa51.dsp, sdcc/src/avr/avra.dsp,
10408           sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10409           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp,
10410           sdcc/src/xa51/xa51a.dsp, sdcc/as/as_z80.dsp,
10411           sdcc/as/aslink.dsp, sdcc/as/asx8051.dsp, sdcc/packihx/packihx.dsp:
10412         - added Release configuration in VS projects
10413         - review of compiler an linker options
10414         - VC .exe files are generated in bin_vc directory, not to interfere
10415           with binaries generated from other projects (cygwin, mingw, bcc ...)
10416
10417         * sdcc/src/yacc.dsp: added
10418
10419         * sdcc/config.dsp, sdcc/configure_vc.awk, sdcc/sdcc_vc_in.h:
10420         added - genarate sdcc_vc.h using sdcc_vc_in.h as template
10421         and insert the version number definitions from .version
10422
10423         * sdcc/support/cpp2/sdcpp.dsp: added - VC project for sdcpp
10424
10425         * sdcc/support/cpp2/sdcppa.dsp, sdcc/support/cpp2/auto-host_vc_in.h:
10426         added - genarate auto-host.h using auto-host_vc_in.h as template
10427
10428         * sdcc/sdcc_vc.h,
10429         removed from CVS, generated automatically
10430
10431 2002-08-25  Bernhard Held <bernhard AT bernhardheld.de>
10432         * support/scripts/inc2h.pl: use gputils or gpasm (from Nathan Hurst)
10433
10434 2002-08-11  Borut Razem <borut.razem AT siol.net>
10435         * support/Util/NewAlloc.c: removed unneeded #include "sdccconf.h" (suggested by Jesus Calvino-Fraga)
10436
10437 2002-08-10  Borut Razem <borut.razem AT siol.net>
10438         * src/SDCCmain.c (main):
10439         file preOutName was unlinked before closed. This seems to be OK on UNIX and cygwin
10440         platforms, but it doesn't work with Visual Studio: the opened file can not be removed.
10441         The consequence was that some temporary files were not removed.
10442
10443         * src/SDCCglue.c:
10444         unification of code in functions tempfilename() and tempfile():
10445         function tempnam() is defined in Visual Studio 6.0 and .NET
10446
10447         * sdcc/sdcc.dsw: removed project sdcpp, added project xa51a
10448
10449         * sdcc/src/src.dsp, sdcc/src/avr/avr.dsp, sdcc/src/ds390/ds390.dsp,
10450           sdcc/src/mcs51/mcs51.dsp, sdcc/src/pic/pic.dsp, sdcc/src/z80/z80.dsp:
10451         - removed compiler command line option /WX: Treats all warnings as errors
10452         - update a list of source files, included into the project
10453
10454         * sdcc/src/avr/avra.dsp, sdcc/src/ds390/ds390a.dsp, sdcc/src/mcs51/mcs51a.dsp,
10455           sdcc/src/pic/pica.dsp, sdcc/src/z80/z80a.dsp:
10456         changed project type to Generic Project so that can be correcly converted to VS.NET project
10457
10458         * sdcc/as/mcs51/asm.h: definition of PATH_MAX for MSC
10459
10460         * sdcc/src/SDCCast.c: solved MSC error in function decorateType()
10461
10462         * sdcc/src/SDCC.y: added missing ending ';' to rules to get rid of bison warnings
10463
10464         * dcc/src/ds390/ralloc.c, sdcc/src/mcs51/ralloc.c:
10465         added return 0 statements after assert() to make compiler happy
10466
10467         * sdcc/src/xa51/peeph.rul, sdcc/src/xa51/peeph.def, sdcc/src/z80/ralloc.c:
10468         added newline in the def file to keep MSC compiler satisfied
10469
10470         * sdcc/src/z80/gen.c:
10471         - function strcasecmp() is not defined in MSC (and probably also in BORLANDC),
10472           so it is replaced with STRCASECMP, which is defined as stricmp in case of MSC and BORLANDC
10473         - solved MSC error in function aopDump()
10474
10475         * sdcc_vc.h: define PREFIX as "\\sdcc"
10476
10477 2002-07-18  Bernhard Held <bernhard AT bernhardheld.de>
10478         * src/SDCCast.c (decorateType): fixed access to array of structures http://sourceforge.net/mailarchive/forum.php?thread_id=902690&forum_id=4107
10479
10480 2002-06-22  Scott Dattalo <scott AT dattalo.com>
10481         * src/pic/*: Numerous bug fixes. Flow analysis has been enhanced.
10482         - Rewrote the register banking algorithm.
10483         - Added pCode live-range analysis to registers (for now, only non-used and
10484         singly-used registers optimized away)
10485
10486         * src/pic/pcoderegs.[ch]: Added new files for pCode live-range analysis
10487
10488         * 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.
10489
10490 2002-05-10  Scott Dattalo <scott AT dattalo.com>
10491         * src/pic/*: Added support for multiplication. Fixed many,many bugs.
10492
10493 2002-04-22  Michael Hope  <michaelh AT vroom>
10494
10495         * device/lib/z80/printf.c: Changed emitter to volatile to work around a pcall bug.
10496
10497         * configure.in (DD_COPT): Added include support required for gbdk.
10498
10499         * .version: Bumped version number just to increase it.
10500
10501         * src/SDCCmain.c: Added -nostdinc to the default options.
10502
10503 2002-04-15  Michael Hope  <michaelh AT vroom>
10504
10505         * device/lib/z80/printf.c (sprintf): Added.
10506
10507         * src/z80/ralloc.c (packRegisters): Disabled pack HL use for GB as it's broken.
10508
10509         * src/z80/peeph.def: Added transpose redundent load rule.
10510
10511         * src/z80/main.c: Added force callee saves for jaune.
10512
10513         * src/port.h: Removed the i186 and tlcs-900h ports as they weren't being being developed.
10514
10515         * src/SDCCmain.c: Pulled the options definition out so that you can add port specific options without changing the main file.
10516
10517 2002-03-28  Johan Knol  <johan AT balder>
10518
10519         * src/SDCCval.c: fixed bug #532436
10520
10521 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10522         * /src/port.h:
10523         Added "char *Processor" field to the port structure.
10524
10525         * /src/SDCCmain.c:
10526         Added -p option. Allows port dependent processor to be specified.
10527
10528         * all ports:
10529         Initialized the new field char *Processor field to NULL in all ports
10530
10531         * /src/pic/*:
10532         Compiler generated registers for interrupt context saving
10533         were not getting allocated.
10534
10535 2002-03-16  Sandeep Dutta  <sandeep AT ddi.com>
10536
10537         * /src/SDCCast.c:
10538         Fixed left shift. Will promote the left side of a left shift
10539         if a) left shifting more than size of operand or b) when assigned
10540         to something size > size of left side
10541
10542 2002-03-14  Scott Dattalo <scott AT dattalo.com>
10543         * src/pic/*
10544         tons of changes. Register allocation has been
10545         rewritten. Added customization for the various PICs. Flow
10546         analysis is restructured. ...
10547
10548         * src/pic/device.h:
10549         Added
10550
10551         * src/pic/device.c:
10552         Added. device.c is a PIC port hack to accomodate variations
10553         in PIC devices.
10554
10555 2002-03-13  Michael Hope  <michaelh AT vroom>
10556
10557         * src/z80/gen.c (genGenPointerGet): Fixed a bug where a pointer in HL is dereferenced into HL but HL is not spilled.  Yeah.
10558
10559 2002-03-04  johanknol  <johanknol AT manik>
10560
10561         * /src/SDCCval.c: fixed
10562
10563         const unsigned char arr[][2] = { { 0, 1 } };
10564         t18.c:1: error: Initializer element is not constant
10565
10566 2002-03-04  bela  <bela AT manik>
10567
10568         * /device/include/mcs51reg.h:
10569         ds89c420 register definition update
10570
10571 2002-03-03    <johan AT FRIJA>
10572
10573         * support/Util/SDCCerr.c: did something, but don't no why anymore
10574
10575         * support/regression/tests/bug-524691.c: made it a little less shy
10576
10577         * src/SDCCast.c (decorateType): fixed bug #524697
10578
10579         * src/SDCCast.c: made some lineno improvements
10580
10581         * src/SDCCval.c (getNelements): changed warning to error
10582
10583         * src/SDCCglue.c (printIvalArray): changed warning to error
10584
10585         * src/SDCCicode.c: fixed a warning for mingw
10586
10587         * src/SDCCast.c (decorateType): fixed the << promotion for ops
10588
10589         * src/SDCCicode.c (geniCodeDivision): divide is shift only for unsigned (bug #524685)
10590
10591 2002-03-02  Sandeep Dutta  <sandeep AT ddi.com>
10592
10593         * src/ds390/peeph.def:
10594         Added some more peephole rules
10595
10596         * src/ds390/gen.c: Various fixes & enhancements
10597
10598         * src/SDCClrange.c, src/SDCClrange.h:
10599         functions "alldefsoutofrange" and "notusedinblock" moved to SDCClrange.c
10600
10601         * src/ds390/ralloc.c:
10602         various fixes & enhancements (ds390) specific
10603
10604         * src/avr/ralloc.c, src/mcs51/ralloc.c, src/pic/ralloc.c, src/xa51/ralloc.c, src/z80/ralloc.c:
10605         Functions "allDefsOutOfRange" & "notUsedinBlock" moved to SDCClrange.c
10606         from rallocs.
10607
10608         * sdcc/src/SDCCcse.c: Better fix for bug # 514308
10609
10610 2002-03-02    <johan AT FRIJA>
10611
10612         * src/SDCCast.c (decorateType): fixed bug #524708
10613
10614         * src/SDCCval.c (floatFromVal): fixed the literal void (whatever that may be)
10615
10616         * src/SDCCicode.c (geniCodePtrPtrSubtract): fixed bug #524691
10617
10618 2002-03-01  Michael Hope  <michaelh AT vroom>
10619
10620         * src/SDCCsymt.c (initCSupport): Removed managling of support function names.
10621
10622         * src/z80/ralloc.c (packRegsForIYUse): Fixed fp bug where four byte operands were packed into IY.
10623
10624 2002-03-01    <johan AT FRIJA>
10625
10626         * src/SDCCglue.c (printIvalPtr): fixed bug #524211
10627
10628         * src/SDCCast.c (decorateType): fixed bug #524209
10629
10630         * src/SDCCval.c (valNot): fixed bug #524195
10631
10632 2002-02-26    <johan AT balder>
10633
10634         * src/xa51/gen.c: fixed a warning
10635
10636         * src/SDCCglue.c (printIvalFuncPtr): fixed bug #522534
10637
10638         * src/SDCCast.c (decorateType): fixed bug #522534
10639
10640 2002-02-23    <johan AT balder>
10641
10642         * src/SDCCdflow.c (computeDataFlow): fixed bug #460088
10643
10644 2002-02-22    <johan AT balder>
10645
10646         * src/SDCCast.c: fixed bug #514865
10647
10648         * src/SDCCy.c ("SDCC.y"): fixed bug #516625
10649
10650 2002-02-21  Sandeep Dutta  <sandeep AT ddi.com>
10651
10652         * sdcc/src/SDCCloop.c:
10653         Previous fix was not good. basic blocks that have "break" or "return" are
10654         not really partof a loop , but live ranges used in these blocks should
10655         be live thru the entire loop, so set partOfLoop but don't add them to
10656         loop region
10657
10658 2002-02-21    <johan AT FRIJA>
10659
10660         * src/SDCCcse.c: fixed bug #514308
10661
10662 2002-02-20  Sandeep Dutta  <sandeep AT ddi.com>
10663
10664         * src/SDCCloop.c:
10665         Fixed BUG #519583. If a conditional block ended in a return/break
10666         statement inside a loop, it was not being considered part of the loop.
10667
10668         * src/SDCCcflow.c: Removed fix (Fixed in SDCCloop.c)
10669
10670 2002-02-10  Karl Bongers <karl AT turbobit.com>
10671
10672         * debugger/*:
10673         Fixed up SDCDB debugger somewhat.  Updated debugger/README
10674         with lots of comments and notes.
10675
10676         * device/examples/test2.c:
10677         Fix bug, "red" variable not being initialized(compiler complained).
10678
10679         * device/examples/Makefile, examples/test3.c:
10680         Add Makefile in device/examples folder, compiles test3.c
10681         for use as a multiple module SDCDB test case.
10682
10683         * sim/ucsim/cmd.src/cmdset.cc:
10684         Took out debug printfs in ucsim "next" command.
10685
10686         * sim/ucsim/xa.src:
10687         Karl and Johan start ucsim XA support.  Most dissassembly working,
10688         about 75% emulation done(plenty of work remaining).
10689
10690         * sim/ucsim/z80.src:
10691         Add Z80 support to ucsim, add test-ucz80 regression test,
10692         notice ucsim/z80 emulation fails on examples/test3.c/itoa code.
10693         Notice z80 compiler fails on examples/test3.c/crc code.
10694
10695 2002-01-30  Sandeep Dutta  <sandeep AT ddi.com>
10696
10697         * src/mcs51/gen.c, src/mcs51/main.c, src/mcs51/ralloc.c:
10698         Added support for --parms-in-bank1
10699
10700         * src/ds390/peeph.def:
10701         added a few more peephole optimzations
10702
10703         * src/ds390/main.c:
10704         1) added __builtin_inp & __builtin_outp used to read in data of given length
10705            from a memory mapped port
10706         2) added __builtin_memcmp
10707         3) added __builtin_swapw swap bytes of a short
10708
10709         * src/ds390/gen.c, src/ds390/gen.h, src/ds390/ralloc.c:
10710         1) handle multiple send & receives from register bank1
10711         2) ralloc can now allocate DPTR1 to some liveRanges
10712
10713         * src/SDCCsymt.c, src/SDCCsymt.h:
10714         changes to handle multiple sends & receives
10715
10716         * src/SDCCptropt.h:
10717         added some pointer arithmetic optimization
10718
10719         * src/SDCCptropt.c:
10720         added some pointer arithmetic optimizations but not stable yet so not
10721         called from anywhere (will get this working shortly)
10722
10723         * src/SDCCopt.c: fixed for multiple sends & receives
10724
10725         * src/SDCCmain.c:
10726         1) added options --parms-in-bank1 (ds390/mcs51) & --protect-sp-update
10727         2) preprocessing done AFTER port->finalizeoptions . This allows ports to
10728            set preprocessor defines (depending on options)
10729
10730         * src/SDCCicode.c, src/SDCCicode.h:
10731         changes made to handle multiple sends & receives
10732
10733         * src/SDCCglobl.h:
10734         Added options --protect-sp-update (ds390) and --parms-in-bank1 (ds390/mcs51)
10735
10736         * src/SDCCcse.c, src/SDCCcse.h:
10737         added function findbackward def (to be used in upcoming optimization)
10738
10739         * src/SDCCcflow.c, src/SDCCcflow.h:
10740         added function returnAtEnd - to determine if a basic block terminates with
10741         a RETURN iCode
10742
10743         * src/SDCCast.c, src/SDCCast.h:
10744         added option parms-in-bank1
10745
10746         * device/lib/_divsint.c, device/lib/_divslong.c, device/lib/_divuint.c
10747         * device/lib/_divulong.c, device/lib/_modsint.c, device/lib/_modslong.c
10748         * device/lib/_modulong.c, device/lib/_mulint.c, device/lib/_mullong.c:
10749         adjusted for --parms-in-bank1 option
10750
10751         * device/include/string.h:
10752         donot redefine "reentrant" keyword
10753
10754         * device/include/ds80c390.h: Added some more SFRs
10755
10756 2002-01-28  Bernhard Held  <bernhard AT bernhardheld.de>
10757
10758         * sim/ucsim: Merged branch ucsim-034-pre3 to main trunk; new version 0.4
10759
10760 2002-01-26  Bernhard Held  <bernhard AT bernhardheld.de>
10761
10762         * src/SDCCast.c (funcOfType): fix usage of double --float-reent
10763
10764 2002-01-22  Bernhard Held  <bernhard AT bernhardheld.de>
10765
10766         * support/regression/fwk/lib/testfwk.c (main): Removed workaround for bug #505387
10767
10768 2002-01-18  Paul Stoffregen  <paul AT pjrc.com>
10769
10770         * Added --xram-movc option
10771
10772 2002-01-13  Bernhard Held  <bernhard AT bernhardheld.de>
10773
10774         * support/regression/Makefile: don't include test-mcs51-stack-auto in target all
10775
10776 2002-01-11  Johan Knol
10777
10778         * Added math lib of Jesus Calvino-Fraga
10779
10780 2002-01-08  Bernhard Held  <bernhard AT bernhardheld.de>
10781
10782         * src/SDCCmain.c (processFile): fix processing of ../../src.c
10783         * support/regression/Makefile: new target test-mcs51-stack-auto
10784         * support/regression/ports/mcs51-stack-auto/spec.mk: added
10785
10786 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10787
10788         * src/SDCCglue.h: printIvalCharPtr(), not printIvalChar()
10789
10790 2002-01-04  Bernhard Held  <bernhard AT bernhardheld.de>
10791
10792         * support/regression/ports/mcs51/support.c: correct setup of timer / UART
10793
10794 2002-01-03  Bernhard Held  <bernhard AT bernhardheld.de>
10795
10796         * src/SDCCsymt.c (processFuncArgs): fix #498307 by Johan
10797
10798         * src/SDCCglue.h: add definition for printIvalChar()
10799
10800 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10801
10802         * src/SDCCast.c: fix #498138 by Johan
10803
10804         * src/SDCCglue.c: fix #498138 by Johan
10805
10806 2002-01-02  Bernhard Held  <bernhard AT bernhardheld.de>
10807
10808         * support/regression/Makefile: fix clean
10809
10810         * support/regression/ports/ds390/support.c: fix transmission of last character
10811
10812 2001-12-29  Sandeep Dutta  <sandeep AT ddi.com>
10813
10814         * /sdcc/src/ds390/gen.c:
10815         a) improved computing address of stack variable
10816         b) took out some #if 0 code
10817         c) improved parmBytes adjustment
10818         d) improved genPlusIncr & genMinusIncr
10819         e) genCmp could generate bad code (when left assigned to DPTR)
10820         f) Fixed bug in hasInc
10821
10822         * /sdcc/src/ds390/ralloc.c:
10823         a) packRegsForSupport could mess up live information (Fixed)
10824         b) packRegsDPTRuse could be incorrect for left & right shift
10825
10826         * /sdcc/src/mcs51/ralloc.c:
10827         packRegsForSupport could mess up the live information (Fixed)
10828
10829         * /sdcc/src/mcs51/gen.c: Fixed a bug in hasInc
10830
10831         * /sdcc/src/SDCCast.c:
10832         can reverse a loop even if function call is present as long
10833         as the loop control variable is local & is not passed as parameter
10834
10835 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10836
10837         * /sdcc/ChangeLog: *** empty log message ***
10838
10839         * /sdcc/src/ds390/gen.c, /sdcc/src/ds390/main.c:
10840         More builtin function additions for TININative
10841
10842         * /sdcc/src/ds390/ralloc.c:
10843         Had broken the regression testsuite
10844
10845         * /sdcc/src/SDCCast.c: Fixed a bug in dumptree
10846
10847         * /sdcc/src/SDCCsymt.c, /sdcc/src/SDCCsymt.h:
10848         Added funcattr hasStackParms will be set for reentrant functions when there
10849         are paramteres on the stack, this helps in minimizing frame pointer generation
10850         typeFromStr can handle function pointers now
10851
10852         * /sdcc/doc/builtins.txt, /sdcc/doc/TININative.txt:
10853         *** empty log message ***
10854
10855 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10856
10857         * /src/ds390/gen.c, /src/ds390/main.c:
10858         More builtin function additions for TININative
10859
10860         * /src/ds390/ralloc.c:
10861         Had broken the regression testsuite
10862
10863         * /src/SDCCast.c: Fixed a bug in dumptree
10864
10865         * /src/SDCCsymt.c, /src/SDCCsymt.h:
10866         Added funcattr hasStackParms will be set for reentrant functions when there
10867         are paramteres on the stack, this helps in minimizing frame pointer generation
10868         typeFromStr can handle function pointers now
10869
10870         * /doc/builtins.txt, /doc/TININative.txt:
10871         *** empty log message ***
10872
10873
10874 2001-12-24  Sandeep Dutta  <sandeep AT ddi.com>
10875
10876         * /src/ds390/gen.c, /src/ds390/main.c, /src/ds390/peeph.def, /src/ds390/ralloc.c:
10877         ALPHA version for -mTININative
10878
10879         * /src/izt/i186.c, /src/izt/tlcs900h.c, /src/mcs51/main.c, /src/pic/main.c, /src/z80/main.c, /src/avr/main.c:
10880         updated to reflect changes in the port structure
10881
10882         * /src/port.h:
10883         added function do_assemble (similar to do_link) if non-null this function
10884         will be called to do assembly (-mTININative) requires a multi command
10885         assembly
10886         added function genAssemblerEnd will be called to generate assembler Epilogue
10887
10888         * /src/SDCCsymt.c:
10889         added _JavaNative to debug info printing
10890
10891         * /src/SDCCmain.c: added option --tini-libid
10892         added port->do_assemble function (-mTININative) has a multi command assemble
10893
10894         * /src/SDCCglue.c: Disabled "constExpr" check
10895         added port->genAssemblerEnd function
10896
10897         * /src/SDCCglobl.h: Added option --tini-libid value
10898
10899         * /src/SDCCast.h:
10900         tookout optimizeCompare from the header (has no external references)
10901
10902         * /src/SDCCast.c: made one more function "static"
10903
10904 2001-12-23  Michael Hope  <michaelh AT juju.net.nz>
10905
10906         * src/z80/mappings.i: Added z80asm support.
10907
10908         * src/z80/main.c: Added z80asm support on --asm=z80asm
10909
10910         * src/z80/gen.c: Fixed asm portability issues.
10911
10912         * src/asm.c (tvsprintf): Removed old code, added 'N' for function name.  For extern support.
10913
10914         * src/SDCCglue.c (printExterns): Added global/extern split.
10915
10916 2001-12-17  Bernhard Held  <bernhard AT bernhardheld.de>
10917
10918         * support/regression/Makefile: added test for mcs51 model large
10919
10920         * support/regression/ports/mcs51-large/spec.mk: added test for mcs51 model large
10921
10922         * support/regression/ports/gbz80/spec.mk: added -mgbz80
10923
10924 2001-12-05  Michael Hope  <michaelh AT juju.net.nz>
10925
10926         * src/diff.1 (Index): Many, many optmisiations.  Dhrystone up to 201.
10927
10928 1904-01-06  Michael Hope  <michaelh AT juju.net.nz>
10929
10930         * src/z80/ralloc.c (packRegsForIYUse): Fixed the case where an operand is in direct space.
10931
10932         * src/z80/gen.c (makeFreePairId): Optimised IY load by using a spare pair.
10933
10934 2001-12-02  Bernhard Held  <bernhard AT bernhardheld.de>
10935
10936         * src/mcs51/gen.c (genFunction): avoid excess "inc sp"
10937
10938         * support/regression/tests/simplefloat.c: Port to mcs51.
10939
10940 2001-11-25  Michael Hope  <michaelh AT juju.net.nz>
10941         * support/regression/tests/bug-485362.c: Added.
10942
10943         * support/regression/tests/simplefloat.c (testDivNearOne): Added.
10944
10945         * src/z80/gen.c (aopOp): Fixed case where left and result are in the same spill loc and they have different sizes.
10946
10947         * src/z80/peeph.def: Added rules for optimising two byte compares on the same thing, and to optimise two ptr assign.
10948
10949         * src/z80/gen.c (aopDump): Added a dump function.
10950
10951 2001-11-25  Bernhard Held  <bernhard AT bernhardheld.de>
10952         * sim/ucsim/s51.src/glob.cc: DS390 SFRs and bits added.
10953
10954         * sim/ucsim/s51.src/port.cc: Port 4 and 5 added.
10955
10956         * sim/ucsim/s51.src/regs51.h: DS390 SFRs added.
10957
10958         * sim/ucsim/s51.src/uc390.cc: Some details improved, CKRDY works for tinibios.
10959
10960         * sim/ucsim/s51.src/uc390cl.h: Work in progress.
10961
10962         * sim/ucsim/sim.src/uccl.h: 6 ports for DS390.
10963
10964         * support/regression/fwk/lib/testfwk.c: Run with tinibios.
10965
10966         * support/regression/ports/mcs51/spec.mk: Fine tuninig.
10967
10968         * support/regression/ports/ds390/support.c: Use tinibios.
10969
10970         * support/regression/ports/ds390/spec.mk: Fine tuning, use tinibios.
10971
10972 2001-11-23  Michael Hope  <michaelh AT juju.net.nz>support/regression/tests/bug-460010.c
10973
10974         * src/z80/ralloc.c (packRegsForHLUse3): Changed to not pack into HL if anything is in direct space.
10975         (packRegsForHLUse3): Added packing support for send, cast, and return value from a call.
10976
10977         * src/z80/peeph.def: Added rules for optimising pushes of part of a pair.
10978
10979         * src/z80/gen.c (emitCall): Changed the stack fixup to not use HL.
10980
10981 2001-11-18  Michael Hope  <michaelh AT juju.net.nz>
10982
10983         * src/z80/gen.c (genCmp): Fixed compare on unsigned.
10984
10985         * src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
10986         (packRegsForIYUse): Created and optimised.
10987
10988 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
10989
10990         * support/regression/tests/float.c (testFloatAdd): Fixed up warning.
10991 2001-11-18  Bernhard Held  <bernhard AT bernhardheld.de>
10992
10993         * sdcc/support/regression/tests/bug-460010.c: fix seg violation on host
10994
10995         * sdcc/support/regression/tests/muldiv.c: fix output on mcs51
10996
10997         * sdcc/support/regression/tests/stacks.c: fix DSEG overflow on mcs51
10998
10999 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11000
11001         * sdcc/sim/device/lib/_gptrget.c: mem region 5 (idata) added
11002
11003         * sdcc/sim/device/lib/_gptrput.c: mem region 5 (idata) added
11004
11005 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11006
11007         * sdcc/sim/ucsim/globals.cc: New: IXRAM.
11008
11009         * sdcc/sim/ucsim/stypes.h: New: IXRAM.
11010
11011         * sdcc/sim/ucsim/s51.src/uc390.cc: New: IXRAM.
11012
11013 2001-11-07  Michael Hope  <michaelh AT juju.net.nz>
11014
11015         * src/z80/ralloc.c (packRegsForHLUse): Banned IFXs from being packed into HL.
11016         (packRegsForHLUse): Added rule to pack address of/pointer get for itemps into HL for the Z80.
11017         (packRegsForAccUse2): Added rule to pack hbit IFXs into A.
11018
11019         * src/z80/main.c (_setDefaultOptions): Made float code re-entrant by default.
11020
11021         * src/z80/gen.c (aopGetLitWordLong): Added word support for floats.
11022         (genNotFloat): Added.
11023         (genUminusFloat): Added.
11024
11025         * device/lib/z80/Makefile: Added floating pt stubs.
11026
11027         * device/lib/Makefile.in (Z80SOURCES): Added floating pt support.
11028
11029         * src/z80/gen.c (genIpush): Fixed up a push of one byte when left is in a pair.
11030
11031         * device/lib/_fsadd.c (__fsadd): Fixed up return where the numbers are hugely different.
11032
11033 2001-11-07  Bernhard Held  <bernhard AT bernhardheld.de>
11034
11035         * sdcc/sim/ucsim/s51.src/glob.cc: Minor fix.
11036
11037         * sdcc/sim/ucsim/s51.src/regs51.h: Minor fix.
11038
11039         * sdcc/support/regression/Makefile: Add port ds390.
11040
11041         * sdcc/support/regression/ports/mcs51/spec.mk: Minor change.
11042
11043         * sdcc/support/regression/ports/z80/spec.mk: Minor change.
11044
11045         * sdcc/support/regression/ports/ds390/spec.mk: Added.
11046
11047         * sdcc/support/regression/ports/ds390/support.c: Added.
11048
11049         * sdcc/support/regression/ports/ds390/uCsim.cmd: Added.
11050
11051         * sdcc/support/regression/ports/mcs51/timeout.c: Cut.
11052
11053         * sdcc/support/regression/fwk/lib/timeout.c: Paste.
11054
11055 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11056
11057         * device/include/malloc.h: Added z80 and gbz80 support.
11058
11059         * device/lib/gbz80/heap.s: Added.
11060
11061         * device/lib/z80/heap.s: Added.
11062
11063         * device/lib/malloc.c: Added z80 and gbz80 support.
11064
11065         * support/regression/tests/malloc.c (testMalloc): Added.
11066
11067         * src/SDCCmain.c (parseCmdLine): Added support for -Wp.
11068
11069         * support/regression/tests/bug-478094.c: Added.
11070
11071         * src/z80/gen.c (commitPair): Fixed silly gbz80/z80 commit to static bug.
11072
11073 2001-11-04  Bernhard Held  <bernhard AT bernhardheld.de>
11074
11075         * sdcc/sim/ucsim/s51.src/uc390cl.h: Improvement for ds390 to run regression tests
11076
11077         * sdcc/sim/ucsim/s51.src/uc390.h: Improvement for ds390 to run regression tests
11078
11079         * sdcc/sim/ucsim/s51.src/regs51.h: Improvement for ds390 to run regression tests
11080
11081         * sdcc/sim/ucsim/s51.src/glob.cc: Improvement for ds390 to run regression tests
11082
11083         * sdcc/support/regression/tests/bug-460010.c: Small change for ds390
11084
11085 2001-11-04  Michael Hope  <michaelh AT juju.net.nz>
11086
11087         * src/z80/peeph-gbz80.def: Removed a bad sub optimisation.
11088
11089 2001-11-03  Michael Hope  <michaelh AT juju.net.nz>
11090
11091         * support/regression/tests/bug-477927.c: Added.
11092
11093         * src/z80/peeph.def: Added minor rules.
11094
11095         * src/z80/gen.c (genPlusIncr): Added an extra plusinc rule.
11096
11097         * src/z80/peeph.def: Added jump optimisation modification.
11098
11099 2001-11-01  Michael Hope  <michaelh AT juju.net.nz>
11100
11101         * src/SDCCmain.c (linkEdit): Added runtime path detection to the mcs51 port.
11102
11103 2001-10-30  Michael Hope  <michaelh AT juju.net.nz>
11104
11105         * support/regression/tests/funptrs.c: Added.
11106
11107 2001-10-29  Michael Hope  <michaelh AT juju.net.nz>
11108
11109         * src/z80/ralloc.c (packRegsForHLUse): Fixed up bad spill due to pushing one byte via HL.
11110
11111 2001-10-28  Michael Hope  <michaelh AT juju.net.nz>
11112
11113         * src/z80/gen.c (genArrayInit): Made it work for on stack arrays.
11114
11115         * src/z80/main.c (gbz80_port =): Added rle support to the gbz80 port.
11116
11117         * src/z80/gen.c (genMinus): Fixed for where the result is one byte.
11118         (movLeft2ResultLong): Created.
11119
11120         * src/z80/ralloc.c (packRegsForHLUse): Added a couple of simple cases for the GB.
11121         (joinPushes): Added.  Joins two char pushes into a word push.
11122
11123 2001-10-27  Michael Hope  <michaelh AT juju.net.nz>
11124
11125         * support/cpp2/Makefile.in (install): Added creation of dest dir.
11126
11127         * support/makebin/Makefile (install): Added creation of dest dir.
11128
11129 2001-10-24 Karl Bongers <karl AT turbobit.com>
11130
11131         * configure.in, configure, Makefile, support/cpp: Removed cpp folder, since we have new cpp2 preprocessor code.
11132
11133 2001-10-21  Michael Hope  <michaelh AT juju.net.nz>
11134
11135         * src/z80/ralloc.c: Turned off faulty pack for one use.
11136
11137         * src/z80/peeph-gbz80.def: Removed redundent restart options.
11138
11139         * src/z80/gen.c (genMult): Added native mul for constants on the z80 and gbz80.
11140
11141 2001-10-21  Bernhard Held  <bernhard AT bernhardheld.de>
11142
11143         * support/regression/Makefile: Improved clean
11144
11145         * support/regression/ports/gbz80/spec.mk: Added clean
11146
11147         * support/regression/ports/host/spec.mk: Added clean
11148
11149         * support/regression/ports/z80/spec.mk: Added clean
11150
11151         * support/regression/ports/mcs51/spec.mk: Added clean, little improvements
11152
11153         * support/regression/ports/mcs51/timeout.c: little improvements
11154
11155 2001-10-17  Michael Hope  <michaelh AT juju.net.nz>
11156
11157         * device/lib/malloc.c (MEMHEADER): Fixed against new pedantic pointers.
11158
11159         * support/regression/fwk/include/testfwk.h: Fixed up to use function pts correctly.
11160
11161         * support/regression/generate-cases.py: Fixed up to use function pts correctly.
11162
11163 2001-10-16  Bernhard Held  <bernhard AT bernhardheld.de>
11164
11165         * support/regression/port/mcs51/spec.mk: add timeout for uCsim
11166
11167         * support/regression/port/mcs51/timeout.c: add timeout for uCsim
11168
11169 2001-10-13  Michael Hope  <michaelh AT juju.net.nz>
11170         * src/z80/gen.c (emitCall): Fixed up missing spill of HL when used to assign the result value.
11171
11172         * src/z80/ralloc.c: Turned off pack for one use as it's quite broken.
11173
11174         * src/SDCCmain.c (linkEdit): Added support for passing a legacy command line through the processor.
11175
11176         * src/mcs51/main.c (_linkCmd): Added bin path to command.
11177
11178         * src/SDCCmain.c (initValues): Added support for when it it called just to link.
11179
11180         * as/mcs51/lklibr.c (libfil;): Turned off 'library file' message.
11181
11182         * src/SDCCval.c (constVal): Fixed usage of 'L' modifier problems on ppc.
11183
11184         * support/regression/tests/longor.c: Added.
11185
11186 2001-10-11  Bernhard Held  <bernhard AT bernhardheld.de>
11187
11188         * as/mcs51/asdata.c: replaced FILENAME_MAX with PATH_MAX
11189
11190         * as/mcs51/aslink.h: define PATH_MAX
11191
11192         * as/mcs51/asm.h: define PATH_MAX
11193
11194         * as/mcs51/asmain.c: replaced FILENAME_MAX with PATH_MAX
11195
11196         * as/mcs51/asnoice.c: replaced FILENAME_MAX with PATH_MAX
11197
11198         * as/mcs51/lklex.c: replaced FILENAME_MAX with PATH_MAX
11199
11200         * as/mcs51/lkmain.c: replaced FILENAME_MAX with PATH_MAX
11201
11202         * src/SDCCglobl.h: define PATH_MAX
11203
11204         * src/SDCCmacro.c: replaced FILENAME_MAX with PATH_MAX
11205
11206         * src/SDCCmain.c: replaced FILENAME_MAX with PATH_MAX
11207
11208 2001-10-11  Michael Hope  <michaelh AT juju.net.nz>
11209
11210         * src/z80/gen.c (gencjneshort): Fixed
11211
11212         * src/z80/ralloc.c (packRegsForHLUse): Added pack into HL for cast then ipush.
11213
11214 2001-10-09  Michael Hope  <michaelh AT juju.net.nz>
11215
11216         * support/regression/tests/bug-469671.c: Added.
11217
11218         * src/z80/gen.c (shiftIntoPair): Fixed up warning.
11219
11220 2001-10-08  Michael Hope  <michaelh AT juju.net.nz>
11221
11222         * src/SDCCmain.c: Added --fommit-frame-pointer option and implemented in the z80 port.
11223
11224         * src/z80/gen.c (genPlus): Fixed to work with extended stack.  Also fixed genMinus, genCmp.  genUMinus is still left.
11225
11226 2001-10-08  Bernhar Held  <bernhard AT bernhardheld.de>
11227
11228         * src/SDCCmain.c (preProcess): added define SDCC_NOOVERLAY
11229
11230         * src/device/lib/_mulint.c  : removed hint: nooverlay bug
11231
11232         * src/device/lib/_mullong.c : removed hint: nooverlay bug
11233
11234         * src/device/lib/_divuint.c : removed hint: nooverlay bug
11235
11236         * src/device/lib/_divulong.c: removed hint: nooverlay bug
11237
11238         * src/device/lib/_moduint.c : removed hint: nooverlay bug
11239
11240         * src/device/lib/_modulong.c: removed hint: nooverlay bug
11241
11242 2001-10-07  Michael Hope  <michaelh AT juju.net.nz>
11243
11244         * 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.
11245
11246         * support/Util/NewAlloc.c (freeTrace): Changed free for the gc case to not free at all.  Fixes runtime segfault.
11247
11248         * support/regression/tests/scott-compare3.c (c_abcd): Fixed up casts.
11249
11250 2001-10-07    <johan AT FRIJA>
11251
11252         * device/lib/gets.c (gets): fixed the return value.
11253
11254 2001-10-06  Michael Hope  <michaelh AT juju.net.nz>
11255         * src/SDCCmain.c (WRITE_SEG_LOC): Fixed up to use Safe_strdup.
11256
11257         * 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.
11258
11259         * 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.
11260
11261         * src/z80/gen.c (genZ80Code): Added de-allocation via trace support.
11262
11263         * src/pic/gen.c: Removed Safe_strdup.
11264
11265         * configure.in: Added option to enable libgc support.
11266
11267         * src/SDCCbitv.c (bitVectnBitsOn): Optimised.
11268         (bitVectUnion): Optimised.
11269         (bitVectIntersect): Optimised.
11270         (bitVectBitsInCommon): Optimised.
11271         (bitVectCplAnd): Optimised.
11272
11273         * support/makebin/makebin.c (usage): Removed getopt as mingw32 doesn't have it.  Sigh.
11274
11275 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11276
11277         * src/SDCCmain.c: distinguish between assembler debug and plain options
11278
11279         * src/avr/main.c:   remove standard assembler options
11280
11281         * src/ds390/main.c: remove standard assembler options
11282
11283         * src/mcs51/main.c: remove standard assembler options
11284
11285         * src/port.h: removed "PENDING" comment
11286
11287 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11288
11289         * src/device/lib/_mulint.c  : new, with assember functions
11290
11291         * src/device/lib/_mullong.c : new, with assember functions
11292
11293         * src/device/lib/_divuint.c : with assember functions
11294
11295         * src/device/lib/_divsint.c : with assember functions
11296
11297         * src/device/lib/_divulong.c: with assember functions
11298
11299         * src/device/lib/_divslong.c: with assember functions
11300
11301         * src/device/lib/_moduint.c : with assember functions
11302
11303         * src/device/lib/_modsint.c : with assember functions
11304
11305         * src/device/lib/_modulong.c: with assember functions
11306
11307         * src/device/lib/_modslong.c: with assember functions
11308
11309         * src/device/lib/libint.lib:  replaced _muluint.c  and _mulsint.c  by _mulint.c
11310
11311         * src/device/lib/liblong.lib: replaced _mululong.c and _mulslong.c by _mullong.c
11312
11313         * src/device/lib/Makefile.in: replaced _muluint.c  and _mulsint.c  by _mulint.c
11314                                       replaced _mululong.c and _mulslong.c by _mullong.c
11315
11316 2001-10-03 Bernhard Held <bernhard AT bernhardheld.de>
11317
11318         * src/SDCCsymt.c: sequence of specifiers in pintTypeChain() corrected
11319
11320 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11321
11322         * src/SDCCglue.c: test, if win32api is available for MINGW
11323
11324 2001-10-01 Bernhard Held <bernhard AT bernhardheld.de>
11325
11326         * src/SDCCsymt.c: no more _modifier in printTypeChain()
11327         * support/regression/tests/driverstruct.c: REENTRANT for mcs51
11328         * support/regression/ports/gbz80/spec.mk: removed GENERIC
11329         * support/regression/ports/host/spec.mk: removed GENERIC
11330         * support/regression/ports/mcs51/spec.mk: removed GENERIC
11331         * support/regression/ports/z80/spec.mk: removed GENERIC
11332
11333 2001-10-01  Michael Hope  <michaelh AT juju.net.nz>
11334
11335         * support/regression/fwk/lib/testfwk.c (__printf): Removed GENERIC.
11336
11337         * support/regression/tests/bug-467035.c: Created.
11338
11339 2001-10-01    <johan AT FRIJA>
11340
11341         * src/SDCC.y: fixed bug #466586 part 1
11342
11343 2001-10-01  Johan Knol <johan.knol AT iduna.nl>
11344
11345         * SDCCicode.c: z80 has no generic pointers
11346         * removed -s from strip in all Makefile(.in)'s. It is not needed, but Solaris chocks on it.
11347
11348 2001-09-30  Michael Hope  <michaelh AT juju.net.nz>
11349
11350         * sim/ucsim/cmd.src/Makefile.in ($(PRJDIR)/libcmd.a): Changed all ar references to $(AR) for Solaris.
11351
11352 2001-09-29  Michael Hope  <michaelh AT juju.net.nz>
11353
11354         * Makefile (sdcc-libs): Added makebin to the list of standard targets.
11355
11356         * support/regression/ports/z80/spec.mk: Updated to use env for sdcc bin dir for automatic regression.
11357
11358 2001-09-25  Michael Hope  <michaelh AT juju.net.nz>
11359
11360         * configure.in: Fixed up so that ucsim is only configured once.
11361
11362         * support/cpp2/configure.in: Fixed to use the program transform to append the .exe for the win32 build.
11363
11364         * src/SDCCutil.c (getPrefixFromBinPath): Fixed up to work with win32 in all of its glory.
11365         (getPathDifference): As above.
11366
11367         * src/SDCCmain.c (preProcess): Changed to use a temporary file in a proper temp directory.  Fixed case where pre-processing only.
11368
11369         * src/SDCCglue.c (tempfilename): Added function for pre-processor.
11370
11371 2001-09-23  Michael Hope  <michaelh AT juju.net.nz>
11372         * .version: Updated to 2.3.1
11373
11374         * src/z80/main.c (z80_port =): Added macro based linker and assembler command line support.
11375         Added copyright header.
11376
11377         * src/SDCCmain.c: Shifted various functions into SDCCutil.c
11378         (assemble): Added support for macro based assembler commands.
11379         (linkEdit): Added support for macro based linker commands.
11380         (preProcess): Changed the pre-processor to use macros.
11381         (_setPaths): Added functionality to autodetect the include, lib and bin dir paths.
11382         (_discoverPaths): Added support for overriding the install directory using the SDCCDIR env variable.
11383
11384         * device/lib/z80/crt0.s: Added module name for debugging.
11385
11386 2001-09-20  Michael Hope  <michaelh AT juju.net.nz>
11387
11388         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11389
11390         * src/SDCChasht.c (hTabDeleteByKey): Fixed delete as it would delete the last item from a bucket even if it wasn't the real one.
11391
11392         * src/SDCCglue.c: Moved gc_strdup to SDCCutil.c
11393
11394         * src/Makefile.in: Added SDCCmacro and SDCCutil
11395
11396 2001-09-19  Michael Hope  <michaelh AT juju.net.nz>
11397
11398         * src/SDCCmain.c (printVersionInfo): Added the build date to the version info.
11399
11400 2001-09-16    <johan AT FRIJA>
11401
11402         * 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.
11403
11404 2001-09-15    <johan AT FRIJA>
11405
11406         * src/mcs51/ralloc.c: (findAssignToSym): fixed bug #460662 part 1
11407         * src/ds390/ralloc.c (findAssignToSym): fixed bug #460662 part 1
11408
11409 2001-09-11    <johan AT FRIJA>
11410
11411         * src/SDCCval.c (valDiv Mod Minus Plus Shift): keep litteral expressions as small as possible (bug #460010)
11412
11413 2001-09-10  Michael Hope  <michaelh AT juju.net.nz>
11414
11415         * support/regression/tests/bug-460444.c: Added test case.
11416
11417         * src/z80/gen.c (genOr): bug 460444: if (a ^ lit) was broken for &, |, and ^.
11418         (genCast): Added justification for all of the asserts.
11419
11420 2001-09-10  Bernhard Held <bernhard AT bernhardheld.de>
11421
11422         * support/regression/support.c: _xdata replaced by xdata
11423
11424         * support/regression/spec.mk: removed _generic
11425
11426 2001-09-09  Michael Hope  <michaelh AT juju.net.nz>
11427
11428         * src/pic/ralloc.c (debugLogRegType): Removed some old types to get it to compile.
11429
11430         * src/z80/gen.c (shiftR2Left2Result): Improved the case when v = v >> n for small values of n to use less code space and time.
11431         (genrshTwo): Fixed v = v >> n where v is a negative int and n is > 8: bug 460010.
11432
11433         * src/z80/peeph.def: Added a rule to optimise shift then compare.
11434
11435         * support/regression/tests/bug-460000.c (testShiftByParam): Added test case.
11436
11437         * support/regression/tests/bug-460010.c: Added test case.
11438
11439         * support/regression/Makefile (test-host): Removed a silly 'clean' target when testing against gcc.
11440
11441 2001-09-09  Bernhard Held <bernhard AT bernhardheld.de>
11442
11443         * support/regression/Makefile: inter-port-clean adjusted for mcs51
11444
11445         * support/regression/testfwk.c: removed workaround for bug #436344
11446
11447         * support/regression/tests/bp.c: use less memory with mcs51
11448
11449         * support/regression/tests/bug-441448.c: use less memory
11450
11451         * support/regression/tests/ports/mcs51/spec.mk: cleanup, use --stack-after-data
11452
11453         * support/regression/collate-results.py: typo
11454
11455 2001-09-08  Michael Hope  <michaelh AT juju.net.nz>
11456
11457         * support/regression/tests/fetchoverlap.c: Added new test case.
11458
11459         * support/regression/tests/bp.c: Added new test case.
11460
11461         * support/regression/tests/bug-448984.c: Added new test case.
11462
11463         * support/regression/tests/pow2shifts.c: Added new test case.
11464
11465         * src/z80/gen.c: Turned off the noise it normally generates for the release.
11466         (genlshTwo): Fixed right shift for count > 8.
11467
11468         * src/z80/ralloc.c: Disabled most of the ACC packing rules as they weren't getting hit and weren't at all safe.
11469
11470 2001-09-08    <johan AT FRIJA>
11471
11472         * src/SDCCicode.c (geniCodeCall): a CPOINTER can be used as a function
11473
11474 2001-09-07    <johan AT FRIJA>
11475
11476         * src/SDCCicode.c (newiCodeCondition): fixed bug #456235 (1.77)
11477
11478         * src/SDCCglue.c (emitRegularMap): only delete a symbol when it is a symbol
11479
11480 2001-09-06    <johan AT FRIJA>
11481
11482         * src/SDCC.y: this could be a fix for bug #458744 (1.37)
11483         * bernhard noted me at this: "() equals to (void)" (1.38)
11484
11485 2001-09-05    <johan AT FRIJA>
11486
11487         * src/SDCCglue.c (emitRegularMap): a fix for bug #458099/2
11488
11489 2001-09-04    <johan AT FRIJA>
11490
11491         * src/SDCCsymt.c (checkSClass): a fix for bug #458099/1
11492
11493
11494 2001-09-04  Paul Stoffregen  <paul AT pjrc.com>
11495
11496         * pragma noinduction broke memcpy on mcs51 large model.  Moved it inside z80 optimization
11497
11498 2001-09-03  Michael Hope  <michaelh AT juju.net.nz>
11499
11500         * link/z80/aslink.h: Fixed path for PATH_MAX
11501
11502 2001-09-02  Michael Hope  <michaelh AT juju.net.nz>
11503
11504         * src/z80/gen.c (fetchLitPair): Changed so that it properly caches direct space references.
11505
11506         * support/regression/tests/addsub.c: Added cases to cover all the +, - combinations.
11507
11508         * support/regression/tests/uminus.c: Added a test for the unary minus operator.
11509
11510         * 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.
11511
11512 2001-09-01  Michael Hope  <michaelh AT juju.net.nz>
11513
11514         * src/z80/gen.c: Fixed up generator to pass the regresion tests, specifically fixing loads for longs, genCmp, and turned on the map file.
11515         (genCmp): Fixed up genCmp for the GB with longs.
11516
11517         * device/lib/gbz80/Makefile: Fixed up all the libraries to pass the regression tests.
11518
11519         * support/regression/ports/host/spec.mk: Updated to compile with the new type specifiers.
11520
11521         * device/lib/Makefile.in (Z80SOURCES): Removed old _mululong, _mulslong, and unneeded _mulint.
11522
11523         * device/lib/_mullong.c (_mulslong): Changed to actually return a value :)
11524
11525 2001-08-30  Paul Stoffregen  <paul AT pjrc.com>
11526
11527         * added peepholes 223 to 231 to mcs51 port.  These improve code when using large model.
11528
11529 2001-08-30  Michael Hope  <michaelh AT juju.net.nz>
11530
11531         * 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.
11532
11533         * src/z80/gen.c (genPlus): Changed bad long add for gb to a fall through.
11534
11535 2001-08-29  Michael Hope  <michaelh AT juju.net.nz>
11536
11537         * link/z80/aslink.h: Fixed long file name support.  Is now based off PATH_MAX instead of a constant.
11538
11539         * src/z80/gen.c: Fixed add and sub for the case where left or right are in static space.
11540
11541 2001-08-30 Bernhard Held   <bernhard AT bernhardheld.de>
11542
11543   * sim/ucsim/configure:    little improvement of Cygwin-detection
11544   * sim/ucsim/configure.in: little improvement of Cygwin-detection
11545   * sim/ucsim/cmd.src/newcmdcl.h: include <sys/types.h> to define fd_set automated build
11546   * support/regression/tests/bug-221100.c: small changes for mcs51
11547   * support/regression/tests/bug-221168.c: small changes for mcs51
11548   * support/regression/tests/bug-227710.c: small changes for mcs51
11549   * support/regression/tests/staticinit.c: small changes for mcs51
11550   * as/mcs51/aslink.h: accept everything as symbol name in rel-files, bug fix ID 452601
11551   * as/mcs51/lklex.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11552   * as/mcs51/lksym.c:  accept everything as symbol name in rel-files, bug fix ID 452601
11553
11554 $Revision$